From 5b2ff015b3cbf35de3b67c9f9ea97bd63b5beed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Fri, 15 Apr 2022 16:42:46 +0800 Subject: [PATCH] =?UTF-8?q?52374=20=E6=A0=87=E5=87=86=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=EF=BC=8C=EF=BC=8C=E5=85=88=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=88=B0=E8=8D=89=E7=A8=BF=EF=BC=8C=E4=BB=8E=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=8C=E8=B5=B0=E5=88=B0=E4=BF=AE=E8=AE=A2?= =?UTF-8?q?=E8=8A=82=E7=82=B9=EF=BC=8C=E6=89=80=E6=9C=89=E7=9A=84=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E9=83=BD=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step4.vue | 65 ++++++++++--------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue index 8adb96b92..592bfdd2e 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue @@ -2618,49 +2618,50 @@ export default { /** * @description: 动态表单读取 */ - // getFormFieldList(item) { - // this.$nextTick(() => { - // this.form = JSON.parse(JSON.stringify(item)) - // this.defaultCheckedKeys = [this.form.standSystem]; - // this.defaultCheckedKeys1 = [this.form.cycvppsbm]; - // this.defaultCheckedKeys2 = [this.form.kccvppsbm]; - // this.defaultCheckedKeys3 = [this.form.dybxh]; - // this.treeCheckedKeys = this.form.treeListId.split(',') - // this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' - // this.form.standYear = this.form.standYear ? this.form.standYear : '' - // this.form.prcNum = this.prcNum - // this.form.prcName = this.prcName - // this.form['id'] = item.id - // - // - // // 遍历对象 - // for (const p in this.form) { - // if (typeof (this.form[p]) != "function") { - // this.initializeFileList(p, this.form[p]); - // } - // } - // - // this.$forceUpdate() - // }) - // }, getFormFieldList(item) { this.$nextTick(() => { this.form = JSON.parse(JSON.stringify(item)) - this.defaultCheckedKeys = [this.form.standSystem] - this.defaultCheckedKeys1 = [this.form.cycvppsbm] - this.defaultCheckedKeys2 = [this.form.kccvppsbm] - this.defaultCheckedKeys3 = [this.form.dybxh] + this.defaultCheckedKeys = [this.form.standSystem]; + this.defaultCheckedKeys1 = [this.form.cycvppsbm]; + this.defaultCheckedKeys2 = [this.form.kccvppsbm]; + this.defaultCheckedKeys3 = [this.form.dybxh]; + this.treeCheckedKeys = this.form.treeListId.split(',') this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standYear = this.form.standYear ? this.form.standYear : '' - if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') { - this.form.country = this.form.country.split(","); - } this.form.prcNum = this.prcNum this.form.prcName = this.prcName this.form['id'] = item.id + + + // 遍历对象 + for (const p in this.form) { + if (typeof (this.form[p]) != "function") { + this.initializeFileList(p, this.form[p]); + } + } + + this.$forceUpdate() }) }, + // getFormFieldList(item) { + // this.$nextTick(() => { + // this.form = JSON.parse(JSON.stringify(item)) + // this.defaultCheckedKeys = [this.form.standSystem] + // this.defaultCheckedKeys1 = [this.form.cycvppsbm] + // this.defaultCheckedKeys2 = [this.form.kccvppsbm] + // this.defaultCheckedKeys3 = [this.form.dybxh] + // this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' + // this.form.standYear = this.form.standYear ? this.form.standYear : '' + // if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') { + // this.form.country = this.form.country.split(","); + // } + // this.form.prcNum = this.prcNum + // this.form.prcName = this.prcName + // this.form['id'] = item.id + // }) + // }, initializeFileList(property, value) { + console.log(property); switch (property) { case 'xgd': this.getFileList(value, this.xgdFileList);