|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
|
<template>
|
|
|
- <div style="width:100%">
|
|
|
- <div>
|
|
|
+ <div style="width:100%;height:100%">
|
|
|
+ <div class="tablebox">
|
|
|
<tableLayout height="356px" :layout="tablecols" v-bind="$attrs" :data="list2" :opwidth="200" :custom="true" :width="false" fixedName="operation" :customHeader="true">
|
|
|
<template v-slot:header="data">
|
|
|
<div v-if="data.data.label == '综合折扣'" style="display:flex;align-items:center">
|
|
|
@@ -35,7 +35,7 @@
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="param.content.pageNumber"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
- layout="total,sizes, prev, pager, next, jumper"
|
|
|
+ :layout="fullScroll ? `total, prev, pager, next, jumper` : `total,sizes, prev, pager, next, jumper`"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
@@ -43,6 +43,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {mapGetters} from 'vuex'
|
|
|
export default {
|
|
|
props:["tablecols",'param','custom'],
|
|
|
data () {
|
|
|
@@ -54,6 +55,11 @@ export default {
|
|
|
],
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ ...mapGetters({
|
|
|
+ fullScroll:'fullScroll'
|
|
|
+ })
|
|
|
+ },
|
|
|
methods:{
|
|
|
async listData(init){
|
|
|
if(init) this.$emit('handleParam',this.param)
|
|
|
@@ -85,6 +91,12 @@ export default {
|
|
|
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
+.tablebox {
|
|
|
+ height: calc(100% - 44px);
|
|
|
+}
|
|
|
+.tablebox > div {
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
/deep/.el-table {
|
|
|
min-height: 100% !important;
|
|
|
max-height: 100% !important;
|