安农大可视化及清除缓存

dev_202412
yujialong 1 year ago
parent 3fa6e01694
commit 3147bada16
  1. 1
      .env
  2. 3
      public/index.html
  3. 207
      src/pages/screenShow/geoProducts.json
  4. 294
      src/pages/screenShow/index.vue
  5. 1568
      src/pages/screenShow/indexPro.vue
  6. 6
      src/router/modules/screenShowPro.js
  7. 2
      src/router/permission.js
  8. 2
      src/setting.js
  9. 443
      src/styles/page/screenShowPro.scss
  10. 17
      vue.config.js

@ -0,0 +1 @@
VUE_APP_VERSION=2.3.4

@ -3,6 +3,9 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="keywords" content="职站,教学,教育,在线编程" />
<meta
name="description"

@ -79,5 +79,212 @@
"year2019": "14",
"year2020": "15",
"year2021": "16"
},
{
"province": "江苏省",
"year2016": "52",
"year2017": "56",
"year2018": "61",
"year2019": "72",
"year2020": "98",
"year2021": "137"
},
{
"province": "浙江省",
"year2016": "44",
"year2017": "54",
"year2018": "69",
"year2019": "89",
"year2020": "115",
"year2021": "152"
},
{
"province": "安徽省",
"year2016": "35",
"year2017": "45",
"year2018": "62",
"year2019": "69",
"year2020": "99",
"year2021": "119"
},
{
"province": "福建省",
"year2016": "62",
"year2017": "70",
"year2018": "79",
"year2019": "81",
"year2020": "98",
"year2021": "115"
},
{
"province": "江西省",
"year2016": "74",
"year2017": "78",
"year2018": "83",
"year2019": "94",
"year2020": "97",
"year2021": "101"
},
{
"province": "山东省",
"year2016": "294",
"year2017": "313",
"year2018": "323",
"year2019": "330",
"year2020": "336",
"year2021": "351"
},
{
"province": "河南省",
"year2016": "60",
"year2017": "79",
"year2018": "103",
"year2019": "119",
"year2020": "139",
"year2021": "160"
},
{
"province": "湖北省",
"year2016": "112",
"year2017": "127",
"year2018": "143",
"year2019": "154",
"year2020": "173",
"year2021": "195"
},
{
"province": "湖南省",
"year2016": "42",
"year2017": "49",
"year2018": "67",
"year2019": "80",
"year2020": "97",
"year2021": "126"
},
{
"province": "广东省",
"year2016": "19",
"year2017": "24",
"year2018": "33",
"year2019": "39",
"year2020": "50",
"year2021": "62"
},
{
"province": "广西壮族自治区",
"year2016": "85",
"year2017": "96",
"year2018": "113",
"year2019": "126",
"year2020": "147",
"year2021": "154"
},
{
"province": "海南省",
"year2016": "7",
"year2017": "16",
"year2018": "24",
"year2019": "30",
"year2020": "37",
"year2021": "40"
},
{
"province": "重庆市",
"year2016": "47",
"year2017": "48",
"year2018": "48",
"year2019": "53",
"year2020": "62",
"year2021": "70"
},
{
"province": "四川省",
"year2016": "154",
"year2017": "159",
"year2018": "169",
"year2019": "176",
"year2020": "184",
"year2021": "199"
},
{
"province": "贵州省",
"year2016": "35",
"year2017": "54",
"year2018": "63",
"year2019": "100",
"year2020": "131",
"year2021": "151"
},
{
"province": "云南省",
"year2016": "75",
"year2017": "77",
"year2018": "81",
"year2019": "83",
"year2020": "85",
"year2021": "86"
},
{
"province": "西藏自治区",
"year2016": "10",
"year2017": "13",
"year2018": "19",
"year2019": "20",
"year2020": "25",
"year2021": "35"
},
{
"province": "陕西省",
"year2016": "70",
"year2017": "81",
"year2018": "96",
"year2019": "103",
"year2020": "109",
"year2021": "117"
},
{
"province": "甘肃省",
"year2016": "73",
"year2017": "77",
"year2018": "92",
"year2019": "109",
"year2020": "124",
"year2021": "132"
},
{
"province": "宁夏回族自治区",
"year2016": "52",
"year2017": "54",
"year2018": "59",
"year2019": "60",
"year2020": "60",
"year2021": "60"
},
{
"province": "青海省",
"year2016": "49",
"year2017": "55",
"year2018": "59",
"year2019": "63",
"year2020": "66",
"year2021": "77"
},
{
"province": "新疆维吾尔自治区",
"year2016": "75",
"year2017": "111",
"year2018": "119",
"year2019": "121",
"year2020": "121",
"year2021": "125"
},
{
"province": "合计",
"year2016": "1977",
"year2017": "2242",
"year2018": "2523",
"year2019": "2778",
"year2020": "3097",
"year2021": "3461"
}
]

