From 8bedcf7c849eb0d5b87d0da1cbfa3beb0f7caf45 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 06 七月 2023 16:21:36 +0800 Subject: [PATCH] 1、主要增加可输可选查询数据接口。 2、可输可选保存接口测试与改动。 --- Source/UBCS-WEB/src/mixins/codeApply.js | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/mixins/codeApply.js b/Source/UBCS-WEB/src/mixins/codeApply.js index 2dac60e..4b84617 100644 --- a/Source/UBCS-WEB/src/mixins/codeApply.js +++ b/Source/UBCS-WEB/src/mixins/codeApply.js @@ -3,6 +3,7 @@ data() { return { secVOList: [], + localSecVOList: [], showCodeApply: false, selfColumnType: { codefixedsec: "combox", @@ -41,7 +42,9 @@ } }, created() { - this.getCodeRule() + if (this.type === 'batchImportApply') { + this.getCodeRule() + } }, methods: { // 鑾峰彇鐮佸�肩敵璇锋暟鎹� @@ -55,13 +58,13 @@ "coderefersec", ]; this.secVOList = res.data.data.secVOList || [] - let localSecVOList = (res.data.data.secVOList || []).filter((item) => + this.localSecVOList = (res.data.data.secVOList || []).filter((item) => typeList.includes(item.secType) ); - if (localSecVOList.length > 0) { + if (this.localSecVOList.length > 0) { this.showCodeApply = true this.$nextTick(() => { - this.$refs.CodeApply.templateRender(localSecVOList); + this.$refs.CodeApply.templateRender(this.localSecVOList); }); } @@ -122,7 +125,7 @@ }, }; } else if (item.secType == "coderefersec") { - params = JSON.parse(item.referConfig); + params = JSON.parse(item.referValueInfo); } return params; }, -- Gitblit v1.9.3