|
@@ -445,10 +445,6 @@ export default {
|
|
this.reportInfo = res.Data;
|
|
this.reportInfo = res.Data;
|
|
|
|
|
|
this.conList=res.Data.ContentStruct?JSON.parse(res.Data.ContentStruct):[]
|
|
this.conList=res.Data.ContentStruct?JSON.parse(res.Data.ContentStruct):[]
|
|
-
|
|
|
|
- this.layoutBaseInfo['研报标题']=res.Data.Title
|
|
|
|
- this.layoutBaseInfo['研报作者']=res.Data.Author
|
|
|
|
- this.layoutBaseInfo['创建时间']=res.Data.CreateTime
|
|
|
|
|
|
|
|
$('.edit-smart-report-page')[0].scrollTop = 0;
|
|
$('.edit-smart-report-page')[0].scrollTop = 0;
|
|
if(this.editChapterId) {
|
|
if(this.editChapterId) {
|
|
@@ -499,7 +495,7 @@ export default {
|
|
ReportChapterId: this.reportInfo.ReportChapterId
|
|
ReportChapterId: this.reportInfo.ReportChapterId
|
|
});
|
|
});
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
- this.$message.success(this.$t('MsgPrompt.publish_msg'))
|
|
|
|
|
|
+ this.$message.success(this.$t('MsgPrompt.submit_msg'))
|
|
|
|
|
|
this.$refs.chapterContRef&&this.$refs.chapterContRef.getChapterList()
|
|
this.$refs.chapterContRef&&this.$refs.chapterContRef.getChapterList()
|
|
|
|
|
|
@@ -772,6 +768,7 @@ export default {
|
|
compType:obj.compType,
|
|
compType:obj.compType,
|
|
id:obj.id,
|
|
id:obj.id,
|
|
content:obj.content,
|
|
content:obj.content,
|
|
|
|
+ titleText: obj.compId===4?obj.titleText:'',
|
|
style:obj.compType==='chart'?'height:350px':'',
|
|
style:obj.compType==='chart'?'height:350px':'',
|
|
child:[]
|
|
child:[]
|
|
},
|
|
},
|
|
@@ -780,6 +777,7 @@ export default {
|
|
compType:compData.compType,
|
|
compType:compData.compType,
|
|
content:compData.content||'',
|
|
content:compData.content||'',
|
|
id:this.getCompId(compData.compType),
|
|
id:this.getCompId(compData.compType),
|
|
|
|
+ titleText: compData.compId===4?compData.title:'',
|
|
style:compData.compType==='chart'?'height:350px':'',
|
|
style:compData.compType==='chart'?'height:350px':'',
|
|
child:[]
|
|
child:[]
|
|
}
|
|
}
|
|
@@ -803,6 +801,7 @@ export default {
|
|
compType:obj.compType,
|
|
compType:obj.compType,
|
|
id:obj.id,
|
|
id:obj.id,
|
|
content:obj.content,
|
|
content:obj.content,
|
|
|
|
+ titleText: obj.compId===4?obj.titleText:'',
|
|
style:obj.compType==='chart'?'height:350px':'',
|
|
style:obj.compType==='chart'?'height:350px':'',
|
|
child:[]
|
|
child:[]
|
|
},
|
|
},
|
|
@@ -821,6 +820,7 @@ export default {
|
|
compType:compData.compType,
|
|
compType:compData.compType,
|
|
content:compData.content||'',
|
|
content:compData.content||'',
|
|
id:this.getCompId(compData.compType),
|
|
id:this.getCompId(compData.compType),
|
|
|
|
+ titleText: compData.compId===4?compData.title:'',
|
|
style:compData.compType==='chart'?'height:350px':'',
|
|
style:compData.compType==='chart'?'height:350px':'',
|
|
child:[]
|
|
child:[]
|
|
})
|
|
})
|
|
@@ -973,7 +973,7 @@ export default {
|
|
this.reportInfo.Title=params.Title
|
|
this.reportInfo.Title=params.Title
|
|
this.layoutBaseInfo['研报标题']=params.Title
|
|
this.layoutBaseInfo['研报标题']=params.Title
|
|
this.layoutBaseInfo['研报作者']=params.Author
|
|
this.layoutBaseInfo['研报作者']=params.Author
|
|
- this.layoutBaseInfo['创建时间']=params.CreateTime
|
|
|
|
|
|
+ // this.layoutBaseInfo['创建时间']=params.PublishTime
|
|
this.reportInfo.ClassifyIdFirst=params.ClassifyIdFirst;
|
|
this.reportInfo.ClassifyIdFirst=params.ClassifyIdFirst;
|
|
this.reportInfo.ClassifyIdSecond=params.ClassifyIdSecond;
|
|
this.reportInfo.ClassifyIdSecond=params.ClassifyIdSecond;
|
|
this.reportInfo.ClassifyIdThird=params.ClassifyIdThird;
|
|
this.reportInfo.ClassifyIdThird=params.ClassifyIdThird;
|
|
@@ -1011,6 +1011,10 @@ export default {
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
this.reportInfo=res.Data
|
|
this.reportInfo=res.Data
|
|
|
|
+
|
|
|
|
+ if(res.Data.PrePublishTime){
|
|
|
|
+ this.taskTime=res.Data.PrePublishTime
|
|
|
|
+ }
|
|
|
|
|
|
this.conList=res.Data.ContentStruct?JSON.parse(res.Data.ContentStruct):[]
|
|
this.conList=res.Data.ContentStruct?JSON.parse(res.Data.ContentStruct):[]
|
|
this.headImg=res.Data.HeadImg
|
|
this.headImg=res.Data.HeadImg
|
|
@@ -1029,7 +1033,7 @@ export default {
|
|
this.bgColor=res.Data.CanvasColor
|
|
this.bgColor=res.Data.CanvasColor
|
|
this.layoutBaseInfo['研报标题']=res.Data.Title
|
|
this.layoutBaseInfo['研报标题']=res.Data.Title
|
|
this.layoutBaseInfo['研报作者']=res.Data.Author
|
|
this.layoutBaseInfo['研报作者']=res.Data.Author
|
|
- this.layoutBaseInfo['创建时间']=res.Data.CreateTime
|
|
|
|
|
|
+ // this.layoutBaseInfo['创建时间']=res.Data.PublishTime
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
this.contentChange=false
|
|
this.contentChange=false
|
|
})
|
|
})
|
|
@@ -1094,7 +1098,7 @@ export default {
|
|
if(!res.Data.RefreshResult) return this.$message.warning(/* '表格正在刷新中,请勿重复操作' */this.$t('ReportManage.ReportList.chart_refreshed_msg'))
|
|
if(!res.Data.RefreshResult) return this.$message.warning(/* '表格正在刷新中,请勿重复操作' */this.$t('ReportManage.ReportList.chart_refreshed_msg'))
|
|
const { Ret,Msg } = await sheetInterface.refreshSheet({
|
|
const { Ret,Msg } = await sheetInterface.refreshSheet({
|
|
ExcelCodes: sheet_code_arr,
|
|
ExcelCodes: sheet_code_arr,
|
|
- Source: fromPage,
|
|
|
|
|
|
+ Source: 'report',
|
|
PrimaryId: Number(this.$route.query.id),
|
|
PrimaryId: Number(this.$route.query.id),
|
|
SubId: this.reportInfo.ReportChapterId
|
|
SubId: this.reportInfo.ReportChapterId
|
|
})
|
|
})
|
|
@@ -1302,10 +1306,11 @@ export default {
|
|
},
|
|
},
|
|
generatePdfLinks(){
|
|
generatePdfLinks(){
|
|
const baseUrl= localStorage.getItem('dynamicOutLinks') ? JSON.parse(localStorage.getItem('dynamicOutLinks')).ReportViewUrl : '';
|
|
const baseUrl= localStorage.getItem('dynamicOutLinks') ? JSON.parse(localStorage.getItem('dynamicOutLinks')).ReportViewUrl : '';
|
|
|
|
+ let waterMarkStr= localStorage.getItem('waterMarkStr') || '';
|
|
|
|
|
|
let code = this.reportCoopType===2?this.$refs.chapterContRef&&this.$refs.chapterContRef.reportBase.ReportCode:this.reportInfo.ReportCode
|
|
let code = this.reportCoopType===2?this.$refs.chapterContRef&&this.$refs.chapterContRef.reportBase.ReportCode:this.reportInfo.ReportCode
|
|
|
|
|
|
- return `${baseUrl}/reportshare_smart_pdf?code=${code}`
|
|
|
|
|
|
+ return `${baseUrl}/reportshare_smart_pdf?code=${code}&flag=${waterMarkStr}`
|
|
},
|
|
},
|
|
//报告消息推送
|
|
//报告消息推送
|
|
reportSendMsg(){
|
|
reportSendMsg(){
|