This commit is contained in:
Teo
2025-09-12 21:03:35 +08:00
5 changed files with 98 additions and 42 deletions

View File

@ -14,7 +14,7 @@ VITE_APP_BASE_API_GO = 'http://xny.yj-3d.com:7464'
# ws # ws
VITE_APP_BASE_WS_API = 'ws://192.168.110.149:8899/resource/websocket' VITE_APP_BASE_WS_API = 'ws://192.168.110.149:8899/resource/websocket'
# EARTH # EARTH
VITE_APP_BASE_EARTH_API="http://192.168.110.2:8895" VITE_APP_BASE_EARTH_API = "http://192.168.110.2:8895"
# 无人机接口地址 # 无人机接口地址
VITE_APP_BASE_DRONE_API = 'http://58.17.134.85:9512' VITE_APP_BASE_DRONE_API = 'http://58.17.134.85:9512'

View File

@ -17,6 +17,7 @@ VITE_APP_SNAILJOB_ADMIN = '/snail-job'
# GO生产环境 # GO生产环境
VITE_APP_BASE_API_GO = 'http://58.17.134.85:7464' VITE_APP_BASE_API_GO = 'http://58.17.134.85:7464'
VITE_APP_BASE_API = 'http://xny.yj-3d.com:8899' VITE_APP_BASE_API = 'http://xny.yj-3d.com:8899'
VITE_APP_BASE_EARTH_API = 'http://xny.yj-3d.com:8899'
# 是否在打包时开启压缩,支持 gzip 和 brotli # 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip VITE_BUILD_COMPRESS = gzip

View File

