|
@@ -404,6 +404,26 @@ var vNode = {
|
|
|
updateGroupList () {
|
|
|
this.getEntGroupList()
|
|
|
},
|
|
|
+ // 查看监控动态
|
|
|
+ lookDynamic () {
|
|
|
+ this.scrollToTab('4')
|
|
|
+ },
|
|
|
+ // 获取企业分组列表, 当关注达到上限时,这个接口照样返回列表,而labelGroup接口不会返回,所有更改企业分组时选择这个接口显示列表
|
|
|
+ getEntGroupListData () {
|
|
|
+ var _this = this
|
|
|
+ $.ajax({
|
|
|
+ url: '/bigmember/follow/ent/labelGroupList',
|
|
|
+ type: 'POST',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.error_code === 0) {
|
|
|
+ res.data.groupUseArr.forEach(function (item) {
|
|
|
+ item.name = item.s_name
|
|
|
+ })
|
|
|
+ _this.groupingList = res.data.groupUseArr || []
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取企业分组列表
|
|
|
getEntGroupList () {
|
|
|
var _this = this
|
|
@@ -417,9 +437,10 @@ var vNode = {
|
|
|
if (res.error_code === 0) {
|
|
|
_this.groupingList = res.data || []
|
|
|
_this.showGroupingDialog = true
|
|
|
- if(!_this.entInfo.follow) {
|
|
|
- _this.$refs.portrayalGrouping.setState(['默认分组'])
|
|
|
- }
|
|
|
+ // 回显上次选择的分组
|
|
|
+ const selectList = _this.groupingList.filter(item => item.select)
|
|
|
+ _this.$refs.portrayalGrouping.setState(selectList)
|
|
|
+
|
|
|
} else {
|
|
|
if(!res?.data?.status) {
|
|
|
// 监控达到上限
|
|
@@ -907,7 +928,7 @@ var vNode = {
|
|
|
},
|
|
|
changeGroupState: function (type) {
|
|
|
console.log(type);
|
|
|
- this.getEntGroupList()
|
|
|
+ this.getEntGroupListData()
|
|
|
this.$nextTick(() => {
|
|
|
this.setGroupState = type
|
|
|
this.showGroupingDialog = true
|
|
@@ -980,7 +1001,7 @@ var vNode = {
|
|
|
const monitorEntNum = surplus + used // 可监控企业总数
|
|
|
let limit = this.powerInfo.memberStatus > 0 || this.powerInfo.entniche
|
|
|
// 1.超出可监控企业数量
|
|
|
- if (used <= 0) {
|
|
|
+ if (surplus <= 0) {
|
|
|
// 大会员或商机管理用户
|
|
|
if (limit) {
|
|
|
this.$dialog({
|
|
@@ -993,7 +1014,7 @@ var vNode = {
|
|
|
confirmButtonColor: '#2ABED1',
|
|
|
showConfirmButton: true,
|
|
|
showCancelButton: true,
|
|
|
- cancelButtonText: '返回',
|
|
|
+ cancelButtonText: '我再想想',
|
|
|
// cancelButtonColor: '#5F5E64'
|
|
|
}).then(() =>{
|
|
|
if(utils.$envs.inWX){
|
|
@@ -1010,7 +1031,7 @@ var vNode = {
|
|
|
}else if(utils.$envs.inApp){
|
|
|
href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.app
|
|
|
}else if(utils.$envs.inH5){
|
|
|
- href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + + this.sourceLimitMap.h5
|
|
|
+ href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.h5
|
|
|
}
|
|
|
window.location.href = href_
|
|
|
}
|
|
@@ -1186,7 +1207,7 @@ var vNode = {
|
|
|
_this.entInfo.follow = !_this.entInfo.follow
|
|
|
_this.getEntFollowState()
|
|
|
if(utils.$envs.inApp && JyObj.checkNoticePermission()!=1 && res.data.status){
|
|
|
- this.$dialog({
|
|
|
+ _this.$dialog({
|
|
|
width: 303,
|
|
|
className: 'monitor-dialog',
|
|
|
title: '监控成功',
|
|
@@ -1204,6 +1225,31 @@ var vNode = {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if(!_this.powerInfo.isFree && !res.data.msg_open && res.data.status){
|
|
|
+ _this.$dialog({
|
|
|
+ width: 303,
|
|
|
+ className: 'monitor-dialog',
|
|
|
+ title: '监控成功',
|
|
|
+ message: '您可前往“工作台-商机-业主监控”查看业主最新招标动态。为保证您能及时获取新增监控信息推送,请前往开启推送提醒。',
|
|
|
+ messageAlign:'center',
|
|
|
+ confirmButtonText: '去开启',
|
|
|
+ confirmButtonColor: '#2ABED1',
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ cancelButtonText: '暂不开启',
|
|
|
+ // cancelButtonColor: '#5F5E64'
|
|
|
+ }).then(() =>{
|
|
|
+ // 展开监控菜单 active:3
|
|
|
+ window.location.href = location.origin + '/jy_mobile/push/pushsetting?active=4'
|
|
|
+ })
|
|
|
+
|
|
|
+ } else if(!_this.powerInfo.isFree && res.data.msg_open && res.data.status){
|
|
|
+ _this.$toast({
|
|
|
+ duration: 2000,
|
|
|
+ message: '监控成功,您可前往“工作台-商机-业主监控”查看'
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
} else {
|
|
|
return _this.showToast(res.error_msg || '监控失败')
|
|
|
}
|