You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
5.6 KiB

<template>
<div class="grid-container">
2 months ago
<!-- 第一行 -->
<div class="grid-item item-1">
<!-- 整体项目情况 -->
<div class="allarea">
<AllArea />
</div>
</div>
<div class="grid-item item-2">
<!-- 消息通知 -->
<div class="itemhead">
<span>消息通知</span>
</div>
<div class="mainarea">
<Message />
</div>
</div>
2 months ago
<!-- 第二行 -->
<div class="grid-item item-1 bgcicon">
<MapArea />
</div>
2 months ago
<div style="display: flex;flex-direction: column;">
2 months ago
<div class="grid-item item-3">
<!-- 功能区 -->
<div class="itemhead">
<span>功能区</span>
</div>
<div class="relaitem">
<div class="itemsall">
<span>{{ functionnumber.functionnumber }}</span>
<span>项目总数</span>
</div>
<FunctionArea />
</div>
</div>
<div class="grid-item item-5">
<!-- 投资区 -->
<div class="itemhead">
<span>投资主体</span>
</div>
<div class="relaitem">
<div class="itemsall">
<span>{{ allnumber.touzinumber }}</span>
<span>项目总数</span>
</div>
<InvestArea />
</div>
</div>
</div>
2 months ago
<!-- 第三行 -->
<div class="grid-item item-3">
<!-- 产业数据分析 -->
<div class="itemhead">
2 months ago
<span>产业数据分析</span>
</div>
<div class="relaitem">
2 months ago
<Cyeshuju />
</div>
</div>
2 months ago
<div class="grid-item item-5">
<!-- 产业导向目录分析 -->
<div class="itemhead">
<span>产业导向目录分析</span>
3 months ago
</div>
2 months ago
<div class="relaitem">
<Cydxml />
</div>
</div>
<div class="grid-item item-5">
<!-- 产业导向细分产业分析 -->
<div class="itemhead">
<span>产业导向细分产业分析</span>
</div>
<div class="relaitem">
<!-- <Cyeshuju /> -->
<Cydxxfgl />
</div>
</div>
</div>
</template>
<script>
import AllArea from '@/views/components/analysis/all.vue'
import FunctionArea from '@/views/components/analysis/function.vue'
import InvestArea from '@/views/components/analysis/invest.vue'
import Message from '@/views/components/analysis/message.vue'
import ProjectList from '@/views/components/analysis/projectList.vue'
import MapArea from '@/views/components/analysis/map.vue'
2 months ago
import Cyeshuju from '@/views/components/analysis/chanyeshuju.vue'
import Cydxml from '@/views/components/analysis/chanyedxml.vue'
import Cydxxfgl from '@/views/components/analysis/chanyexfgl.vue'
import { investall, fungong } from '@/api/ManageApi/index'
export default {
components: {
AllArea,
FunctionArea,
InvestArea,
Message,
ProjectList,
MapArea,
2 months ago
Cyeshuju,
Cydxml,
Cydxxfgl
},
data() {
3 months ago
return {
allnumber: {
2 months ago
touzinumber: 0
3 months ago
},
functionnumber: {
functionnumber: 0
}
};
},
methods: {
3 months ago
async getData() {
const response = await investall();
if (response && response.data) {
const totalCount = response.data.reduce((sum, item) => sum + item.count, 0);
this.allnumber = {
touzinumber: totalCount
};
}
},
async getfuncdata() {
const response2 = await fungong();
2 months ago
if (response2 && response2.data) {
3 months ago
const totalCount2 = response2.data.reduce(
2 months ago
(sum, item) => sum + item.count, 0
3 months ago
);
this.functionnumber = {
functionnumber: totalCount2
}
}
2 months ago
}
},
3 months ago
created() {
this.getData();
this.getfuncdata();
}
};
</script>
<style scoped>
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
/* 三列 */
grid-template-rows: auto auto auto;
/* 三行 */
2 months ago
gap: .5rem;
/* 模块之间的间隔 */
2 months ago
padding: 0 .5rem;
/* 容器内边距 */
}
.grid-item {
background-color: #FFFFFF;
border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
}
.itemhead {
width: 100%;
border-left: 0.25rem solid #2B62F1;
2 months ago
margin: 0.5rem 0;
height: 1.25rem;
display: flex;
align-items: center;
}
3 months ago
.relaitem {
position: relative;
}
3 months ago
.itemsall {
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2 months ago
top: 3.7rem;
left: 7.5rem;
}
3 months ago
.itemsall span:nth-child(1) {
2 months ago
font-family: DINbold;
font-weight: 500;
2 months ago
font-size: 1.25rem;
color: #292C33;
text-align: left;
font-style: normal;
text-transform: none;
}
3 months ago
.itemsall span:nth-child(2) {
2 months ago
font-family: alibold;
font-weight: 400;
2 months ago
font-size: 0.68rem;
color: #9E9E9E;
text-align: left;
font-style: normal;
text-transform: none;
}
3 months ago
.itemhead span {
margin-left: 1rem;
2 months ago
font-family: alibold;
font-weight: 600;
font-size: 1rem;
color: #3D424C;
line-height: 1.69rem;
text-align: left;
font-style: normal;
text-transform: none;
}
3 months ago
.mainarea {
padding: 0rem 0rem 0 1.4rem;
overflow: auto;
}
/* 第一行:第一个模块占两列 */
.item-1 {
grid-column: span 2;
2 months ago
/* background-image: url('~@/assets/images/allbg.png'); */
background-size: 100% 100%;
background-repeat: no-repeat;
}
.allarea {
width: 100%;
2 months ago
height: auto;
padding: .5rem 1rem;
}
/* 最后一行:一个模块占一整行 */
.item-6 {
grid-column: span 3;
/* 占三列 */
}
2 months ago
/* .item-3 {
height: ;
} */
3 months ago
.mapareaone {
3 months ago
position: relative;
}
2 months ago
.bgcicon{
/* background-color: red; */
2 months ago
/* background-image: url(../../assets/images/map@2x.png); */
2 months ago
padding: 0!important;
background-repeat: no-repeat;
background-size: 100% 100%;
}
</style>