Browse Source

事件编辑的修改

zhuliu 1 year ago
parent
commit
ba6ade1f70

+ 2 - 1
src/views/event/components/dialog/addEvent.vue

@@ -266,8 +266,9 @@ export default {
       })
     },
     //打开弹窗,判断是编辑还是添加,同时判断是批量添加还是添加单个事件(type==1是单个,type==2是批量)
-    async open(data, type) {
+    async open(data1, type) {
       this.type = type
+      var data = JSON.parse(JSON.stringify(data1))
       if (data && data.id) {
         this.title = '编辑事件'
         if(data.clientId){

+ 1 - 1
src/views/event/components/view/table.vue

@@ -139,7 +139,7 @@ export default {
   },
   watch: {
     handleMessage(val){
-      if(val){
+      if(val && this.row){
         this.updateData()
       }
     }