mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
Merge pull request #4300 from jumpserver/pr@v4.0@fix_job_detail_info
fixed: Fixed an issue where fields are not displayed in the execution details page
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<template>
|
||||
<el-row :gutter="20">
|
||||
<el-col :md="15" :sm="24">
|
||||
<AutoDetailCard :excludes="excludes" :object="object" :url="url" />
|
||||
<AutoDetailCard
|
||||
:excludes="excludes"
|
||||
:object="object"
|
||||
:url="url"
|
||||
:fields="detailFields"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col v-if="hasSummary" :md="9" :sm="24">
|
||||
<IBox
|
||||
@@ -82,6 +87,19 @@ export default {
|
||||
excludes: [
|
||||
'job', 'parameters', 'summary', 'task_id', 'timedelta'
|
||||
],
|
||||
detailFields: [
|
||||
'task_id', 'time_cost',
|
||||
{
|
||||
key: this.$t('IsFinished'),
|
||||
value: this.object.is_finished ? this.$t('Yes') : this.$t('No')
|
||||
},
|
||||
{
|
||||
key: this.$t('IsSuccess'),
|
||||
value: this.object.is_success ? this.$t('Yes') : this.$t('No')
|
||||
},
|
||||
'job_type', 'material', 'org_name',
|
||||
'date_start', 'date_finished', 'date_created'
|
||||
],
|
||||
url: `/api/v1/ops/job-executions/${this.object.id}/`
|
||||
}
|
||||
},
|
||||
@@ -89,11 +107,6 @@ export default {
|
||||
hasSummary() {
|
||||
return this.object.is_finished && Object.keys(this.object.summary).length
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user