From 9b51b2a07769ee049937e16dd45d8c36c87dcc3c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 08 十二月 2023 17:13:01 +0800 Subject: [PATCH] 主数据 枚举配置模板配置 参照配置表格显示问题处理 --- Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue index c088933..19776b2 100644 --- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue +++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue @@ -29,9 +29,7 @@ </div> </el-dialog> - <avue-input v-model="text" :disabled="disabled" :placeholder="title" @click="!disabled && (visible=true)"></avue-input> - <!--<avue-input-table ref="referTable" :props="props" :column="column" :on-load="onLoad" v-model="value" :placeholder="title" ></avue-input-table> - --> + <avue-input v-model="text" :disabled="disabled" :readonly="true" :placeholder="title" @click="!disabled && (visible=true)" ></avue-input> </div> </template> @@ -65,6 +63,7 @@ selectionList: [], option: { addBtn: false, + columnBtn:false, //height: this.referConfig.options.height ? this.referConfig.options.height : 475, calcHeight: 30, tip: false, @@ -91,6 +90,8 @@ this.page.currentPage=this.referConfig.options.tableConfig.page.page || this.referConfig.options.tableConfig.page.currentPage; }else if(!validatenull(this.referConfig.options.limit)){ this.page.pageSize=this.referConfig.options.limit + }else if(!validatenull(this.referConfig.options.tableConfig.limit)){ + this.page.pageSize=this.referConfig.options.tableConfig.limit } }, computed:{ @@ -122,7 +123,7 @@ queryParams['referBo'] = this.options['referBo'] || this.options['referType']; } queryParams['referType'] = queryParams['referBo'] - if (this.options.remoteSort && this.options.initSort) { + if (this.options.initSort) { queryParams['order'] = this.options.initSort.type;//鏂规硶 queryParams['sort'] = this.options.initSort.field;//瀛楁 } @@ -286,11 +287,14 @@ text.push(itemText); } }) - let mapFields; - if (this.options.mapFields == "") { - mapFields = this.referConfig.fieldMap; - } else { - mapFields = Object.assign(this.referConfig.fieldMap, JSON.parse(this.options.mapFields)); + + let mapFields =this.referConfig.fieldMap || {}; + try { + if(!validatenull(this.options.mapFields)){ + mapFields =Object.assign(this.referConfig.fieldMap,JSON.parse(this.options.mapFields)) ; + } + }catch (e) { + } this.value=value.join(','); this.text=text.join(',') -- Gitblit v1.9.3