|
|
|
@ -62,7 +62,7 @@
|
|
|
|
v-hasPermi="['system:role:add']"
|
|
|
|
v-hasPermi="['system:role:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
>新增</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
|
@ -72,7 +72,7 @@
|
|
|
|
@click="handleUpdate"
|
|
|
|
@click="handleUpdate"
|
|
|
|
v-hasPermi="['system:role:edit']"
|
|
|
|
v-hasPermi="['system:role:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
type="danger"
|
|
|
|
@ -97,8 +97,9 @@
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange">
|
|
|
|
<!-- <el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange">-->
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table v-loading="loading" :data="roleList" border>
|
|
|
|
|
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
|
|
|
<el-table-column label="角色编号" prop="roleId" width="120" />
|
|
|
|
<el-table-column label="角色编号" prop="roleId" width="120" />
|
|
|
|
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
|
|
|
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
|
|
|
<el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
|
|
|
<el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
|
|
|
@ -121,6 +122,7 @@
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
|
|
|
|
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="!(scope.row.roleKey==='sysAdmin'&&$store.state.user.roles.indexOf('sysAdmin')>-1)"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|