修改跳转路径

This commit is contained in:
haozq 2026-02-03 10:27:08 +08:00
parent 89eaccf189
commit cf19884318
11 changed files with 43 additions and 31 deletions

View File

@ -26,7 +26,7 @@
</head> </head>
<body> <body>
<script src="${bonuspath}/static/js/bm/publicJumpIp.js"></script> <script src="${bonuspath}/static/js/bm/ip_utils.js?v=1"></script>
<script src="${bonuspath}/static/js/bm/aqList.js?v=1"></script> <script src="${bonuspath}/static/js/bm/aqList.js?v=1"></script>
</body> </body>
</html> </html>

View File

@ -26,7 +26,7 @@
</head> </head>
<body> <body>
<script src="${bonuspath}/static/js/bm/publicJumpIp.js"></script> <script src="${bonuspath}/static/js/bm/ip_utils.js"></script>
<script src="${bonuspath}/static/js/bm/aqPlanList.js?v=1"></script> <script src="${bonuspath}/static/js/bm/aqPlanList.js?v=1"></script>
</body> </body>
</html> </html>

View File

@ -26,7 +26,7 @@
</head> </head>
<body> <body>
<script src="${bonuspath}/static/js/bm/publicJumpIp.js"></script> <script src="${bonuspath}/static/js/bm/ip_utils.js?v=1"></script>
<script src="${bonuspath}/static/js/bm/carList.js?v=1"></script> <script src="${bonuspath}/static/js/bm/carList.js?v=1"></script>
</body> </body>
</html> </html>

View File

