From a5d0f2588bc48a5259a60d7fa9ebb989d7506c8d Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Mon, 20 Jul 2026 14:23:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(map):=20=E6=96=B0=E5=A2=9E=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E7=82=B9=E7=82=B9=E5=87=BB=E5=BC=B9=E7=AA=97=E5=8F=8A?= =?UTF-8?q?=E6=B0=94=E8=B1=A1=E7=9B=91=E6=B5=8B=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jjb.config.js | 5 ++-- src/main.js | 5 ++++ .../Bottom/VideoPatrolPanel/index.js | 2 +- .../Content/branchOffice/Camera/index.js | 2 +- .../Content/branchOffice/Camera/index.less | 20 ------------- .../modal/MeteorologicalMonitoring/index.js | 15 ++++++++++ .../Map/components/Content/modal/index.js | 26 +++++++++++++++++ .../Map/components/RightUtils/index.js | 3 ++ src/pages/Container/Map/index.js | 29 +++++++++++++++---- src/pages/Container/Map/index.less | 23 +++++++++++++++ src/pages/Container/Map/js/context.js | 19 ++++++++++++ src/pages/Container/Map/js/mapMethods.js | 2 +- src/pages/Container/Map/js/mittKey.js | 2 ++ src/pages/Container/Map/js/pointClickEvent.js | 7 +++++ 14 files changed, 128 insertions(+), 32 deletions(-) create mode 100644 src/pages/Container/Map/components/Content/modal/MeteorologicalMonitoring/index.js create mode 100644 src/pages/Container/Map/components/Content/modal/index.js diff --git a/jjb.config.js b/jjb.config.js index 83db5b2..c201a92 100644 --- a/jjb.config.js +++ b/jjb.config.js @@ -24,8 +24,7 @@ module.exports = { contextInject: { // 应用Key appKey: "", - fileUrl: "https://jpfz.qhdsafety.com/gbsFileTest/", - // fileUrl: "http://192.168.20.240:9787/mnt/", + fileUrl: "", }, // public/index.html注入全局变量 windowInject: { @@ -45,7 +44,7 @@ module.exports = { // 开发服务 server: { // 监听端口号 - port: "8080", + port: "8956", // 服务地址 host: "127.0.0.1", // 是否自动打开浏览器 diff --git a/src/main.js b/src/main.js index c85926e..382b306 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib"; import { setup } from "@cqsjjb/jjb-dva-runtime"; import { message } from "antd"; import dayjs from "dayjs"; +import { getFileUrlFromServer } from "zy-react-library/utils"; import "dayjs/locale/zh-cn"; import "../blessed_by_buddha"; @@ -12,6 +13,10 @@ dayjs.locale("zh-cn"); setJJBCommonAntdMessage(message); const app = setup(); +getFileUrlFromServer(); +window.mapLongitude = "119.69457721306945"; +window.mapLatitude = "39.940504336846665"; +window.mapBaiDuKey = "OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr"; // 非底座环境运行 if (!window.__POWERED_BY_QIANKUN__) { diff --git a/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js index c28e3c5..3a30b1d 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js @@ -17,7 +17,7 @@ function VideoPatrolPanel(props) { const { data, success } = await props.getFixedCameraPlayUrl({ indexCode: cameraNumber, }); - if (success) + if (success && data) setPlayUrl(data.url); }; const selectCorp = (item) => { diff --git a/src/pages/Container/Map/components/Content/branchOffice/Camera/index.js b/src/pages/Container/Map/components/Content/branchOffice/Camera/index.js index 9ae49c3..b8efd8c 100644 --- a/src/pages/Container/Map/components/Content/branchOffice/Camera/index.js +++ b/src/pages/Container/Map/components/Content/branchOffice/Camera/index.js @@ -54,7 +54,7 @@ function Camera() { width={1500} onCancel={setFalse} title="视频巡屏" - wrapClassName="map_content_branch_office_camera_modal" + wrapClassName="map_content_branch_office_camera_modal map_bi_model" >