xuechunyuan 3 years ago
commit 84218f890c
  1. 17
      src/views/components/showmap.vue
  2. 12
      src/views/dashboard/home.vue

@ -229,7 +229,7 @@ export default {
period: 10, // period: 10, //
trailLength: 0.1, // [0,1] trailLength: 0.1, // [0,1]
symbol: "arrow", // symbol: "arrow", //
symbolSize: 6, // symbolSize: this.fontSize(6), //
trailColor: '#ffd419', trailColor: '#ffd419',
color: '#ffd419', // color: '#ffd419', //
}, },
@ -302,12 +302,16 @@ export default {
tooltip: { tooltip: {
trigger: "item", trigger: "item",
formatter: "{b}<br/>{c} (件)", formatter: "{b}<br/>{c} (件)",
textStyle:{
fontSize:this.fontSize(12)
}
}, },
aspectScale:'1.5', aspectScale:'1.2',
label: { label: {
show: true, show: true,
textStyle:{ textStyle:{
color:'#fff' color:'#fff',
fontSize:this.fontSize(12)
} }
}, },
// itemStyle: { // itemStyle: {
@ -360,15 +364,16 @@ export default {
max: yMax, max: yMax,
text: ["高", "低"], text: ["高", "低"],
orient: "horizontal", orient: "horizontal",
itemWidth: 15, itemWidth: this.fontSize(15),
itemHeight: this.fontSize(150), itemHeight: this.fontSize(150),
right: 0, right: 0,
bottom: 3, bottom: '0.6%',
inRange: { inRange: {
color: ["#1e73dd", "#04296f"], color: ["#1e73dd", "#04296f"],
}, },
textStyle: { textStyle: {
color: "#fff", color: "#fff",
fontSize:this.fontSize(12)
}, },
}, },
geo: { geo: {
@ -379,7 +384,7 @@ export default {
show: false, show: false,
}, },
}, },
aspectScale:'1.5', aspectScale:'1.2',
roam: false, // roam: false, //
itemStyle: { itemStyle: {
normal: { normal: {

@ -469,9 +469,9 @@ export default {
this.pieData = this.pieData.sort(function (a, b) { this.pieData = this.pieData.sort(function (a, b) {
return b.y - a.y; return b.y - a.y;
}); });
this.pieData[0].h = 10; this.pieData[0].h = 15;
this.pieData[1].h = 5; this.pieData[1].h = 10;
this.pieData[2].h = 2; this.pieData[2].h = 5;
this.shouData.map((item, index) => { this.shouData.map((item, index) => {
if (index <= 10) { if (index <= 10) {
this.slideList[0].arr.push({ no: index + 1, name: item.name, count: item.count }); this.slideList[0].arr.push({ no: index + 1, name: item.name, count: item.count });
@ -847,7 +847,7 @@ export default {
beta: 0, beta: 0,
}, },
backgroundColor: null, backgroundColor: null,
marginTop: -45, marginTop: -10,
}, },
colors: ["#00bdff", "#52f4c1", "#00dbec"], colors: ["#00bdff", "#52f4c1", "#00dbec"],
title: { title: {
@ -863,7 +863,7 @@ export default {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: "pointer", cursor: "pointer",
depth: 15, depth: this.fontSize(15),
dataLabels: { dataLabels: {
enabled: true, //线tip enabled: true, //线tip
distance: "11%", distance: "11%",
@ -1728,7 +1728,7 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
// background-position-y: 0.5rem; // background-position-y: 0.5rem;
// background-position-x: -3px; // background-position-x: -3px;
top: 2rem; top: 2.2rem;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }

Loading…
Cancel
Save