From a2e4d5438830c8368f7ac23ff35e912ab8999ad7 Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期二, 13 十一月 2018 14:02:46 +0800
Subject: [PATCH] 设置信号强度为强中弱三档
---
gx_tieta/WebRoot/control.jsp | 7 +++++--
gx_tieta/WebRoot/index.jsp | 27 +++++++++++++++++++++++----
2 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp
index bd79f4e..cfc8d57 100644
--- a/gx_tieta/WebRoot/control.jsp
+++ b/gx_tieta/WebRoot/control.jsp
@@ -4860,14 +4860,17 @@
if(testCsq) {
rs.signal = RegExp.$1;
rs.bitError = RegExp.$2;
- if(rs.signal>20) {
+ if(rs.signal>25) {
rs.img = 1;
rs.signal += '锛堝己锛�';
+ }else if(rs.signal>19) {
+ rs.img = 1;
+ rs.signal += '锛堜腑锛�';
}else {
rs.signal += '锛堝急锛�';
}
}
- console.info(rs);
+ //console.info(rs);
return rs;
}
});
diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp
index 3f21744..16ee8da 100644
--- a/gx_tieta/WebRoot/index.jsp
+++ b/gx_tieta/WebRoot/index.jsp
@@ -2676,6 +2676,29 @@
//window.open('homeinfor.jsp?stationId='+stationId);
}
+ // 鏄剧ず鏈烘埧淇℃伅
+ function showHomeInfo() {
+ layer.msg('鍔熻兘寮�鍙戜腑...');
+ var sid = $('.ipt-hide.sid').val();
+ console.log(sid);
+ var temp = {
+ StationId: sid
+ };
+
+ // 鏌ヨ鍩虹珯鐨勪俊鎭�
+ $.ajax({
+ type: 'post',
+ async: true,
+ url: 'BattInfAction!serchBattAllInfoByStationId',
+ data: 'json='+JSON.stringify(temp),
+ dataType: 'json',
+ success: function(result) {
+ var rs = JSON.parse(result.result);
+ console.log(rs);
+ }
+ });
+ }
+
// 鑾峰彇echarts瀵硅薄鐨刼pt
function getOpt(tle, objEle) {
var opt = {
@@ -3742,10 +3765,6 @@
}
$( "#mapToolSearch" ).autocomplete('option', 'source', homeSource);
- }
- // 鏄剧ず鏈烘埧淇℃伅
- function showHomeInfo() {
- layer.msg('鍔熻兘寮�鍙戜腑...');
}
</script>
</html>
--
Gitblit v1.9.1