Преглед на файлове

feat: 修改路由地址与移动端一致

zhangyuhan преди 4 години
родител
ревизия
05738fb7b6

+ 1 - 1
src/components/chart/ProgressChart.vue

@@ -62,7 +62,7 @@ export default {
   mounted () {},
   methods: {
     goEntInfo (name) {
-      this.$router.push('/unitportrayal/' + encodeURIComponent(name))
+      this.$router.push('/unit_portrayal/' + encodeURIComponent(name))
     }
   }
 }

+ 4 - 4
src/components/forecast/ForLayout.vue

@@ -81,7 +81,7 @@ export default {
             // 企业情报
             if (data.events === 'select') {
               // 联想跳转
-              this.$router.push(`/entportrayal/${data.data.entId}`)
+              this.$router.push(`/ent_portrait/${data.data.entId}`)
             } else {
               this.$store.commit('forcast/setType', this.type)
               this.$store.commit('forcast/setEntFollowSearch', res.data)
@@ -99,7 +99,7 @@ export default {
               // 联想跳转
               const result = [data.data]
               this.$store.commit('forcast/setHistoryList', result)
-              this.$router.push(`/bidforlimit/${data.data.s_id}/${data.data.sourceinfoid}`)
+              this.$router.push(`/ai_add/${data.data.s_id}/${data.data.sourceinfoid}`)
             } else {
               // 点击搜索按钮\键盘Enter事件
               this.$store.commit('forcast/setList', res.data)
@@ -120,13 +120,13 @@ export default {
               // 联想跳转
               const result = [data.data]
               this.$store.commit('forcast/setHistoryPolicyList', result)
-              this.$router.push(`/analysis/result/${data.data.s_id}/${data.data.sourceinfoid}`)
+              this.$router.push(`/analysis_result/${data.data.s_id}/${data.data.sourceinfoid}`)
             } else {
               // 点击搜索按钮
               // const result = []
               this.$store.commit('forcast/setType', this.type)
               this.$store.commit('forcast/setPolicyList', res.data)
-              // this.$router.push(`/bidforlimit/${result.data.s_id}/${data.data.sourceinfoid}`)
+              // this.$router.push(`/ai_add/${result.data.s_id}/${data.data.sourceinfoid}`)
             }
           }
         })

+ 5 - 5
src/components/forecast/ForeCast.vue

