From c82846d7d26d749f3605fcaf0ef6bb35a67921fb Mon Sep 17 00:00:00 2001 From: likexuan Date: Tue, 7 Mar 2023 15:20:17 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2642=20fix:=20=E6=90=9C=E7=B4=A2=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A1=86=E6=A0=B7=E5=BC=8F=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/assets/css/components/common/searchInput.scss | 2 +- nezha-fronted/src/components/common/searchInput.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 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..bdf9e0d95 100644 --- a/nezha-fronted/src/assets/css/components/common/searchInput.scss +++ b/nezha-fronted/src/assets/css/components/common/searchInput.scss @@ -310,7 +310,7 @@ width: auto; max-width: 400px; max-height: 240px; - min-width: 300px; + min-width: 260px; background: $--background-color-empty; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index e6ef1dac3..cae7a68f1 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -961,7 +961,7 @@ export default { objectInfo.type = val.valnum } else if (val.label === 'assetState') { objectInfo.stateIds = val.valnum - }else if (val.label === 'terminalStatus') { + } else if (val.label === 'terminalStatus') { objectInfo.state = val.valnum } else if (val.label === 'assetType') { objectInfo.typeIds = val.valnum @@ -1544,11 +1544,11 @@ export default { if (this.inTransform) { const position = inputListDom.getBoundingClientRect() this.selectDom.top = position.top + 36 + 'px' - this.selectDom.left = position.left + 'px' + this.selectDom.left = position.left - 31 + 'px' } else { const position = inputListDom.getBoundingClientRect() this.selectDom.top = position.top + 36 + 'px' - this.selectDom.left = position.left + 'px' + this.selectDom.left = position.left - 31 + 'px' } }) }