|
@ -30,7 +30,7 @@ |
|
|
<el-table-column label="设备标签" align="center" prop="tags" /> |
|
|
<el-table-column label="设备标签" align="center" prop="tags" /> |
|
|
<el-table-column label="接入协议 " align="center" prop="protocol" /> |
|
|
<el-table-column label="接入协议 " align="center" prop="protocol" /> |
|
|
<el-table-column label="位置" align="center" prop="location" /> |
|
|
<el-table-column label="位置" align="center" prop="location" /> |
|
|
<el-table-column label="NBIOT设备" align="center" prop="authInfo" /> |
|
|
<el-table-column label="NBIOT设备" align="center" prop="authInfo" width="300"/> |
|
|
<el-table-column label="其他信息" align="center" prop="otherInfo" /> |
|
|
<el-table-column label="其他信息" align="center" prop="otherInfo" /> |
|
|
<el-table-column label="写设备资源" align="center" class-name="small-padding fixed-width"> |
|
|
<el-table-column label="写设备资源" align="center" class-name="small-padding fixed-width"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
@ -56,6 +56,18 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="缓存命令记录" align="center" class-name="small-padding fixed-width"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="mini" |
|
|
|
|
|
type="text" |
|
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
|
@click="getHistory(scope.row)" |
|
|
|
|
|
v-hasPermi="['device:equips:edit']" |
|
|
|
|
|
>缓存命令记录</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column label="onenet推送记录" align="center" class-name="small-padding fixed-width"> |
|
|
<el-table-column label="onenet推送记录" align="center" class-name="small-padding fixed-width"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button |
|
|
<el-button |
|
@ -226,6 +238,35 @@ |
|
|
|
|
|
|
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 缓存命令记录--> |
|
|
|
|
|
<el-dialog title="缓存命令记录" :visible.sync="historyOpen" width="80%"> |
|
|
|
|
|
<el-form :model="historyParam" ref="queryFormEquipData" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
|
|
|
|
|
<el-form-item label="时间" prop="otherInfo"> |
|
|
|
|
|
<el-date-picker |
|
|
|
|
|
v-model="historyParam.historyTime" |
|
|
|
|
|
type="daterange" |
|
|
|
|
|
range-separator="至" |
|
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
|
end-placeholder="结束日期" @click=""> |
|
|
|
|
|
</el-date-picker> |
|
|
|
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="getHistory(null)">搜索</el-button> |
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetHistory">重置</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="historyList"> |
|
|
|
|
|
<el-table-column label="命令" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{scope.row}} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- onenet推送记录--> |
|
|
<!-- onenet推送记录--> |
|
|
<el-dialog title="onenet推送记录" :visible.sync="receiveDataOpen" width="80%"> |
|
|
<el-dialog title="onenet推送记录" :visible.sync="receiveDataOpen" width="80%"> |
|
|
<el-table v-loading="loading" :data="receiveDataList"> |
|
|
<el-table v-loading="loading" :data="receiveDataList"> |
|
@ -253,7 +294,7 @@ import { |
|
|
addEquips, |
|
|
addEquips, |
|
|
updateEquips, |
|
|
updateEquips, |
|
|
getApiKey, |
|
|
getApiKey, |
|
|
writeCommand, listEquipDatas, listReceiveDatas |
|
|
writeCommand, listEquipDatas, listReceiveDatas, listHistorys |
|
|
} from "@/api/device/equips"; |
|
|
} from "@/api/device/equips"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -293,6 +334,17 @@ export default { |
|
|
obj_id:0, |
|
|
obj_id:0, |
|
|
equipDataTime:"", |
|
|
equipDataTime:"", |
|
|
}, |
|
|
}, |
|
|
|
|
|
//缓存命令记录 |
|
|
|
|
|
historyOpen:false, |
|
|
|
|
|
historyParam: { |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
imei:0, |
|
|
|
|
|
historyTime:[], |
|
|
|
|
|
}, |
|
|
|
|
|
historyList: [], |
|
|
|
|
|
historyTotal: 0, |
|
|
|
|
|
|
|
|
//onenet推送记录 |
|
|
//onenet推送记录 |
|
|
receiveDataOpen:false, |
|
|
receiveDataOpen:false, |
|
|
receiveDataParam: { |
|
|
receiveDataParam: { |
|
@ -389,9 +441,26 @@ export default { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
/** 查询设备数据点 */ |
|
|
|
|
|
getHistory(row) { |
|
|
|
|
|
this.historyOpen = true; |
|
|
|
|
|
this.title = "查询设备数据点"; |
|
|
|
|
|
this.loading = true; |
|
|
|
|
|
if (row != null){ |
|
|
|
|
|
let authInfo = JSON.parse(row.authInfo) |
|
|
|
|
|
this.historyParam.imei = Object.keys(authInfo)[0] |
|
|
|
|
|
} |
|
|
|
|
|
listHistorys(this.historyParam).then(response => { |
|
|
|
|
|
if (response.code == 200){ |
|
|
|
|
|
let msg = JSON.parse(response.msg); |
|
|
|
|
|
this.historyList = msg.items |
|
|
|
|
|
this.historyTotal = msg.total_count |
|
|
|
|
|
} |
|
|
|
|
|
this.loading = false; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
/** onenet推送记录 */ |
|
|
/** onenet推送记录 */ |
|
|
getReceiveDatas(row) { |
|
|
getReceiveDatas(row) { |
|
|
console.log(row) |
|
|
|
|
|
this.receiveDataOpen = true; |
|
|
this.receiveDataOpen = true; |
|
|
this.title = "onenet推送记录"; |
|
|
this.title = "onenet推送记录"; |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
@ -411,6 +480,11 @@ export default { |
|
|
this.getEquipDatas(); |
|
|
this.getEquipDatas(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resetHistory() { |
|
|
|
|
|
this.historyParam.historyTime = []; |
|
|
|
|
|
this.getHistory(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 取消按钮 |
|
|
// 取消按钮 |
|
|
cancel() { |
|
|
cancel() { |
|
|
this.open = false; |
|
|
this.open = false; |
|
|