机具库存收藏修改

This commit is contained in:
jiang 2025-07-09 16:52:03 +08:00
parent 43be14b4f6
commit 6d0deb9dbc
1 changed files with 220 additions and 192 deletions

View File

@ -192,7 +192,7 @@
</th> --%>
<th style="vertical-align:middle;" class="center">${ma.number}</th>
<th style="vertical-align:middle;color:red" onclick="topage()" class="center">${ma.number}</th>
<th style="vertical-align:middle;" class="center">${ma.creatorName}</th>
<th style="vertical-align:middle;color:red" class="center">
<c:choose>
@ -215,6 +215,34 @@
</c:otherwise>
</c:choose>
<script type="text/javascript">
var uname = localStorage.getItem("uname");
var pwd = localStorage.getItem("pwd");
function topage() {
$.ajax({
type: "post",
url: "http://127.0.0.1:21522/gz-car/login/userLogin",
data: {
username: uname,
password: pwd
},
success: function(data) {
if(data.code == "200") {
localStorage.setItem("token", data.token);
localStorage.setItem("name", name);
//window.open("http://192.168.0.14:21625/gz-gqj/index.html")
window.open("http://localhost:63343/gz_car_ui/index.html#/page/car_demand_plan/dispatch_car_list.html")
} else {
alert("没有权限!");
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("未连接到服务器,请检查网络!"+XMLHttpRequest.status);
}
});
}
</script>