Forráskód Böngészése

账号查看权限控制

songxy 1 hónapja
szülő
commit
357ddab9a6

+ 4 - 4
BJYSYBZ_C/src/views/BjWlydManageView/components/FourContent.vue

@@ -274,7 +274,7 @@ export default {
       let roles = users.roles.join(',');
       if (roles.indexOf('admin') > -1) {
       } else {
-        if (users.nickName == '滨江地块监督') {
+        if (['滨江地块监督', '零磁谷'].includes(users.nickName)) {
           this.query.gddw = '';
         } else {
           this.query.gddw = users.nickName;
@@ -410,7 +410,7 @@ export default {
       let p = {
         ...this.query,
       };
-      if (this.userInfo && this.userInfo['nickName'] == '滨江地块监督') {
+      if (this.userInfo && ['滨江地块监督', '零磁谷'].includes(this.userInfo['nickName'])) {
         p['gddw'] = ''
       }
       const urlApi = `/api/ybz-bj/manageHZ`;
@@ -428,7 +428,7 @@ export default {
         pageIndex: this.config.page.index,
         pageSize: this.config.page.count,
       };
-      if (this.userInfo && this.userInfo['nickName'] == '滨江地块监督') {
+      if (this.userInfo && ['滨江地块监督', '零磁谷'].includes(this.userInfo['nickName'])) {
         p['gddw'] = ''
       }
       this.$ajax.get(urlApi, p, this, false).then((result) => {
@@ -442,7 +442,7 @@ export default {
       let p = {
         ...this.query
       };
-      if (this.userInfo && this.userInfo['nickName'] == '滨江地块监督') {
+      if (this.userInfo && ['滨江地块监督', '零磁谷'].includes(this.userInfo['nickName'])) {
         p['gddw'] = ''
       }
       const result = await this.$ajax.get(urlApi, p, this, false);