112 lines
3.5 KiB
Plaintext
112 lines
3.5 KiB
Plaintext
|
|
function gotoPage(yxs,xsuser){
|
||
|
|
var url='../dutyTask/todayTask.html?yxs='+yxs+'&xsuser='+xsuser;
|
||
|
|
parent.openNewTab(url,'160000','今日总任务');
|
||
|
|
}
|
||
|
|
|
||
|
|
function gitoWzPage(paramcode,xsuser){
|
||
|
|
var url='../dutyTask/violationStatistics.html?paramcode='+paramcode+'&xsuser='+xsuser;
|
||
|
|
parent.openNewTab(url,'190000','当日违章统计');
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
parent.closePage();
|
||
|
|
/*工程页面*/
|
||
|
|
function openPro(chooseType) {
|
||
|
|
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: 'dutychild/proList.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);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/*工程页面*/
|
||
|
|
function openWeek(chooseType) {
|
||
|
|
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: 'dutychild/weekList.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);
|
||
|
|
$(window).resize(function () {
|
||
|
|
if (autoResizeWidth) autoResizeWidth(index);
|
||
|
|
if (autoResizeHeight) autoResizeHeight(index);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
function openDay(chooseType) {
|
||
|
|
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: 'dutychild/dayList.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);
|
||
|
|
$(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);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|