From cebd7462e2b0d50c959689c53ace4eeaf2fcb8e1 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 25 Oct 2021 10:30:40 +0800
Subject: [PATCH] 新增和删除添加刷新数据

---
 src/views/securityUnit/securityTraining.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/views/securityUnit/securityTraining.vue b/src/views/securityUnit/securityTraining.vue
index b441e8b..173c7fe 100644
--- a/src/views/securityUnit/securityTraining.vue
+++ b/src/views/securityUnit/securityTraining.vue
@@ -272,8 +272,8 @@
       },
     };
   },
-    created() {
-    this.option0.column[4].value = 2;
+  created() {
+    this.option0.column[4].value = 1;
     this.option0.column[4].disabled = true;
   },
   computed: {
@@ -367,6 +367,7 @@
             message: "提交成功",
             type: "success",
           });
+          this.refreshChange();
           done();
           this.forms = false;
         } else {
@@ -439,7 +440,9 @@
       })
         .then(() => {
           // console.log(this.ids);
-          return remove(this.ids, this.ids1);
+          return remove(this.ids, this.ids1).then((res) => {
+            this.refreshChange();
+          });
         })
         .then(() => {
           this.onLoad(this.page);

--
Gitblit v1.9.3