Browse Source

主子表合并,导致table中设置的显示与隐藏问题

master_hella_20240701
yufei0306 6 months ago
parent
commit
e948b71ae9
  1. 10
      src/components/rowDrop/index.vue

10
src/components/rowDrop/index.vue

@ -82,9 +82,13 @@ const closeRowDrop = () => {
const save = () => {
let saveDate:any[] = []
//
saveDate.push(props.allSchemas.tableColumns[0])
let myTableColumns = props.allSchemas.tableColumns
if(props.detailAllSchemas){
myTableColumns = [...props.allSchemas?.tableColumns,...props.detailAllSchemas?.tableMainColumns]
}
saveDate.push(myTableColumns[0])
allData.value.forEach((item) => {
const _item:any = props.allSchemas.tableColumns.find(itemColumns => (itemColumns.label == item ))
const _item:any = myTableColumns.find(itemColumns => (itemColumns.label == item ))
if(_item){
_item.isTable = false
if (checkedDataList.value.indexOf(_item.label) > -1) {
@ -94,7 +98,7 @@ const save = () => {
}
})
//
saveDate.push(props.allSchemas.tableColumns[props.allSchemas.tableColumns.length-1])
saveDate.push(myTableColumns[myTableColumns.length-1])
updataTableColumns(saveDate)
console.log(99, saveDate)
RedisApi.addRedis({key: routeName.value,value: JSON.stringify(saveDate)}).then(() => {

Loading…
Cancel
Save