| src/utils/utils.js | ●●●●● patch | view | raw | blame | history | |
| src/views/survey/components/box/fireSource.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/survey/components/box/fireTrend.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/survey/components/box/publicContent.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/survey/components/box/unitContent.vue | ●●●●● patch | view | raw | blame | history |
src/utils/utils.js
@@ -9,7 +9,6 @@ * Copyright (c) 2024 by shuishen, All Rights Reserved. */ // 获取assets静态资源 export const getAssetsFile = (url) => { console.log(import.meta.url, 1222222) return new URL(`../assets/img/${url}`, import.meta.url).href export const getAssetsFile = (url, base = '/img') => { return new URL(`../assets${base}/${url}`, import.meta.url).href } src/views/survey/components/box/fireSource.vue
@@ -2,16 +2,16 @@ * @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' @@ -41,8 +41,8 @@ </script> <template> <!-- <public-content> <template #content> --> <public-content> <template #content> <div class="box-content-box"> <div class="box-content"> <div> @@ -59,7 +59,7 @@ <div class="container"> <div class="box-content-sj"> <img src="../../../../../public/images/雨量站@2x.png" alt=""> <img :src="VITE_APP_BASE + 'images/雨量站@2x.png'" alt=""> <div> <div class="box-content-ss"> <div> @@ -77,7 +77,7 @@ </div> <div class="box-content-sj"> <img src="../../../../../public/images/雨量站@2x.png" alt=""> <img :src="VITE_APP_BASE + 'images/雨量站@2x.png'" alt=""> <div> <div class="box-content-ss"> <div> @@ -194,8 +194,8 @@ </div> <!-- </template> </public-content> --> </template> </public-content> </template> <style lang="scss" scoped> src/views/survey/components/box/fireTrend.vue
@@ -2,17 +2,16 @@ * @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:41:25 * @FilePath: \bigScreen\src\views\survey\components\box\fireTrend.vue * @Description: * * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. --> <script setup> import publicContent from './publicContent.vue' import { ref, reactive } from 'vue' import { getPage } from '../../../../api/indParkInfo' import { getPage } from '@/api/indParkInfo' let parkQy = ref([]) @@ -44,10 +43,9 @@ </script> <template> <!-- <public-content> <template #content> --> <public-content> <template #content> <div class="box-content"> <div> <div class="search-container"> <input type="text" v-model="searchQuery" placeholder="请输入企业名称" class="search-input" /> @@ -62,8 +60,8 @@ </div> </div> </div> <!-- </template> </public-content> --> </template> </public-content> </template> <style lang="scss" scoped> src/views/survey/components/box/publicContent.vue
@@ -2,8 +2,8 @@ * @Author: shuishen 1109946754@qq.com * @Date: 2023-03-13 14:54:26 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-10-25 18:33:46 * @FilePath: \bigScreen\src\views\statistics\components\box\publicContent.vue * @LastEditTime: 2024-11-01 09:43:11 * @FilePath: \bigScreen\src\views\survey\components\box\publicContent.vue * @Description: * * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. @@ -14,7 +14,7 @@ <template> <div class="content"> <slot></slot> <slot name="content"></slot> </div> </template> src/views/survey/components/box/unitContent.vue
@@ -2,23 +2,23 @@ * @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 10:08:41 * @FilePath: \bigScreen\src\views\survey\components\box\unitContent.vue * @Description: * * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. --> <script setup> // import publicContent from './publicContent.vue' import { inject } from 'vue' import publicContent from './publicContent.vue' let $echarts = inject('echarts') const curEcharts = ref(null) console.log($echarts) onMounted(() => { let myEcharts = $echarts.init(document.getElementById('unit-content-echarts')) nextTick(() => { let myEcharts = $echarts.init(curEcharts.value) myEcharts.setOption({ xAxis: { data: ['A', 'B', 'C', 'D', 'E'] @@ -33,19 +33,20 @@ ] }) }) }) </script> <template> <!-- <public-content> <template #content> --> <public-content> <template #content> <div class="unit-content"> <div class="unit-content-echarts" id="unit-content-echarts"> <div class="unit-content-echarts" ref="curEcharts"> </div> </div> <!-- </template> </public-content> --> </template> </public-content> </template> <style lang="scss" scoped>