Przeglądaj źródła

fix: 修复物业专版收录问题

zhangyuhan 1 rok temu
rodzic
commit
2584e977aa

+ 11 - 4
apps/bigmember_pc/src/views/article-content/components/ContentBIActions.vue

@@ -110,6 +110,10 @@ export default {
       type: String,
       required: true,
       default: ''
+    },
+    contentInfo: {
+      type: Object,
+      default: () => {}
     }
   },
   computed: {
@@ -117,6 +121,7 @@ export default {
       if (this.list[0].active === 0) {
         return this.list.slice(0, 1)
       } else if (this.property === 'BIProperty') {
+        // eslint-disable-next-line vue/no-side-effects-in-computed-properties
         this.list = this.list.filter((v) => {
           return v.title !== '创建销售线索'
         })
@@ -221,14 +226,16 @@ export default {
             this.IframeSrc = `${
               location.origin
             }/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_intelligence.spg?t=${new Date().getTime()}`
-            const { bidamount, budget, title, area, buyer } =
-              window.goTemplateData.params.obj
+
+            const ContentParams = this.contentInfo._ob
+
+            const { bidAmount, budget, title, area, buyer } = ContentParams
             const propertyData = {
               _id: this.id,
               title: title,
               buyer: buyer,
               area: area,
-              bidamount: bidamount,
+              bidamount: bidAmount,
               budget: budget
             }
             // 将propertyData存入本地,用于BI创建情报回显数据
@@ -396,7 +403,7 @@ export default {
         url = '/jyNewApi/property/information/exist'
         info = this.employInfo[0]
         params = {
-          id: id
+          id: this.id
         }
         this.ajaxComponent(url, params).then((res) => {
           if (!item.active) {

+ 4 - 1
apps/bigmember_pc/src/views/article-content/components/ContentHeader.vue

@@ -167,7 +167,10 @@ const isUseBIActions =
         </div>
       </div>
       <div class="actions" v-if="isUseBIActions">
-        <content-b-i-actions :id="ContentId"></content-b-i-actions>
+        <content-b-i-actions
+          :id="ContentId"
+          :contentInfo="ContentModel"
+        ></content-b-i-actions>
       </div>
     </div>
     <div class="expands-info">

+ 1 - 0
configs/proxy/dev-proxy.js

@@ -30,6 +30,7 @@ const ProxyPrefixes = [
   '/leadGeneration',
   '/member',
   '/commercial',
+  '/jyNewApi',
   // 静态资源代理
   '/commonFunctions',
   '/common-module',