Commit b16f2324 authored by 彭俊龙's avatar 彭俊龙

feat:自动化工单方案优化

parent 135dc94e
Pipeline #96672 canceled with stages
......@@ -822,6 +822,7 @@ const CaseModify = props => {
getNodeAPI = GetScheduledConfigFlowNode({ flowId });
getRuleConfigAPI = GetFormDataSource({ flowId });
} else {
getNodeAPI = GetConditionConfigFlowNode({ flowId });
}
Promise.all([getNodeAPI, getRuleConfigAPI && getRuleConfigAPI]).then(res => {
......@@ -834,6 +835,16 @@ const CaseModify = props => {
});
setNodeNames(nodeNames);
if (configInfo.triggerType == '定时触发') {
const d = flowData.current.find(v=> v.SubFlowId == flowId).FlowName;
if(d){
const { FlowName, EventName } = d
getBizMetaData({
FlowName,
EventName,
ScheduledConfig: { Values: [] }
})
}
setConfigInfo({ ...configInfo, activityId: nodeNames[0].value, flowId: flowId });
generatePostData({ activityId: nodeNames[0].value, activityName: nodeNames[0].label });
} else {
......@@ -1866,7 +1877,7 @@ const CaseModify = props => {
locale={locale}
format={'YYYY-MM-DD HH:00'}
value={startTime}
onChange={t => setStartTime(t)}
onChange={t => setStartTime(moment(t.format('YYYY-MM-DD HH:00:00')))}
/>
<span>结束时间:</span>
<DatePicker locale={locale} value={endTime} onChange={t => setEndTime(t)} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment