From a67e4ea1fb11b23180953f5739d85cf0e715206e Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Mon, 9 Aug 2021 17:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E9=83=A8=E9=97=A8=E8=BD=AC=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/wfhxzg/step1.vue | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue index de2138c64..d3f760def 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue @@ -345,21 +345,33 @@ export default { addList() { dicTypeData().then(res => { this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 - }) - standUnqualified(this.queryUnqualidiedData).then(res => { - this.unqualidiedData = res.data.records - this.unqualidiedData.forEach(item => { - this.$set(item,'engineer','') - this.$set(item,'engineerId','') - this.$set(item,'dutyPeopleInfo','') - this.$set(item,'dutyPeople','') - this.$set(item,'dutyPeopleInfoId','') - this.$set(item,'dutyPeopleId','') - this.$set(item,'fileText',[]) - this.$set(item,'fileTextId',[]) - this.$set(item,'fileTextPath',[]) + standUnqualified(this.queryUnqualidiedData).then(res => { + this.unqualidiedData = res.data.records + this.unqualidiedData.forEach(item => { + // 责任部门转换 + if (item.responsibleUnit !== null || item.responsibleUnit !== "") { + let k = (item.responsibleUnit || "").split(',') + for (let i in this.zrbmOptions) { + for (let m = 0; m< k.length; m++) { + if (this.zrbmOptions[i].value === k[m]) { + k[m] = this.zrbmOptions[i].label + } + item.responsibleUnit = k.join(',') + } + } + } + this.$set(item,'engineer','') + this.$set(item,'engineerId','') + this.$set(item,'dutyPeopleInfo','') + this.$set(item,'dutyPeople','') + this.$set(item,'dutyPeopleInfoId','') + this.$set(item,'dutyPeopleId','') + this.$set(item,'fileText',[]) + this.$set(item,'fileTextId',[]) + this.$set(item,'fileTextPath',[]) + }) + this.total = res.data.total }) - this.total = res.data.total }) this.standModel = true; },