医生通知查询设备会员
This commit is contained in:
parent
c1cef6d434
commit
db5077232c
@ -235,6 +235,7 @@ import { useMessage } from '@/hooks/web/useMessage'
|
||||
import { DoctornoticeApi } from '@/api/doctornotice'
|
||||
import { getUserProfile } from '@/api/system/user/profile'
|
||||
import * as echarts from 'echarts'
|
||||
import { DeviceApi } from '@/api/device'
|
||||
|
||||
export default {
|
||||
name: 'ECGDatas',
|
||||
@ -412,12 +413,12 @@ export default {
|
||||
}
|
||||
|
||||
try {
|
||||
// // 检查用户是否为会员
|
||||
// const userResponse = await PersonApi.getPerson(this.selectedPerson.userid)
|
||||
// if (!userResponse || userResponse.isvip === 0) {
|
||||
// this.message.warning('该用户不是会员,无法发送通知')
|
||||
// return
|
||||
// }
|
||||
// 检查设备是否为会员
|
||||
const deviceResponse = await DeviceApi.getDevice(this.currentDeviceId)
|
||||
if (!deviceResponse || deviceResponse.isvip === 0) {
|
||||
this.message.warning('该用户不是会员,无法发送通知')
|
||||
return
|
||||
}
|
||||
|
||||
// 构建通知数据
|
||||
const noticeData = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user