Add AnalysisReport interface and refine report type definitions

This commit is contained in:
wzclm 2025-02-20 20:46:27 +08:00
commit bb1acb50c1
2 changed files with 34 additions and 3 deletions

View File

@ -2,7 +2,39 @@
import { ref, onMounted, onUnmounted, computed } from "vue";
import * as echarts from "echarts";
import { ElMessageBox, ElMessage } from "element-plus";
import { Plus } from "@element-plus/icons-vue";
import { Plus } from '@element-plus/icons-vue';
interface AnalysisReport {
id: number;
title: string;
type: "species" | "environment"; // /
timeRange: {
//
start: string;
end: string;
};
dataSource: {
//
type: string;
points: string[]; //
}[];
analysis: {
summary: string; //
trends: {
//
indicator: string; //
trend: string; //
data: any[]; //
}[];
abnormal: {
//
type: string;
description: string;
level: string;
}[];
};
recommendations: string[]; //
}
//
const tableData = ref([

View File

@ -66,7 +66,6 @@ let trendChart = null;
const initTrendChart = () => {
const chartDom = document.getElementById('trendChart');
if (!chartDom) return;
const myChart = echarts.init(chartDom);
const option = {
backgroundColor: 'transparent',
@ -588,4 +587,4 @@ const showTrendAnalysis = ref(false);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
}
</style>
</style>