1
This commit is contained in:
@ -813,6 +813,14 @@
|
|||||||
that.formData.strobeFrequency = that.normalizeStrobeFreq(that.formData.strobeFrequency);
|
that.formData.strobeFrequency = that.normalizeStrobeFreq(that.formData.strobeFrequency);
|
||||||
that.deviceInfo = res.data;
|
that.deviceInfo = res.data;
|
||||||
that.$nextTick(() => that.sync100JBleUiFromHelper && that.sync100JBleUiFromHelper());
|
that.$nextTick(() => that.sync100JBleUiFromHelper && that.sync100JBleUiFromHelper());
|
||||||
|
// 语音频闪报警:0=关闭,1=开启 ui7是播放的状态
|
||||||
|
const voiceBroadcast = res.data.voiceBroadcast;
|
||||||
|
if (voiceBroadcast === 1) {
|
||||||
|
console.log('wo shi shui ');
|
||||||
|
that.formData.sta_VoiceType = '7'
|
||||||
|
} else {
|
||||||
|
that.formData.sta_VoiceType = '-1'
|
||||||
|
}
|
||||||
const strobeEnable = res.data.strobeEnable ?? 0; // 0=关闭,1=开启
|
const strobeEnable = res.data.strobeEnable ?? 0; // 0=关闭,1=开启
|
||||||
const strobeMode = res.data.strobeMode ?? 0; // 0=红闪、1=蓝闪、3=红色顺时针...
|
const strobeMode = res.data.strobeMode ?? 0; // 0=红闪、1=蓝闪、3=红色顺时针...
|
||||||
if (strobeEnable === 1) {
|
if (strobeEnable === 1) {
|
||||||
@ -1056,7 +1064,7 @@
|
|||||||
const data = {
|
const data = {
|
||||||
deviceIds: [this.deviceInfo.deviceId],
|
deviceIds: [this.deviceInfo.deviceId],
|
||||||
voiceStrobeAlarm: 1,
|
voiceStrobeAlarm: 1,
|
||||||
mode: this.formData.sta_VoiceType
|
mode: item.key
|
||||||
};
|
};
|
||||||
deviceForceAlarmActivation(data).then((res) => {
|
deviceForceAlarmActivation(data).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
@ -1075,7 +1083,7 @@
|
|||||||
const data = {
|
const data = {
|
||||||
deviceId: this.deviceInfo.deviceId,
|
deviceId: this.deviceInfo.deviceId,
|
||||||
voiceBroadcast: Number(this.formData.sta_VoiceType) === -1 ? 0 : 1,
|
voiceBroadcast: Number(this.formData.sta_VoiceType) === -1 ? 0 : 1,
|
||||||
mode: this.formData.sta_VoiceType,
|
mode: item.key,
|
||||||
voiceStrobeAlarm: this.deviceInfo.voiceStrobeAlarm
|
voiceStrobeAlarm: this.deviceInfo.voiceStrobeAlarm
|
||||||
};
|
};
|
||||||
deviceVoiceBroadcast(data).then((res) => {
|
deviceVoiceBroadcast(data).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user