From fdfc1c22668c7ff83ac1ba0c6b42eb032958b199 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 06 十二月 2023 09:41:03 +0800 Subject: [PATCH] 切换菜单后,超链接数据表头未变更 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 21 ++++++++++----------- Source/UBCS-WEB/src/styles/theme/white.scss | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index a2b1391..f8c075c 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -47,7 +47,7 @@ </el-table-column> <!-- 鐢熷懡鍛ㄦ湡--> <el-table-column v-for="(item,index) in lcstatusArray" - v-if=" lcstatusArray.length !== 0 && !item.hidden" + v-if=" lcstatusArray.length >= 0 && !item.hidden" key="index" :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" align="center" label="鐢熷懡鍛ㄦ湡鍊�" prop="lcstatus"> @@ -433,32 +433,31 @@ } }) this.tableHeadFindDatas = newval; - if (!this.isCodeArrayPushed) { + if (newval) { + this.CodeArray = []; if (newval.find(item => item.prop === 'id')) { this.CodeArray.push(newval.find(item => item.prop === 'id')); } else { - // this.CodeArray.push([]); this.CodeArray = []; } - this.isCodeArrayPushed = true; + } - if (!this.islcstatusPushed) { + if (newval) { + this.lcstatusArray = []; if (newval.find(item => item.prop === 'lcstatus')) { this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus')); } else { - this.lcstatusArray.push([]); + this.lcstatusArray = []; } - // console.log('lcstatusArray', this.lcstatusArray); - this.islcstatusPushed = true; } - if (!this.isReferPushed) { + if (newval) { + this.referArray = []; if (newval.find(item => Object.keys(item.referConfig).length > 0)) { this.referArray.push(newval.find(item => Object.keys(item.referConfig).length > 0)); } else { - this.referArray.push([]) + this.referArray = []; } } - this.isReferPushed = true; this.WupinFindValue = '' }, }, diff --git a/Source/UBCS-WEB/src/styles/theme/white.scss b/Source/UBCS-WEB/src/styles/theme/white.scss index ed81bc2..12df31b 100644 --- a/Source/UBCS-WEB/src/styles/theme/white.scss +++ b/Source/UBCS-WEB/src/styles/theme/white.scss @@ -117,4 +117,4 @@ color: #fff; } } -} \ No newline at end of file +} -- Gitblit v1.9.3