From bf2aed1df26bd2a64ea5110ab2014f1fed63a601 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Fri, 28 Apr 2023 23:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/permissionApplication/launch.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/permissionApplication/launch.vue b/src/views/permissionApplication/launch.vue index d61d096..05bfc93 100644 --- a/src/views/permissionApplication/launch.vue +++ b/src/views/permissionApplication/launch.vue @@ -248,8 +248,10 @@ export default { let submitJson = JSON.parse(this.processOld.submitJson) // this.applicationForm.applyReason = applyReason.applyReason this.tableData = JSON.parse(this.processOld.dataJson) - this.$set(this.applicationForm,'power',this.tableData[0].power) - this.$set(this.applicationForm,'applyReason',this.tableData[0].applyReason) + if(this.tableData.length>0){ + this.$set(this.applicationForm,'power',this.tableData[0].power) + this.$set(this.applicationForm,'applyReason',this.tableData[0].applyReason) + } this.$set(this.assignForm,'oneApprove',submitJson.oneApprove) this.$set(this.assignForm,'oneApproveName',submitJson.oneApproveName) this.$set(this.assignForm,'twoApprove',submitJson.twoApprove) @@ -282,8 +284,8 @@ export default { let submitJson = JSON.parse(this.processOld.submitJson) // this.applicationForm.applyReason = applyReason.applyReason this.tableData = JSON.parse(this.processOld.dataJson) - this.$set(this.applicationForm,'power',this.tableData[0].power) - this.$set(this.applicationForm,'applyReason',this.tableData[0].applyReason) + this.$set(this.applicationForm,'power',this?.tableData[0].power) + this.$set(this.applicationForm,'applyReason',this?.tableData[0].applyReason) this.$set(this.assignForm,'oneApprove',submitJson.oneApprove) this.$set(this.assignForm,'oneApproveName',submitJson.oneApproveName) this.$set(this.assignForm,'twoApprove',submitJson.twoApprove) @@ -294,7 +296,7 @@ export default { }, methods: { handleCheck(name) { - if (this.initShow) { + if (this.formControl) { return false } this.treeType = name