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

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="chart" style="width: 100%; height:100%;"></div> <div ref="chart" style="width: 100%; height: 100%"></div>
</template> </template>
<script setup> <script setup>
@ -11,7 +11,7 @@ const chart = ref(); // 创建DOM引用
const datas = { const datas = {
value: 92.96, value: 92.96,
} };
let option = { let option = {
series: [ series: [
@ -22,6 +22,8 @@ let option = {
radius: ["70%", "90%"], radius: ["70%", "90%"],
hoverAnimation: false, hoverAnimation: false,
clockWise: false, clockWise: false,
// startAngle: 180,
// endAngle: 360,
itemStyle: { itemStyle: {
normal: { normal: {
borderWidth: 1, borderWidth: 1,
@ -48,85 +50,115 @@ let option = {
}, },
/*内心原型图,展示整体数据概览*/ /*内心原型图,展示整体数据概览*/
{ {
name: 'pie', // name: "pie",
type: 'pie', type: "pie",
roundCap: true, roundCap: true,
clockWise: true, clockWise: true,
radius: ["50%", "70%"],
center: ["55%", "55%"],
startAngle: 180, startAngle: 180,
labelLine: { labelLine: {
show: false show: false,
}, },
radius: ['50%', '70%'],
hoverAnimation: false, hoverAnimation: false,
center: ['55%', '55%'],
data: [ data: [
{ {
value: datas.value, value: datas.value,
label: { label: {
normal: { normal: {
position: "center",
position: 'center',
show: true, show: true,
textStyle: { textStyle: {
fontSize: '24', fontSize: "24",
fontWeight: 'normal', fontWeight: "normal",
color: '#fff', color: "#fff",
fontSize: 16, fontSize: 16,
lineHeight: 30, lineHeight: 30,
rich: { rich: {
cell: { cell: {
fontSize: '24', fontSize: "24",
fontWeight: 'normal', fontWeight: "normal",
color: '#fff', color: "#fff",
}, },
text: { text: {
fontSize: 16, fontSize: 16,
fontFamily: 'FZLanTingHeiS-L-GB', fontFamily: "FZLanTingHeiS-L-GB",
color: '#fff', color: "#fff",
} },
} },
} },
} },
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [
{
offset: 0, offset: 0,
color: 'rgba(0, 255, 250, 0.29)' color: "rgba(0, 255, 250, 0.29)",
}, },
{ {
offset: 0.5, offset: 0.5,
color: 'rgba(0, 255, 250, 0.8)' color: "rgba(0, 255, 250, 0.8)",
}, { },
{
offset: 1, offset: 1,
color: 'rgba(0, 255, 250, 1)' color: "rgba(0, 255, 250, 1)",
}]), },
shadowColor: 'rgba(1,1,1,0.5)', ]),
shadowBlur: 1 shadowColor: "rgba(1,1,1,0.5)",
} shadowBlur: 1,
} },
},
}, },
{ {
value: 100 - datas.value, value: 100 - datas.value,
name: '', name: "",
itemStyle: { itemStyle: {
normal: { normal: {
color: '#095b9b', // color: "#095b9b", //
label: { label: {
show: false show: false,
}, },
labelLine: { labelLine: {
show: false show: false,
} },
}, },
emphasis: { 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(() => { onMounted(() => {

View File

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