From 8b84ae66e05d83d4aa9c09de0fa89513fc5cfb3b Mon Sep 17 00:00:00 2001 From: fujunling <2984387807@qq.com> Date: 星期三, 05 七月 2023 17:18:02 +0800 Subject: [PATCH] 批量导入 --- Source/UBCS-WEB/src/mixins/codeApply.js | 7 ++++--- Source/UBCS-WEB/src/components/BatchImport/index.vue | 8 +++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/components/BatchImport/index.vue b/Source/UBCS-WEB/src/components/BatchImport/index.vue index b794d20..b54d048 100644 --- a/Source/UBCS-WEB/src/components/BatchImport/index.vue +++ b/Source/UBCS-WEB/src/components/BatchImport/index.vue @@ -148,9 +148,15 @@ classifyAttr: this.classifyAttr, }; } else if (this.type === "batchImportApply") { + const secDTOList = this.localSecVOList.map(item => { + return { + secOid: item.oid, + secValue: this.codeApplyForm[item.id] + } + }) return { codeClassifyOid: this.codeClassifyOid, - secDTOList: this.secDTOList, + secDTOList: JSON.stringify(secDTOList), ...this.codeApplyForm, }; } else if (this.type === "batchApplyCode") { diff --git a/Source/UBCS-WEB/src/mixins/codeApply.js b/Source/UBCS-WEB/src/mixins/codeApply.js index 3f0c1be..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", @@ -57,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); }); } -- Gitblit v1.9.3