Commit 9e233ad9 authored by 沈翠玲's avatar 沈翠玲

可选择部门父级

parent 711a2c2a
......@@ -43,6 +43,7 @@
placeholder="请选择部门"
v-model="form.departmentId"
ref="treeselect"
:checkStrictly="true"
:props="{ value: 'id', label: 'name', children: 'children' }"
:data="departlist"
:render-after-expand="false"
......
......@@ -79,7 +79,7 @@ import { getdepartmentTree } from '@/api/departmentManage';
width: 160,
enum: departlist,
fieldNames: { label: 'name', value: 'id' },
search: { el: 'tree-select', props: { filterable: true}, labelWidth: 85, key: 'departmentId' },
search: { el: 'tree-select', props: { filterable: true, checkStrictly: true}, labelWidth: 85, key: 'departmentId' },
},
{
field: 'phone',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment