mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-22 03:11:17 +00:00
Compare commits
1 Commits
v4.10.13
...
pr@pam@sty
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e44b60a921 |
@@ -1,41 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-row :gutter="20">
|
<div>
|
||||||
<el-col :md="15" :sm="24" class="auto-detail-card">
|
<el-row :gutter="20">
|
||||||
<AutoDetailCard :object="object" v-bind="detail" />
|
<el-col :md="15" :sm="24" class="auto-detail-card">
|
||||||
</el-col>
|
<AutoDetailCard :object="object" v-bind="detail" />
|
||||||
<el-col :md="9" :sm="24" class="quick-actions">
|
</el-col>
|
||||||
<QuickActions :actions="quickActions" type="primary" />
|
<el-col :md="9" :sm="24" class="quick-actions">
|
||||||
<ViewSecret
|
<QuickActions :actions="quickActions" type="primary" />
|
||||||
v-if="showViewSecretDialog"
|
<ViewSecret
|
||||||
:account="object"
|
v-if="showViewSecretDialog"
|
||||||
:url="secretUrl"
|
:account="object"
|
||||||
:visible.sync="showViewSecretDialog"
|
:url="secretUrl"
|
||||||
/>
|
:visible.sync="showViewSecretDialog"
|
||||||
<AutomationParamsForm
|
/>
|
||||||
:has-button="false"
|
<AutomationParamsForm
|
||||||
:method="pushAccountMethod"
|
:has-button="false"
|
||||||
:visible.sync="autoPushVisible"
|
:method="pushAccountMethod"
|
||||||
@canSetting="onCanSetting"
|
:visible.sync="autoPushVisible"
|
||||||
@submit="onSubmit"
|
@canSetting="onCanSetting"
|
||||||
/>
|
@submit="onSubmit"
|
||||||
</el-col>
|
/>
|
||||||
</el-row>
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-drawer
|
||||||
|
size="50%"
|
||||||
|
:with-header="false"
|
||||||
|
:append-to-body="true"
|
||||||
|
:visible.sync="pamDrawerShow"
|
||||||
|
>
|
||||||
|
<component :is="drawerRefName" />
|
||||||
|
</el-drawer>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AutoDetailCard from '@/components/Cards/DetailCard/auto.vue'
|
|
||||||
import QuickActions from '@/components/QuickActions/index.vue'
|
|
||||||
import ViewSecret from '@/components/Apps/AccountListTable/ViewSecret.vue'
|
|
||||||
import { openTaskPage } from '@/utils/jms'
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
import QuickActions from '@/components/QuickActions/index.vue'
|
||||||
|
import AutoDetailCard from '@/components/Cards/DetailCard/auto.vue'
|
||||||
|
import AssetDetail from '@/views/assets/Asset/AssetDetail/index.vue'
|
||||||
|
import ViewSecret from '@/components/Apps/AccountListTable/ViewSecret.vue'
|
||||||
import AutomationParamsForm from '@/views/assets/Platform/AutomationParamsSetting.vue'
|
import AutomationParamsForm from '@/views/assets/Platform/AutomationParamsSetting.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
components: {
|
components: {
|
||||||
AutoDetailCard,
|
ViewSecret,
|
||||||
|
AssetDetail,
|
||||||
QuickActions,
|
QuickActions,
|
||||||
AutomationParamsForm,
|
AutoDetailCard,
|
||||||
ViewSecret
|
AutomationParamsForm
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
object: {
|
object: {
|
||||||
@@ -47,6 +60,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
const vm = this
|
const vm = this
|
||||||
return {
|
return {
|
||||||
|
pamDrawerShow: false,
|
||||||
|
drawerRefName: null,
|
||||||
needSetAutoPushParams: false,
|
needSetAutoPushParams: false,
|
||||||
autoPushVisible: false,
|
autoPushVisible: false,
|
||||||
secretUrl: `/api/v1/accounts/account-secrets/${this.object.id}/`,
|
secretUrl: `/api/v1/accounts/account-secrets/${this.object.id}/`,
|
||||||
@@ -213,6 +228,21 @@ export default {
|
|||||||
name: 'AssetDetail',
|
name: 'AssetDetail',
|
||||||
params: { id: this.object.asset.id }
|
params: { id: this.object.asset.id }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.$route.query.type === 'pam') {
|
||||||
|
this.drawerRefName = 'AssetDetail'
|
||||||
|
|
||||||
|
this.$route.params.id = this.object.asset.id
|
||||||
|
|
||||||
|
return (
|
||||||
|
<span style={{ color: '#1c84c6', cursor: 'pointer' }} onClick={() => {
|
||||||
|
this.pamDrawerShow = true
|
||||||
|
}}>
|
||||||
|
{value?.name}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return <router-link to={route}>{value?.name}</router-link>
|
return <router-link to={route}>{value?.name}</router-link>
|
||||||
},
|
},
|
||||||
su_from: (item, value) => {
|
su_from: (item, value) => {
|
||||||
|
|||||||
@@ -59,7 +59,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-drawer
|
<el-drawer
|
||||||
direction="btt"
|
|
||||||
size="50%"
|
size="50%"
|
||||||
:with-header="false"
|
:with-header="false"
|
||||||
:append-to-body="true"
|
:append-to-body="true"
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export default {
|
|||||||
return (
|
return (
|
||||||
<span style={{ color: '#1c84c6', cursor: 'pointer' }} onClick={() => {
|
<span style={{ color: '#1c84c6', cursor: 'pointer' }} onClick={() => {
|
||||||
this.$route.params.id = row.id
|
this.$route.params.id = row.id
|
||||||
|
this.$route.query.type = 'pam'
|
||||||
|
|
||||||
this.currentTemplate = 'AssetAccountDetail'
|
this.currentTemplate = 'AssetAccountDetail'
|
||||||
this.showTableDetailDrawer = true
|
this.showTableDetailDrawer = true
|
||||||
@@ -60,7 +61,7 @@ export default {
|
|||||||
this.drawerTitle = this.$t('AssetDetail')
|
this.drawerTitle = this.$t('AssetDetail')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{row.name}
|
{row.asset.name}
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<span>{row.asset ? row.asset.name : ''}</span>
|
<span>{row.asset ? row.asset.name : ''}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user