From 0afa84e6de17cda97792f3acd114fffa552ee163 Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期四, 03 一月 2019 16:15:03 +0800
Subject: [PATCH] Merge branch 'dev_lxw' of https://gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
---
gx_tieta/WebRoot/mobil/control.html | 37 ++++++++++++++++++++++++++++++-------
1 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/control.html b/gx_tieta/WebRoot/mobil/control.html
index 797846c..ec9d6b4 100644
--- a/gx_tieta/WebRoot/mobil/control.html
+++ b/gx_tieta/WebRoot/mobil/control.html
@@ -18,8 +18,8 @@
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">
- <a href="testdata.html" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">杩斿洖</a>
- <h1>瀹炴椂鈥旀娴嬫暟鎹�</h1>
+ <a id= "return" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">杩斿洖</a>
+ <h1 id="biaoti">瀹炴椂鈥旀娴嬫暟鎹�</h1>
</div>
<div data-role="content">
@@ -46,7 +46,7 @@
</li> -->
</ul>
<div data-role="collapsible" data-collapsed="false">
- <h1>鐢垫睜缁勭姸鎬�</h1>
+ <h1 id="zhuangtai">鐢垫睜缁勭姸鎬�</h1>
<div class="tbl-container"></div>
</div>
</div>
@@ -61,7 +61,16 @@
//findrtstate();
searchBattInfo();
});
-
+ $("#return").click(function(){
+ var temp = getCookie("batt");
+ var batt = JSON.parse(temp);
+ console.info(batt);
+ if(batt.install_user||batt.install_user==0){
+ window.location.href="batt-approve-index.html";
+ }else{
+ window.location.href="testdata.html";
+ }
+ });
var timeer ;
//鏍规嵁鐢垫睜缁刬d鏌ヨ鐢垫睜缁勪俊鎭�
/* function findrtstate(){
@@ -107,6 +116,7 @@
function searchBattInfo(){
var temp = getCookie("batt");
var batt = JSON.parse(temp);
+ console.info(batt);
arrTd = new Array();
$.ajax({
type: "post",
@@ -141,7 +151,7 @@
}else{
arrTd.push("------");
}
-
+ $("#zhuangtai").find("a").text("鐢垫睜缁勭姸鎬�("+batt.BattGroupName+")");
createTbl(tbl, arrTh, arrTd);
window.clearTimeout(timeer);
timeer = window.setTimeout(function() {
@@ -175,13 +185,26 @@
var temp = getCookie("batt");
var batt = JSON.parse(temp);
var data = [
+ {url: 'javascript:JumpHomePage();', txt: '棣栭〉'},
+ {url: 'machineroomM.html', txt: batt.StationName1}, // 鐪�
+ {url: 'selectcity.html' , txt:batt.StationName2},//甯�
+ {url: 'selectcounty.html' , txt:batt.StationName5},
+ {url: 'battM.html', txt: batt.StationName3}, // 鐢垫睜缁�
+ {url: 'testdata.html', txt: '鐢垫睜缁勬暟鎹�'}, // 褰撳墠椤甸潰
+ {url: 'javascript:;', txt: '瀹炴椂-鐩戞祴鏁版嵁'}
+ ];
+ /*var data = [
{url: 'javascript:JumpHomePage();', txt: '棣栭〉'},
{url: 'machineroomM.html', txt: batt.StationName}, // 鏈烘埧
{url: 'battM.html', txt: batt.BattGroupName}, // 鐢垫睜缁�
{url: 'testdata.html', txt: '鐢垫睜缁勬暟鎹�'}, // 鐢垫睜缁勬暟鎹�
{url: 'javascript:;', txt: '瀹炴椂-鐩戞祴鏁版嵁'} // 鐢垫睜缁勬暟鎹�
- ];
- addBreadCrumb($('.breadcrumb').eq(0), data);
+ ];*/
+ if(batt.install_user||batt.install_user==0){
+
+ }else{
+ addBreadCrumb($('.breadcrumb').eq(0), data);
+ }
});
function sethoubeiTime(value){
--
Gitblit v1.9.1