feat(首页): 重构首页布局并添加关于我们模块

- 重构StatisticGroup组件布局,简化列配置
- 添加公司介绍图片和关于我们模块
- 移除未使用的组件和代码
- 更新样式以适应新的布局
This commit is contained in:
砂糖
2026-01-08 16:47:06 +08:00
parent 0bf61a3dd6
commit bd4f72ac50
2 changed files with 158 additions and 45 deletions

View File

@@ -1,8 +1,8 @@
<template>
<el-row :gutter="10" class="panel-group">
<el-col v-loading="loading" :xs="12" :sm="12" :md="8" :lg="4" :xl="4" class="card-panel-col"
<el-col v-loading="loading" :span="12" class="card-panel-col"
v-for="(item, index) in statsData" :key="index">
<div class="card-panel" @click="handleSetLineChartData(item.type)">
<div class="card-panel">
<div class="card-panel-icon-wrapper" :class="item.iconClass">
<svg-icon :icon-class="item.icon" class-name="card-panel-icon" />
</div>

View File

@@ -1,73 +1,84 @@
<template>
<div class="dashboard-editor-container">
<img src="http://kelunpuzhonggong.com/upload/img/20250427091033.jpg" alt="">
<div class="aboutus">
<el-row :gutter="30">
<!-- 左栏 -->
<el-col :span="12" :xs="24">
<div class="aboutus-title">
<h2>关于我们</h2>
<p>ABOUT US</p>
</div>
<div class="aboutus-left">
<p class="aboutus-desc">
嘉祥科伦普重工有限公司是山东省重点工程项目是济宁市工程之一也是科伦普产品结构调整重要的工程项目工程采用了外方技术总负责关键设备整体引进点菜集成国内技术总成自主创新单体设备引进等多种建设方案保证了技术先进和人才的培养确保工程投产后达产达效
</p>
<p class="aboutus-desc">
科伦普冷轧重工有限公司是设计年产量150万吨能向广大用户提供热轧酸洗热轧镀锌冷硬罩式退火冷轧镀锌铝锌合金锌铝合金锌铝镁镀铬等各大类产品产品覆盖东北华北华东华南等地区
</p>
</div>
<statistic-group />
<statistic-group />
</el-col>
<AllApplications />
<!-- 右栏 -->
<el-col :span="12" :xs="24">
<img src="http://kelunpuzhonggong.com/upload/img/20251015103934.jpg" alt="">
<!-- <div class="aboutus-right">
<p class="aboutus-detail">
嘉祥科伦普重工有限公司成立于2017年8月注册资金33100万元主要经营高铁设备配件制造与销售模具制造与销售新材料技术研发高性能有色金属及合金材料销售机械零件零部件加工与销售金属材料制造与销售锌铝镁新材料等目前公司拥有10余项具有自主知识产权的发明专利技术综合技术水平达国内领先2024年公司主导产品国内市场占有率约占85%2024年总资产5.98亿元净资产4.49亿元收入3.95亿元公司现有员工238人研究与试验发展人员57人其中专职研究与试验发展人员52人外聘专家5人
</p>
<p class="aboutus-detail">
2024年公司新建科伦普合金新材料研发项目占地290亩采用国内先进的镀层核心技术和热处理工艺专业生产锌铝镁板材和镀铬板材致力于打造国内工艺链条最完善产品型号最丰富的涂镀新材料生产企业全部投产后可实现新增销售收入80亿元利税4.7亿元带动就业约500人项目主要生产的冷轧板锌铝镁涂层板镀铬涂层板镀锡涂层板等产品涵盖0.08MM-6.0MM区间60多种产品是国内单个企业产品种类最多的项目产品因其防锈耐氧化耐腐蚀高电导高稳定的优秀特性广泛应用于建筑结构件汽车制造轻工家电食品包装医疗器械电子通讯航空航天领域
</p>
</div> -->
</el-col>
</el-row>
</div>
<!-- <div>
<statistic-group />
</div> -->
<!-- <AllApplications />
<el-row :gutter="10">
<el-col :span="18">
<!-- <flow-table /> -->
<el-empty description="办公模块定制开发中"></el-empty>
</el-col>
<el-col :span="6">
<mini-calendar />
</el-col>
</el-row>
</el-row> -->
</div>
</template>
<script>
import StatisticGroup from '@/components/HomeModules/StatisticGroup.vue'
import AllApplications from '@/components/HomeModules/AllApplications.vue'
import MiniCalendar from '@/components/HomeModules/MiniCalendar.vue'
const lineChartData = {
newVisitis: {
expectedData: [100, 120, 161, 134, 105, 160, 165],
actualData: [120, 82, 91, 154, 162, 140, 145]
},
messages: {
expectedData: [200, 192, 120, 144, 160, 130, 140],
actualData: [180, 160, 151, 106, 145, 150, 130]
},
purchases: {
expectedData: [80, 100, 121, 104, 105, 90, 100],
actualData: [120, 90, 100, 138, 142, 130, 130]
},
shoppings: {
expectedData: [130, 140, 141, 142, 145, 150, 160],
actualData: [120, 82, 91, 154, 162, 140, 130]
}
}
// import AllApplications from '@/components/HomeModules/AllApplications.vue'
// import MiniCalendar from '@/components/HomeModules/MiniCalendar.vue'
export default {
name: 'Index',
components: {
// PanelGroup,
StatisticGroup,
AllApplications,
MiniCalendar,
// AllApplications,
// MiniCalendar,
},
data() {
return {
lineChartData: lineChartData.newVisitis
}
},
methods: {
handleSetLineChartData(type) {
this.lineChartData = lineChartData[type]
}
}
}
</script>
<style lang="scss" scoped>
.dashboard-editor-container {
padding: 32px;
background-color: rgb(240, 242, 245);
background-color: #fff;
position: relative;
img {
width: 100%;
height: auto;
}
.chart-wrapper {
background: #fff;
padding: 16px 16px 0;
@@ -75,9 +86,111 @@ export default {
}
}
@media (max-width:1024px) {
.chart-wrapper {
padding: 8px;
// 关于我们区域样式
.aboutus {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
// 标题
.aboutus-title {
margin-bottom: 25px;
h2 {
font-size: 28px;
color: #333;
margin: 0;
}
p {
font-size: 14px;
color: #999;
margin: 5px 0 0 0;
}
}
// 左栏
.aboutus-left {
text-indent: 2em;
line-height: 2em;
font-size: 14px;
.aboutus-desc {
color: #666;
line-height: 1.8;
margin-bottom: 18px;
}
// 特色模块
.aboutus-features {
display: flex;
justify-content: space-between;
margin: 30px 0;
.feature-item {
display: flex;
flex-direction: column;
align-items: center;
.feature-icon {
width: 42px;
height: 42px;
border-radius: 50%;
background-color: #9370db; // 截图紫色图标背景
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
.icon {
color: #fff;
font-size: 22px;
}
}
.feature-text {
font-size: 14px;
color: #333;
}
}
}
// 按钮
.read-more-btn {
border: 1px solid #333;
background: transparent;
padding: 8px 22px;
font-size: 14px;
cursor: pointer;
transition: background 0.3s;
&:hover {
background-color: #f5f5f5;
}
}
}
// 右栏
.aboutus-right {
.aboutus-detail {
font-size: 14px;
color: #666;
line-height: 1.8;
margin-bottom: 18px;
}
}
}
</style>
// 响应式适配
@media (max-width: 1024px) {
.dashboard-editor-container {
.aboutus {
padding: 20px 25px;
.el-row {
.el-col:first-child {
margin-bottom: 30px;
}
}
}
}
}
</style>