mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: 【优化系统任务】支持显示 执行周期、下次开始时间 字段
This commit is contained in:
@@ -1110,6 +1110,8 @@
|
||||
"SaveAdhoc": "Save Adhoc",
|
||||
"AdhocManage": "Adhoc manage",
|
||||
"LastPublishedTime": "Last published",
|
||||
"ExecuteCycle": "Execute cycle",
|
||||
"ExpectedNextExecuteTime": "Expected next execute time",
|
||||
"CloseConfirmMessage": "The file has changed, do you want to save it?",
|
||||
"privilegeOnly": "Select only privileged accounts",
|
||||
"UploadPlaybook": "Upload Playbook",
|
||||
|
||||
@@ -1104,6 +1104,8 @@
|
||||
"SaveAdhoc": "保存コマンド",
|
||||
"AdhocManage": "コマンド管理",
|
||||
"LastPublishedTime": "最終公開",
|
||||
"ExecuteCycle": "実行サイクル",
|
||||
"ExpectedNextExecuteTime": "次回実行予定時刻",
|
||||
"CloseConfirmMessage": "ファイルが変更されました,保存しますか?",
|
||||
"privilegeOnly": "特権アカウントのみを選択",
|
||||
"UploadPlaybook": "アップロード Playbook",
|
||||
|
||||
@@ -1129,6 +1129,8 @@
|
||||
"AdhocDetail": "命令详情",
|
||||
"Queue": "队列",
|
||||
"State": "状态",
|
||||
"ExecuteCycle": "执行周期",
|
||||
"ExpectedNextExecuteTime": "预计下次执行时间",
|
||||
"LastPublishedTime": "最后发布时间",
|
||||
"Variable": "变量",
|
||||
"Description": "描述",
|
||||
|
||||
@@ -16,7 +16,7 @@ export default {
|
||||
tableConfig: {
|
||||
url: '/api/v1/ops/tasks/',
|
||||
columns: [
|
||||
'name', 'queue', 'count', 'state', 'date_last_publish'
|
||||
'name', 'queue', 'count', 'state', 'date_last_publish', 'exec_cycle', 'next_exec_time'
|
||||
],
|
||||
columnsMeta: {
|
||||
name: {
|
||||
@@ -56,6 +56,20 @@ export default {
|
||||
return row.last_published_time != null ? row.last_published_time : '-'
|
||||
}
|
||||
},
|
||||
exec_cycle: {
|
||||
label: this.$t('ops.ExecuteCycle'),
|
||||
width: '120px',
|
||||
formatter: (row) => {
|
||||
return row.exec_cycle ? row.exec_cycle : '-'
|
||||
}
|
||||
},
|
||||
next_exec_time: {
|
||||
label: this.$t('ops.ExpectedNextExecuteTime'),
|
||||
width: '210px',
|
||||
formatter: (row) => {
|
||||
return row.next_exec_time ? row.next_exec_time : '-'
|
||||
}
|
||||
},
|
||||
count: {
|
||||
width: '80px',
|
||||
label: `${this.$t('ops.success')}/${this.$t('ops.total')}`,
|
||||
|
||||
Reference in New Issue
Block a user