Commit fcfe6b6a by 张恒

fix(jjbgl): 修复交接班管理组件配置问题

- 将默认选择值从空字符串改为null
- 数据源类型从静态数据改为字典类型
- 更新参数配置为itemId方式
- 标签字段从label改为name
- API路径从getworkteamList改为CodeGeneration/selection
- 移除原有SQL脚本配置
- 设置字段为必填项
- 添加字典选项itemId配置
parent 8fd849e8
......@@ -436,29 +436,23 @@ export const formProps: FormProps = {
{ key: 1, label: '已交接', value: '已交接' },
{ key: 2, label: '未交接', value: '未交接' },
],
defaultSelect: '',
datasourceType: 'staticData',
params: null,
labelField: 'label',
defaultSelect: null,
datasourceType: 'dic',
params: { itemId: '2014529955617251329' },
labelField: 'name',
valueField: 'value',
apiConfig: {
path: '/bmxx/getworkteamList',
path: 'CodeGeneration/selection',
method: 'GET',
apiId: 'eeb487680f4a46f8b6bb1113a443fff4',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from mes_work_team";\r\nreturn db.select(sql);',
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
},
dicOptions: [],
required: false,
required: true,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
itemId: '2014529955617251329',
style: { width: '100%' },
},
},
......
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