From 98fef43ece41c554a12a0a4286e7db68093f7a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Wed, 29 Mar 2023 10:30:28 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BD=9C=E4=B8=9A=E4=B8=AD=E5=BF=83-?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=8E=86=E5=8F=B2=E5=A2=9E=E5=8A=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E5=90=8D=E7=A7=B0=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en.json | 1 + src/i18n/langs/ja.json | 1 + src/i18n/langs/zh.json | 1 + src/views/ops/Execution/index.vue | 10 ++++++++-- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index edd344cd6..71bcb28dc 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -979,6 +979,7 @@ "Run": "Run", "NewFile": "New file", "Job": "Job", + "JobName": "Job name", "Type": "Type", "running": "Runing", "ScrollToTop": "Scroll to top", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 7c0afe72d..504cbf236 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -972,6 +972,7 @@ "SaveCommandSuccess": "保存コマンドが成功しました", "NewFile": "新しいファイルを作成する", "Job": "手術", + "JobName": "ジョブ名", "SUCCESS": "成功", "Type": "タイプ", "running": "ランニング", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index ad5faf9cd..971bd3ca5 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -902,6 +902,7 @@ "DryRun": "测试运行", "Language": "语言", "Job": "作业", + "JobName": "作业名称", "Command": "命令", "Material": "内容", "Type": "类型", diff --git a/src/views/ops/Execution/index.vue b/src/views/ops/Execution/index.vue index 9d7703800..1ac3512cb 100644 --- a/src/views/ops/Execution/index.vue +++ b/src/views/ops/Execution/index.vue @@ -24,12 +24,12 @@ export default { tableConfig: { url: '/api/v1/ops/job-executions/', columns: [ - 'id', 'material', 'job_type', 'is_finished', 'is_success', 'time_cost', 'date_created', 'actions' + 'id', 'job', 'material', 'job_type', 'is_finished', 'is_success', 'time_cost', 'date_created', 'actions' ], columnsShow: { min: ['material', 'actions'], default: [ - 'id', 'material', 'job_type', 'is_finished', 'is_success', 'time_cost', 'date_created', 'actions' + 'id', 'job', 'material', 'job_type', 'is_finished', 'is_success', 'time_cost', 'date_created', 'actions' ] }, columnsMeta: { @@ -49,6 +49,12 @@ export default { return '-' } }, + job: { + label: this.$t('ops.JobName'), + formatter: (row) => { + return {row.job?.name || '-'} + } + }, material: { width: '160px' },