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

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

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