2024-10-29 09:45:49 +08:00
|
|
|
<!--
|
|
|
|
|
* @Author: SunTao 328867980@qq.com
|
|
|
|
|
* @Date: 2024-10-08 09:26:24
|
|
|
|
|
* @LastEditors: SunTao 328867980@qq.com
|
2024-10-29 14:46:32 +08:00
|
|
|
* @LastEditTime: 2024-10-29 13:07:17
|
2024-10-29 09:45:49 +08:00
|
|
|
* @FilePath: \znxjxt-ui\src\views\index.vue
|
|
|
|
|
* @Description: 系统首页
|
|
|
|
|
-->
|
2024-09-05 15:44:36 +08:00
|
|
|
<template>
|
2024-09-25 09:45:16 +08:00
|
|
|
<div class="app-container">
|
2024-10-29 14:46:32 +08:00
|
|
|
<fssm-scroll :showBar="false">
|
|
|
|
|
<div class="top-content">
|
|
|
|
|
<div
|
|
|
|
|
class="top-div"
|
|
|
|
|
:class="`top-div-${index}`"
|
|
|
|
|
v-for="(item, index) in topList"
|
|
|
|
|
:key="`top-div-${index}`"
|
|
|
|
|
>
|
|
|
|
|
<div class="name">{{ item.name }}</div>
|
|
|
|
|
<div class="value">
|
|
|
|
|
<span>{{ item.value }}</span
|
|
|
|
|
>{{ item.unit }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="middle-content">
|
|
|
|
|
<div>日常巡查</div>
|
|
|
|
|
<div>病害识别</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom-content">
|
|
|
|
|
<div>公路资产</div>
|
|
|
|
|
<div>路况评定</div>
|
|
|
|
|
</div>
|
|
|
|
|
</fssm-scroll>
|
2024-09-25 09:45:16 +08:00
|
|
|
</div>
|
2024-09-05 15:44:36 +08:00
|
|
|
</template>
|
|
|
|
|
<script>
|
2024-10-29 14:46:32 +08:00
|
|
|
import FssmScroll from "@/components/scroll/fssm-scroll.vue";
|
2024-09-05 15:44:36 +08:00
|
|
|
export default {
|
|
|
|
|
name: "Index",
|
2024-10-29 14:46:32 +08:00
|
|
|
components: {
|
|
|
|
|
FssmScroll,
|
|
|
|
|
},
|
2024-09-05 15:44:36 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
2024-10-29 14:46:32 +08:00
|
|
|
// 顶栏循环数据
|
|
|
|
|
topList: [],
|
2024-09-05 15:44:36 +08:00
|
|
|
};
|
|
|
|
|
},
|
2024-10-29 14:46:32 +08:00
|
|
|
created() {
|
|
|
|
|
this.getTopData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/* 获取顶栏数据 */
|
|
|
|
|
getTopData() {
|
|
|
|
|
this.topList = [
|
|
|
|
|
{ name: "巡查总里程", value: 54, unit: "个" },
|
|
|
|
|
{ name: "现存病害总数", value: 54, unit: "个" },
|
|
|
|
|
{ name: "公路资产总数", value: 54, unit: "个" },
|
|
|
|
|
{ name: "交安事件总数", value: 54, unit: "个" },
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-09-05 15:44:36 +08:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2024-10-29 14:46:32 +08:00
|
|
|
.app-container {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
height: calc(100vh - 5.4rem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 20%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
border: 1px salmon solid;
|
|
|
|
|
|
|
|
|
|
.top-div {
|
|
|
|
|
width: 22%;
|
|
|
|
|
height: 80%;
|
|
|
|
|
padding: 1.5rem;
|
|
|
|
|
background-color: aqua;
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
font-family: "DouYu";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.value {
|
|
|
|
|
line-height: 4rem;
|
|
|
|
|
|
|
|
|
|
span{
|
|
|
|
|
font-size: 1.8rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 09:45:16 +08:00
|
|
|
}
|
2024-10-29 14:46:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.middle-content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 60%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bottom-content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 60%;
|
|
|
|
|
}
|
2024-09-05 15:44:36 +08:00
|
|
|
</style>
|
|
|
|
|
|