1
李喆(开发组)
2025-09-04 14aba35d861904c017b5212aa83691d846befec5
src/views/authority/role.vue
@@ -28,13 +28,13 @@
          @click="handleDelete"
          >删 除
        </el-button>
        <el-button
        <!-- <el-button
          icon="el-icon-setting"
          @click="handleRole"
          v-if="userInfo.authority.includes('admin')"
          plain
          >权限设置
        </el-button>
        </el-button> -->
      </template>
      <template #menu="{ row }">
        <el-button
@@ -114,6 +114,7 @@
export default {
  data() {
    return {
      roleIds: [],
      form: {},
      box: false,
      props: {
@@ -143,7 +144,7 @@
        tree: true,
        border: true,
        index: true,
        selection: true,
        selection: false,
        viewBtn: true,
        labelWidth: 120,
        searchLabelWidth: 120,
@@ -294,7 +295,8 @@
      const menuList = this.$refs.treeMenu.getCheckedKeys();
      const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
      const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
      grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => {
      //grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => {
      grant(this.roleIds, menuList, dataScopeList, apiScopeList).then(() => {
        this.box = false;
        this.$message({
          type: 'success',
@@ -414,6 +416,7 @@
          this.dataScopeTreeObj = res.data.data.dataScope;
          this.apiScopeTreeObj = res.data.data.apiScope;
          this.selectionList.push(row);
          this.roleIds = [row.id];
          this.box = true;
        });
      });