mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2026-04-22 22:57:15 +08:00
部门
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" label-width="84px" :rules="formRules">
|
||||
<el-form-item label="上级部门" prop="pid" v-if="formData.pid !== '0'">
|
||||
<el-form-item label="上级部门" prop="pid" v-if="formData.pid !== ''">
|
||||
<el-tree-select
|
||||
class="flex-1"
|
||||
v-model="formData.pid"
|
||||
|
||||
@@ -96,7 +96,7 @@ const getLists = async () => {
|
||||
const list = await deptAll(queryParams)
|
||||
// 根据id和pid处理层级关系
|
||||
|
||||
lists.value = arrayToTree(list, '0')
|
||||
lists.value = arrayToTree(list, '')
|
||||
console.log('lists', lists)
|
||||
|
||||
loading.value = false
|
||||
|
||||
Reference in New Issue
Block a user