From 237c8c0277f9b5b17c4fed8cf6d0802977378a8d Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Fri, 11 Oct 2024 15:32:42 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +-- .env.production | 4 +-- src/config/config.ts | 4 +-- .../projectOverview/centerBottom.vue | 6 +++-- .../smartSafeHat/index.vue | 26 ++++++++++++++++--- .../videoManagement/index.vue | 7 ++--- 6 files changed, 37 insertions(+), 14 deletions(-) diff --git a/.env.development b/.env.development index f1df0b3..30add85 100644 --- a/.env.development +++ b/.env.development @@ -4,8 +4,8 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) # 后端本地 # VITE_API_URL = 'http://192.168.34.155:19111' -# VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 -VITE_API_URL = 'http://192.168.34.221:28890' #雄哥本地 +VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 +# VITE_API_URL = 'http://192.168.34.221:28890' #雄哥本地 # VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程 # VITE_API_URL = 'http://192.168.34.221:28889' # VITE_API_URL = 'http://121.196.214.246/api' diff --git a/.env.production b/.env.production index 746bd5d..b7f5386 100644 --- a/.env.production +++ b/.env.production @@ -8,12 +8,12 @@ NODE_ENV = "production" # VITE_API_URL = 'http://jxj.zhgdyun.com:100' # VITE_API_URL = 'http://jxj.zhgdyun.com:33981' # 沈阳合盈线上 -# VITE_API_URL = "http://101.43.164.214:45022" +VITE_API_URL = "http://101.43.164.214:45022" # 嘉兴王江泾公用码头 # VITE_API_URL = "http://183.249.224.118:9003" # 百色 新项目通用地址 -VITE_API_URL = 'http://101.43.164.214:11111' +# VITE_API_URL = 'http://101.43.164.214:11111' # 七参数标准版(演示平台) # VITE_API_URL = 'http://jxj.zhgdyun.com:9809' diff --git a/src/config/config.ts b/src/config/config.ts index b923a6e..57ca869 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -23,9 +23,9 @@ export const BAIDU_MAP_KEY: string = ""; export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL; // 项目环境标识配置 部署时需更改对应的项目 -// export const COMPANY: string = ""; //标准版 +export const COMPANY: string = ""; //标准版 // export const COMPANY: string = "zhzrf"; //中海·臻如府 -export const COMPANY: string = "zsbf"; //中水北方 +// export const COMPANY: string = "zsbf"; //中水北方 // export const COMPANY: string = "as"; //鞍山项目 // export const COMPANY: string = "agjt"; //鞍钢集团 // export const COMPANY: string = "tj"; // 同济项目 diff --git a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue index 72a7ada..1748e2e 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue @@ -32,7 +32,7 @@
里程碑
- +
{{ item.name }}
@@ -162,7 +162,8 @@ onMounted( async () => { .el-scrollbar { background: url("@/assets/images/comprehensiveManage/project4.png") no-repeat; background-size: 100% 40%; - background-position-y: 30%; + // background-position-y: 30%; + background-position-y: 50%; } .leftTop { @@ -233,6 +234,7 @@ onMounted( async () => { img { width: 20px; margin-top: 18%; + // margin-top: 30%; margin-left: 15%; } } diff --git a/src/views/sevenLargeScreen/digitalConstruction/smartSafeHat/index.vue b/src/views/sevenLargeScreen/digitalConstruction/smartSafeHat/index.vue index c181ae7..4307efd 100644 --- a/src/views/sevenLargeScreen/digitalConstruction/smartSafeHat/index.vue +++ b/src/views/sevenLargeScreen/digitalConstruction/smartSafeHat/index.vue @@ -403,6 +403,7 @@ import { deleteSafehatFence, addSafeHatPositionFence } from "@/api/modules/smartSafeHat"; +import { getProjectDetail } from "@/api/modules/projectOverview"; // 围栏相关API import { //智能安全帽--查询围栏信息 @@ -557,7 +558,8 @@ let formRules = ref({ onMounted(async () => { // choiceMonth.value = formatMonthTime(dayValue.value); // console.log("当前月份", choiceMonth.value); - initMap(); + getProjectInfo(); + // 智能安全帽--查询报警信息 getProgressListData(); // 智能安全帽--分类查询设备列表 @@ -1548,13 +1550,25 @@ function startAnimation() { } var placeSearch = ref(); +const projectData = ref(null as any); +//获取项目信息 +const getProjectInfo = async () => { + const res = await getProjectDetail({ projectSn: store.sn }, false); + // console.log("获取项目信息", res); + // console.log("获取工程类别", projectTypeEnum); + projectData.value = res.result; + initMap(); +}; // 围栏定位地图 function initMap() { var that = this; - //地图加载 + console.log("初始化地图", projectData.value); + //地图加载 longitude latitude map = new AMap.Map("mapContainer", { // viewMode: '3D', - resizeEnable: true + resizeEnable: true, + zoom: 18, + center: [Number(projectData.value.longitude), Number(projectData.value.latitude)], // center: [116.39, 39.9], // offset: new AMap.Pixel(-10, -10) // 设置地图偏移量 }); @@ -1592,6 +1606,12 @@ function initMap() { }); }); }); + console.log("绘制完成", addForm.value); + var lnglatXY = new AMap.LngLat(e.lnglat.getLng(), e.lnglat.getLat()); + geocoder.getAddress(lnglatXY, function (status, result) { + console.log(status, result); + addForm.value.addr = result.regeocode.formattedAddress; + }); geocoder.getLocation(addForm.value.addr, function (status, result) { if (status === "complete" && result.geocodes.length) { var lnglat = result.geocodes[0].location; diff --git a/src/views/sevenLargeScreen/videoManagement/index.vue b/src/views/sevenLargeScreen/videoManagement/index.vue index 9003348..5f2c130 100644 --- a/src/views/sevenLargeScreen/videoManagement/index.vue +++ b/src/views/sevenLargeScreen/videoManagement/index.vue @@ -221,7 +221,7 @@ const getVideoList = async () => { } else { console.log("222"); - if (!res.result.videoList[0].list[0]?.outip) { + if (res.result.videoList[0]) { if (res.result.videoList[0].appId) { objData.value.appkey = res.result.videoList[0].appId; objData.value.ip = res.result.videoList[0].account; @@ -657,7 +657,7 @@ const previewVideo = (data: string | null) => { } ::v-deep .h-card .content { background: none; - position: relative; + // position: relative; } ::v-deep .h-card .title .titltText { margin-bottom: 0%; @@ -672,7 +672,8 @@ const previewVideo = (data: string | null) => { font-size: 14px; text-align: center; line-height: 30px; - right: -15%; + right: -12%; + // right: -15%; top: 1%; .safe-helmet { padding: 0 6%;