修改问题

This commit is contained in:
haozq 2025-12-02 17:19:35 +08:00
parent 86f2bdbd91
commit 3a6db064cb
8 changed files with 11 additions and 10 deletions

View File

@ -3,7 +3,7 @@ function checkPermission() {
$.ajax({ $.ajax({
type : 'get', type : 'get',
url : ctxPath + '/permissions/owns', url : ctxPath + '/permissions/owns',
contentType : "application/json; charset=utf-8", //contentType : "application/json; charset=utf-8",
async : false, async : false,
success : function(data) { success : function(data) {
pers = data; pers = data;

View File

@ -1,10 +1,10 @@
var ctxPath = "http://192.168.0.38:42880/realname" var ctxPath = "http://127.0.0.1:42880/realname"
//湖南 //湖南
let contentPath="/hn_cloud_web/smz-web" let contentPath="/hn_cloud_web/smz-web"
console.log("publicJs.js="+ctxPath); console.log("publicJs.js="+ctxPath);
// var dataPath ="http://140.210.209.102:1918/hnBmw"; //部署上线地址 // var dataPath ="http://140.210.209.102:1918/hnBmw"; //部署上线地址
var dataPath ="http://192.168.0.38:42880/realname"; //公司测试地址 var dataPath ="http://127.0.0.1:42880/realname"; //公司测试地址
// var dataPath ="http://116.63.172.211:1918/hnBmw"; //线上正式环境--外网 // var dataPath ="http://116.63.172.211:1918/hnBmw"; //线上正式环境--外网
// var dataPath ="http://172.16.0.235:1918/hnBmw"; //线上正式环境--内网 // var dataPath ="http://172.16.0.235:1918/hnBmw"; //线上正式环境--内网
// var dataPath ="http://101.201.61.123:19118/hnBmw"; //外围公司测试地址 // var dataPath ="http://101.201.61.123:19118/hnBmw"; //外围公司测试地址

View File

@ -176,7 +176,7 @@ function init() {
}, },
"ajax": { "ajax": {
"url": ctxPath + "/paySlip", "url": ctxPath + "/paySlip",
"type": "get", "type": "POST",
"data": function (d) { "data": function (d) {
d.orgName = $("#orgName").val(); d.orgName = $("#orgName").val();
d.idNumber = $("#idNumber").val(); d.idNumber = $("#idNumber").val();

View File

@ -126,7 +126,7 @@ function init(){
}, },
"ajax": { "ajax": {
"url" : ctxPath + "/workerDepart", "url" : ctxPath + "/workerDepart",
"type":"get", "type":"post",
"data":function(d){ "data":function(d){
d.ssdw = $("#ssdw").val(); d.ssdw = $("#ssdw").val();
d.orgId = $("#orgId").val(); d.orgId = $("#orgId").val();

View File

@ -142,8 +142,8 @@ function init() {
"url": contentPath + "/js/plugin/datatables/Chinese.lang" "url": contentPath + "/js/plugin/datatables/Chinese.lang"
}, },
"ajax": { "ajax": {
"url": ctxPath + "/workerOn", "url": ctxPath + "/workerOn/list",
"type": "get", "type": "POST",
"data": function (d) { "data": function (d) {
d.ssdw = $("#ssdw").val(); d.ssdw = $("#ssdw").val();
d.orgId = $("#orgId").val(); d.orgId = $("#orgId").val();

View File

@ -7,7 +7,7 @@ layui.use(['layer','laydate','form'], function () {
form = layui.form; form = layui.form;
getProject(form); //查询工程 getProject(form); //查询工程
pers = checkPermission(); pers = checkPermission();
init()
laydate = layui.laydate; laydate = layui.laydate;
var month = new Date().getMonth() + 1; var month = new Date().getMonth() + 1;
month = (month < 10 ? "0" + month : month); month = (month < 10 ? "0" + month : month);

View File

@ -19,13 +19,14 @@ function init() {
"searching": false, "searching": false,
"processing": true, //加载数据时显示进度状态 "processing": true, //加载数据时显示进度状态
"serverSide": true, "serverSide": true,
'bSort': false,
"pagingType": "full_numbers", //首页|尾页 "pagingType": "full_numbers", //首页|尾页
"language": { "language": {
"url": contentPath + "/js/plugin/datatables/Chinese.lang" "url": contentPath + "/js/plugin/datatables/Chinese.lang"
}, },
"ajax": { "ajax": {
"url": ctxPath + "/salaryAppeal", "url": ctxPath + "/salaryAppeal",
"type": "get", "type": "post",
"data": function (d) { "data": function (d) {
d.keyWord = $("#keyword").val(); d.keyWord = $("#keyword").val();
}, },

View File

@ -62,7 +62,7 @@ function initMenuList(){
$.ajax({ $.ajax({
type : 'get', type : 'get',
url : ctxPath + '/permissions', url : ctxPath + '/permissions',
contentType: "application/json; charset=utf-8", //contentType: "application/json; charset=utf-8",
async:false, async:false,
success : function(data) { success : function(data) {
var length = data.length; var length = data.length;