Location lookup fixes: RPC null array handling, RPC caching, existing encounters empty resultset handling, default to existing encounters
This commit is contained in:
parent
eebda06c86
commit
5c67773287
@ -42,14 +42,14 @@
|
||||
client: Object,
|
||||
dfn: String,
|
||||
label: String,
|
||||
modelValue: String
|
||||
modelValue: Object
|
||||
},
|
||||
emits: {
|
||||
'update:modelValue': Object
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
view_new: true,
|
||||
view_new: false,
|
||||
query: '',
|
||||
visits_date_begin: now,
|
||||
visits_date_end: now,
|
||||
|
@ -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>
|
||||
|
||||
|
@ -339,11 +339,11 @@ export function Client(cid, secret) {
|
||||
this.ORWPCE_NOTEVSTR = aflow((...args) => this.call({ method: 'ORWPCE_NOTEVSTR', context: ['OR CPRS GUI CHART'], ttl: 86400, stale: true }, ...args), d_log, d_unwrap);
|
||||
this.ORWPCE_DELETE = aflow((...args) => this.call({ method: 'ORWPCE_DELETE', context: ['OR CPRS GUI CHART'], ttl: 0, stale: false }, ...args), d_log, d_unwrap);
|
||||
|
||||
this.ORWCV_VST = memoized(aflow((...args) => this.callctx(['OR CPRS GUI CHART'], 'ORWCV_VST', ...args), d_log, d_unwrap, f_split('^', 'apptinfo', 'datetime', 'location', 'status')));
|
||||
this.ORWCV_VST = memoized(aflow((...args) => this.callctx(['OR CPRS GUI CHART'], 'ORWCV_VST', ...args), d_log, d_unwrap, d_parse_array, f_split('^', 'apptinfo', 'datetime', 'location', 'status')));
|
||||
|
||||
this.ORWU_NEWPERS = memoized(aflow((...args) => this.call({ method: 'ORWU_NEWPERS', context: ['OR CPRS GUI CHART'], ttl: 86400, stale: true }, ...args), d_log, d_unwrap, f_split('^', 'DUZ', 'name', 'description')));
|
||||
this.ORWU_VALIDSIG = memoized(aflow((...args) => this.call({ method: 'ORWU_VALIDSIG', context: ['OR CPRS GUI CHART'], ttl: 0, stale: false }, ...args), d_log, d_unwrap));
|
||||
this.ORWU1_NEWLOC = memoized(aflow((...args) => this.callctx(['OR CPRS GUI CHART'], 'ORWU1_NEWLOC', ...args), d_log, d_unwrap, f_split('^', 'IEN', 'name')));
|
||||
this.ORWU1_NEWLOC = memoized(aflow((...args) => this.call({ method: 'ORWU1_NEWLOC', context: ['OR CPRS GUI CHART'], ttl: 86400, stale: true }, ...args), d_log, d_unwrap, f_split('^', 'IEN', 'name')));
|
||||
|
||||
this.ORWDX_DGNM = memoized(aflow((...args) => this.callctx(['OR CPRS GUI CHART'], 'ORWDX_DGNM', ...args), d_log, d_unwrap));
|
||||
this.ORWDX_DGRP = memoized(aflow((...args) => this.callctx(['OR CPRS GUI CHART'], 'ORWDX_DGRP', ...args), d_log, d_unwrap));
|
||||
|
Loading…
Reference in New Issue
Block a user