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: {