|
@@ -3,6 +3,8 @@ import { ElMessageBox } from 'element-plus';
|
|
import * as echarts from 'echarts';
|
|
import * as echarts from 'echarts';
|
|
import { getReportLineOptions } from './echartOptions';
|
|
import { getReportLineOptions } from './echartOptions';
|
|
import { getDrawerData } from '@/api/report/lab';
|
|
import { getDrawerData } from '@/api/report/lab';
|
|
|
|
+import { onMounted } from 'vue';
|
|
|
|
+import { useRoute } from 'vue-router';
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
data: {
|
|
data: {
|
|
@@ -11,6 +13,8 @@ const props = defineProps({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+const route = useRoute();
|
|
|
|
+
|
|
const echartInstance = {};
|
|
const echartInstance = {};
|
|
const listRefs = [];
|
|
const listRefs = [];
|
|
|
|
|
|
@@ -131,7 +135,7 @@ const getList = async () => {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
|
|
|
|
const { deviceNo, currentDate } = props.data;
|
|
const { deviceNo, currentDate } = props.data;
|
|
- const { rows, total: tableTotal } = await getDrawerData({ deviceNo, timeBegin: currentDate, timeEnd: currentDate, ...queryParams.value });
|
|
|
|
|
|
+ const { rows, total: tableTotal } = await getDrawerData({ deviceNo, timeBegin: currentDate, timeEnd: currentDate, ...queryParams.value, type: props.data.type });
|
|
total.value = tableTotal;
|
|
total.value = tableTotal;
|
|
tableData.value = rows;
|
|
tableData.value = rows;
|
|
loading.value = false;
|
|
loading.value = false;
|
|
@@ -160,6 +164,10 @@ const onDrawerClosed = () => {
|
|
};
|
|
};
|
|
tableData.value = [];
|
|
tableData.value = [];
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+onMounted(() => {
|
|
|
|
+ console.log( route.query.type );
|
|
|
|
+})
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|