diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
index 3223db222..ea8156082 100644
--- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
+++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
@@ -83,11 +83,11 @@
-
-
+
+
-
+
@@ -126,7 +126,7 @@ import discoveryTab from '@/components/common/bottomBox/tabs/discoveryTab'
import IpDetails from '@/components/common/bottomBox/tabs/IpDetails'
import recordRuleEvalLog from '@/components/common/bottomBox/tabs/recordRuleEvalLog'
import notebookTab from '@/components/common/bottomBox/tabs/notebookTab'
-import softwareAsset from '@/components/common/bottomBox/tabs/softwareAsset'
+import softwareAssetTab from '@/components/common/bottomBox/tabs/softwareAssetTab'
import licenseManagementTab from '@/components/common/bottomBox/tabs/licenseManagementTab'
export default {
@@ -163,7 +163,7 @@ export default {
vsysBottomTab,
rolesTab,
notebookTab,
- softwareAsset,
+ softwareAssetTab,
licenseManagementTab
},
props: {
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/softwareAsset.vue b/nezha-fronted/src/components/common/bottomBox/tabs/softwareAssetTab.vue
similarity index 68%
rename from nezha-fronted/src/components/common/bottomBox/tabs/softwareAsset.vue
rename to nezha-fronted/src/components/common/bottomBox/tabs/softwareAssetTab.vue
index 33e5b32d2..8c214fec5 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/softwareAsset.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/softwareAssetTab.vue
@@ -1,57 +1,62 @@
-
- {{obj.name}}
-
- { $refs.dataList.showBottomBox(targetTab, object) }">
-
-
-
-
-
+
+
+ {{obj.name}}
+
+ { $refs.dataList.showBottomBox(targetTab, object) }">
+
+
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue b/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue
index 77c311ae5..299c493f9 100644
--- a/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue
@@ -75,17 +75,15 @@
fixed="right">
{{$t('overall.option')}}
-
-
+
- {{$t('overall.edit')}}
- {{$t('overall.duplicate')}}
- {{$t('overall.delete')}}
- {{$t('overall.syncChart')}}
+ {{$t('overall.edit')}}
+ {{$t('overall.duplicate')}}
+ {{$t('overall.delete')}}
diff --git a/nezha-fronted/src/components/page/asset/software/softwareAsset.vue b/nezha-fronted/src/components/page/asset/software/softwareAsset.vue
index b3449e6c7..7a94433a6 100644
--- a/nezha-fronted/src/components/page/asset/software/softwareAsset.vue
+++ b/nezha-fronted/src/components/page/asset/software/softwareAsset.vue
@@ -97,6 +97,7 @@ export default {
data () {
return {
url: '/asset/software',
+ tableId: 'softwareAssetTable',
blankObject: { // 空白对象
id: '',
name: '',
@@ -106,7 +107,6 @@ export default {
params: {},
remark: ''
},
- tableId: 'softwareAssetTable',
searchMsg: { // 给搜索框子组件传递的信息
searchLabelList: [{
name: 'ID',
@@ -123,7 +123,44 @@ export default {
}
},
created () {
-
+ const searchKeys = {
+ // key: path 键
+ // value: vue set 参数
+ pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
+ pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
+ orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
+ ids: {
+ target: this.searchLabel,
+ isSearchInput: true,
+ propertyName: 'ids',
+ type: 'string',
+ defaultJson: {
+ disabled: false,
+ id: 'ids',
+ label: 'ids',
+ name: 'ID',
+ type: 'input',
+ val: ''
+ },
+ jsonKey: 'val'
+ },
+ name: {
+ target: this.searchLabel,
+ isSearchInput: true,
+ propertyName: 'name',
+ type: 'string',
+ defaultJson: {
+ disabled: false,
+ id: 'name',
+ label: 'name',
+ name: 'Name',
+ type: 'input',
+ val: ''
+ },
+ jsonKey: 'val'
+ }
+ }
+ this.initQueryFromPath(searchKeys)
},
computed: {
},