Quellcode durchsuchen

feat: 项目关注列表跳转调整

cuiyalong vor 1 Jahr
Ursprung
Commit
b58f394347

+ 18 - 4
apps/mobile/src/composables/quick-monitor/component/QuickMonitor.vue

@@ -53,7 +53,8 @@ const confMap = {
     toPushSettingDialogMessage:
       '您可前往“工作台-商机-项目进度监控”查看项目最新招标/采购进度。',
     successDialogMessage: '监控成功,您可前往“工作台-商机-项目进度监控”查看',
-    monitorListLink: LINKS.项目进度监控
+    monitorListLink: LINKS.项目进度监控,
+    monitorListLinkBusiness: LINKS.商机管理项目进度监控
   },
   ent: {
     key: '企业',
@@ -173,12 +174,25 @@ export default {
     }
   },
   computed: {
-    ...mapGetters('user', ['isLogin', 'isMember', 'isBusiness']),
+    ...mapGetters('user', [
+      'isLogin',
+      'isMember',
+      'isBusiness',
+      'isNewBusiness',
+      'isEntService'
+    ]),
     isMemberOrBusiness() {
       return this.isMember || this.isBusiness
     },
     conf() {
-      return confMap[this.type] || confMap.project
+      const conf = confMap[this.type] || confMap.project
+      // 项目监控跳转 - 商机管理跳转单独计算
+      if (this.type === 'project' && conf.monitorListLinkBusiness) {
+        if (this.isEntService || this.isNewBusiness) {
+          conf.monitorListLink = conf.monitorListLinkBusiness
+        }
+      }
+      return conf
     },
     calcOffset() {
       if (this.placement === 'top-start') {
@@ -277,7 +291,7 @@ export default {
           this.doMonitor()
         }
       } else {
-        this.doMonitor()
+        this.doCancelMonitor()
       }
     },
     async successMonitorAndToPushSettingDialog() {

+ 1 - 1
apps/mobile/src/data/links.js

@@ -164,7 +164,7 @@ export const LINKS = {
     wx: '/big/wx/page/pro_follow_list'
   },
   // 商机管理项目详情
-  项目信息: {
+  商机管理项目进度监控: {
     app: '/jyapp/big/page/client_follow_detail',
     h5: '/jyapp/big/page/client_follow_detail',
     wx: '/big/wx/page/pro_follow_detail'

+ 1 - 1
apps/mobile/src/views/article/components/ContentProjectTimeline.vue

@@ -120,7 +120,7 @@ export default {
         await this.beforeLeavePage()
       }
       if (this.isNewBusiness) {
-        openAppOrWxPage(LINKS.项目信息, {
+        openAppOrWxPage(LINKS.商机管理项目进度监控, {
           query: {}
         })
       } else {

+ 1 - 1
apps/mobile/src/views/article/content.vue

@@ -430,7 +430,7 @@ export default {
       sessionStorage.setItem('bigvip-fid', JSON.stringify(params))
       this.beforeLeavePage()
       if (this.isNewBusiness) {
-        openAppOrWxPage(LINKS.项目信息, {
+        openAppOrWxPage(LINKS.商机管理项目进度监控, {
           query: {
             from: 'client',
             industry: _ob ? _ob.buyerClass : undefined

+ 1 - 1
apps/mobile/src/views/search/result/winner/index.vue

@@ -274,7 +274,7 @@ export default {
       const { id } = item
       this.doSave()
       sessionStorage.setItem('bigvip-fid', JSON.stringify({ sid: id }))
-      openAppOrWxPage(LINKS.项目信息)
+      openAppOrWxPage(LINKS.商机管理项目进度监控)
       // openLinkOfOther(`/follow/photo/${encodeURIComponent(item.id)}__${encodeURIComponent(item.name)}__${item.code}`)
     },
     onLoad() {