Commit 25ee511b by 宋春膨

feat(zlgl): 更新配置数据源为API接口

- 将数据源类型从字典(dic)更改为API接口
- 修改API路径为/zlgl//zjjcsj/getZjsb
- 更新API接口ID为ae3834298bc54c2fb66e9e9af18765e6
- 添加API参数配置包括Query Params、Header和Body选项
- 集成数据库查询脚本获取设备信息
- 移除原有字典选项配置
parent b5cc888c
......@@ -552,13 +552,20 @@ export const formProps: FormProps = {
disabled: false,
staticOptions: [{ key: 1, label: '设备1', value: '设备1' }],
defaultSelect: null,
datasourceType: 'dic',
datasourceType: 'api',
labelField: 'name',
valueField: 'value',
apiConfig: {
path: 'CodeGeneration/selection',
path: '/zlgl//zjjcsj/getZjsb',
method: 'GET',
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
apiId: 'ae3834298bc54c2fb66e9e9af18765e6',
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_equipment where delete_mark=0';\r\nreturn db.select(sql)",
},
dicOptions: [],
required: false,
......
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