角色修改

This commit is contained in:
cwchen 2025-10-09 09:11:11 +08:00
parent 222dcaa18c
commit 652eaa7200
1 changed files with 11 additions and 9 deletions

View File

@ -38,8 +38,8 @@
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="250" align="center"/>
<el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" width="250" align="center"/>
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" min-width="350" align="center"/>
<el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" min-width="350" align="center"/>
<!-- <el-table-column label="显示顺序" prop="roleSort" width="100" align="center"/> -->
<!-- <el-table-column label="状态" align="center" width="100">
<template slot-scope="scope">
@ -52,7 +52,7 @@
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" min-width="300">
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['system:role:edit']">修改</el-button>
@ -191,7 +191,7 @@ export default {
value: "1",
label: "全部数据权限"
},
{
/* {
value: "2",
label: "自定数据权限"
},
@ -206,7 +206,7 @@ export default {
{
value: "5",
label: "仅本人数据权限"
}
} */
],
//
menuOptions: [],
@ -216,9 +216,9 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
roleName: undefined,
roleKey: undefined,
status: undefined
roleName: null,
// roleKey: undefined,
// status: undefined
},
//
form: {},
@ -247,7 +247,9 @@ export default {
/** 查询角色列表 */
getList() {
this.loading = true
listRole(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
console.log(this.queryParams);
listRole(this.queryParams).then(response => {
this.roleList = response.rows
this.total = response.total
this.loading = false