From 91abcfd78db9eb47eddc1e78ce36137e16a66009 Mon Sep 17 00:00:00 2001 From: xf Date: Wed, 9 Jul 2025 15:10:30 +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/api/request.ts | 16 ++ src/assets/indexSun/nomal.png | Bin 0 -> 2321 bytes src/assets/mapUtils/map.ts | 3 + src/components/body-d-left/left.api.ts | 3 + src/components/item-d/pieCharts.ts | 21 +-- src/components/secondaryScreen/commonApi.ts | 2 + .../secondaryScreen/screen-right/threeR.vue | 16 +- .../components/basicTable/BasicTable.vue | 1 + .../secondaryScreen/secondMap/secondMap.vue | 15 +- src/router/index.ts | 1 - src/utils/settings.ts | 59 ++++++- src/views/components/earlyWarningDialog.vue | 6 +- src/views/index.api.ts | 9 +- src/views/indexSon.vue | 45 ++++-- src/views/indexSun.vue | 37 ++++- src/views/indexSun/centerMap.vue | 26 +-- src/views/indexSun/indexModal.vue | 54 +++++-- src/views/indexSun/indexSun.api.ts | 2 + src/views/indexSun/indexSun.ts | 148 ++++++++++++++++-- src/views/indexSun/threeNewL.vue | 16 +- src/views/indexSun/threeR.vue | 14 +- src/views/indexSun/twoR.vue | 2 +- 22 files changed, 418 insertions(+), 78 deletions(-) create mode 100644 src/assets/indexSun/nomal.png diff --git a/src/api/request.ts b/src/api/request.ts index a074cde..96f1a24 100644 --- a/src/api/request.ts +++ b/src/api/request.ts @@ -64,6 +64,22 @@ export const get = (url, params = {}) => { }); }); }; +export const Dictget = (url, params = {}) => { + return new Promise((resolve, reject) => { + service + .get(url, { params: params }) + .then((res) => { + if (res.status === 200) { + resolve(res.data); + } else { + reject(res.data); + } + }) + .catch((err) => { + reject(err.data); + }); + }); +}; export const post = (url: string, params: any) => new Promise((resolve, reject) => { service diff --git a/src/assets/indexSun/nomal.png b/src/assets/indexSun/nomal.png new file mode 100644 index 0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K*w!yU){TZB2~0omaI@28$=Xw~a&o4Q`TG+~d}Eb6Npnl2pV z48~;~it2-+j-7i4ysu-kq&&zwo`yz~?<^BKKEo)VvJmAVz@OlAOofdV#cUYJ2NDAY zW0cu@Sc``Fov%0+dHT-ATsA7s?`9nlWwQ$AUAP{~d`9wgyPu5%O`VK@ynu0UDcr21 z@ll6zYdVuqVP`=n^YWF{<{gY-m9%7Rj#4sf>r=k;d1!V@Dz rGek1YLbE;)_*r?0Y|mE7OzHm%&gGN<$|&jF00000NkvXXu0mjf-{W%p literal 0 HcmV?d00001 diff --git a/src/assets/mapUtils/map.ts b/src/assets/mapUtils/map.ts index c015698..78fcb51 100644 --- a/src/assets/mapUtils/map.ts +++ b/src/assets/mapUtils/map.ts @@ -152,6 +152,9 @@ export const Map = { if (latitude) { lat = latitude; } + if (lng) { + lon = lng; + } if (!longitude || !latitude || !type) { continue; } diff --git a/src/components/body-d-left/left.api.ts b/src/components/body-d-left/left.api.ts index 5cc1fb3..7707b0c 100644 --- a/src/components/body-d-left/left.api.ts +++ b/src/components/body-d-left/left.api.ts @@ -7,6 +7,8 @@ export enum Api { complaint = '/health-emergency/emergency/tblHelpCenter/sicknessTypeStatistic', orderDetail = '/health-emergency/emergency/order/list', listCustom = '/health-watch/watch/watchMonitorData/listCustom', + + listCustomNew = 'health-watch/watch/watchMonitorData/largeScreen/listCustom', } //获取全部部门 @@ -21,3 +23,4 @@ export const getDetail = (params: any) => get(Api.getDetail, params); export const getOrderDetail = (params: any) => get(Api.orderDetail, params); //副屏预警查看详情 export const getEarlyWarningDetail = (params: any) => get(Api.listCustom, params); +export const getEarlyWarningDetailNew = (params: any) => get(Api.listCustomNew, params); diff --git a/src/components/item-d/pieCharts.ts b/src/components/item-d/pieCharts.ts index f1ff8c2..4c54418 100644 --- a/src/components/item-d/pieCharts.ts +++ b/src/components/item-d/pieCharts.ts @@ -1,8 +1,8 @@ // 步数 -import {visibleChartLabel} from "/@/utils/utils.ts"; +import { visibleChartLabel } from '/@/utils/utils.ts'; export function screenPie(chartData) { - const data = visibleChartLabel(chartData) + const data = visibleChartLabel(chartData); return { color: ['#B750BE', '#6C63F0', '#3AACFF', '#ED589D', '#FB466C'], tooltip: { @@ -24,7 +24,7 @@ export function screenPie(chartData) { color: '#ffffff', fontSize: 16, }, - selectedMode: false + selectedMode: false, }, series: [ { @@ -35,13 +35,14 @@ export function screenPie(chartData) { label: { show: true, position: 'outside', + formatter: '{c}人次', color: '#ffffff', fontSize: 14, }, labelLine: { show: true, length: 6, - length2: 10, + length2: 30, minTurnAngle: 120, }, data: data, @@ -52,7 +53,7 @@ export function screenPie(chartData) { //左侧圆 export function circleRing(chartData, total, color) { - const data = visibleChartLabel(chartData) + const data = visibleChartLabel(chartData); return { color: color, tooltip: { @@ -74,7 +75,7 @@ export function circleRing(chartData, total, color) { color: '#ffffff', fontSize: 16, }, - selectedMode: false + selectedMode: false, }, series: [ { @@ -95,18 +96,18 @@ export function circleRing(chartData, total, color) { label: { show: true, position: 'outside', - formatter: '{d}%', + formatter: '{d}%\n{c}人次', color: '#ffffff', fontSize: 14, }, labelLine: { show: true, - length: 4, - length2: 12, + length: 6, + length2: 30, minTurnAngle: 120, }, data: data, }, ], }; -} \ No newline at end of file +} diff --git a/src/components/secondaryScreen/commonApi.ts b/src/components/secondaryScreen/commonApi.ts index 293512a..14b01cd 100644 --- a/src/components/secondaryScreen/commonApi.ts +++ b/src/components/secondaryScreen/commonApi.ts @@ -7,6 +7,7 @@ export enum Api { sleepApi = '/health-watch/watch/watchData/getSleep', stepApi = '/health-watch/watch/watchData/getSdc', listCustom = 'health-watch/watch/watchMonitorData/listCustom', + listCustomNew = 'health-watch/watch/watchMonitorData/largeScreen/listCustom', } // 单位- @@ -24,3 +25,4 @@ export const getStep = (params: any) => post(Api.stepApi, params); //副屏-预警 export const getCustom = (params: any) => get(Api.listCustom, params); +export const getCustomNew = (params: any) => get(Api.listCustomNew, params); diff --git a/src/components/secondaryScreen/screen-right/threeR.vue b/src/components/secondaryScreen/screen-right/threeR.vue index 7a60c6f..cec5895 100644 --- a/src/components/secondaryScreen/screen-right/threeR.vue +++ b/src/components/secondaryScreen/screen-right/threeR.vue @@ -26,14 +26,14 @@ - +