Browse Source

列表发布修改

jwyu 1 year ago
parent
commit
bc39d7858b
1 changed files with 25 additions and 3 deletions
  1. 25 3
      src/views/smartReport/reportList.vue

+ 25 - 3
src/views/smartReport/reportList.vue

@@ -376,7 +376,7 @@
         <!-- 新增报告基础信息 -->
         <BaseInfo v-model="showAddReport" :id="0" />
 
-        <!-- 批量发布弹窗 -->
+        <!-- 发布弹窗(改掉了不用这个弹窗了但是先留着吧) -->
         <el-dialog
             title="发布提示"
             :visible.sync="showPublish"
@@ -499,8 +499,30 @@ export default {
         // 发布报告
         handlePublishReportOpt(item){
             this.activeReportId=item.SmartReportId
-            this.isDSFB=item.PrePublishTime?true:false
-            this.showPublish=true
+            // this.isDSFB=item.PrePublishTime?true:false
+            // this.showPublish=true
+            this.$confirm(
+                item.PrePublishTime?'该报告已设置定时发布,是否立即发布报告?':'是否立即发布报告?', 
+                '发布提示', 
+                {
+                    confirmButtonText: '发布',
+                    cancelButtonText: '取消',
+                    type: 'warning',
+                    distinguishCancelAndClose:true,
+                    beforeClose:(action, instance,done)=>{
+                        if(action==='close') {
+                            //右上角
+                        } else if(action==='cancel') {
+                            //cancelButton
+                                
+                        }else {
+                            //confirmButton
+                            this.handleConfirmPublishReport()
+                        }
+                        done()
+                    }
+                }
+            )
         },
         handleConfirmPublishReport(){
             apiSmartReport.publishReport({ SmartReportId: this.activeReportId,PublishState:2 }).then((res) => {