summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyh <[email protected]>2023-06-20 11:32:10 +0800
committerzyh <[email protected]>2023-06-20 11:32:10 +0800
commit5f0b21be80ad638d50ecb95af013549c8a1fdb70 (patch)
tree618c653408959d3ec0bf5d1063ff42906d96476f
parentaed1832ae93f22ccbef0dc0b52d5b057507db726 (diff)
parent0116f915b43f3fd19b2e745daa80080a5dbc8e9e (diff)
Merge branch 'dev-3.5' of git.mesalab.cn:nezha/nezha-fronted into dev-3.6
-rw-r--r--nezha-fronted/src/assets/css/components/common/searchInput.scss4
-rw-r--r--nezha-fronted/src/components/common/searchInput.vue17
-rw-r--r--nezha-fronted/src/components/page/tool/ping.vue3
-rw-r--r--nezha-fronted/src/components/page/tool/trace.vue3
4 files changed, 20 insertions, 7 deletions
diff --git a/nezha-fronted/src/assets/css/components/common/searchInput.scss b/nezha-fronted/src/assets/css/components/common/searchInput.scss
index f8ae74d46..16dabf438 100644
--- a/nezha-fronted/src/assets/css/components/common/searchInput.scss
+++ b/nezha-fronted/src/assets/css/components/common/searchInput.scss
@@ -345,3 +345,7 @@
li {
list-style: none;
}
+
+.input-center-box .el-scrollbar__wrap{
+ margin-right: 0 !important;
+} \ No newline at end of file
diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue
index e6ef1dac3..2e544dc53 100644
--- a/nezha-fronted/src/components/common/searchInput.vue
+++ b/nezha-fronted/src/components/common/searchInput.vue
@@ -419,7 +419,9 @@ export default {
select_list: {
// 监听下拉列表
handler (newData, oldData) {
- this.$refs.searchScrollbar.update()
+ this.$nextTick(() => {
+ this.$refs.searchScrollbar.update()
+ })
if (newData.length == 0) {
this.change_sreach_show = true
this.clearSearchShow = false
@@ -597,9 +599,9 @@ export default {
setTimeout(function () {
_this.getHeight()
})
- /* this.$nextTick(() => {
- this.$refs.searchScrollbar.update();
- }); */
+ this.$nextTick(() => {
+ this.$refs.searchScrollbar.update()
+ })
},
// 一层下拉点击
tr_selectTypeInfo (val) {
@@ -1075,6 +1077,10 @@ export default {
this.input_list = true
this.restructure_historyDate()
+ this.$nextTick(() => {
+ this.$refs.searchScrollbar.update()
+ })
+
this.$emit('search', objectInfo)
},
// 清空历史记录
@@ -1300,9 +1306,6 @@ export default {
JSON.parse(JSON.stringify(this.searchMsg.searchLabelList)).forEach(val => {
this.searchLabelList.push(val)
})
- this.$nextTick(() => {
- this.$refs.searchScrollbar.update()
- })
this.select()
},
// 修改已有参数
diff --git a/nezha-fronted/src/components/page/tool/ping.vue b/nezha-fronted/src/components/page/tool/ping.vue
index 45439db22..155ed7e8e 100644
--- a/nezha-fronted/src/components/page/tool/ping.vue
+++ b/nezha-fronted/src/components/page/tool/ping.vue
@@ -391,6 +391,9 @@ export default {
await this.clearTask()
}
next()
+ },
+ beforeDestroy () {
+ this.clearTask()
}
}
</script>
diff --git a/nezha-fronted/src/components/page/tool/trace.vue b/nezha-fronted/src/components/page/tool/trace.vue
index 74e3b5282..0b1ab5bc4 100644
--- a/nezha-fronted/src/components/page/tool/trace.vue
+++ b/nezha-fronted/src/components/page/tool/trace.vue
@@ -382,6 +382,9 @@ export default {
await this.clearTask()
}
next()
+ },
+ beforeDestroy () {
+ this.clearTask()
}
}
</script>