|
|
|
@ -444,6 +444,7 @@ const getListInfo = () => { |
|
|
|
} |
|
|
|
|
|
|
|
if(tableAttrLogButtonList && tableAttrLogButtonList.length > 0){ |
|
|
|
if(state.tableData.columns && state.tableData.columns.length > 0){ |
|
|
|
state.tableData.columns.forEach((itemCol:any)=>{ |
|
|
|
tableAttrLogButtonList.forEach((item:any)=>{ |
|
|
|
if(itemCol.id == item.id){ |
|
|
|
@ -452,6 +453,7 @@ const getListInfo = () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
if(state.tableData && state.tableData.controlBtn && state.tableData.controlBtn.length > 0) { |
|
|
|
|
|
|
|
state.tableData.controlBtn.forEach((itemCol:any)=>{ |
|
|
|
@ -475,7 +477,7 @@ const getListInfo = () => { |
|
|
|
const tableFieldAttrButClick = (val:tableButton[]) => { |
|
|
|
if(zhuDaunIsTrue.value == true){ |
|
|
|
if(val.length > 0){ //判断是否有选中的字段 |
|
|
|
if(state.tableData.columns.length > 0){ //判断列表是否有数据 |
|
|
|
if(state.tableData.columns&&state.tableData.columns.length > 0){ //判断列表是否有数据 |
|
|
|
val.forEach((item:tableButton)=>{ |
|
|
|
let isTrue = true; |
|
|
|
state.tableData.columns.forEach((itemTab:tableButton)=>{ |
|
|
|
@ -488,6 +490,7 @@ const tableFieldAttrButClick = (val:tableButton[]) => { |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ //列表无数据,直接新增 |
|
|
|
state.tableData.columns = [] |
|
|
|
val.forEach((item:tableButton)=>{ |
|
|
|
state.tableData.columns.push(item) |
|
|
|
}) |
|
|
|
|