//第三方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/服务地址', field: 'corpId', component: 'Input', ifShow: ({ values }) => { return values.thirdType === 'dingtalk' || values.thirdType === 'kingdee'; }, required: true, componentProps: ({ formModel }) => ({ placeholder: formModel?.thirdType === 'kingdee' ? '请输入金蝶服务地址,例如 https://xxx.xxx.com' : '请输入CorpId', }), }, { label: 'AgentId/账套ID', field: 'agentId', component: 'Input', required: true, componentProps: ({ formModel }) => ({ placeholder: formModel?.thirdType === 'kingdee' ? '请输入账套ID(可选业务标识)' : '请输入AgentId', }), }, { label: 'AppKey/AppId', field: 'clientId', component: 'Input', required: true, componentProps: ({ formModel }) => ({ placeholder: formModel?.thirdType === 'kingdee' ? '请输入金蝶AppId' : '请输入AppKey', }), }, { label: 'AppSecret', field: 'clientSecret', component: 'Input', required: true, componentProps: ({ formModel }) => ({ placeholder: formModel?.thirdType === 'kingdee' ? '请输入金蝶AppSecret' : '请输入AppSecret', }), },{ label: '启用', field: 'status', component: 'Switch', componentProps:{ checkedChildren:'关闭', checkedValue:1, unCheckedChildren:'开启', unCheckedValue: 0 }, defaultValue: 1 },{ label: '租户id', field: 'tenantId', component: 'Input', show: false, }, ];