mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 15:19:25 +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"
|
||||
},
|
||||
"common": {
|
||||
"Assets": "Assets",
|
||||
"BatchProcessing": "Select {Number} items",
|
||||
"Generate": "Generate",
|
||||
"BatchProcessing": "Batch processing(select {Number} items)",
|
||||
|
@@ -469,6 +469,7 @@
|
||||
"ReLoginErr": "ログイン時間が 5 分を超えました。もう一度ログインしてください"
|
||||
},
|
||||
"common": {
|
||||
"Assets": "資産",
|
||||
"BatchProcessing": "選択 {Number} 項目",
|
||||
"Generate": "生成",
|
||||
"BatchProcessing": "一括処理(選択 {Number} 項目)",
|
||||
|
@@ -465,6 +465,7 @@
|
||||
"ReLoginErr": "登录时长已超过 5 分钟,请重新登录"
|
||||
},
|
||||
"common": {
|
||||
"Assets": "资产",
|
||||
"OtherRules": "其它规则",
|
||||
"MatchedCount": "匹配结果",
|
||||
"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 Detail from './Detail.vue'
|
||||
import Automation from './Automation.vue'
|
||||
import Assets from './Assets.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
GenericDetailPage,
|
||||
TabPage,
|
||||
Detail,
|
||||
Automation
|
||||
Automation,
|
||||
Assets
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -30,6 +32,10 @@ export default {
|
||||
title: this.$t('common.BasicInfo'),
|
||||
name: 'Detail'
|
||||
},
|
||||
{
|
||||
title: this.$t('common.Assets'),
|
||||
name: 'Assets'
|
||||
},
|
||||
{
|
||||
title: this.$t('common.Automations'),
|
||||
name: 'Automation'
|
||||
|
Reference in New Issue
Block a user