|
@@ -19,12 +19,14 @@ import ReportSchemeCardWidget from '@/widgets/ReportSchemeCardWi
|
|
|
import { ArrowDownOutlined, ArrowUpOutlined } from '@ant-design/icons-vue';
|
|
import { ArrowDownOutlined, ArrowUpOutlined } from '@ant-design/icons-vue';
|
|
|
import { useElementSize } from '@vueuse/core';
|
|
import { useElementSize } from '@vueuse/core';
|
|
|
import { useRouteQuery } from '@vueuse/router';
|
|
import { useRouteQuery } from '@vueuse/router';
|
|
|
-import { invalidateCache } from 'alova';
|
|
|
|
|
-import { useRequest, useWatcher } from 'alova/client';
|
|
|
|
|
-import { h } from 'vue';
|
|
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
|
|
-import { RecycleScroller } from 'vue-virtual-scroller';
|
|
|
|
|
-import { VxeUI } from 'vxe-pc-ui';
|
|
|
|
|
|
|
+
|
|
|
|
|
+import { invalidateCache } from 'alova';
|
|
|
|
|
+import { actionDelegationMiddleware, useRequest, useWatcher } from 'alova/client';
|
|
|
|
|
+
|
|
|
|
|
+import { h } from 'vue';
|
|
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
|
|
+import { RecycleScroller } from 'vue-virtual-scroller';
|
|
|
|
|
+import { VxeUI } from 'vxe-pc-ui';
|
|
|
|
|
|
|
|
|
|
|
|
|
const patientId = useRouteQuery<string>('patientId');
|
|
const patientId = useRouteQuery<string>('patientId');
|
|
@@ -77,7 +79,9 @@ const { data: indicator, loading: indicatorLoading } = useWatcher(
|
|
|
[ reportId ],
|
|
[ reportId ],
|
|
|
{
|
|
{
|
|
|
initialData: [], immediate: true,
|
|
initialData: [], immediate: true,
|
|
|
- middleware: (_, next) => { if ( reportId.value ) next(); },
|
|
|
|
|
|
|
+ middleware: (_, next) => {
|
|
|
|
|
+ if ( reportId.value ) return actionDelegationMiddleware('updatePatientIndicator')(_, next);
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
|
|
|
|
@@ -116,7 +120,8 @@ function schemeRefreshHandle(id?: string) {
|
|
|
invalidateCache(reportSchemeMethod(reportId.value!));
|
|
invalidateCache(reportSchemeMethod(reportId.value!));
|
|
|
schemeRefresh().then(() => nextTick()).then(() => {
|
|
schemeRefresh().then(() => nextTick()).then(() => {
|
|
|
if ( id ) {
|
|
if ( id ) {
|
|
|
- document.querySelector(`#scrollable_scheme_${ id }`)?.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'nearest' });
|
|
|
|
|
|
|
+ document.querySelector(`#scrollable_scheme_${ id }`)?.scrollIntoView(
|
|
|
|
|
+ { behavior: 'smooth', block: 'start', inline: 'nearest' });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|