| | |
| | | plain
|
| | | icon="Plus"
|
| | | @click="openSelectUser"
|
| | | v-hasPermi="['system:role:add']"
|
| | | >添加用户</el-button>
|
| | | </el-col>
|
| | | <el-col :span="1.5">
|
| | |
| | | icon="CircleClose"
|
| | | :disabled="multiple"
|
| | | @click="cancelAuthUserAll"
|
| | | v-hasPermi="['system:role:remove']"
|
| | | >批量取消授权</el-button>
|
| | | </el-col>
|
| | | <el-col :span="1.5">
|
| | |
| | | </el-table-column>
|
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-button link type="primary" icon="CircleClose" @click="cancelAuthUser(scope.row)" v-hasPermi="['system:role:remove']">取消授权</el-button>
|
| | | <el-button link type="primary" icon="CircleClose" @click="cancelAuthUser(scope.row)">取消授权</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | <script setup name="AuthUser">
|
| | | import selectUser from "./selectUser"
|
| | | import { allocatedUserList, authUserCancel, authUserCancelAll } from "@/api/system/role"
|
| | | import {onMounted} from "vue";
|
| | |
|
| | | const route = useRoute()
|
| | | const { proxy } = getCurrentInstance()
|
| | |
| | | }).catch(() => {})
|
| | | }
|
| | |
|
| | | getList()
|
| | | onMounted(() => {
|
| | | getList();
|
| | | });
|
| | | </script>
|