From 5ac5fd23fe42935d00ea1fd24417e4309e312999 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期一, 16 十月 2023 17:46:29 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 791d4d1..9907cf6 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -36,7 +36,7 @@ </el-select></span> </div> <el-table ref="dataTable" v-loading="isLoading" :data="tableData" - :height="tableHeight" + :height="tableHeight" border @select="handleSelection" @cell-click="handleCellClick" @row-click="handleRowClick" @select-all="handleSelectionAll" @selection-change="handleSelectionChange" @sort-change="sortChange"> @@ -52,7 +52,7 @@ </el-link> </template> </el-table-column> - <el-table-column v-for="item in this.tableHeadFindData" v-if="!item.hidden && item.prop !== 'id'" + <el-table-column v-for="item in this.tableHeadFindData" v-if="!item.hidden && item.prop !== 'id' && item.prop !== 'lcstatus'" :key="item.id" :formatter="item.formatter" :label="item.label" :prop="item.prop" @@ -60,6 +60,13 @@ :sortable="item.sortable" :width="item.width" align="center"> + </el-table-column> + <el-table-column v-for="item in lcstatusArray" v-if="!item.hidden" label="鐢熷懡鍛ㄦ湡鍊�" prop="lcstatus" + :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" + align="center"> + <template slot-scope="scope"> + <span>{{ scope.row.lcstatus_text }}</span> + </template> </el-table-column> </el-table> </el-row> @@ -220,6 +227,8 @@ LinkList: [], isCodeArrayPushed: false, // 缂栫爜鏁扮粍娣诲姞鏍囪瘑鍙橀噺 CodeArray: [], + lcstatusArray:[], + islcstatusPushed:false, // 鐘舵�佹悳绱� statusSelect: "all", // 鍏抽敭瀛楁煡璇� @@ -375,7 +384,11 @@ if (!this.isCodeArrayPushed) { this.CodeArray.push(newval.find(item => item.prop === 'id')) this.isCodeArrayPushed = true - } + }; + if (!this.islcstatusPushed) { + this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus')) + this.islcstatusPushed = true + }; // console.log('new',newval) this.WupinFindValue = '' }, @@ -750,7 +763,7 @@ }, // 鎺掑簭 sortChange(val) { - console.log(val) + // console.log(val) this.isLoading = true; let order = ""; if (val.order == "ascending") { -- Gitblit v1.9.3