diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 056cb72..80b4e6e 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -212,7 +212,7 @@ declare namespace Api { type DashboardLineJob = { createDt: string; total: number; - failNum: number; + fail: number; stop: number; cancel: number; success: number; diff --git a/src/views/home/modules/task-line-chart.vue b/src/views/home/modules/task-line-chart.vue index 1a711e8..a4de18c 100644 --- a/src/views/home/modules/task-line-chart.vue +++ b/src/views/home/modules/task-line-chart.vue @@ -193,7 +193,7 @@ const getData = () => { opts.tabIndex === 'RETRY' ? x.successNum : x.success ); opts.series[1].data = props.modelValue?.dashboardLineResponseDOList.map(x => - opts.tabIndex === 'RETRY' ? x.runningNum : x.failNum + opts.tabIndex === 'RETRY' ? x.runningNum : x.fail ); opts.series[2].data = props.modelValue?.dashboardLineResponseDOList.map(x => opts.tabIndex === 'RETRY' ? x.maxCountNum : x.stop