From b27615baafeccbff726a4c3ed33b427f08f044ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Fri, 12 Sep 2025 16:34:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?ADD:=201=E3=80=81=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E7=94=9F=E6=88=90=E9=80=89=E6=8B=A9=E7=95=8C=E9=9D=A2=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/result/interface/index.ts | 51 +++++ frontend/src/api/result/result.ts | 5 + .../home/components/reportResultPopup.vue | 181 ++++++++++++++++++ frontend/src/views/home/components/table.vue | 56 +++--- 4 files changed, 269 insertions(+), 24 deletions(-) create mode 100644 frontend/src/api/result/interface/index.ts create mode 100644 frontend/src/api/result/result.ts create mode 100644 frontend/src/views/home/components/reportResultPopup.vue diff --git a/frontend/src/api/result/interface/index.ts b/frontend/src/api/result/interface/index.ts new file mode 100644 index 0000000..37c1ee5 --- /dev/null +++ b/frontend/src/api/result/interface/index.ts @@ -0,0 +1,51 @@ + +export interface MonitorResult { + /** + * 监测点id + */ + monitorId: string; + + /** + * 监测点序号 + */ + monitorNum: number; + + /** + * 总检测次数 + */ + totalNum: number; + + /** + * 合格检测次数 + */ + qualifiedNum: number; + + /** + * 不合格检测次数 + */ + unQualifiedNum: number; + + /** + * 误差体系名称 + */ + errorSysName: string; + + /** + * 检测结果 + */ + checkResult: number; + + /** + * 哪次 + */ + whichTime: string; + + /** + * 结论来源 + */ + resultOrigin: string; + /** + * 来源类型 + */ + resultType: string; +} \ No newline at end of file diff --git a/frontend/src/api/result/result.ts b/frontend/src/api/result/result.ts new file mode 100644 index 0000000..1e11ff9 --- /dev/null +++ b/frontend/src/api/result/result.ts @@ -0,0 +1,5 @@ +import http from '@/api' + +export const getMonitorResult = (devId: string) => http.post(`/result/getMonitorResult?devId=${devId}`) +export const getMonitorDataSourceResult = (monitorId: string) => + http.get(`/result/getMonitorDataSourceResult?monitorId=${monitorId}`) \ No newline at end of file diff --git a/frontend/src/views/home/components/reportResultPopup.vue b/frontend/src/views/home/components/reportResultPopup.vue new file mode 100644 index 0000000..83dade8 --- /dev/null +++ b/frontend/src/views/home/components/reportResultPopup.vue @@ -0,0 +1,181 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index aecfa56..81a4454 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -77,13 +77,20 @@ 查询 重置 - 手动检测 + + 手动检测 + 手动检测 @@ -175,7 +182,7 @@ - + @@ -187,12 +194,14 @@ ref="dataCheckSingleChannelSingleTestPopupRef" :append-to-body="true" /> + +