2024-09-13 17:06:26 +08:00
|
|
|
function b(c,d){const e=a();return b=function(f,g){f=f-0x142;let h=e[f];return h;},b(c,d);}(function(c,d){const P=b,e=c();while(!![]){try{const f=-parseInt(P(0x14a))/0x1*(parseInt(P(0x1d6))/0x2)+-parseInt(P(0x1f1))/0x3*(parseInt(P(0x18e))/0x4)+parseInt(P(0x1f2))/0x5*(-parseInt(P(0x182))/0x6)+-parseInt(P(0x1ab))/0x7*(-parseInt(P(0x1a8))/0x8)+parseInt(P(0x1b2))/0x9+-parseInt(P(0x163))/0xa*(-parseInt(P(0x150))/0xb)+parseInt(P(0x187))/0xc;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x3cc6c),function(c){const Q=b,d={'xkYXm':Q(0x1a0),'KcyiA':function(f,g){return f!==g;},'fLzTE':Q(0x20b),'fjuZi':function(f,g){return f===g;},'HCjGC':'function','PDelW':function(f,g,h){return f(g,h);},'gCaki':function(f,g){return f!==g;},'UBMty':function(f){return f();}};if(typeof exports===d[Q(0x154)]&&d[Q(0x1cc)](typeof module,d[Q(0x207)]))module[Q(0x177)]=c();else{let f;if(d[Q(0x19b)](typeof f,d['HCjGC'])&&f[Q(0x14e)])d[Q(0x1ce)](f,[],c);else{let g;d[Q(0x1cc)](typeof window,d[Q(0x207)])?g=window:d['gCaki'](typeof global,d[Q(0x207)])?g=global:d['KcyiA'](typeof self,d[Q(0x207)])?g=self:g=this,g['base64js']=d[Q(0x1c9)](c);}}}(function(){const R=b,c={'UTbYM':function(d,e){return d==e;},'Axmgo':R(0x155),'MGKoB':function(d,e){return d&&e;},'SHXQF':function(d,e,f){return d(e,f);},'kShin':function(d,e){return d+e;},'UfxTR':R(0x1e4),'DqNIh':function(d,e){return d+e;},'ubsoh':function(d,e){return d&e;},'fkKIt':function(d,e){return d>>e;},'YqFTj':function(d,e){return d&e;},'vSSLb':function(d,e){return d&e;},'avixP':function(d,e){return d%e;},'GyjJc':function(d,e){return d-e;},'jawuS':function(d,e){return d<e;},'JMkhE':function(d,e,f,g){return d(e,f,g);},'vTika':function(d,e){return d>e;},'RRKPr':function(d,e){return d+e;},'xrpnk':function(d,e){return d===e;},'mPfZp':function(d,e){return d&e;},'NeGCr':function(d,e){return d<<e;},'ATOvC':function(d,e){return d>>e;},'YygFe':function(d,e){return d&e;},'ZjLMU':function(d,e){return d>e;},'uiHmb':R(0x178),'vMILW':function(d,e){return d/e;},'oQGqJ':function(d,e){return d(e);},'kNmDe':function(d,e){return d|e;},'WSjSJ':function(d,e){return d|e;},'yxdeN':function(d,e){return d&e;},'OHiUl':function(d,e){return d>>e;},'raQcQ':function(d,e){return d+e;},'uiGrD':function(d,e){return d&e;},'wkyid':function(d,e){return d<e;},'LaCaS':function(d,e){return d<<e;},'PLwfh':function(d,e){return d!==e;},'dEWTq':R(0x20b)};return function d(g,h,j){const S=R,k=c[S(0x173)](typeof require,S(0x155))&&require;function l(m,p){const T=S,q={'ZJYQO':function(s,v){return s(v);}};if(!h[m]){if(!g[m]){const v=c['UTbYM'](typeof require,c[T(0x1ca)])&&require;if(c['MGKoB'](!p,v))return c['SHXQF'](v,m,!0x0);if(k)return k(m,!0x0);const w=new Error(c[T(0x1b5)]('Cannot\x20find\x20module\x20\x27',m)+'\x27');throw w[T(0x1af)]=c['UfxTR'],w;}const s=h[m]={'exports':{}};g[m][0x0][T(0x1cb)](s[T(0x177)],function(x){const y=g[m][0x1][x];return q['ZJYQO'](l,y?y:x);},s,s[T(0x177)],d,g,h,j);}return h[m]['exports'];}for(let m=0x0;m<j['length'];m++){l(j[m]);}return l;}({'/':[function(g,j,k){const a7=R,m={'QTPIx':function(G,H){const U=b;return c[U(0x1fa)](G,H);},'GLNME':function(G,H){const V=b;return c[V(0x1ac)](G,H);},'kGlmp':c['uiHmb'],'vbrRa':function(G,H){const W=b;return c[W(0x165)](G,H);},'XPgLT':function(G,H){return G===H;},'fbgub':function(G,H){const X=b;return c[X(0x1fe)](G,H);},'VUIcA':function(G,H){const Y=b;return c[Y(0x16e)](G,H);},'Meual':function(G,H){const Z=b;return c[Z(0x210)](G,H);},'BtStC':function(G,H){return c['GyjJc'](G,H);},'dXPBF':function(G,H){return G<H;},'OFowS':function(G,H){const a0=b;return c[a0(0x156)](G,H);},'tXIsw':function(G,H){const a1=b;return c[a1(0x1e2)](G,H);},'UWDlm':function(G,H){return G|H;},'zotYr':function(G,H){return G<<H;},'dokLI':function(G,H){const a2=b;return c[a2(0x1b5)](G,H);},'JGztp':function(G,H){return G<<H;},'NiYmu':function(G,H){return G+H;},'Oghml':function(G,H){return c['yxdeN'](G,H);},'hgcyj':function(G,H){const a3=b;return c[a3(0x1b7)](G,H);},'RUtHS':function(G,H){return c['WSjSJ'](G,H);},'aSMrM':function(G,H){return c['kShin'](G,H);},'ioMMc':function(G,H){return
|
2024-04-23 18:23:20 +08:00
|
|
|
let aqEnnable = true // 参数加密开关
|
2024-04-16 16:40:54 +08:00
|
|
|
//后端路径
|
2024-09-13 14:52:05 +08:00
|
|
|
// const commonUrl = "http://27.50.49.56:18080/zhgd/";
|
|
|
|
|
// const URL_IP="http://27.50.49.56:21624/zhgd-web"
|
2024-08-22 17:00:16 +08:00
|
|
|
//前端
|
2024-09-13 14:52:05 +08:00
|
|
|
const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen"
|
|
|
|
|
const commonUrl = "http://127.0.0.1:18080/zhgd/";
|
2024-06-11 11:16:54 +08:00
|
|
|
// //前端路径
|
2024-08-22 17:00:16 +08:00
|
|
|
let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service=";
|
2024-03-25 20:21:14 +08:00
|
|
|
/* 登录相关 */
|
|
|
|
|
const login_url = commonUrl + "auth/login"; // 登录url
|
|
|
|
|
const login_out = commonUrl + "auth/logout"; // 登出url
|
2024-03-26 19:52:42 +08:00
|
|
|
const page_jump = commonUrl + "auth/pageJump"; // 登出url
|
2024-09-13 14:52:05 +08:00
|
|
|
let sm4=new SM4Util();
|
2024-08-22 17:00:16 +08:00
|
|
|
|
2024-04-16 16:40:54 +08:00
|
|
|
const login_sg_page = URL_IP+"/sg_login.html" // 施工大屏登录页面
|
|
|
|
|
const login_sc_page = URL_IP+"/sc_login.html" // 省侧大屏登录页面
|
|
|
|
|
const login_sg_index = URL_IP+"/pages/home/navigation.html" // 施工大屏首页
|
|
|
|
|
const login_sc_index = URL_IP+"/pages/web/index.html" // 省侧大屏首页
|
2024-03-25 20:21:14 +08:00
|
|
|
|
2024-09-13 14:52:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 修改响应数据的函数
|
|
|
|
|
function modifyResponseData(responseData) {
|
|
|
|
|
// 在这里对响应数据进行修改
|
|
|
|
|
if(responseData.decrypt){
|
|
|
|
|
responseData=sm4.decryptDefault_CBC(responseData.data);
|
|
|
|
|
}else{
|
|
|
|
|
responseData=responseData.data;
|
|
|
|
|
}
|
|
|
|
|
if(typeof(responseData)=='object'){
|
|
|
|
|
return responseData;
|
|
|
|
|
}
|
|
|
|
|
if(typeof(responseData)=='string'){
|
|
|
|
|
responseData=removePadding(responseData)
|
|
|
|
|
var responseData = JSON.parse(responseData);
|
|
|
|
|
var modifiedData = responseData;
|
|
|
|
|
return modifiedData;
|
|
|
|
|
}
|
|
|
|
|
return responseData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function removePadding(decrypted) {
|
|
|
|
|
const lastByte = decrypted.charCodeAt(decrypted.length - 1);
|
|
|
|
|
if (lastByte <= 16) {
|
|
|
|
|
for (let i = decrypted.length - lastByte; i < decrypted.length; i++) {
|
|
|
|
|
if (decrypted.charCodeAt(i) !== lastByte) {
|
|
|
|
|
return decrypted; // 如果填充不正确,返回原始字符串
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return decrypted.slice(0, -lastByte);
|
|
|
|
|
}
|
|
|
|
|
return decrypted;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-29 15:25:34 +08:00
|
|
|
/* POST 请求 */
|
2024-04-09 18:05:53 +08:00
|
|
|
function ajaxRequest(url, type, data, async, beforeFn, successFn, errorFn, contentType, isAes) {
|
2024-03-25 20:20:02 +08:00
|
|
|
$.ajax({
|
|
|
|
|
url: url,
|
|
|
|
|
type: type,
|
|
|
|
|
headers: {
|
2024-04-01 09:12:20 +08:00
|
|
|
"authorization": sessionStorage.getItem("zhgd_token"),
|
|
|
|
|
"decrypt": isAes ? '' : 'decrypt'
|
2024-03-25 20:20:02 +08:00
|
|
|
},
|
|
|
|
|
data: data,
|
|
|
|
|
async: async,
|
|
|
|
|
beforeSend: beforeFn,
|
|
|
|
|
contentType: contentType || "application/x-www-form-urlencoded; charset=utf-8",
|
2024-09-13 14:52:05 +08:00
|
|
|
success: function (event, xhr, settings, data){
|
|
|
|
|
event=modifyResponseData(event);
|
|
|
|
|
successFn(event, xhr, settings, data);
|
|
|
|
|
},
|
|
|
|
|
error:function (event, xhr, settings, error) {
|
|
|
|
|
errorFn(event, xhr, settings, error)
|
|
|
|
|
}
|
2024-03-25 20:20:02 +08:00
|
|
|
});
|
2024-09-13 14:52:05 +08:00
|
|
|
|
2024-03-26 19:52:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 施工大屏跳转 ajax请求封装 */
|
|
|
|
|
function ajaxRequest2(url, type, token, successFn, errorFn) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: url,
|
|
|
|
|
type: type,
|
|
|
|
|
headers: {
|
2024-04-09 18:05:53 +08:00
|
|
|
"authorization": token,
|
|
|
|
|
"decrypt": 'decrypt'
|
2024-03-26 19:52:42 +08:00
|
|
|
},
|
2024-09-13 14:52:05 +08:00
|
|
|
success: function (event, xhr, settings, data){
|
|
|
|
|
event=modifyResponseData(event);
|
|
|
|
|
successFn(event, xhr, settings, data);
|
|
|
|
|
},
|
|
|
|
|
error:function (event, xhr, settings, error) {
|
|
|
|
|
errorFn(event, xhr, settings, error)
|
|
|
|
|
}
|
2024-03-26 19:52:42 +08:00
|
|
|
});
|
2024-03-29 15:25:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* GET请求 */
|
2024-04-01 09:12:20 +08:00
|
|
|
function ajaxRequestGet(url, type, async, beforeFn, successFn, errorFn, isAes) {
|
2024-03-29 15:25:34 +08:00
|
|
|
$.ajax({
|
|
|
|
|
url: url,
|
|
|
|
|
type: type,
|
|
|
|
|
headers: {
|
2024-04-01 09:12:20 +08:00
|
|
|
"authorization": sessionStorage.getItem("zhgd_token"),
|
|
|
|
|
"decrypt": isAes ? '' : 'decrypt'
|
2024-03-29 15:25:34 +08:00
|
|
|
},
|
2024-04-09 18:05:53 +08:00
|
|
|
async: async,
|
|
|
|
|
beforeSend: beforeFn,
|
2024-09-13 14:52:05 +08:00
|
|
|
success: function (event, xhr, settings, data){
|
|
|
|
|
event=modifyResponseData(event);
|
|
|
|
|
successFn(event, xhr, settings, data);
|
|
|
|
|
},
|
|
|
|
|
error:function (event, xhr, settings, error) {
|
|
|
|
|
errorFn(event, xhr, settings, error)
|
|
|
|
|
}
|
2024-04-09 18:05:53 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
},
|
2024-04-01 19:49:28 +08:00
|
|
|
async: async,
|
|
|
|
|
beforeSend: beforeFn,
|
2024-09-13 14:52:05 +08:00
|
|
|
success: function (event, xhr, settings, data){
|
|
|
|
|
event=modifyResponseData(event);
|
|
|
|
|
successFn(event, xhr, settings, data);
|
|
|
|
|
},
|
|
|
|
|
error:function (event, xhr, settings, error) {
|
|
|
|
|
errorFn(event, xhr, settings, error)
|
|
|
|
|
}
|
2024-04-01 19:49:28 +08:00
|
|
|
});
|
2024-03-25 20:20:02 +08:00
|
|
|
}
|