From 9679950f06bd6f1b84328e59ed1a42125f799c71 Mon Sep 17 00:00:00 2001 From: cjp <3096114695@qq.com> Date: Fri, 8 Dec 2023 18:34:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E6=A0=87=E5=87=86=E7=89=88?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .../projectOverview/centerBottom.vue | 84 ++++++++++++------- .../projectOverview/centerTop.vue | 4 +- .../projectOverview/leftTop.vue | 8 +- src/views/sevenLargeScreen/indexL.vue | 4 +- 5 files changed, 64 insertions(+), 40 deletions(-) diff --git a/.env.development b/.env.development index 5c929fa..dc2d4b5 100644 --- a/.env.development +++ b/.env.development @@ -2,12 +2,14 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) +VITE_API_URL = 'http://192.168.34.221:30002' +# VITE_API_URL = 'http://192.168.34.221:28888' # VITE_API_URL = 'http://121.196.214.246/api' # VITE_API_URL = 'http://jxj.zhgdyun.com:100' # VITE_API_URL = 'http://192.168.34.221:12360' # 沈阳合盈线上 # VITE_API_URL = "http://101.43.164.214:45022" -VITE_API_URL = 'http://192.168.34.221:30002' +# 演示平台 # VITE_API_URL = 'http://jxj.zhgdyun.com:9809' # 百色七参数线上地址 # VITE_API_URL = 'http://101.43.164.214:11113' diff --git a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue index 20479ed..faab353 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerBottom.vue @@ -32,7 +32,7 @@
里程碑
- +
{{ item.name }}
@@ -55,6 +55,10 @@
+
+ +
暂无数据
+
@@ -66,34 +70,34 @@ import { ref, watch, onMounted } from "vue"; import { getStageOption } from "@/api/modules/projectOverview"; const progressList = ref([ - { - name: "施工证获取", - status: 0 - }, - { - name: "土方开挖", - status: 0 - }, - { - name: "桩基", - status: 0 - }, - { - name: "支护开始", - status: 0 - }, - { - name: "垫层完成", - status: 0 - }, - { - name: "正负零", - status: 0 - }, - { - name: "工程达到预售条件", - status: 0 - } + // { + // name: "施工证获取", + // status: 0 + // }, + // { + // name: "土方开挖", + // status: 0 + // }, + // { + // name: "桩基", + // status: 0 + // }, + // { + // name: "支护开始", + // status: 0 + // }, + // { + // name: "垫层完成", + // status: 0 + // }, + // { + // name: "正负零", + // status: 0 + // }, + // { + // name: "工程达到预售条件", + // status: 0 + // } ] as any); // ts type Props = { @@ -114,7 +118,9 @@ watch( // props.xData = newVal; projectData.value = newVal; console.log("当前阶段", projectData.value.constructionStage); - progressList.value[projectData.value.constructionStage - 1].status = 1; + if (progressList.value.length > 0) { + progressList.value[projectData.value.constructionStage - 1].status = 1; + } } } ); @@ -122,7 +128,7 @@ watch( //获取里程碑option const getProgressOption = async () => { const res: any = await getStageOption({ dictionaryEncoding: "project_construction_stage" }); - if (res.success) { + if (res.result.length > 0) { let newArray = res.result.map((item: any) => { return { name: item.name, @@ -130,7 +136,7 @@ const getProgressOption = async () => { }; }); progressList.value = newArray; - console.log(projectData.value, "里程碑option", newArray); + console.log(projectData.value, "里程碑option", res); if (projectData.value.constructionStage) { progressList.value[projectData.value.constructionStage - 1].status = 1; } @@ -250,4 +256,18 @@ onMounted(() => { height: 80%; margin-top: 1.8%; } +.notoDta { + bottom: 10%; + width: 20%; + left: 35%; + text-align: center; + position: absolute; + img { + width: 40%; + } + div { + color: #fff; + font-size: 14px; + } +} diff --git a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue index 60c6e57..327e82a 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue @@ -215,7 +215,9 @@ function getQueryBySnData() { showType: 3 }).then((res: any) => { console.log(res, "效果图"); - picUrl.value = res.result.configValue; + if (res.result) { + picUrl.value = res.result.configValue; + } }); } // //保存或删除宣传视频 diff --git a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/leftTop.vue b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/leftTop.vue index de102e5..4c7cb07 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/leftTop.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/leftTop.vue @@ -1,7 +1,7 @@ diff --git a/src/views/sevenLargeScreen/indexL.vue b/src/views/sevenLargeScreen/indexL.vue index fa277b0..5545f9c 100644 --- a/src/views/sevenLargeScreen/indexL.vue +++ b/src/views/sevenLargeScreen/indexL.vue @@ -4,8 +4,8 @@
- -

江坑110kv变电站智慧工地

+

数字化项目监管平台

+
{{ nowTime }}