feat(bpm): 表单设计器 UserSelect/DeptSelect 支持默认选中当前用户/部门

1. UserSelect 新增 defaultCurrentUser 配置,默认选中当前登录用户
2. DeptSelect 新增 defaultCurrentDept 配置,默认选中当前用户所属部门
3. DeptSelect 改用 el-tree-select 实现树形层级显示
4. 支持单选/多选模式,预设值优先级高于默认值
This commit is contained in:
puhui999
2026-01-27 19:03:10 +08:00
parent 859d493513
commit 7a7228aed8
5 changed files with 277 additions and 9 deletions

View File

@@ -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'
})