|
|
|
|
@ -166,6 +166,7 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope" v-if="scope.row.userId !== 1">
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="!(scope.row.userName==='sysAdmin' && $store.state.user.name==='sysAdmin')"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@ -173,13 +174,24 @@
|
|
|
|
|
v-hasPermi="['system:user:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="!(scope.row.userName==='sysAdmin' && $store.state.user.name==='sysAdmin')"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['system:user:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:user:resetPwd', 'system:user:edit']">
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="(scope.row.userName==='sysAdmin' && $store.state.user.name==='sysAdmin')"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-key"
|
|
|
|
|
@click="handleResetPwd(scope.row)"
|
|
|
|
|
v-hasPermi="['system:user:resetPwd']"
|
|
|
|
|
>重置密码</el-button>
|
|
|
|
|
|
|
|
|
|
<el-dropdown v-if="!(scope.row.userName==='sysAdmin' && $store.state.user.name==='sysAdmin')" size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:user:resetPwd', 'system:user:edit']">
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="handleResetPwd" icon="el-icon-key"
|
|
|
|
|
|