Commit 634a6357 authored by 郭铭瑶's avatar 郭铭瑶 🤘

调整

parent 64266bff
...@@ -314,6 +314,11 @@ ...@@ -314,6 +314,11 @@
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
"dev": true "dev": true
}, },
"animate.css": {
"version": "3.7.2",
"resolved": "https://registry.npm.taobao.org/animate.css/download/animate.css-3.7.2.tgz",
"integrity": "sha1-5z4NUOkssc/vFZfZs4qUgQIOCOo="
},
"ansi-escapes": { "ansi-escapes": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npm.taobao.org/ansi-escapes/download/ansi-escapes-3.2.0.tgz", "resolved": "https://registry.npm.taobao.org/ansi-escapes/download/ansi-escapes-3.2.0.tgz",
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"build:win": "node build/build.js && electron-packager ./dist dashboard --platform=win32 --electron-version=6.1.0 --overwrite" "build:win": "node build/build.js && electron-packager ./dist dashboard --platform=win32 --electron-version=6.1.0 --overwrite"
}, },
"dependencies": { "dependencies": {
"animate.css": "^3.7.2",
"axios": "^0.19.0", "axios": "^0.19.0",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
"countup.js": "^2.0.4", "countup.js": "^2.0.4",
......
<template> <template>
<div id="app"> <div id="app">
<router-view/> <router-view :key="$route.name"/>
</div> </div>
</template> </template>
......
...@@ -6,6 +6,7 @@ import App from './App' ...@@ -6,6 +6,7 @@ import App from './App'
import router from './router' import router from './router'
import echarts from 'echarts' import echarts from 'echarts'
import {Button, Divider, Progress, Select, Option} from 'view-design' import {Button, Divider, Progress, Select, Option} from 'view-design'
import animate from 'animate.css'
import ajax from '@/server/ajax' import ajax from '@/server/ajax'
import api from '@/server/api' import api from '@/server/api'
import MonitorCard from '@/components/MonitorCard' import MonitorCard from '@/components/MonitorCard'
...@@ -20,6 +21,7 @@ Vue.config.productionTip = false ...@@ -20,6 +21,7 @@ Vue.config.productionTip = false
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
Vue.prototype.$ajax = ajax Vue.prototype.$ajax = ajax
Vue.prototype.$api = api Vue.prototype.$api = api
Vue.use(animate)
Vue.use(MonitorCard) Vue.use(MonitorCard)
Vue.use(MonitorCount) Vue.use(MonitorCount)
Vue.use(MonitorFlip) Vue.use(MonitorFlip)
......
...@@ -17,13 +17,7 @@ export default new Router({ ...@@ -17,13 +17,7 @@ export default new Router({
routes: [ routes: [
{ {
path: '/', path: '/',
name: 'main', redirect: '/industry'
component: Main
},
{
path: '/map',
name: 'map',
component: ChinaMap
}, },
{ {
path: '/production', path: '/production',
...@@ -50,11 +44,21 @@ export default new Router({ ...@@ -50,11 +44,21 @@ export default new Router({
name: 'industry', name: 'industry',
component: GDIndustry component: GDIndustry
}, },
{ // {
path: '/map2', // path: '/main',
name: 'map2', // name: 'main',
component: MapTest // component: Main
}, // },
// {
// path: '/map',
// name: 'map',
// component: ChinaMap
// },
// {
// path: '/map2',
// name: 'map2',
// component: MapTest
// },
{ {
path: '/map3d', path: '/map3d',
name: 'map3d', name: 'map3d',
......
<template> <template>
<div id="container" :style="`background-image: url(${require('@/assets/images/stars-bg.png')})`"> <div id="container" :style="`background-image: url(${require('@/assets/images/stars-bg.png')})`">
<GuangdongMap :data="cityDiseaseArea"/> <GuangdongMap :data="cityDiseaseArea"/>
<ThemeTitle style="width: 300%;">全省疫病灾害数据分析专题</ThemeTitle> <ThemeTitle style="width: 400%;">全省疫病灾害数据分析专题</ThemeTitle>
<div class="sum"> <div class="sum">
<p>全省水产疫病爆发<b><m-count :value="sum.total" :decimal="0"/></b></p> <p>全省水产疫病爆发<b><m-count :value="sum.total" :decimal="0"/></b></p>
<p>面积<b><m-count :value="sum.area"/></b>k㎡</p> <p>面积<b><m-count :value="sum.area"/></b>k㎡</p>
...@@ -59,15 +59,15 @@ export default { ...@@ -59,15 +59,15 @@ export default {
type: 'line', type: 'line',
areaStyle: {}, areaStyle: {},
}, },
colors: ['rgba(0, 118, 255, 1)'], colors: [['rgb(255, 158, 68)', 'rgb(255, 70, 131)']],
}, },
data: [], data: [],
options2: { options2: {
legend: { legend: {
orient: 'vertical', orient: 'vertical',
y: 'center', y: 'center',
left: '60%', left: '65%',
top: '10%', top: '25%',
data: [], data: [],
formatter: name => { formatter: name => {
const item = this.data2.find(el => el.name === name) const item = this.data2.find(el => el.name === name)
...@@ -77,13 +77,14 @@ export default { ...@@ -77,13 +77,14 @@ export default {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
}, },
color: ['#3391FF','#71C012','#F47C1F','#CC4D4D','#C15CFF','#8400FF'], color: ['#3391FF', '#71C012', '#F47C1F','#CC4D4D','#C15CFF','#8400FF'],
series: { series: {
type: 'pie', type: 'pie',
radius: ['45%', '70%'],
label: { label: {
show: false, show: false,
}, },
center: ['30%', '50%'], center: ['35%', '50%'],
data: [], data: [],
} }
}, },
...@@ -129,11 +130,11 @@ export default { ...@@ -129,11 +130,11 @@ export default {
#container #container
$gd-layout() $gd-layout()
grid-template-areas \ grid-template-areas \
'box1 . . . box2'\ 'box1 . . . . box2'\
'box1 . . . box2'\ 'box1 . . . . box2'\
'box3 box3 box4 box4 box2' 'box3 box3 box3 box4 box4 box2'
grid-template-rows 1fr 1fr 1fr grid-template-rows 1fr 1fr 1fr
grid-template-columns 1.2fr 1fr 1fr 1fr 1.2fr grid-template-columns 1.5fr 1fr 1fr 1fr 1fr 1.5fr
.sum .sum
display flex display flex
justify-content space-around justify-content space-around
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment