|
@@ -545,7 +545,7 @@ export default {
|
|
{label:"撤销",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_cancelPublish'),States:[4,5,6],text:'ReportManage.smart_btn.withdraw'},
|
|
{label:"撤销",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_cancelPublish'),States:[4,5,6],text:'ReportManage.smart_btn.withdraw'},
|
|
{label:"下载Pdf",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_exportPdf'),States:[2,6],text:'ReportManage.smart_btn.download_pdf'},
|
|
{label:"下载Pdf",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_exportPdf'),States:[2,6],text:'ReportManage.smart_btn.download_pdf'},
|
|
{label:"下载长图",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_exportImg'),States:[2,6],text:'ReportManage.smart_btn.download_long_image'},
|
|
{label:"下载长图",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_exportImg'),States:[2,6],text:'ReportManage.smart_btn.download_long_image'},
|
|
- // {label:"推送消息",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_sendMsg'),States:[2,6],text:'ReportManage.smart_push_notification_btn'},
|
|
|
|
|
|
+ {label:"推送消息",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_sendMsg'),States:[2,6],text:'ReportManage.smart_push_notification_btn'},
|
|
// {label:"已推送消息",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_sendMsg'),States:[2,6],text:'ReportManage.smart_notification_pushed'},
|
|
// {label:"已推送消息",permission:this.permissionBtn.isShowBtn('reportManageBtn','reportManage_sendMsg'),States:[2,6],text:'ReportManage.smart_notification_pushed'},
|
|
],
|
|
],
|
|
|
|
|
|
@@ -943,14 +943,18 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 推送消息(同时推送模板消息和客群消息)
|
|
// 推送消息(同时推送模板消息和客群消息)
|
|
- messageSend(item) {
|
|
|
|
- reportMessageSend({ ReportId: item.Id }).then((res) => {
|
|
|
|
- if (res.Ret === 200) {
|
|
|
|
- this.$message.success(this.$t('ReportManage.smart_msg.push_success'));
|
|
|
|
- item.MsgIsSend = 1;
|
|
|
|
- item.MsgSendTime = res.Data.MsgSendTime;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ async messageSend(item) {
|
|
|
|
+ await this.$confirm('报告将被推送到订阅号,无法撤回,确定推送吗?','提示',{
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ const res = await reportMessageSend({ ReportId: item.Id })
|
|
|
|
+
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ this.$message.success(this.$t('ReportManage.smart_msg.push_success'));
|
|
|
|
+ item.MsgIsSend = 1;
|
|
|
|
+ item.MsgSendTime = res.Data.MsgSendTime;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
//操作
|
|
//操作
|