| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-13 14:54:26 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @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 { Text } from 'vue'; |
| | | 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: {} |
| | | }) |
| | | |
| | | // 企业信息统计数组 |
| | | let parkInfoList = ref([ |
| | | { |
| | | id: 1, |
| | | name: 'plaArea', |
| | | title: '园区面积', |
| | | content: '1000', |
| | | unit: '公顷', |
| | | img: 'images/雨量站@2x.png' |
| | | }, |
| | | { |
| | | id: 2, |
| | | name: 'recNum', |
| | | title: '救援人员数量', |
| | | content: '1000', |
| | | unit: '人', |
| | | img: 'images/雨量站@2x.png' |
| | | |
| | | }, |
| | | { |
| | | id: 3, |
| | | name: 'riskFirmNum', |
| | | title: '风险企业数量', |
| | | content: '1000', |
| | | img: 'images/雨量站@2x.png' |
| | | }, |
| | | { |
| | | id: 4, |
| | | name: 'proTarNum', |
| | | title: '保护目标数量', |
| | | content: '1000', |
| | | img: 'images/雨量站@2x.png' |
| | | }, |
| | | { |
| | | id: 5, |
| | | name: 'spaceNum', |
| | | title: '应急空间数量', |
| | | content: '1000', |
| | | img: 'images/雨量站@2x.png' |
| | | }, |
| | | { |
| | | id: 6, |
| | | name: 'firmNum', |
| | | title: '企业数量', |
| | | content: '1000', |
| | | img: 'images/雨量站@2x.png' |
| | | } |
| | | ] |
| | | ) |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | }) |
| | | // 获取详情 |
| | | function getData () { |
| | | function getData() { |
| | | getDetail().then(res => { |
| | | state.parkInfo = res.data.data |
| | | // console.log("************************", parkInfo) |
| | | parkInfoList.value.forEach(item => { |
| | | if (item.name == 'plaArea') { |
| | | state.parkInfo[item.name] && (item.content = (state.parkInfo[item.name] * 100).toFixed(2)) |
| | | } else { |
| | | state.parkInfo[item.name] && (item.content = state.parkInfo[item.name]) |
| | | } |
| | | }) |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | |
| | | <div> |
| | | <div class="box-content-img"> |
| | | <img :src="state.parkInfo.imageUrls" alt=""> |
| | | </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="VITE_APP_BASE + 'images/雨量站@2x.png'" alt=""> |
| | | <div class="box-content-sj" v-for="item in parkInfoList" :key="item.id"> |
| | | <img :src="VITE_APP_BASE + item.img" alt=""> |
| | | <div> |
| | | <div class="box-content-ss"> |
| | | <div> |
| | | <div class="box-content-text-title"> |
| | | <span class="box-content-text-title-span">{{ state.parkInfo.plaArea }}</span> |
| | | <span class="box-content-text-title-span">{{ item.content }}</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="VITE_APP_BASE + 'images/雨量站@2x.png'" alt=""> |
| | | <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> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <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> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <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> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <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> |
| | | </div> |
| | | |
| | | <div class="box-content-sj"> |
| | | <img src="../../../../../public/images/雨量站@2x.png" alt=""> |
| | | <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> |
| | | <text class="box-content-text-content-span">{{ item.title }}</text> |
| | | <text v-if="item.unit" class="box-content-text-content-span">({{ item.unit }})</text> |
| | | </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> |
| | | |
| | | <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> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | </public-content> |
| | |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .box-content-text-remark {} |
| | | |
| | | .content-qy-info { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | text-align: center; |
| | | margin-top: 15px; |
| | | .box-content-img { |
| | | height: 300px; |
| | | overflow: scroll; |
| | | // 隐藏滚动条 |
| | | scrollbar-width: none; |
| | | } |
| | | |
| | | .box-content-img img { |
| | | float: left; |
| | | margin: 5px; |
| | | /* 宽度可以根据实际情况调整 */ |
| | | width: 120px; |
| | | height: 120px; |
| | | } |
| | | |
| | |
| | | |
| | | .box-content-text { |
| | | padding-left: 5px; |
| | | height: 130px; |
| | | height: 300px; |
| | | overflow: scroll; |
| | | // 隐藏滚动条 |
| | | scrollbar-width: none; |
| | |
| | | .box-content-text-title, |
| | | .box-content-text-content { |
| | | margin-top: 5px; |
| | | font-size: 12px; |
| | | font-size: 10px; |
| | | text-align: center; |
| | | } |
| | | |