Commit 5b24ea2e authored by 彭俊龙's avatar 彭俊龙

feat:自动化工单弹窗初始化参数逻辑优化

parent f9f73bb5
Pipeline #96417 failed with stages
...@@ -123,9 +123,10 @@ const CaseModify = props => { ...@@ -123,9 +123,10 @@ const CaseModify = props => {
getEventFlow(); getEventFlow();
if (mode === 'edit' && flowConfigDetail) { if (mode === 'edit' && flowConfigDetail) {
dealPostData(flowConfigDetail); dealPostData(flowConfigDetail);
} else {
init();
} }
// else {
// init();
// }
} }
}, [visible]); }, [visible]);
...@@ -237,7 +238,6 @@ const CaseModify = props => { ...@@ -237,7 +238,6 @@ const CaseModify = props => {
return; return;
} }
} }
setErrorMsg('');
const { UserIds, AgentConfig, RoleIds } = ScheduledConfig const { UserIds, AgentConfig, RoleIds } = ScheduledConfig
let userIds = [] let userIds = []
let roleIds = [] let roleIds = []
...@@ -263,10 +263,6 @@ const CaseModify = props => { ...@@ -263,10 +263,6 @@ const CaseModify = props => {
activityId: activityId, activityId: activityId,
triggerType: TriggerMethod, triggerType: TriggerMethod,
schemeName: SchemeName, schemeName: SchemeName,
schemeNameErrMsg: '',
flowIdErrMsg: '',
userIdsErrMsg: '',
activityIdErrMsg: '',
roleIds, roleIds,
userIds userIds
}); });
......
...@@ -419,16 +419,17 @@ const AutoCase = props => { ...@@ -419,16 +419,17 @@ const AutoCase = props => {
</Pagination> </Pagination>
</div> </div>
</div> </div>
<CaseModify {openEditor && <CaseModify
visible={openEditor} visible={openEditor}
flowConfigDetail={flowConfigDetail.current} flowConfigDetail={flowConfigDetail.current}
mode={mode.current} mode={mode.current}
onClose={() => setOpeneditor(false)} onClose={() => setOpeneditor(false)}
onOk={onSubmit} onOk={onSubmit}
/> />}
<ExcuteLog visible={showLog} id={showlogId.current} onClose={() => setShowLog(false)} /> <ExcuteLog visible={showLog} id={showlogId.current} onClose={() => setShowLog(false)} />
<LookModal <LookModal
visible={lookVisible} visible={lookVisible}
dateType='本月'
onCancel={() => setLookVisible(false)} onCancel={() => setLookVisible(false)}
planName={planName.current} planName={planName.current}
keepTableList={keepTableList} keepTableList={keepTableList}
......
...@@ -19,7 +19,7 @@ import { GetIISAgentSite, QueryIISAgentCalllog } from '@/services/scheduledTasks ...@@ -19,7 +19,7 @@ import { GetIISAgentSite, QueryIISAgentCalllog } from '@/services/scheduledTasks
const { RangePicker } = DatePicker; const { RangePicker } = DatePicker;
const LookModal = props => { const LookModal = props => {
const { visible, onCancel, keepTableList, planName } = props; const { visible, onCancel, keepTableList, planName, dateType } = props;
const [form] = Form.useForm(null); const [form] = Form.useForm(null);
const [currentTime, setCurrentTime] = useState('昨天'); const [currentTime, setCurrentTime] = useState('昨天');
const [siteData, setSiteData] = useState([]); const [siteData, setSiteData] = useState([]);
...@@ -50,8 +50,13 @@ const LookModal = props => { ...@@ -50,8 +50,13 @@ const LookModal = props => {
tableList.current.jobName = planName tableList.current.jobName = planName
} }
if (visible) { if (visible) {
if(dateType){
timeChoose(dateType)
}else{
getLogList();
}
getSiteList(); getSiteList();
getLogList();
} }
}, [visible]); }, [visible]);
......
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