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

feat:自动化工单测试

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