feat:完善订单下载列表页面
This commit is contained in:
parent
fd8d0ac740
commit
c6d19b339f
|
@ -66,7 +66,7 @@ export default class downloadlist extends React.Component {
|
|||
title: "确认操作",
|
||||
content: (
|
||||
<p>
|
||||
是否删除<b>[{row.order_number}]</b>?
|
||||
是否删除<b>[{row.name}]</b>?
|
||||
</p>
|
||||
),
|
||||
onConfirm() {
|
||||
|
@ -77,34 +77,17 @@ export default class downloadlist extends React.Component {
|
|||
parentComponent: this
|
||||
})
|
||||
}
|
||||
//清空
|
||||
clearFn() {
|
||||
this.setState({ selectiondata: [] })
|
||||
this.setState({ allcheck: false })
|
||||
this.setState({ itemcheck: false })
|
||||
}
|
||||
//page
|
||||
pageChange(e) {
|
||||
this.setState({ page: e })
|
||||
this.setState({ selectiondata: [] })
|
||||
setTimeout(() => {
|
||||
this.getOrderFn()
|
||||
}, 0)
|
||||
}
|
||||
//limit
|
||||
countChange(e) {
|
||||
this.setState({ page: 1, limit: e })
|
||||
this.setState({ selectiondata: [] })
|
||||
setTimeout(() => {
|
||||
this.getOrderFn()
|
||||
}, 0)
|
||||
}
|
||||
//敲回车查询
|
||||
sureFn() {
|
||||
this.setState({ page: 1 })
|
||||
setTimeout(() => {
|
||||
this.getOrderFn()
|
||||
}, 300)
|
||||
}
|
||||
statuStyle(val){
|
||||
let result;
|
||||
|
@ -175,7 +158,7 @@ export default class downloadlist extends React.Component {
|
|||
{
|
||||
return <p>
|
||||
<span className={rowData.status!=2?'grid-link disabled':'grid-link'} onClick={(e)=>this.editFn(e,rowData)}>下载</span>
|
||||
<span className={rowData.status==1?'grid-link disabled':'grid-link'} onClick={(e)=>this.delFn(e,rowData)}>删除</span>
|
||||
<span className={rowData.status==1?'grid-link disabled':'grid-link'} onClick={(e)=>this.deleteFn(e,rowData)}>删除</span>
|
||||
</p>
|
||||
}
|
||||
}}/>
|
||||
|
|
Loading…
Reference in New Issue