Commit 09e74c0c5880f415c1997c7872402d3bd738ec07

Authored by ww
1 parent 38d20b72

fix: DEFECT-1256 修复任务中心新增任务间隔时间验证不通过

@@ -133,7 +133,6 @@ @@ -133,7 +133,6 @@
133 } = props.schema; 133 } = props.schema;
134 134
135 if (isFunction(dynamicRules)) { 135 if (isFunction(dynamicRules)) {
136 - console.log(dynamicRules(unref(getValues)));  
137 return dynamicRules(unref(getValues)) as ValidationRule[]; 136 return dynamicRules(unref(getValues)) as ValidationRule[];
138 } 137 }
139 138
@@ -148,7 +148,7 @@ export const parseData = (result: TaskRecordType): Required<FormValueType> => { @@ -148,7 +148,7 @@ export const parseData = (result: TaskRecordType): Required<FormValueType> => {
148 period, 148 period,
149 periodType: executeTimeType === ExecuteTimeTypeEnum.CUSTOM ? periodType : null, 149 periodType: executeTimeType === ExecuteTimeTypeEnum.CUSTOM ? periodType : null,
150 time: executeTimeType === ExecuteTimeTypeEnum.CUSTOM ? time : null, 150 time: executeTimeType === ExecuteTimeTypeEnum.CUSTOM ? time : null,
151 - interval: executeTimeType === ExecuteTimeTypeEnum.POLL ? time : null, 151 + interval: executeTimeType === ExecuteTimeTypeEnum.POLL ? Number(time) : null,
152 pollUnit: executeTimeType === ExecuteTimeTypeEnum.POLL ? pollUnit : TimeUnitEnum.SECOND, 152 pollUnit: executeTimeType === ExecuteTimeTypeEnum.POLL ? pollUnit : TimeUnitEnum.SECOND,
153 }; 153 };
154 }; 154 };