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 @@
-
张二雷{{ index }}
-
压力异常(82)
-
2025-10-26 22:29:58
+
{{ item.realName }}
+
{{ item.eventType_dictText }}({{ item.dataValue }})
+
{{ item.warnTime }}
![]()
@@ -34,10 +34,21 @@
import { ref, onMounted } from 'vue';
import pointPng from '/@/assets/indexSun/point.png';
import addressPng from '/@/assets/indexSun/address.png';
+ import { oneRApi } from '/@/views/indexSun/indexSun.api.ts';
const loading = ref(true);
- const scrollList = ref
([{}, {}, {}, {}, {}, {}, {}, {}]);
+ const scrollList = ref([]);
const emit = defineEmits(['handleView']);
+ onMounted(() => {
+ getList();
+ });
+ function getList() {
+ oneRApi({}).then((res) => {
+ if (res.code == 200) {
+ scrollList.value = res.result.records;
+ }
+ });
+ }
function handleView() {
emit('handleView');
}
diff --git a/src/views/indexSun/threeNewL.vue b/src/views/indexSun/threeNewL.vue
index f9011d6..36b9d96 100644
--- a/src/views/indexSun/threeNewL.vue
+++ b/src/views/indexSun/threeNewL.vue
@@ -31,9 +31,21 @@