From aa71fd5c7eb5e5f4c1d253c8e024d95111d3f7a6 Mon Sep 17 00:00:00 2001 From: xf Date: Sun, 6 Jul 2025 18:03:41 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=B0=E7=96=86=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/settings.ts | 8 ++-- src/views/indexSun.vue | 1 + src/views/indexSun/indexModal.vue | 14 ++++--- src/views/indexSun/indexSun.api.ts | 10 ++++- src/views/indexSun/indexSun.ts | 38 ++++++++++++++++++- src/views/indexSun/oneR.vue | 19 ++++++++-- src/views/indexSun/threeNewL.vue | 16 +++++++- src/views/indexSun/threeR.vue | 24 ++++++++---- src/views/indexSun/twoR.vue | 60 ++++++++++++++++++++---------- 9 files changed, 146 insertions(+), 44 deletions(-) diff --git a/src/utils/settings.ts b/src/utils/settings.ts index 3ccf1a0..0cdd6b3 100644 --- a/src/utils/settings.ts +++ b/src/utils/settings.ts @@ -19,6 +19,10 @@ export enum SexType { } export const sexTypeList = [ + { + label: '全部', + value: SexType.all, + }, { label: '男', value: SexType.male, @@ -27,10 +31,6 @@ export const sexTypeList = [ label: '女', value: SexType.female, }, - { - label: '全部', - value: SexType.all, - }, ]; export interface Settings { diff --git a/src/views/indexSun.vue b/src/views/indexSun.vue index ce9aa9c..e2b88f4 100644 --- a/src/views/indexSun.vue +++ b/src/views/indexSun.vue @@ -86,6 +86,7 @@ function handleTwoLClick() { indexModalTitle.value = '主诉分类详情'; indexColumn.value = columns[1]; + firstFormOne.value = fromLists[1]; nextTick(() => { indexModalRef.value.openDialog(); }); diff --git a/src/views/indexSun/indexModal.vue b/src/views/indexSun/indexModal.vue index e88fb3a..2470430 100644 --- a/src/views/indexSun/indexModal.vue +++ b/src/views/indexSun/indexModal.vue @@ -6,6 +6,12 @@ + @@ -14,12 +20,10 @@ - - -
搜索 + 重置
@@ -66,7 +70,7 @@ } const formItemLayout = { labelCol: { - style: { width: '60px' }, + style: { width: '80px' }, ...props.labelCol, }, wrapperCol: { @@ -82,7 +86,7 @@ function getField() { let result = {}; props.firstForm.map((item) => { - result[item.field] = ''; + result[item.field] = item.defaultValue || ''; }); formRecord.value = { ...formRecord.value, diff --git a/src/views/indexSun/indexSun.api.ts b/src/views/indexSun/indexSun.api.ts index e783807..a4ba47e 100644 --- a/src/views/indexSun/indexSun.api.ts +++ b/src/views/indexSun/indexSun.api.ts @@ -1,7 +1,15 @@ -import { post } from '/@/api/request.ts'; +import { post, get } from '/@/api/request.ts'; enum Api { statisticsNew = '/health-emergency/emergency/LargeScreenNew/statisticsNew', + threeL = '/health-emergency/emergency/LargeScreenNew/medicalPeopleNumStatistics', + oneR = '/health-watch/watch/watchMonitorData/getMonitorList', + threeR = '/health-emergency/emergency/LargeScreenNew/medicalAbnormalStatistics', + twoR = '/health-emergency/emergency/LargeScreenNew/healthSign', } export const statisticsNewApi = (params) => post(Api.statisticsNew, params); +export const threeLApi = (params) => post(Api.threeL, params); +export const oneRApi = (params) => get(Api.oneR, params); +export const threeRApi = (params) => post(Api.threeR, params); +export const twoRApi = (params) => post(Api.twoR, params); diff --git a/src/views/indexSun/indexSun.ts b/src/views/indexSun/indexSun.ts index 6b0401f..6f65969 100644 --- a/src/views/indexSun/indexSun.ts +++ b/src/views/indexSun/indexSun.ts @@ -1,5 +1,6 @@ import * as echarts from 'echarts'; import { legend1, legend2, legend3, legend4, legend5 } from '/@/components/xianMap/xianMapHooks.ts'; +import { SexType, sexTypeList } from '/@/utils/settings.ts'; export const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href; export const legend2 = new URL('/@/assets/img/legend5.png', import.meta.url).href; export const legend3 = new URL('/@/assets/img/legend3.png', import.meta.url).href; @@ -222,9 +223,44 @@ const fromList = [ field: 'realName', type: 'input', placeholder: '请输入姓名', + defaultValue: '', + }, + { + label: '性别', + field: 'sex', + type: 'select', + placeholder: '请选择性别', + options: sexTypeList, + defaultValue: SexType.all, + }, +]; + +const fromList2 = [ + { + label: '救助人', + field: 'realName', + type: 'input', + placeholder: '请输入', + defaultValue: '', + }, + { + label: '性别', + field: 'sex', + type: 'select', + placeholder: '请选择性别', + options: sexTypeList, + defaultValue: SexType.all, + }, + { + label: '救助方式', + field: 'sex', + type: 'select', + placeholder: '请选择性别', + options: sexTypeList, + defaultValue: SexType.all, }, ]; export const columns = [columns1, columns2]; -export const fromLists = [fromList]; +export const fromLists = [fromList, fromList2]; diff --git a/src/views/indexSun/oneR.vue b/src/views/indexSun/oneR.vue index 88eeb45..d307d3b 100644 --- a/src/views/indexSun/oneR.vue +++ b/src/views/indexSun/oneR.vue @@ -9,9 +9,9 @@