解决后台表格兼容性

This commit is contained in:
red-deng-deng 2021-11-27 20:03:15 +08:00
parent 62ba91fbc6
commit 3ccda10c54
3 changed files with 19 additions and 5 deletions

View File

@ -71,7 +71,8 @@ export default class commoditylist extends React.Component{
tabList:[{title:"商品范围列表"}],
distdata:[],
selectiondata:[],
limit:10,
limit:10,
tableHeight:500,
filterList:[{id:0,label:"商品类型",menuList:[{id:2,name:"卡密"},{id:1,name:"直充"}]},
],
menuList:[{id:0,name:"商品类型",check:false}],
@ -227,6 +228,9 @@ export default class commoditylist extends React.Component{
limit:this.state.limit
}
this.getTableList(data);//更新列表
}
componentWillMount(){
this.setState({tableHeight:window.innerHeight-430});
}
//状态筛选
selectedId(e){
@ -273,6 +277,7 @@ export default class commoditylist extends React.Component{
Column={Column}
countbarVisible={false}
isSwitch={false}
maxheight={this.state.tableHeight}
pageChange={(e)=>{
this.onPageChange(e)
}}

View File

@ -118,6 +118,7 @@ export default class acclist extends React.Component {
title: "已结束"
}],
distdata: [],
tableHeight:500,
filterList: [{
id: 0,
label: "分销商状态",
@ -287,7 +288,9 @@ export default class acclist extends React.Component {
this.sureFn();
}
}
componentWillMount(){
this.setState({tableHeight:window.innerHeight-430});
}
render() {
const {
current,
@ -356,6 +359,7 @@ export default class acclist extends React.Component {
spliteColor = {
'#fff'
}
maxheight={this.state.tableHeight}
tableData = {
this.state.distdata
}

View File

@ -25,7 +25,8 @@ export default class acclist extends React.Component{
tabList:[{title:"营销计划列表"}],
distdata:[{title:'士大夫大师傅'}],
filterList:[{id:0,label:"状态",menuList:[{id:0,name:"草稿"},{id:2,name:"审核中"},{id:4,name:"生效中"},{id:5,name:"暂停中"},{id:1,name:"创建中"},{id:3,name:"待生效"},{id:6,name:"已失效"}]},
],
],
tableHeight:500,
menuList:[{id:0,name:"状态",check:false}],
email:0,
phone:0,
@ -115,7 +116,10 @@ export default class acclist extends React.Component{
}
this.getPlanList(data);
}
componentWillMount(){
this.setState({tableHeight:window.innerHeight-430});
}
getPlanList(data){
let queryParams = _.omitBy(data, (value) => {
@ -601,7 +605,8 @@ export default class acclist extends React.Component{
spliteColor={'#fff'}
tableData={this.state.distdata}
Column={Column}
countbarVisible={false}
countbarVisible={false}
maxheight={this.state.tableHeight}
isSwitch={false}
dataCount={this.state.dataCount}
pageChange={(e)=>{