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