修改key列表文件

This commit is contained in:
wangsongsole 2022-07-28 11:15:06 +08:00
parent 2da88498aa
commit 634b7ad29e
1 changed files with 15 additions and 39 deletions

View File

@ -39,13 +39,7 @@ export default class acclist extends React.Component {
dataCount: 0, dataCount: 0,
page: 1, page: 1,
limit: 10, limit: 10,
tabList: [ tabList: [{ title: 'KEY列表' }],
{ title: '全部', index: 0 },
{ title: '可使用', index: 1 },
{ title: '已使用', index: 2 },
{ title: '已完结', index: 3 },
{ title: '已作废', index: 4 }
],
distdata: [{ title: '士大夫大师傅' }], distdata: [{ title: '士大夫大师傅' }],
filterList: [ filterList: [
{ {
@ -160,13 +154,11 @@ export default class acclist extends React.Component {
} else { } else {
this.setState({ multiple: true }) this.setState({ multiple: true })
} }
// this.setState({multiple:false})
this.setState({ selectiondata: selection }) this.setState({ selectiondata: selection })
let grantTotal = 0 let grantTotal = 0
let surplusTotal = 0 let surplusTotal = 0
let usageTotal = 0 let usageTotal = 0
let receive_total = 0
let usage_total = 0 let usage_total = 0
let silent_total = 0 let silent_total = 0
let invalidTotal = 0 let invalidTotal = 0
@ -178,7 +170,6 @@ export default class acclist extends React.Component {
outdateTotal += Number(item.overdue) outdateTotal += Number(item.overdue)
invalidTotal += Number(item.invalid) invalidTotal += Number(item.invalid)
// receive_total+=Number(item.receive_total);
usage_total += Number(item.usage_total) usage_total += Number(item.usage_total)
silent_total += Number(item.silent_total) silent_total += Number(item.silent_total)
}) })
@ -391,7 +382,13 @@ export default class acclist extends React.Component {
prop: 'plan_title', prop: 'plan_title',
name: 'plan_title' name: 'plan_title'
}, },
{
title: '归属KEY批次',
prop: 'status',
name: 'status',
width: 'auto',
type: 'slot'
},
{ {
title: '状态', title: '状态',
prop: 'status', prop: 'status',
@ -407,42 +404,42 @@ export default class acclist extends React.Component {
width: 'auto' width: 'auto'
}, },
{ {
title: '发放总数', title: '总发放条数',
prop: 'total', prop: 'total',
name: 'total', name: 'total',
width: 'auto', width: 'auto',
type: 'normal' type: 'normal'
}, },
{ {
title: '剩余数', title: '剩余数',
prop: 'residue', prop: 'residue',
name: 'residue', name: 'residue',
width: 'auto', width: 'auto',
type: 'normal' type: 'normal'
}, },
{ {
title: '使用总数', title: '已使用条数',
name: 'usage', name: 'usage',
prop: 'usage', prop: 'usage',
type: 'normal', type: 'normal',
width: 'auto' width: 'auto'
}, },
{ {
title: '失效总数', title: '已过期条数',
name: 'overdue', name: 'overdue',
prop: 'overdue', prop: 'overdue',
type: 'normal', type: 'normal',
width: 'auto' width: 'auto'
}, },
{ {
title: '作废总数', title: '已作废条数',
name: 'invalid', name: 'invalid',
prop: 'invalid', prop: 'invalid',
type: 'normal', type: 'normal',
width: 'auto' width: 'auto'
}, },
{ {
title: '已完结数', title: '已完结数',
name: 'end', name: 'end',
prop: 'end', prop: 'end',
type: 'normal', type: 'normal',
@ -470,7 +467,7 @@ export default class acclist extends React.Component {
) )
return ( return (
<div id='dislist'> <div id='dislist'>
<TabPage tabs={this.state.tabList} tabChange={this.tabFn.bind(this)}> <TabPage tabs={this.state.tabList}>
<div className='distable dflexj' style={{ paddingBottom: 0 }}> <div className='distable dflexj' style={{ paddingBottom: 0 }}>
<KeysFind <KeysFind
onQuery={(va) => { onQuery={(va) => {
@ -513,27 +510,6 @@ export default class acclist extends React.Component {
批量标记为已使用 批量标记为已使用
</Button> </Button>
</div> </div>
{/* <Button type="info">批量操作</Button> */}
{/* <Ipt
onChange={(e) => this.setState({ search: e })}
value={this.state.search}
wordSearch={this.iptsureFn.bind(this)}
icon="search"
placeholder={"请完整输入key"}
countShow={false}
height={"36px"}
width={"260px"}
onClearItem={(e) => {
this.setState({ search: "" });
let data = {
page: 1,
limit: 10,
};
this.getKeyCodeList(data);
}}
alignment={"left"}
/> */}
</div> </div>
<div className='code-table'> <div className='code-table'>
{this.state.selectiondata.length > 0 ? ( {this.state.selectiondata.length > 0 ? (