From fc9b44db21634dbcebcb3ec2201e528402ee985e Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Fri, 18 Nov 2022 19:01:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/zh.json | 13 ++++++- src/views/ops/Job/JobDetail/JobDetail.vue | 24 +++++++++++++ src/views/ops/Job/JobRunDialog.vue | 16 +++++---- src/views/ops/Job/JobUpdateCreate.vue | 31 +++++++++++------ src/views/ops/Job/index.vue | 42 +++++++++++++++++++++-- 5 files changed, 105 insertions(+), 21 deletions(-) diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index c295cb987..8cc4a0853 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -703,7 +703,17 @@ "Plan": "计划", "AssetAmount": "资产数量", "SelectAdhoc": "选择命令", - "SaveAdhoc": "保存命令" + "SaveAdhoc": "保存命令", + "RunJob": "运行作业", + "Parameter": "参数", + "Summary(success/total)": "概况( 成功/总数 )", + "DateLastRun": "上次运行日期", + "AverageTimeCost": "平均花费时间", + "ThisPeriodic": "这是一个周期作业", + "JobType": "作业类型", + "Comment": "备注", + "History": "执行历史", + "UseParameterDefine": "定义参数" }, "perms": { "": "", @@ -886,6 +896,7 @@ "JobList": "作业列表", "JobCreate": "创建作业", "JobUpdate": "更新作业", + "JobDetail": "作业详情", "LabelCreate": "创建标签", "LabelList": "标签管理", "LabelUpdate": "更新标签", diff --git a/src/views/ops/Job/JobDetail/JobDetail.vue b/src/views/ops/Job/JobDetail/JobDetail.vue index 0bf2ac4c1..9b83a8ac1 100644 --- a/src/views/ops/Job/JobDetail/JobDetail.vue +++ b/src/views/ops/Job/JobDetail/JobDetail.vue @@ -31,6 +31,30 @@ export default { { key: this.$t('common.Name'), value: this.object.name + }, + { + key: this.$t('ops.JobType'), + value: this.object.type + }, + { + key: this.$t('ops.Comment'), + value: this.object.comment + }, + { + key: this.$t('ops.AverageTimeCost'), + value: this.object.average_time_cost.toFixed(2) + 's' + }, + { + key: this.$t('ops.DateLastRun'), + value: this.object.date_last_run + }, + { + key: this.$t('common.DateUpdated'), + value: this.object.date_updated + }, + { + key: this.$t('common.DateCreated'), + value: this.object.date_created } ] } diff --git a/src/views/ops/Job/JobRunDialog.vue b/src/views/ops/Job/JobRunDialog.vue index e34c194dc..2136261a0 100644 --- a/src/views/ops/Job/JobRunDialog.vue +++ b/src/views/ops/Job/JobRunDialog.vue @@ -1,7 +1,7 @@