!feat: 表单设计器-部门选择器增加可选返回部门id或者部门名称 #199
parent
ccb55080a1
commit
989fe5cdf0
|
|
@ -57,7 +57,7 @@ export const useApiSelect = (option: ApiSelectProps) => {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'label'
|
default: 'label'
|
||||||
},
|
},
|
||||||
// 返回值类型(用于部门选择器等):id 返回ID,name 返回名称
|
// 返回值类型(用于部门选择器等):id 返回 ID,name 返回名称
|
||||||
returnType: {
|
returnType: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'id'
|
default: 'id'
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ export const useFormCreateDesigner = async (designer: Ref) => {
|
||||||
title: '返回值类型',
|
title: '返回值类型',
|
||||||
value: 'id',
|
value: 'id',
|
||||||
options: [
|
options: [
|
||||||
{ label: '部门ID', value: 'id' },
|
{ label: '部门编号', value: 'id' },
|
||||||
{ label: '部门名称', value: 'name' }
|
{ label: '部门名称', value: 'name' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue