mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	v3.7.0 更多操作按钮添加权限控制
This commit is contained in:
		| @@ -56,7 +56,8 @@ | |||||||
|                      v-if="scope.row.status === InfJobStatusEnum.NORMAL" v-hasPermi="['infra:job:update']">暂停</el-button> |                      v-if="scope.row.status === InfJobStatusEnum.NORMAL" v-hasPermi="['infra:job:update']">暂停</el-button> | ||||||
|           <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |           <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" | ||||||
|                      v-hasPermi="['infra:job:delete']">删除</el-button> |                      v-hasPermi="['infra:job:delete']">删除</el-button> | ||||||
|           <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"> |           <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" | ||||||
|  |                        v-hasPermi="['infra:job:trigger', 'infra:job:query']"> | ||||||
|             <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> | ||||||
|   | |||||||
| @@ -73,7 +73,8 @@ | |||||||
|             <template slot-scope="scope"> |             <template slot-scope="scope"> | ||||||
|               <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |               <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" | ||||||
|                          v-hasPermi="['system:user:update']">修改</el-button> |                          v-hasPermi="['system:user:update']">修改</el-button> | ||||||
|               <el-dropdown  @command="(command) => handleCommand(command, scope.$index, scope.row)"> |               <el-dropdown  @command="(command) => handleCommand(command, scope.$index, scope.row)" | ||||||
|  |                             v-hasPermi="['system:user:delete', 'system:user:update-password', 'system:permission:assign-user-role']"> | ||||||
|                 <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> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV