From 5e1abe86117de76c53b981d492c061aa3589d7c3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 27 五月 2021 15:33:47 +0800 Subject: [PATCH] # --- src/main/webapp/views/pda/pakin.html | 2 +- src/main/webapp/views/pda/stockCheck.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/views/pda/pakin.html b/src/main/webapp/views/pda/pakin.html index 9cebcb0..e431c72 100644 --- a/src/main/webapp/views/pda/pakin.html +++ b/src/main/webapp/views/pda/pakin.html @@ -169,7 +169,7 @@ method: 'POST', success: function (res) { if (res.code === 200) { - if (res.data != null && res.data.length > 0) { + if (res.data != null) { $('#node-ok').show(); $("#mat-btn").focus(); } else { diff --git a/src/main/webapp/views/pda/stockCheck.html b/src/main/webapp/views/pda/stockCheck.html index e25ef7b..81462bd 100644 --- a/src/main/webapp/views/pda/stockCheck.html +++ b/src/main/webapp/views/pda/stockCheck.html @@ -174,9 +174,9 @@ method: 'GET', success: function (res) { if (res.code === 200) { - if (res.data != null && res.data > 0) { - locDetlData = []; - initTableData(res.data); + locDetlData = []; + initTableData(res.data); + if (res.data != null && res.data.length > 0) { $('#node-ok').show(); } else { $('#node-ok').hide(); -- Gitblit v1.9.1