1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//第三方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';
},
required: true,
},
{
label: 'Agentld',
field: 'agentId',
component: 'Input',
required: true,
},
{
label: 'AppKey',
field: 'clientId',
component: 'Input',
required: true,
},
{
label: 'AppSecret',
field: 'clientSecret',
component: 'Input',
required: true,
},{
label: '启用',
field: 'status',
component: 'Switch',
componentProps:{
checkedChildren:'关闭',
checkedValue:1,
unCheckedChildren:'开启',
unCheckedValue: 0
},
defaultValue: 1
},{
label: '租户id',
field: 'tenantId',
component: 'Input',
show: false,
},
];