diff --git a/automation/web/src/api/jobs.ts b/automation/web/src/api/jobs.ts index 3886e8708517db1f5bd538f477888931d069c8ee..57cbe8dd05a903ec79b630a146e63813e637a0d9 100644 --- a/automation/web/src/api/jobs.ts +++ b/automation/web/src/api/jobs.ts @@ -1,4 +1,4 @@ -import request from '@/utils/request'; +import { request } from '@/utils/request'; export const getJobsList = (data: any) => { // 处理数组参数,将数组转换为字符串 const processedData = { ...data }; @@ -29,3 +29,11 @@ export const reRunJob = (data: any) => { data, }); }; + +// 获取作业详情 +export const getJobDetail = (id: string) => { + return request({ + url: `/jobs/list/${id}`, + method: 'get', + }); +}; diff --git a/automation/web/src/views/jobs/components/detail.vue b/automation/web/src/views/jobs/components/detail.vue new file mode 100644 index 0000000000000000000000000000000000000000..169fb31880473d2dec982cf904be938ef3e97670 --- /dev/null +++ b/automation/web/src/views/jobs/components/detail.vue @@ -0,0 +1,186 @@ + + + + +