diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index 34b32705..235a75ad 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -584,6 +584,17 @@ export default class acclist extends React.Component { /* 批量发送按钮 */ bulkSendFunction() { + let isNotify = '' + this.state.gridSelection.filter((item) => { + if (![4, 5, 6].includes(item.state)) { + return (isNotify = true) + } + }) + + if (isNotify) { + return Notify.warn('只有状态为进行中、暂停中、已完结的允许发送') + } + this.getResellerInfoFunction(this.state.gridSelection[0].reseller_id) this.setState({ isBulkSend: true }) }