From d0d64cf47ce37027307ceb64dc72e3ae36796a92 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期四, 27 二月 2025 18:28:00 +0800
Subject: [PATCH] 四期
---
src/main/webapp/static/js/stkPlcm/stkPlcm.js | 39 ++++++++++++++++++++-------------------
1 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/src/main/webapp/static/js/stkPlcm/stkPlcm.js b/src/main/webapp/static/js/stkPlcm/stkPlcm.js
index e6ccaa4..05c6c07 100644
--- a/src/main/webapp/static/js/stkPlcm/stkPlcm.js
+++ b/src/main/webapp/static/js/stkPlcm/stkPlcm.js
@@ -10,18 +10,18 @@
tableIns = table.render({
elem: '#stkPlcm',
headers: {token: localStorage.getItem('token')},
- url: '/stkPlcm/list/auth',
+ url: baseUrl+'/stkPlcm/list/auth',
page: true,
limit: 10,
even: true,
toolbar: '#toolbar',
cellMinWidth: 50,
cols: [[
- {type: 'checkbox'}
- ,{field: 'ioTime$', align: 'center',title: '鏃ユ湡'}
+ // {type: 'checkbox'}
+ {field: 'ioTime$', align: 'center',title: '鏃ユ湡'}
,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�',event: 'locNo', style: 'cursor:pointer'}
- ,{field: 'crnError$', align: 'center',title: '寮傚父鐮�',event: 'crnError', style: 'cursor:pointer'}
+ ,{field: 'crnError$', align: 'center',title: '寮傚父鐮�'}
,{field: 'modiTime$', align: 'center',title: '寮傚父鏃堕棿'}
,{field: 'devNo$', align: 'center',title: '鍫嗗灈鏈哄彿',event: 'devNo', style: 'cursor:pointer'}
,{field: 'wrkTime$', align: 'center',title: '宸ヤ綔妗f椂闂�'}
@@ -45,7 +45,7 @@
},
done: function(res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCurr=curr;
limit();
@@ -75,7 +75,7 @@
},
done: function (res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCurr=curr;
limit();
@@ -117,7 +117,7 @@
} else {
layer.confirm('纭畾鍒犻櫎'+(data.length===1?'姝�':data.length)+'鏉℃暟鎹悧', function(){
$.ajax({
- url: "/stkPlcm/delete/auth",
+ url: baseUrl+"/stkPlcm/delete/auth",
headers: {'token': localStorage.getItem('token')},
data: {param: JSON.stringify(data)},
method: 'POST',
@@ -127,7 +127,7 @@
layer.closeAll();
tableReload(false);
} else if (res.code === 403){
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
} else {
layer.msg(res.msg)
}
@@ -137,7 +137,8 @@
}
break;
case 'exportData':
- layer.confirm('纭畾瀵煎嚭Excel鍚�', function(){
+ layer.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){
+ layer.load(2, {time: 600*1000});
var titles=[];
var fields=[];
obj.config.cols[0].map(function (col) {
@@ -155,7 +156,7 @@
'fields': fields
};
$.ajax({
- url: "/stkPlcm/export/auth",
+ url: baseUrl+"/stkPlcm/export/auth",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify(param),
dataType:'json',
@@ -166,7 +167,7 @@
if (res.code === 200) {
table.exportFile(titles,res.data,'xls');
} else if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
} else {
layer.msg(res.msg)
}
@@ -234,7 +235,7 @@
content: '../locMast/locMast_detail.html',
success: function(layero, index){
$.ajax({
- url: "/locMast/"+ param +"/auth",
+ url: baseUrl+"/locMast/"+ param +"/auth",
headers: {'token': localStorage.getItem('token')},
method: 'GET',
success: function (res) {
@@ -270,7 +271,7 @@
content: '../basCrnError/basCrnError_detail.html',
success: function(layero, index){
$.ajax({
- url: "/basCrnError/"+ param +"/auth",
+ url: baseUrl+"/basCrnError/"+ param +"/auth",
headers: {'token': localStorage.getItem('token')},
method: 'GET',
success: function (res) {
@@ -306,7 +307,7 @@
content: '../user/user_detail.html',
success: function(layero, index){
$.ajax({
- url: "/user/"+ param +"/auth",
+ url: baseUrl+"/user/"+ param +"/auth",
headers: {'token': localStorage.getItem('token')},
method: 'GET',
success: function (res) {
@@ -342,7 +343,7 @@
content: '../user/user_detail.html',
success: function(layero, index){
$.ajax({
- url: "/user/"+ param +"/auth",
+ url: baseUrl+"/user/"+ param +"/auth",
headers: {'token': localStorage.getItem('token')},
method: 'GET',
success: function (res) {
@@ -378,7 +379,7 @@
content: '../basCrnp/basCrnp_detail.html',
success: function(layero, index){
$.ajax({
- url: "/basCrnp/"+ param +"/auth",
+ url: baseUrl+"/basCrnp/"+ param +"/auth",
headers: {'token': localStorage.getItem('token')},
method: 'GET',
success: function (res) {
@@ -442,7 +443,7 @@
};
$.ajax({
- url: "/stkPlcm/"+name+"/auth",
+ url: baseUrl+"/stkPlcm/"+name+"/auth",
headers: {'token': localStorage.getItem('token')},
data: top.reObject(data),
method: 'POST',
@@ -454,7 +455,7 @@
$(this).val("");
});
} else if (res.code === 403){
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}else {
layer.msg(res.msg)
}
@@ -524,7 +525,7 @@
},
done: function (res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCurr=curr;
if (res.data.length === 0 && count !== 0) {
--
Gitblit v1.9.1