This commit is contained in:
parent
06b62673d5
commit
343a5a9763
|
@ -306,7 +306,7 @@ export default class acclist extends React.Component {
|
||||||
res,
|
res,
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
const newData = req.data.map((item) => {
|
const newData = req.data.map((item) => {
|
||||||
if ([1, 2, 8, 7].includes(item.status)) {
|
if (![4, 5].includes(item.status)) {
|
||||||
item.disabled = true
|
item.disabled = true
|
||||||
}
|
}
|
||||||
return item
|
return item
|
||||||
|
@ -592,13 +592,13 @@ export default class acclist extends React.Component {
|
||||||
bulkSendFunction() {
|
bulkSendFunction() {
|
||||||
let isNotify = ''
|
let isNotify = ''
|
||||||
this.state.gridSelection.filter((item) => {
|
this.state.gridSelection.filter((item) => {
|
||||||
if (![4, 5, 6].includes(item.status)) {
|
if (![4, 5].includes(item.status)) {
|
||||||
return (isNotify = true)
|
return (isNotify = true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (isNotify) {
|
if (isNotify) {
|
||||||
return Notify.warn('只有状态为进行中、暂停中、已完结的允许发送')
|
return Notify.warn('只有状态为进行中、暂停中的允许发送')
|
||||||
}
|
}
|
||||||
this.getResellerInfoFunction(this.state.gridSelection[0].reseller_id)
|
this.getResellerInfoFunction(this.state.gridSelection[0].reseller_id)
|
||||||
this.setState({ isBulkSend: true })
|
this.setState({ isBulkSend: true })
|
||||||
|
|
Loading…
Reference in New Issue