chenrui  1 year ago
parent
commit
74dcb26ca9
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/views/statisticsCharts/components/tableformbrs.vue

+ 14 - 2
src/views/statisticsCharts/components/tableformbrs.vue

@@ -1128,7 +1128,8 @@
           :data="tableData"
           style="width: 100%"
           :show-summary="true"
-          ref="userTableDataelt"
+          :summary-method="totalOutPrice"
+          ref="userTableDataelt1"
         >
         <el-table-column
             prop="carrierFlightsDate"
@@ -1189,7 +1190,6 @@ export default {
       type: [String, Number],
     },
     dataContent: {
-      type: Array,
       default: () => [],
     },
     textShow: {
@@ -1368,6 +1368,12 @@ export default {
           // sums[36] = (sums[34] * 100 / (sums[33] > 0 ? sums[33] : 1)).toFixed(2) + '%'
           // sums[42] = (sums[40] * 100 / (sums[39] > 0 ? sums[39] : 1)).toFixed(2) + '%'
         }
+        if (this.upid == 9) {
+          sums[1] = '-'
+          sums[2] = '-'
+          sums[3] = '-'
+          sums[4] = '-'
+        }
       });
       return sums;
     },
@@ -1588,6 +1594,12 @@ export default {
           this.$refs['userTableDataelt'].$el.cloneNode(true)
         const fileName = `${tableName}.xlsx`
         exportToExcel(table, tableName, fileName,'',true)
+      }else {
+        let tableName = '工作量统计'
+        const table =
+        this.$refs['userTableDataelt1'].$el.cloneNode(true)
+        const fileName = `${tableName}.xlsx`
+        exportToExcel(table, tableName, fileName,'',true)
       }
     },
     cellClass({ row, column, rowIndex, columnIndex }) {