|
|
@ -102,6 +102,7 @@ watch(()=>tableObjectHead.tableList,()=>{ |
|
|
|
const updateDateTableColumns = ()=>{ |
|
|
|
console.log('tableObjectHead',tableObjectHead) |
|
|
|
let dateColumns = [] |
|
|
|
if(tableObjectHead.tableList.length>10){ |
|
|
|
tableObjectHead.tableList.forEach(item=>{ |
|
|
|
dateColumns.push({ |
|
|
|
width:120, |
|
|
@ -109,6 +110,15 @@ const updateDateTableColumns = ()=>{ |
|
|
|
label: item |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
tableObjectHead.tableList.forEach(item=>{ |
|
|
|
dateColumns.push({ |
|
|
|
field: item, |
|
|
|
label: item |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
tableColumns.value = [...orginTableColumns.value,...dateColumns] |
|
|
|
console.log('tableColumns',tableColumns.value) |
|
|
|
} |
|
|
|