Commit 5293754d authored by 彭俊龙's avatar 彭俊龙

feat:自动化工单测试

parent 9863752b
Pipeline #96628 failed with stages
......@@ -28,6 +28,7 @@ import {
DeleteFlowAutoConfig,
EnableDisableFlowAutoConfig,
GetFlowAutoConfigDetail,
GetFlowCenterData
} from '@/services/flow/flow';
import {
GetIISAgentConfig,
......@@ -62,6 +63,7 @@ const AutoCase = props => {
let flowConfigDetail = useRef(null);
let showlogId = useRef(null);
let planName = useRef(null)
let flowCenterData = useRef(null);
const [refreshKey, setRefreshKey] = useState(0)
let mode = useRef('');
const statusObj = [<Tag color="default">已停用</Tag>, <Tag color="processing">已启用</Tag>];
......@@ -184,8 +186,20 @@ const AutoCase = props => {
useEffect(()=>{
getTableList()
getFlowCenterData()
}, [])
const getFlowCenterData = async () => {
const { code, data, msg } = await GetFlowCenterData({
userID: 1,
systemType: '业务系统',
isFilterOrderMode: 0,
isInternal: 0
});
if(code == 0){
flowCenterData.current = data;
}
}
const getTableList = () => {
GetIISAgentConfig({ agentName: '' }).then(res => {
......@@ -423,6 +437,7 @@ const AutoCase = props => {
{openEditor && <CaseModify
visible={openEditor}
flowConfigDetail={flowConfigDetail.current}
flowCenterData={flowCenterData.current}
mode={mode.current}
onClose={() => setOpeneditor(false)}
onOk={onSubmit}
......
......@@ -147,6 +147,12 @@ export const GetFlowAutoConfigDetail = query => get(`${PUBLISH_SERVICE}/WorkFlow
export const GetFlowAutoSchemeLogs = query => get(`${PUBLISH_SERVICE}/WorkFlow/GetFlowAutoSchemeLogs`, query);
export const GetBizMetaData = query => post(`${PANDAWORKFLOW}/EventManage/GetBizMetaData`, query);
export const GetFlowCenterData = query => get(`${PANDAWORKFLOW}/EventManage/GetFlowCenterData`, query);
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