see999 3 lat temu
rodzic
commit
d57d528445
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      src/xt_pages/workforce/appointment.vue

+ 4 - 3
src/xt_pages/workforce/appointment.vue Wyświetl plik

581
               data.push(Object.values(item))
581
               data.push(Object.values(item))
582
 
582
 
583
             })
583
             })
584
-            // console.log("data",data)
584
+            console.log("data",this.$refs.tableData)
585
             
585
             
586
             const filename = '排班模版'
586
             const filename = '排班模版'
587
            
587
            
588
-            excel.export_json_to_excel({
588
+            excel.export_json_to_excel1({
589
               multiHeader,
589
               multiHeader,
590
               header,
590
               header,
591
               merges,
591
               merges,
592
               data,
592
               data,
593
-              filename
593
+              filename,
594
+              ref: this.$refs['tableData'].$refs['table'].$el
594
             })
595
             })
595
             this.downloadLoading = false
596
             this.downloadLoading = false
596
           }
597
           }