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/FormTemplate/index.vue | 30 ++++++++++++++---------------- 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue index 6d01849..d8ea149 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue @@ -14,10 +14,10 @@ v-if="dialogVisible" key="masterForm" ref="FormTemplate" v-bind="$attrs" - :selectRow="selectRow" :TreeValue="TreeValue" :eventList="eventList" :rowOid="rowOid" + :selectRow="selectRow" :status="status" :templateOid="templateOid" :type="type" @@ -39,11 +39,11 @@ <el-tab-pane v-if="showCodeApply" label="鐮佸�肩敵璇�" name="codeApply"> <FormTemplate key="codeApplyForm" ref="CodeApply" + :selectRow="selectRow" :selfColumnConfig="selfColumnConfig" :selfColumnType="selfColumnType" - :type="type" :status="status" - :selectRow="selectRow" + :type="type" data-key="codeApplyForm" secDTOListv-bind="$attrs" @attrList="attrListForm" @@ -142,9 +142,9 @@ type: Object, default: () => ({}), }, - selectRow:{ - type:Array, - default:[] + selectRow: { + type: Array, + default: [] } }, data() { @@ -248,14 +248,12 @@ }, }, }, - watch: { - - }, + watch: {}, methods: { openDialog() { //鏂板鍜屼慨鏀瑰叡鍚岃皟鐢�(鏈夋敼鍔� 涓嶉渶瑕佸湪浣跨敤edit锛屾柟娉曟病浠�涔堝奖鍝�) this.getFormTemplate(); - if (this.type === "add" || (this.type !== "add" && this.status === "amend")) { + if (this.type === "add") { this.getCodeRule(); return; } @@ -326,7 +324,7 @@ that.secVOList = (res.data.data.secVOList || []).filter((item) => typeList.includes(item.secType) ); - if (that.secVOList.length > 0 && that.type === "add" ||(that.type !== "add" && that.status === "amend")) { + if (that.secVOList.length > 0 && that.type === "add" || (that.type !== "add" && that.status === "amend")) { that.showCodeApply = true; that.activeName = "codeApply"; @@ -361,7 +359,7 @@ } }) if (this.$refs.CodeApply) { // 娣诲姞涓�涓垽鏂鍙ワ紝妫�鏌ュ璞℃槸鍚︿负undefined - this.$refs.CodeApply.changeChildItem(this.secVOList, this.TreeValue, this.type); + this.$refs.CodeApply.changeStatusItem(this.secVOList, this.TreeValue, this.type); } }, //骞翠唬鍙� @@ -377,7 +375,7 @@ }); if (this.$refs.CodeApply) { - this.$refs.CodeApply.changeChildItem(this.secVOList, this.TreeValue, this.type); + this.$refs.CodeApply.changeStatusItem(this.secVOList, this.TreeValue, this.type); } }, //灞炴�х爜娈佃祴鍊� @@ -416,7 +414,7 @@ } }, async submit() { - if(this.status){ + if (this.status) { // 杩涜琛ㄥ崟鏍¢獙 const formValidate = await this.$refs.FormTemplate.validate(); if (!formValidate) return; @@ -495,7 +493,7 @@ resForm.codeRuleOid = this.codeRuleOid; resForm.templateOid = this.templateOid; this.$emit("submit", resForm); - }else { + } else { // 杩涜琛ㄥ崟鏍¢獙 const formValidate = await this.$refs.FormTemplate.validate(); if (!formValidate) return; @@ -641,7 +639,7 @@ }; } else if (item.secType == "coderefersec") { //寮曠敤鐮佹 - params = JSON.parse(item.referValueInfo); + params = JSON.parse(item.referValueInfo || item.referConfig); } return params; }, -- Gitblit v1.9.3