fix: adhoc and playbook detail page display many '-'

This commit is contained in:
wangruidong 2024-11-21 22:46:35 +08:00 committed by 老广
parent 6b6a60b84f
commit a1f20c6f92
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :md="16" :sm="24"> <el-col :md="16" :sm="24">
<AutoDetailCard :fields="detailFields" :object="object" :url="url" /> <AutoDetailCard :excludes="excludes" :object="object" :url="url" />
</el-col> </el-col>
</el-row> </el-row>
</template> </template>
@ -21,7 +21,8 @@ export default {
}, },
data() { data() {
return { return {
url: `/api/v1/ops/adhocs/${this.object.id}/` url: `/api/v1/ops/adhocs/${this.object.id}/`,
excludes: ['variable']
} }
}, },
computed: { computed: {

View File

@ -23,7 +23,7 @@ export default {
return { return {
url: `/api/v1/ops/playbooks/${this.object.id}/`, url: `/api/v1/ops/playbooks/${this.object.id}/`,
excludes: [ excludes: [
'path', 'create_method', 'vcs_url' 'variable', 'path', 'create_method', 'vcs_url'
] ]
} }
}, },