Location lookup fixes: RPC null array handling, RPC caching, existing encounters empty resultset handling, default to existing encounters

This commit is contained in:
2023-08-08 22:34:59 -04:00
parent eebda06c86
commit 5c67773287
3 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
<template>
<table v-if="resultset.length > 0" class="table table-striped">
<tbody>
<table class="table table-striped">
<tbody v-if="resultset.length > 0">
<tr v-for="item in resultset" :class="{ 'table-active': (x_modelValue) && (x_modelValue.IEN) && (x_modelValue.datetime) && (item.location_ien == x_modelValue.IEN) && (item.datetime == x_modelValue.datetime) }" @click="x_modelValue = { IEN: item.location_ien, location: item.location, datetime: item.datetime, appointment_ien: item.IEN }">
<td>{{item.location}}</td>
<td>#{{item.location_ien}}</td>
@@ -8,6 +8,9 @@
<td style="text-align: right;">{{item.datestr}} {{item.timestr}}</td>
</tr>
</tbody>
<tfoot v-else>
<tr><td style="text-align: center;">No encounters in range</td></tr>
</tfoot>
</table>
</template>