diff --git a/nezha-fronted/package-lock.json b/nezha-fronted/package-lock.json
index 8f4454e48..d277ba116 100644
--- a/nezha-fronted/package-lock.json
+++ b/nezha-fronted/package-lock.json
@@ -4294,7 +4294,7 @@
"boolbase": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
- "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="
+ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
},
"brace-expansion": {
"version": "1.1.11",
@@ -5302,7 +5302,7 @@
"color-name": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="
},
"color-string": {
"version": "1.9.1",
@@ -5413,7 +5413,7 @@
"concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
},
"concat-stream": {
"version": "1.6.2",
@@ -8254,7 +8254,7 @@
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg=="
},
"escodegen": {
"version": "1.14.3",
@@ -9314,7 +9314,7 @@
"fast-levenshtein": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
- "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
"dev": true
},
"faye-websocket": {
@@ -9732,7 +9732,7 @@
"fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
"fsevents": {
"version": "1.2.13",
@@ -10263,7 +10263,7 @@
"has-flag": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw=="
},
"has-symbol-support-x": {
"version": "1.4.2",
@@ -10819,7 +10819,7 @@
"imurmurhash": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
- "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o="
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA=="
},
"in-publish": {
"version": "2.0.1",
@@ -10845,7 +10845,7 @@
"inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
"requires": {
"once": "^1.3.0",
"wrappy": "1"
@@ -11089,7 +11089,7 @@
"is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="
},
"is-finite": {
"version": "1.0.2",
@@ -11304,7 +11304,7 @@
"isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"dev": true
},
"isobject": {
@@ -12608,7 +12608,7 @@
"json-stable-stringify-without-jsonify": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
- "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE="
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="
},
"json-stringify-safe": {
"version": "5.0.1",
@@ -14137,7 +14137,7 @@
"natural-compare": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
- "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
"dev": true
},
"ncp": {
@@ -14627,7 +14627,7 @@
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"requires": {
"wrappy": "1"
}
@@ -15004,7 +15004,7 @@
"path-is-absolute": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="
},
"path-is-inside": {
"version": "1.0.2",
@@ -18573,7 +18573,7 @@
"svg-tags": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz",
- "integrity": "sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=",
+ "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==",
"dev": true
},
"svgo": {
@@ -19288,7 +19288,7 @@
"text-table": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
- "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
"dev": true
},
"throat": {
@@ -19928,7 +19928,7 @@
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"util.promisify": {
"version": "1.0.0",
@@ -21254,7 +21254,7 @@
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"write-file-atomic": {
"version": "2.4.1",
diff --git a/nezha-fronted/src/assets/css/components/common/bottomBox/dashboardTab.scss b/nezha-fronted/src/assets/css/components/common/bottomBox/dashboardTab.scss
index 71c584233..8e98db7fe 100644
--- a/nezha-fronted/src/assets/css/components/common/bottomBox/dashboardTab.scss
+++ b/nezha-fronted/src/assets/css/components/common/bottomBox/dashboardTab.scss
@@ -229,6 +229,14 @@
color: #F0BF84;
}
}
+.dashboard-tab-temp {
+ .el-tabs__item{
+ width: 175px !important;
+ }
+ .el-tabs__active-bar {
+ width: 175px !important;
+ }
+}
.nz-dashboard-dropdown {
z-index: 3001 !important;
}
diff --git a/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue b/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue
index 727b83e9d..781e11ff8 100644
--- a/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue
+++ b/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue
@@ -19,7 +19,7 @@
{{bottomHeaderTitle}}:
-
+
@@ -62,6 +62,10 @@ export default {
type: String,
default: ''
},
+ customClassName: {
+ type: String,
+ default: ''
+ },
tableTitle: {
type: Array
},
@@ -106,7 +110,7 @@ export default {
},
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/dashboardTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue
index d70dd92df..7f8f935d0 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue
@@ -9,6 +9,7 @@
:targetTab="targetTab"
@changeTab="changeTab"
class="full-width-height"
+ :customClassName="'dashboard-tab-temp'"
:showPagination="false"
>
{{obj.name}}
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue
index c801d9bdc..f23d592ec 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue
@@ -73,34 +73,38 @@ export default {
zheze_none: true,
searchLabelList: [
{
- id: 11,
- name: this.$t('config.terminallog.loginHost'),
+ id: 15,
+ name: this.$t('config.terminallog.SessionID'),
type: 'input',
- label: 'host',
+ label: 'uuid',
disabled: false
- }, {
- id: 12,
- name: this.$t('config.terminallog.loginUser'),
- type: 'input',
- label: 'loginUser',
- disabled: false
- }, {
- id: 13,
- name: this.$t('ping.sourceIp'),
- type: 'input',
- label: 'remoteAddr',
- disabled: false
- }, {
+ },
+ {
id: 14,
name: this.$t('config.terminallog.sourceUser'),
type: 'input',
label: 'username',
disabled: false
- }, {
- id: 15,
- name: this.$t('config.terminallog.uuid'),
+ },
+ {
+ id: 13,
+ name: this.$t('ping.sourceIp'),
type: 'input',
- label: 'uuid',
+ label: 'remoteAddr',
+ disabled: false
+ },
+ {
+ id: 12,
+ name: this.$t('config.terminallog.loginUser'),
+ type: 'input',
+ label: 'loginUser',
+ disabled: false
+ },
+ {
+ id: 11,
+ name: this.$t('config.terminallog.loginHost'),
+ type: 'input',
+ label: 'host',
disabled: false
}, {
id: 16,
diff --git a/nezha-fronted/src/components/common/mixin/dataList.js b/nezha-fronted/src/components/common/mixin/dataList.js
index 355800dee..a9926c343 100644
--- a/nezha-fronted/src/components/common/mixin/dataList.js
+++ b/nezha-fronted/src/components/common/mixin/dataList.js
@@ -161,6 +161,8 @@ export default {
if (this.detailType === 'view') {
this.$refs.dataDetail && (this.$refs.dataDetail.$refs.dataTable.scrollTop = 0)
}
+ } else {
+ this.$message.error(response.error || response.msg)
}
})
},
diff --git a/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue b/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue
new file mode 100644
index 000000000..ed0c47ddb
--- /dev/null
+++ b/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
diff --git a/nezha-fronted/src/components/common/rightBox/software/softwareTypeBox.vue b/nezha-fronted/src/components/common/rightBox/software/softwareTypeBox.vue
index 447034e01..0f4beea58 100644
--- a/nezha-fronted/src/components/common/rightBox/software/softwareTypeBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/software/softwareTypeBox.vue
@@ -18,26 +18,33 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ {{$t('softwareType.params')}}
+
+
@@ -144,10 +151,6 @@
>
-
-
-
-
@@ -225,14 +228,8 @@ export default {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
- brandId: [
+ category: [
{ required: true, message: this.$t('validate.required'), trigger: 'change' }
- ],
- typeId: [
- { required: true, message: this.$t('validate.required'), trigger: 'change' }
- ],
- sysObjectId: [
- { validator: sysObjectIdInput, trigger: 'blur' }
]
},
labelCascProp: {
diff --git a/nezha-fronted/src/components/common/searchBox/searchBox.vue b/nezha-fronted/src/components/common/searchBox/searchBox.vue
index d4dd4f523..276702474 100644
--- a/nezha-fronted/src/components/common/searchBox/searchBox.vue
+++ b/nezha-fronted/src/components/common/searchBox/searchBox.vue
@@ -906,6 +906,8 @@ export default {
obj.q = ''
this.oldSearchStr = ''
}
+ this.visible = false
+ this.$refs.searchStr.blur()
this.$emit('search', obj)
})
}, 100),
diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue
index d59d782d4..c72ec0b0c 100644
--- a/nezha-fronted/src/components/common/searchInput.vue
+++ b/nezha-fronted/src/components/common/searchInput.vue
@@ -1120,7 +1120,14 @@ export default {
if (findItem) {
item.name = findItem.name
if (item.valString) { // 判断 有valString 显示对应国际化内容 以防中英文出现问题
- item.valString = this.selectInfoList[item.type].find(selectInfo => selectInfo.value == item.val).label
+ let arr = []
+ if (this.selectInfoList[item.type]) {
+ arr = this.selectInfoList[item.type]
+ } else if (this.selectInfoList[item.label]) {
+ arr = this.selectInfoList[item.label]
+ }
+ const find = arr.find(selectInfo => selectInfo.value == item.val)
+ item.valString = find ? find.label : ''
}
}
})
diff --git a/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue b/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue
new file mode 100644
index 000000000..938f77ccc
--- /dev/null
+++ b/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue
@@ -0,0 +1,203 @@
+
+
+
{}"
+ >
+
+
+
+
+ {{item.label}}
+
+
+
+
+
+
+ {{scope.row[item.prop]?scope.row[item.prop]:'-'}}
+
+
+
+
+
+
+
+ {{scope.row.asset&&scope.row.asset.name}}
+
+
+
+
+
+
+
+ {{scope.row[item.prop].name}}
+
+
+
+
+ {{scope.row[item.prop]}}
+ -
+
+
+
+ {{$t('overall.option')}}
+
+
+
+
+
+
+
+
+ {{$t('overall.edit')}}
+ {{$t('overall.duplicate')}}
+ {{$t('overall.delete')}}
+ {{$t('overall.syncChart')}}
+
+
+
+
+
+
+
+
No results found
+
+
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue b/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue
index eb2cd95d5..68e06ffda 100644
--- a/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/softwareTypeTable.vue
@@ -139,32 +139,35 @@ export default {
label: 'ID',
prop: 'id',
show: true,
- width: 80,
+ width: 120,
sortable: 'custom'
}, {
label: this.$t('config.model.name'),
prop: 'name',
show: true,
- minWidth: 350,
+ width: 350,
sortable: 'custom'
}, {
label: this.$t('softwareType.category'),
prop: 'category',
show: true,
- width: 200,
- sortable: 'custom'
- }, {
- label: this.$t('config.menus.icon'),
- prop: 'icon',
- show: true,
- width: 120,
- sortable: 'custom'
- }, {
- label: this.$t('config.assetLabel.params'),
- prop: 'params',
minWidth: 200,
- show: true
- }, {
+ sortable: 'custom'
+ },
+ // {
+ // label: this.$t('config.menus.icon'),
+ // prop: 'icon',
+ // show: true,
+ // width: 120,
+ // sortable: 'custom'
+ // },
+ // {
+ // label: this.$t('config.assetLabel.params'),
+ // prop: 'params',
+ // minWidth: 200,
+ // show: true
+ // },
+ {
label: this.$t('issue.createTime'),
prop: 'cts',
minWidth: 200,
diff --git a/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue b/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue
index d90fa1dfe..46b8ebf55 100644
--- a/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue
@@ -153,8 +153,9 @@ export default {
prop: 'uuid',
minWidth: 200,
show: true
- }, {
- label: this.$t('config.operationlog.username'),
+ },
+ {
+ label: this.$t('config.terminallog.sourceUser'),
prop: 'username',
minWidth: 200,
show: true
@@ -166,6 +167,18 @@ export default {
show: true,
sortable: 'custom'
},
+ {
+ label: this.$t('config.terminallog.loginUser'),
+ prop: 'loginUser',
+ minWidth: 200,
+ show: true
+ },
+ {
+ label: this.$t('config.terminallog.loginHost'),
+ prop: 'host',
+ minWidth: 200,
+ show: true
+ },
{
label: this.$t('config.terminallog.remote'),
prop: 'remote',
diff --git a/nezha-fronted/src/components/page/asset/software/softwareAsset.vue b/nezha-fronted/src/components/page/asset/software/softwareAsset.vue
new file mode 100644
index 000000000..6189325a9
--- /dev/null
+++ b/nezha-fronted/src/components/page/asset/software/softwareAsset.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $refs.dataList.showBottomBox(targetTab, object) }">
+
+
+
+
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/page/asset/software/softwareType.vue b/nezha-fronted/src/components/page/asset/software/softwareType.vue
index 647af643f..bc987b7c0 100644
--- a/nezha-fronted/src/components/page/asset/software/softwareType.vue
+++ b/nezha-fronted/src/components/page/asset/software/softwareType.vue
@@ -10,7 +10,7 @@
@search="search"
>
-