mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 15:52:32 +00:00
feat: 资产平台详情添加资产列表页(只显示当前组织下的资产)
This commit is contained in:
committed by
Jiangjie.Bai
parent
e11441e5a7
commit
21265aa983
@@ -469,6 +469,7 @@
|
|||||||
"ReLoginErr": "Login time has exceeded 5 minutes, please login again"
|
"ReLoginErr": "Login time has exceeded 5 minutes, please login again"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
|
"Assets": "Assets",
|
||||||
"BatchProcessing": "Select {Number} items",
|
"BatchProcessing": "Select {Number} items",
|
||||||
"Generate": "Generate",
|
"Generate": "Generate",
|
||||||
"BatchProcessing": "Batch processing(select {Number} items)",
|
"BatchProcessing": "Batch processing(select {Number} items)",
|
||||||
|
@@ -469,6 +469,7 @@
|
|||||||
"ReLoginErr": "ログイン時間が 5 分を超えました。もう一度ログインしてください"
|
"ReLoginErr": "ログイン時間が 5 分を超えました。もう一度ログインしてください"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
|
"Assets": "資産",
|
||||||
"BatchProcessing": "選択 {Number} 項目",
|
"BatchProcessing": "選択 {Number} 項目",
|
||||||
"Generate": "生成",
|
"Generate": "生成",
|
||||||
"BatchProcessing": "一括処理(選択 {Number} 項目)",
|
"BatchProcessing": "一括処理(選択 {Number} 項目)",
|
||||||
|
@@ -465,6 +465,7 @@
|
|||||||
"ReLoginErr": "登录时长已超过 5 分钟,请重新登录"
|
"ReLoginErr": "登录时长已超过 5 分钟,请重新登录"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
|
"Assets": "资产",
|
||||||
"OtherRules": "其它规则",
|
"OtherRules": "其它规则",
|
||||||
"MatchedCount": "匹配结果",
|
"MatchedCount": "匹配结果",
|
||||||
"SelectAttrs": "选择属性",
|
"SelectAttrs": "选择属性",
|
||||||
|
39
src/views/assets/Platform/PlatformDetail/Assets.vue
Normal file
39
src/views/assets/Platform/PlatformDetail/Assets.vue
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<template>
|
||||||
|
<BaseList v-bind="tableConfig" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import BaseList from '../../Asset/AssetList/components/BaseList'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
BaseList
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
object: {
|
||||||
|
type: Object,
|
||||||
|
default: () => { }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
tableConfig: {
|
||||||
|
category: 'all',
|
||||||
|
url: `/api/v1/assets/assets/?platform=${this.object.id}`,
|
||||||
|
headerActions: {
|
||||||
|
createRoute: 'AssetCreate',
|
||||||
|
hasCreate: false,
|
||||||
|
hasRefresh: true,
|
||||||
|
hasExport: false,
|
||||||
|
hasImport: false,
|
||||||
|
hasMoreActions: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
@@ -10,13 +10,15 @@
|
|||||||
import { GenericDetailPage, TabPage } from '@/layout/components'
|
import { GenericDetailPage, TabPage } from '@/layout/components'
|
||||||
import Detail from './Detail.vue'
|
import Detail from './Detail.vue'
|
||||||
import Automation from './Automation.vue'
|
import Automation from './Automation.vue'
|
||||||
|
import Assets from './Assets.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
GenericDetailPage,
|
GenericDetailPage,
|
||||||
TabPage,
|
TabPage,
|
||||||
Detail,
|
Detail,
|
||||||
Automation
|
Automation,
|
||||||
|
Assets
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -30,6 +32,10 @@ export default {
|
|||||||
title: this.$t('common.BasicInfo'),
|
title: this.$t('common.BasicInfo'),
|
||||||
name: 'Detail'
|
name: 'Detail'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('common.Assets'),
|
||||||
|
name: 'Assets'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('common.Automations'),
|
title: this.$t('common.Automations'),
|
||||||
name: 'Automation'
|
name: 'Automation'
|
||||||
|
Reference in New Issue
Block a user