Browse Source

添加研报作者默认取上一篇

Karsa 3 tháng trước cách đây
mục cha
commit
deea2d5c05

+ 10 - 5
src/views/report_manage/reportV2/components/reportBaseInfoDia.vue

@@ -265,7 +265,7 @@ export default {
         relationVariety: [],
         title: "",
         abstract: "",
-        author: ["投研团队"],
+        author: [],
         frequency: "日度",
         time: this.$moment().format("YYYY-MM-DD") || "",
         cooperationType: 1,//协作方式
@@ -322,7 +322,7 @@ export default {
         relationVariety: [],
         title: "",
         abstract: "",
-        author: ["投研团队"],
+        author: [],
         frequency: "日度",
         time: this.$moment().format("YYYY-MM-DD") || "",
         cooperationType: 1,//协作方式
@@ -419,9 +419,8 @@ export default {
         if (this.formData.classify.length === 2) {
           this.formData.title = this.getSelectClassifyName()[1];
         }
-        return;
       }
-      if(!this.formData.classify.length&&this.formData.type===2) return
+      if(!this.formData.classify.length) return
 
       
       //获取上次报告
@@ -442,7 +441,13 @@ export default {
             return false;
           }
 
-          this.chooseInheritReport(res.Data.List[0])
+          if(this.formData.type===1) { //默认只带出作者
+            this.formData.author = res.Data.List
+              ? res.Data.List[0].Author.split(",")
+              : [''];
+          }else {
+            this.chooseInheritReport(res.Data.List[0])
+          }
         });
     },
 

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

@@ -2,7 +2,7 @@
 	<div id="reportdtl" v-if="isshow">
 		<header>{{reportInfo.Title}}</header>
 		<div style="padding:0 35px 0; box-sizing:border-box; color:#666; font-size:24px; overflow:hidden;">
-		  <span>{{$route.query.fromPage=='strategyReport'?'Horizon Insights FICC Team':reportInfo.Author}}</span>
+		  <span>{{reportInfo.Author}}</span>
 			<!-- 已发布、已通过展示发布时间 -->
 		  <span style="float:right;" v-if="[2,6].includes(reportInfo.State)">{{reportInfo.PublishTime}}</span>
 		</div>