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" >
diff --git a/src/pages/Container/Map/components/Content/branchOffice/Camera/index.less b/src/pages/Container/Map/components/Content/branchOffice/Camera/index.less index 118ef94..7586479 100644 --- a/src/pages/Container/Map/components/Content/branchOffice/Camera/index.less +++ b/src/pages/Container/Map/components/Content/branchOffice/Camera/index.less @@ -1,24 +1,4 @@ .map_content_branch_office_camera_modal { - .@{ant-prefix}-modal { - .@{ant-prefix}-modal-header { - background-color: #06103b; - padding: 16px 20px; - - .@{ant-prefix}-modal-title { - color: #fff; - } - } - - .@{ant-prefix}-modal-content { - padding: 0; - background-color: #020828; - } - - .@{ant-prefix}-modal-close { - color: #fff; - } - } - .container { padding: 27px 14px; diff --git a/src/pages/Container/Map/components/Content/modal/MeteorologicalMonitoring/index.js b/src/pages/Container/Map/components/Content/modal/MeteorologicalMonitoring/index.js new file mode 100644 index 0000000..8734f4b --- /dev/null +++ b/src/pages/Container/Map/components/Content/modal/MeteorologicalMonitoring/index.js @@ -0,0 +1,15 @@ +const MeteorologicalMonitoring = () => { + return ( +
+