57 lines
1.6 KiB
JavaScript
57 lines
1.6 KiB
JavaScript
let table, layer, form;
|
|
layui.use(['layer', 'table', 'form'], function () {
|
|
layer = layui.layer;
|
|
table = layui.table;
|
|
form = layui.form;
|
|
// 响应成功后的拦截器
|
|
$.ajaxSetup({
|
|
beforeSend: function (xhr, options) {
|
|
var originalSuccess = options.success
|
|
options.success = function (data, textStatus, jqXhr) {
|
|
data = modifyResponseData(data);
|
|
// success(data,textStatus, jqXhr);
|
|
originalSuccess.apply(this, arguments)
|
|
}
|
|
}
|
|
})
|
|
$('#indexIframe').attr('src','proQualityAnalysis.html');
|
|
});
|
|
|
|
/* 切换数据 */
|
|
function changeData(that, type) {
|
|
let src = '';
|
|
const bidCode = parent.$('#bidPro').val();
|
|
$(".ul-box li").each(function () {
|
|
if ($(this).hasClass("check")) {
|
|
$(this).removeClass("check").addClass("nocheck");
|
|
}
|
|
});
|
|
$(that).removeClass("nocheck").addClass("check");
|
|
if(type == 1){ // 工程质量分析
|
|
src = 'proQualityAnalysis.html';
|
|
}else if(type == 2){ // 工程安全分析
|
|
src = '';
|
|
}else if(type == 3){ // 工程进度分析
|
|
src = '';
|
|
}else if(type == 4){ // 资源利用率分析
|
|
src = '';
|
|
}else if(type == 5){ // 节能减排分析
|
|
src = '';
|
|
}else if(type == 6){ // 工人效率分析
|
|
src = 'workerEfficiencyAnalysis.html';
|
|
}else if(type == 7){ // 环境监测分析
|
|
src = '';
|
|
}else if(type == 8){ // 项目管理分析
|
|
src = '';
|
|
}else if(type == 9){ // 整体效能分析
|
|
src = '';
|
|
}else if(type == 10){ // 风险值班分析
|
|
src = '';
|
|
}else if(type == 11){ // 穿戴设备监测设备指标分析
|
|
src = '';
|
|
}else if(type == 12){ // 延期原因分析
|
|
src = '';
|
|
}
|
|
$('#indexIframe').attr('src',src);
|
|
}
|