From f963f115a27bc40a23f3d150e8f93842d13c49c4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 08 May 2024 16:58:13 +0800
Subject: [PATCH] 公安相关首页更改
---
src/views/wel/index.vue | 36 ++++++++++++++++++++++++++++++++++++
src/store/modules/user.js | 1 +
public/img/zgqk.png | 0
public/img/csjc.png | 0
public/img/dagl.png | 0
5 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/public/img/csjc.png b/public/img/csjc.png
new file mode 100644
index 0000000..6ee5346
--- /dev/null
+++ b/public/img/csjc.png
Binary files differ
diff --git a/public/img/dagl.png b/public/img/dagl.png
new file mode 100644
index 0000000..dfee05f
--- /dev/null
+++ b/public/img/dagl.png
Binary files differ
diff --git a/public/img/zgqk.png b/public/img/zgqk.png
new file mode 100644
index 0000000..7a91cd7
--- /dev/null
+++ b/public/img/zgqk.png
Binary files differ
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 9400031..4105007 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -105,6 +105,7 @@
if (
findChildrenRole(data.role_name, "admin") ||
findChildrenRole(data.role_name, "administrator") ||
+ findChildrenRole(data.role_name, "gagly") ||
findChildrenRole(data.role_name, "jdgly") ||
findChildrenRole(data.role_name, "sqgly")
) {
diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index 9eceab5..89f6fad 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -105,9 +105,45 @@
}
]
+ if (this.globalUserInfo.role_name.indexOf('gagly') != -1) {
+ this.homeMenuData = [
+ {
+ imageUrl: 'img/yijianbaoj.png',
+ url: '/userHouse/houseHoldList',
+ title: '住户管理',
+ newOpen: false,
+ },
+ {
+ imageUrl: 'img/fangyi.png',
+ url: '/userHouse/houseList',
+ title: '房屋管理',
+ newOpen: false,
+ },
+ {
+ imageUrl: 'img/csjc.png',
+ url: '/publicSecurity/ninePlaceManage/patrolRecord',
+ title: '场所检查',
+ newOpen: false,
+ },
+ {
+ imageUrl: 'img/dagl.png',
+ url: '/publicSecurity/ninePlaceManage/archivesManage',
+ title: '档案管理',
+ newOpen: false,
+ },
+ {
+ imageUrl: 'img/zgqk.png',
+ url: '/publicSecurity/ninePlaceManage/hiddenDangerStatistics',
+ title: '整改情况',
+ newOpen: false,
+ }
+ ]
+ }
+
if (this.globalUserInfo.role_name == 'administrator' ||
this.globalUserInfo.role_name.indexOf('jdgly') != -1 ||
this.globalUserInfo.role_name.indexOf('sqgly') != -1 ||
+ this.globalUserInfo.role_name.indexOf('gagly') != -1 ||
this.globalUserInfo.role_name.split(',').find(item => item == 'admin')) {
this.homeMenuData.push({
imageUrl: 'img/jsc.png',
--
Gitblit v1.9.3