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