增加是否播报语音
This commit is contained in:
parent
05896cb241
commit
e932e7d0ae
@ -81,6 +81,7 @@ function playAlarmMusic(type: number, lineId: number) {
|
|||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!lineNetStore.handlePlayAble) return;
|
||||||
if (lineNetStore.playAble && audio.value.paused) {
|
if (lineNetStore.playAble && audio.value.paused) {
|
||||||
const alarmType = (showAlertTypeData as never)[type + ''];
|
const alarmType = (showAlertTypeData as never)[type + ''];
|
||||||
let mapAlarmMusic = new Map();
|
let mapAlarmMusic = new Map();
|
||||||
|
@ -51,6 +51,14 @@
|
|||||||
label="返回"
|
label="返回"
|
||||||
@click="backConfirm"
|
@click="backConfirm"
|
||||||
/>
|
/>
|
||||||
|
<q-btn
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
flat
|
||||||
|
:color="lineNetStore.handlePlayAble ? 'white' : 'red'"
|
||||||
|
:icon="lineNetStore.handlePlayAble ? 'alarm_on' : 'alarm_off'"
|
||||||
|
@click="changeCanPlayAlarmMusic"
|
||||||
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
round
|
round
|
||||||
dense
|
dense
|
||||||
@ -288,4 +296,8 @@ function resetFn() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeCanPlayAlarmMusic() {
|
||||||
|
lineNetStore.handlePlayAble = !lineNetStore.handlePlayAble;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -147,7 +147,7 @@ const tableTitle = reactive({
|
|||||||
faultNameShower: '',
|
faultNameShower: '',
|
||||||
faultDriverShower: '',
|
faultDriverShower: '',
|
||||||
});
|
});
|
||||||
const inputSearchName = ref('');
|
const inputSearchName = ref('故障现象');
|
||||||
watch(tab, (tabVal) => {
|
watch(tab, (tabVal) => {
|
||||||
if (tabVal == 'GUIDE') {
|
if (tabVal == 'GUIDE') {
|
||||||
inputSearchName.value = '故障现象';
|
inputSearchName.value = '故障现象';
|
||||||
|
@ -33,7 +33,8 @@ export const useLineNetStore = defineStore('lineNet', {
|
|||||||
alarmInfo: [] as AlarmInfo[], //报警信息
|
alarmInfo: [] as AlarmInfo[], //报警信息
|
||||||
untreatedMap: new Map(), // 未处理的报警
|
untreatedMap: new Map(), // 未处理的报警
|
||||||
alarmInfoListTable: undefined as QTable | undefined,
|
alarmInfoListTable: undefined as QTable | undefined,
|
||||||
playAble: false, //是否允许播放音乐
|
playAble: false, //是否允许播放音乐(与页面交互之后为true)
|
||||||
|
handlePlayAble: true, //默认交互之后可播放音乐
|
||||||
closeAllAlarmInfoDialog: false,
|
closeAllAlarmInfoDialog: false,
|
||||||
connectButtonColor: 'green',
|
connectButtonColor: 'green',
|
||||||
connectInfo: null as state.WarnLineMessage | null,
|
connectInfo: null as state.WarnLineMessage | null,
|
||||||
|
Loading…
Reference in New Issue
Block a user