diff --git a/src/api/types.ts b/src/api/types.ts index c7cd0431..892ec572 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -481,3 +481,15 @@ export interface DownloaderInfo { // 剩余空间 free_space:number } + +// 定时服务信息 +export interface ScheduleInfo { + // ID + id: string + // 名称 + name: string + // 状态 + status: string + // 下次运行时间 + next_run: string +} diff --git a/src/views/dashboard/AnalyticsScheduler.vue b/src/views/dashboard/AnalyticsScheduler.vue index 1ed0b44e..ecba533b 100644 --- a/src/views/dashboard/AnalyticsScheduler.vue +++ b/src/views/dashboard/AnalyticsScheduler.vue @@ -1,4 +1,6 @@ @@ -46,25 +65,23 @@ const salesByCountries = [ - + - - {{ data.abbr }} + + {{ item.name[0] }} - {{ data.amount }} + {{ item.name }} - - {{ data.country }} - + {{ item.next_run }} - {{ data.sales }} + {{ item.status }}