维护卡号

jcbranch
fanluyan 11 months ago
parent 24669278b6
commit 8e0fa97fd7

@ -87,12 +87,43 @@
<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
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> </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.uploads }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="拍" width="60"> <el-table-column label="拍" width="60">

@ -234,8 +234,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
{{ {{
scope.row.mntnStatus.reportMap && scope.row.mntnStatus.reportMap &&
scope.row.mntnStatus.reportMap.hasOwnProperty("pic") scope.row.mntnStatus.reportMap.hasOwnProperty("uploads")
? Number(scope.row.mntnStatus.reportMap.pic) ? Number(scope.row.mntnStatus.reportMap.uploads)
: 0 : 0
}} }}
</template> </template>
@ -307,12 +307,44 @@
</u-table-column> </u-table-column>
<u-table-column label="CMA消息" min-width="48"> <u-table-column label="CMA消息" min-width="48">
<template slot-scope="scope"> <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 !== null &&
scope.row.mntnStatus.reportMap.hasOwnProperty("recv") scope.row.mntnStatus.reportMap.hasOwnProperty("recv")
? scope.row.mntnStatus.reportMap.recv ? scope.row.mntnStatus.reportMap.recv
: 0 : 0
}}</span> }}</span> -->
</template> </template>
</u-table-column> </u-table-column>
</u-table-column> </u-table-column>
@ -2068,15 +2100,13 @@ export default {
}, },
// //
sendMsg() { sendMsg() {
if (this.multipleSelection.length == 1) { if (this.idArray.length !== 0) {
console.log(this.multipleSelection);
this.senMsgVisible = true; this.senMsgVisible = true;
} else { } else {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: "只能选中一个设备", message: "最少选中一个设备",
type: "warning", type: "warning",
}); });
return; return;
@ -2085,7 +2115,7 @@ export default {
handleSend(item) { handleSend(item) {
console.log(item); console.log(item);
let params = { let params = {
termId: this.multipleSelection[0].id, termIdList: this.idArray,
content: item.value, content: item.value,
}; };
sendMsgApi(params) sendMsgApi(params)
@ -2108,7 +2138,7 @@ export default {
// //
handlemsgSend() { handlemsgSend() {
let params = { let params = {
termId: this.multipleSelection[0].id, termIdList: this.idArray,
content: this.sendForm.msginfo, content: this.sendForm.msginfo,
}; };
sendMsgApi(params) sendMsgApi(params)

Loading…
Cancel
Save