@@ -28,7 +35,7 @@
@@ -668,11 +768,19 @@
padding: 9px 18px;
min-height: 200px;
max-height: 473px;
- overflow: auto;
+ overflow: hidden;
background: #0a1d36;
border-radius: 2px;
+ display: flex;
+ flex-direction: column;
//border: 1px solid #1b7ef2;
+ .has-data {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ overflow: auto;
+ }
.line-title {
margin-bottom: 9px;
font-size: 14px;
@@ -682,6 +790,8 @@
}
.line-content {
+ flex: 1;
+ overflow: auto;
font-size: 12px;
color: var(--cardFontColor);
@@ -785,4 +895,8 @@
}
}
}
+
+ .no-top {
+ top: 50px !important;
+ }
diff --git a/src/views/indexSun/indexSun.api.ts b/src/views/indexSun/indexSun.api.ts
index b02c7b0..c1450df 100644
--- a/src/views/indexSun/indexSun.api.ts
+++ b/src/views/indexSun/indexSun.api.ts
@@ -21,6 +21,9 @@ enum Api {
nearResources = '/health-emergency/emergency/LargeScreenNew/nearResources',
todayEmergencyList = '/health-emergency/emergency/LargeScreenNew/todayEmergencyList',
healthArchives = '/health-emergency/emergency/LargeScreenNew/healthArchives',
+ contactList = '/health-system/sys/api/emergencyContact/contactList',
+ careUser = '/health-emergency/emergency/LargeScreenNew/careUser',
+ queryAnYanToken = '/health-emergency/emergency/LargeScreenNew/queryAnYanToken',
}
export const statisticsNewApi = (params: any) => post(Api.statisticsNew, params);
@@ -35,6 +38,9 @@ export const twoRNApi = (params: any) => get(Api.twoRN, params);
export const nearResourcesApi = (params: any) => get(Api.nearResources, params);
export const todayEmergencyListApi = (params: any) => post(Api.todayEmergencyList, params);
export const healthArchivesApi = (params: any) => get(Api.healthArchives, params);
+export const contactListApi = (params: any) => get(Api.contactList, params);
+export const careUserApi = (params: any) => get(Api.careUser, params);
+export const queryAnYanTokenApi = () => get(Api.queryAnYanToken, {});
export const threeRModalApi = (params: any) => post(Api.threeRModal, params);
export const twoRModal1Api = (params: any) => post(Api.twoRModal1, params);
diff --git a/src/views/indexSun/indexSun.ts b/src/views/indexSun/indexSun.ts
index 1877180..1720d1e 100644
--- a/src/views/indexSun/indexSun.ts
+++ b/src/views/indexSun/indexSun.ts
@@ -2,6 +2,7 @@ import * as echarts from 'echarts';
import { initatorTypee, isTrueOfFalse, SexType, sexTypeList, sexTypeListNew } from '/@/utils/settings.ts';
import { getDictByCode2 } from '/@/views/index.api.ts';
import dayjs from 'dayjs';
+import { h } from 'vue';
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;
@@ -44,7 +45,7 @@ export function getClassCharts(dx: any, dy: any, m: any) {
// nameGap: 10,
// nameRotate: 0, // 设置旋转角度,0 表示水平
nameTextStyle: {
- fontSize: 12,
+ fontSize: 10,
color: '#65C6E7',
left: 100,
},
@@ -56,7 +57,7 @@ export function getClassCharts(dx: any, dy: any, m: any) {
type: 'solid',
},
},
- interval: 25, // 步长
+ // interval: 25, // 步长
max: m,
min: 0, // 起始 - 设置y轴刻度的最小值
axisLabel: {
@@ -837,6 +838,7 @@ export const oneRNewColumns = [
title: '性别',
dataIndex: 'sex',
key: 'sex',
+ width: 80,
customRender: ({ text }) => {
if (text == '1') {
return '女';
@@ -849,11 +851,13 @@ export const oneRNewColumns = [
title: '年龄',
dataIndex: 'age',
key: 'age',
+ width: 80,
},
{
title: '应急方式',
dataIndex: 'emergencyType',
key: 'emergencyType',
+ width: 90,
customRender: ({ text }) => {
switch (text) {
case '0':
@@ -869,9 +873,100 @@ export const oneRNewColumns = [
}
},
},
+ {
+ title: '应急时间',
+ dataIndex: 'time',
+ key: 'time',
+ },
+ {
+ title: '详细地址',
+ dataIndex: 'd',
+ key: 'd',
+ width: 90,
+ ellipsis: true,
+ },
{
title: '操作',
dataIndex: 'cz',
key: 'cz',
+ width: 80,
+ },
+];
+
+export const monitorColumns = [
+ {
+ title: '姓名',
+ dataIndex: 'realName',
+ key: 'realName',
+ },
+ {
+ title: '单位名称',
+ dataIndex: 'orgName1',
+ key: 'orgName1',
+ },
+ {
+ title: '部门名称',
+ dataIndex: 'orgName2',
+ key: 'orgName2',
+ },
+ {
+ title: '手机号码',
+ dataIndex: 'phone',
+ key: 'phone',
+ width: 100,
+ },
+ {
+ title: '事件类型',
+ dataIndex: 'eventType_dictText',
+ key: 'eventType_dictText',
+ width: 100,
+ },
+ {
+ title: '异常值',
+ dataIndex: 'dataValue',
+ key: 'dataValue',
+ width: 80,
+ },
+ {
+ title: '详细地址',
+ dataIndex: 'address',
+ key: 'address',
+ customRender: ({ record }) => {
+ return !record?.address ? h('div', { style: { color: 'red' } }, record?.gpsErrorMsg) : record?.address;
+ },
+ ellipsis: true,
+ },
+ {
+ title: '预警时间',
+ dataIndex: 'warnTime',
+ key: 'warnTime',
+ },
+];
+export const contactListColumns = [
+ {
+ title: '联系人姓名',
+ dataIndex: 'name',
+ key: 'name',
+ },
+ {
+ title: '关系',
+ dataIndex: 'familyRelation_dictText',
+ key: 'familyRelation_dictText',
+ },
+ {
+ title: '联系人电话',
+ dataIndex: 'phone',
+ key: 'phone',
+ },
+ {
+ title: '身份证号',
+ dataIndex: 'idCard',
+ key: 'idCard',
+ customRender: ({ text }) => {
+ if (text) {
+ return text.substring(0, 6) + '********' + text.substring(14);
+ }
+ return '-';
+ },
},
];
diff --git a/src/views/indexSun/oneRightNew.vue b/src/views/indexSun/oneRightNew.vue
index 9cf0164..6c1f176 100644
--- a/src/views/indexSun/oneRightNew.vue
+++ b/src/views/indexSun/oneRightNew.vue
@@ -1,7 +1,7 @@
-
救助信息
+
求助信息
今日应急
@@ -10,9 +10,9 @@
{{ userData.realName }}
-
健康档案
+
+ 健康档案
+
@@ -39,14 +39,14 @@
当前位置:
- {{ !userData?.lon || !userData?.lat ? '未获取到位置信息' : locationInfo }}
+ {{ !userData?.address ? (!userData?.lon || !userData?.lat ? '未获取到位置信息' : locationInfo) : userData?.address }}
@@ -77,26 +77,62 @@
-