|
@@ -133,6 +133,7 @@ export default {
|
|
|
tableOptions: {}, // 弹框-下来数据缓存
|
|
|
showSummary: false, // 是否显示统计
|
|
|
tableDataSortRules: {},
|
|
|
+ tableCath: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -222,6 +223,8 @@ export default {
|
|
|
this.showSummary = true
|
|
|
}
|
|
|
const msgDatasShows = formatOrder(msgDatas)
|
|
|
+ this.tableCath = msgDatasShows
|
|
|
+ console.log(this.tableCath)
|
|
|
if (this.istableChild) {
|
|
|
const datas = _.cloneDeep(msgDatasShows)
|
|
|
const cache = {}
|
|
@@ -268,7 +271,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
setTableCols () {
|
|
|
- this.tableCols.forEach(({ columnName, needFilters, needSort }) => {
|
|
|
+ this.tableCath.forEach(({ columnName, needFilters, needSort }) => {
|
|
|
if (needFilters) {
|
|
|
this.$set(this.tableDataFilters, columnName, [])
|
|
|
this.$set(this.filterValues, columnName, [])
|
|
@@ -488,7 +491,7 @@ export default {
|
|
|
if (index === 0) {
|
|
|
sums[index] = '合计:' + this.tableData.length
|
|
|
}
|
|
|
- this.tableColsCopy.forEach(p => {
|
|
|
+ this.tableCath.forEach(p => {
|
|
|
if (column.property == p.columnName && p.needCount) {
|
|
|
const values = data.map(item => Number(item[column.property]))
|
|
|
if (!values.every(value => isNaN(value))) {
|