@@ -208,7 +208,7 @@ let tool = {
*/
getTableHeight(hasStatusBar = false) {
if (hasStatusBar) return window.innerHeight - 320
- return window.innerHeight - 260
+ return window.innerHeight - 300
},
// 计算商品税额
calculateTax(amount, taxRate, count = 1) {
@@ -3,7 +3,7 @@
<div class="white-box">
<el-tabs v-model="goodsCategory" @tab-click="handleClick">
<el-tab-pane v-for="(item, key) in goodsActive" :key="key" :label="item.label" :name="item.name">
- <el-table v-if="numList.length > 0" class="withdraw-table" :data="tableData" stripe style="width: 100%;" ref="multipleTable" @selection-change="handleSelectionChange">
+ <el-table v-if="numList.length > 0" :max-height="maxHeight" class="withdraw-table" :data="tableData" stripe style="width: 100%;" ref="multipleTable" @selection-change="handleSelectionChange">
<el-table-column
type="selection"
width="55">
@@ -101,6 +101,7 @@
selectLock:false,
goodsCategory: '1',
goodsActive: [],
+ maxHeight: tool.getTableHeight(),
}
watch: {