zhuliu 1 year ago
parent
commit
5b7e446d5a
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/views/event/components/dialog/addEvent.vue

+ 6 - 4
src/views/event/components/dialog/addEvent.vue

@@ -291,15 +291,17 @@ export default {
         } else {
           this.title = '批量新增事件'
         }
-        this.formData = [
-          {
+        var obj = {
             name: '',
             eventDate: '',
             description: '',
             clientId:'',
-            scenarioId: data.scenarioId,
+            scenarioId: '',
           }
-        ]
+        if(data.scenarioId && data.scenarioId.length>0){
+          obj.scenarioId = data.scenarioId[0]
+        }
+        this.formData = [obj]
       }
       this.getAdminClientList()
       this.dialogVisible = true