|
@@ -317,6 +317,24 @@ var vConfig = {
|
|
|
// this.changeFS_bigvip(item)
|
|
|
// }
|
|
|
// },
|
|
|
+
|
|
|
+ monitorCancellation (){ // 取消监控
|
|
|
+ this.$dialog({
|
|
|
+ width: 303,
|
|
|
+ className: 'monitor-dialog',
|
|
|
+ title: '确定不再监控?',
|
|
|
+ message: `取消监控,将错过企业最新动态推送`,
|
|
|
+ messageAlign:'center',
|
|
|
+ confirmButtonText: '确认取消',
|
|
|
+ confirmButtonColor: '#2ABED1',
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ cancelButtonText: '我再想想',
|
|
|
+ cancelButtonColor: '#2ABED1'
|
|
|
+ }).then(() =>{
|
|
|
+ this.changeFollowStateRequest()
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
changeFollowState: function (item) {
|
|
|
var _this = this
|
|
@@ -326,7 +344,7 @@ var vConfig = {
|
|
|
return
|
|
|
}
|
|
|
if (item.follow) {
|
|
|
- _this.changeFollowStateRequest()
|
|
|
+ _this.monitorCancellation()
|
|
|
|
|
|
} else {
|
|
|
this.getEntFollowState(item, (res) => {
|
|
@@ -396,6 +414,12 @@ var vConfig = {
|
|
|
loading.clear()
|
|
|
if (res.data === 'success' || res.data.status) {
|
|
|
const active = !_this.powerInfo.isFree ? 4 : 3
|
|
|
+ if(_this.selectedItem.follow) {
|
|
|
+ _this.$toast({
|
|
|
+ duration: 2000,
|
|
|
+ message: '取消监控成功'
|
|
|
+ })
|
|
|
+ }
|
|
|
_this.selectedItem.follow = !_this.selectedItem.follow
|
|
|
// _this.getEntFollowState()
|
|
|
if(utils.$envs.inApp && JyObj.checkNoticePermission()!=1 && res.data.status){
|