From 1e2369de8e321bdf7d9ee692aa55d65d8ac560b8 Mon Sep 17 00:00:00 2001 From: whyclj <1525436766@qq.com> Date: 星期六, 29 十二月 2018 14:36:08 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://whyclj@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/WebRoot/mobil/batt-approved1.html | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-approved1.html b/gx_tieta/WebRoot/mobil/batt-approved1.html index 294304e..5512701 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); -- Gitblit v1.9.1