@@ -400,19 +400,19 @@ export default {
     goBidForcast (data) {
       const result = [data]
       this.$store.commit('forcast/setHistoryList', result)
-      this.$router.push(`/bidforlimit/${data.s_id}/${data.sourceinfoid}`)
+      this.$router.push(`/ai_add/${data.s_id}/${data.sourceinfoid}`)
     },
     goForcast (data) {
       const result = [data]
       this.$store.commit('forcast/setHistoryPolicyList', result)
-      this.$router.push(`/analysis/result/${data.s_id}/${data.sourceinfoid}`)
+      this.$router.push(`/analysis_result/${data.s_id}/${data.sourceinfoid}`)
     },
     goViewEnt (id) {
-      this.$router.push(`/entportrayal/${id}`)
+      this.$router.push(`/ent_portrait/${id}`)
     },
     goEntPor (id) {
       const routeUrl = this.$router.resolve({
-        path: `/entportrayal/${id}`
+        path: `/ent_portrait/${id}`
       })
       return window.open(routeUrl.href, '_blank')
     },
@@ -430,7 +430,7 @@ export default {
       })
       console.log(arr.toString())
       this.$router.push({
-        path: '/potensimilar',
+        path: '/analysis_filter',
         query: {
           id: id,
           keys: arr.toString()

+ 24 - 30
src/router/routers.js

@@ -6,8 +6,8 @@ export default [
   },
   // 订阅推送
   {
-    path: '/sub-push',
-    name: 'sub-push',
+    path: '/big_subscribe',
+    name: 'big_subscribe',
     component: () => import('@/views/SubPush.vue')
   },
   // 潜在客户/对手
@@ -16,57 +16,51 @@ export default [
     name: 'potential_cor_list',
     component: () => import('@/views/PotentialList.vue')
   },
-  // 周报详情
   {
-    path: '/empty-demo',
-    name: 'empty-demo',
-    component: () => import('@/views/EmptyDemo.vue')
-  },
-  {
-    path: '/report/week',
-    name: 'week',
+    path: '/bigvip_subreport_week',
+    name: 'bigvip_subreport_week',
     component: () => import('@/views/reportData/pageWeek.vue')
   },
   // 月报详情
   {
-    path: '/report/month',
-    name: 'month',
+    path: '/bigvip_subreport_month',
+    name: 'bigvip_subreport_month',
     component: () => import('@/views/reportData/pageMonth.vue')
   },
   // 中标企业预测
   {
-    path: '/bidforecast',
-    name: 'bidforecast',
+    path: '/ai_search',
+    name: 'ai_search',
     component: () => import('@/views/bid-forecast/BidForecast.vue')
   },
   // 中标企业预测-预测
   {
-    path: '/bidforlimit/:ptid/:sourceinfoid',
-    name: 'bidforlimit',
+    path: '/ai_add/:ptid/:sourceinfoid',
+    name: 'ai_add',
     component: () => import('@/views/bid-forecast/BidForecastLimit.vue')
   },
   // 投标决策分析
   {
-    path: '/bidpolicy',
-    name: 'bidpolicy',
+    path: '/analysis_search',
+    name: 'analysis_search',
     component: () => import('@/views/bid-policy/BidPolicy.vue')
   },
   // 企业情报监控
   {
-    path: '/entintel',
-    name: 'entintel',
+    path: '/ent_follow',
+    name: 'ent_follow',
     component: () => import('@/views/ent-intel/EntIntel.vue')
   },
   // 潜在项目预测
   {
-    path: '/potential',
-    name: 'potential',
+    path: '/forecast_list',
+    name: 'forecast_list',
     component: () => import('@/views/potential-for/PotenTial.vue')
   },
   // 潜在项目预测--相似项目
   {
-    path: '/potensimilar',
-    name: 'potensimilar',
+    path: '/analysis_filter',
+    name: 'analysis_filter',
     component: () => import('@/views/potential-for/PotenSimilar.vue')
   },
   {
@@ -76,14 +70,14 @@ export default [
   },
   // 采购单位画像
   {
-    path: '/unitportrayal/:entName',
-    name: 'unitportrayal',
+    path: '/unit_portrayal/:entName',
+    name: 'unit_portrayal',
     component: () => import('@/views/portrayal/UnitPortrayal.vue')
   },
   // 企业画像
   {
-    path: '/entportrayal/:eId',
-    name: 'entportrayal',
+    path: '/ent_portrait/:eId',
+    name: 'ent_portrait',
     component: () => import('@/views/portrayal/EntPortrayal.vue')
   },
   // 项目信息
@@ -94,8 +88,8 @@ export default [
   },
   // 投标决策分析结果页
   {
-    path: '/analysis/result/:ptid/:sourceinfoid',
-    name: 'analysisResult',
+    path: '/analysis_result/:ptid/:sourceinfoid',
+    name: 'analysis_result',
     component: () => import('@/views/bid-policy/AnalysisResult.vue')
   },
   // 业务范围

+ 0 - 31
src/views/EmptyDemo.vue

@@ -1,31 +0,0 @@
-<template>
-  <div class="empty-demo">
-    <empty tip="订阅关键词,接收最新招投标信息"></empty>
-    <empty class="empty-body">
-      <span>订阅关键词,接收最新招投标信息</span>
-      <el-button class="empty-button" type="main" icon="el-icon-plus">订阅关键词</el-button>
-    </empty>
-  </div>
-</template>
-
-<script>
-import { Button } from 'element-ui'
-import empty from '@/components/common/Empty.vue'
-import { getUserPower } from '@/api/modules/'
-export default {
-  name: 'Home',
-  components: {
-    empty,
-    [Button.name]: Button
-  },
-  data () {
-    return {}
-  },
-  created () {
-    getUserPower()
-  }
-}
-</script>
-
-<style lang="scss">
-</style>

+ 11 - 11
src/views/Home.vue

@@ -10,8 +10,8 @@
             <div class="nav-item--text">{{item.text}}</div>
           </div>
         </div>
-        <push-list :subManager="getSubStatus" @getMore="$router.push('/sub-push')"></push-list>
-        <project-list class="m-40" @getMore="$router.push('/sub-push')"></project-list>
+        <push-list :subManager="getSubStatus" @getMore="$router.push('/big_subscribe')"></push-list>
+        <project-list class="m-40" @getMore="$router.push('/big_subscribe')"></project-list>
       </div>
     </forLayOut>
     <div class="flex-c-c float-side-group-for-right">
@@ -47,15 +47,15 @@ export default {
       navItem: [
         {
           text: '中标企业预测',
-          to: '/bidforecast'
+          to: '/ai_search'
         },
         {
           text: '投标决策分析',
-          to: '/bidpolicy'
+          to: '/analysis_search'
         },
         {
           text: '潜在项目预测',
-          to: '/potential'
+          to: '/forecast_list'
         },
         {
           text: '潜在客户挖掘',
@@ -216,15 +216,15 @@ export default {
       let link = ''
       switch (floatSide.title) {
         case '周报': {
-          link = '/report/week'
+          link = '/bigvip_subreport_week'
           break
         }
         case '月报': {
-          link = '/report/month'
+          link = '/bigvip_subreport_month'
           break
         }
         case '企业情报监控': {
-          link = '/entintel'
+          link = '/ent_follow'
           break
         }
       }
@@ -234,16 +234,16 @@ export default {
       let link = ''
       switch (floatSide.title) {
         case '周报': {
-          link = `/report/week?start=${item.start}&end=${item.end}`
+          link = `/bigvip_subreport_week?start=${item.start}&end=${item.end}`
           break
         }
         case '月报': {
-          link = `/report/month?start=${item.start}&end=${item.end}`
+          link = `/bigvip_subreport_month?start=${item.start}&end=${item.end}`
           break
         }
         case '企业情报监控': {
           const routeUrl = this.$router.resolve({
-            path: `/entportrayal/${item.id}`
+            path: `/ent_portrait/${item.id}`
           })
           return window.open(routeUrl.href, '_blank')
         }

+ 2 - 2
src/views/PotentialList.vue

@@ -127,11 +127,11 @@ export default {
       let routeUrl = {}
       if (this.filters.pcor === 'C') {
         routeUrl = this.$router.resolve({
-          path: `/unitportrayal/${item.Buyer}`
+          path: `/unit_portrayal/${item.Buyer}`
         })
       } else {
         routeUrl = this.$router.resolve({
-          path: `/entportrayal/${item.entId}`
+          path: `/ent_portrait/${item.entId}`
         })
       }
       window.open(routeUrl.href, '_blank')

+ 1 - 1
src/views/bid-forecast/BidForecastLimit.vue

@@ -211,7 +211,7 @@ export default {
     },
     goViewPur (name) {
       const routeUrl = this.$router.resolve({
-        path: '/unitportrayal/' + name
+        path: '/unit_portrayal/' + name
       })
       return window.open(routeUrl.href, '_blank')
     },

+ 1 - 1
src/views/bid-policy/AnalysisResult.vue

@@ -106,7 +106,7 @@ export default {
     },
     // 查看采购单位画像
     goViewPur (name) {
-      this.$router.push('/unitportrayal/' + name)
+      this.$router.push('/unit_portrayal/' + name)
     },
     // 获取项目基本信息
     async getBaseInfo () {

+ 1 - 1
src/views/bid-policy/components/PolicyLimit.vue

@@ -185,7 +185,7 @@ export default {
     },
     // 中标企业预测跳转
     goBidForUrl (id) {
-      this.$router.push(`/bidforlimit/${this.baseInfo.id}/${this.baseInfo.infoid}`)
+      this.$router.push(`/ai_add/${this.baseInfo.id}/${this.baseInfo.infoid}`)
     },
     // 开始分析
     StartAnsisy () {

+ 1 - 1
src/views/portrayal/components/AnalysisList.vue

@@ -64,7 +64,7 @@ export default {
       return moneyUnit(data)
     },
     goEntImg (id) {
-      this.$router.push('/entportrayal?eId=' + encodeURIComponent(id))
+      this.$router.push('/ent_portrait?eId=' + encodeURIComponent(id))
     }
   }
 }

+ 1 - 1
src/views/potential-for/PotenSimilar.vue

@@ -113,7 +113,7 @@ export default {
     },
     // 查看采购单位画像
     goViewPur () {
-      this.$router.push('/unitportrayal/' + this.dataInfo.buyer)
+      this.$router.push('/unit_portrayal/' + this.dataInfo.buyer)
     }
   }
 }

+ 3 - 3
src/views/project/ProjectInfo.vue

@@ -189,16 +189,16 @@ export default {
     },
     toForecast () {
       const { sid, fid } = this
-      this.$router.push(`/bidforlimit/${fid}/${sid}`)
+      this.$router.push(`/ai_add/${fid}/${sid}`)
     },
     toPolicy () {
       const { sid, fid } = this
-      this.$router.push(`/analysis/result/${fid}/${sid}`)
+      this.$router.push(`/analysis_result/${fid}/${sid}`)
     },
     toUnitportrayal () {
       const { buyer } = this.projectInfo
       const link = this.$router.resolve({
-        path: `/unitportrayal/${buyer}`
+        path: `/unit_portrayal/${buyer}`
       })
       window.open(link.href, '_blank')
     }