mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 23:59:02 +00:00
perf: 作业中心-执行历史增加作业名称字段显示
This commit is contained in:
@@ -979,6 +979,7 @@
|
|||||||
"Run": "Run",
|
"Run": "Run",
|
||||||
"NewFile": "New file",
|
"NewFile": "New file",
|
||||||
"Job": "Job",
|
"Job": "Job",
|
||||||
|
"JobName": "Job name",
|
||||||
"Type": "Type",
|
"Type": "Type",
|
||||||
"running": "Runing",
|
"running": "Runing",
|
||||||
"ScrollToTop": "Scroll to top",
|
"ScrollToTop": "Scroll to top",
|
||||||
|
@@ -972,6 +972,7 @@
|
|||||||
"SaveCommandSuccess": "保存コマンドが成功しました",
|
"SaveCommandSuccess": "保存コマンドが成功しました",
|
||||||
"NewFile": "新しいファイルを作成する",
|
"NewFile": "新しいファイルを作成する",
|
||||||
"Job": "手術",
|
"Job": "手術",
|
||||||
|
"JobName": "ジョブ名",
|
||||||
"SUCCESS": "成功",
|
"SUCCESS": "成功",
|
||||||
"Type": "タイプ",
|
"Type": "タイプ",
|
||||||
"running": "ランニング",
|
"running": "ランニング",
|
||||||
|
@@ -902,6 +902,7 @@
|
|||||||
"DryRun": "测试运行",
|
"DryRun": "测试运行",
|
||||||
"Language": "语言",
|
"Language": "语言",
|
||||||
"Job": "作业",
|
"Job": "作业",
|
||||||
|
"JobName": "作业名称",
|
||||||
"Command": "命令",
|
"Command": "命令",
|
||||||
"Material": "内容",
|
"Material": "内容",
|
||||||
"Type": "类型",
|
"Type": "类型",
|
||||||
|
@@ -24,12 +24,12 @@ export default {
|
|||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: '/api/v1/ops/job-executions/',
|
url: '/api/v1/ops/job-executions/',
|
||||||
columns: [
|
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: {
|
columnsShow: {
|
||||||
min: ['material', 'actions'],
|
min: ['material', 'actions'],
|
||||||
default: [
|
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: {
|
columnsMeta: {
|
||||||
@@ -49,6 +49,12 @@ export default {
|
|||||||
return '-'
|
return '-'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
job: {
|
||||||
|
label: this.$t('ops.JobName'),
|
||||||
|
formatter: (row) => {
|
||||||
|
return <span>{row.job?.name || '-'}</span>
|
||||||
|
}
|
||||||
|
},
|
||||||
material: {
|
material: {
|
||||||
width: '160px'
|
width: '160px'
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user