|
|
@@ -75,11 +75,11 @@
|
|
|
label="品牌"
|
|
|
>
|
|
|
<!--<template slot-scope="scope">-->
|
|
|
- <!--<el-tooltip class="item" effect="dark" :content="scope.row.ProduceCom" placement="top-start">-->
|
|
|
- <!--<span>-->
|
|
|
- <!--{{ scope.row.ProduceCom.length > 40 ? scope.row.ProduceCom.substr(0,40)+'...' : scope.row.ProduceCom }}-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</el-tooltip>-->
|
|
|
+ <!--<el-tooltip class="item" effect="dark" :content="scope.row.ProduceCom" placement="top-start">-->
|
|
|
+ <!--<span>-->
|
|
|
+ <!--{{ scope.row.ProduceCom.length > 40 ? scope.row.ProduceCom.substr(0,40)+'...' : scope.row.ProduceCom }}-->
|
|
|
+ <!--</span>-->
|
|
|
+ <!--</el-tooltip>-->
|
|
|
<!--</template>-->
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -98,14 +98,17 @@
|
|
|
<el-table-column
|
|
|
prop="SignalIntensity"
|
|
|
label="信号强度"
|
|
|
+ :formatter="filterSignal"
|
|
|
width="120"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="EditTime"
|
|
|
- label="检测时间"
|
|
|
- :formatter="filterFmtDate"
|
|
|
- width="180">
|
|
|
+ prop="BeginTime"
|
|
|
+ label="运行时间"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.BeginTime|filterFmtDate}} --- {{scope.row.EndTime|filterFmtDate}}
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="DangerLevel"
|
|
|
@@ -291,15 +294,21 @@
|
|
|
sortChange(params) {
|
|
|
console.log(params)
|
|
|
},
|
|
|
- // 过滤时间
|
|
|
- filterFmtDate(value, row, column) {
|
|
|
- return globalfmtDate(column, 10);
|
|
|
- },
|
|
|
// 过滤金额
|
|
|
filterMoney(value, row, column) {
|
|
|
return parseFloat(column).toFixed(2);
|
|
|
},
|
|
|
+ filterSignal(val, row, column) {
|
|
|
+ //127信号是无效强度状态
|
|
|
+ return column = column == 127 ? '- -' : column;
|
|
|
+ }
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ // 过滤时间
|
|
|
+ filterFmtDate(column) {
|
|
|
+ return nonTfmtDate(column, 16);
|
|
|
+ },
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|