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