From 14aba35d861904c017b5212aa83691d846befec5 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期四, 04 九月 2025 20:53:11 +0800
Subject: [PATCH] 1
---
src/views/authority/role.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/authority/role.vue b/src/views/authority/role.vue
index 67a3da7..0fd3a6d 100644
--- a/src/views/authority/role.vue
+++ b/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;
});
});
--
Gitblit v1.9.3