From 07f14c77038f49411f73b1676a3421075e56161a Mon Sep 17 00:00:00 2001 From: xf Date: Tue, 8 Jul 2025 15:52:42 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=A4=A7=E5=B1=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/settings.ts | 15 ++ src/views/indexSun.vue | 64 ++++++++- src/views/indexSun/indexModal.vue | 136 ++++++++++++++++-- src/views/indexSun/indexSun.api.ts | 8 ++ src/views/indexSun/indexSun.ts | 214 ++++++++++++++++++++++++++++- src/views/indexSun/threeNewL.vue | 12 +- src/views/indexSun/threeR.vue | 4 +- src/views/indexSun/twoR.vue | 49 +++++-- 8 files changed, 465 insertions(+), 37 deletions(-) diff --git a/src/utils/settings.ts b/src/utils/settings.ts index 0cdd6b3..810083c 100644 --- a/src/utils/settings.ts +++ b/src/utils/settings.ts @@ -33,6 +33,21 @@ export const sexTypeList = [ }, ]; +export const normalTypeList = [ + { + label: '全部', + value: '2', + }, + { + label: '正常', + value: '0', + }, + { + label: '异常', + value: '1', + }, +]; + export interface Settings { dataType: string; orgCode?: string; diff --git a/src/views/indexSun.vue b/src/views/indexSun.vue index 41c5155..92cc8fb 100644 --- a/src/views/indexSun.vue +++ b/src/views/indexSun.vue @@ -27,16 +27,25 @@
- +
- +
- + diff --git a/src/views/indexSun/indexSun.api.ts b/src/views/indexSun/indexSun.api.ts index 12c971d..cb10749 100644 --- a/src/views/indexSun/indexSun.api.ts +++ b/src/views/indexSun/indexSun.api.ts @@ -7,6 +7,10 @@ enum Api { oneR = '/health-watch/watch/watchMonitorData/getMonitorList', threeR = '/health-emergency/emergency/LargeScreenNew/medicalAbnormalStatistics', twoR = '/health-emergency/emergency/LargeScreenNew/healthSign', + threeRModal = '/health-emergency/emergency/LargeScreenNew/medicalAbnormal', + twoRModal1 = '/health-emergency/emergency/LargeScreenNew/healthWeightLoss', + twoRModal2 = '/health-emergency/emergency/LargeScreenNew/healthBloodSugar', + twoRModal3 = '/health-emergency/emergency/LargeScreenNew/healthBloodPressure', getSecondaryDepartment = '/sys/sysDepart/allSecondaryDeparts', } @@ -17,4 +21,8 @@ export const oneRApi = (params) => get(Api.oneR, params); export const threeRApi = (params) => post(Api.threeR, params); export const twoRApi = (params) => post(Api.twoR, params); +export const threeRModalApi = (params) => post(Api.threeRModal, params); +export const twoRModal1Api = (params) => post(Api.twoRModal1, params); +export const twoRModal2Api = (params) => post(Api.twoRModal2, params); +export const twoRModal3Api = (params) => post(Api.twoRModal3, params); export const getSecondaryDepartmentList = () => get({ url: Api.getSecondaryDepartment }); diff --git a/src/views/indexSun/indexSun.ts b/src/views/indexSun/indexSun.ts index 1dd22ab..49c122a 100644 --- a/src/views/indexSun/indexSun.ts +++ b/src/views/indexSun/indexSun.ts @@ -1,6 +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'; +import { normalTypeList, 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; @@ -263,3 +263,215 @@ const fromList2 = [ export const columns = [columns1, columns2]; export const fromLists = [fromList, fromList2]; + +export const threeRModalColumns = [ + { + title: '单位', + dataIndex: 'departName', + key: 'departName', + }, + { + title: '姓名', + dataIndex: 'name', + key: 'name', + }, + { + title: '性别', + dataIndex: 'sex_dictText', + key: 'sex_dictText', + }, + { + title: '年龄', + dataIndex: 'age', + key: 'age', + }, + { + title: '体检医院', + dataIndex: 'hospitalName', + key: 'hospitalName', + }, + { + title: '检查日期', + dataIndex: 'checkInDate', + key: 'checkInDate', + }, +]; + +export const threeRModalFromList = [ + { + label: '姓名', + field: 'name', + type: 'input', + placeholder: '请输入姓名', + defaultValue: '', + }, + { + label: '体检医院', + field: 'hospitalName', + type: 'input', + placeholder: '请输入体检医院', + defaultValue: '', + }, +]; + +const towRcolumn1 = [ + { + title: '单位', + dataIndex: 'departName', + key: 'departName', + }, + { + title: '姓名', + dataIndex: 'name', + key: 'name', + }, + { + title: '性别', + dataIndex: 'sex_dictText', + key: 'sex_dictText', + }, + { + title: '年龄', + dataIndex: 'age', + key: 'age', + }, + { + title: '身高(cm)', + dataIndex: 'height', + key: 'height', + }, + { + title: '体重(kg)', + dataIndex: 'weight', + key: 'weight', + }, + { + title: 'BMI', + dataIndex: 'bmi', + key: 'bmi', + }, + { + title: 'BMI是否异常', + dataIndex: 'bmiException', + key: 'bmiException', + }, + { + title: '腰围(cm)', + dataIndex: 'waist', + key: 'waist', + }, + { + title: '填报日期', + dataIndex: 'createTime', + key: 'createTime', + }, +]; +const towRcolumn2 = [ + { + title: '单位', + dataIndex: 'departName', + key: 'departName', + }, + { + title: '姓名', + dataIndex: 'name', + key: 'name', + }, + { + title: '性别', + dataIndex: 'sex_dictText', + key: 'sex_dictText', + }, + { + title: '年龄', + dataIndex: 'age', + key: 'age', + }, + { + title: '血糖值(mmol/L)', + dataIndex: 'height', + key: 'height', + }, + { + title: '血糖是否异常', + dataIndex: 'weight', + key: 'weight', + }, + { + title: '腰围(cm)', + dataIndex: 'waist', + key: 'waist', + }, + { + title: '填报日期', + dataIndex: 'createTime', + key: 'createTime', + }, +]; +const towRcolumn3 = [ + { + title: '单位', + dataIndex: 'departName', + key: 'departName', + }, + { + title: '姓名', + dataIndex: 'name', + key: 'name', + }, + { + title: '性别', + dataIndex: 'sex_dictText', + key: 'sex_dictText', + }, + { + title: '年龄', + dataIndex: 'age', + key: 'age', + }, + { + title: '收缩压(mmHg)', + dataIndex: 'height', + key: 'height', + }, + { + title: '收缩压是否异常', + dataIndex: 'weight', + key: 'weight', + }, + { + title: '舒张压(mmHg)', + dataIndex: 'bmi', + key: 'bmi', + }, + { + title: '舒张压是否异常', + dataIndex: 'bmiException', + key: 'bmiException', + }, + { + title: '填报日期', + dataIndex: 'createTime', + key: 'createTime', + }, +]; +export function twoRform(type) { + return [ + { + label: '员工姓名', + field: 'realName', + type: 'input', + placeholder: '请输入', + defaultValue: '', + }, + { + label: '异常标记', + field: 'abFlag', + type: 'select', + placeholder: '请选择性别', + options: normalTypeList, + defaultValue: type, + }, + ]; +} +export const towRcolumns = [towRcolumn1, towRcolumn2, towRcolumn3]; diff --git a/src/views/indexSun/threeNewL.vue b/src/views/indexSun/threeNewL.vue index 9e1cd74..72cc331 100644 --- a/src/views/indexSun/threeNewL.vue +++ b/src/views/indexSun/threeNewL.vue @@ -84,13 +84,11 @@ letter-spacing: 0; margin-bottom: 20px; cursor: pointer; - .item-d-img { - img { - display: inline-block; - width: 32px; - height: 32px; - cursor: pointer; - } + img { + display: inline-block; + width: 32px; + height: 32px; + cursor: pointer; } } } diff --git a/src/views/indexSun/threeR.vue b/src/views/indexSun/threeR.vue index e7ccfed..4b32342 100644 --- a/src/views/indexSun/threeR.vue +++ b/src/views/indexSun/threeR.vue @@ -47,6 +47,7 @@ import { ref, onMounted } from 'vue'; import { threeRApi } from '/@/views/indexSun/indexSun.api.ts'; const scrollList = ref(); + const emit = defineEmits(['handleClick']); onMounted(() => { threeRApi({}).then((res) => { if (res.code == 200) { @@ -55,8 +56,7 @@ }); }); function handleClickNum(type) { - console.log(type); - console.log(123); + emit('handleClick', type); }