diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index cedbb0aab..bcd2d3a5e 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -1170,11 +1170,10 @@ export default { this.form = JSON.parse(JSON.stringify(item)) let wssmrName = this.form.wssmrname this.form.wssmr = wssmrName - this.form.sycpx = this.form.sycpx.split(',') - this.form.nylx = this.form.nylx.split(',') - this.form.cllx = this.form.cllx.split(',') - this.form.syrz = this.form.syrz.split(',') - this.form.syrz = this.form.syrz.split(',') + this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx.split(',') : '' + this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx.split(',') : '' + this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx.split(',') : '' + this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz.split(',') : '' this.defaultCheckedKeys = [this.form.standSystem] this.defaultCheckedKeys1 = [this.form.cycvppsbm] this.defaultCheckedKeys2 = [this.form.kccvppsbm] diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue index c8b3f398a..9b5301fa0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -1131,11 +1131,10 @@ export default { this.form = JSON.parse(JSON.stringify(item)) let wssmrName = this.form.wssmrname this.form.wssmr = wssmrName - this.form.sycpx = this.form.sycpx.split(',') - this.form.nylx = this.form.nylx.split(',') - this.form.cllx = this.form.cllx.split(',') - this.form.syrz = this.form.syrz.split(',') - this.form.syrz = this.form.syrz.split(',') + this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx.split(',') : '' + this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx.split(',') : '' + this.form.cllx = this.form.cllx && this.form.cllx !== [] ? this.form.cllx.split(',') : '' + this.form.syrz = this.form.syrz && this.form.syrz !== [] ? this.form.syrz.split(',') : '' this.defaultCheckedKeys = [this.form.standSystem] this.defaultCheckedKeys1 = [this.form.cycvppsbm] this.defaultCheckedKeys2 = [this.form.kccvppsbm]