|
|
@@ -13,7 +13,7 @@ import { RecycleScroller } from 'vue-virtual-scroller';
|
|
|
|
|
|
const keyword = ref('');
|
|
|
const patientId = useRouteQuery('patientId');
|
|
|
-const reportId = useRouteQuery('reportId');
|
|
|
+const uid = useRouteQuery('uid');
|
|
|
|
|
|
const { data, loading, send } = useRequest(
|
|
|
() => patientsRoomMethod({ patientName: keyword.value }),
|
|
|
@@ -31,7 +31,7 @@ async function handle(model: PatientReportModel) {
|
|
|
await invalidateCache(matchedMethods);
|
|
|
await router.replace({
|
|
|
path: router.currentRoute.value.path,
|
|
|
- query: { patientId: model.id, reportId: model.report.id },
|
|
|
+ query: { patientId: model.id, reportId: model.report.id, uid: model.report.id },
|
|
|
});
|
|
|
}
|
|
|
</script>
|
|
|
@@ -46,12 +46,12 @@ async function handle(model: PatientReportModel) {
|
|
|
</div>
|
|
|
<div class="page-aside__content flex-auto">
|
|
|
<a-empty v-if="!loading && !data.length" />
|
|
|
- <RecycleScroller v-else ref="scroller" class="record-scroller" key-field="id"
|
|
|
+ <RecycleScroller v-else ref="scroller" class="record-scroller" key-field="uid"
|
|
|
:items="data" :item-size="40"
|
|
|
>
|
|
|
<template v-slot="{ item }">
|
|
|
<div class="record-item flex items-center h-40px cursor-pointer"
|
|
|
- :class="{active: patientId == item.id}"
|
|
|
+ :class="{active: uid == item.uid}"
|
|
|
@click="handle(item)"
|
|
|
>
|
|
|
<span><UserOutlined class="m-r-4px" />{{ item.name }}</span>
|