Browse Source

Merge branch 'debug' of http://8.136.199.33:3000/eta_front/eta_mobile_front into debug

shanbinzhang 1 week ago
parent
commit
7c17df27ef
2 changed files with 12 additions and 14 deletions
  1. 0 10
      src/api/common.js
  2. 12 4
      src/views/report/List.vue

+ 0 - 10
src/api/common.js

@@ -102,14 +102,4 @@ export function shareGenerate(params){
  */
 export function uploadImgAPi(params) {
     return post('/banner/upload',params)
-}
-
-
-/**
- * 获取复制链接
- * @param {*} params 
- * @returns 
- */
-export function shareGenerate(params){
-    return post('/report/share/generate',params)
 }

+ 12 - 4
src/views/report/List.vue

@@ -179,20 +179,28 @@ async function handleReportPublish(item){
 
     //如果走审批流 直接发布
     if(isApprove.value){
-        publishReportApprove()
-        showReportItemOpt.value=false
+        confirmPublish(item)
         return
     }
     // 判断是否有推送权限
     if(!checkAuthBtn(reportManageBtn.reportManage_sendMsg)){
-        publishReportApprove()
-        showReportItemOpt.value=false
+        confirmPublish(item)
         return
     }
 
     showPublishPop.value=true
     showReportItemOpt.value=false
 }
+function confirmPublish(item){
+    showDialog({
+        title: '提示',
+        message: item.PrePublishTime ? '是否立即发布定时报告?' : '是否确定立即发布报告?',
+        showCancelButton:true
+    }).then(res=>{
+        publishReportApprove()
+        showReportItemOpt.value=false
+    }).catch(err=>{})
+}
 function publishReportApprove(){
     apiReport.reportPublish({
         ReportIds:activeReportData.value.Id.toString(),