-
{{bottomHeaderTitle}}:
-
+
{{bottomHeaderTitle}}
+
@@ -90,11 +90,15 @@ export default {
},
title: {
type: String
+ },
+ hideHeader: {
+ type: Boolean,
+ default: false
}
},
computed: {
bottomHeaderTitle () {
- return this.title || this.$t('overall.name')
+ return this.title || (this.$t('overall.name') + ':')
},
subContentClass () {
const className = []
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/discoveryTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/discoveryTab.vue
new file mode 100644
index 000000000..f1cf39e98
--- /dev/null
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/discoveryTab.vue
@@ -0,0 +1,161 @@
+
+
+
+ {{ obj.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js
index b53e90f6d..b64845d3c 100644
--- a/nezha-fronted/src/components/common/js/constants.js
+++ b/nezha-fronted/src/components/common/js/constants.js
@@ -423,6 +423,7 @@ export const fromRoute = {
assetType: 'assetType',
assetState: 'assetState',
assetLabel: 'assetLabel',
+ assetDiscovery: 'assetDiscovery',
user: 'user',
agent: 'agent',
recordRule: 'recordRule',
diff --git a/nezha-fronted/src/components/common/table/asset/assetDiscoveryTable.vue b/nezha-fronted/src/components/common/table/asset/assetDiscoveryTable.vue
new file mode 100644
index 000000000..d1af763bf
--- /dev/null
+++ b/nezha-fronted/src/components/common/table/asset/assetDiscoveryTable.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+ {{item.label}}
+
+
+
+
+
+
+ {{scope.row[item.prop]?scope.row[item.prop]:'-'}}
+
+
+
+
+ {{momentTz(scope.row[item.prop])}}
+
+
+ {{snmpCredentialIdToStr(scope.row[item.prop])}}
+
+
+ {{scheduleToStr(scope.row[item.prop])}}
+
+
+
+ {{statusToStr(scope.row[item.prop])}}
+
+ {{scope.row[item.prop] || '-'}}
+ -
+
+
+
+ {{$t('overall.option')}}
+
+
+
+
+
+
+
+
+ {{$t('overall.edit')}}
+
+ {{$t('overall.delete')}}
+
+
+
+
+
+
+
+
No results found
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/common/table/asset/disccoveryTabTable.vue b/nezha-fronted/src/components/common/table/asset/disccoveryTabTable.vue
new file mode 100644
index 000000000..e8883a0eb
--- /dev/null
+++ b/nezha-fronted/src/components/common/table/asset/disccoveryTabTable.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+ {{item.label}}
+
+
+
+
+
+
+ {{scope.row ? scope.row.ip : '-'}}
+
+
+
+
+ {{scope.row[item.prop] ? scope.row[item.prop].name : '-'}}
+
+
+ {{scope.row[item.prop] ? scope.row[item.prop].name : '-'}}
+
+
+ {{typeToStr(scope.row[item.prop])}}
+
+
+ {{$t('tip.yes')}}
+ {{$t('tip.no')}}
+
+ {{scope.row[item.prop]}}
+ -
+
+
+
+ {{$t('overall.option')}}
+
+
+
+
+
+
+
+
No results found
+
+
+
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/page/asset/assetDiscovery.vue b/nezha-fronted/src/components/page/asset/assetDiscovery.vue
new file mode 100644
index 000000000..71935d437
--- /dev/null
+++ b/nezha-fronted/src/components/page/asset/assetDiscovery.vue
@@ -0,0 +1,241 @@
+
+
+
+
+
diff --git a/nezha-fronted/src/router/index.js b/nezha-fronted/src/router/index.js
index 275b63c79..ad9542640 100644
--- a/nezha-fronted/src/router/index.js
+++ b/nezha-fronted/src/router/index.js
@@ -84,6 +84,10 @@ export default new Router({
path: '/assetState',
component: resolve => require(['@/components/page/config/assetState'], resolve)
},
+ {
+ path: '/assetDiscovery',
+ component: resolve => require(['@/components/page/asset/assetDiscovery'], resolve)
+ },
{
path: '/assetLabel',
component: resolve => require(['@/components/page/config/assetMeta'], resolve)