From 726bd19ad36b3edc40ebab3ae93fa6efa4fc7436 Mon Sep 17 00:00:00 2001
From: wx <645899409@qq.com>
Date: Tue, 8 Jul 2025 17:32:13 +0800
Subject: [PATCH] =?UTF-8?q?update=201.=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=88=E8=B7=AF=E7=BA=BF=E7=AD=89=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=EF=BC=89=202.=E6=B7=BB=E5=8A=A0=E5=AE=9A=E6=97=B6?=
=?UTF-8?q?=E5=99=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 10 +--
src/utils/utils.ts | 4 +-
src/views/indexSon.vue | 8 +--
src/views/indexSun.vue | 84 ++++++++++++++++------
src/views/indexSun/centerMap.vue | 71 ++++++++++++++-----
src/views/indexSun/oneL.vue | 7 +-
src/views/indexSun/oneR.vue | 116 ++++++++++++++++++++++++++++---
src/views/indexSun/threeNewL.vue | 29 ++++++--
src/views/indexSun/threeR.vue | 37 +++++++---
src/views/indexSun/twoL.vue | 20 ++++--
src/views/indexSun/twoR.vue | 14 +++-
11 files changed, 321 insertions(+), 79 deletions(-)
diff --git a/.env.production b/.env.production
index e5e7702..f4e5998 100644
--- a/.env.production
+++ b/.env.production
@@ -1,12 +1,12 @@
#后台地址
-VITE_GLOB_API_URL=https://api.cqygjk.com
+VITE_GLOB_API_URL=https://xjgateway.mcrm.vip:8888
#健康监测工具报警-websocket
-VITE_GLOB_API_YIN_JI=wss://api.cqygjk.com/health-watch/websocket/watchMonitor
+VITE_GLOB_API_YIN_JI=wss://xjgateway.mcrm.vip:8888/health-watch/websocket/watchMonitor
#应急求助-websocket
-VITE_GLOB_API_JIAN_CE=wss://api.cqygjk.com/health-emergency/websocket/emergency
+VITE_GLOB_API_JIAN_CE=wss://xjgateway.mcrm.vip:8888/health-emergency/websocket/emergency
#西安云坐席
-VITE_GLOB_API_XIAN_YUN=wss://api.cqygjk.com/health-emergency/websocket/emergency3
+VITE_GLOB_API_XIAN_YUN=wss://xjgateway.mcrm.vip:8888/health-emergency/websocket/emergency3
#银川云坐席
-VITE_GLOB_API_YIN_CHUAN=wss://api.cqygjk.com/health-emergency/websocket/emergency4
\ No newline at end of file
+VITE_GLOB_API_YIN_CHUAN=wss://xjgateway.mcrm.vip:8888/health-emergency/websocket/emergency4
\ No newline at end of file
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 35fe8ee..362504d 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -13,7 +13,7 @@ export function getZero(num: any) {
export function useTopTime(startDay = '2018-10-01') {
startDay = startDay || '2018-10-01';
const timeLeft = dayjs().format('YYYY年MM月DD日 HH:mm:ss');
- const timeRight = dayjs().diff(dayjs(startDay), 'day') + '天';
+ const timeRight = parseInt(dayjs().diff(dayjs(startDay), 'day') + 1) + '天';
// +
// getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD') + ' 00:00:00'), 'hours')) +
// '时' +
@@ -90,3 +90,5 @@ export function openTestModal() {
export function handleSocketUrl(url: string, centerId: string) {
return url.substring(0, url.indexOf('/websocket/') + 11) + centerId;
}
+
+export const startTime = '2025-07-01';
diff --git a/src/views/indexSon.vue b/src/views/indexSon.vue
index e9f13da..deb67f3 100644
--- a/src/views/indexSon.vue
+++ b/src/views/indexSon.vue
@@ -25,8 +25,8 @@
class="type-select bg-000"
:options="option"
:field-names="fieldNames"
- >
-
+ />
+
@@ -49,7 +49,7 @@
import screenLeft from '/@/components/secondaryScreen/screen-left/screenLeft.vue';
import router from '/@/router';
import { useDepart, useTimeType } from '/@/components/secondaryScreen/secondMap/secondMapHooks.ts';
- import { useTopTime } from '/@/utils/utils.ts';
+ import { startTime, useTopTime } from '/@/utils/utils.ts';
import { useUserStore } from '/@/store/modules/user.ts';
import { useRefresh } from '/@/hooks/autoRefresh';
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
@@ -100,7 +100,7 @@
const dayTimeT = ref();
function getTime() {
- const { timeRight } = useTopTime('2025-07-05');
+ const { timeRight } = useTopTime(startTime);
dayTimeT.value = timeRight;
}
diff --git a/src/views/indexSun.vue b/src/views/indexSun.vue
index 9515020..d00cbda 100644
--- a/src/views/indexSun.vue
+++ b/src/views/indexSun.vue
@@ -2,41 +2,58 @@
-
2025年06月14日 12:21:21
+
{{ dateInfo?.day }} {{ dateInfo?.times }}
应急就医服务中心
-
累计运行时间:3642天
+
{{ rightDate }}
-
+ {
+ showRestB = false;
+ }
+ "
+ />
-
+ {
+ showRestB = true;
+ }
+ "
+ :bKey="`one-r-${count}`"
+ />
-
+
-
+
-
@@ -73,22 +90,13 @@
import { getAuthCache } from '/@/utils/auth.ts';
import { basicPath, useSocket, emergencyPath } from '/@/utils/socket.ts';
import { Map } from '/@/assets/mapUtils/map.ts';
- import YunZuoXiDialog from '/@/views/components/yunZuoXiDialog.vue';
import EmployeeDialog from '/@/views/components/employeeDialog.vue';
import EmergencyDialog from '/@/views/components/emergencyDialog.vue';
- import { handleSocketUrl } from '/@/utils/utils.ts';
+ import { handleSocketUrl, startTime } from '/@/utils/utils.ts';
import { useUserStore } from '/@/store/modules/user.ts';
const { getCenterInfo } = useUserStore();
- import {
- oneLApi,
- statisticsNewApi,
- threeRModalApi,
- twoLModalApi,
- twoRModal1Api,
- twoRModal2Api,
- twoRModal3Api,
- } from '/@/views/indexSun/indexSun.api.ts';
+ import { oneLApi, threeRModalApi, twoLModalApi, twoRModal1Api, twoRModal2Api, twoRModal3Api } from '/@/views/indexSun/indexSun.api.ts';
import dayjs from 'dayjs';
//0:处置 1:处理 2:呼入 3:全部
const phoneType = ref('');
@@ -104,11 +112,43 @@
const modalApi = ref();
const needDept = ref(false);
const twoROnly = ref();
+ const showRestB = ref(false);
+ const dateInfo = ref