feat: 资产平台详情添加资产列表页(只显示当前组织下的资产)

This commit is contained in:
fangfangdong
2023-06-02 17:23:21 +08:00
committed by Jiangjie.Bai
parent e11441e5a7
commit 21265aa983
5 changed files with 49 additions and 1 deletions

View File

@@ -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)",

View File

@@ -469,6 +469,7 @@
"ReLoginErr": "ログイン時間が 5 分を超えました。もう一度ログインしてください"
},
"common": {
"Assets": "資産",
"BatchProcessing": "選択 {Number} 項目",
"Generate": "生成",
"BatchProcessing": "一括処理(選択 {Number} 項目)",

View File

@@ -465,6 +465,7 @@
"ReLoginErr": "登录时长已超过 5 分钟,请重新登录"
},
"common": {
"Assets": "资产",
"OtherRules": "其它规则",
"MatchedCount": "匹配结果",
"SelectAttrs": "选择属性",

View 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>

View File

@@ -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'