diff --git a/api/100J/HBY100-J.js b/api/100J/HBY100-J.js index 7a3ca1d..078b289 100644 --- a/api/100J/HBY100-J.js +++ b/api/100J/HBY100-J.js @@ -24,10 +24,60 @@ export function deviceDeleteAudioFile(params) { }) } +// 更新语音,使用语音 +export function deviceUpdateVoice(data) { + return request({ + url: `/app/hby100j/device/updateVoice`, + method: 'post', + data:data + }) +} // 100J信息 export function deviceDetail(id) { return request({ - url: `/app/hby100/device/${id}`, + url: `/app/hby100j/device/${id}`, method: 'get', }) -} \ No newline at end of file +} +// 爆闪模式 +export function deviceStrobeMode(data) { + return request({ + url: `/app/hby100j/device/strobeMode`, + method: 'post', + data:data + }) +} + +// 强制报警 +export function deviceForceAlarmActivation(data) { + return request({ + url: `/app/hby100j/device/forceAlarmActivation`, + method: 'post', + data:data + }) +} +// 爆闪频率 +export function deviceStrobeFrequency(data) { + return request({ + url: `/app/hby100j/device/strobeFrequency`, + method: 'post', + data:data + }) +} +// 灯光调节亮度 +export function deviceLightAdjustment(data) { + return request({ + url: `/app/hby100j/device/lightAdjustment`, + method: 'post', + data:data + }) +} + +// 调节音量 +export function deviceUpdateVolume(data) { + return request({ + url: `/app/hby100j/device/updateVolume`, + method: 'post', + data:data + }) +} diff --git a/config/index.js b/config/index.js index d239f4a..3776862 100644 --- a/config/index.js +++ b/config/index.js @@ -2,7 +2,7 @@ const config = { // 开发环境 development: { - BASE_URL: 'http://192.168.110.172:8000',//http://139.224.253.23:8000 + BASE_URL: 'http://192.168.2.34:8000',//http://139.224.253.23:8000 API_PREFIX: '', // MQTT 配置 MQTT_HOST: 'www.cnxhyc.com', diff --git a/pages/100J/HBY100-J.vue b/pages/100J/HBY100-J.vue index 8731117..af09b27 100644 --- a/pages/100J/HBY100-J.vue +++ b/pages/100J/HBY100-J.vue @@ -40,8 +40,8 @@ 设备状态 - {{ deviceInfo.onlineStatus === 0 ? '离线' : deviceInfo.onlineStatus === 2 ? '故障' : '在线' }} + {{ deviceInfo.onlineStatus === 0 ? '离线' : deviceInfo.onlineStatus + === 2 ? '故障' : '在线' }} 定位信息 @@ -51,8 +51,8 @@ {{ deviceInfo && deviceInfo.latitude ? Number(deviceInfo.latitude).toFixed(4) : '' }} - + {{ deviceInfo.address }} @@ -62,7 +62,7 @@ - {{ formData.sta_SOSType === 1 ? '报警中' : '强制报警' }} + {{ deviceInfo.chargeState === 1 ? '报警中' : '强制报警' }} 解除 @@ -97,19 +97,18 @@ - + - - 播放语音 - @@ -161,27 +160,21 @@ 频率 {{ formData.sta_LightFreq }}HZ - - 音量 {{ formData.sta_VoiceVolume }} - - - - 产品信息 @@ -202,7 +195,6 @@ - \ No newline at end of file diff --git a/pages/100J/audioManager/AudioList.vue b/pages/100J/audioManager/AudioList.vue index 5ebbf95..1396358 100644 --- a/pages/100J/audioManager/AudioList.vue +++ b/pages/100J/audioManager/AudioList.vue @@ -1,6 +1,6 @@