|
@@ -143,7 +143,7 @@
|
|
|
</tr>
|
|
|
</#list>
|
|
|
<#else>
|
|
|
- <tr><td colspan="11" class="td-manage text-c" >暂时没有机器,请添加!</td></tr>
|
|
|
+ <tr><td id="noMachineTr" colspan="11" class="td-manage text-c" >暂时没有机器,请添加!</td></tr>
|
|
|
</#if>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -230,7 +230,7 @@
|
|
|
|
|
|
ref = setInterval(function(){
|
|
|
latestMachines();
|
|
|
- },2000);
|
|
|
+ },3000);
|
|
|
function latestMachines() {
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
@@ -239,6 +239,7 @@
|
|
|
data:{machineId : $("#machineId").val()},// 你的formid
|
|
|
success: function(data){
|
|
|
if(data != null){
|
|
|
+ $("#noMachineTr").remove();
|
|
|
$.each(data,function(i,value) {
|
|
|
if(i+1 == data.length){
|
|
|
$("#machineId").val(value.machineId);
|