cy
2023-11-25 e65e3c1a492714364483b892bd3fa01adb643191
admin-web/src/views/systemManger/server/user/edit.vue
@@ -87,6 +87,7 @@
        },
        data() {
            return {
                deptmentOptions:[],
                checkAll: false,
                checkedList: [],
                roleList: [
@@ -148,17 +149,18 @@
        methods: {
            // 获取所有角色
            getAllRole() {
              const user = this.$store.getters.userInfo
              // const user = this.$store.getters.userInfo
              // this.data_scope = 1
              // if (user.lv == 1) {
              //   this.data_scope = 1
              // }
              // if (user.lv == 2) {
              //   this.data_scope = 2
              // }
              // if (user.lv == 3) {
              //   this.data_scope = 3
              // }
              this.data_scope = 1
              if (user.lv == 1) {
                this.data_scope = 1
              }
              if (user.lv == 2) {
                this.data_scope = 2
              }
              if (user.lv == 3) {
                this.data_scope = 3
              }
              role.listRoleByDataScope({dataScope: this.data_scope}).then(response => {
                  if (response) {
                    this.roleOptions = response;