...
|
...
|
@@ -24,7 +24,7 @@ |
24
|
24
|
}
|
25
|
25
|
});
|
26
|
26
|
|
27
|
|
- const [registerForm, { setFieldsValue, getFieldsValue, resetFields }] = useForm({
|
|
27
|
+ const [registerForm, { setFieldsValue, getFieldsValue, resetFields, validate }] = useForm({
|
28
|
28
|
schemas: formSchemas,
|
29
|
29
|
showActionButtonGroup: false,
|
30
|
30
|
});
|
...
|
...
|
@@ -37,7 +37,8 @@ |
37
|
37
|
? TaskTargetEnum.DEVICES
|
38
|
38
|
: unref(dataSource)!.targetType,
|
39
|
39
|
id: unref(dataSource)!.id,
|
40
|
|
- targetIds,
|
|
40
|
+ targetIds:
|
|
41
|
+ executeTarget === TargetType.ASSIGN ? targetIds : unref(dataSource)?.executeTarget.data,
|
41
|
42
|
cronExpression: unref(dataSource)!.executeTime.cron,
|
42
|
43
|
name: unref(dataSource)!.name,
|
43
|
44
|
};
|
...
|
...
|
@@ -46,6 +47,7 @@ |
46
|
47
|
const loading = ref(false);
|
47
|
48
|
const { createMessage } = useMessage();
|
48
|
49
|
const handleOk = async () => {
|
|
50
|
+ await validate();
|
49
|
51
|
const record = getFieldsValue() as FormValue;
|
50
|
52
|
const value = composeData(record);
|
51
|
53
|
try {
|
...
|
...
|
|