This commit is contained in:
unknown 2023-12-04 14:04:51 +08:00
parent 687cf494d3
commit ed1d6a7b07
26 changed files with 52730 additions and 22 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -159,16 +159,16 @@
</template> </template>
<script> <script>
// import * as echarts from "echarts"; // import * as echarts from "echarts";
const fontSizeRem = (size) => { // const fontSizeRem = (size) => {
const clientWidth = // const clientWidth =
window.innerWidth || // window.innerWidth ||
document.documentElement.clientWidth || // document.documentElement.clientWidth ||
document.body.clientWidth; // document.body.clientWidth;
if (!clientWidth) return; // if (!clientWidth) return;
console.log(clientWidth); // console.log(clientWidth);
let fontSize = clientWidth / 1920; // // let fontSize = clientWidth / 1920; //
return size * fontSize; // return size * fontSize;
}; // };
import * as echarts from "echarts"; import * as echarts from "echarts";
// import { fontSizeRem } from "../assets/function"; // import { fontSizeRem } from "../assets/function";
export default { export default {
@ -350,9 +350,7 @@ export default {
// .072917rem /* 14/192 */ // .072917rem /* 14/192 */
// fontSize: fontSizeRem(14), // fontSize: fontSizeRem(14),
fontSize: "0.072rem", fontSize: "0.072rem",
// .052083rem /* 10/192 */ padding: 10,
padding: fontSizeRem(10),
// padding: "0.052rem",
}, },
axisLabel: { axisLabel: {
show: true, show: true,
@ -375,7 +373,6 @@ export default {
// .010417rem /* 2/192 */ // .010417rem /* 2/192 */
lineStyle: { lineStyle: {
width: 2, width: 2,
// width: "0.010rem",
color: "#29F1FA", color: "#29F1FA",
}, },
showSymbol: false, showSymbol: false,
@ -484,7 +481,7 @@ export default {
show: true, show: true,
textStyle: { textStyle: {
// fontSize: fontSizeRem(14), // fontSize: fontSizeRem(14),
fontSize: "0.072rem", fontSize: "0.0729rem",
fontFamily: "AlibabaPuHuiTi", fontFamily: "AlibabaPuHuiTi",
fontWeight: 400, fontWeight: 400,
color: "rgba(255,255,255,0.8)", color: "rgba(255,255,255,0.8)",
@ -500,7 +497,7 @@ export default {
smooth: true, smooth: true,
lineStyle: { lineStyle: {
// width: fontSizeRem(2), // width: fontSizeRem(2),
width: "0.01rem", width: 2,
color: "#FDCC00", color: "#FDCC00",
}, },
showSymbol: false, showSymbol: false,
@ -790,7 +787,7 @@ export default {
fontWeight: "normal", fontWeight: "normal",
// .0625rem /* 12/192 */ // .0625rem /* 12/192 */
// fontSize: fontSizeRem(12), // fontSize: fontSizeRem(12),
fontSize:"0.0625rem", fontSize: "0.0625rem",
color: "#fff", color: "#fff",
}, },
}, },
@ -1432,7 +1429,7 @@ export default {
textStyle: { textStyle: {
color: "#000", // color: "#000", //
// fontSize: 16, // // fontSize: 16, //
fontSize:"0.0833rem", // fontSize: "0.0833rem", //
fontFamily: "微软雅黑", fontFamily: "微软雅黑",
// backgroundColor: { // backgroundColor: {
// image: "../assets//.png", // image: "../assets//.png",
@ -1732,7 +1729,7 @@ export default {
line-height: 47px; line-height: 47px;
letter-spacing: 3px; letter-spacing: 3px;
color: #fff; color: #fff;
margin-left: 60px; margin-left: 164px;
} }
img:nth-of-type(1) { img:nth-of-type(1) {

View File

@ -1037,7 +1037,7 @@ export default {
console.log(item); console.log(item);
percent = ((item.value / total) * 100).toFixed(2); percent = ((item.value / total) * 100).toFixed(2);
if (name !== "") { if (name !== "") {
return `{name|${name}}` + "\t" + "\t" + `{num|${percent}}{num|%}`; return `{name|${name}}` + "\t" + "\t"+"\t" + "\t" + `{num|${percent}}`+"\t" + "\t"+`{name|%}`;
// return `{name|${name}` + `{num|${percent}}{name|kWh}`; // return `{name|${name}` + `{num|${percent}}{name|kWh}`;
} else { } else {
return ""; return "";
@ -1056,7 +1056,8 @@ export default {
}, },
num: { num: {
// fontSize: 12, // fontSize: 12,
fontSize: "0.0625rem", fontWeight:700,
fontSize: "0.0833rem",
color: color[1], color: color[1],
}, },
}, },
@ -1377,7 +1378,7 @@ export default {
line-height: 47px; line-height: 47px;
letter-spacing: 3px; letter-spacing: 3px;
color: #fff; color: #fff;
margin-left: -60px; margin-left: 128px;
} }
img:nth-of-type(1) { img:nth-of-type(1) {