|
|
|
@ -27,10 +27,14 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
<selectLine></selectLine>
|
|
|
|
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
|
|
|
<el-button class="exportBtn" type="primary" @click="deviceExport"
|
|
|
|
|
>导出列表</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="boxLogTable">
|
|
|
|
|
<el-table
|
|
|
|
|
id="deciceTable"
|
|
|
|
|
v-loading="picLoading"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
border
|
|
|
|
@ -38,10 +42,10 @@
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
height="100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号">
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" fixed="left">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="线路" show-overflow-tooltip>
|
|
|
|
|
<el-table-column label="线路" fixed="left">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-link
|
|
|
|
|
type="primary"
|
|
|
|
@ -51,22 +55,22 @@
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="day" label="日期">
|
|
|
|
|
<el-table-column label="日期" fixed="left">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.dayList[0].day }}
|
|
|
|
|
{{ scope.row.dayList[0].day.split(" ")[0] }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="装置总数">
|
|
|
|
|
<el-table-column label="装置总数" fixed="left">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.termList.length }}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="运维上线数量">
|
|
|
|
|
<el-table-column label="运维上线数量" width="70px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.dayList[0].termList.length }}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="运维上线率">
|
|
|
|
|
<el-table-column label="运维上线率" width="70px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
@ -77,7 +81,7 @@
|
|
|
|
|
}}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="上图设备数量">
|
|
|
|
|
<el-table-column label="上图设备数量" width="70px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.dayList[0].termList.filter(
|
|
|
|
@ -86,7 +90,7 @@
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="cmdid" label="上图率">
|
|
|
|
|
<el-table-column label="上图率">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
@ -129,6 +133,171 @@
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="运维上线数量(昨天)"
|
|
|
|
|
width="70px"
|
|
|
|
|
class-name="yestoday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.dayList[1].termList.length }}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="运维上线率(昨天)"
|
|
|
|
|
width="70px"
|
|
|
|
|
class-name="yestoday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
|
(scope.row.dayList[1].termList.length /
|
|
|
|
|
scope.row.termList.length) *
|
|
|
|
|
100
|
|
|
|
|
).toFixed(2) + "%"
|
|
|
|
|
}}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="上图设备数量(昨天)"
|
|
|
|
|
width="70px"
|
|
|
|
|
class-name="yestoday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.dayList[1].termList.filter(
|
|
|
|
|
(term) => parseInt(term.uploads, 10) > 0
|
|
|
|
|
).length
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="上图率(昨天)" class-name="yestoday">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
|
(scope.row.dayList[1].termList.filter(
|
|
|
|
|
(term) => parseInt(term.uploads, 10) > 0
|
|
|
|
|
).length /
|
|
|
|
|
scope.row.termList.length) *
|
|
|
|
|
100
|
|
|
|
|
).toFixed(2) + "%"
|
|
|
|
|
}}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="正常上图设备数量(昨天)" class-name="yestoday">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.dayList[1].termList.filter(
|
|
|
|
|
(term) =>
|
|
|
|
|
parseInt(term.uploads, 10) >=
|
|
|
|
|
(parseInt(scope.row.line.photoCount, 10) *
|
|
|
|
|
parseInt(scope.row.line.photoRate.replace("%", ""), 10)) /
|
|
|
|
|
100
|
|
|
|
|
).length
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="正常上图率(昨天)" class-name="yestoday">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
|
(scope.row.dayList[1].termList.filter(
|
|
|
|
|
(term) =>
|
|
|
|
|
parseInt(term.uploads, 10) >=
|
|
|
|
|
(parseInt(scope.row.line.photoCount, 10) *
|
|
|
|
|
parseInt(scope.row.line.photoRate.replace("%", ""), 10)) /
|
|
|
|
|
100
|
|
|
|
|
).length /
|
|
|
|
|
scope.row.termList.length) *
|
|
|
|
|
100
|
|
|
|
|
).toFixed(2) + "%"
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="运维上线数量(前天)"
|
|
|
|
|
width="70px"
|
|
|
|
|
class-name="beforeday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.dayList[2].termList.length }}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="运维上线率(前天)"
|
|
|
|
|
width="70px"
|
|
|
|
|
class-name="beforeday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
|
(scope.row.dayList[2].termList.length /
|
|
|
|
|
scope.row.termList.length) *
|
|
|
|
|
100
|
|
|
|
|
).toFixed(2) + "%"
|
|
|
|
|
}}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="上图设备数量(前天)"
|
|
|
|
|
width="70px"
|
|
|
|
|
class-name="beforeday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.dayList[2].termList.filter(
|
|
|
|
|
(term) => parseInt(term.uploads, 10) > 0
|
|
|
|
|
).length
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="上图率(前天)" class-name="beforeday">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
|
(scope.row.dayList[2].termList.filter(
|
|
|
|
|
(term) => parseInt(term.uploads, 10) > 0
|
|
|
|
|
).length /
|
|
|
|
|
scope.row.termList.length) *
|
|
|
|
|
100
|
|
|
|
|
).toFixed(2) + "%"
|
|
|
|
|
}}</template
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="正常上图设备数量(前天)"
|
|
|
|
|
class-name="beforeday"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.dayList[2].termList.filter(
|
|
|
|
|
(term) =>
|
|
|
|
|
parseInt(term.uploads, 10) >=
|
|
|
|
|
(parseInt(scope.row.line.photoCount, 10) *
|
|
|
|
|
parseInt(scope.row.line.photoRate.replace("%", ""), 10)) /
|
|
|
|
|
100
|
|
|
|
|
).length
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="正常上图率(前天)" class-name="beforeday">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
(
|
|
|
|
|
(scope.row.dayList[2].termList.filter(
|
|
|
|
|
(term) =>
|
|
|
|
|
parseInt(term.uploads, 10) >=
|
|
|
|
|
(parseInt(scope.row.line.photoCount, 10) *
|
|
|
|
|
parseInt(scope.row.line.photoRate.replace("%", ""), 10)) /
|
|
|
|
|
100
|
|
|
|
|
).length /
|
|
|
|
|
scope.row.termList.length) *
|
|
|
|
|
100
|
|
|
|
|
).toFixed(2) + "%"
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -139,6 +308,8 @@
|
|
|
|
|
import { picRportApi } from "@/utils/api/index";
|
|
|
|
|
import selectLine from "./components/selectLine";
|
|
|
|
|
import lineStatusDialog from "./components/lineStatusDialog";
|
|
|
|
|
import htmlToExcel from "@/utils/htmlToExcel";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "picReport",
|
|
|
|
|
components: { selectLine, lineStatusDialog },
|
|
|
|
@ -151,7 +322,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
formdata: {
|
|
|
|
|
starttime: new Date(new Date().setHours(0, 0, 0, 0)).getTime(), // 设置开始时间为当天凌晨00:00:00的时间戳,
|
|
|
|
|
starttime:
|
|
|
|
|
new Date(new Date().setHours(0, 0, 0, 0)).getTime() -
|
|
|
|
|
3 * 24 * 60 * 60 * 1000, // 设置开始时间为当天凌晨00:00:00的时间戳, // 设置开始时间为当天凌晨00:00:00的时间戳,
|
|
|
|
|
endtime: new Date(new Date().setHours(23, 59, 59, 0)).getTime(), // 设置结束时间为当天夜晚23:59:59的时间戳
|
|
|
|
|
},
|
|
|
|
|
tableData: [],
|
|
|
|
@ -172,6 +345,10 @@ export default {
|
|
|
|
|
console.log(this.localSelectLine);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//导出活动列表表格
|
|
|
|
|
deviceExport() {
|
|
|
|
|
htmlToExcel.getExcel("#deciceTable", "运维在线率列表");
|
|
|
|
|
},
|
|
|
|
|
onSubmit() {
|
|
|
|
|
if (this.formdata.starttime > this.formdata.endtime) {
|
|
|
|
|
return this.$message({
|
|
|
|
@ -230,7 +407,9 @@ export default {
|
|
|
|
|
align-items: center;
|
|
|
|
|
height: 32px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
|
|
.exportBtn {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
}
|
|
|
|
|
h3 {
|
|
|
|
|
margin-right: 24px;
|
|
|
|
|
}
|
|
|
|
@ -250,7 +429,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
.boxLogTable {
|
|
|
|
|
height: calc(100% - 44px);
|
|
|
|
|
|
|
|
|
|
.yestoday {
|
|
|
|
|
background: #b1f5e8 !important;
|
|
|
|
|
color: #000;
|
|
|
|
|
}
|
|
|
|
|
.beforeday {
|
|
|
|
|
background: #dfe745 !important;
|
|
|
|
|
color: #000;
|
|
|
|
|
}
|
|
|
|
|
.el-table__cell {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|