|
|
@ -25,6 +25,7 @@ |
|
|
|
:tableColumns="tableColumns" |
|
|
|
@overallSearchFormClick="overallSearchFormClick" |
|
|
|
:httpOverallSearchData="httpOverallSearchData" |
|
|
|
:selectMaxHeight="selectMaxHeight" |
|
|
|
> |
|
|
|
<!-- 插槽预留 --> |
|
|
|
<slot name="searchPrimarySlot"></slot> |
|
|
@ -48,7 +49,7 @@ |
|
|
|
:tableColumns="tableColumns | isTableColumns" |
|
|
|
:isShowIndex="isShowIndex" |
|
|
|
:selectionTable="tableSelection" |
|
|
|
:setUTableHeight="setUTableHeight || uTableTopHeight" |
|
|
|
:setUTableHeight="uTableTopHeight" |
|
|
|
@sortChange="sortChange" |
|
|
|
@handleSelectionChange="handleSelectionChange" |
|
|
|
@inlineDialog="inlineDialog" |
|
|
@ -95,6 +96,11 @@ export default { |
|
|
|
type:String, |
|
|
|
default:'calc(90vh - 280px)' |
|
|
|
}, |
|
|
|
// 筛选条件最大高度 |
|
|
|
selectMaxHeight:{ |
|
|
|
type: String, |
|
|
|
default: '174px' |
|
|
|
}, |
|
|
|
// 筛选高度 |
|
|
|
searchOverallCoverHeight:{ |
|
|
|
type: String, |
|
|
@ -226,6 +232,7 @@ export default { |
|
|
|
rowDropVisible: false, |
|
|
|
// table 重新渲染所需key |
|
|
|
isUpdate: false, |
|
|
|
appRemoveHeight:165, |
|
|
|
// 除去table的高度 |
|
|
|
uTableTopHeight:165, |
|
|
|
// table外部高度控制,用于点击筛选动画处理 |
|
|
@ -265,6 +272,8 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
this.appRemoveHeight = this.setUTableHeight || 165 |
|
|
|
this.uTableTopHeight = this.appRemoveHeight |
|
|
|
this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight() |
|
|
|
this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight)) |
|
|
|
|
|
|
@ -328,12 +337,12 @@ export default { |
|
|
|
let _margin = 20 |
|
|
|
this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin |
|
|
|
setTimeout(()=>{ |
|
|
|
this.uTableTopHeight = minusHeight + 165 + _margin |
|
|
|
this.uTableTopHeight = minusHeight + this.appRemoveHeight + _margin |
|
|
|
},0) |
|
|
|
}else{ |
|
|
|
this.uTableOuterHeight = this.uTableOuterHeight_init |
|
|
|
setTimeout(()=>{ |
|
|
|
this.uTableTopHeight = 165 |
|
|
|
this.uTableTopHeight = this.appRemoveHeight |
|
|
|
},0) |
|
|
|
} |
|
|
|
}, |
|
|
|