Преглед изворни кода

feat: P548采购单位画像物业专版收录按钮去掉

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe пре 1 година
родитељ
комит
a68567fe09
1 измењених фајлова са 16 додато и 4 уклоњено
  1. 16 4
      apps/bigmember_pc/src/components/crm-info/crmAction.vue

+ 16 - 4
apps/bigmember_pc/src/components/crm-info/crmAction.vue

@@ -30,6 +30,7 @@
 
 <script>
 import iframeDialog from '@/components/crm-info/IframeDialog.vue'
+import { getParam } from '@/utils/'
 import {
   ajaxIgnoreOperate,
   ajaxEmployOperate,
@@ -91,14 +92,17 @@ export default {
       employInfo: [],
       setShowDialog: false,
       iframeSrc: '',
-      lock: false
+      lock: false,
+      property: getParam('property') === 'BIProperty',
+      employId: getParam('employId')
     }
   },
   computed: {
     getList() {
-      if (this.list[0].active === 0) {
+      if (this.list[0].active === 0 && !this.property) {
         return this.list.slice(0, 1)
       } else {
+        let arrList = []
         if (this.entInfo.niche_dis === 1 || this.entInfo.niche_dis === 2) {
           const arr = []
           this.list.forEach((v) => {
@@ -106,10 +110,15 @@ export default {
               arr.push(v)
             }
           })
-          return arr
+          arrList = arr
         } else {
-          return this.list
+          arrList = this.list
         }
+        // 如果是物业版,则不显示收录
+        if (this.property) {
+          arrList = arrList.filter((v) => v.class !== 'employ')
+        }
+        return arrList
       }
     }
   },
@@ -149,6 +158,9 @@ export default {
       if (employInfoItem) {
         employId = employInfoItem.employId
       }
+      if (this.property) {
+        employId = this.employId
+      }
       switch (item.class) {
         case 'employ':
           this.setEmployEvent(item)