Commit 9ec3bafb929b9f5a66b0d3cb3e1a67099d17b2af

Authored by 廖磊
1 parent 34b34892

油量页面修改

src/main/resources/static/pages/oil/list_ph.html
@@ -1125,7 +1125,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep @@ -1125,7 +1125,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
1125 //键盘上下左右移动 1125 //键盘上下左右移动
1126 var mouseInfo={}; //存放鼠标的当前位置 1126 var mouseInfo={}; //存放鼠标的当前位置
1127 function yhSxzy(){ 1127 function yhSxzy(){
1128 - tdid=$(this).attr('id'); 1128 + var tdid=$(this).attr('id');
1129 var rc=tdid.split("_"); 1129 var rc=tdid.split("_");
1130 mouseInfo["row"]=rc[0]; 1130 mouseInfo["row"]=rc[0];
1131 mouseInfo["col"]=rc[1]; 1131 mouseInfo["col"]=rc[1];
@@ -1154,12 +1154,12 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep @@ -1154,12 +1154,12 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
1154 function moveLeft(){ 1154 function moveLeft(){
1155 var row=mouseInfo["row"]; 1155 var row=mouseInfo["row"];
1156 var col=mouseInfo["col"]; 1156 var col=mouseInfo["col"];
1157 -  
1158 var key=moveArray[row][col-1]; 1157 var key=moveArray[row][col-1];
1159 if(document.getElementById(key)!=undefined) 1158 if(document.getElementById(key)!=undefined)
1160 { 1159 {
1161 var textFiled=document.getElementById(key); 1160 var textFiled=document.getElementById(key);
1162 - textFiled.focus(false, 1000); 1161 +// textFiled.focus(false, 1000);
  1162 + textFiled.focus();
1163 textFiled.select(); 1163 textFiled.select();
1164 mouseInfo["col"]=parseInt(col)-1; 1164 mouseInfo["col"]=parseInt(col)-1;
1165 } 1165 }
@@ -1173,7 +1173,8 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep @@ -1173,7 +1173,8 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
1173 if(document.getElementById(key)!=undefined) 1173 if(document.getElementById(key)!=undefined)
1174 { 1174 {
1175 var textFiled=document.getElementById(key); 1175 var textFiled=document.getElementById(key);
1176 - textFiled.focus(false, 1000); 1176 +// textFiled.focus(false, 1000);
  1177 + textFiled.focus();
1177 textFiled.select(); 1178 textFiled.select();
1178 mouseInfo["col"]=parseInt(col)+1; 1179 mouseInfo["col"]=parseInt(col)+1;
1179 } 1180 }
@@ -1186,7 +1187,8 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep @@ -1186,7 +1187,8 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
1186 if(document.getElementById(key)!=undefined) 1187 if(document.getElementById(key)!=undefined)
1187 { 1188 {
1188 var textFiled=document.getElementById(key); 1189 var textFiled=document.getElementById(key);
1189 - textFiled.focus(false, 1000); 1190 +// textFiled.focus(false, 1000);
  1191 + textFiled.focus();
1190 textFiled.select(); 1192 textFiled.select();
1191 mouseInfo["row"]=parseInt(row)-1; 1193 mouseInfo["row"]=parseInt(row)-1;
1192 } 1194 }
@@ -1198,7 +1200,8 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep @@ -1198,7 +1200,8 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
1198 if(document.getElementById(key)!=undefined) 1200 if(document.getElementById(key)!=undefined)
1199 { 1201 {
1200 var textFiled=document.getElementById(key); 1202 var textFiled=document.getElementById(key);
1201 - textFiled.focus(false, 1000); 1203 +// textFiled.focus(false, 1000);
  1204 + textFiled.focus();
1202 textFiled.select(); 1205 textFiled.select();
1203 mouseInfo["row"]=parseInt(row)+1; 1206 mouseInfo["row"]=parseInt(row)+1;
1204 } 1207 }