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

feat:自动化工单方案优化

parent 135dc94e
Pipeline #96672 canceled with stages
...@@ -822,6 +822,7 @@ const CaseModify = props => { ...@@ -822,6 +822,7 @@ const CaseModify = props => {
getNodeAPI = GetScheduledConfigFlowNode({ flowId }); getNodeAPI = GetScheduledConfigFlowNode({ flowId });
getRuleConfigAPI = GetFormDataSource({ flowId }); getRuleConfigAPI = GetFormDataSource({ flowId });
} else { } else {
getNodeAPI = GetConditionConfigFlowNode({ flowId }); getNodeAPI = GetConditionConfigFlowNode({ flowId });
} }
Promise.all([getNodeAPI, getRuleConfigAPI && getRuleConfigAPI]).then(res => { Promise.all([getNodeAPI, getRuleConfigAPI && getRuleConfigAPI]).then(res => {
...@@ -834,6 +835,16 @@ const CaseModify = props => { ...@@ -834,6 +835,16 @@ const CaseModify = props => {
}); });
setNodeNames(nodeNames); setNodeNames(nodeNames);
if (configInfo.triggerType == '定时触发') { 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 }); setConfigInfo({ ...configInfo, activityId: nodeNames[0].value, flowId: flowId });
generatePostData({ activityId: nodeNames[0].value, activityName: nodeNames[0].label }); generatePostData({ activityId: nodeNames[0].value, activityName: nodeNames[0].label });
} else { } else {
...@@ -1866,7 +1877,7 @@ const CaseModify = props => { ...@@ -1866,7 +1877,7 @@ const CaseModify = props => {
locale={locale} locale={locale}
format={'YYYY-MM-DD HH:00'} format={'YYYY-MM-DD HH:00'}
value={startTime} value={startTime}
onChange={t => setStartTime(t)} onChange={t => setStartTime(moment(t.format('YYYY-MM-DD HH:00:00')))}
/> />
<span>结束时间:</span> <span>结束时间:</span>
<DatePicker locale={locale} value={endTime} onChange={t => setEndTime(t)} /> <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