...
|
...
|
@@ -79,6 +79,9 @@ export const isMessage = (type: string) => { |
79
|
79
|
export const isEmail = (type: string) => {
|
80
|
80
|
return type === MessageEnum.IS_EMAIL;
|
81
|
81
|
};
|
|
82
|
+export const isDingtalk = (type: string) => {
|
|
83
|
+ return type === MessageEnum.IS_DINGTALK;
|
|
84
|
+};
|
82
|
85
|
export const messageTypeIsTencentCloud = (type: string) => {
|
83
|
86
|
return type === 'TENCENT_CLOUD';
|
84
|
87
|
};
|
...
|
...
|
@@ -251,6 +254,39 @@ export const formSchema: FormSchema[] = [ |
251
|
254
|
},
|
252
|
255
|
},
|
253
|
256
|
{
|
|
257
|
+ field: 'AgentId',
|
|
258
|
+ label: 'AgentId',
|
|
259
|
+ component: 'Input',
|
|
260
|
+ required: true,
|
|
261
|
+ ifShow: ({ values }) => isDingtalk(Reflect.get(values, 'messageType')),
|
|
262
|
+ componentProps: {
|
|
263
|
+ maxLength: 36,
|
|
264
|
+ placeholder: '请输入AgentId',
|
|
265
|
+ },
|
|
266
|
+ },
|
|
267
|
+ {
|
|
268
|
+ field: 'ClientID',
|
|
269
|
+ label: 'ClientID',
|
|
270
|
+ component: 'Input',
|
|
271
|
+ required: true,
|
|
272
|
+ ifShow: ({ values }) => isDingtalk(Reflect.get(values, 'messageType')),
|
|
273
|
+ componentProps: {
|
|
274
|
+ maxLength: 36,
|
|
275
|
+ placeholder: '请输入ClientID',
|
|
276
|
+ },
|
|
277
|
+ },
|
|
278
|
+ {
|
|
279
|
+ field: 'Clientsecret',
|
|
280
|
+ label: 'Clientsecret',
|
|
281
|
+ component: 'Input',
|
|
282
|
+ ifShow: ({ values }) => isDingtalk(Reflect.get(values, 'messageType')),
|
|
283
|
+ required: true,
|
|
284
|
+ componentProps: {
|
|
285
|
+ maxLength: 36,
|
|
286
|
+ placeholder: '请输入Clientsecret',
|
|
287
|
+ },
|
|
288
|
+ },
|
|
289
|
+ {
|
254
|
290
|
field: 'status',
|
255
|
291
|
label: '状态',
|
256
|
292
|
component: 'RadioButtonGroup',
|
...
|
...
|
|