|
@@ -143,6 +143,11 @@
|
|
<div style="margin-bottom: 4px;" class="item-title">审批时间</div>
|
|
<div style="margin-bottom: 4px;" class="item-title">审批时间</div>
|
|
<div class="item-content">{{$moment(pptItem.ApproveTime).format('YYYY-MM-DD HH:mm:ss')}}</div>
|
|
<div class="item-content">{{$moment(pptItem.ApproveTime).format('YYYY-MM-DD HH:mm:ss')}}</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div style="margin-bottom: 10px;">
|
|
|
|
+ <div style="margin-bottom: 4px;" class="item-title">最近一次推送时间</div>
|
|
|
|
+ <div class="item-content" v-if="pptItem.MsgSendTime">{{$moment(pptItem.MsgSendTime).format('YYYY-MM-DD HH:mm:ss')}}</div>
|
|
|
|
+ </div>
|
|
|
|
|
|
<div style="display: flex;align-items: center;">
|
|
<div style="display: flex;align-items: center;">
|
|
<div class="report-state">报告状态</div>
|
|
<div class="report-state">报告状态</div>
|
|
@@ -204,6 +209,9 @@ import {pptInterface} from '@/api/api.js';
|
|
import MergePptDialog from './components/catalog/mergePPTDialog.vue';
|
|
import MergePptDialog from './components/catalog/mergePPTDialog.vue';
|
|
// import shareUserDialog from './components/catalog/chooseShareUserDia.vue';
|
|
// import shareUserDialog from './components/catalog/chooseShareUserDia.vue';
|
|
import addPptBaseDia from './components/catalog/addPptBaseDia.vue';
|
|
import addPptBaseDia from './components/catalog/addPptBaseDia.vue';
|
|
|
|
+import {
|
|
|
|
+ reportPushInterface,
|
|
|
|
+} from '@/api/modules/reportV2.js';
|
|
//触发window.resize,使Highcharts重绘
|
|
//触发window.resize,使Highcharts重绘
|
|
const reloadPPTWid = ()=>{
|
|
const reloadPPTWid = ()=>{
|
|
const resizeEvent = new Event('resize')
|
|
const resizeEvent = new Event('resize')
|
|
@@ -432,6 +440,7 @@ export default {
|
|
'download':checkPermissionBtn(pptPermission.ppt_download)&&((item.State===6&&item.ReportSource===2) || item.ReportSource===1),
|
|
'download':checkPermissionBtn(pptPermission.ppt_download)&&((item.State===6&&item.ReportSource===2) || item.ReportSource===1),
|
|
'edit':checkPermissionBtn(pptPermission.ppt_save)&&item.HasAuth&&(([3,5].includes(item.State)&&item.ReportSource===2) || item.ReportSource===1),
|
|
'edit':checkPermissionBtn(pptPermission.ppt_save)&&item.HasAuth&&(([3,5].includes(item.State)&&item.ReportSource===2) || item.ReportSource===1),
|
|
'delete':checkPermissionBtn(pptPermission.ppt_del)&&item.ReportSource===1&&item.AdminId===this.RoleId,
|
|
'delete':checkPermissionBtn(pptPermission.ppt_del)&&item.ReportSource===1&&item.AdminId===this.RoleId,
|
|
|
|
+ 'push': [2,6].includes(item.State)&&checkPermissionBtn(pptPermission.ppt_sendMsg)
|
|
}
|
|
}
|
|
|
|
|
|
return toolList.filter((i)=>btnAuthMap[i.key])
|
|
return toolList.filter((i)=>btnAuthMap[i.key])
|
|
@@ -515,6 +524,7 @@ export default {
|
|
const handleCommand = {
|
|
const handleCommand = {
|
|
'download':this.downloadPpt,
|
|
'download':this.downloadPpt,
|
|
'delete':this.deletePPT,
|
|
'delete':this.deletePPT,
|
|
|
|
+ 'push':this.pushMessage
|
|
}
|
|
}
|
|
handleCommand[item.key](pptItem)
|
|
handleCommand[item.key](pptItem)
|
|
},
|
|
},
|
|
@@ -571,6 +581,7 @@ export default {
|
|
// 'copy':this.handleCopy,
|
|
// 'copy':this.handleCopy,
|
|
'download':this.downloadPpt,
|
|
'download':this.downloadPpt,
|
|
'delete':this.deletePPT,
|
|
'delete':this.deletePPT,
|
|
|
|
+ 'push':this.pushMessage
|
|
// 'transform':this.transformPPT,
|
|
// 'transform':this.transformPPT,
|
|
// 'transEn':this.handleTransform
|
|
// 'transEn':this.handleTransform
|
|
}
|
|
}
|
|
@@ -595,6 +606,21 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ async pushMessage(item) {
|
|
|
|
+ await this.$confirm('报告将被推送到订阅号,无法撤回,确定推送吗?','提示',{
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ const res = await reportPushInterface.pushMsg({
|
|
|
|
+ ReportId: 0,
|
|
|
|
+ PptId: item.PptId
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ if (res.Ret !== 200) return
|
|
|
|
+ this.$message.success(this.$t('ReportManage.smart_msg.push_success'));
|
|
|
|
+ item.MsgIsSend = 1;
|
|
|
|
+ item.MsgSendTime = res.Data.MsgSendTime;
|
|
|
|
+ },
|
|
|
|
+
|
|
/* 目录栏收起 展开 */
|
|
/* 目录栏收起 展开 */
|
|
slideHandle() {
|
|
slideHandle() {
|
|
this.isSlideLeft = !this.isSlideLeft;
|
|
this.isSlideLeft = !this.isSlideLeft;
|