@ -155,7 +155,7 @@ const initPieChart = () => {
const getOutputData = async () => { const getOutputData = async () => {
const res = await outpuProgress(); const res = await outpuProgress();
if (res.code == 200) { if (res.code == 200) {
designAreaData.value = res.data.map((item: any) => Number(item.plannedCapacity * item.progressPercentage)); designAreaData.value = res.data.map((item: any) => Number((item.plannedCapacity * item.progressPercentage) / 100));
transferAreaData.value = res.data.map((item: any) => Number(item.plannedCapacity)); transferAreaData.value = res.data.map((item: any) => Number(item.plannedCapacity));
barNames.value = res.data.map((item: any) => item.projectName); barNames.value = res.data.map((item: any) => item.projectName);
initLineChart(); initLineChart();

View File

@ -31,15 +31,15 @@ const isHideOther = ref(false);
* 切换中心页面全屏 * 切换中心页面全屏
*/ */
const handleChangePage = () => { const handleChangePage = () => {
if (isFull.value) { // if (isFull.value) {
isFull.value = false; // isFull.value = false;
setTimeout(() => { // setTimeout(() => {
isHideOther.value = false; // isHideOther.value = false;
}, 500); // }, 500);
} else { // } else {
isFull.value = true; // isFull.value = true;
isHideOther.value = true; // isHideOther.value = true;
} // }
}; };
</script> </script>

View File

@ -22,7 +22,7 @@
<el-tab-pane :label="item.name" v-for="item in tabList" :key="item.id" :name="item.id"></el-tab-pane> <el-tab-pane :label="item.name" v-for="item in tabList" :key="item.id" :name="item.id"></el-tab-pane>
<el-card shadow="never"> <el-card shadow="never">
<template #header> <template #header>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8" style="display: flex; align-items: center">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd()">新增</el-button> <el-button type="primary" plain icon="Plus" @click="handleAdd()">新增</el-button>
</el-col> </el-col>
@ -43,7 +43,7 @@
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">展开/折叠</el-button> <el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">展开/折叠</el-button>
</el-col> </el-col>
<el-col :span="6" :push="6"> <el-col :span="8" :push="8">
<div class="summary-container"> <div class="summary-container">
<div class="summary-card owner-summary"> <div class="summary-card owner-summary">
<div class="summary-icon"> <div class="summary-icon">
@ -53,7 +53,8 @@
</div> </div>
<div class="summary-content"> <div class="summary-content">
<div class="summary-label">产值金额业主</div> <div class="summary-label">产值金额业主</div>
<div class="summary-value">{{ ownerOutputSum }}</div> <div class="summary-value" v-if="ownerOutputSum">{{ ownerOutputSum }}</div>
<div class="summary-value" v-else>0</div>
</div> </div>
</div> </div>
<div class="summary-card construction-summary"> <div class="summary-card construction-summary">
@ -64,7 +65,8 @@
</div> </div>
<div class="summary-content"> <div class="summary-content">
<div class="summary-label">产值金额分包</div> <div class="summary-label">产值金额分包</div>
<div class="summary-value">{{ constructionOutputSum }}</div> <div class="summary-value" v-if="constructionOutputSum">{{ constructionOutputSum }}</div>
<div class="summary-value" v-else>0</div>
</div> </div>
</div> </div>
</div> </div>
@ -553,58 +555,100 @@ onUnmounted(() => {
<style scoped> <style scoped>
.summary-container { .summary-container {
display: flex; display: flex;
gap: 16px; gap: 20px;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
margin-bottom: 8px;
} }
.summary-card { .summary-card {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 16px 20px; padding: 18px 24px;
border-radius: 6px; border-radius: 12px;
border: 1px solid #e4e7ed;
background: #ffffff; background: #ffffff;
min-width: 200px; min-width: 260px;
transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
border: 2px solid transparent;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.summary-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, transparent, rgba(64, 158, 255, 0.3), transparent);
transform: translateX(-100%);
transition: transform 0.6s ease;
} }
.summary-card:hover { .summary-card:hover {
border-color: #c0c4cc; transform: translateY(-4px);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.summary-card:hover::before {
transform: translateX(100%);
} }
.owner-summary { .owner-summary {
background: #f8f9fa; border-color: rgba(64, 158, 255, 0.2);
border-color: #409eff; }
color: #303133;
.owner-summary::before {
background: linear-gradient(90deg, transparent, rgba(64, 158, 255, 0.4), transparent);
} }
.construction-summary { .construction-summary {
background: #f8f9fa; border-color: rgba(103, 194, 58, 0.2);
border-color: #67c23a; }
color: #303133;
.construction-summary::before {
background: linear-gradient(90deg, transparent, rgba(103, 194, 58, 0.4), transparent);
} }
.summary-icon { .summary-icon {
margin-right: 12px; margin-right: 16px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 36px; width: 48px;
height: 36px; height: 48px;
border-radius: 4px; border-radius: 12px;
background: #f0f2f5; background: #f8f9fa;
transition: all 0.3s ease;
position: relative;
}
.summary-icon::after {
content: '';
position: absolute;
inset: 0;
border-radius: 12px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
opacity: 0;
transition: opacity 0.3s ease;
}
.summary-card:hover .summary-icon::after {
opacity: 1;
} }
.owner-summary .summary-icon { .owner-summary .summary-icon {
background: #e6f7ff; background: linear-gradient(135deg, #e6f7ff, #bae7ff);
color: #409eff; color: #409eff;
box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2);
} }
.construction-summary .summary-icon { .construction-summary .summary-icon {
background: #f0f9ff; background: linear-gradient(135deg, #f6ffed, #d9f7be);
color: #67c23a; color: #67c23a;
box-shadow: 0 2px 8px rgba(103, 194, 58, 0.2);
} }
.summary-content { .summary-content {
@ -613,15 +657,26 @@ onUnmounted(() => {
.summary-label { .summary-label {
font-size: 13px; font-size: 13px;
color: #909399; color: #8c8c8c;
margin-bottom: 6px; margin-bottom: 8px;
font-weight: 400; font-weight: 500;
letter-spacing: 0.3px;
text-transform: uppercase;
text-align: center;
} }
.summary-value { .summary-value {
font-size: 16px; font-size: 20px;
font-weight: 600; font-weight: 700;
color: #303133; color: #262626;
font-family:
'SF Pro Display',
-apple-system,
BlinkMacSystemFont,
sans-serif;
letter-spacing: -0.5px;
line-height: 1.2;
text-align: center;
} }
@media (max-width: 768px) { @media (max-width: 768px) {