更新表格列宽

This commit is contained in:
姜棚 2021-12-21 17:14:23 +08:00
parent be995fde53
commit ce4d7c0195
2 changed files with 16 additions and 18 deletions

View File

@ -543,7 +543,7 @@ export default class acclist extends React.Component{
}
tabFn(e){
console.log(e)
}
render(){
const { current, pageSize } = this.state;

View File

@ -466,7 +466,6 @@ export default class acclist extends React.Component{
let data = {
page:1,
limit:10,
key_word:this.state.key_word
}
console.log(prop)
@ -585,78 +584,78 @@ export default class acclist extends React.Component{
name: 'title',
prop:'title',
type: "slot",
width:'150px',
width:'auto',
},{
title: '启用',
width:'60px',
width:'auto',
type: "slot",
prop:'switch'
}, {
title: '分销商',
prop:'reseller_name',
name: 'reseller_name',
width:'100px',
width:'auto',
type: "normal",
}, {
title: '状态',
name: 'status',
prop:'status',
type: "slot",
width:'50px'
width:'auto',
},
{
title: '创建人',
name: 'creator_name',
prop:'creator_name',
type: "normal",
width:'100px'
width:'auto',
},
{
title: '时间范围',
type: "slot",
prop:'dates',
width:'250px'
width:'auto',
},
{
title: '操作',
prop: 'opearo',
name: 'opearo',
type: "slot",
width:'80px',
width:'auto',
},
{
title: '发放key总数',
name: 'grant',
type: "normal",
prop:'grant',
width:'70px',
width:'auto',
},
{
title: '领取key总数',
name: 'receive',
type: "normal",
prop:'receive',
width:'70px',
width:'auto',
},
{
title: '已使用总数',
name: 'usage',
type: "normal",
prop:'usage',
width:'70px',
width:'auto',
}, {
title: '沉默总数',
name: 'silent',
type: "normal",
prop:'silent',
width:'70px',
width:'auto',
},
{
title: '发放总价(预估)',
name: 'grant_total',
type: "normal",
prop:'grant_total',
width:'120px',
width:'auto',
valueType:"price"
},
@ -665,22 +664,21 @@ export default class acclist extends React.Component{
name: 'receive_total',
type: "normal",
prop:'receive_total',
width:'120px',
width:'auto',
valueType:"price"
}, {
title: '已使用总价(预估)',
name: 'usage_total',
type: "normal",
prop:'usage_total',
width:'120px',
sort: true,
width:'auto',
valueType:"price"
},{
title: '沉默总价(预估)',
name: 'silent_total',
type: "normal",
prop:'silent_total',
width:'120px',
width:'auto',
valueType:"price"
},
];