From 686b0de3a8959ebad5a5ce5ee71e70e190b04611 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 29 十月 2021 16:32:55 +0800 Subject: [PATCH] 1 --- src/main/webapp/views/pda/index.html | 46 +++++++++++++++++++--------------------------- 1 files changed, 19 insertions(+), 27 deletions(-) diff --git a/src/main/webapp/views/pda/index.html b/src/main/webapp/views/pda/index.html index d892ca0..9fa1701 100644 --- a/src/main/webapp/views/pda/index.html +++ b/src/main/webapp/views/pda/index.html @@ -112,14 +112,6 @@ <div id="combPro" onclick="nav(this.id)" style="font-size: 15px">绔嬪簱浠诲姟鍗曞叆搴�</div> </td> </tr> -<!-- <tr>--> -<!-- <td>--> -<!-- <div id="stockIn" onclick="nav(this.id)" class="nav-font-size">绔嬪簱閰嶄欢鍏ュ簱</div>--> -<!-- </td>--> -<!-- <td>--> -<!-- <div id="stockOut" onclick="nav(this.id)" class="nav-font-size">绔嬪簱閰嶄欢鍑哄簱</div>--> -<!-- </td>--> -<!-- </tr>--> <tr> <td> <div id="locNormalIn1" onclick="nav(this.id)" class="nav-font-size">骞充粨鏉愭枡鍏ュ簱</div> @@ -136,11 +128,6 @@ <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">骞充粨鎴愬搧鍑哄簱</div> </td> </tr> -<!-- <tr>--> -<!-- <td>--> -<!-- <div id="locNormalMove" onclick="nav(this.id)" class="nav-font-size">骞充粨鎴愬搧绉诲簱</div>--> -<!-- </td>--> -<!-- </tr>--> </table> <!-- 涓讳綋鍐呭 --> @@ -157,20 +144,25 @@ success: function (res) { if (res.code === 200){ console.log(res) - if (true) { - $("#").show(); - $("#").show(); - $("#").show(); - $("#").show(); - $("#").hide(); - $("#").hide(); - } else { - $("#").show(); - $("#").show(); - $("#").show(); - $("#").show(); - $("#").show(); - $("#").show(); + if (res.data.code === 'a') { + $("#combAgv").parent().hide(); + $("#combProAgv").parent().hide(); + $("#comb").parent().hide(); + $("#combPro").parent().hide(); + $("#locNormalIn").parent().hide(); + $("#locNormalOut").parent().hide(); + } else if (res.data.code === 'b') { + $("#locNormalIn1").parent().hide(); + $("#locNormalOut1").parent().hide(); + $("#locNormalIn").parent().hide(); + $("#locNormalOut").parent().hide(); + } else if (res.data.code === 'c') { + $("#combAgv").parent().hide(); + $("#combProAgv").parent().hide(); + $("#comb").parent().hide(); + $("#combPro").parent().hide(); + $("#locNormalIn1").parent().hide(); + $("#locNormalOut1").parent().hide(); } } else if (res.code === 403){ top.location.href = baseUrl+"/"; -- Gitblit v1.9.1