Commit f8db0749 by 匡雅琴

bug修复

1 parent 386a12e4
......@@ -446,7 +446,8 @@ export default {
pageSize: 10,
loadingMore: false,
placeholderText: "请输入6位以上车架号",
vidCode: undefined
vidCode: undefined,
sourceType: 0
};
},
computed: {
......@@ -937,6 +938,12 @@ export default {
if (!list || list.length <= 0) {
return false;
}
// 跳转到风险评估页面获取有线设备还是无线设备还是两者结合
// 有线设备或者有线+无线组合都正常展示按钮sourceType-1,否则就是0
// let sourceType = 0
list.forEach(item => {
if (item.source == '有线') this.sourceType = 1
})
this.vidCode = list[0].vid;
for (var i = 0, len = list.length; i < len; i++) {
_this.handleSelect(list[i]);
......@@ -1224,6 +1231,7 @@ export default {
item = this.filterGpsBase(item);
item.isSource = relItem.source;
item.vidCode = this.vidCode
item.sourceType = this.sourceType
});
this.monitorList = Object.assign({}, this.monitorList);
let drawData = data.filter(
......
......@@ -528,14 +528,13 @@ MapService.prototype = {
}
}
// 跳转到风险评估页面 无线设备不显示按钮 isSource:1有线,其他无线
// 跳转到风险评估页面 无线设备不显示按钮 sourceType:1有线组合,其他无线
let riskBtn = infoDiv.querySelector('[data-risk]');
if (riskBtn) {
if (info.isSource != 1) {
if (info.sourceType != 1) {
riskBtn.classList.add('resident_btn_hidden');
}
riskBtn.onclick = function() {
console.log(info);
let id = info.vidCode || localStorage.getItem('vehicleId');
queryCode = `vehicleId=${id}`
mapService.openPage(`#/monitor/alarmAnalysis?${queryCode}`)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!