From 02dbaaa04bc443e860a715cf907bc0fb5c1a7da4 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 11 七月 2023 09:09:34 +0800 Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs --- Source/UBCS-WEB/src/mixins/codeApply.js | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/mixins/codeApply.js b/Source/UBCS-WEB/src/mixins/codeApply.js index 8b2f6dd..4ed57d6 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", @@ -40,13 +41,10 @@ codeApplyForm: {}, } }, - created() { - this.getCodeRule() - }, methods: { // 鑾峰彇鐮佸�肩敵璇锋暟鎹� getCodeRule() { - getCodeRule({ codeClassifyOid: this.codeClassifyOid }).then((res) => { + getCodeRule({ codeClassifyOid: this.localCodeClassifyOid }).then((res) => { if (res.data && res.data.code === 200) { const typeList = [ "codefixedsec", @@ -55,13 +53,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); }); } @@ -70,6 +68,7 @@ }, getCodeApplyFormData(codeApplyForm) { this.codeApplyForm = codeApplyForm; + this.batchApplyCodeTableData[this.codeRuleOid]["codeApply"] = codeApplyForm }, getType(item) { console.log(item.secType, 'item.secType'); -- Gitblit v1.9.3