Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cocktail-party-server
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
cocktail-party
cocktail-party-server
Commits
ce6bea4b
提交
ce6bea4b
authored
7月 05, 2021
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
限制超级管理员不允许操作
上级
9c7901f5
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
8 行删除
+10
-8
index.vue
ruoyi-ui/src/views/system/role/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/user/index.vue
+9
-7
没有找到文件。
ruoyi-ui/src/views/system/role/index.vue
浏览文件 @
ce6bea4b
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
</
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"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.roleId !== 1"
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
...
...
ruoyi-ui/src/views/system/user/index.vue
浏览文件 @
ce6bea4b
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
width=
"160"
width=
"160"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.userId !== 1"
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
...
@@ -175,13 +175,18 @@
...
@@ -175,13 +175,18 @@
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:user:edit']"
v-hasPermi=
"['system:user:edit']"
>
修改
</el-button>
>
修改
</el-button>
<el-button
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)"
>
<el-dropdown
size=
"mini"
@
command=
"(command) => handleCommand(command, scope.row)"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<i
class=
"el-icon-d-arrow-right el-icon--right"
></i>
更多
操作
<i
class=
"el-icon-d-arrow-right el-icon--right"
></i>
更多
</span>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"handleDelete"
v-if=
"scope.row.userId !== 1"
icon=
"el-icon-delete"
v-hasPermi=
"['system:user:remove']"
>
删除用户
</el-dropdown-item>
<el-dropdown-item
command=
"handleResetPwd"
icon=
"el-icon-key"
<el-dropdown-item
command=
"handleResetPwd"
icon=
"el-icon-key"
v-hasPermi=
"['system:user:resetPwd']"
>
重置密码
</el-dropdown-item>
v-hasPermi=
"['system:user:resetPwd']"
>
重置密码
</el-dropdown-item>
<el-dropdown-item
command=
"handleAuthRole"
icon=
"el-icon-circle-check"
<el-dropdown-item
command=
"handleAuthRole"
icon=
"el-icon-circle-check"
...
@@ -562,9 +567,6 @@ export default {
...
@@ -562,9 +567,6 @@ export default {
// 更多操作触发
// 更多操作触发
handleCommand
(
command
,
row
)
{
handleCommand
(
command
,
row
)
{
switch
(
command
)
{
switch
(
command
)
{
case
"handleDelete"
:
this
.
handleDelete
(
row
);
break
;
case
"handleResetPwd"
:
case
"handleResetPwd"
:
this
.
handleResetPwd
(
row
);
this
.
handleResetPwd
(
row
);
break
;
break
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论