fix 修复 !pr107 遗留问题

update 优化 岗位下拉框样式问题
This commit is contained in:
疯狂的狮子Li
2024-04-24 23:45:26 +08:00
parent 7ed5f33e7b
commit e2254651ca
3 changed files with 28 additions and 16 deletions

View File

@ -287,10 +287,11 @@ import api from '@/api/system/user';
import { UserForm, UserQuery, UserVO } from '@/api/system/user/types';
import { DeptVO } from '@/api/system/dept/types';
import { RoleVO } from '@/api/system/role/types';
import { 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";
const router = useRouter();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@ -645,6 +646,15 @@ onMounted(() => {
initPassword.value = response.data;
});
});
// 监测部门变化加载岗位
watch(
() => form.value.deptId,
async () => {
const response = await optionselect(form.value.deptId);
postOptions.value = response.data;
}
);
</script>
<style lang="scss" scoped></style>