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);