微调
This commit is contained in:
parent
a62470fcae
commit
5f6c338930
@ -57,7 +57,7 @@ import { onMounted, ref, watch } from 'vue';
|
||||
import { queryAlarmInfoById } from 'src/api/DecisionInfo';
|
||||
import { useQuasar } from 'quasar';
|
||||
|
||||
const bgColor = 'yellow';
|
||||
let bgColor = ref('yellow');
|
||||
const dialogWidth = window.screen.width * 0.4;
|
||||
const lineNetStore = useLineNetStore();
|
||||
|
||||
@ -65,6 +65,7 @@ watch(
|
||||
() => lineNetStore.alarmInfo,
|
||||
(val) => {
|
||||
if (val.length) {
|
||||
bgColor.value = 'orange';
|
||||
search();
|
||||
updata();
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ export class TrainWindowDraw extends GraphicDrawAssistant<
|
||||
);
|
||||
this.app.deleteGraphics(...trainWindowAll);
|
||||
turnoutSections.forEach((section) => {
|
||||
const ps = section.localToCanvasPoint(section.getStartPoint());
|
||||
const ps = section.datas.points[0] as Point;
|
||||
let direction = 1;
|
||||
if (ps.y > height.y) {
|
||||
direction = -1;
|
||||
|
@ -215,7 +215,7 @@ async function onRequest(props: any) {
|
||||
let response = await alarmInfoPageQuery({
|
||||
current: page,
|
||||
size: rowsPerPage,
|
||||
alertType: filter.alertType,
|
||||
alertType: (saveAlertTypeData as never)[filter.alertType],
|
||||
});
|
||||
const pageData = response;
|
||||
pagination.value.rowsNumber = pageData.total;
|
||||
|
@ -67,6 +67,9 @@ function onResize() {
|
||||
|
||||
//报警信息弹框
|
||||
const audio = ref();
|
||||
const $q = useQuasar();
|
||||
const dialogInstance = ref();
|
||||
|
||||
watch(
|
||||
() => lineNetStore.alarmInfo,
|
||||
(val) => {
|
||||
@ -79,15 +82,18 @@ watch(
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
const $q = useQuasar();
|
||||
|
||||
function playAlarmMusic() {
|
||||
audio.value.play();
|
||||
}
|
||||
|
||||
function alarm() {
|
||||
lineNetStore.alarmDialog = true;
|
||||
$q.dialog({ component: errrorMessageBox }).onCancel(() => {
|
||||
lineNetStore.alarmDialog = false;
|
||||
});
|
||||
dialogInstance.value = $q
|
||||
.dialog({ component: errrorMessageBox })
|
||||
.onCancel(() => {
|
||||
lineNetStore.alarmDialog = false;
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
@ -101,5 +107,8 @@ onMounted(() => {
|
||||
|
||||
onUnmounted(() => {
|
||||
lineNetStore.destroy();
|
||||
if (dialogInstance.value) {
|
||||
dialogInstance.value.hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user