This commit is contained in:
parent
ff94389a67
commit
6fbc640aad
|
|
@ -1,16 +1,16 @@
|
|||
let aqEnnable = true;// 参数加密开关
|
||||
const commonUrl = "http://127.0.0.1:18080/zhgd/";
|
||||
let aqEnnable = false // 参数加密开关
|
||||
const commonUrl = "http://10.40.92.33:18080/zhgd/";
|
||||
/* 登录相关 */
|
||||
const login_url = commonUrl + "auth/login"; // 登录url
|
||||
const login_out = commonUrl + "auth/logout"; // 登出url
|
||||
const page_jump = commonUrl + "auth/pageJump"; // 登出url
|
||||
const login_sg_page = "http://127.0.0.1:63342/ah_jjzhgd_webscreen/sg_login.html" // 施工大屏登录页面
|
||||
const login_sc_page = "http://10.40.92.33:8100/sc_login.html" // 省侧大屏登录页面
|
||||
const login_sg_index = "http://10.40.92.33:8101/pages/home/navigation.html" // 施工大屏首页
|
||||
const login_sc_index = "http://10.40.92.33:8100/pages/web/index.html" // 省侧大屏首页
|
||||
const login_sg_page = "http://10.40.92.33:8100/sg_login.html" // 施工大屏登录页面
|
||||
const login_sc_page = "http://10.40.92.33:8101/sc_login.html" // 省侧大屏登录页面
|
||||
const login_sg_index = "http://10.40.92.33:8100/pages/home/navigation.html" // 施工大屏首页
|
||||
const login_sc_index = "http://10.40.92.33:8101/pages/web/index.html" // 省侧大屏首页
|
||||
|
||||
/* POST 请求 */
|
||||
function ajaxRequest(url, type, data, async, beforeFn, successFn, errorFn, contentType,isAes) {
|
||||
function ajaxRequest(url, type, data, async, beforeFn, successFn, errorFn, contentType, isAes) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: type,
|
||||
|
|
@ -33,7 +33,8 @@ function ajaxRequest2(url, type, token, successFn, errorFn) {
|
|||
url: url,
|
||||
type: type,
|
||||
headers: {
|
||||
"authorization": token
|
||||
"authorization": token,
|
||||
"decrypt": 'decrypt'
|
||||
},
|
||||
success: successFn,
|
||||
error: errorFn
|
||||
|
|
@ -49,7 +50,26 @@ function ajaxRequestGet(url, type, async, beforeFn, successFn, errorFn, isAes) {
|
|||
"authorization": sessionStorage.getItem("zhgd_token"),
|
||||
"decrypt": isAes ? '' : 'decrypt'
|
||||
},
|
||||
data: data,
|
||||
async: async,
|
||||
beforeSend: beforeFn,
|
||||
success: successFn,
|
||||
error: errorFn
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* GET请求 */
|
||||
function ajaxRequestGetExport(url, type, async, beforeFn, successFn, errorFn, isAes) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: type,
|
||||
headers: {
|
||||
"authorization": sessionStorage.getItem("zhgd_token"),
|
||||
"decrypt": isAes ? '' : 'decrypt'
|
||||
},
|
||||
xhrFields: {
|
||||
responseType: 'blob' // 告诉 xhr 我们期望返回的数据类型是 blob
|
||||
},
|
||||
async: async,
|
||||
beforeSend: beforeFn,
|
||||
success: successFn,
|
||||
|
|
|
|||
Loading…
Reference in New Issue