维护卡号

jcbranch
fanluyan 11 months ago
parent 24669278b6
commit 8e0fa97fd7

@ -87,12 +87,43 @@
<el-table-column label="收" width="70">
<template slot-scope="scope">
<span>{{ scope.row.reportMap.recv }}</span>
<span
v-if="
scope.row.reportMap !== null &&
scope.row.reportMap.hasOwnProperty('XyDev')
"
>
<el-tooltip class="item" effect="dark" placement="top">
<div slot="content">
lastHbTime
{{
$moment(scope.row.reportMap.lastHbTime * 1000).format(
"YYYY-MM-DD HH:mm:ss"
)
}}
<br />
lastHbRespTime
{{
$moment(scope.row.reportMap.lastHbRespTime * 1000).format(
"YYYY-MM-DD HH:mm:ss"
)
}}
</div>
<span>
{{
$moment(scope.row.reportMap.lastRecvTime * 1000).format(
"HH:mm"
)
}}</span
>
</el-tooltip>
</span>
<span v-else> {{ scope.row.reportMap.recv }}</span>
</template>
</el-table-column>
<el-table-column label="传图" width="70">
<template slot-scope="scope">
<span>{{ scope.row.reportMap.pic }}</span>
<span>{{ scope.row.reportMap.uploads }}</span>
</template>
</el-table-column>
<el-table-column label="拍" width="60">

@ -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)

Loading…
Cancel
Save