173 lines
5.8 KiB
Plaintext
173 lines
5.8 KiB
Plaintext
|
|
/*工程页面*/
|
||
|
|
function openPro(chooseType, proStatus, type) {
|
||
|
|
let width = getDefaultWidth().toFixed(0) + "px";
|
||
|
|
let height = getDefaultHeight().toFixed(0) + "px";
|
||
|
|
let layerIndex = layer.open({
|
||
|
|
id: "pro",
|
||
|
|
title: false,
|
||
|
|
type: 2,
|
||
|
|
maxmin: false,
|
||
|
|
skin: "my-skin child-skin",
|
||
|
|
content: 'child/newProList.html',
|
||
|
|
area: [width, height],
|
||
|
|
offset: ['4%', '15%'],
|
||
|
|
shade: 0.65,
|
||
|
|
closeBtn: 0,
|
||
|
|
success: function (layero, index) {
|
||
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
||
|
|
iframeWin.setParams(chooseType, proStatus, proType, type);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/*周风险页面*/
|
||
|
|
function openWeekRisk(currentDate, riskLevel, cityName) {
|
||
|
|
let width = getDefaultWidth().toFixed(0) + "px";
|
||
|
|
let height = getDefaultHeight().toFixed(0) + "px";
|
||
|
|
let layerIndex = layer.open({
|
||
|
|
id: "weekRisk",
|
||
|
|
title: false,
|
||
|
|
type: 2,
|
||
|
|
maxmin: false,
|
||
|
|
skin: "my-skin child-skin",
|
||
|
|
content: 'child/weekRisk.html',
|
||
|
|
area: [width, height],
|
||
|
|
offset: ['4%', '15%'],
|
||
|
|
shade: 0.65,
|
||
|
|
closeBtn: 0,
|
||
|
|
success: function (layero, index) {
|
||
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
||
|
|
iframeWin.setParams(currentDate, riskLevel, cityName);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/*作业票页面*/
|
||
|
|
function openTicket(chooseType, ticketType) {
|
||
|
|
let width = getDefaultWidth().toFixed(0) + "px";
|
||
|
|
let height = getDefaultHeight().toFixed(0) + "px";
|
||
|
|
let layerIndex = layer.open({
|
||
|
|
id: "weekRisk",
|
||
|
|
title: false,
|
||
|
|
type: 2,
|
||
|
|
maxmin: false,
|
||
|
|
skin: "my-skin child-skin",
|
||
|
|
content: 'child/ticketInfo.html',
|
||
|
|
area: [width, height],
|
||
|
|
offset: ['4%', '15%'],
|
||
|
|
shade: 0.65,
|
||
|
|
closeBtn: 0,
|
||
|
|
success: function (layero, index) {
|
||
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
||
|
|
iframeWin.setParams(chooseType, ticketType, proType);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/*站班会二级穿透页面*/
|
||
|
|
function openClass(type, name, currentDay) {
|
||
|
|
let width = getDefaultWidth().toFixed(0) + "px";
|
||
|
|
let height = getDefaultHeight().toFixed(0) + "px";
|
||
|
|
let layerIndex = layer.open({
|
||
|
|
id: "classMeeting",
|
||
|
|
title: false,
|
||
|
|
type: 2,
|
||
|
|
maxmin: false,
|
||
|
|
skin: "my-skin child-skin",
|
||
|
|
content: 'child/classMeeting.html',
|
||
|
|
area: [width, height],
|
||
|
|
offset: ['4%', '15%'],
|
||
|
|
closeBtn: 0,
|
||
|
|
success: function (layero, index) {
|
||
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
||
|
|
iframeWin.setParams(type, name, currentDay);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/*人员统计*/
|
||
|
|
function openPersonnelStatistics(personnelType) {
|
||
|
|
let width = getDefaultWidth().toFixed(0) + "px";
|
||
|
|
let height = getDefaultHeight().toFixed(0) + "px";
|
||
|
|
let layerIndex = layer.open({
|
||
|
|
id: "weekRisk",
|
||
|
|
title: false,
|
||
|
|
type: 2,
|
||
|
|
maxmin: false,
|
||
|
|
skin: "my-skin child-skin",
|
||
|
|
content: 'child/personnelStatistics.html',
|
||
|
|
area: [width, height],
|
||
|
|
offset: ['4%', '15%'],
|
||
|
|
closeBtn: 0,
|
||
|
|
success: function (layero, index) {
|
||
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
||
|
|
iframeWin.setParams(personnelType);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
// 日风险穿透页面
|
||
|
|
function openDayRisk(buildName, name) {
|
||
|
|
var html = 'child/dayRisk.html';
|
||
|
|
if (name == '已执行') {
|
||
|
|
html = 'child/dayPlanClass.html';
|
||
|
|
} else if (name == '计划数') {
|
||
|
|
html = 'child/dayPlanChilder.html';
|
||
|
|
}
|
||
|
|
|
||
|
|
let width = getDefaultWidth().toFixed(0) + "px";
|
||
|
|
let height = getDefaultHeight().toFixed(0) + "px";
|
||
|
|
let layerIndex = layer.open({
|
||
|
|
id: "dayRisk",
|
||
|
|
title: false,
|
||
|
|
type: 2,
|
||
|
|
maxmin: false,
|
||
|
|
skin: "my-skin child-skin",
|
||
|
|
content: html,
|
||
|
|
area: [width, height],
|
||
|
|
offset: ['4%', '15%'],
|
||
|
|
closeBtn: 0,
|
||
|
|
success: function (layero, index) {
|
||
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
||
|
|
iframeWin.setParams(buildName, name, dayType, proType);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
// 穿透预警管理页面
|
||
|
|
function openEarlyInfo() {
|
||
|
|
parent.openNewTab('../earlyWarning/earlyWarning.html', '65', '预警管理');
|
||
|
|
let frameId = parent.document.getElementsByClassName('layui-nav');
|
||
|
|
$(frameId).find('li>a').each(function () {
|
||
|
|
let tabName = $(this).html();
|
||
|
|
if (tabName.indexOf('综合展示') != -1) {
|
||
|
|
$(this).parent('li').removeClass('layui-this');
|
||
|
|
$(this).parent('li').removeClass('layui-that');
|
||
|
|
} else if (tabName.indexOf('值班任务') != -1) {
|
||
|
|
$(this).parent('li').addClass('layui-that');
|
||
|
|
}
|
||
|
|
})
|
||
|
|
}
|