From 619f89e504760e93aed01e9fec9825f65960c0e1 Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Mon, 20 Dec 2021 16:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E4=BC=9A=E5=B7=A5=E4=BD=9C=E5=8D=8F?= =?UTF-8?q?=E4=BC=9A=E9=A2=84=E8=AE=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzhHy-ch/step1.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue index 8ad8410ea..f0c75b9f1 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue @@ -452,7 +452,22 @@ export default { type: 0 } workGroup(type).then(res => { - this.ch_pageData.associaOptionsOne = res.data.children + if (res.data.children !== null) { + this.ch_pageData.associaOptionsOne = res.data.children + this.ch_pageData.associaName = this.ch_pageData.associaOptionsOne[0].id + this.ch_pageData.associaOptionsOne.forEach(item => { + if (item.children !== null && item.id === this.ch_pageData.associaName) { + this.ch_pageData.associaOptionsTwo = item.children + this.ch_pageData.associaNameOne = this.ch_pageData.associaOptionsTwo[0].id + } + }) + this.ch_pageData.associaOptionsTwo.forEach(item => { + if (item.children !== null && item.id === this.ch_pageData.associaNameOne) { + this.ch_pageData.associaOptionsTree = item.children + this.ch_pageData.associaNameTwo = this.ch_pageData.associaOptionsTree[0].id + } + }) + } }) }, methods: {