Sfoglia il codice sorgente

fix: 点击采购发布信息标题跳转到招标采购信息详情页

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 9 mesi fa
parent
commit
ccfa7cd731
1 ha cambiato i file con 7 aggiunte e 11 eliminazioni
  1. 7 11
      apps/jy-pc/src/views/purchase/my/MyPurchase.vue

+ 7 - 11
apps/jy-pc/src/views/purchase/my/MyPurchase.vue

@@ -116,19 +116,15 @@ export default {
       }
     },
     goDetailFn(data) {
-      console.log(data)
       const { item, type } = data
       if (type === 'title') {
-        // 供应信息三级页
-        if (item.msgType === 8) {
-          const routeData = this.$router.resolve({
-            path: '/demand/detail/' + item.id
-          })
-          openSelfLink(routeData)
-        } else {
-          // 招标采购信息三级页
-          window.open(`/article/content/${item.pId}.html`)
-        }
+        // 招标采购信息三级页
+        const goHref = location.origin + `/article/content/${item.pId}.html`
+        window.open(
+          '/page_workDesktop/work-bench/page?link=' +
+            encodeURIComponent(goHref),
+          '_blank'
+        )
       } else {
         const routeData = this.$router.resolve({
           path: '/purchase/detail/' + item.id,