From 7b91c26689f7fe511d9ce69221c446c3b5a52e37 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 23 Feb 2024 17:18:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E7=9B=B8=E5=85=B3=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ops/Execution/index.vue | 6 ------ src/views/ops/File/index.vue | 5 ++--- src/views/ops/Job/QuickJob.vue | 2 +- src/views/ops/Job/index.vue | 4 +--- src/views/ops/Template/Adhoc.vue | 2 +- src/views/settings/License.vue | 2 +- 6 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/views/ops/Execution/index.vue b/src/views/ops/Execution/index.vue index 6c302e030..055cb991f 100644 --- a/src/views/ops/Execution/index.vue +++ b/src/views/ops/Execution/index.vue @@ -56,12 +56,6 @@ export default { return {row.job?.name || '-'} } }, - material: { - width: '160px' - }, - job_type: { - width: '96px' - }, is_finished: { width: '96px', formatter: (row) => { diff --git a/src/views/ops/File/index.vue b/src/views/ops/File/index.vue index e57ff4bb8..d4de879eb 100644 --- a/src/views/ops/File/index.vue +++ b/src/views/ops/File/index.vue @@ -53,10 +53,9 @@ multiple > -
+
{{ $t('DragUploadFileInfo') }}
-
{{ $t('UploadFileLthHelpText', {limit: SizeLimitMb}) }} @@ -81,7 +80,7 @@
- {{ $tc('Output') }}: +
{{ $tc('Output') }}:
{{ $tc('Status') }}: diff --git a/src/views/ops/Job/QuickJob.vue b/src/views/ops/Job/QuickJob.vue index fe6fd9ae4..9a98c15f5 100644 --- a/src/views/ops/Job/QuickJob.vue +++ b/src/views/ops/Job/QuickJob.vue @@ -18,7 +18,7 @@ :value.sync="command" style="margin-bottom: 20px" /> - {{ $tc('Output') }}: +
{{ $tc('Output') }}:
{{ $tc('Status') }}: diff --git a/src/views/ops/Job/index.vue b/src/views/ops/Job/index.vue index af609d974..219935bde 100644 --- a/src/views/ops/Job/index.vue +++ b/src/views/ops/Job/index.vue @@ -36,6 +36,7 @@ export default { ], columnsMeta: { name: { + width: '140px', formatterArgs: { can: true } @@ -51,19 +52,16 @@ export default { }, summary: { label: this.$t('Summary(success/total)'), - width: '140px', formatter: (row) => { return row.summary['success'] + '/' + row.summary['total'] } }, average_time_cost: { - width: '140px', formatter: (row) => { return row.average_time_cost.toFixed(2) + 's' } }, asset_amount: { - width: '140px', label: this.$t('AssetAmount'), formatter: (row) => { return row.assets.length diff --git a/src/views/ops/Template/Adhoc.vue b/src/views/ops/Template/Adhoc.vue index 13d4a2d7c..3d955d6c6 100644 --- a/src/views/ops/Template/Adhoc.vue +++ b/src/views/ops/Template/Adhoc.vue @@ -16,7 +16,7 @@ export default { url: '/api/v1/ops/adhocs/', columnsShow: { min: ['name', 'actions'], - default: ['name', 'module', 'comment', 'args', 'comment', 'date_created', 'actions'] + default: ['name', 'module', 'args', 'comment', 'date_created', 'actions'] }, columnsMeta: { name: { diff --git a/src/views/settings/License.vue b/src/views/settings/License.vue index 752246c22..5163c5f96 100644 --- a/src/views/settings/License.vue +++ b/src/views/settings/License.vue @@ -112,7 +112,7 @@ export default { value: this.licenseData.date_expired }, { - key: this.$t('AssetCount'), + key: this.$t('AssetAmount'), value: this.licenseData.asset_count !== null ? this.licenseData.asset_count + '' : '' }, {