部门bug修改
This commit is contained in:
parent
ab4494afb9
commit
734cffb93d
@ -10,12 +10,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template #content>
|
<template #content>
|
||||||
<a-doption @click="$router.push('/profile')">
|
<!-- <a-doption @click="$router.push('/profile')">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-settings />
|
<icon-settings />
|
||||||
</template>
|
</template>
|
||||||
<template #default>用户设置</template>
|
<template #default>用户设置</template>
|
||||||
</a-doption>
|
</a-doption> -->
|
||||||
<a-doption @click="handleLogout()">
|
<a-doption @click="handleLogout()">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-export />
|
<icon-export />
|
||||||
|
|||||||
@ -57,6 +57,7 @@
|
|||||||
<a-form :model="modalForm" :rules="rules" ref="modalFormRef">
|
<a-form :model="modalForm" :rules="rules" ref="modalFormRef">
|
||||||
<a-form-item field="parentId" label="上级部门">
|
<a-form-item field="parentId" label="上级部门">
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
|
:disabled="(modalForm.dept_id || modalForm.dept_id==0)?true:false"
|
||||||
v-model="modalForm.parent_id"
|
v-model="modalForm.parent_id"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
:field-names="{ key: 'dept_id', title: 'dept_name' }"
|
:field-names="{ key: 'dept_id', title: 'dept_name' }"
|
||||||
@ -174,7 +175,9 @@ const handleAdd = ({ dept_id, dept_status = 2 } = {}) => {
|
|||||||
modalVisible.value = true;
|
modalVisible.value = true;
|
||||||
modalTitle.value = '新增部门';
|
modalTitle.value = '新增部门';
|
||||||
|
|
||||||
if (dept_id) Object.assign(modalForm, {parent_id: dept_id, dept_status});
|
if (dept_id){
|
||||||
|
Object.assign(modalForm, {parent_id: dept_id, dept_status});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user