From 70bebe9dae89ebddd7e77543aac618e78d730fc9 Mon Sep 17 00:00:00 2001 From: gjj <Ganjj@probim.com.cn> Date: Wed, 26 Feb 2025 16:39:32 +0800 Subject: [PATCH] 样式调整 --- src/views/ProjectView.vue | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/ProjectView.vue b/src/views/ProjectView.vue index f896813..586d7b3 100644 --- a/src/views/ProjectView.vue +++ b/src/views/ProjectView.vue @@ -14,7 +14,7 @@ <!-- 下部分 - 内容区域 --> <div - class="content flex-1 px-[16px] py-[14px] overflow-y-auto" + class="content flex-1 px-[16px] py-[14px] overflow-y-hidden" :style="{ backgroundImage: `url(${backgroundImage})`, backgroundRepeat: 'no-repeat', @@ -77,7 +77,7 @@ backgroundSize: '100% 100%' }" > - <div class="text-white text-[14px] ml-[40px] leading-[35px]">项目名称:{{projectInfo.OrganizeName}}</div> + <div class="text-white text-[14px] ml-[40px] leading-[35px]">项目名称:{{projectInfo.ProjectName}}</div> </div> <div class="text-white text-[14px] tracking-[1px] leading-[24px]"> @@ -88,10 +88,10 @@ :src="projectInfo.Thumbnail? projectInfo.Thumbnail : '../assets/images/backgrounds/cover_bg.png'" alt="" class="w-full mt-[20px]" - style="height: calc(100% - 120px);" + style="height: calc(100% - 150px);" > </div> - <div class="w-[100%] h-[15%]"> + <div class="w-[100%] h-[18%]"> <!-- 参建单位 --> <div class="w-full h-[30px] mt-[20px] mb-[10px]" @@ -172,7 +172,7 @@ <!-- 表格 --> <div - class="w-full min-h-[20vh] px-[8px] py-[10px]" + class="chartTable w-full h-[300px] px-[8px] py-[10px] overflow-y-auto" :style="{ backgroundImage: `url(${tableImage})`, backgroundRepeat: 'no-repeat', @@ -221,7 +221,7 @@ bgImage: new URL('@/assets/images/titles/title_second.png', import.meta.url).href, tableImage: new URL('@/assets/images/backgrounds/table_bg.png', import.meta.url).href, projectInfo: { - OrganizeName: '', + ProjectName: '', Description: '', Thumbnail: '', endDate: '' @@ -253,7 +253,8 @@ console.log(result); if(result.SafeProductionEndDate && result.SafeProductionEndDate !== 'null') { this.projectInfo.endDate = result.SafeProductionEndDate.substring(0, 10) - this.projectInfo.OrganizeName = result.OrganizeName + this.$store.commit('common/setProjectEndDate', this.projectInfo.endDate) + this.projectInfo.ProjectName = result.ProjectName this.projectInfo.Description = result.Description this.projectInfo.Thumbnail = result.Thumbnail } @@ -380,6 +381,9 @@ } .chart-container{ width: 100%; - height: calc(40% - 180px); + height: calc(40% - 170px); + .chartTable{ + height: calc(100% - 10px); + } } </style> -- Gitblit v1.9.3