From 9a9fc08739e4a885f2920f16645d6bf1d2044edc Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 21 九月 2023 10:26:27 +0800 Subject: [PATCH] 集成系统信息管理-分类授权接口渲染 --- Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue index 222c3c0..d108a8e 100644 --- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue +++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue @@ -286,8 +286,12 @@ text.push(itemText); } }) - - let mapFields =Object.assign(this.referConfig.fieldMap,JSON.parse(this.options.mapFields)) ; + let mapFields; + if (this.options.mapFields === "") { + mapFields = this.referConfig.fieldMap; + } else { + mapFields = Object.assign(this.referConfig.fieldMap, this.options.mapFields); + } this.value=value.join(','); this.text=text.join(',') this.$emit("setValue", {field:this.referConfig.field,showField:this.referConfig.showField,value:this.value,text:this.text,rawData:this.selectionList,fieldMap:mapFields}); -- Gitblit v1.9.3