diff --git a/src/views/devices/Device_Data_Components/ECG_datas.vue b/src/views/devices/Device_Data_Components/ECG_datas.vue index 9ccf79855..5cb4d3090 100644 --- a/src/views/devices/Device_Data_Components/ECG_datas.vue +++ b/src/views/devices/Device_Data_Components/ECG_datas.vue @@ -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 = {