|
@@ -41,42 +41,18 @@
|
|
>
|
|
>
|
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
<el-table-column label="序号" align="center" type="index" />
|
|
<el-table-column label="序号" align="center" type="index" />
|
|
- <el-table-column
|
|
|
|
- label="受检单位"
|
|
|
|
- align="center"
|
|
|
|
- prop="inspectedUnit"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- label="检查单位"
|
|
|
|
- align="center"
|
|
|
|
- prop="unitCheck"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- label="状态"
|
|
|
|
- align="center"
|
|
|
|
- prop="currentState"
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
+ <el-table-column label="受检单位" align="center" prop="inspectedUnit" />
|
|
|
|
+ <el-table-column label="检查单位" align="center" prop="unitCheck"></el-table-column>
|
|
|
|
+ <el-table-column label="状态" align="center" prop="currentState"></el-table-column>
|
|
<el-table-column label="减分" align="center" prop="score">
|
|
<el-table-column label="减分" align="center" prop="score">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div style="color: rgb(255 106 0)">{{ scope.row.score }}</div>
|
|
<div style="color: rgb(255 106 0)">{{ scope.row.score }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- label="事由"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
- align="center"
|
|
|
|
- prop="question"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- label="整改时间"
|
|
|
|
- align="center"
|
|
|
|
- prop="rectificationTime"
|
|
|
|
- width="180"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column label="事由" show-overflow-tooltip align="center" prop="question" />
|
|
|
|
+ <el-table-column label="整改时间" align="center" prop="rectificationTime" width="180">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>
|
|
|
|
- {{ parseTime(scope.row.rectificationTime, "{y}-{m}-{d}") }}
|
|
|
|
- </span>
|
|
|
|
|
|
+ <span>{{ parseTime(scope.row.rectificationTime, "{y}-{m}-{d}") }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -116,7 +92,7 @@ import {
|
|
pendingacceptance,
|
|
pendingacceptance,
|
|
completeproportion,
|
|
completeproportion,
|
|
unitproportion,
|
|
unitproportion,
|
|
- getRegularinfo,
|
|
|
|
|
|
+ getRegularinfo
|
|
} from "@/api/bdglregular/regularcountinfo";
|
|
} from "@/api/bdglregular/regularcountinfo";
|
|
import * as echarts from "echarts";
|
|
import * as echarts from "echarts";
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
@@ -126,7 +102,7 @@ export default {
|
|
return {
|
|
return {
|
|
peopleList: [],
|
|
peopleList: [],
|
|
peopleList2: [],
|
|
peopleList2: [],
|
|
- peopleList3: [],
|
|
|
|
|
|
+ peopleList3: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -143,31 +119,31 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getlist() {
|
|
getlist() {
|
|
- unitrank().then((res) => {
|
|
|
|
|
|
+ unitrank().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.peopleList = res.data;
|
|
this.peopleList = res.data;
|
|
|
|
|
|
- this.peopleList.forEach((item) => {
|
|
|
|
|
|
+ this.peopleList.forEach(item => {
|
|
return (item.zongfen = item.zongfen.split(".")[0]);
|
|
return (item.zongfen = item.zongfen.split(".")[0]);
|
|
});
|
|
});
|
|
- this.peopleList.forEach((item) => {
|
|
|
|
|
|
+ this.peopleList.forEach(item => {
|
|
return (item.subscore = item.subscore.split(".")[0]);
|
|
return (item.subscore = item.subscore.split(".")[0]);
|
|
});
|
|
});
|
|
- this.peopleList.forEach((item) => {
|
|
|
|
|
|
+ this.peopleList.forEach(item => {
|
|
return (item.addscore = item.addscore.split(".")[0]);
|
|
return (item.addscore = item.addscore.split(".")[0]);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getlist2() {
|
|
getlist2() {
|
|
- pendingacceptance().then((res) => {
|
|
|
|
|
|
+ pendingacceptance().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.peopleList2 = res.data;
|
|
this.peopleList2 = res.data;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getlist3() {
|
|
getlist3() {
|
|
- completeproportion().then((res) => {
|
|
|
|
|
|
+ completeproportion().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
var myChart = echarts.init(
|
|
var myChart = echarts.init(
|
|
document.getElementById("foot-left-content")
|
|
document.getElementById("foot-left-content")
|
|
@@ -176,22 +152,22 @@ export default {
|
|
title: {
|
|
title: {
|
|
text: "",
|
|
text: "",
|
|
subtext: "",
|
|
subtext: "",
|
|
- left: "",
|
|
|
|
|
|
+ left: ""
|
|
},
|
|
},
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: "item",
|
|
trigger: "item",
|
|
- formatter: "{a} <br/>{b} : {c} ({d}%)",
|
|
|
|
|
|
+ formatter: "{a} <br/>{b} : {c} ({d}%)"
|
|
},
|
|
},
|
|
- color: ["#5470c6", "#fac858", "#ee6666", "#91cc75"],
|
|
|
|
|
|
+ color: ["#5470c6", "#fac858", "#ee6666", "#91cc75", "#409EFF"],
|
|
legend: {
|
|
legend: {
|
|
orient: "vertical",
|
|
orient: "vertical",
|
|
right: "0",
|
|
right: "0",
|
|
top: "10%",
|
|
top: "10%",
|
|
itemGap: 20,
|
|
itemGap: 20,
|
|
textStyle: {
|
|
textStyle: {
|
|
- color: "#fff",
|
|
|
|
|
|
+ color: "#fff"
|
|
},
|
|
},
|
|
- data: ["待处理", "待验收", "未通过", "已通过"],
|
|
|
|
|
|
+ data: ["待处理", "待验收", "未通过", "已通过", "已逾期"]
|
|
},
|
|
},
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
@@ -206,9 +182,9 @@ export default {
|
|
textStyle: {
|
|
textStyle: {
|
|
fontWeight: 300,
|
|
fontWeight: 300,
|
|
fontSize: 16,
|
|
fontSize: 16,
|
|
- color: "#fff",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ color: "#fff"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
@@ -216,42 +192,46 @@ export default {
|
|
res.data[0].daiyanshou == 0
|
|
res.data[0].daiyanshou == 0
|
|
? null
|
|
? null
|
|
: res.data[0].daiyanshou,
|
|
: res.data[0].daiyanshou,
|
|
- name: "待验收",
|
|
|
|
|
|
+ name: "待验收"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value:
|
|
value:
|
|
res.data[0].daichuli == 0 ? null : res.data[0].daichuli,
|
|
res.data[0].daichuli == 0 ? null : res.data[0].daichuli,
|
|
- name: "待处理",
|
|
|
|
|
|
+ name: "待处理"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value:
|
|
value:
|
|
res.data[0].weitongguo == 0
|
|
res.data[0].weitongguo == 0
|
|
? null
|
|
? null
|
|
: res.data[0].weitongguo,
|
|
: res.data[0].weitongguo,
|
|
- name: "未通过",
|
|
|
|
|
|
+ name: "未通过"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value:
|
|
value:
|
|
res.data[0].yitongguo == 0 ? null : res.data[0].yitongguo,
|
|
res.data[0].yitongguo == 0 ? null : res.data[0].yitongguo,
|
|
- name: "已通过",
|
|
|
|
|
|
+ name: "已通过"
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ value: res.data[0].yiYuQi == 0 ? null : res.data[0].yiYuQi,
|
|
|
|
+ name: "已逾期"
|
|
|
|
+ }
|
|
],
|
|
],
|
|
emphasis: {
|
|
emphasis: {
|
|
itemStyle: {
|
|
itemStyle: {
|
|
shadowBlur: 10,
|
|
shadowBlur: 10,
|
|
shadowOffsetX: 0,
|
|
shadowOffsetX: 0,
|
|
- shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
|
|
- },
|
|
|
|
|
|
+ shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
|
|
+ }
|
|
},
|
|
},
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
//饼状图阴影,值越大阴影亮度越高
|
|
//饼状图阴影,值越大阴影亮度越高
|
|
shadowBlur: 5,
|
|
shadowBlur: 5,
|
|
- shadowColor: "#93DDFF",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ shadowColor: "#93DDFF"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
};
|
|
};
|
|
if (
|
|
if (
|
|
res.data[0].daiyanshou == 0 &&
|
|
res.data[0].daiyanshou == 0 &&
|
|
@@ -261,7 +241,7 @@ export default {
|
|
) {
|
|
) {
|
|
option.color = ["#255F8A"];
|
|
option.color = ["#255F8A"];
|
|
option.tooltip = {
|
|
option.tooltip = {
|
|
- show: false,
|
|
|
|
|
|
+ show: false
|
|
};
|
|
};
|
|
option.series[0].data = [{ value: 0, name: "无" }];
|
|
option.series[0].data = [{ value: 0, name: "无" }];
|
|
}
|
|
}
|
|
@@ -272,7 +252,7 @@ export default {
|
|
},
|
|
},
|
|
getlist4() {},
|
|
getlist4() {},
|
|
echarfun() {
|
|
echarfun() {
|
|
- unitproportion().then((res) => {
|
|
|
|
|
|
+ unitproportion().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.peopleList3 = res.data;
|
|
this.peopleList3 = res.data;
|
|
var roseCharts = document.getElementsByClassName("block");
|
|
var roseCharts = document.getElementsByClassName("block");
|
|
@@ -290,13 +270,13 @@ export default {
|
|
color: "#ffff",
|
|
color: "#ffff",
|
|
// fontSize: 12,
|
|
// fontSize: 12,
|
|
fontStyle: "normal",
|
|
fontStyle: "normal",
|
|
- fontWeight: "normal",
|
|
|
|
- },
|
|
|
|
|
|
+ fontWeight: "normal"
|
|
|
|
+ }
|
|
},
|
|
},
|
|
color: ["#5470c6", "#fac858", "#ee6666", "#91cc75"],
|
|
color: ["#5470c6", "#fac858", "#ee6666", "#91cc75"],
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: "item",
|
|
trigger: "item",
|
|
- formatter: "{a} <br/>{b} : {c} ({d}%)",
|
|
|
|
|
|
+ formatter: "{a} <br/>{b} : {c} ({d}%)"
|
|
},
|
|
},
|
|
// legend: {
|
|
// legend: {
|
|
// orient: "vertical",
|
|
// orient: "vertical",
|
|
@@ -322,9 +302,9 @@ export default {
|
|
textStyle: {
|
|
textStyle: {
|
|
fontWeight: 300,
|
|
fontWeight: 300,
|
|
fontSize: 16,
|
|
fontSize: 16,
|
|
- color: "#fff",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ color: "#fff"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
@@ -333,7 +313,7 @@ export default {
|
|
? null
|
|
? null
|
|
: this.peopleList3[i].daiyanshou,
|
|
: this.peopleList3[i].daiyanshou,
|
|
name: "待验收",
|
|
name: "待验收",
|
|
- id: this.peopleList3[i].deptId,
|
|
|
|
|
|
+ id: this.peopleList3[i].deptId
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value:
|
|
value:
|
|
@@ -341,7 +321,7 @@ export default {
|
|
? null
|
|
? null
|
|
: this.peopleList3[i].daichuli,
|
|
: this.peopleList3[i].daichuli,
|
|
name: "待处理",
|
|
name: "待处理",
|
|
- id: this.peopleList3[i].deptId,
|
|
|
|
|
|
+ id: this.peopleList3[i].deptId
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value:
|
|
value:
|
|
@@ -349,7 +329,7 @@ export default {
|
|
? null
|
|
? null
|
|
: this.peopleList3[i].weitongguo,
|
|
: this.peopleList3[i].weitongguo,
|
|
name: "未通过",
|
|
name: "未通过",
|
|
- id: this.peopleList3[i].deptId,
|
|
|
|
|
|
+ id: this.peopleList3[i].deptId
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value:
|
|
value:
|
|
@@ -357,25 +337,25 @@ export default {
|
|
? null
|
|
? null
|
|
: this.peopleList3[i].yitongguo,
|
|
: this.peopleList3[i].yitongguo,
|
|
name: "已通过",
|
|
name: "已通过",
|
|
- id: this.peopleList3[i].deptId,
|
|
|
|
- },
|
|
|
|
|
|
+ id: this.peopleList3[i].deptId
|
|
|
|
+ }
|
|
],
|
|
],
|
|
emphasis: {
|
|
emphasis: {
|
|
itemStyle: {
|
|
itemStyle: {
|
|
shadowBlur: 10,
|
|
shadowBlur: 10,
|
|
shadowOffsetX: 0,
|
|
shadowOffsetX: 0,
|
|
- shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
|
|
- },
|
|
|
|
|
|
+ shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
|
|
+ }
|
|
},
|
|
},
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
//饼状图阴影,值越大阴影亮度越高
|
|
//饼状图阴影,值越大阴影亮度越高
|
|
shadowBlur: 5,
|
|
shadowBlur: 5,
|
|
- shadowColor: "#93DDFF",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ shadowColor: "#93DDFF"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
};
|
|
};
|
|
if (
|
|
if (
|
|
this.peopleList3[i].daiyanshou == 0 &&
|
|
this.peopleList3[i].daiyanshou == 0 &&
|
|
@@ -385,7 +365,7 @@ export default {
|
|
) {
|
|
) {
|
|
option.color = ["#255F8A"];
|
|
option.color = ["#255F8A"];
|
|
option.tooltip = {
|
|
option.tooltip = {
|
|
- show: false,
|
|
|
|
|
|
+ show: false
|
|
};
|
|
};
|
|
option.series[0].data = [{ value: 0, name: "无" }];
|
|
option.series[0].data = [{ value: 0, name: "无" }];
|
|
}
|
|
}
|
|
@@ -401,7 +381,7 @@ export default {
|
|
.push({
|
|
.push({
|
|
path: "/bdglregular/regularinfo",
|
|
path: "/bdglregular/regularinfo",
|
|
// query: { id: row.inspectedUnitId,inspectedUnitId:row.inspectedUnitId,currentState:currentState },
|
|
// query: { id: row.inspectedUnitId,inspectedUnitId:row.inspectedUnitId,currentState:currentState },
|
|
- query: { obj: row },
|
|
|
|
|
|
+ query: { obj: row }
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
@@ -412,7 +392,7 @@ export default {
|
|
this.$router
|
|
this.$router
|
|
.push({
|
|
.push({
|
|
path: "/bdglregular/regularinfo",
|
|
path: "/bdglregular/regularinfo",
|
|
- query: { obj: param.data },
|
|
|
|
|
|
+ query: { obj: param.data }
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
}
|
|
}
|
|
@@ -423,12 +403,12 @@ export default {
|
|
this.$router
|
|
this.$router
|
|
.push({
|
|
.push({
|
|
path: "/bdglregular/regularinfo",
|
|
path: "/bdglregular/regularinfo",
|
|
- query: { obj: param.data },
|
|
|
|
|
|
+ query: { obj: param.data }
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
}
|
|
}
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|