From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pda/index.html | 147 +++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 129 insertions(+), 18 deletions(-)
diff --git a/src/main/webapp/views/pda/index.html b/src/main/webapp/views/pda/index.html
index f015b95..351ea75 100644
--- a/src/main/webapp/views/pda/index.html
+++ b/src/main/webapp/views/pda/index.html
@@ -1,10 +1,11 @@
<!DOCTYPE html>
-<html lang="en">
+<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<title>PDA棣栭〉</title>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
+ <script type="text/javascript" src="../../static/js/common.js"></script>
<style>
* {
margin: 0;
@@ -13,10 +14,12 @@
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
+
html {
height: 100%;
/*line-height: 1.5;*/
}
+
body {
height: 100%;
/*overflow: hidden;*/
@@ -30,12 +33,14 @@
position: fixed;
width: 100%;
overflow: hidden;
- box-shadow: 0 1px 2px 0 rgba(0,0,0,.1)
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1)
}
+
.nav li {
float: left;
border-right: 1px solid #f1f1f1; /*todo*/
}
+
.nav li a {
font-size: 20px;
letter-spacing: 1px;
@@ -47,48 +52,154 @@
/*-webkit-transform:scale(1.5);*/
/*-moz-transform:scale(1.5);*/
}
+
.nav li a:hover {
color: #000;
}
+
.nav-unselect {
- color: #666;
+ color: blue;
}
+
.nav-select {
- background-color: #f1f1f1; /*todo*/
- color: #000;
+ background-color: #f1f1f1; /*todo*/
+ color: blue;
}
/* 涓讳綋 */
#content {
- padding-top: 32px;
+ /*padding-top: 32px;*/
width: 100%;
height: 100%;
}
+
iframe {
border-width: 0;
+ }
+
+ td {
+ color: white;
+ background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
+ /*background-color: rgba(204,204,204,.6);*/
+ border-radius: 8px;
+ text-align: center;
+ vertical-align: middle;
+ height: 80px;
+ font-size: 24px;
+ }
+ .nav-font-size {
+ font-size: 18px;
}
</style>
</head>
<body>
-<!-- 瀵艰埅鏍� -->
-<ul class="nav">
- <li><a id="comb" onclick="nav(this.id)" class="nav-select" href="#">缁勬墭</a></li>
- <li><a id="combPro" onclick="nav(this.id)" class="nav-unselect" href="#">鍏宠仈缁勬墭</a></li>
- <li><a id="stockIn" onclick="nav(this.id)" class="nav-unselect" href="#">鍏ュ簱</a></li>
- <li><a id="stockOut" onclick="nav(this.id)" class="nav-unselect" href="#">鍑哄簱</a></li>
-</ul>
+<!-- 瀵艰埅鑿滃崟 -->
+<table id="navList" style="width: 100%; border-color: #e6e6e6;" border="0" cellspacing="2">
+ <tr>
+ <td>
+ <div id="combAgv" onclick="nav(this.id)" class="nav-font-size">灏忚溅缁勬墭鍏ュ簱</div>
+ </td>
+ <td>
+ <div id="combProAgv" onclick="nav(this.id)" class="nav-font-size">灏忚溅鍏宠仈缁勬墭</div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id="comb" onclick="nav(this.id)" class="nav-font-size">绔嬪簱缁勬墭鍏ュ簱</div>
+ </td>
+ <td>
+ <div id="combPro" onclick="nav(this.id)" style="font-size: 15px">绔嬪簱浠诲姟鍗曞叆搴�</div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id="locNormalIn1" onclick="nav(this.id)" class="nav-font-size">骞充粨鏉愭枡鍏ュ簱</div>
+ </td>
+ <td>
+ <div id="locNormalOut1" onclick="nav(this.id)" class="nav-font-size">骞充粨鏉愭枡鍑哄簱</div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id="locNormalIn" onclick="nav(this.id)" class="nav-font-size">骞充粨鎴愬搧鍏ュ簱</div>
+ </td>
+ <td>
+ <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">骞充粨鎴愬搧鍑哄簱</div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id="combLToP" onclick="nav(this.id)" class="nav-font-size">绔嬪簱绉诲簱缁勬墭</div>
+ </td>
+<!-- <td>-->
+<!-- <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">骞充粨鎴愬搧鍑哄簱</div>-->
+<!-- </td>-->
+ </tr>
+</table>
<!-- 涓讳綋鍐呭 -->
-<iframe id="content" src="comb.html"></iframe>
+<iframe id="content" src=""></iframe>
+
</body>
<script>
+ $(function(){
+ $.ajax({
+ url: baseUrl+"/user/roleId/auth",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'GET',
+ success: function (res) {
+ if (res.code === 200){
+ console.log(res)
+ 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+"/";
+ }else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+ });
+
// 瀵艰埅鏍�
function nav(id) {
- $('.nav-select').attr("class", "nav-unselect");
- $('#'+id).attr("class", "nav-select");
- $('#content').attr("src", id+".html");
+// $('.nav-select').attr("class", "nav-unselect");
+// $('#' + id).attr("class", "nav-select");
+
+ if (id === 'locNormalIn1') {
+ $('#content').attr("src", "locNormalIn.html?areaType=1");
+ } else if (id === 'locNormalOut1') {
+ $('#content').attr("src", "locNormalOut.html?areaType=1");
+ } else {
+ $('#content').attr("src", id + ".html");
+ }
+ $('#navList').css('display', 'none');
+ $('#content').css('display', 'block');
+ }
+
+ function backIndex() {
+ $('#navList').css('display', 'inline-table');
+ $('#content').css('display', 'none');
}
</script>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.9.1