| | |
| | | mySelf.onceTimeMethod = setTimeout(() => { |
| | | mySelf.onceTimeMethod = null; |
| | | }, mySelf.onceTime); |
| | | } else { |
| | | }; |
| | | } else {}; |
| | | }) |
| | | $('.analysis-container-police .analysis-table-content .tbody').off('click', '.location').on('click', '.location', function (event) { |
| | | event.stopPropagation(); |
| | |
| | | mySelf.onceTimeMethod = setTimeout(() => { |
| | | mySelf.onceTimeMethod = null; |
| | | }, mySelf.onceTime); |
| | | } else { |
| | | }; |
| | | } else {}; |
| | | |
| | | }) |
| | | $('.analysis-container-owner .analysis-table-content .tbody').off('click', '.location').on('click', '.location', function (event) { |
| | |
| | | // console.log(that.clusterLayer, that._map, 6) |
| | | // console.log(id, 'id'); |
| | | // console.log(that.clusterLayer); |
| | | var Tattributes = null |
| | | , ds = that.clusterLayer.allData; |
| | | var Tattributes = null, |
| | | ds = that.clusterLayer.allData; |
| | | for (var key in ds) { |
| | | if (ds[key].id == id) { |
| | | Tattributes = ds[key]; |
| | |
| | | mySelf.onceTimeMethod = setTimeout(() => { |
| | | mySelf.onceTimeMethod = null; |
| | | }, mySelf.onceTime); |
| | | } else { |
| | | }; |
| | | } else {}; |
| | | |
| | | |
| | | }) |
| | |
| | | |
| | | if (deviceType == '') { |
| | | result = oldData; |
| | | } else if (deviceType == '在线') { |
| | | } else if (deviceType == '正常') { |
| | | for (var key in oldData) { |
| | | // console.log(oldData[key]); |
| | | if (oldData[key].state == '' && oldData[key].jtype != 1 && oldData[key].onlineStatus == 1) { |
| | | if (oldData[key].dtype == '1') { |
| | | result.push(oldData[key]); |
| | | } |
| | | } |
| | | } else if (deviceType == '离线') { |
| | | } else if (deviceType == '掉线') { |
| | | for (var key in oldData) { |
| | | // console.log(oldData[key]); |
| | | if (oldData[key].state == '' && oldData[key].jtype != 1 && oldData[key].onlineStatus != 1) { |
| | | if (oldData[key].dtype == '0') { |
| | | result.push(oldData[key]); |
| | | } |
| | | } |
| | | } else if (deviceType == '警报') { |
| | | } else if (deviceType == '预警') { |
| | | for (var key in oldData) { |
| | | // console.log(oldData[key]); |
| | | if (oldData[key].state == '' && oldData[key].jtype == 1) { |
| | | console.log(oldData[key], 111); |
| | | if (oldData[key].dtype == 2) { |
| | | result.push(oldData[key]); |
| | | } |
| | | } |
| | | } else if (deviceType == '故障') { |
| | | for (var key in oldData) { |
| | | // console.log(oldData[key]); |
| | | if (oldData[key].state != '') { |
| | | if (oldData[key].dtype == 3) { |
| | | result.push(oldData[key]); |
| | | } |
| | | } |
| | |
| | | // console.log(result[i].state); |
| | | |
| | | |
| | | if (result[i].state != '') { |
| | | if (result[i].dtype == '3') { |
| | | stares = '故障'; |
| | | str += "<td class='location'> <input style='background-image:linear-gradient(to right, #F49966 , #F49966' type='button' value=" + stares + ' lgtd=' + result[i].jd + ' lttd=' + result[i].wd + "></td>"; |
| | | } else { |
| | | if (result[i].jtype != 1) { |
| | | if (result[i].onlineStatus == 1) {//el-tabs__active-bar |
| | | stares = '在线'; |
| | | } else if (result[i].dtype == '1') { |
| | | stares = '正常'; |
| | | str += "<td class='location'> <input style='background-image:linear-gradient(to right, #32C1A2 , #32C1A2' type='button' value=" + stares + ' lgtd=' + result[i].jd + ' lttd=' + result[i].wd + "></td>"; |
| | | } else { |
| | | stares = '离线'; |
| | | } else if (result[i].dtype == '0') { |
| | | stares = '掉线'; |
| | | str += "<td class='location'> <input style='background-image:linear-gradient(to right, #CDCDCD , #CDCDCD' type='button' value=" + stares + ' lgtd=' + result[i].jd + ' lttd=' + result[i].wd + "></td>"; |
| | | } |
| | | } else { |
| | | stares = '警报'; |
| | | } else if (result[i].dtype == '2') { |
| | | stares = '预警'; |
| | | str += "<td class='location'> <input style='background-image:linear-gradient(to right, #F35B5B , #F35B5B' type='button' value=" + stares + ' lgtd=' + result[i].jd + ' lttd=' + result[i].wd + "></td>"; |
| | | } |
| | | } |
| | | str += '</tr>'; |
| | | dom.append(str); |