Authored by 王涛

Merge branch 'master-mj-yuanjp' into 'master-mj'

fix:迁移告警压缩查询功能,优化资源管理删除不展示、监控概况业务莫i快不展示的问题,和工作日志不能删除的问题



See merge request !1157
... ... @@ -23,7 +23,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
var common = layui.common;
var commonDetail = layui.commonDetail;
var sessions = layui.sessions;
var access_token = common.getMjToken();
var accessToken = common.getMjToken;
var isNewPwd = sessionStorage.getItem("isNewPwd");
... ... @@ -907,9 +907,9 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
mxUtils.error('浏览器不支持:Browser is not supported!', 200, false);
} else {
if (isNetAdmin) {//如果是网络管理员,获取网络拓扑
$('#indexTopoView').html(`<iframe src="${common.graphEditorOrigin}/jgraph/grapheditor/viewer.html?accessToken=${access_token}&id=${topoId}&netFlag=3"></iframe>`);
$('#indexTopoView').html(`<iframe src="${common.graphEditorOrigin}/jgraph/grapheditor/viewer.html?access_token=${accessToken}&id=${topoId}&netFlag=3"></iframe>`);
} else {
$('#indexTopoView').html(`<iframe src="${common.graphEditorOrigin}/jgraph/grapheditor/viewer.html?accessToken=${access_token}&id=${topoId}"></iframe>`);
$('#indexTopoView').html(`<iframe src="${common.graphEditorOrigin}/jgraph/grapheditor/viewer.html?access_token=${accessToken}&id=${topoId}"></iframe>`);
}
}
}
... ... @@ -1425,7 +1425,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
elem: '#indexResListTable'
, url: common.domainName + '/api-web/home/res-list/' + resType
, where: {
access_token: access_token,
accessToken: accessToken,
resName: $("#index_reslist_keyword").val(),
resHealth: $("#index_reslist_resStatus").val(),
busId: currentBizId,
... ... @@ -1727,7 +1727,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
curr: 1
}
, where: { //请求参数(注意:这里面的参数可任意定义,并非下面固定的格式)
access_token: access_token,
accessToken: accessToken,
resName: $("#index_reslist_keyword").val(),
resHealth: $("#index_reslist_resStatus").val(),
colonlyId: $("#index_reslist_res_colony").val(),
... ... @@ -1783,7 +1783,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
admin.req({
url: counturl,
data: {
access_token: access_token,
accessToken: accessToken,
busId: currentBizId,
subResType: $("#res_sub_restype").val()
}
... ... @@ -2091,7 +2091,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
dutyTime: $(this).data("dutytime")
}
admin.req({
url: common.domainName + '/api-web/manage/duty/agreeExchange?accessToken=' + access_token,
url: common.domainName + '/api-web/manage/duty/agreeExchange?accessToken=' + accessToken,
async: false,
data: duty,
done: function (res) {
... ... @@ -2122,7 +2122,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
dutyTime: $(this).data("dutytime")
}
admin.req({
url: common.domainName + '/api-web/manage/duty/disagreeExchange?accessToken=' + access_token,
url: common.domainName + '/api-web/manage/duty/disagreeExchange?accessToken=' + accessToken,
async: false,
data: duty,
done: function (res) {
... ...
... ... @@ -201,7 +201,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
}, function () {
admin.req({
url: domainName + '/api-web/workreport/delete',
type: 'delete',
type: 'get',
data: {id: id}
}).done(function (res) {
layer.msg('删除成功', {
... ...
... ... @@ -268,11 +268,11 @@
<span class="protocol-title-span"></span>
<a href="javascript:void(0);" title="删除当前协议"
class="layui-btn layui-btn-xs layui-btn-normal btn-suffix protocol-del">
<i class="layui-icon">&#xe640;</i>
<!--<i class="layui-icon">&#xe640;</i>-->删除当前协
</a>
<a href="javascript:void(0);" title="修改密码"
class="layui-btn layui-btn-xs layui-btn-normal btn-suffix protocol-pwd margin-right-10px">
<i class="layui-icon layui-icon-set"></i>
<!-- <i class="layui-icon layui-icon-set"></i>-->修改密
</a>
</div>
<table class="layui-table">
... ...