更新表格列宽

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){ tabFn(e){
console.log(e)
} }
render(){ render(){
const { current, pageSize } = this.state; const { current, pageSize } = this.state;

View File

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