|
@@ -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)
|