Commit f736e0a1c4bbecb7d972a024828fcb14683fafda

Authored by YunaiV
1 parent 969f9d03

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

yudao-ui-admin/src/views/infra/job/index.vue
@@ -56,7 +56,8 @@ @@ -56,7 +56,8 @@
56 v-if="scope.row.status === InfJobStatusEnum.NORMAL" v-hasPermi="['infra:job:update']">暂停</el-button> 56 v-if="scope.row.status === InfJobStatusEnum.NORMAL" v-hasPermi="['infra:job:update']">暂停</el-button>
57 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" 57 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
58 v-hasPermi="['infra:job:delete']">删除</el-button> 58 v-hasPermi="['infra:job:delete']">删除</el-button>
59 - <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"> 59 + <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"
  60 + v-hasPermi="['infra:job:trigger', 'infra:job:query']">
60 <span class="el-dropdown-link"> 61 <span class="el-dropdown-link">
61 <i class="el-icon-d-arrow-right el-icon--right"></i>更多 62 <i class="el-icon-d-arrow-right el-icon--right"></i>更多
62 </span> 63 </span>
yudao-ui-admin/src/views/system/user/index.vue
@@ -73,7 +73,8 @@ @@ -73,7 +73,8 @@
73 <template slot-scope="scope"> 73 <template slot-scope="scope">
74 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" 74 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
75 v-hasPermi="['system:user:update']">修改</el-button> 75 v-hasPermi="['system:user:update']">修改</el-button>
76 - <el-dropdown @command="(command) => handleCommand(command, scope.$index, scope.row)"> 76 + <el-dropdown @command="(command) => handleCommand(command, scope.$index, scope.row)"
  77 + v-hasPermi="['system:user:delete', 'system:user:update-password', 'system:permission:assign-user-role']">
77 <span class="el-dropdown-link"> 78 <span class="el-dropdown-link">
78 <i class="el-icon-d-arrow-right el-icon--right"></i>更多 79 <i class="el-icon-d-arrow-right el-icon--right"></i>更多
79 </span> 80 </span>