chenrui  1 年之前
父節點
當前提交
a5faf83b99
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      src/views/statisticsCharts/components/tableformbrs.vue

+ 13 - 1
src/views/statisticsCharts/components/tableformbrs.vue

@@ -1099,8 +1099,13 @@
           :data="tableData"
           style="width: 100%"
           :show-summary="true"
-          ref="userTableData"
+          ref="userTableDataelt"
         >
+        <el-table-column
+            prop="time"
+            label="日期"
+          >
+          </el-table-column>
           <el-table-column
             prop="bpm"
             label="有BPM行李数量"
@@ -1471,6 +1476,7 @@ export default {
           } else if (this.upid == 8) {
             this.tableData.forEach(element => {
               element.lv = element.lv.toFixed(2)
+              element.time = this.dataContent[0] + '-' + this.dataContent[1]
             });
           }
           // setTimeout(() => {
@@ -1524,6 +1530,12 @@ export default {
           this.$refs['baggageProportionTableData'].$el.cloneNode(true)
         const fileName = `${tableName}.xlsx`
         throttledExportToExcel(table, tableName, fileName)
+      }else if (this.upid == 8) {
+        let tableName = '行李全流程服务水平百分比表'
+        const table =
+          this.$refs['userTableDataelt'].$el.cloneNode(true)
+        const fileName = `${tableName}.xlsx`
+        throttledExportToExcel(table, tableName, fileName)
       }
     },
     cellClass({ row, column, rowIndex, columnIndex }) {