From e948b71ae95f4c75d7703304618079616d5350f4 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Wed, 22 May 2024 10:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=AD=90=E8=A1=A8=E5=90=88=E5=B9=B6?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4table=E4=B8=AD=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E4=B8=8E=E9=9A=90=E8=97=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/rowDrop/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/rowDrop/index.vue b/src/components/rowDrop/index.vue index 15d0707a5..73363f566 100644 --- a/src/components/rowDrop/index.vue +++ b/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(() => {