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

74 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//第三方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,
},
];