fix: 修复上级部门显示异常
This commit is contained in:
parent
f039e020e1
commit
dd8351b343
@ -83,7 +83,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
|
||||
code: ruleForm.verifyCode
|
||||
})
|
||||
.then(async res => {
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
useUserStoreHook().SET_ACCESSTOKEN(res.data.accessToken);
|
||||
// 获取后端路由
|
||||
return initRouter().then(async () => {
|
||||
|
@ -128,7 +128,7 @@ onBeforeRouteUpdate((to, from, next) => {
|
||||
type="primary"
|
||||
:size="size"
|
||||
:icon="useRenderIcon(AddFill)"
|
||||
@click="openDialog('新增', { parentId: row.id } as any)"
|
||||
@click="openDialog('新增', { parent_id: row.id } as any)"
|
||||
>
|
||||
{{ t("buttons:Add") }}
|
||||
</el-button>
|
||||
|
@ -141,7 +141,7 @@ export const useDepartment = () => {
|
||||
title: `${title}部门`,
|
||||
props: {
|
||||
formInline: {
|
||||
higherDeptOptions: formatHigherOptions(cloneDeep(dataList.value)),
|
||||
higherOptions: formatHigherOptions(cloneDeep(dataList.value)),
|
||||
id: row?.id ?? "",
|
||||
parent_id: row?.parent_id ?? "",
|
||||
name: row?.name ?? "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user