Commit 6d69e613 by chenxin

fix:update

parent c1a86988
......@@ -309,13 +309,25 @@ export default {
};
const res = await checkMessageSendCount(params);
if (res.errorCode === 0) {
this.$confirm(`即将发送${res.result}人,是否发送?`, '提示', {
let message = '';
const _sendFlag = res.result > 0; // true可发送
if (_sendFlag) {
message = `即将发送${res.result}人,是否发送?`;
} else {
// 发送0人提示
message = '发送人数为0,请重新选择发送人群';
}
this.$confirm(message, '提示', {
confirmButtonText: '确定',
cancelBUttonText: '取消',
type: 'warning'
type: _sendFlag ? 'warning' : 'error'
})
.then(() => {
this.sendRecordSaveService();
if (_sendFlag) {
this.sendRecordSaveService();
} else {
return true;
}
})
.catch(() => {
// this.$tips({type: 'info',message: '已取消发送'});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment