xiangyiyong 8 months ago
parent
commit
8924cc36f3

+ 8 - 2
src/views/dcSystem/installationProcess/process/machineAccount/index.vue

@@ -259,8 +259,14 @@ export default {
     },
 
     detail(val) {
-      val.id ? this.editData = val : this.editData = this.multipleSelection[0]
-      val.id ? this.processInstanceId = val.processInstanceId : this.processInstanceId = this.multipleSelection[0].processInstanceId
+      if (val.id) {
+        this.editData = val
+        this.processInstanceId = val.processInstanceId
+      } else {
+        this.editData = this.multipleSelection[0]
+        this.processInstanceId = this.multipleSelection[0].processInstanceId
+      }
+      this.processInstanceId = this.processInstanceId || 0
       this.dialogTitle = '详情'
       this.dialogVisible = true
       this.isLook = false