Commit dd628253 authored by 王鑫's avatar 王鑫

fix(节假日): 表格内滚动

parent dda05e7d
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
:rowKey="rowKey" :rowKey="rowKey"
:pagination="false" :pagination="false"
bordered bordered
:scroll="{y: clientHeight }"
> >
<div slot="title" slot-scope="data"> <div slot="title" slot-scope="data">
<span class="cust-title"> <span class="cust-title">
...@@ -127,7 +128,8 @@ export default { ...@@ -127,7 +128,8 @@ export default {
total: 0, total: 0,
detailData: {}, detailData: {},
isShow: false, isShow: false,
isEdit: false isEdit: false,
clientHeight: 0
} }
}, },
computed: { computed: {
...@@ -267,6 +269,7 @@ export default { ...@@ -267,6 +269,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.clientHeight = document.body.clientHeight-250;
this.initYears() this.initYears()
this.getHolidayType() this.getHolidayType()
if (this.isFirstLoad == true) { if (this.isFirstLoad == true) {
......
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