Просмотр исходного кода

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

RuoYi лет назад: 4
Родитель
Сommit
e9621469b2

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

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

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

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

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

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