Commit 1545607a authored by 仇晓婷's avatar 仇晓婷

大屏

parent ef929ef3
...@@ -29,7 +29,10 @@ export default { ...@@ -29,7 +29,10 @@ export default {
statistics() { statistics() {
// var lastData = [30, 25, 30, 20, 15, 18, 23, 21, 20, 10]; // var lastData = [30, 25, 30, 20, 15, 18, 23, 21, 20, 10];
// var thisData = [30, 0, 10, 20, 10, 30, 0, 10, 20, 20]; // var thisData = [30, 0, 10, 20, 10, 30, 0, 10, 20, 20];
var thisData = [
{ value: 216, name: "报废" },
{ value: 5881, name: "合格" },
];
this.braking = { this.braking = {
// backgroundColor: "rgba(7,28,52,1)", // backgroundColor: "rgba(7,28,52,1)",
title: { title: {
...@@ -48,7 +51,23 @@ export default { ...@@ -48,7 +51,23 @@ export default {
}, },
}, },
legend: { legend: {
data: ["报废", "合格"], formatter(params) {
var target;
if (params == "报废") {
return (target = params + " " + 258 + "件");
}
if (params == "合格") {
return (target = params + " " + 12514 + "件");
}
},
// data: [
// {
// name: "报废",
// },
// {
// name: "合格",
// },
// ],
top: "15%", top: "15%",
left: "2%", left: "2%",
orient: "vertical", orient: "vertical",
...@@ -233,6 +252,7 @@ export default { ...@@ -233,6 +252,7 @@ export default {
type: "pie", type: "pie",
z: 100, z: 100,
radius: "20%", radius: "20%",
// roseType: "radius",//扇形按比例显示
center: ["35%", "25%"], center: ["35%", "25%"],
labelLine: { labelLine: {
normal: { normal: {
......
...@@ -28,40 +28,40 @@ export default { ...@@ -28,40 +28,40 @@ export default {
hours: "116h", hours: "116h",
}, },
{ {
name: "张飞", name: "李四",
work: "操作失败", work: "操作失败",
type: "20", type: "28",
hours: "116h", hours: "112h",
}, },
{ {
name: "张飞", name: "王五",
work: "操作失败", work: "操作失败",
type: "20", type: "10",
hours: "116h", hours: "20h",
}, },
{ {
name: "张飞", name: "李四",
work: "操作失败", work: "操作失败",
type: "20", type: "8",
hours: "116h", hours: "6h",
}, },
{ {
name: "张飞", name: "刘云",
work: "操作失败", work: "操作失败",
type: "20", type: "66",
hours: "116h", hours: "25h",
}, },
{ {
name: "张飞", name: "张飞",
work: "操作失败", work: "操作失败",
type: "20", type: "2",
hours: "116h", hours: "18h",
}, },
{ {
name: "张飞", name: "张飞",
work: "操作失败", work: "操作失败",
type: "20", type: "99",
hours: "116h", hours: "55h",
}, },
], ],
}; };
...@@ -77,14 +77,14 @@ export default { ...@@ -77,14 +77,14 @@ export default {
line-height: 50px; line-height: 50px;
font-size: 17px; font-size: 17px;
padding-top: 2px; padding-top: 2px;
color: #106FFE; color: #106ffe;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
} }
.row-title { .row-title {
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
background: #2F2F57; background: #2f2f57;
} }
.item-row { .item-row {
height: 44px; height: 44px;
......
...@@ -147,11 +147,11 @@ export default { ...@@ -147,11 +147,11 @@ export default {
formatter: "{value}%", formatter: "{value}%",
}, },
axisLine: { axisLine: {
show: true, show: false,
lineStyle: { // lineStyle: {
color: "white", // color: "white",
opacity: 0.3, // opacity: 0.3,
}, // },
}, },
splitLine: { splitLine: {
show: true, show: true,
......
...@@ -23,40 +23,40 @@ export default { ...@@ -23,40 +23,40 @@ export default {
hours: "116h", hours: "116h",
}, },
{ {
name: "张飞", name: "李四",
work: "总装", work: "总装",
type: "电工组", type: "其他组",
hours: "116h", hours: "106h",
}, },
{ {
name: "张飞", name: "王三",
work: "总装", work: "总装",
type: "电工组", type: "其他组",
hours: "116h", hours: "20h",
}, },
{ {
name: "张飞", name: "李云",
work: "总装", work: "总装",
type: "电工组", type: "其他",
hours: "116h", hours: "55h",
}, },
{ {
name: "张飞", name: "张飞",
work: "总装", work: "总装",
type: "电工组", type: "电工组",
hours: "116h", hours: "69h",
}, },
{ {
name: "张飞", name: "王二小",
work: "总装", work: "总装",
type: "电工组", type: "电工组",
hours: "116h", hours: "78h",
}, },
{ {
name: "张飞", name: "张飞",
work: "总装", work: "技术",
type: "电工组", type: "技术组",
hours: "116h", hours: "99h",
}, },
], ],
}; };
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
h4 { h4 {
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
color: #106FFE; color: #106ffe;
margin-top: 20px; margin-top: 20px;
margin-left: 35px; margin-left: 35px;
font-size: 17px; font-size: 17px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment