From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期四, 03 四月 2025 14:35:02 +0800 Subject: [PATCH] 添加非密字段显示 --- Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue | 54 ++++++++++++++++++++++++++++++++---------------------- 1 files changed, 32 insertions(+), 22 deletions(-) diff --git a/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue b/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue index eafc974..ef651fa 100644 --- a/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue +++ b/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue @@ -1,9 +1,12 @@ <template> <el-dialog + :close-on-click-modal="false" :title="options.title" append-to-body :visible.sync="crudParams.isShowDialog" width="65%" + top="0" + class= "avue-dialog avue-dialog--top" destroy-on-close @close="clearTableRowSelection" style="height: 110vh; margin-top: -12vh; overflow-y: hidden"> @@ -60,6 +63,7 @@ addBtn: false, menu: false, // refreshBtn: false, + disablePage: false, searchShowBtn: false, columnBtn: false, dialogClickModal: false, @@ -84,11 +88,11 @@ },{ label: '灞炴�ч暱搴�', search: false, - prop: 'attrLength' + prop: 'attributeLength' },{ label: '灞炴�х被鍨�', search: false, - prop: 'attrType' + prop: 'attrDataTypeText' }], }, crudData: [], @@ -114,32 +118,38 @@ this.options = params; this.crudParams.crudLoading = true; // 璋冪敤api璇锋眰 - const data = { - total: 2, - data: [{ - id: 'test', - name: '娴嬭瘯', - attrLength: 11, - attrType: '瀛楃涓�' - }, { - id: 'test1', - name: '娴嬭瘯1', - attrLength: 12, - attrType: '鏁板瓧' - }] - } + // const data = { + // total: 2, + // data: [{ + // id: 'test', + // name: '娴嬭瘯', + // attrLength: 11, + // attrType: '瀛楃涓�' + // }, { + // id: 'test1', + // name: '娴嬭瘯1', + // attrLength: 12, + // attrType: '鏁板瓧' + // }] + // } let param = {}; // 澶氫釜conditionMap杩欐牱浼犲弬 - if(crudParams.crudQuery){ - Object.keys(crudParams.crudQuery).forEach(key=>{ - param['conditionMap['+key+']'] = crudParams.crudQuery[key]; + if(this.crudParams.crudQuery){ + Object.keys(this.crudParams.crudQuery).forEach(key=>{ + param['conditionMap['+key+']'] = this.crudParams.crudQuery[key]; }); } + param['conditionMap[btmTypeId]'] = this.options.btmTypeId; gridAttributesByBtmId(1,-1,param).then(res=>{ - console.log(res); + const data = res.data; + // console.log(data.data.records); + this.crudParams.crudData = data.data.records; + this.crudParams.crudLoading = false; + this.$nextTick(()=>{ + this.$refs[this.crudParams.ref].doLayout(); + }) }) - this.crudParams.crudData = data.data; - this.crudParams.crudLoading = false; + }, selectedBtmTypeAttrSrchChange(params, done){ this.crudParams.crudQuery = params; -- Gitblit v1.9.3