Commit 0db585d9 authored by honghy's avatar honghy

列表底部滚动条固定

parent fa0ce1eb
...@@ -998,6 +998,9 @@ export default { ...@@ -998,6 +998,9 @@ export default {
} }
}, },
watch: { watch: {
showSearch() {
this.handleQuery()
},
selectCustomerList(val) { selectCustomerList(val) {
if (val.length === 0) { if (val.length === 0) {
this.getList() this.getList()
...@@ -1533,6 +1536,7 @@ export default { ...@@ -1533,6 +1536,7 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout()
let getHeightFromBottom = (element, variableHeight) => { let getHeightFromBottom = (element, variableHeight) => {
const elementRect = element.getBoundingClientRect().top; const elementRect = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight; const windowHeight = window.innerHeight;
......
...@@ -975,6 +975,7 @@ export default { ...@@ -975,6 +975,7 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout()
let getHeightFromBottom = (element, variableHeight) => { let getHeightFromBottom = (element, variableHeight) => {
const elementRect = element.getBoundingClientRect().top; const elementRect = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight; const windowHeight = window.innerHeight;
...@@ -988,6 +989,9 @@ export default { ...@@ -988,6 +989,9 @@ export default {
}, },
}, },
watch: { watch: {
showSearch() {
this.handleQuery()
},
selectCustomerList(val) { selectCustomerList(val) {
if (val.length === 0) { if (val.length === 0) {
this.getList() this.getList()
......
...@@ -695,6 +695,11 @@ export default { ...@@ -695,6 +695,11 @@ export default {
this.$refs.multipleTable.doLayout() this.$refs.multipleTable.doLayout()
}) })
}, },
watch: {
showSearch() {
this.handleQuery()
}
},
computed: { computed: {
isChinese() { isChinese() {
return this.$i18n.locale === "zh_CN"; return this.$i18n.locale === "zh_CN";
...@@ -1071,6 +1076,7 @@ export default { ...@@ -1071,6 +1076,7 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout()
let getHeightFromBottom = (element, variableHeight) => { let getHeightFromBottom = (element, variableHeight) => {
const elementRect = element.getBoundingClientRect().top; const elementRect = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight; const windowHeight = window.innerHeight;
......
...@@ -227,6 +227,9 @@ export default { ...@@ -227,6 +227,9 @@ export default {
} }
}, },
watch: { watch: {
showSearch() {
this.handleQuery()
},
selectCustomerFollowList(val) { selectCustomerFollowList(val) {
if (val.length === 0) { if (val.length === 0) {
this.getDataSpaceCustomerFollowupList() this.getDataSpaceCustomerFollowupList()
...@@ -333,6 +336,7 @@ export default { ...@@ -333,6 +336,7 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout()
let getHeightFromBottom = (element, variableHeight) => { let getHeightFromBottom = (element, variableHeight) => {
const elementRect = element.getBoundingClientRect().top; const elementRect = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight; const windowHeight = window.innerHeight;
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
</el-row> </el-row>
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" border :data="list" @selection-change="handleSelectionChange" id="dataTable" :height="autoHeight"> <el-table v-loading="loading" border :data="list" @selection-change="handleSelectionChange" ref="dataTable" id="dataTable" :height="autoHeight">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column :label="$t('订单编号')" width="120px" align="center" prop="orderNo" fixed> <el-table-column :label="$t('订单编号')" width="120px" align="center" prop="orderNo" fixed>
...@@ -852,7 +852,9 @@ export default { ...@@ -852,7 +852,9 @@ export default {
this.getList() this.getList()
}, },
// provinceCode destCountryId // provinceCode destCountryId
showSearch() {
this.handleQuery()
},
destCountryId: { destCountryId: {
//监听当前地区值的变化,于与上方地区值进行了双向绑定 //监听当前地区值的变化,于与上方地区值进行了双向绑定
deep: true, //深度监听 deep: true, //深度监听
...@@ -1504,6 +1506,7 @@ export default { ...@@ -1504,6 +1506,7 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.dataTable.doLayout()
let getHeightFromBottom = (element, variableHeight) => { let getHeightFromBottom = (element, variableHeight) => {
const elementRect = element.getBoundingClientRect().top; const elementRect = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight; const windowHeight = window.innerHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment