| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { use } from 'echarts/core'; |
| | | import { CanvasRenderer } from 'echarts/renderers'; |
| | | import { LineChart } from 'echarts/charts'; |
| | | import { |
| | | GridComponent, |
| | | TooltipComponent, |
| | | LegendComponent |
| | | } from 'echarts/components'; |
| | | import VChart from 'vue-echarts'; |
| | | |
| | | use([ |
| | | CanvasRenderer, |
| | | LineChart, |
| | | GridComponent, |
| | | TooltipComponent, |
| | | LegendComponent |
| | | ]); |
| | | |
| | | export default { |
| | | name: 'LeftPanel', |
| | | components: { |
| | | VChart |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | finalPercentages: [ |
| | | 50, 85, 80, 75, 70, 65, 60, 55 |
| | | ], |
| | | |
| | | lineOption: { |
| | | tooltip: { |
| | | trigger: 'axis', |
| | |
| | | legend: { |
| | | data: ['安置面积异常', '补偿金额异常'], |
| | | textStyle: { |
| | | color: '#C0CFDC', |
| | | color: 'rgba(255, 255, 255, 0.6)', |
| | | fontSize: 12 |
| | | }, |
| | | color: ['#FEDB65', '#00F2F0'], |
| | | icon: 'circle', |
| | | itemWidth: 8, |
| | | itemHeight: 8, |
| | | top: 0, |
| | | itemWidth: 6, |
| | | itemHeight: 6, |
| | | top: 5, |
| | | right: 0 |
| | | }, |
| | | grid: { |
| | | top: '15%', |
| | | top: '20%', |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | |
| | | axisLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#1B374A' |
| | | color: '#1F2C5C' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | color: '#C0CFDC', |
| | | color: '#495F88', |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | |
| | | type: 'value', |
| | | name: '单位:次', |
| | | nameTextStyle: { |
| | | color: '#C0CFDC', |
| | | color: '#495F88', |
| | | fontSize: 12, |
| | | padding: [0, 0, 0, 30] |
| | | }, |
| | | splitLine: { |
| | | lineStyle: { |
| | | color: '#1B374A', |
| | | type: 'dashed' |
| | | color: '#1F2C5C', |
| | | type: 'solid' |
| | | } |
| | | }, |
| | | axisLine: { |
| | |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | color: '#C0CFDC', |
| | | color: '#495F88', |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | |
| | | type: 'line', |
| | | smooth: true, |
| | | symbol: 'none', |
| | | itemStyle: { |
| | | color: '#FEDB65' |
| | | }, |
| | | areaStyle: { |
| | | opacity: 0.8, |
| | | color: { |
| | |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: 'rgba(255, 187, 0, 0.3)' |
| | | color: '#6C1F0D' |
| | | }, { |
| | | offset: 1, |
| | | color: 'rgba(255, 187, 0, 0)' |
| | | offset: 0.7, |
| | | color: 'rgba(255,102,0,0)' |
| | | }] |
| | | } |
| | | }, |
| | | lineStyle: { |
| | | width: 2, |
| | | color: '#FFBB00' |
| | | width: 4, |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 1, |
| | | y2: 0, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: '#AE5112' // 0% 处的颜色 |
| | | }, { |
| | | offset: 0.3, |
| | | color: '#FEDB65' // 50% 处的颜色 |
| | | }, { |
| | | offset: 0.7, |
| | | color: '#FEDB65' // 50% 处的颜色 |
| | | }, { |
| | | offset: 1, |
| | | color: '#AE5112' // 100% 处的颜色 |
| | | }] |
| | | } |
| | | }, |
| | | data: [150, 180, 230, 280, 260, 100] |
| | | }, |
| | |
| | | type: 'line', |
| | | smooth: true, |
| | | symbol: 'none', |
| | | itemStyle: { |
| | | color: '#00F2EF' |
| | | }, |
| | | areaStyle: { |
| | | opacity: 0.8, |
| | | color: { |
| | |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: 'rgba(0, 255, 255, 0.3)' |
| | | color: 'rgba(28,0,255,0.8)' |
| | | }, { |
| | | offset: 1, |
| | | color: 'rgba(0, 255, 255, 0)' |
| | | offset: 0.7, |
| | | color: 'rgba(28,0,255,0)' |
| | | }] |
| | | } |
| | | }, |
| | | lineStyle: { |
| | | width: 2, |
| | | color: '#00FFFF' |
| | | width: 4, |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 1, |
| | | y2: 0, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: '#0E5FFF' // 0% 处的颜色 |
| | | }, { |
| | | offset: 0.3, |
| | | color: '#00F2EF' // 50% 处的颜色 |
| | | }, { |
| | | offset: 0.7, |
| | | color: '#00F2EF' // 50% 处的颜色 |
| | | }, { |
| | | offset: 1, |
| | | color: '#0E5FFF' // 100% 处的颜色 |
| | | }] |
| | | } |
| | | }, |
| | | data: [200, 250, 380, 450, 380, 300] |
| | | } |
| | |
| | | import router from './router' |
| | | import store from './store' |
| | | import * as echarts from 'echarts'; |
| | | |
| | | import ECharts from 'vue-echarts'; |
| | | import 'echarts/lib/chart/pie'; |
| | | import 'echarts/lib/chart/bar'; |
| | | import 'echarts/lib/component/tooltip'; |
| | | import 'echarts/lib/component/title'; |
| | | import 'echarts/lib/component/legend'; |
| | | import 'echarts/lib/component/grid'; |
| | | Vue.component('v-chart', ECharts); |
| | | Vue.prototype.$echarts = echarts |
| | | Vue.config.productionTip = false |
| | | |
| | |
| | | import LeftPanel from '@/components/datascreen/LeftPanel.vue'; |
| | | import CenterPanel from '@/components/datascreen/CenterPanel.vue'; |
| | | import RightPanel from '@/components/datascreen/RightPanel.vue'; |
| | | import '@/components/datascreen/chartConfig.js'; |
| | | |
| | | export default { |
| | | name: 'DataScreen', |