|
|
@@ -2,7 +2,7 @@
|
|
|
import { ArrowDownOutlined, ArrowUpOutlined, CaretRightOutlined } from '@ant-design/icons-vue';
|
|
|
import { h, ref } from 'vue';
|
|
|
import { useRequest } from 'alova/client';
|
|
|
-import { getPatientHealthIndicatorsMethod } from '@/request/api/report.api';
|
|
|
+import { getPatientHealthIndicatorRecordsMethod } from '@/request/api/report.api';
|
|
|
import type { HealthIndicatorItemVO, HealthIndicatorVO } from '@/model/health-report.model';
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
|
@@ -11,7 +11,7 @@ const props = defineProps<{ patient: { id: string } }>();
|
|
|
const indicators = shallowRef<HealthIndicatorVO[]>([]);
|
|
|
const activeKey = ref<string[]>([]);
|
|
|
|
|
|
-const { loading } = useRequest(() => getPatientHealthIndicatorsMethod(props.patient.id)).onSuccess(({ data }) => {
|
|
|
+const { loading } = useRequest(() => getPatientHealthIndicatorRecordsMethod(props.patient.id)).onSuccess(({ data }) => {
|
|
|
indicators.value = conversionGrouping(data);
|
|
|
activeKey.value = indicators.value.map((item) => item.name);
|
|
|
});
|