兰宝车间质量管理系统-前端
dap
2024-04-30 5d641e5de49e64b89c998f28f9f1cf65515e1721
fix: 用户管理-部门变化后需要重新选择岗位
已修改1个文件
6 ■■■■■ 文件已修改
src/views/system/user/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/index.vue
@@ -287,11 +287,11 @@
import { UserForm, UserQuery, UserVO } from '@/api/system/user/types';
import { DeptVO } from '@/api/system/dept/types';
import { RoleVO } from '@/api/system/role/types';
import {PostQuery, PostVO} from '@/api/system/post/types';
import { PostQuery, PostVO } from '@/api/system/post/types';
import { treeselect } from '@/api/system/dept';
import { globalHeaders } from '@/utils/request';
import { to } from 'await-to-js';
import {optionselect} from "@/api/system/post";
import { optionselect } from '@/api/system/post';
const router = useRouter();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -653,6 +653,8 @@
  async () => {
    const response = await optionselect(form.value.deptId);
    postOptions.value = response.data;
    /** 变化后需要重新选择岗位 */
    form.value.postIds = [];
  }
);
</script>