Compare commits

..

No commits in common. "dd7cb75ceb1be4945495c1c7d6fa82c187055190" and "342aff6ebd0195840cf43a034cd2562c17d236b4" have entirely different histories.

View File

@ -5,73 +5,19 @@
</q-page-container> </q-page-container>
<div <div
v-if="faultInfo" v-if="faultInfo"
style=" style="position: fixed; right: 0; top: 10%; background: white"
position: absolute;
right: 0;
top: 10px;
background: white;
width: 400px;
"
> >
<div style="width: 100%; text-align: right" class="bg-primary q-pa-ms"> <div style="width: 100%; text-align: right" class="bg-primary q-pa-ms">
<q-icon <q-icon
name="add_circle" name="close"
size="md" size="xs"
v-if="faultInfoMin"
style="cursor: pointer"
@click="() => (faultInfoMin = false)"
/>
<q-icon
name="remove_circle"
size="md"
v-if="!faultInfoMin"
style="cursor: pointer"
@click="() => (faultInfoMin = true)"
/>
<q-icon
name="cancel"
size="md"
style="cursor: pointer" style="cursor: pointer"
@click="() => (faultInfo = false)" @click="() => (faultInfo = false)"
/> />
</div> </div>
<div <div class="q-pa-ms column" style="background: white; max-width: 400px">
v-if="!faultInfoMin"
class="q-pa-ms"
style="
background: white;
max-width: 400px;
height: 268px;
overflow-y: scroll;
"
>
<template v-for="(item, index) in timeInfoLabel" :key="index"> <template v-for="(item, index) in timeInfoLabel" :key="index">
<div <q-chip
class="row justify-between q-ma-sm bg-blue text-white"
style="border-radius: 5px; padding: 5px"
>
<div
style="
max-width: 250px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
"
>
{{ item.split('--')[0] }}
<q-tooltip>{{ item.split('--')[0] }}</q-tooltip>
</div>
<div>
<span>{{ item.split('--')[1] }}</span>
<q-icon
name="cancel"
size="xs"
style="cursor: pointer; margin-left: 10px"
@click="handleRemoveInfo(index)"
/>
</div>
</div>
<!-- <q-chip
removable removable
@remove="handleRemoveInfo(index)" @remove="handleRemoveInfo(index)"
color="primary" color="primary"
@ -80,7 +26,7 @@
:label="item" :label="item"
> >
<q-tooltip v-if="item.length > 34"> {{ item }} </q-tooltip> <q-tooltip v-if="item.length > 34"> {{ item }} </q-tooltip>
</q-chip> --> </q-chip>
</template> </template>
</div> </div>
</div> </div>
@ -106,7 +52,6 @@ const route = useRoute();
const lineStore = useLineStore(); const lineStore = useLineStore();
const lineNetStore = useLineNetStore(); const lineNetStore = useLineNetStore();
const faultInfo = ref(false); const faultInfo = ref(false);
const faultInfoMin = ref(false);
const alarmInfoList: AlarmInfo[] = reactive([]); const alarmInfoList: AlarmInfo[] = reactive([]);
let timeInterval = null; let timeInterval = null;
let timeInfoLabel: string[] = reactive([]); let timeInfoLabel: string[] = reactive([]);