| | |
| | | </el-table-column>
|
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-button
|
| | | type="text"
|
| | | icon="CircleClose"
|
| | | @click="cancelAuthUser(scope.row)"
|
| | | v-hasPermi="['system:role:remove']"
|
| | | >取消授权</el-button>
|
| | | <el-button link type="primary" icon="CircleClose" @click="cancelAuthUser(scope.row)" v-hasPermi="['system:role:remove']">取消授权</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | loading.value = false;
|
| | | });
|
| | | }
|
| | | // 返回按钮
|
| | |
|
| | | /** 返回按钮 */
|
| | | function handleClose() {
|
| | | const obj = { path: "/system/role" };
|
| | | proxy.$tab.closeOpenPage(obj);
|
| | | }
|
| | |
|
| | | /** 搜索按钮操作 */
|
| | | function handleQuery() {
|
| | | queryParams.pageNum = 1;
|
| | | getList();
|
| | | }
|
| | |
|
| | | /** 重置按钮操作 */
|
| | | function resetQuery() {
|
| | | proxy.resetForm("queryRef");
|
| | | handleQuery();
|
| | | }
|
| | | // 多选框选中数据
|
| | |
|
| | | /** 多选框选中数据 */
|
| | | function handleSelectionChange(selection) {
|
| | | userIds.value = selection.map(item => item.userId);
|
| | | multiple.value = !selection.length;
|
| | | }
|
| | |
|
| | | /** 打开授权用户表弹窗 */
|
| | | function openSelectUser() {
|
| | | proxy.$refs["selectRef"].show();
|
| | | }
|
| | |
|
| | | /** 取消授权按钮操作 */
|
| | | function cancelAuthUser(row) {
|
| | | proxy.$modal.confirm('确认要取消该用户"' + row.userName + '"角色吗?').then(function () {
|
| | |
| | | proxy.$modal.msgSuccess("取消授权成功");
|
| | | }).catch(() => {});
|
| | | }
|
| | |
|
| | | /** 批量取消授权按钮操作 */
|
| | | function cancelAuthUserAll(row) {
|
| | | const roleId = queryParams.roleId;
|