From b4c7c6a738f44afadbc388bb774ac044e7fafe38 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 12 十月 2023 11:24:21 +0800 Subject: [PATCH] 修改列显隐 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 1505e83..e3a85a7 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -54,7 +54,7 @@ </el-row> <!-- 鏂板--> <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid" - :disabledProp="disabledProp" :templateOid="templateOid" :visible.sync="addvisible" + :disabledProp="disabledProp" :templateOid="templateOid" :visible.sync="addvisible" :TreeValue="TreeValue" type="add" @submit="AddSumbit"> </FormTemplateDialog> @@ -93,7 +93,7 @@ <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid" :templateOid="templateOid" :visible.sync="similarVisible"></ResembleQueryDialog> <div class="block" style="display: flex; justify-content: flex-end"> - <el-pagination :current-page="page.currentPage" :page-size="page.pageSizes" :page-sizes="page.pageSizes" + <el-pagination :current-page="page.currentPage" :page-size="page.pageSize" :page-sizes="page.pageSizes" :total="page.total" layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange"> @@ -155,6 +155,10 @@ tableDataArray: { type: Array, }, + TreeValue:{ + type: String, + default: "", + }, total: { type: String, default: "", @@ -178,7 +182,8 @@ }, Treedata: { type: Array - } + }, + }, data() { return { @@ -314,8 +319,9 @@ }, tableHeadFindData: { handler(newval, oldval) { + console.log('new',newval) newval.forEach((record, _index) => { - if (record.field == 'id' && validatenull(record.templet)) { + if (record.queryField == 'id' && validatenull(record.templet)) { //浼佷笟缂栫爜鐨勯粯璁ゆ坊鍔犺秴閾炬帴,鏆傛湭瀹炵幇 record.formatter = ''; } else { @@ -330,10 +336,11 @@ } if (_index == 0) { - this.keyWordFind = record.field + this.keyWordFind = record.queryField } }) this.tableHeadFindDatas = newval; + // console.log('new',newval) this.WupinFindValue = '' }, }, @@ -672,7 +679,7 @@ this.List.forEach((item) => { let columnItem = { label: item.title, - prop: item.field, + prop: item.queryField, type: this.columnType[item.type], sortable: item.sort, width: item.minWidth, @@ -700,6 +707,7 @@ }, // 鎺掑簭 sortChange(val) { + console.log(val) this.isLoading = true; let order = ""; if (val.order == "ascending") { -- Gitblit v1.9.3