| | |
| | | import VScaleScreen from 'v-scale-screen' |
| | | import Percent from '@/components/percent.vue' |
| | | import dayjs from 'dayjs' |
| | | |
| | | import * as echarts from 'echarts' |
| | | import { getEnergyCenterData, getSecurityDeviceData, getVisitRetentionData } from '@/api' |
| | | |
| | | |
| | | const colors = ['#FEAF01', '#01ABFE', '#51F9E4'] |
| | | const weekMap = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六',] |
| | | const date = ref(dayjs().format('YYYY.MM.DD')) |
| | |
| | | myChart.resize() |
| | | }) |
| | | } |
| | | |
| | | const ininDate = () => { |
| | | getEnergyCenterData() |
| | | } |
| | | onMounted(() => { |
| | | ininDate() |
| | | initEchart3() |
| | | initEchart1() |
| | | initEchart2() |