From 3acd33943d3e168d009e1e008ab8a25771be8943 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 26 Sep 2021 17:55:36 +0800
Subject: [PATCH] 保安公司  单位信息  修改 强行使用dept_id

---
 src/views/securityUnitChild/index.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/views/securityUnitChild/index.vue b/src/views/securityUnitChild/index.vue
index 35b019a..c458472 100644
--- a/src/views/securityUnitChild/index.vue
+++ b/src/views/securityUnitChild/index.vue
@@ -435,6 +435,9 @@
   },
   methods: {
     submit0(row, done, loading) {
+      if (this.userInfo.role_name == "保安公司管理员") {
+        row["departmentid"] = this.userInfo.dept_id;
+      }
       console.log(row);
       update(row).then(
         () => {
@@ -444,6 +447,7 @@
             type: "success",
             message: "操作成功!",
           });
+          this.onloads();
           done();
         },
         (error) => {

--
Gitblit v1.9.3