|
@@ -143,28 +143,32 @@ function useClientQuickMonitorModel({ type, id }) {
|
|
return doOpenCollectDialog('pc_buyer_monitor_freeuser')
|
|
return doOpenCollectDialog('pc_buyer_monitor_freeuser')
|
|
}
|
|
}
|
|
|
|
|
|
- await doChange().then((res) => {
|
|
|
|
- if (res.success) {
|
|
|
|
- // 判断是否开启推送提醒
|
|
|
|
- if (!res.data?.msg_open) {
|
|
|
|
- doOpenDialog('success-monitor')
|
|
|
|
- } else {
|
|
|
|
- that.$toast(DialogDataMap['success-toast'])
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- // 判断是否超出可监控项目个数
|
|
|
|
- if (res.data?.limit_count) {
|
|
|
|
- if (HasPowerBigmemberOrEnt.value) {
|
|
|
|
- return doOpenDialog('max-monitor', {
|
|
|
|
- count: res.data?.limit_count
|
|
|
|
- })
|
|
|
|
|
|
+ await doChange()
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ // 判断是否开启推送提醒
|
|
|
|
+ if (!res.data?.msg_open) {
|
|
|
|
+ doOpenDialog('success-monitor')
|
|
} else {
|
|
} else {
|
|
- return doOpenCollectDialog('pc_buyer_monitor_limit')
|
|
|
|
|
|
+ that.$toast(DialogDataMap['success-toast'])
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ // 判断是否超出可监控项目个数
|
|
|
|
+ if (res.data?.limit_count) {
|
|
|
|
+ if (HasPowerBigmemberOrEnt.value) {
|
|
|
|
+ return doOpenDialog('max-monitor', {
|
|
|
|
+ count: res.data?.limit_count
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ return doOpenCollectDialog('pc_buyer_monitor_limit')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ that.$toast(res.msg)
|
|
}
|
|
}
|
|
- that.$toast(res.msg)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {
|
|
|
|
+ loading.value = false
|
|
|
|
+ })
|
|
}
|
|
}
|
|
loading.value = false
|
|
loading.value = false
|
|
}
|
|
}
|