From b6ed539c8ca4f41c3e994b263f2ae9d659a63c74 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 22 Jan 2022 11:02:07 +0800
Subject: [PATCH] 通知公告,政策发布,通知通报针对公司过滤

---
 src/views/desk/policyRelease.vue |    8 ++++++++
 src/views/desk/notice.vue        |    9 +++++++++
 src/views/desk/notification.vue  |    8 ++++++++
 3 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/views/desk/notice.vue b/src/views/desk/notice.vue
index 375bc45..3c26640 100644
--- a/src/views/desk/notice.vue
+++ b/src/views/desk/notice.vue
@@ -396,6 +396,15 @@
           ? (that.deptCategory = true)
           : (that.deptCategory = false);
 
+        if (
+          this.userInfo.role_name == "保安公司管理员" ||
+          this.userInfo.role_name == "分公司管理员" ||
+          this.userInfo.role_name == "保安" ||
+          this.userInfo.role_name == "装备管理员"
+        ) {
+          params['deptId'] = this.userInfo.dept_id;
+        }
+
         const { releaseTimeRange } = this.query;
         params["jurisdiction"] = this.jurisdiction;
         params["type"] = 1;
diff --git a/src/views/desk/notification.vue b/src/views/desk/notification.vue
index 4c17b9b..e5cd358 100644
--- a/src/views/desk/notification.vue
+++ b/src/views/desk/notification.vue
@@ -419,6 +419,14 @@
           ? (that.deptCategory = true)
           : (that.deptCategory = false);
 
+        if (
+          this.userInfo.role_name == "保安公司管理员" ||
+          this.userInfo.role_name == "分公司管理员" ||
+          this.userInfo.role_name == "保安" ||
+          this.userInfo.role_name == "装备管理员"
+        ) {
+          params['deptId'] = this.userInfo.dept_id;
+        }
         const { releaseTimeRange } = this.query;
         params["jurisdiction"] = this.jurisdiction;
         params["type"] = 3;
diff --git a/src/views/desk/policyRelease.vue b/src/views/desk/policyRelease.vue
index 5b7db80..faa2725 100644
--- a/src/views/desk/policyRelease.vue
+++ b/src/views/desk/policyRelease.vue
@@ -400,6 +400,14 @@
           ? (that.deptCategory = true)
           : (that.deptCategory = false);
 
+        if (
+          this.userInfo.role_name == "保安公司管理员" ||
+          this.userInfo.role_name == "分公司管理员" ||
+          this.userInfo.role_name == "保安" ||
+          this.userInfo.role_name == "装备管理员"
+        ) {
+          params['deptId'] = this.userInfo.dept_id;
+        }
         const { releaseTimeRange } = this.query;
         params["jurisdiction"] = this.jurisdiction;
         params["type"] = 2;

--
Gitblit v1.9.3