From 5db7164f7e253ecd3fbbdec5df9db9a835ee27f0 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 23 十月 2023 10:15:24 +0800 Subject: [PATCH] 主数据-默认生命周期+编号位置 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 44 +++++++++++++++++++++++++++++--------------- 1 files changed, 29 insertions(+), 15 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 9907cf6..be118b6 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -35,7 +35,7 @@ <el-option label="瀹℃牳涓�" value="Auditing"></el-option> </el-select></span> </div> - <el-table ref="dataTable" v-loading="isLoading" :data="tableData" + <el-table class="custom-scrollbar" ref="dataTable" v-loading="isLoading" :data="tableData" :height="tableHeight" border @select="handleSelection" @cell-click="handleCellClick" @row-click="handleRowClick" @select-all="handleSelectionAll" @selection-change="handleSelectionChange" @@ -43,7 +43,16 @@ <el-table-column v-if="tableData.length != 0" fixed type="selection" width="55"></el-table-column> <el-table-column v-if="tableData.length != 0" fixed label="搴忓彿" type="index" width="55"> </el-table-column> - <el-table-column v-for="item in CodeArray" v-if="!item.hidden" :label="item.label" :prop="item.prop" +<!-- 鐢熷懡鍛ㄦ湡--> + <el-table-column v-for="item in lcstatusArray" v-if=" lcstatusArray.length !== 0 && !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-column v-for="item in CodeArray" v-if="CodeArray.length !== 0 && !item.hidden" :label="item.label" :prop="item.prop" :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" align="center"> <template slot-scope="scope"> @@ -61,13 +70,7 @@ :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> <!-- 鏂板--> @@ -381,14 +384,25 @@ } }) this.tableHeadFindDatas = newval; + console.log('new',newval) if (!this.isCodeArrayPushed) { - this.CodeArray.push(newval.find(item => item.prop === 'id')) - this.isCodeArrayPushed = true - }; + if (newval.find(item => item.prop === 'id')) { + this.CodeArray.push(newval.find(item => item.prop === 'id')); + } else { + this.CodeArray.push([]); + } + console.log('CodeArray', this.CodeArray); + this.isCodeArrayPushed = true; + } if (!this.islcstatusPushed) { - this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus')) - this.islcstatusPushed = true - }; + if (newval.find(item => item.prop === 'lcstatus')) { + this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus')); + } else { + this.lcstatusArray.push([]); + } + console.log('lcstatusArray', this.lcstatusArray); + this.islcstatusPushed = true; + } // console.log('new',newval) this.WupinFindValue = '' }, -- Gitblit v1.9.3