| | |
| | | v-model="queryParams.userName"
|
| | | placeholder="请输入用户名称"
|
| | | clearable
|
| | | size="small"
|
| | | style="width: 240px"
|
| | | @keyup.enter="handleQuery"
|
| | | />
|
| | |
| | | v-model="queryParams.phonenumber"
|
| | | placeholder="请输入手机号码"
|
| | | clearable
|
| | | size="small"
|
| | | style="width: 240px"
|
| | | @keyup.enter="handleQuery"
|
| | | />
|
| | | </el-form-item>
|
| | | <el-form-item>
|
| | | <el-button type="primary" icon="Search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="Refresh" size="mini" @click="resetQuery">重置</el-button>
|
| | | <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
| | | </el-form-item>
|
| | | </el-form>
|
| | |
|
| | |
| | | type="primary"
|
| | | plain
|
| | | icon="Plus"
|
| | | size="mini"
|
| | | @click="openSelectUser"
|
| | | v-hasPermi="['system:role:add']"
|
| | | >添加用户</el-button>
|
| | |
| | | type="danger"
|
| | | plain
|
| | | icon="CircleClose"
|
| | | size="mini"
|
| | | :disabled="multiple"
|
| | | @click="cancelAuthUserAll"
|
| | | v-hasPermi="['system:role:remove']"
|
| | |
| | | type="warning"
|
| | | plain
|
| | | icon="Close"
|
| | | size="mini" |
| | | @click="handleClose"
|
| | | >关闭</el-button>
|
| | | </el-col>
|
| | |
| | | </el-table-column>
|
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-button
|
| | | size="mini"
|
| | | 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;
|