|
@@ -98,11 +98,14 @@ export default {
|
|
|
dialogVisible: false,
|
|
|
IframeSrc: '',
|
|
|
getEntData: {},
|
|
|
- showPropertyDialog: false
|
|
|
+ showPropertyDialog: false,
|
|
|
+ haspowers: {}, // 判断客户类型
|
|
|
+ inBITopNet: '' // 判断是否是拓普
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getEntInfo()
|
|
|
+ this.getHasPowers()
|
|
|
this.getParams()
|
|
|
},
|
|
|
props: {
|
|
@@ -118,6 +121,10 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
getList() {
|
|
|
+ // 拓普不显示任何按钮
|
|
|
+ if (this.inBITopNet) {
|
|
|
+ return []
|
|
|
+ }
|
|
|
if (this.list[0].active === 0 && this.property !== 'BIProperty') {
|
|
|
return this.list.slice(0, 1)
|
|
|
} else if (this.property === 'BIProperty') {
|
|
@@ -127,7 +134,12 @@ export default {
|
|
|
})
|
|
|
return this.list
|
|
|
} else {
|
|
|
- return this.list
|
|
|
+ // 如果是营销通用版且无bi_yx_topnet,则只显示收录,有bi_yx_topnet,显示全部
|
|
|
+ if (this.haspowers.bi_yx_topnet) {
|
|
|
+ return this.list
|
|
|
+ } else {
|
|
|
+ return this.list.slice(0, 1)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -206,6 +218,7 @@ export default {
|
|
|
const urlParams = new URLSearchParams(window.location.search)
|
|
|
this.pageType = urlParams.get('resource')
|
|
|
this.property = urlParams.get('property')
|
|
|
+ this.inBITopNet = urlParams.get('crm_type')
|
|
|
this.fromJhfp = urlParams.get('from')
|
|
|
if (this.pageType === 'BI' || this.property === 'BIProperty') {
|
|
|
$('.com-tagsbar').hide()
|
|
@@ -314,6 +327,15 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
},
|
|
|
+ // 判断大客,大客还显示创建按钮, 营销通用版和非大客只显示收录按钮 P560版本调整
|
|
|
+ getHasPowers() {
|
|
|
+ const url = '/jyapi/resourceCenter/haspowers'
|
|
|
+ this.ajaxComponent(url).then((res) => {
|
|
|
+ if (res.error_code === 0) {
|
|
|
+ this.haspowers = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 判断是否能创建
|
|
|
isCanAdd(type) {
|
|
|
const url = '/jyapi/crmApplication/info/canAdd'
|