Location lookup fixes: RPC null array handling, RPC caching, existing encounters empty resultset handling, default to existing encounters
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user