修改post请求
This commit is contained in:
parent
323acc427c
commit
b1871fbdfa
|
|
@ -6,11 +6,11 @@
|
|||
<title>系统日志</title>
|
||||
<!--拦截及公共ip-->
|
||||
<script src="../../../../js/public/jquery-3.6.0.js" type="text/javascript"></script>
|
||||
<script src="../../../js/system/IPUtils.js"></script>
|
||||
<script src="../../../js/system/ajax_intercept.js"></script>
|
||||
<script src="../../../js/system/public_utils.js"></script>
|
||||
<script src="../../../js/smutil/sm2Utils.js"></script>
|
||||
<script src="../../../js/smutil/smUtil.js"></script>
|
||||
<script src="../../../../js/system/IPUtils.js"></script>
|
||||
<script src="../../../../js/system/ajax_intercept.js"></script>
|
||||
<script src="../../../../js/system/public_utils.js"></script>
|
||||
<script src="../../../../js/smutil/sm2Utils.js"></script>
|
||||
<script src="../../../../js/smutil/smUtil.js"></script>
|
||||
<!--拦截及公共ip-->
|
||||
<link href="../../../../js/layui/css/layui.css" rel="stylesheet">
|
||||
<script src="../../../../js/layui/layui.js"></script>
|
||||
|
|
|
|||
|
|
@ -352,8 +352,8 @@ function getWzXx(orgId) {
|
|||
|
||||
},
|
||||
error: function (err) {
|
||||
console.log("err")
|
||||
}
|
||||
console.log("err")
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
@ -427,8 +427,6 @@ function openNewTab(url, id, title) {
|
|||
$(".layui-nav-item").each(function () {
|
||||
$(this).removeClass('layui-that');
|
||||
$(this).removeClass('layui-this');
|
||||
console.log($(this).text());
|
||||
console.log($(this).attr("idx"))
|
||||
if ($(this).text() == '综合展示' && imea == 0) {
|
||||
$(this).addClass('layui-that');
|
||||
$(this).addClass('layui-this');
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ var Ajax = function () {
|
|||
// 它接受三个参数:请求类型(get、post)、请求的URL和表示是否异步。
|
||||
|
||||
xhr.open(that.method, that.url, that.async);
|
||||
|
||||
xhr.setRequestHeader('Authorization', token);
|
||||
xhr.send(null); // get方式则填null
|
||||
if (that.headers != '') {
|
||||
xhr.setRequestHeader("encrypt", that.headers);
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ function getLocalpath(){
|
|||
let usJosn=JSON.parse(us);
|
||||
let yq=getHtmlPermission(usJosn.menus,url[1]);
|
||||
console.log(yq)
|
||||
if(yq){
|
||||
if(!yq){
|
||||
addLogs(url,url[1],usJosn.nickName);
|
||||
//top.window.location.href = login_url;
|
||||
top.window.location.href = login_url;
|
||||
}
|
||||
}
|
||||
function getHtmlPermission(menus,html){
|
||||
|
|
|
|||
Loading…
Reference in New Issue