角色修改
This commit is contained in:
parent
222dcaa18c
commit
652eaa7200
|
|
@ -38,8 +38,8 @@
|
||||||
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
|
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="角色名称" prop="roleName" :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" width="250" 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="显示顺序" prop="roleSort" width="100" align="center"/> -->
|
||||||
<!-- <el-table-column label="状态" align="center" width="100">
|
<!-- <el-table-column label="状态" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
|
||||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['system:role:edit']">修改</el-button>
|
v-hasPermi="['system:role:edit']">修改</el-button>
|
||||||
|
|
@ -191,7 +191,7 @@ export default {
|
||||||
value: "1",
|
value: "1",
|
||||||
label: "全部数据权限"
|
label: "全部数据权限"
|
||||||
},
|
},
|
||||||
{
|
/* {
|
||||||
value: "2",
|
value: "2",
|
||||||
label: "自定数据权限"
|
label: "自定数据权限"
|
||||||
},
|
},
|
||||||
|
|
@ -206,7 +206,7 @@ export default {
|
||||||
{
|
{
|
||||||
value: "5",
|
value: "5",
|
||||||
label: "仅本人数据权限"
|
label: "仅本人数据权限"
|
||||||
}
|
} */
|
||||||
],
|
],
|
||||||
// 菜单列表
|
// 菜单列表
|
||||||
menuOptions: [],
|
menuOptions: [],
|
||||||
|
|
@ -216,9 +216,9 @@ export default {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
roleName: undefined,
|
roleName: null,
|
||||||
roleKey: undefined,
|
// roleKey: undefined,
|
||||||
status: undefined
|
// status: undefined
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
@ -247,7 +247,9 @@ export default {
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
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.roleList = response.rows
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue