|
|
|
@ -234,8 +234,8 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.mntnStatus.reportMap &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("pic")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.pic)
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("uploads")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.uploads)
|
|
|
|
|
: 0
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
@ -307,12 +307,44 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="CMA消息" min-width="48">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty('XyDev')
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<el-tooltip class="item" effect="dark" placement="top">
|
|
|
|
|
<div slot="content">
|
|
|
|
|
lastHbTime:
|
|
|
|
|
{{
|
|
|
|
|
$moment(
|
|
|
|
|
scope.row.mntnStatus.reportMap.lastHbTime * 1000
|
|
|
|
|
).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
}}
|
|
|
|
|
<br />
|
|
|
|
|
lastHbRespTime:
|
|
|
|
|
{{
|
|
|
|
|
$moment(
|
|
|
|
|
scope.row.mntnStatus.reportMap.lastHbRespTime * 1000
|
|
|
|
|
).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
|
|
|
|
<span>
|
|
|
|
|
{{
|
|
|
|
|
$moment(
|
|
|
|
|
scope.row.mntnStatus.reportMap.lastRecvTime * 1000
|
|
|
|
|
).format("HH:mm")
|
|
|
|
|
}}</span
|
|
|
|
|
>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</span>
|
|
|
|
|
<span v-else> {{ scope.row.mntnStatus.reportMap.recv }}</span>
|
|
|
|
|
<!-- <span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("recv")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.recv
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
}}</span> -->
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -2068,15 +2100,13 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//下发短信
|
|
|
|
|
sendMsg() {
|
|
|
|
|
if (this.multipleSelection.length == 1) {
|
|
|
|
|
console.log(this.multipleSelection);
|
|
|
|
|
|
|
|
|
|
if (this.idArray.length !== 0) {
|
|
|
|
|
this.senMsgVisible = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: "只能选中一个设备",
|
|
|
|
|
message: "最少选中一个设备",
|
|
|
|
|
type: "warning",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
@ -2085,7 +2115,7 @@ export default {
|
|
|
|
|
handleSend(item) {
|
|
|
|
|
console.log(item);
|
|
|
|
|
let params = {
|
|
|
|
|
termId: this.multipleSelection[0].id,
|
|
|
|
|
termIdList: this.idArray,
|
|
|
|
|
content: item.value,
|
|
|
|
|
};
|
|
|
|
|
sendMsgApi(params)
|
|
|
|
@ -2108,7 +2138,7 @@ export default {
|
|
|
|
|
//自定义输入
|
|
|
|
|
handlemsgSend() {
|
|
|
|
|
let params = {
|
|
|
|
|
termId: this.multipleSelection[0].id,
|
|
|
|
|
termIdList: this.idArray,
|
|
|
|
|
content: this.sendForm.msginfo,
|
|
|
|
|
};
|
|
|
|
|
sendMsgApi(params)
|
|
|
|
|