参数收集自定义表头勾选回显
This commit is contained in:
@@ -797,9 +797,11 @@
|
||||
this.columns = []
|
||||
let num = 0
|
||||
this.content = []
|
||||
let checkedList = []
|
||||
jsonHead.forEach((res, index) => {
|
||||
// console.log(res)
|
||||
// 配置列
|
||||
checkedList.push(res.dataIndex)
|
||||
if (res.type) {
|
||||
// console.log('配置')
|
||||
this.columns.push({
|
||||
@@ -875,10 +877,6 @@
|
||||
this.colIndexs.forEach((item)=>{
|
||||
this.minWidthColumns.push([this.columns[item],500])
|
||||
})
|
||||
let checkedList = []
|
||||
this.columns.forEach((item) => {
|
||||
checkedList.push(item.field)
|
||||
})
|
||||
this.$emit('getcustomizeList',checkedList)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
|
||||
@@ -588,7 +588,9 @@
|
||||
this.columns = []
|
||||
let num = 0
|
||||
this.content = []
|
||||
let checkedList = []
|
||||
jsonHead.forEach((res, index) => {
|
||||
checkedList.push(res.dataIndex)
|
||||
// 配置列
|
||||
if (res.type) {
|
||||
this.columns.push({
|
||||
@@ -662,10 +664,6 @@
|
||||
this.columns = [...this.columns]
|
||||
this.colIndexs.forEach((item)=>{
|
||||
this.minWidthColumns.push([this.columns[item],500])
|
||||
let checkedList = []
|
||||
this.columns.forEach((item) => {
|
||||
checkedList.push(item.field)
|
||||
})
|
||||
this.$emit('getcustomizeList',checkedList)
|
||||
})
|
||||
},300)
|
||||
|
||||
Reference in New Issue
Block a user