From 25d9edd5c9546d7f2e693e90bc5c580bdc13dbe7 Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期二, 13 七月 2021 10:26:10 +0800 Subject: [PATCH] !259 图片上传 - 多图时无法删除相应图片修复 Merge pull request !259 from 严俊东/N/A --- ruoyi-ui/src/views/system/user/index.vue | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index 7f419c9..7208dcf 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -167,7 +167,7 @@ width="160" class-name="small-padding fixed-width" > - <template slot-scope="scope"> + <template slot-scope="scope" v-if="scope.row.userId !== 1"> <el-button size="mini" type="text" @@ -175,13 +175,18 @@ @click="handleUpdate(scope.row)" v-hasPermi="['system:user:edit']" >修改</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)"> <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> <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" v-hasPermi="['system:user:resetPwd']">重置密码</el-dropdown-item> <el-dropdown-item command="handleAuthRole" icon="el-icon-circle-check" @@ -562,9 +567,6 @@ // 更多操作触发 handleCommand(command, row) { switch (command) { - case "handleDelete": - this.handleDelete(row); - break; case "handleResetPwd": this.handleResetPwd(row); break; -- Gitblit v1.9.2