From 031c98de6bfcb2925c5bdae795e53f826a626be7 Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期三, 02 一月 2019 12:20:23 +0800 Subject: [PATCH] 目录修改 --- gx_tieta/WebRoot/mobil/batt-approved1.html | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-approved1.html b/gx_tieta/WebRoot/mobil/batt-approved1.html index 294304e..2ac7815 100644 --- a/gx_tieta/WebRoot/mobil/batt-approved1.html +++ b/gx_tieta/WebRoot/mobil/batt-approved1.html @@ -267,7 +267,7 @@ console.info(temp); if(temp.length>0){ for(var i=0;i<temp.length;i++){ - selected+= '<option '+'value='+temp[i].binf.BattGroupName+'>'+temp[i].binf.BattGroupName+'</option>'; + selected+= '<option '+'value='+i+'>'+temp[i].binf.BattGroupName+'</option>'; } return $('#newbattnum').html(selected); } @@ -318,8 +318,10 @@ var arr = temp; function setcookieCreat(i){ - var index=Math.ceil(i-1); - arrdata = temp[index].binf; + console.info(temp); + console.info(i) + //var index=Math.ceil(i-1); + arrdata = temp[i].binf; //console.info(index); //console.info(temp); console.info(arrdata); @@ -379,9 +381,12 @@ //setTimes($("#startTestrecord"),'2000-01-01'); //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd')); - timeer = window.setTimeout(function() { - installstartdata(temp); - }, 4000); + + installstartdata(temp); + diubao(); + timeer = window.setTimeout(function() { + diubao(); + }, 4000); //涓㈠寘鐜囷紝閫氫俊璁℃暟锛�4绉掑埛鏂�1娆°�� //4绉掑埛鏂颁竴娆¢〉闈� }); @@ -459,8 +464,7 @@ //setTimes($("#startTestrecord"),data.productDate); //setTimes($("#endTestrecord"),data.useDate); document.getElementById("install_user").value = data.install_user; - document.getElementById("tongxunnumber").value = getCookienumber(data.StationId); - document.getElementById("diubaonumber").value = getCookiediubao(data.StationId) + for(var i=0;i<temp.length;i++){ data=temp[i]; @@ -482,6 +486,13 @@ } } + function diubao(){ + if(temp.length>0){ + data=temp[0].binf; + document.getElementById("tongxunnumber").value = getCookienumber(data.StationId); + document.getElementById("diubaonumber").value = getCookiediubao(data.StationId); + } + } function getCookienumber(id){//杈撳叆ID锛岃繑鍥為�氳璁℃暟銆傛暟鎹粠缂撳瓨鑾峰彇銆� var a = getnumber(); //console.info(a); -- Gitblit v1.9.1