无人机管理后台前端(已迁走)
zhongrj
2024-11-21 3af456e594e77c97254d43df5bc36a29ff6964c0
src/views/authority/role.vue
@@ -30,11 +30,12 @@
        </el-button>
        <el-button
          icon="el-icon-setting"
          @click="handleRole"
          v-if="userInfo.role_name.includes('admin')"
          @click="handleRole"
          plain
          >权限设置
        </el-button>
        <!--  -->
      </template>
    </avue-crud>
    <el-dialog title="角色权限配置" append-to-body v-model="box" width="345px">
@@ -50,7 +51,7 @@
          >
          </el-tree>
        </el-tab-pane>
        <el-tab-pane label="数据权限">
        <!-- <el-tab-pane label="数据权限">
          <el-tree
            :data="dataScopeGrantList"
            show-checkbox
@@ -71,7 +72,7 @@
            :props="props"
          >
          </el-tree>
        </el-tab-pane>
        </el-tab-pane> -->
      </el-tabs>
      <template #footer>
        <span class="dialog-footer">
@@ -253,8 +254,10 @@
    },
    submit() {
      const menuList = this.$refs.treeMenu.getCheckedKeys();
      const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
      const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
      // const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
      const dataScopeList = [];
      // const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
      const apiScopeList = [];
      grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => {
        this.box = false;
        this.$message({