Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
姚宇浩 2024-05-24 15:40:57 +08:00
commit 2cac940e4f
3 changed files with 178 additions and 146 deletions

View File

@ -71,27 +71,27 @@ function getCookie(cname) {
// return ''
}
// router.beforeEach((to, form, next) => {
// var token = getCookie('lytoken')
// console.log('token', token)
// if (token == '') {
// window.location.href =
// 'http://220.191.238.50:996/api/login?returnURL=' +
// window.location.href
// } else {
// // http.get("/api/zzdn_event/auditToken?token=" + token).then((res) => {
// // if (res.code == '500') {
// // window.location.href =
// // 'http://220.191.238.50:996/api/login?returnURL=' +
// // window.location.href
// // } else {
// // tools.data.set('token',token)
// // next();
// // }
// // });
// tools.data.set('token', token)
// next();
// }
// })
router.beforeEach((to, form, next) => {
var token = getCookie('lytoken')
console.log('token', token)
if (token == '') {
window.location.href =
'http://220.191.238.50:996/api/login?returnURL=' +
window.location.href
} else {
// http.get("/api/zzdn_event/auditToken?token=" + token).then((res) => {
// if (res.code == '500') {
// window.location.href =
// 'http://220.191.238.50:996/api/login?returnURL=' +
// window.location.href
// } else {
// tools.data.set('token',token)
// next();
// }
// });
tools.data.set('token', token)
next();
}
})
export default router

View File

@ -1,5 +1,5 @@
<template>
<div ref="chart" style="width: 100%; height:100%;"></div>
<div ref="chart" style="width: 100%; height: 100%"></div>
</template>
<script setup>
@ -11,7 +11,7 @@ const chart = ref(); // 创建DOM引用
const datas = {
value: 92.96,
}
};
let option = {
series: [
@ -22,6 +22,8 @@ let option = {
radius: ["70%", "90%"],
hoverAnimation: false,
clockWise: false,
// startAngle: 180,
// endAngle: 360,
itemStyle: {
normal: {
borderWidth: 1,
@ -48,85 +50,115 @@ let option = {
},
/*内心原型图,展示整体数据概览*/
{
name: 'pie',
type: 'pie',
// name: "pie",
type: "pie",
roundCap: true,
clockWise: true,
radius: ["50%", "70%"],
center: ["55%", "55%"],
startAngle: 180,
labelLine: {
show: false
show: false,
},
radius: ['50%', '70%'],
hoverAnimation: false,
center: ['55%', '55%'],
data: [
{
value: datas.value,
label: {
normal: {
position: 'center',
position: "center",
show: true,
textStyle: {
fontSize: '24',
fontWeight: 'normal',
color: '#fff',
fontSize: "24",
fontWeight: "normal",
color: "#fff",
fontSize: 16,
lineHeight: 30,
rich: {
cell: {
fontSize: '24',
fontWeight: 'normal',
color: '#fff',
fontSize: "24",
fontWeight: "normal",
color: "#fff",
},
text: {
fontSize: 16,
fontFamily: 'FZLanTingHeiS-L-GB',
color: '#fff',
}
}
}
}
fontFamily: "FZLanTingHeiS-L-GB",
color: "#fff",
},
},
},
},
},
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [
{
offset: 0,
color: 'rgba(0, 255, 250, 0.29)'
color: "rgba(0, 255, 250, 0.29)",
},
{
offset: 0.5,
color: 'rgba(0, 255, 250, 0.8)'
}, {
color: "rgba(0, 255, 250, 0.8)",
},
{
offset: 1,
color: 'rgba(0, 255, 250, 1)'
}]),
shadowColor: 'rgba(1,1,1,0.5)',
shadowBlur: 1
}
}
color: "rgba(0, 255, 250, 1)",
},
]),
shadowColor: "rgba(1,1,1,0.5)",
shadowBlur: 1,
},
},
},
{
value: 100 - datas.value,
name: '',
name: "",
itemStyle: {
normal: {
color: '#095b9b', //
color: "#095b9b", //
label: {
show: false
show: false,
},
labelLine: {
show: false
}
show: false,
},
},
emphasis: {
color: '#095b9b' //
}
}
}]
}
]
color: "#095b9b", //
},
},
},
],
},
],
};
// let option = {
// tooltip: {
// trigger: 'item'
// },
// legend: {
// top: '5%',
// left: 'center'
// },
// series: [
// {
// name: 'Access From',
// type: 'pie',
// radius: ['40%', '70%'],
// center: ['50%', '70%'],
// // adjust the start and end angle
// startAngle: 180,
// endAngle: 360,
// data: [
// { value: 1048, name: 'Search Engine' },
// { value: 735, name: 'Direct' },
// { value: 580, name: 'Email' },
// { value: 484, name: 'Union Ads' },
// { value: 300, name: 'Video Ads' }
// ]
// }
// ]
// };
// 使
onMounted(() => {

View File

@ -375,11 +375,11 @@ const getData = async () => {
background-size: 100% 100%;
}
.left_2 {
background-image: url(@/assets/images/hygiene/left_title_2.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}
// .left_2 {
// background-image: url(@/assets/images/hygiene/left_title_2.png);
// background-repeat: no-repeat;
// background-size: 100% 100%;
// }
.left_3 {
background-image: url(@/assets/images/hygiene/new_lmb.png);