|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryRef" v-show="showSearch" :inline="true" label-width="68px">
|
|
|
|
<el-form
|
|
|
|
:model="queryParams"
|
|
|
|
ref="queryRef"
|
|
|
|
v-show="showSearch"
|
|
|
|
:inline="true"
|
|
|
|
label-width="80px"
|
|
|
|
>
|
|
|
|
<el-form-item label="角色名称" prop="roleName">
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.roleName"
|
|
...
|
...
|
@@ -45,7 +51,9 @@ |
|
|
|
></el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</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>
|
|
...
|
...
|
@@ -57,7 +65,8 @@ |
|
|
|
icon="Plus"
|
|
|
|
@click="handleAdd"
|
|
|
|
v-hasPermi="['system:role:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
>新增</el-button
|
|
|
|
>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
...
|
...
|
@@ -67,7 +76,8 @@ |
|
|
|
:disabled="single"
|
|
|
|
@click="handleUpdate"
|
|
|
|
v-hasPermi="['system:role:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button
|
|
|
|
>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
...
|
...
|
@@ -77,7 +87,8 @@ |
|
|
|
:disabled="multiple"
|
|
|
|
@click="handleDelete"
|
|
|
|
v-hasPermi="['system:role:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
>删除</el-button
|
|
|
|
>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
...
|
...
|
@@ -86,17 +97,35 @@ |
|
|
|
icon="Download"
|
|
|
|
@click="handleExport"
|
|
|
|
v-hasPermi="['system:role:export']"
|
|
|
|
>导出</el-button>
|
|
|
|
>导出</el-button
|
|
|
|
>
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar
|
|
|
|
v-model:showSearch="showSearch"
|
|
|
|
@queryTable="getList"
|
|
|
|
></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 表格数据 -->
|
|
|
|
<el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table
|
|
|
|
v-loading="loading"
|
|
|
|
:data="roleList"
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
>
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column label="角色编号" prop="roleId" width="120" />
|
|
|
|
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
|
|
|
<el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
|
|
|
<el-table-column
|
|
|
|
label="角色名称"
|
|
|
|
prop="roleName"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
width="150"
|
|
|
|
/>
|
|
|
|
<el-table-column
|
|
|
|
label="权限字符"
|
|
|
|
prop="roleKey"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
width="150"
|
|
|
|
/>
|
|
|
|
<el-table-column label="显示顺序" prop="roleSort" width="100" />
|
|
|
|
<el-table-column label="状态" align="center" width="100">
|
|
|
|
<template #default="scope">
|
|
...
|
...
|
@@ -113,19 +142,63 @@ |
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column
|
|
|
|
label="操作"
|
|
|
|
align="center"
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
>
|
|
|
|
<template #default="scope">
|
|
|
|
<el-tooltip content="修改" placement="top" v-if="scope.row.roleId !== 1">
|
|
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']"></el-button>
|
|
|
|
<el-tooltip
|
|
|
|
content="修改"
|
|
|
|
placement="top"
|
|
|
|
v-if="scope.row.roleId !== 1"
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
link
|
|
|
|
type="primary"
|
|
|
|
icon="Edit"
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
v-hasPermi="['system:role:edit']"
|
|
|
|
></el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip content="删除" placement="top" v-if="scope.row.roleId !== 1">
|
|
|
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']"></el-button>
|
|
|
|
<el-tooltip
|
|
|
|
content="删除"
|
|
|
|
placement="top"
|
|
|
|
v-if="scope.row.roleId !== 1"
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
link
|
|
|
|
type="primary"
|
|
|
|
icon="Delete"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
v-hasPermi="['system:role:remove']"
|
|
|
|
></el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip content="数据权限" placement="top" v-if="scope.row.roleId !== 1">
|
|
|
|
<el-button link type="primary" icon="CircleCheck" @click="handleDataScope(scope.row)" v-hasPermi="['system:role:edit']"></el-button>
|
|
|
|
<el-tooltip
|
|
|
|
content="数据权限"
|
|
|
|
placement="top"
|
|
|
|
v-if="scope.row.roleId !== 1"
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
link
|
|
|
|
type="primary"
|
|
|
|
icon="CircleCheck"
|
|
|
|
@click="handleDataScope(scope.row)"
|
|
|
|
v-hasPermi="['system:role:edit']"
|
|
|
|
></el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip content="分配用户" placement="top" v-if="scope.row.roleId !== 1">
|
|
|
|
<el-button link type="primary" icon="User" @click="handleAuthUser(scope.row)" v-hasPermi="['system:role:edit']"></el-button>
|
|
|
|
<el-tooltip
|
|
|
|
content="分配用户"
|
|
|
|
placement="top"
|
|
|
|
v-if="scope.row.roleId !== 1"
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
link
|
|
|
|
type="primary"
|
|
|
|
icon="User"
|
|
|
|
@click="handleAuthUser(scope.row)"
|
|
|
|
v-hasPermi="['system:role:edit']"
|
|
|
|
></el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
...
|
...
|
@@ -148,7 +221,10 @@ |
|
|
|
<el-form-item prop="roleKey">
|
|
|
|
<template #label>
|
|
|
|
<span>
|
|
|
|
<el-tooltip content="控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasRole('admin')`)" placement="top">
|
|
|
|
<el-tooltip
|
|
|
|
content="控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasRole('admin')`)"
|
|
|
|
placement="top"
|
|
|
|
>
|
|
|
|
<el-icon><question-filled /></el-icon>
|
|
|
|
</el-tooltip>
|
|
|
|
权限字符
|
|
...
|
...
|
@@ -157,7 +233,11 @@ |
|
|
|
<el-input v-model="form.roleKey" placeholder="请输入权限字符" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="角色顺序" prop="roleSort">
|
|
|
|
<el-input-number v-model="form.roleSort" controls-position="right" :min="0" />
|
|
|
|
<el-input-number
|
|
|
|
v-model="form.roleSort"
|
|
|
|
controls-position="right"
|
|
|
|
:min="0"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="状态">
|
|
|
|
<el-radio-group v-model="form.status">
|
|
...
|
...
|
@@ -165,13 +245,26 @@ |
|
|
|
v-for="dict in sys_normal_disable"
|
|
|
|
:key="dict.value"
|
|
|
|
:label="dict.value"
|
|
|
|
>{{ dict.label }}</el-radio>
|
|
|
|
>{{ dict.label }}</el-radio
|
|
|
|
>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="菜单权限">
|
|
|
|
<el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">展开/折叠</el-checkbox>
|
|
|
|
<el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">全选/全不选</el-checkbox>
|
|
|
|
<el-checkbox v-model="form.menuCheckStrictly" @change="handleCheckedTreeConnect($event, 'menu')">父子联动</el-checkbox>
|
|
|
|
<el-checkbox
|
|
|
|
v-model="menuExpand"
|
|
|
|
@change="handleCheckedTreeExpand($event, 'menu')"
|
|
|
|
>展开/折叠</el-checkbox
|
|
|
|
>
|
|
|
|
<el-checkbox
|
|
|
|
v-model="menuNodeAll"
|
|
|
|
@change="handleCheckedTreeNodeAll($event, 'menu')"
|
|
|
|
>全选/全不选</el-checkbox
|
|
|
|
>
|
|
|
|
<el-checkbox
|
|
|
|
v-model="form.menuCheckStrictly"
|
|
|
|
@change="handleCheckedTreeConnect($event, 'menu')"
|
|
|
|
>父子联动</el-checkbox
|
|
|
|
>
|
|
|
|
<el-tree
|
|
|
|
class="tree-border"
|
|
|
|
:data="menuOptions"
|
|
...
|
...
|
@@ -184,7 +277,11 @@ |
|
|
|
></el-tree>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="备注">
|
|
|
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
|
|
|
|
<el-input
|
|
|
|
v-model="form.remark"
|
|
|
|
type="textarea"
|
|
|
|
placeholder="请输入内容"
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
<template #footer>
|
|
...
|
...
|
@@ -196,7 +293,12 @@ |
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 分配角色数据权限对话框 -->
|
|
|
|
<el-dialog :title="title" v-model="openDataScope" width="500px" append-to-body>
|
|
|
|
<el-dialog
|
|
|
|
:title="title"
|
|
|
|
v-model="openDataScope"
|
|
|
|
width="500px"
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
<el-form :model="form" label-width="80px">
|
|
|
|
<el-form-item label="角色名称">
|
|
|
|
<el-input v-model="form.roleName" :disabled="true" />
|
|
...
|
...
|
@@ -215,9 +317,21 @@ |
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="数据权限" v-show="form.dataScope == 2">
|
|
|
|
<el-checkbox v-model="deptExpand" @change="handleCheckedTreeExpand($event, 'dept')">展开/折叠</el-checkbox>
|
|
|
|
<el-checkbox v-model="deptNodeAll" @change="handleCheckedTreeNodeAll($event, 'dept')">全选/全不选</el-checkbox>
|
|
|
|
<el-checkbox v-model="form.deptCheckStrictly" @change="handleCheckedTreeConnect($event, 'dept')">父子联动</el-checkbox>
|
|
|
|
<el-checkbox
|
|
|
|
v-model="deptExpand"
|
|
|
|
@change="handleCheckedTreeExpand($event, 'dept')"
|
|
|
|
>展开/折叠</el-checkbox
|
|
|
|
>
|
|
|
|
<el-checkbox
|
|
|
|
v-model="deptNodeAll"
|
|
|
|
@change="handleCheckedTreeNodeAll($event, 'dept')"
|
|
|
|
>全选/全不选</el-checkbox
|
|
|
|
>
|
|
|
|
<el-checkbox
|
|
|
|
v-model="form.deptCheckStrictly"
|
|
|
|
@change="handleCheckedTreeConnect($event, 'dept')"
|
|
|
|
>父子联动</el-checkbox
|
|
|
|
>
|
|
|
|
<el-tree
|
|
|
|
class="tree-border"
|
|
|
|
:data="deptOptions"
|
|
...
|
...
|
@@ -242,8 +356,20 @@ |
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup name="Role">
|
|
|
|
import { addRole, changeRoleStatus, dataScope, delRole, getRole, listRole, updateRole, deptTreeSelect } from "@/api/system/role";
|
|
|
|
import { roleMenuTreeselect, treeselect as menuTreeselect } from "@/api/system/menu";
|
|
|
|
import {
|
|
|
|
addRole,
|
|
|
|
changeRoleStatus,
|
|
|
|
dataScope,
|
|
|
|
delRole,
|
|
|
|
getRole,
|
|
|
|
listRole,
|
|
|
|
updateRole,
|
|
|
|
deptTreeSelect,
|
|
|
|
} from "@/api/system/role";
|
|
|
|
import {
|
|
|
|
roleMenuTreeselect,
|
|
|
|
treeselect as menuTreeselect,
|
|
|
|
} from "@/api/system/menu";
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
...
|
...
|
@@ -275,7 +401,7 @@ const dataScopeOptions = ref([ |
|
|
|
{ value: "2", label: "自定数据权限" },
|
|
|
|
{ value: "3", label: "本部门数据权限" },
|
|
|
|
{ value: "4", label: "本部门及以下数据权限" },
|
|
|
|
{ value: "5", label: "仅本人数据权限" }
|
|
|
|
{ value: "5", label: "仅本人数据权限" },
|
|
|
|
]);
|
|
|
|
|
|
|
|
const data = reactive({
|
|
...
|
...
|
@@ -285,12 +411,16 @@ const data = reactive({ |
|
|
|
pageSize: 10,
|
|
|
|
roleName: undefined,
|
|
|
|
roleKey: undefined,
|
|
|
|
status: undefined
|
|
|
|
status: undefined,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
roleName: [{ required: true, message: "角色名称不能为空", trigger: "blur" }],
|
|
|
|
roleName: [
|
|
|
|
{ required: true, message: "角色名称不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
roleKey: [{ required: true, message: "权限字符不能为空", trigger: "blur" }],
|
|
|
|
roleSort: [{ required: true, message: "角色顺序不能为空", trigger: "blur" }]
|
|
|
|
roleSort: [
|
|
|
|
{ required: true, message: "角色顺序不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
...
|
...
|
@@ -299,11 +429,13 @@ const { queryParams, form, rules } = toRefs(data); |
|
|
|
/** 查询角色列表 */
|
|
|
|
function getList() {
|
|
|
|
loading.value = true;
|
|
|
|
listRole(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
|
|
|
listRole(proxy.addDateRange(queryParams.value, dateRange.value)).then(
|
|
|
|
(response) => {
|
|
|
|
roleList.value = response.rows;
|
|
|
|
total.value = response.total;
|
|
|
|
loading.value = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
function handleQuery() {
|
|
...
|
...
|
@@ -319,33 +451,45 @@ function resetQuery() { |
|
|
|
/** 删除按钮操作 */
|
|
|
|
function handleDelete(row) {
|
|
|
|
const roleIds = row.roleId || ids.value;
|
|
|
|
proxy.$modal.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?').then(function () {
|
|
|
|
proxy.$modal
|
|
|
|
.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?')
|
|
|
|
.then(function () {
|
|
|
|
return delRole(roleIds);
|
|
|
|
}).then(() => {
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
getList();
|
|
|
|
proxy.$modal.msgSuccess("删除成功");
|
|
|
|
}).catch(() => {});
|
|
|
|
})
|
|
|
|
.catch(() => {});
|
|
|
|
}
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
function handleExport() {
|
|
|
|
proxy.download("system/role/export", {
|
|
|
|
proxy.download(
|
|
|
|
"system/role/export",
|
|
|
|
{
|
|
|
|
...queryParams.value,
|
|
|
|
}, `role_${new Date().getTime()}.xlsx`);
|
|
|
|
},
|
|
|
|
`role_${new Date().getTime()}.xlsx`
|
|
|
|
);
|
|
|
|
}
|
|
|
|
/** 多选框选中数据 */
|
|
|
|
function handleSelectionChange(selection) {
|
|
|
|
ids.value = selection.map(item => item.roleId);
|
|
|
|
ids.value = selection.map((item) => item.roleId);
|
|
|
|
single.value = selection.length != 1;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
}
|
|
|
|
/** 角色状态修改 */
|
|
|
|
function handleStatusChange(row) {
|
|
|
|
let text = row.status === "0" ? "启用" : "停用";
|
|
|
|
proxy.$modal.confirm('确认要"' + text + '""' + row.roleName + '"角色吗?').then(function () {
|
|
|
|
proxy.$modal
|
|
|
|
.confirm('确认要"' + text + '""' + row.roleName + '"角色吗?')
|
|
|
|
.then(function () {
|
|
|
|
return changeRoleStatus(row.roleId, row.status);
|
|
|
|
}).then(() => {
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
proxy.$modal.msgSuccess(text + "成功");
|
|
|
|
}).catch(function () {
|
|
|
|
})
|
|
|
|
.catch(function () {
|
|
|
|
row.status = row.status === "0" ? "1" : "0";
|
|
|
|
});
|
|
|
|
}
|
|
...
|
...
|
@@ -368,7 +512,7 @@ function handleAuthUser(row) { |
|
|
|
}
|
|
|
|
/** 查询菜单树结构 */
|
|
|
|
function getMenuTreeselect() {
|
|
|
|
menuTreeselect().then(response => {
|
|
|
|
menuTreeselect().then((response) => {
|
|
|
|
menuOptions.value = response.data;
|
|
|
|
});
|
|
|
|
}
|
|
...
|
...
|
@@ -400,7 +544,7 @@ function reset() { |
|
|
|
deptIds: [],
|
|
|
|
menuCheckStrictly: true,
|
|
|
|
deptCheckStrictly: true,
|
|
|
|
remark: undefined
|
|
|
|
remark: undefined,
|
|
|
|
};
|
|
|
|
proxy.resetForm("roleRef");
|
|
|
|
}
|
|
...
|
...
|
@@ -416,7 +560,7 @@ function handleUpdate(row) { |
|
|
|
reset();
|
|
|
|
const roleId = row.roleId || ids.value;
|
|
|
|
const roleMenu = getRoleMenuTreeselect(roleId);
|
|
|
|
getRole(roleId).then(response => {
|
|
|
|
getRole(roleId).then((response) => {
|
|
|
|
form.value = response.data;
|
|
|
|
form.value.roleSort = Number(form.value.roleSort);
|
|
|
|
open.value = true;
|
|
...
|
...
|
@@ -435,14 +579,14 @@ function handleUpdate(row) { |
|
|
|
}
|
|
|
|
/** 根据角色ID查询菜单树结构 */
|
|
|
|
function getRoleMenuTreeselect(roleId) {
|
|
|
|
return roleMenuTreeselect(roleId).then(response => {
|
|
|
|
return roleMenuTreeselect(roleId).then((response) => {
|
|
|
|
menuOptions.value = response.menus;
|
|
|
|
return response;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/** 根据角色ID查询部门树结构 */
|
|
|
|
function getDeptTree(roleId) {
|
|
|
|
return deptTreeSelect(roleId).then(response => {
|
|
|
|
return deptTreeSelect(roleId).then((response) => {
|
|
|
|
deptOptions.value = response.depts;
|
|
|
|
return response;
|
|
|
|
});
|
|
...
|
...
|
@@ -488,18 +632,18 @@ function getMenuAllCheckedKeys() { |
|
|
|
}
|
|
|
|
/** 提交按钮 */
|
|
|
|
function submitForm() {
|
|
|
|
proxy.$refs["roleRef"].validate(valid => {
|
|
|
|
proxy.$refs["roleRef"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (form.value.roleId != undefined) {
|
|
|
|
form.value.menuIds = getMenuAllCheckedKeys();
|
|
|
|
updateRole(form.value).then(response => {
|
|
|
|
updateRole(form.value).then((response) => {
|
|
|
|
proxy.$modal.msgSuccess("修改成功");
|
|
|
|
open.value = false;
|
|
|
|
getList();
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
form.value.menuIds = getMenuAllCheckedKeys();
|
|
|
|
addRole(form.value).then(response => {
|
|
|
|
addRole(form.value).then((response) => {
|
|
|
|
proxy.$modal.msgSuccess("新增成功");
|
|
|
|
open.value = false;
|
|
|
|
getList();
|
|
...
|
...
|
@@ -523,11 +667,11 @@ function dataScopeSelectChange(value) { |
|
|
|
function handleDataScope(row) {
|
|
|
|
reset();
|
|
|
|
const deptTreeSelect = getDeptTree(row.roleId);
|
|
|
|
getRole(row.roleId).then(response => {
|
|
|
|
getRole(row.roleId).then((response) => {
|
|
|
|
form.value = response.data;
|
|
|
|
openDataScope.value = true;
|
|
|
|
nextTick(() => {
|
|
|
|
deptTreeSelect.then(res => {
|
|
|
|
deptTreeSelect.then((res) => {
|
|
|
|
nextTick(() => {
|
|
|
|
if (deptRef.value) {
|
|
|
|
deptRef.value.setCheckedKeys(res.checkedKeys);
|
|
...
|
...
|
@@ -542,7 +686,7 @@ function handleDataScope(row) { |
|
|
|
function submitDataScope() {
|
|
|
|
if (form.value.roleId != undefined) {
|
|
|
|
form.value.deptIds = getDeptAllCheckedKeys();
|
|
|
|
dataScope(form.value).then(response => {
|
|
|
|
dataScope(form.value).then((response) => {
|
|
|
|
proxy.$modal.msgSuccess("修改成功");
|
|
|
|
openDataScope.value = false;
|
|
|
|
getList();
|
...
|
...
|
|