mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-28 03:11:41 +00:00
perf: update platform detail
This commit is contained in:
parent
69f263e491
commit
d3a0f69b4c
@ -182,7 +182,7 @@ export default {
|
|||||||
if (formatterArgs.getTitle) {
|
if (formatterArgs.getTitle) {
|
||||||
title = formatterArgs.getTitle({ col, row, cellValue })
|
title = formatterArgs.getTitle({ col, row, cellValue })
|
||||||
}
|
}
|
||||||
let resource = resolvedRoute?.meta?.title || resolvedRoute?.name
|
let resource = resolvedRoute?.meta?.title || resolvedRoute?.name || ''
|
||||||
resource = resource.replace('Detail', '').replace('详情', '')
|
resource = resource.replace('Detail', '').replace('详情', '')
|
||||||
|
|
||||||
if (resource) {
|
if (resource) {
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
|||||||
can: vm.$hasPerm('accounts.view_changesecretexecution'),
|
can: vm.$hasPerm('accounts.view_changesecretexecution'),
|
||||||
getRoute({ row }) {
|
getRoute({ row }) {
|
||||||
return {
|
return {
|
||||||
name: 'AccountChangeSecretList',
|
name: 'AccountChangeSecretDetail',
|
||||||
query: {
|
query: {
|
||||||
tab: 'AccountChangeSecretExecutionList',
|
tab: 'AccountChangeSecretExecutionList',
|
||||||
automation_id: row.id
|
automation_id: row.id
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import IBox from '../../../../components/Common/IBox'
|
import IBox from '@/components/Common/IBox'
|
||||||
import { GenericCreateUpdateForm } from '@/layout/components'
|
import { GenericCreateUpdateForm } from '@/layout/components'
|
||||||
import { platformFieldsMeta, setAutomations, updateAutomationParams } from '../const'
|
import { platformFieldsMeta, setAutomations, updateAutomationParams } from '../const'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@ -30,7 +30,7 @@ export default {
|
|||||||
ansible_enabled: true
|
ansible_enabled: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: `/api/v1/assets/platforms/${this.object.id}/`,
|
url: `/api/v1/assets/platforms/`,
|
||||||
disabled: !canEdit,
|
disabled: !canEdit,
|
||||||
hasReset: false,
|
hasReset: false,
|
||||||
hasDetailInMsg: false,
|
hasDetailInMsg: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user