| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-13 14:54:26 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-03-13 15:00:55 |
| | | * @FilePath: \forest-fire\src\views\statistics\components\box\dataContent.vue |
| | | * @LastEditTime: 2024-11-01 09:54:15 |
| | | * @FilePath: \bigScreen\src\views\survey\components\box\fireSource.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | // import publicContent from './publicContent.vue' |
| | | |
| | | import { getDetail } from '../../../../api/indParkInfo' |
| | | import publicContent from './publicContent.vue' |
| | | const { VITE_APP_BASE } = import.meta.env |
| | | import { getDetail } from '@/api/indParkInfo' |
| | | |
| | | import { ref, reactive } from 'vue' |
| | | |
| | | let state = reactive({ |
| | | parkInfo: {} |
| | | parkInfo: {} |
| | | }) |
| | | |
| | | |
| | | |
| | | // 初始化 |
| | | onMounted(() => { |
| | | getData() |
| | | getData() |
| | | |
| | | }) |
| | | // 获取详情 |
| | | function getData() { |
| | | getDetail().then(res => { |
| | | state.parkInfo = res.data.data |
| | | // console.log("************************", parkInfo) |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | | function getData () { |
| | | getDetail().then(res => { |
| | | state.parkInfo = res.data.data |
| | | // console.log("************************", parkInfo) |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | | } |
| | | |
| | | |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <!-- <public-content> |
| | | <template #content> --> |
| | | <div class="box-content-box"> |
| | | <public-content> |
| | | <template #content> |
| | | <div class="box-content-box"> |
| | | <div class="box-content"> |
| | | <div> |
| | | <div class="box-content-img"> |
| | | <img :src="state.parkInfo.imageUrls" alt=""> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-img"> |
| | | <img :src="state.parkInfo.imageUrls" alt=""> |
| | | </div> |
| | | <div class="box-content-text-remark"> |
| | | <div class="box-content-text"> |
| | | {{ state.parkInfo.remark }} |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-remark"> |
| | | <div class="box-content-text"> |
| | | {{ state.parkInfo.remark }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="container"> |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-sj"> |
| | | <img :src="VITE_APP_BASE + 'images/雨量站@2x.png'" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.plaArea }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">园区面积 (公顷)</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.plaArea }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">园区面积 (公顷)</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-sj"> |
| | | <img :src="VITE_APP_BASE + 'images/雨量站@2x.png'" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.recNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">救援人员数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.recNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">救援人员数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.riskFirmNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">风险企业数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.riskFirmNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">风险企业数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.proTarNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">保护目标数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.proTarNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">保护目标数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.spaceNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">应急空间数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.spaceNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">应急空间数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.firmNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">企业数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.firmNum }}</span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="box-content-text-content"> |
| | | <span class="box-content-text-content-span">企业数量</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="content-qy-info"> |
| | | <div class="box-content-title"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-title-text"> |
| | | <span class="box-content-title-text-span">企业</span> |
| | | </div> |
| | | <div class="box-content-title"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-title-text"> |
| | | <span class="box-content-title-text-span">企业</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-title"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-title-text"> |
| | | <span class="box-content-title-text-span">分区</span> |
| | | </div> |
| | | <div class="box-content-title"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-title-text"> |
| | | <span class="box-content-title-text-span">分区</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box-content-title"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-title-text"> |
| | | <span class="box-content-title-text-span">图层</span> |
| | | </div> |
| | | <div class="box-content-title"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <div class="box-content-title-text"> |
| | | <span class="box-content-title-text-span">图层</span> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <!-- </template> |
| | | </public-content> --> |
| | | </div> |
| | | </template> |
| | | </public-content> |
| | | </template> |
| | | |
| | | <style lang="scss" scoped> |
| | | .box-content-box { |
| | | color: #fff; |
| | | font-size: 15px; |
| | | color: #fff; |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .box-content { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .box-content-text-remark {} |
| | | |
| | | .content-qy-info { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | text-align: center; |
| | | margin-top: 15px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | text-align: center; |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .box-content-img img { |
| | | margin: 5px; |
| | | /* 宽度可以根据实际情况调整 */ |
| | | height: 120px; |
| | | margin: 5px; |
| | | /* 宽度可以根据实际情况调整 */ |
| | | height: 120px; |
| | | } |
| | | |
| | | .box-content-title img { |
| | | width: 80px; |
| | | height: 80px; |
| | | width: 80px; |
| | | height: 80px; |
| | | } |
| | | |
| | | .box-content-text { |
| | | padding-left: 5px; |
| | | height: 130px; |
| | | overflow: scroll; |
| | | // 隐藏滚动条 |
| | | scrollbar-width: none; |
| | | padding-left: 5px; |
| | | height: 130px; |
| | | overflow: scroll; |
| | | // 隐藏滚动条 |
| | | scrollbar-width: none; |
| | | |
| | | } |
| | | |
| | | .container { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | gap: 5px; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | gap: 5px; |
| | | } |
| | | |
| | | .box-content-sj { |
| | | flex: 1 1 31%; |
| | | /* 每个盒子占据大约31%的宽度,留出一些空间用于间距 */ |
| | | min-width: 100px; |
| | | /* 最小宽度,防止在非常小的屏幕上变得太窄 */ |
| | | box-sizing: border-box; |
| | | padding: 5px; |
| | | // border: 1px solid #ccc; |
| | | display: flex; |
| | | // 设置高度 |
| | | align-items: center; |
| | | flex: 1 1 31%; |
| | | /* 每个盒子占据大约31%的宽度,留出一些空间用于间距 */ |
| | | min-width: 100px; |
| | | /* 最小宽度,防止在非常小的屏幕上变得太窄 */ |
| | | box-sizing: border-box; |
| | | padding: 5px; |
| | | // border: 1px solid #ccc; |
| | | display: flex; |
| | | // 设置高度 |
| | | align-items: center; |
| | | } |
| | | |
| | | .box-content-sj img { |
| | | max-width: 60%; |
| | | height: 60px; |
| | | max-width: 60%; |
| | | height: 60px; |
| | | } |
| | | |
| | | .box-content-ss { |
| | | margin: 0px 0px 0px 10px; |
| | | margin: 0px 0px 0px 10px; |
| | | } |
| | | |
| | | .box-content-text-title, |
| | | .box-content-text-content { |
| | | margin-top: 5px; |
| | | font-size: 12px; |
| | | text-align: center; |
| | | margin-top: 5px; |
| | | font-size: 12px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .box-content-text-title-span, |
| | | .box-content-text-content-span { |
| | | font-weight: bold; |
| | | font-weight: bold; |
| | | } |
| | | </style> |