From 8a4113f5d4a7bdfc2c487139a366c1c16bdc4224 Mon Sep 17 00:00:00 2001 From: wx <645899409@qq.com> Date: Wed, 3 Dec 2025 16:12:26 +0800 Subject: [PATCH] =?UTF-8?q?update=201.=E6=B7=BB=E5=8A=A0=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E5=B0=8F=E5=B1=8B=E6=95=B0=E6=8D=AE=202.=E5=A4=A9=E5=81=87?= =?UTF-8?q?=E4=BD=93=E6=A3=80=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../healthMonitor/anY/cottage/cottage.api.ts | 7 ++ .../healthMonitor/anY/cottage/cottage.data.ts | 80 ++++++++++++++++++- .../healthMonitor/anY/cottage/cottage.vue | 11 +-- .../anY/physical/physical.api.ts | 5 ++ .../anY/physical/physical.data.ts | 71 +++++++++++++++- .../healthMonitor/anY/physical/physical.vue | 11 +-- 6 files changed, 167 insertions(+), 18 deletions(-) diff --git a/src/views/healthMonitor/anY/cottage/cottage.api.ts b/src/views/healthMonitor/anY/cottage/cottage.api.ts index e69de29..e90fa1d 100644 --- a/src/views/healthMonitor/anY/cottage/cottage.api.ts +++ b/src/views/healthMonitor/anY/cottage/cottage.api.ts @@ -0,0 +1,7 @@ +import { defHttp } from '/@/utils/http/axios'; +enum Api { + list = '/health-emergency/emergency/LargeScreenNew/healthPlaceHomeDetailList', + map = '/health-emergency/emergency/LargeScreenNew/map', +} +export const listApi = (params: any) => defHttp.post({ url: Api.list, params }); +export const mapApi = () => defHttp.get({ url: Api.map, params: { type: '3' } }); diff --git a/src/views/healthMonitor/anY/cottage/cottage.data.ts b/src/views/healthMonitor/anY/cottage/cottage.data.ts index 7be8ffb..ad47e38 100644 --- a/src/views/healthMonitor/anY/cottage/cottage.data.ts +++ b/src/views/healthMonitor/anY/cottage/cottage.data.ts @@ -1,5 +1,81 @@ import { BasicColumn, FormSchema } from '/@/components/Table'; +import { mapApi } from '/@/views/healthMonitor/anY/cottage/cottage.api'; -export const columns: BasicColumn[] = []; +export const columns: BasicColumn[] = [ + { + title: '所属单位', + dataIndex: 'departName', + }, + { + title: '小屋名称', + dataIndex: 'roomName', + }, + { + title: '小屋地址', + dataIndex: 'address', + }, + { + title: '员工姓名', + dataIndex: 'name', + }, + { + title: '员工编号', + dataIndex: 'employeeNum', + width: 100, + }, + { + title: '检测类型', + dataIndex: 'checkTypeName', + width: 100, + }, + { + title: '测量值', + dataIndex: 'currentVal', + width: 100, + }, + { + title: '目标值', + dataIndex: 'goalVal', + width: 100, + }, + { + title: '检测日期', + dataIndex: 'checkInDate', + width: 100, + }, +]; -export const searchScheme: FormSchema[] = []; +export const searchScheme: FormSchema[] = [ + { + field: 'name', + label: '员工姓名', + component: 'Input', + }, + { + field: 'healthRoomId', + label: '健康小屋', + component: 'ApiSelect', + componentProps: () => ({ + api: mapApi, + resultField: 'result', + labelField: 'name', + valueField: 'ayId', + immediate: true, + showSearch: true, + showDefaultValue: false, + filterOption: (input: string, option: any): boolean => { + const str: string = input.toLowerCase(); + return option.label.toLowerCase().indexOf(str) >= 0; + }, + }), + }, + { + field: 'date', + label: '检测日期', + component: 'RangeDate', + componentProps: () => ({ + valueFormat: 'YYYY-MM-DD', + format: 'YYYY-MM-DD', + }), + }, +]; diff --git a/src/views/healthMonitor/anY/cottage/cottage.vue b/src/views/healthMonitor/anY/cottage/cottage.vue index 43e6e61..5b69b3c 100644 --- a/src/views/healthMonitor/anY/cottage/cottage.vue +++ b/src/views/healthMonitor/anY/cottage/cottage.vue @@ -4,11 +4,11 @@