Browse Source

更多操作按钮添加权限控制

RuoYi 4 years ago
parent
commit
e9621469b2

+ 2 - 2
ruoyi-ui/src/views/monitor/job/index.vue

@@ -125,7 +125,7 @@
125 125
             @click="handleDelete(scope.row)"
126 126
             v-hasPermi="['monitor:job:remove']"
127 127
           >删除</el-button>
128
-          <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
128
+          <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['monitor:job:changeStatus', 'monitor:job:query']">
129 129
             <span class="el-dropdown-link">
130 130
               <i class="el-icon-d-arrow-right el-icon--right"></i>更多
131 131
             </span>
@@ -498,7 +498,7 @@ export default {
498 498
         }).then(() => {
499 499
           this.getList();
500 500
           this.msgSuccess("删除成功");
501
-        })
501
+        }).catch(() => {});
502 502
     },
503 503
     /** 导出按钮操作 */
504 504
     handleExport() {

+ 1 - 1
ruoyi-ui/src/views/system/role/index.vue

@@ -138,7 +138,7 @@
138 138
             @click="handleDelete(scope.row)"
139 139
             v-hasPermi="['system:role:remove']"
140 140
           >删除</el-button>
141
-          <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
141
+          <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']">
142 142
             <span class="el-dropdown-link">
143 143
               <i class="el-icon-d-arrow-right el-icon--right"></i>更多
144 144
             </span>

+ 1 - 1
ruoyi-ui/src/views/system/user/index.vue

@@ -181,7 +181,7 @@
181 181
                 @click="handleDelete(scope.row)"
182 182
                 v-hasPermi="['system:user:remove']"
183 183
               >删除</el-button>
184
-              <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
184
+              <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:user:resetPwd', 'system:user:edit']">
185 185
                 <span class="el-dropdown-link">
186 186
                   <i class="el-icon-d-arrow-right el-icon--right"></i>更多
187 187
                 </span>