|
@@ -259,9 +259,9 @@ export default {
|
|
|
|
|
|
{
|
|
|
title: '调度执行总数量',
|
|
|
- key: 'scheduledCount',
|
|
|
+ key: 'total',
|
|
|
api: getProductionLineTasks,
|
|
|
- value: this.dictList.scheduledCount,
|
|
|
+ value: this.dictList.total,
|
|
|
icon: 'mdi-timer-play-outline',
|
|
|
color: 'primary'
|
|
|
},
|
|
@@ -332,8 +332,9 @@ export default {
|
|
|
running: _arr.tasks.running,
|
|
|
stopped: _arr.tasks.stopped,
|
|
|
failed: _arr.tasks.failed,
|
|
|
- scheduledCount: _arr.tasks.scheduled_total,
|
|
|
- total: _arr.total,
|
|
|
+ // scheduledCount: _arr.tasks.scheduled_total,
|
|
|
+ total: _arr.tasks.scheduled_total,
|
|
|
+ // total: _arr.total,
|
|
|
unscheduledCount: _arr.unscheduled_total
|
|
|
}
|
|
|
// this.items.forEach(_ele => {
|
|
@@ -391,9 +392,9 @@ export default {
|
|
|
this.table.total = 0
|
|
|
this.table.pageInfo.current = 1
|
|
|
this.table.items = []
|
|
|
- if (item.value === 0) {
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (item.value === 0) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (item.key === 'unscheduledCount') {
|
|
|
this.drillUnscheduled(item)
|
|
|
return
|
|
@@ -402,7 +403,8 @@ export default {
|
|
|
try {
|
|
|
const { data } = await item.api({
|
|
|
dag_id: this.clickItem.dag_id,
|
|
|
- run_id: this.clickItem.runs[0].run_id
|
|
|
+ run_id: this.clickItem.runs[0].run_id,
|
|
|
+ state: item.key
|
|
|
})
|
|
|
this.table.total = data.tasks.length
|
|
|
this.table.items = data.tasks
|