|
@@ -82,10 +82,9 @@ import PriceSelector from '@/components/selector/PriceSelector.vue'
|
|
import RadioGroup from '@/components/selector/RadioGroup.vue'
|
|
import RadioGroup from '@/components/selector/RadioGroup.vue'
|
|
import Dialog from '@/components/dialog/Dialog.vue'
|
|
import Dialog from '@/components/dialog/Dialog.vue'
|
|
import FollowOfficialAccountDialog from '@/components/dialog/FollowOfficialAccountDialog.vue'
|
|
import FollowOfficialAccountDialog from '@/components/dialog/FollowOfficialAccountDialog.vue'
|
|
-
|
|
|
|
import { getFreeUserPushInfo } from '@/api/modules/'
|
|
import { getFreeUserPushInfo } from '@/api/modules/'
|
|
-
|
|
|
|
import { mapState, mapGetters, mapActions } from 'vuex'
|
|
import { mapState, mapGetters, mapActions } from 'vuex'
|
|
|
|
+import { tryCallHooks } from '@jianyu/easy-inject-qiankun'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'SubPush',
|
|
name: 'SubPush',
|
|
@@ -161,7 +160,8 @@ export default {
|
|
// 免费f / 商机管理s / 超级订阅v / 大会员m
|
|
// 免费f / 商机管理s / 超级订阅v / 大会员m
|
|
// 商机管理不显示
|
|
// 商机管理不显示
|
|
if (this.vt === 's') {
|
|
if (this.vt === 's') {
|
|
- return false
|
|
|
|
|
|
+ const { admin_system: adminSystem, admin_department: adminDepartment } = this.entInfo
|
|
|
|
+ return adminSystem || adminDepartment
|
|
}
|
|
}
|
|
// 子账号不显示
|
|
// 子账号不显示
|
|
if (this.vt === 'm' && this.isSubCount) {
|
|
if (this.vt === 'm' && this.isSubCount) {
|
|
@@ -170,6 +170,7 @@ export default {
|
|
return true
|
|
return true
|
|
},
|
|
},
|
|
...mapState({
|
|
...mapState({
|
|
|
|
+ entInfo: state => state.user.entInfo,
|
|
subscribeKeyList: state => state.user.subscribeKeyList
|
|
subscribeKeyList: state => state.user.subscribeKeyList
|
|
}),
|
|
}),
|
|
...mapGetters('user', {
|
|
...mapGetters('user', {
|
|
@@ -199,6 +200,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapActions('user', [
|
|
...mapActions('user', [
|
|
|
|
+ 'getEntInfo',
|
|
'getSubScribeKeyList'
|
|
'getSubScribeKeyList'
|
|
]),
|
|
]),
|
|
getParams () {
|
|
getParams () {
|
|
@@ -210,6 +212,8 @@ export default {
|
|
getInitInfo () {
|
|
getInitInfo () {
|
|
if (this.vt === 'f') {
|
|
if (this.vt === 'f') {
|
|
this.getFreeUserPushInfo()
|
|
this.getFreeUserPushInfo()
|
|
|
|
+ } else if (this.vt === 's') {
|
|
|
|
+ this.getEntInfo()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async getFreeUserPushInfo () {
|
|
async getFreeUserPushInfo () {
|
|
@@ -310,8 +314,12 @@ export default {
|
|
this.dialog.toFollowOfficialAccount = true
|
|
this.dialog.toFollowOfficialAccount = true
|
|
} else if (this.vt === 'm') {
|
|
} else if (this.vt === 'm') {
|
|
this.$router.push('/set_subscribe/config')
|
|
this.$router.push('/set_subscribe/config')
|
|
- } else {
|
|
|
|
- // 商机管理该按钮被隐藏,无操作
|
|
|
|
|
|
+ } else if (this.vt === 's') {
|
|
|
|
+ // 商机管理跳转老页面(框架内打开)
|
|
|
|
+ const url = '/entpc/newBus/set_subscribe'
|
|
|
|
+ tryCallHooks(this.$BraceHooks, 'openLink', { url }, () => {
|
|
|
|
+ window.open(url)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
toBuySvip () {
|
|
toBuySvip () {
|