Browse Source

转pdf的bug

hbchen 11 months ago
parent
commit
65e7d55ab6

+ 1 - 1
src/views/report_manage/editreportNew.vue

@@ -731,7 +731,7 @@ export default {
 		},
 		publishreport(id,code) {
 			//发布报告
-			reportpublish({ ReportIds: String(id) ,ReportCode:this.generatePdfLinks(code)}).then((res) => {
+			reportpublish({ ReportIds: String(id) ,ReportUrl:this.generatePdfLinks(code)}).then((res) => {
 				if (res.Ret == 200) {
 					this.isPublishloading = false;
 					this.$router.push({ path: '/reportlist' });

+ 3 - 3
src/views/report_manage/reportEn/reportEditor.vue

@@ -704,7 +704,7 @@ export default {
 						content: data.Content,
             overview:data.Overview||''
 					};
-					this.publishReportCode=res.Data.ReportCode
+
 					// 回显定时发布时间
 					if(data.PrePublishTime){
 						this.taskTime=data.PrePublishTime
@@ -779,7 +779,7 @@ export default {
 
 				this.$message.success(res.Msg);
         this.report_id = res.Data.ReportId;
-
+				this.publishReportCode = res.Data.ReportCode;
 				if (tp === "yl") {
 					let { href } = this.$router.resolve({
 						name: "预览报告",
@@ -824,7 +824,7 @@ export default {
 			})
 		},
 
-		publishreport(id,code) {
+		publishreport(id) {
 			//发布报告
 			reportEnInterface.reportPublish({ ReportIds: String(id),ReportUrl:this.generatePdfLinks(this.publishReportCode)}).then((res) => {
 				if (res.Ret !== 200) return

+ 0 - 1
src/views/report_manage/reportEn/reportlist.vue

@@ -762,7 +762,6 @@ export default {
     /* 发布报告 */
     publishReport(item) {
       this.$confirm(item.PrePublishTime? this.$t('ReportManage.smart_msg.is_publish_immediately'):this.$t('ReportManage.smart_msg.report_publish_immediately'),this.$t('Confirm.prompt'),{type: 'warning'}).then(()=>{
-
 				reportEnInterface.reportPublish({ReportIds:String(item.Id),ReportUrl:this.generatePdfLinks(item.ReportCode)}).then(res=>{
           if(res.Ret!==200) return
           this.$message.success(this.$t('MsgPrompt.publish_msg'));