@ -206,13 +206,14 @@
<tr><td colspan='7' class='center'>没有相关数据</td></tr> <tr><td colspan='7' class='center'>没有相关数据</td></tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<script src="${pageContext.request.contextPath}/static/js/bm/ip_utils.js?v=1"></script>
<script type="text/javascript"> <script type="text/javascript">
var uname = localStorage.getItem("uname"); var uname = localStorage.getItem("uname");
var pwd = localStorage.getItem("pwd"); var pwd = localStorage.getItem("pwd");
function topage(id,processName,isFinish) { function topage(id,processName,isFinish) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "http://10.1.0.142:1999/gz_car/login/userLogin", url: CAR_IP+"/gz-car/login/userLogin",
data: { data: {
username: uname, username: uname,
password: pwd password: pwd
@ -224,9 +225,9 @@
localStorage.setItem("name", name); localStorage.setItem("name", name);
//window.open("http://192.168.0.14:21625/gz-gqj/index.html") //window.open("http://192.168.0.14:21625/gz-gqj/index.html")
if(processName === '派车计划'){ if(processName === '派车计划'){
window.open("http://10.1.0.142:1999/gz-car/page/car_demand_plan/child/dispatch_car_detail.html?id="+id +"&token="+data.token +"&isFinish="+isFinish) window.open(CAR_HTML_IP+"page/car_demand_plan/child/dispatch_car_detail.html?id="+id +"&token="+data.token +"&isFinish="+isFinish)
}else if(processName === '用车计划'){ }else if(processName === '用车计划'){
window.open("http://10.1.0.142:1999/gz-car/page/car_demand_plan/child/apply_plan_detail.html?id="+id +"&token="+data.token +"&isFinish="+isFinish) window.open(CAR_HTML_IP+"page/car_demand_plan/child/apply_plan_detail.html?id="+id +"&token="+data.token +"&isFinish="+isFinish)
} }
} else { } else {
alert("没有权限!"); alert("没有权限!");

View File

@ -6,7 +6,9 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>待办任务 - 移动端</title> <title>待办任务 - 移动端</title>
<script src="${pageContext.request.contextPath}/static/js/bm/ip_utils.js"></script>
<script src="${pageContext.request.contextPath}/static/js/jquery/jquery-2.0.3.min.js"></script> <script src="${pageContext.request.contextPath}/static/js/jquery/jquery-2.0.3.min.js"></script>
<style> <style>
* { * {
margin: 0; margin: 0;
@ -546,7 +548,7 @@
$.ajax({ $.ajax({
type: "post", type: "post",
url: "http://10.1.0.142:1999/gz_car/login/userLogin", url: CAR_IP+"/gz-car/login/userLogin",
data: { data: {
username: uname, username: uname,
password: pwd password: pwd
@ -560,9 +562,9 @@
// 根据流程类型跳转到对应页面 // 根据流程类型跳转到对应页面
var targetUrl = ""; var targetUrl = "";
if (processName === '派车计划') { if (processName === '派车计划') {
targetUrl = "http://10.1.0.142:1999/gz-car/page/car_demand_plan/child/dispatch_car_detail.html?id=" + id + "&token=" + data.token; targetUrl = CAR_HTML_IP+ "page/car_demand_plan/child/dispatch_car_detail.html?id=" + id + "&token=" + data.token;
} else if (processName === '用车计划') { } else if (processName === '用车计划') {
targetUrl = "http://10.1.0.142:1999/gz-car/page/car_demand_plan/child/apply_plan_detail.html?id=" + id + "&token=" + data.token; targetUrl =CAR_HTML_IP+ "/page/car_demand_plan/child/apply_plan_detail.html?id=" + id + "&token=" + data.token;
} else { } else {
isNavigatingToDetail = false; // 重置标志 isNavigatingToDetail = false; // 重置标志
showAlert('暂不支持该类型任务的详情查看: ' + processName); showAlert('暂不支持该类型任务的详情查看: ' + processName);

View File

@ -50,9 +50,10 @@
</table> </table>
</form> </form>
</div> </div>
<script src="${pageContext.request.contextPath}/static/js/bm/ip_utils.js?v=1"></script>
<script type="text/javascript"> <script type="text/javascript">
function topage() { function topage() {
alert('1'); alert('1');
window.open("http://10.1.0.142:1999/gz-car/index.html") window.open(CAR_HTML_IP+"index.html")
} }
</script> </script>

View File

@ -13,7 +13,7 @@ $(function() {
function checkLogin(){ function checkLogin(){
$.ajax({ $.ajax({
type: "post", type: "post",
url: "http://10.1.0.142:1999/gz-aqgqj/login/userLogin", url: AQGQJ_IP+"/gz-aqgqj/login/userLogin",
data: { data: {
username: uname, username: uname,
password: pwd password: pwd
@ -24,7 +24,7 @@ function checkLogin(){
localStorage.setItem("token", data.token); localStorage.setItem("token", data.token);
localStorage.setItem("name", name); localStorage.setItem("name", name);
//window.open("http://192.168.0.14:21625/gz-gqj/index.html") //window.open("http://192.168.0.14:21625/gz-gqj/index.html")
window.open("http://10.1.0.142:1999/gz-aqgqj/index.html?token="+token+'&isPlanAdd=1') window.open( AQGQJ_HTML_IP+"index.html?token="+data.token+'&isPlanAdd=1')
} else { } else {
alert("没有权限!"); alert("没有权限!");

View File

@ -8,7 +8,7 @@ function checkLogin(){
$.ajax({ $.ajax({
type: "post", type: "post",
url: "http://10.1.0.142:1999/gz_aqgqj/login/userLogin", url: AQGQJ_IP+"/gz_aqgqj/login/userLogin",
data: { data: {
username: uname, username: uname,
password: pwd password: pwd
@ -21,7 +21,7 @@ function checkLogin(){
localStorage.setItem("name", name); localStorage.setItem("name", name);
localStorage.setItem("isPlanAdd", "1"); localStorage.setItem("isPlanAdd", "1");
//window.open("http://192.168.0.14:21625/gz-gqj/index.html") //window.open("http://192.168.0.14:21625/gz-gqj/index.html")
window.open("http://10.1.0.142:1999/gz-aqgqj/index.html?token="+token+'&isPlanAdd=1') window.open(AQGQJ_HTML_IP+"index.html?token="+data.token+'&isPlanAdd=1')
} else { } else {
alert("没有权限!"); alert("没有权限!");
} }

View File

@ -3,29 +3,24 @@
var uname = localStorage.getItem("uname"); var uname = localStorage.getItem("uname");
var pwd = localStorage.getItem("pwd"); var pwd = localStorage.getItem("pwd");
$(function() { $(function() {
checkLogin(); checkLogin();
}); });
function checkLogin(){ function checkLogin(){
$.ajax({ $.ajax({
type: "post", type: "post",
url: "http://10.1.0.142:1999/gz-car/login/userLogin", url: CAR_IP+"/gz-car/login/userLogin",
data: { data: {
username: uname, username: uname,
password: pwd password: pwd
}, },
success: function(data) { success: function(data) {
if(data.code == "200") { if(data.code == "200") {
localStorage.setItem("token", data.token); localStorage.setItem("token", data.token);
localStorage.setItem("name", name); localStorage.setItem("name", name);
//window.open("http://192.168.0.14:21625/gz-gqj/index.html") //window.open("http://192.168.0.14:21625/gz-gqj/index.html")
window.open("http://10.1.0.142:1999/gz-car/index.html?token="+token) window.open(CAR_HTML_IP+"index.html?token="+data.token)
//window.open("http://10.1.0.142:1999/gz-car/index.html?token="+token)
} else { } else {
alert("没有权限!"); alert("没有权限!");

View File

@ -0,0 +1,22 @@
//local -本地
//安全工器具 后端请求ip
let AQGQJ_IP='http://10.1.0.142:1999';
//安全工器具 -跳转页面地址
let AQGQJ_HTML_IP='http://10.1.0.142:1999/gz-aqgqj/';
//车辆 后端请求IP
let CAR_IP='http://192.168.0.38:21522';
//车辆 跳转页面IP
let CAR_HTML_IP='http://192.168.0.38:8848/gz_car_ui/';
// dev -生产
/*let AQGQJ_IP='http://10.1.0.142:1999';
//安全工器具 -跳转页面地址
let AQGQJ_HTML_IP='http://10.1.0.142:1999/gz-aqgqj/';
//车辆 后端请求IP
let CAR_IP='http://10.1.0.142:1999';
//车辆 跳转页面IP
let CAR_HTML_IP='http://10.1.0.142:1999/gz-car/'*/

View File

@ -1,9 +0,0 @@
//安全工器具 后端请求ip
let AQGQJ_IP='http://10.1.0.142:1999';
//安全工器具 -跳转页面地址
let AQGQJ_HTML_IP='http://10.1.0.142:1999/gz-aqgqj/index.html';
//车辆 后端请求IP
let CAR_IP='http://192.168.0.38:21522';
//车辆 跳转页面IP
let CAR_HTML_IP='http://192.168.0.38:8848/gz_car_ui/index.html';