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/localCompany.vue               |    5 ++++-
 src/views/securityUnit/transRegionalcompany.vue       |    5 ++++-
 src/views/securityUnit/selfRecruitedSecurityGuard.vue |    5 ++++-
 src/views/securityUnit/armedEscort.vue                |    5 ++++-
 src/views/securityUnit/securityTraining.vue           |    5 ++++-
 5 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/src/views/securityUnit/armedEscort.vue b/src/views/securityUnit/armedEscort.vue
index 54bcdf4..5e28d14 100644
--- a/src/views/securityUnit/armedEscort.vue
+++ b/src/views/securityUnit/armedEscort.vue
@@ -365,7 +365,9 @@
       })
         .then(() => {
           console.log(row);
-          return remove(row.creditcode, row.departmentid);
+          return remove(row.creditcode, row.departmentid).then((res) => {
+            this.refreshChange();
+          });
         })
         .then(() => {
           this.onLoad(this.page);
@@ -467,6 +469,7 @@
             message: "提交成功",
             type: "success",
           });
+          this.refreshChange();
           done();
           this.forms = false;
         } else {
diff --git a/src/views/securityUnit/localCompany.vue b/src/views/securityUnit/localCompany.vue
index 2fe7f96..0570638 100644
--- a/src/views/securityUnit/localCompany.vue
+++ b/src/views/securityUnit/localCompany.vue
@@ -390,7 +390,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);
@@ -467,6 +469,7 @@
             message: "提交成功",
             type: "success",
           });
+          this.refreshChange();
           done();
           this.forms = false;
         } else {
diff --git a/src/views/securityUnit/securityTraining.vue b/src/views/securityUnit/securityTraining.vue
index 0d04cee..173c7fe 100644
--- a/src/views/securityUnit/securityTraining.vue
+++ b/src/views/securityUnit/securityTraining.vue
@@ -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);
diff --git a/src/views/securityUnit/selfRecruitedSecurityGuard.vue b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
index 0799c37..90eb866 100644
--- a/src/views/securityUnit/selfRecruitedSecurityGuard.vue
+++ b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -438,7 +438,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);
@@ -515,6 +517,7 @@
             message: "提交成功",
             type: "success",
           });
+          this.refreshChange();
           done();
           this.forms = false;
         } else {
diff --git a/src/views/securityUnit/transRegionalcompany.vue b/src/views/securityUnit/transRegionalcompany.vue
index 2d23407..19769d7 100644
--- a/src/views/securityUnit/transRegionalcompany.vue
+++ b/src/views/securityUnit/transRegionalcompany.vue
@@ -369,6 +369,7 @@
             message: "提交成功",
             type: "success",
           });
+          this.refreshChange();
           done();
           this.forms = false;
         } else {
@@ -441,7 +442,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