From 984ec5fbb7c489a9271daaf1c97b3df8e606e29b Mon Sep 17 00:00:00 2001 From: Jack <1638169491@qq.com> Date: Sat, 30 Jul 2022 11:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F(=E9=A6=96=E9=A1=B5=E6=A6=82?= =?UTF-8?q?=E8=A7=88)=EF=BC=9A=E8=A7=A3=E8=80=A6=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataBoard/homePage/projectInfo.vue | 148 ++++++++++++++++- src/views/projectAdmin/dataBoard/index.vue | 151 +----------------- 2 files changed, 149 insertions(+), 150 deletions(-) diff --git a/src/views/projectAdmin/dataBoard/homePage/projectInfo.vue b/src/views/projectAdmin/dataBoard/homePage/projectInfo.vue index ee6a1299..91b59b58 100644 --- a/src/views/projectAdmin/dataBoard/homePage/projectInfo.vue +++ b/src/views/projectAdmin/dataBoard/homePage/projectInfo.vue @@ -1,11 +1,151 @@ > \ No newline at end of file +.projectInfo { + position: relative; + margin-bottom: 25px; + height: calc(100% - 2px); + width: 100%; + .title { + position: relative; + top: -10px; + font-size: 17px; + font-weight: bold; + text-align: center; + color: #6ce9f0; + } + .content { + position: relative; + padding: 10px 20px; + height: calc(100% - 20px - 24px); + z-index: 2; + .listItem { + .value { + color: #fff; + } + } + } +} + \ No newline at end of file diff --git a/src/views/projectAdmin/dataBoard/index.vue b/src/views/projectAdmin/dataBoard/index.vue index 9eb5ba5d..14ccfc51 100644 --- a/src/views/projectAdmin/dataBoard/index.vue +++ b/src/views/projectAdmin/dataBoard/index.vue @@ -3,143 +3,7 @@
-
- {{ $t('message.companyDiagram.projectInfo') }} -
-
- - -
- - {{ $t('message.companyDiagram.entryName1') }}: - {{ projectData.projectName }} -
-
- - {{ $t('message.companyDiagram.projectAddress') }}: - {{ projectData.provinceName }}{{ projectData.cityName - }}{{ projectData.areaName - }}{{ projectData.projectAddress }} -
-
- - {{ $t('message.companyDiagram.projectManager') }}: - {{ projectData.projectManage }} -
-
- - {{ $t('message.companyDiagram.telPhone') }}: - {{ projectData.projectTel }} -
-
- - {{ $t('message.companyDiagram.buildArea') }}: - {{ projectData.projectAcreage }} m² -
-
- - {{ $t('message.companyDiagram.buildStartTime') }}: - {{ projectData.startWorkDate }} -
-
- - {{ $t('message.companyDiagram.projectNo') }}: - {{ projectData.projectNumber }} -
-
- - {{ $t('message.companyDiagram.projectType') }}: - {{ item.name }} -
-
- - {{ $t('message.companyDiagram.projectUse') }}: - {{ item.name }} -
-
- - {{ $t('message.companyDiagram.structureType') }}: - {{ item.name }} -
-
- - {{ $t('message.companyDiagram.projectStatus') }}: - {{ item.name }} -
-
- -
+
@@ -798,9 +662,10 @@ import { eidtProjectShowConfig, queryBySnData } from '@/assets/js/api/projectSummary.js' +import ProjectInfo from './homePage/projectInfo' export default { - components: { devNumChart, airQulityChart }, + components: { devNumChart, airQulityChart, ProjectInfo }, data() { return { COMPANY: '', @@ -1258,18 +1123,12 @@ export default { } console.log('当前的参数', data) getProjectDetail(data).then((res) => { - // console.log(res); if (res.code == 200) { - console.log('打印一下', res) this.projectData = res.result - console.log(this.projectData) - // console.log('this.projectData.constructionStage-4*230',this.projectData.constructionStage-4*230) + console.log('projectData', this.projectData) if (parseInt(this.projectData.constructionStage) > 4) { this.$refs['stageScroll'].scrollTo( - { - x: (this.projectData.constructionStage - 4) * 230 - // x:'50%' - }, + { x: (this.projectData.constructionStage - 4) * 230 }, 500 ) }