Files
qhmes/jeecgboot-vue3/src/views/system/appconfig/ThirdApp.data.ts

74 lines
1.8 KiB
Vue
Raw Normal View History

2026-04-03 09:56:14 +08:00
//第三方app配置表单
import { FormSchema } from '/@/components/Form';
//第三方app表单
export const thirdAppFormSchema: FormSchema[] = [
{
label: 'id',
field: 'id',
component: 'Input',
show: false,
},
{
label: 'thirdType',
field: 'thirdType',
component: 'Input',
show: false,
},
{
label: 'CorpId/服务地址',
2026-04-03 09:56:14 +08:00
field: 'corpId',
component: 'Input',
ifShow: ({ values }) => {
return values.thirdType === 'dingtalk' || values.thirdType === 'kingdee';
2026-04-03 09:56:14 +08:00
},
required: true,
componentProps: ({ formModel }) => ({
placeholder: formModel?.thirdType === 'kingdee' ? '请输入金蝶服务地址,例如 https://xxx.xxx.com' : '请输入CorpId',
}),
2026-04-03 09:56:14 +08:00
},
{
label: 'AgentId/账套ID',
2026-04-03 09:56:14 +08:00
field: 'agentId',
component: 'Input',
required: true,
componentProps: ({ formModel }) => ({
placeholder: formModel?.thirdType === 'kingdee' ? '请输入账套ID可选业务标识' : '请输入AgentId',
}),
2026-04-03 09:56:14 +08:00
},
{
label: 'AppKey/AppId',
2026-04-03 09:56:14 +08:00
field: 'clientId',
component: 'Input',
required: true,
componentProps: ({ formModel }) => ({
placeholder: formModel?.thirdType === 'kingdee' ? '请输入金蝶AppId' : '请输入AppKey',
}),
2026-04-03 09:56:14 +08:00
},
{
label: 'AppSecret',
field: 'clientSecret',
component: 'Input',
required: true,
componentProps: ({ formModel }) => ({
placeholder: formModel?.thirdType === 'kingdee' ? '请输入金蝶AppSecret' : '请输入AppSecret',
}),
2026-04-03 09:56:14 +08:00
},{
label: '启用',
field: 'status',
component: 'Switch',
componentProps:{
checkedChildren:'关闭',
checkedValue:1,
unCheckedChildren:'开启',
unCheckedValue: 0
},
defaultValue: 1
},{
label: '租户id',
field: 'tenantId',
component: 'Input',
show: false,
},
];