Browse Source

1004 需求池增加搜索

bding 3 weeks ago
parent
commit
7b3853ab65
2 changed files with 13 additions and 5 deletions
  1. 4 0
      pages-search/components/report.vue
  2. 9 5
      pages-search/components/synthetical.vue

+ 4 - 0
pages-search/components/report.vue

@@ -196,6 +196,10 @@ export default {
   methods: {
     //去往文章详情页面
     goDetailReport(item) {
+      if (item.Resource == 3) {
+        uni.navigateTo({ url: "/pages-ficc/reportDetail/reportDetail?id=" + item.ReportId });
+        return;
+      }
       if (item.SpecialType > 0) {
         uni.navigateTo({ url: "/pages-purchaser/noteAndViewpoint/noteAndViewpoint?id=" + item.ArticleId });
         return;

+ 9 - 5
pages-search/components/synthetical.vue

@@ -4,7 +4,9 @@
       <view class="item-ul">
         <block v-for="(item, index) in newDataList" :key="index">
           <view v-if="index % 2 == 0 && item.IsShowData">
-            <block v-if="item.Source === 'article' || item.Source === 'yanxuanspecial' || item.Source === 'reportselection'"> <ReportItem :list="item.Article" /></block>
+            <block v-if="item.Source === 'article' || item.Source === 'yanxuanspecial' || item.Source === 'reportselection' || item.Source === 'ficcreport'">
+              <ReportItem :list="item.Article" />
+            </block>
             <block v-if="item.Source === 'newchart'">
               <ChartItem :list="item.Newchart" :isMyChartCollection="isMyChartCollection" @myChartIsTop="myChartIsTop" @myChartCollect="myChartCollect" />
             </block>
@@ -26,7 +28,9 @@
       <view class="item-ul">
         <block v-for="(item, index) in newDataList" :key="index">
           <view v-if="index % 2 !== 0 && item.IsShowData">
-            <block v-if="item.Source === 'article' || item.Source === 'yanxuanspecial' || item.Source === 'reportselection'"> <ReportItem :list="item.Article" /></block>
+            <block v-if="item.Source === 'article' || item.Source === 'yanxuanspecial' || item.Source === 'reportselection' || item.Source === 'ficcreport'">
+              <ReportItem :list="item.Article" />
+            </block>
             <block v-if="item.Source === 'newchart'">
               <ChartItem :list="item.Newchart" :isMyChartCollection="isMyChartCollection" @myChartIsTop="myChartIsTop" @myChartCollect="myChartCollect" />
             </block>
@@ -121,12 +125,12 @@ export default {
         let listArr = [];
         res.Data.List &&
           res.Data.List.forEach((item) => {
-             if (item.ReportSelection && item.ReportSelection.MarketStrategy) {
+            if (item.ReportSelection && item.ReportSelection.MarketStrategy) {
               item.ReportSelection.Body = [item.ReportSelection.MarketStrategy];
             }
             let obj = {
               Source: item.Source,
-              Article: item.Article || item.YanxuanSpecial || item.ReportSelection,
+              Article: item.Article || item.YanxuanSpecial || item.ReportSelection || item.FiccReport,
               Newchart: item.Newchart,
               Activity: item.Activity || item.Activityspecial,
               Roadshow: item.Roadshow || item.Activityvideo || item.Activityvoice || item.AskserieVideo,
@@ -139,7 +143,7 @@ export default {
             if (obj.YanxuanSpecial && obj.YanxuanSpecial.BodyHighlight) {
               obj.YanxuanSpecial.Body = obj.YanxuanSpecial.BodyHighlight;
             }
-            
+
             listArr.push({ ...obj, IsShowData: obj.Article || obj.Newchart || obj.Roadshow || obj.Activity || obj.ThreeSummary || obj.IndustrialResource });
           });
         this.newDataList = this.pageNumSynthetical === 1 ? listArr : [...this.newDataList, ...listArr];