2026-04-13 17:25:17 +08:00
|
|
|
<!-- SidePanelItem.vue -->
|
|
|
|
|
<template>
|
2026-04-24 17:46:41 +08:00
|
|
|
<SidePanelItem title="水质监测工作开展情况">
|
2026-04-13 17:25:17 +08:00
|
|
|
<div class="facility-grid" >
|
|
|
|
|
<div v-for="facility in facilities" :key="facility.name" class="facility-card">
|
|
|
|
|
<div style="width: 60px;height: 62px;display: flex;align-items: center;justify-content: center;">
|
|
|
|
|
<div class="facility-icon">
|
|
|
|
|
<i style="color: #fff;" :class="facility.icon" type="icon-shengtailiuliang2"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="facility-info">
|
|
|
|
|
<div class="facility-name">{{ facility.name }}</div>
|
|
|
|
|
<div style="font-size: 16px;"> <span class="facility-count">{{ facility.count }}</span><span>个</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</SidePanelItem>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref, onMounted } from 'vue';
|
|
|
|
|
import SidePanelItem from '@/components/SidePanelItem/index.vue';
|
|
|
|
|
|
|
|
|
|
// 定义组件名(便于调试和递归)
|
|
|
|
|
defineOptions({
|
|
|
|
|
name: 'shuizhijiancegongzuoQK'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 设施数据
|
|
|
|
|
const facilities = ref([
|
|
|
|
|
{
|
|
|
|
|
name: '自建水质站',
|
|
|
|
|
count: 56,
|
|
|
|
|
icon: 'icon iconfont icon-qixidi'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '国家水质站',
|
|
|
|
|
count: 1722,
|
|
|
|
|
icon: 'icon iconfont icon-diwenshuijianhuan'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '人工水质监测断面',
|
|
|
|
|
count: 135,
|
|
|
|
|
icon: 'icon iconfont icon-shuiwen-line'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
// 页面加载时执行的逻辑
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.facility-grid {
|
|
|
|
|
width: 406px;
|
|
|
|
|
flex-flow: wrap;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.facility-card {
|
|
|
|
|
width: 200px;
|
|
|
|
|
height: 70px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin: 4px 0px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid #e8e8e8;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.facility-icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
// margin-right: 8px;
|
|
|
|
|
background: #5389b5;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
|
|
.anticon {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.facility-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.facility-name {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #333;
|
|
|
|
|
// margin-bottom: 4px;
|
|
|
|
|
// font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.facility-count {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: #2f6b98;
|
|
|
|
|
// font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
</style>
|