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