Przeglądaj źródła

通告新增bug

codeMan 8 miesięcy temu
rodzic
commit
34df840bb1
1 zmienionych plików z 29 dodań i 1 usunięć
  1. 29 1
      src/MAR/noticeManage/modules/addNotice.vue

+ 29 - 1
src/MAR/noticeManage/modules/addNotice.vue

@@ -274,7 +274,7 @@ let modeVisible = ref(false)
 let classList = inject('classList')
 let a = ref({a:1})
 let from = ref({
-  "title": "1111",
+  "title": "",
   "notes": "",
   "istextrequired": 1,
   "isattrequired": 1,
@@ -297,6 +297,20 @@ watch(() => modeVisible.value,(val) => {
   if (!val) {
     emit('back',from.value.sat_noticeid,save.value)
     save.value  = false
+    from.value = {
+      "title": "",
+      "notes": "",
+      "istextrequired": 1,
+      "isattrequired": 1,
+      "onceonly": 1,
+      "sat_submiteditmodelid": "0",
+      "begdate": "",
+      "enddate": "",
+      "issecret": false,
+      "status":'',
+      "sat_notice_classid":'',
+      "contentstr":''
+    }
   } 
 })
 
@@ -381,6 +395,20 @@ const submit = async () => {
         }
       })
     }
+    from.value = {
+      "title": "",
+      "notes": "",
+      "istextrequired": 1,
+      "isattrequired": 1,
+      "onceonly": 1,
+      "sat_submiteditmodelid": "0",
+      "begdate": "",
+      "enddate": "",
+      "issecret": false,
+      "status":'',
+      "sat_notice_classid":'',
+      "contentstr":''
+    }
     emit('onSuccess')
     save.value = true
     modeVisible.value = false