|
@@ -34,7 +34,7 @@
|
|
:rowKey="(record) => record.id"
|
|
:rowKey="(record) => record.id"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
- :scroll="{ y: 300 }"
|
|
|
|
|
|
+ :scroll="{ y: tableHeight }"
|
|
bordered>
|
|
bordered>
|
|
<!-- 状态 -->
|
|
<!-- 状态 -->
|
|
<template slot="enabledFlag" slot-scope="text, record">
|
|
<template slot="enabledFlag" slot-scope="text, record">
|
|
@@ -77,6 +77,7 @@ export default {
|
|
enabledFlag: undefined // 状态
|
|
enabledFlag: undefined // 状态
|
|
},
|
|
},
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
|
+ tableHeight:0,
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
{ title: '产品品牌名称', dataIndex: 'brandName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '产品品牌名称', dataIndex: 'brandName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
@@ -88,6 +89,9 @@ export default {
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
|
|
+ if (this.tableHeight == 0) {
|
|
|
|
+ this.tableHeight = window.innerHeight - 220
|
|
|
|
+ }
|
|
return dealerProductBrandList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
return dealerProductBrandList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
const data = res.data
|
|
const data = res.data
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|