|
|
@@ -86,9 +86,7 @@ const init = async () => {
|
|
|
await getNotificationList()
|
|
|
}
|
|
|
}
|
|
|
-// onMounted(() => {
|
|
|
-// init()
|
|
|
-// })
|
|
|
+
|
|
|
const watchScope = watch(
|
|
|
() => route.query,
|
|
|
() => {
|
|
|
@@ -117,25 +115,31 @@ const handleIframeLoaded = () => {
|
|
|
<div class="status-icon"></div>
|
|
|
<div class="title">{{ notificationData.title }}</div>
|
|
|
</div>
|
|
|
- <div class="total-tips" v-if="notificationData.numericRecords > -1">
|
|
|
- Latest Status Updates ({{ notificationData.numericRecords }})
|
|
|
+ <div
|
|
|
+ class="total-tips"
|
|
|
+ v-if="route.query.numericRecords && Number(route.query.numericRecords) > -1"
|
|
|
+ >
|
|
|
+ Latest Status Updates ({{ route.query.numericRecords }})
|
|
|
</div>
|
|
|
<div
|
|
|
class="total-tips"
|
|
|
- v-else-if="notificationData.etdOrdeparturNum > -1 || notificationData.etaOrarrivalNum > -1"
|
|
|
+ v-else-if="
|
|
|
+ (route.query.etdOrdeparturNum && Number(route.query.etdOrdeparturNum) > -1) ||
|
|
|
+ (route.query.etaOrarrivalNum && Number(route.query.etaOrarrivalNum) > -1)
|
|
|
+ "
|
|
|
>
|
|
|
<div>
|
|
|
- <span v-if="notificationData.etdOrdeparturNum"
|
|
|
+ <span v-if="route.query.etdOrdeparturNum"
|
|
|
>{{ notificationData.type === 'delay' ? 'Departure Delay' : 'ETD Change' }} ({{
|
|
|
- notificationData.etdOrdeparturNum
|
|
|
+ route.query.etdOrdeparturNum
|
|
|
}})</span
|
|
|
>
|
|
|
- <span v-if="notificationData.etdOrdeparturNum && notificationData.etaOrarrivalNum">
|
|
|
+ <span v-if="route.query.etdOrdeparturNum && route.query.etaOrarrivalNum">
|
|
|
| </span
|
|
|
>
|
|
|
- <span v-if="notificationData.etaOrarrivalNum">
|
|
|
+ <span v-if="route.query.etaOrarrivalNum">
|
|
|
{{ notificationData.type === 'delay' ? 'Arrival Delay' : 'ETA Change' }} ({{
|
|
|
- notificationData.etaOrarrivalNum
|
|
|
+ route.query.etaOrarrivalNum
|
|
|
}})
|
|
|
</span>
|
|
|
</div>
|