NEZ-2900 fix:批量修改资产页面,查询条件下拉内容建议和输入框对齐

This commit is contained in:
zhangyu
2023-06-21 15:24:34 +08:00
parent c256f7f44d
commit eb08fad0db
3 changed files with 9 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts'; // 避免ele原字体加载
}
body {
height: 100%;
min-width: 1024px;
min-width: 1400px;
margin:0 !important;
padding: 0 !important;
cursor: default;

View File

@@ -8,6 +8,7 @@
:search-msg="searchMsg"
:show-history="false"
:show-search="false"
:isNzTransfet="true"
style="width:100%"
@search="search"
></search-input>

View File

@@ -501,6 +501,7 @@ export default {
defaultItem: {},
defaultValue: {},
inTransform: {},
isNzTransfet: {},
position: {
type: String,
default: ''
@@ -1544,6 +1545,12 @@ export default {
const inputListDom = this.$refs['input-center-box']
if (inputListDom) {
this.$nextTick(() => {
if (this.isNzTransfet) {
const position = inputListDom.getBoundingClientRect()
this.selectDom.top = position.top + 36 + 'px'
this.selectDom.left = position.left + 'px'
return
}
if (this.inTransform) {
const position = inputListDom.getBoundingClientRect()
this.selectDom.top = position.top + 36 + 'px'