|
@@ -195,16 +195,19 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_reportList_sendTime)"
|
|
|
|
|
|
+ <el-table-column
|
|
prop="MsgSendTime"
|
|
prop="MsgSendTime"
|
|
- :label="$t('ReportManage.smart_report_push_time_btn')"
|
|
|
|
|
|
+ label="最近一次推送时间"
|
|
min-width="124"
|
|
min-width="124"
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
<template slot-scope="scope">{{
|
|
<template slot-scope="scope">{{
|
|
- scope.row.MsgSendTime | formatTime
|
|
|
|
|
|
+ scope.row.MsgSendTime
|
|
|
|
+ ? $moment(scope.row.MsgSendTime).format('YYYY.MM.DD HH:mm:ss')
|
|
|
|
+ : ''
|
|
}}</template>
|
|
}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="ModifyTime"
|
|
prop="ModifyTime"
|
|
:label="$t('ReportManage.smart_update_time')"
|
|
:label="$t('ReportManage.smart_update_time')"
|
|
@@ -424,7 +427,7 @@ import {
|
|
voiceupload,
|
|
voiceupload,
|
|
reportdelete,
|
|
reportdelete,
|
|
markReport,
|
|
markReport,
|
|
- reportMessageSend,
|
|
|
|
|
|
+ reportPushInterface,
|
|
weekReportValidAudio,
|
|
weekReportValidAudio,
|
|
} from '@/api/modules/reportV2.js';
|
|
} from '@/api/modules/reportV2.js';
|
|
import { departInterence } from "api/api.js";
|
|
import { departInterence } from "api/api.js";
|
|
@@ -545,7 +548,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'},
|
|
],
|
|
],
|
|
|
|
|
|
@@ -942,15 +945,22 @@ 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 reportPushInterface.pushMsg({
|
|
|
|
+ ReportId: item.Id,
|
|
|
|
+ PptId: 0
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ this.$message.success(this.$t('ReportManage.smart_msg.push_success'));
|
|
|
|
+ item.MsgIsSend = 1;
|
|
|
|
+ item.MsgSendTime = res.Data.MsgSendTime;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
//操作
|
|
//操作
|
|
@@ -1041,7 +1051,7 @@ export default {
|
|
(typeof(but.States)=='boolean' || but.States.includes(row.State) ) &&
|
|
(typeof(but.States)=='boolean' || but.States.includes(row.State) ) &&
|
|
(!row.CanEdit)
|
|
(!row.CanEdit)
|
|
}else if(but.label==='推送消息'){
|
|
}else if(but.label==='推送消息'){
|
|
- return commonFilterPass && row.MsgIsSend==0 && row.HasAuth
|
|
|
|
|
|
+ return commonFilterPass && row.MsgIsSend==0 && row.HasAuth && row.CanSendMsg
|
|
}else if(but.label==='已推送消息'){
|
|
}else if(but.label==='已推送消息'){
|
|
return commonFilterPass && row.MsgIsSend!==0
|
|
return commonFilterPass && row.MsgIsSend!==0
|
|
}else if(['音频上传'].includes(but.label)){
|
|
}else if(['音频上传'].includes(but.label)){
|