优化report

jcbranch
fanluyan 1 year ago
parent ca9524d248
commit d72d98b6e2

@ -18,9 +18,10 @@
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="时间"> <el-table-column prop="createTime" label="时间">
<template slot-scope="scope"> <template slot-scope="scope">
{{ $moment(scope.row.createTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(scope.row.createTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="id"> <el-table-column label="id">
<template slot-scope="scope"> <template slot-scope="scope">
@ -41,83 +42,88 @@
<el-table-column label="电池"> <el-table-column label="电池">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.battery }}</span> <span>{{ scope.row.reportMap.battery }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="电池温度" width="70"> <el-table-column label="电池温度" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.batteryTmp }}</span> <span>{{ scope.row.reportMap.batteryTmp }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="主板温度" width="70"> <el-table-column label="主板温度" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.mainBoardTmp }}</span> <span>{{ scope.row.reportMap.mainBoardTmp }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="系统重启" width="70"> <el-table-column label="系统重启" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.rebootTimes }}</span> <span>{{ scope.row.reportMap.rebootTimes }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="i1重启" width="70"> <el-table-column label="i1重启" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.i1RebootTimes }}</span> <span>{{ scope.row.reportMap.i1RebootTimes }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="收" width="70"> <el-table-column label="收" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.recv }}</span> <span>{{ scope.row.reportMap.recv }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="传图" width="70"> <el-table-column label="传图" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.pic }}</span> <span>{{ scope.row.reportMap.pic }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="拍" width="60"> <el-table-column label="拍" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.photoTimes }}</span> <span>{{ scope.row.reportMap.photoTimes }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="成/败/传" width="70"> <el-table-column label="成/败/传" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<span> {{ scope.row.reportMap.success }}/{{ <span>
{{ scope.row.reportMap.success }}/{{
scope.row.reportMap.failure scope.row.reportMap.failure
}}/{{ scope.row.reportMap.uploads }}</span> }}/{{ scope.row.reportMap.uploads }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="心跳累计" width="80"> <el-table-column label="心跳累计" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.numberOfHb }}</span> <span>{{ scope.row.reportMap.numberOfHb }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="网络异常" width="80"> <el-table-column label="网络异常" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.networkError }}</span> <span>{{ scope.row.reportMap.networkError }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="信号1" width="60"> <el-table-column label="信号1" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.signature1 }}</span> <span
v-if="
scope.row.reportMap !== null &&
scope.row.reportMap.hasOwnProperty('XyDev')
"
>
{{ scope.row.reportMap.signalLevel1 }}</span
>
<span v-else> {{ scope.row.reportMap.signature1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="信号2" width="60"> <el-table-column label="信号2" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.reportMap.signature2 }}</span> <span
v-if="
scope.row.reportMap !== null &&
scope.row.reportMap.hasOwnProperty('XyDev')
"
>
{{ scope.row.reportMap.signalLevel2 }}</span
>
<span v-else> {{ scope.row.reportMap.signature2 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="其他"> <!-- <el-table-column label="其他">
@ -186,7 +192,7 @@ export default {
}, },
getQueryList() { getQueryList() {
this.girdloading = true; this.girdloading = true;
this.gridData = [] this.gridData = [];
heartListApi({ heartListApi({
termId: this.termid, termId: this.termid,
pageNum: this.page, pageNum: this.page,
@ -195,7 +201,7 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.gridData = res.data.list; this.gridData = res.data.list;
this.total = Number(res.data.total); this.total = Number(res.data.total);
this.girdloading = false; this.girdloading = false;
}) })
.catch((err) => {}); .catch((err) => {});

@ -463,6 +463,7 @@ export default {
line-height: 40px; line-height: 40px;
display: flex; display: flex;
align-items: center; align-items: center;
white-space: nowrap;
.title { .title {
font-size: 16px; font-size: 16px;
font-weight: normal; font-weight: normal;

Loading…
Cancel
Save