fix(sj_1.0.0): 首页job/workflow的echart图数据字段有误 failNum => fail

This commit is contained in:
dhb52 2024-05-30 22:33:55 +08:00
parent 6748d5bc24
commit f8ce3b70d6
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ declare namespace Api {
type DashboardLineJob = {
createDt: string;
total: number;
failNum: number;
fail: number;
stop: number;
cancel: number;
success: number;

View File

@ -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