|
@@ -115,7 +115,7 @@ import {
|
|
|
unitrank,
|
|
|
pendingacceptance,
|
|
|
completeproportion,
|
|
|
- unitproportion
|
|
|
+ unitproportion,
|
|
|
} from "@/api/bdglregular/specialcountinfo";
|
|
|
import * as echarts from "echarts";
|
|
|
export default {
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
return {
|
|
|
peopleList: [],
|
|
|
peopleList2: [],
|
|
|
- peopleList3: []
|
|
|
+ peopleList3: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getlist() {
|
|
|
- unitrank().then(res => {
|
|
|
+ unitrank().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.peopleList = res.data;
|
|
|
this.peopleList.forEach((item) => {
|
|
@@ -152,14 +152,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getlist2() {
|
|
|
- pendingacceptance().then(res => {
|
|
|
+ pendingacceptance().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.peopleList2 = res.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
getlist3() {
|
|
|
- completeproportion().then(res => {
|
|
|
+ completeproportion().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
var myChart = echarts.init(
|
|
|
document.getElementById("foot-left-content")
|
|
@@ -169,11 +169,11 @@ export default {
|
|
|
title: {
|
|
|
text: "",
|
|
|
subtext: "",
|
|
|
- left: ""
|
|
|
+ left: "",
|
|
|
},
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
- formatter: "{a} <br/>{b} : {c} ({d}%)"
|
|
|
+ formatter: "{a} <br/>{b} : {c} ({d}%)",
|
|
|
},
|
|
|
color: ["#fac858", "#5470c6", "#ee6666", "#91cc75"],
|
|
|
legend: {
|
|
@@ -182,9 +182,9 @@ export default {
|
|
|
top: "10%",
|
|
|
itemGap: 20,
|
|
|
textStyle: {
|
|
|
- color: "#fff"
|
|
|
+ color: "#fff",
|
|
|
},
|
|
|
- data: ["待处理", "待验收", "未通过", "已通过"]
|
|
|
+ data: ["待处理", "待验收", "未通过", "已通过"],
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
@@ -199,9 +199,9 @@ export default {
|
|
|
textStyle: {
|
|
|
fontWeight: 300,
|
|
|
fontSize: 16,
|
|
|
- color: "#fff"
|
|
|
- }
|
|
|
- }
|
|
|
+ color: "#fff",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
@@ -209,42 +209,42 @@ export default {
|
|
|
res.data[0].daiyanshou == 0
|
|
|
? null
|
|
|
: res.data[0].daiyanshou,
|
|
|
- name: "待验收"
|
|
|
+ name: "待验收",
|
|
|
},
|
|
|
{
|
|
|
value:
|
|
|
res.data[0].daichuli == 0 ? null : res.data[0].daichuli,
|
|
|
- name: "待处理"
|
|
|
+ name: "待处理",
|
|
|
},
|
|
|
{
|
|
|
value:
|
|
|
res.data[0].weitongguo == 0
|
|
|
? null
|
|
|
: res.data[0].weitongguo,
|
|
|
- name: "未通过"
|
|
|
+ name: "未通过",
|
|
|
},
|
|
|
{
|
|
|
value:
|
|
|
res.data[0].yitongguo == 0 ? null : res.data[0].yitongguo,
|
|
|
- name: "已通过"
|
|
|
- }
|
|
|
+ name: "已通过",
|
|
|
+ },
|
|
|
],
|
|
|
emphasis: {
|
|
|
itemStyle: {
|
|
|
shadowBlur: 10,
|
|
|
shadowOffsetX: 0,
|
|
|
- shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
|
- }
|
|
|
+ shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
|
+ },
|
|
|
},
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
//饼状图阴影,值越大阴影亮度越高
|
|
|
shadowBlur: 5,
|
|
|
- shadowColor: "#93DDFF"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ shadowColor: "#93DDFF",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
if (
|
|
|
res.data[0].daiyanshou == 0 &&
|
|
@@ -254,18 +254,18 @@ export default {
|
|
|
) {
|
|
|
option.color = ["#255F8A"];
|
|
|
option.tooltip = {
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
};
|
|
|
option.series[0].data = [{ value: 0, name: "无" }];
|
|
|
}
|
|
|
myChart.setOption(option);
|
|
|
- myChart.on("click", this.eConsole1);
|
|
|
+ myChart.on("click", this.eConsole1);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
getlist4() {},
|
|
|
echarfun() {
|
|
|
- unitproportion().then(res => {
|
|
|
+ unitproportion().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.peopleList3 = res.data;
|
|
|
var roseCharts = document.getElementsByClassName("block");
|
|
@@ -283,13 +283,13 @@ export default {
|
|
|
color: "#ffff",
|
|
|
// fontSize: 12,
|
|
|
fontStyle: "normal",
|
|
|
- fontWeight: "normal"
|
|
|
- }
|
|
|
+ fontWeight: "normal",
|
|
|
+ },
|
|
|
},
|
|
|
color: ["#fac858", "#5470c6", "#ee6666", "#91cc75"],
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
- formatter: "{a} <br/>{b} : {c} ({d}%)"
|
|
|
+ formatter: "{a} <br/>{b} : {c} ({d}%)",
|
|
|
},
|
|
|
// legend: {
|
|
|
// orient: "vertical",
|
|
@@ -315,9 +315,9 @@ export default {
|
|
|
textStyle: {
|
|
|
fontWeight: 300,
|
|
|
fontSize: 16,
|
|
|
- color: "#fff"
|
|
|
- }
|
|
|
- }
|
|
|
+ color: "#fff",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
@@ -326,7 +326,7 @@ export default {
|
|
|
? null
|
|
|
: this.peopleList3[i].daiyanshou,
|
|
|
name: "待验收",
|
|
|
- id: this.peopleList3[i].deptId
|
|
|
+ id: this.peopleList3[i].deptId,
|
|
|
},
|
|
|
{
|
|
|
value:
|
|
@@ -334,7 +334,7 @@ export default {
|
|
|
? null
|
|
|
: this.peopleList3[i].daichuli,
|
|
|
name: "待处理",
|
|
|
- id: this.peopleList3[i].deptId
|
|
|
+ id: this.peopleList3[i].deptId,
|
|
|
},
|
|
|
{
|
|
|
value:
|
|
@@ -342,7 +342,7 @@ export default {
|
|
|
? null
|
|
|
: this.peopleList3[i].weitonguo,
|
|
|
name: "未通过",
|
|
|
- id: this.peopleList3[i].deptId
|
|
|
+ id: this.peopleList3[i].deptId,
|
|
|
},
|
|
|
{
|
|
|
value:
|
|
@@ -350,25 +350,25 @@ export default {
|
|
|
? null
|
|
|
: this.peopleList3[i].yitongguo,
|
|
|
name: "已通过",
|
|
|
- id: this.peopleList3[i].deptId
|
|
|
- }
|
|
|
+ id: this.peopleList3[i].deptId,
|
|
|
+ },
|
|
|
],
|
|
|
emphasis: {
|
|
|
itemStyle: {
|
|
|
shadowBlur: 10,
|
|
|
shadowOffsetX: 0,
|
|
|
- shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
|
- }
|
|
|
+ shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
|
+ },
|
|
|
},
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
//饼状图阴影,值越大阴影亮度越高
|
|
|
shadowBlur: 5,
|
|
|
- shadowColor: "#93DDFF"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ shadowColor: "#93DDFF",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
if (
|
|
|
this.peopleList3[i].daiyanshou == 0 &&
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
) {
|
|
|
option.color = ["#255F8A"];
|
|
|
option.tooltip = {
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
};
|
|
|
option.series[0].data = [{ value: 0, name: "无" }];
|
|
|
}
|
|
@@ -392,7 +392,7 @@ export default {
|
|
|
this.$router
|
|
|
.push({
|
|
|
path: "/bdglregular/specialinfo",
|
|
|
- query: { id: row.inspectedUnitId }
|
|
|
+ query: { id: row.inspectedUnitId },
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
@@ -402,23 +402,23 @@ export default {
|
|
|
this.$router
|
|
|
.push({
|
|
|
path: "/bdglregular/specialinfo",
|
|
|
- query: { obj: param.data }
|
|
|
+ query: { obj: param.data },
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
},
|
|
|
- //全部饼状图点击事件
|
|
|
+ //全部饼状图点击事件
|
|
|
eConsole1(param) {
|
|
|
if (param.data) {
|
|
|
this.$router
|
|
|
.push({
|
|
|
path: "/bdglregular/specialinfo",
|
|
|
- query: {}
|
|
|
+ query: {},
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -524,4 +524,7 @@ export default {
|
|
|
width: 300px;
|
|
|
height: 300px;
|
|
|
}
|
|
|
+::v-deep .el-table .el-table__cell.gutter {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
</style>
|