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..4c8d596 --- /dev/null +++ b/frontend/src/api/result/result.ts @@ -0,0 +1,7 @@ +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}`) + +export const updateMonitorResult = (data: any) => http.post('/result/updateMonitorResult', data) \ 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..2cc7ecf --- /dev/null +++ b/frontend/src/views/home/components/reportResultPopup.vue @@ -0,0 +1,184 @@ + + + + + + + {{ result.totalNum }} + + + {{ result.qualifiedNum }} + + + {{ result.unQualifiedNum }} + + + {{ result.errorSysName }} + + + 及格 + 不及格 + + + + 第{{ result.whichTime }}次检测的{{ result.resultOrigin }} + 重新选择 + + + + + + + 确认生成 + + + + + + + + + + + + + + {{ label }} + + 及格 + + + 不及格 + + + + + + {{ item.dataSourceName }} + 及格 + 不及格 + + + + + + + 取消 + 确认 + + + + + + \ 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 2d0da53..0b1308c 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" /> + +