@ -677,6 +677,7 @@ export default {
formatter: '{value} 个'
}
}],
color: ['#5be7d8'],
series: [{
name: '单位数(家)',
type: 'bar',
@ -839,6 +840,18 @@ export default {
)
}
const commonSeries = {
type: 'line',
smooth: true,
lineStyle: {
width: 0
},
showSymbol: false,
stack: 'Ad',
emphasis: {
focus: 'series'
},
}
const option1 = {
tooltip: {
trigger: 'axis',
@ -906,13 +919,8 @@ export default {
],
series: [
{
...commonSeries,
name: '2013',
type: 'line',
smooth: true,
lineStyle: {
width: 0
},
showSymbol: false,
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -926,20 +934,11 @@ export default {
}
])
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[0]
},
{
...commonSeries,
name: '2014',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -953,23 +952,11 @@ export default {
}
])
},
emphasis: {
focus: 'series'
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[1]
},
{
...commonSeries,
name: '2015',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -983,23 +970,11 @@ export default {
}
])
},
emphasis: {
focus: 'series'
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[2]
},
{
...commonSeries,
name: '2016',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -1013,23 +988,11 @@ export default {
}
])
},
emphasis: {
focus: 'series'
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[3]
},
{
...commonSeries,
name: '2017',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -1043,23 +1006,11 @@ export default {
}
])
},
emphasis: {
focus: 'series'
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[4]
},
{
...commonSeries,
name: '2018',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -1073,23 +1024,11 @@ export default {
}
])
},
emphasis: {
focus: 'series'
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[5]
},
{
...commonSeries,
name: '2019',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -1103,20 +1042,11 @@ export default {
}
])
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[6]
},
{
...commonSeries,
name: '2020',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -1130,20 +1060,11 @@ export default {
}
])
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[7]
},
{
...commonSeries,
name: '2021',
type: 'line',
smooth: true,
showSymbol: false,
lineStyle: {
width: 0
},
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -1157,10 +1078,6 @@ export default {
}
])
},
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: series[8]
},
]
@ -1203,6 +1120,18 @@ export default {
)
}
const commonSeries = {
type: 'line',
smooth: true,
lineStyle: {
width: 0
},
showSymbol: false,
stack: 'Ad',
emphasis: {
focus: 'series'
},
}
const option1 = {
tooltip: {
trigger: 'axis',
@ -1270,83 +1199,164 @@ export default {
],
series: [
{
...commonSeries,
name: '2013',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(128, 255, 165, .8)'
},
{
offset: 1,
color: 'rgb(1, 191, 236, .8)'
}
])
},
data: series[0]
},
{
...commonSeries,
name: '2014',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(96, 12, 230, .8)'
},
{
offset: 1,
color: 'rgb(31, 145, 236, .8)'
}
])
},
data: series[1]
},
{
...commonSeries,
name: '2015',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(210, 23, 21, .8)'
},
{
offset: 1,
color: 'rgb(112, 52, 200, .8)'
}
])
},
data: series[2]
},
{
...commonSeries,
name: '2016',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(63, 163, 140, .8)'
},
{
offset: 1,
color: 'rgb(201, 69, 60, .8)'
}
])
},
data: series[3]
},
{
...commonSeries,
name: '2017',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(63, 20, 214, .8)'
},
{
offset: 1,
color: 'rgb(131, 81, 232, .8)'
}
])
},
data: series[4]
},
{
...commonSeries,
name: '2018',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(64, 40, 190, .8)'
},
{
offset: 1,
color: 'rgb(142, 30, 220, .8)'
}
])
},
data: series[5]
},
{
...commonSeries,
name: '2019',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(232, 32, 120, .8)'
},
{
offset: 1,
color: 'rgb(21, 31, 241, .8)'
}
])
},
data: series[6]
},
{
...commonSeries,
name: '2020',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(31, 211, 123, .8)'
},
{
offset: 1,
color: 'rgb(16, 152, 185, .8)'
}
])
},
data: series[7]
},
{
...commonSeries,
name: '2021',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(42, 167, 98, .8)'
},
{
offset: 1,
color: 'rgb(165, 45, 236, .8)'
}
])
},
data: series[8]
},
@ -1433,7 +1443,7 @@ export default {
series: [
{
name: '2021年绿色食品十大产业全产业链产值',
name: '2021年绿色食品十大产业全产业链产值(亿元)',
type: 'map',
top: 60,
map: 'AH',// registerMap''

File diff suppressed because it is too large Load Diff

@ -0,0 +1,6 @@
export default {
path: `/screenShowPro`,
name: 'screenShowPro',
component: () => import('@/pages/screenShow/indexPro'),
meta: { title: '数据看板' }
}

@ -4,7 +4,7 @@ import util from "@/libs/util";
const whiteList = Setting.whiteList // 白名单
router.beforeEach((to, from, next) => {
document.title = to.path === '/screenShow' ? '安农大数据可视化看板' : Setting.titleSuffix + '-' + to.meta.title
document.title = to.path === '/screenShow' || to.path === '/screenShowPro' ? '安农大数据可视化看板' : Setting.titleSuffix + '-' + to.meta.title
const role = util.local.get(Setting.tokenKey);
if (!role && !whiteList.includes(to.path)) {
next('/login')

@ -71,7 +71,7 @@ const Setting = {
/**
* 路由白名单
* */
whiteList: ['/login', '/index/list', '/index/zxy', '/product', '/cityPartner/list', '/devPlatform/list', '/log/list', '/touristMatch/list', '/touristMatch/details', '/touristMatch/noticeDetail', '/preCourse/list', '/preCourse/details', '/preInfo/list', '/preInfo/details', '/screen', '/screenShow'],
whiteList: ['/login', '/index/list', '/index/zxy', '/product', '/cityPartner/list', '/devPlatform/list', '/log/list', '/touristMatch/list', '/touristMatch/details', '/touristMatch/noticeDetail', '/preCourse/list', '/preCourse/details', '/preInfo/list', '/preInfo/details', '/screen', '/screenShow', '/screenShowPro'],
/**
* 平台列表
* */

@ -0,0 +1,443 @@
@import '../var.scss';
// ::-webkit-scrollbar-thumb {
// display: none;
// }
body {
min-width: 1480px;
}
// ::-webkit-scrollbar {
// width: 8px;
// height: 8px;
// }
// ::-webkit-scrollbar-thumb {
// width: 5px;
// border-radius: 6px;
// background: rgba(85, 219, 255, .8);
// }
.video {
position: absolute;
top: 0;
left: -20%;
width: 150%;
// height: 720px;
}
.wrap {
width: 100%;
height: 100vh;
color: #333;
// background: url('../../assets/img/screen/screen1.jpg') no-repeat;
// background-size: 100% 100%;
background-color: #1d360c;
overflow: auto;
.full {
z-index: 10;
position: absolute;
top: 20px;
right: 30px;
cursor: pointer;
transition: 0.5s;
&:hover {
transform: scale(1.2);
}
}
.l_t_line {
width: 5px;
height: 24px;
left: -3px;
top: -3px;
}
.t_l_line {
height: 5px;
width: 26px;
left: -3px;
top: -3px;
}
.t_line_box {
position: absolute;
width: 100%;
height: 100%;
}
.t_line_box i {
background-color: #4788fb;
box-shadow: 0px 0px 10px #4788fb;
position: absolute;
}
.t_r_line {
height: 5px;
width: 26px;
right: -3px;
top: -3px;
}
.r_t_line {
width: 5px;
height: 24px;
right: -3px;
top: -3px;
}
.l_b_line {
width: 5px;
height: 24px;
left: -3px;
bottom: -3px;
}
.b_l_line {
height: 5px;
width: 26px;
left: -3px;
bottom: -3px;
}
.r_b_line {
width: 5px;
height: 24px;
right: -3px;
bottom: -3px;
}
.b_r_line {
height: 5px;
width: 26px;
right: -3px;
bottom: -3px;
}
.pics {
.pic-wrap {
width: 100%;
height: 525px;
overflow: hidden;
}
.pic {
width: 100%;
height: 560px;
background: url(../../assets/img/screenShow/1.jpg) no-repeat;
}
}
.earth {
z-index: 0;
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
img {
position: absolute;
top: 52%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0.4;
}
.lbx {
z-index: 2;
max-width: 95%;
max-height: 95%;
animation: rotate 15s linear infinite;
}
.jt {
z-index: 3;
max-width: 90%;
max-height: 90%;
opacity: 0.3;
animation: rotate-reverse 15s linear infinite;
}
.map {
z-index: 1;
max-width: 85%;
max-height: 85%;
}
}
@keyframes rotate {
0% {
transform: translate(-50%, -50%) rotate(0);
}
50% {
transform: translate(-50%, -50%) rotate(180deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
@keyframes rotate-reverse {
0% {
transform: translate(-50%, -50%) rotate(0360deg);
}
50% {
transform: translate(-50%, -50%) rotate(180deg);
}
100% {
transform: translate(-50%, -50%) rotate(0);
}
}
}
.time-switch {
z-index: 2;
position: absolute;
display: flex;
top: 24px;
right: 10px;
li {
padding: 0 14px;
line-height: 24px;
color: #fff;
background-color: #0a111c;
border-radius: 8px;
cursor: pointer;
&.active {
background-color: #00d8ff;
}
}
}
.active-number {
position: absolute;
top: 10px;
left: 10px;
padding: 10px 40px;
background: url(../../assets/img/screen/title-bg.png) 0 0 / cover no-repeat;
.val {
font-size: 50px;
font-family: 'yjsz';
color: #00f3ff;
text-shadow: 0 0 25px #00d8ff;
text-align: center;
}
.name {
font-size: 16px;
color: #fff;
text-shadow: 0 0 25px #00d8ff;
}
}
.stat-mask {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.65);
}
.stat-wrap {
position: relative;
height: 100%;
background: url(../../assets/img/screen/stat.png) 0 0/100% auto no-repeat;
.num {
position: absolute;
width: 100px;
text-align: center;
font-size: 32px;
font-weight: bold;
color: #00d8ff;
white-space: nowrap;
}
.num1 {
top: 140px;
left: 12px;
}
.num2 {
top: 49px;
right: 187px;
}
.num3 {
top: 260px;
left: 200px;
}
.num4 {
top: 296px;
right: 368px;
}
.num5 {
bottom: 319px;
right: 57px;
}
}
.main_table {
width: 100%;
margin-top: 25px;
table {
width: 100%;
}
tr {
height: 42px;
}
th {
font-size: 12px;
font-weight: 600;
color: #61d2f7;
text-align: center;
}
td {
color: #fff;
font-size: 10px;
text-align: center;
}
tbody tr:nth-child(odd) {
background-color: #072951;
box-shadow: -10px 0px 15px #2c58a6 inset, 10px 0px 15px #2c58a6 inset;
}
.percent {
width: 64px;
margin: 0 auto;
line-height: 24px;
color: #fff;
text-align: center;
background-color: #0faf7d;
border-radius: 2px;
&.fall {
background-color: #db4154;
}
}
}
.header {
z-index: 2;
position: relative;
width: 100%;
height: 80px;
padding: 0 20px;
}
.bg_header {
width: 100%;
height: 80px;
// background: url(../../assets/img/screen/screen2.png) no-repeat;
background-size: 100% 100%;
}
.t_title {
width: 100%;
height: 100%;
text-align: center;
font-size: 2.5em;
font-weight: 600;
line-height: 80px;
color: #fff;
}
$height: 344px;
.content {
display: flex;
padding: 20px;
.left,
.right {
min-width: 300px;
width: 30%;
}
.middle {
min-width: calc((40% - 60px));
margin: 0 30px;
overflow: hidden;
}
.item {
position: relative;
height: $height;
margin-bottom: 30px;
border: 1px solid #2c58a6;
box-shadow: 0 0 10px #2c58a6;
}
}
.chart {
height: $height;
}
.popular-wrap {
height: 170px;
margin-top: 45px;
overflow: auto;
&::-webkit-scrollbar-thumb {
display: none;
}
}
.list {
padding: 0 15px;
margin-top: 25px;
overflow: auto;
li {
position: relative;
padding: 10px 10px;
&:nth-child(2) {
.index {
background-color: #67a0ff;
}
}
&:nth-child(3) {
.index {
background-color: #2b71ff;
}
}
&:nth-child(4) {
.index {
background-color: #8c2bff;
}
}
&:nth-child(5) {
.index {
background-color: #ff612b;
}
}
&:nth-child(6) {
.index {
background-color: #4152f1;
}
}
&:nth-child(7) {
.index {
background-color: #d14cc9;
}
}
&:nth-child(8) {
.index {
background-color: #f52c8d;
}
}
&:nth-child(9) {
.index {
background-color: #f1561b;
}
}
&:nth-child(10) {
.index {
background-color: #f50000;
}
}
}
&.popular {
margin-top: 0;
li:nth-child(odd) {
background-color: #072951;
box-shadow: -10px 0px 15px #2c58a6 inset, 10px 0px 15px #2c58a6 inset;
}
}
.index {
position: absolute;
width: 20px;
line-height: 20px;
color: #fff;
font-size: 12px;
text-align: center;
border-radius: 50%;
background-color: #2defe2;
}
.text {
width: 60%;
margin: 0 auto;
color: #61d2f7;
text-align: center;
@include ellipsis;
}
.icon {
position: absolute;
top: 10px;
right: 10%;
}
}
.main_title {
display: flex;
align-items: center;
height: 35px;
line-height: 33px;
background-color: rgba(26, 104, 0, 0.9);
border-radius: 18px;
position: absolute;
top: -17px;
left: 50%;
color: #fff;
font-size: 18px;
font-weight: 600;
white-space: nowrap;
padding: 0 20px;
z-index: 1000;
text-align: center;
transform: translateX(-50%);
img {
margin-right: 10px;
}
}

@ -1,5 +1,6 @@
const Setting = require("./src/setting.env");
const timeStamp = new Date().getTime();
module.exports = {
lintOnSave: true,
css: {
@ -18,5 +19,19 @@ module.exports = {
// webSocketURL: 'ws://0.0.0.0:8082/notice',
// },
port: 8082 // 固定端口
}
},
configureWebpack: {
output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename: `[name].${process.env.VUE_APP_VERSION}.${timeStamp}.js`,
chunkFilename: `[name].${process.env.VUE_APP_VERSION}.${timeStamp}.js`
},
},
// output: {
// // 把应用打包成umd库格式
// library:'myLibrary',
// // 输出重构 打包编译后的文件名称 【模块名称.时间戳】
// filename: `[name].${timeStamp}.js`,
// libraryTarget:'umd',
// globalObject:'this',
// },
};
Loading…
Cancel
Save