zengh
2022-05-24 9aa41fe7b4c084d28a8395d9fbb6cbb1d8116ae0
角色权限修改
2 files modified
4 ■■■■ changed files
src/page/index/tags.vue 2 ●●● patch | view | raw | blame | history
src/views/system/user.vue 2 ●●● patch | view | raw | blame | history
src/page/index/tags.vue
@@ -66,7 +66,7 @@
    mounted() {
      this.setActive();
      this.tagList.forEach((item, index) => {
        if (item.label == "首页" && (this.userInfo.role_name == "policeAdmin" || this.userInfo.role_name == "administrator")){
        if (item.label == "首页" && (this.userInfo.role_name == "police" || this.userInfo.role_name == "policeAdmin" || this.userInfo.role_name == "administrator")){
          this.$store.commit("set_hideHome", false);
        }else if (item.label == "首页" && (this.userInfo.role_name == "操作员")) {
          this.tagList.splice(index, 1);
src/views/system/user.vue
@@ -679,7 +679,7 @@
                },
                checkStrictly: true,
                slot: true,
                parent: false,
                parent: true,
                rules: [
                  {
                    required: true,