|
|
@ -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(() => { |
|
|
|