| | |
| | | value-key="id" |
| | | placeholder="请选择归属部门" |
| | | check-strictly |
| | | @change="handleDeptChange" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | 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; |
| | |
| | | roleOptions.value = data.roles; |
| | | form.value.password = initPassword.value.toString(); |
| | | }; |
| | | |
| | | /** 修改按钮操作 */ |
| | | const handleUpdate = async (row?: UserForm) => { |
| | | reset(); |
| | |
| | | initPassword.value = response.data; |
| | | }); |
| | | }); |
| | | |
| | | async function handleDeptChange(value: number | string) { |
| | | const response = await optionselect(value); |
| | | postOptions.value = response.data; |
| | | form.value.postIds = []; |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |