mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-03 19:04:37 +00:00
feat(bpm): 表单设计器 UserSelect/DeptSelect 支持默认选中当前用户/部门
1. UserSelect 新增 defaultCurrentUser 配置,默认选中当前登录用户 2. DeptSelect 新增 defaultCurrentDept 配置,默认选中当前用户所属部门 3. DeptSelect 改用 el-tree-select 实现树形层级显示 4. 支持单选/多选模式,预设值优先级高于默认值
This commit is contained in:
@@ -68,6 +68,7 @@ import { UploadFile, UploadImg, UploadImgs } from '@/components/UploadFile'
|
||||
import { useApiSelect } from '@/components/FormCreate'
|
||||
import { Editor } from '@/components/Editor'
|
||||
import DictSelect from '@/components/FormCreate/src/components/DictSelect.vue'
|
||||
import DeptSelect from '@/components/FormCreate/src/components/DeptSelect.vue'
|
||||
|
||||
const UserSelect = useApiSelect({
|
||||
name: 'UserSelect',
|
||||
@@ -75,12 +76,6 @@ const UserSelect = useApiSelect({
|
||||
valueField: 'id',
|
||||
url: '/system/user/simple-list'
|
||||
})
|
||||
const DeptSelect = useApiSelect({
|
||||
name: 'DeptSelect',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
url: '/system/dept/simple-list'
|
||||
})
|
||||
const ApiSelect = useApiSelect({
|
||||
name: 'ApiSelect'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user