Commit b6ab3aff authored by 李苏's avatar 李苏 💬

解决表格grid重置的bug

parent 0b82f9e4
......@@ -276,11 +276,18 @@
})
}else{
/* 删除表格列头*/
let indexList=[]
this.tableTitle.forEach((item,index)=>{
console.log(this.queryParams.sjbmids)
console.log(item.field)
if(this.queryParams.sjbmids.indexOf(item.field)!=-1){
this.tableTitle.splice(index, 1);
indexList.unshift(index)
}
})
indexList.forEach(index=>{
this.tableTitle.splice(index, 1);
})
this.$refs['TablePager'].setGrid(
{
reload:false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment