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 0000000..892c623 Binary files /dev/null and b/src/assets/indexSun/nomal.png differ 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 @@ - +