fix: 用户管理-部门变化后需要重新选择岗位
This commit is contained in:
parent
0d196e47e2
commit
5d641e5de4
@ -291,7 +291,7 @@ import {PostQuery, PostVO} from '@/api/system/post/types';
|
|||||||
import { treeselect } from '@/api/system/dept';
|
import { treeselect } from '@/api/system/dept';
|
||||||
import { globalHeaders } from '@/utils/request';
|
import { globalHeaders } from '@/utils/request';
|
||||||
import { to } from 'await-to-js';
|
import { to } from 'await-to-js';
|
||||||
import {optionselect} from "@/api/system/post";
|
import { optionselect } from '@/api/system/post';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||||
@ -653,6 +653,8 @@ watch(
|
|||||||
async () => {
|
async () => {
|
||||||
const response = await optionselect(form.value.deptId);
|
const response = await optionselect(form.value.deptId);
|
||||||
postOptions.value = response.data;
|
postOptions.value = response.data;
|
||||||
|
/** 变化后需要重新选择岗位 */
|
||||||
|
form.value.postIds = [];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user