|
@@ -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 }) {
|