/*打开违章单下发页面*/ function openViolationForm(type) { let layerIndex = parent.layer.open({ id: "violationForm", title: false, type: 2, maxmin: false, content: '../dutyTask/remotePatrol/violationForm.html', area: ['700px', '780px'], closeBtn: 0, success: function (layero, index) { let iframeWin = parent.window["layui-layer-iframe" + layerIndex]; iframeWin.setParams(idParam, bidName, ticketNo, org, teamName, riskLevel, bidCode, signCode,type); indexArr.push({'type':'parent','index':layerIndex}); }, end:function(){ if(indexArr && indexArr.length > 0){ indexArr.forEach(function(item,index){ if(item.index === layerIndex) indexArr.splice(index,1); }) } $('#startTime').focus(); } }); } /*打开异常上报页面*/ function openExceptionReportForm() { let layerIndex = parent.layer.open({ id: "exceptionReportForm", title: ['
异常上报
', 'font-size:16px;background-color:#f0f0f0;display: flex;align-items: center;'], type: 2, maxmin: false, content: '../dutyTask/remotePatrol/exceptionReportForm.html', area: ['664px', '444px'], move: false, success: function (layero, index) { let iframeWin = parent.window["layui-layer-iframe" + layerIndex]; iframeWin.setParams(idParam); indexArr.push({'type':'parent','index':layerIndex}); }, end:function(){ if(indexArr && indexArr.length > 0){ indexArr.forEach(function(item,index){ if(item.index === layerIndex) indexArr.splice(index,1); }) } $('#startTime').focus(); } }); } /*打开班组评价页面*/ function openTeamEvaluate() { let layerIndex = parent.layer.open({ id: "teamEvaluate", title: false, type: 2, maxmin: false, content: '../teamInformation/child/teamEvaluate.html', area: ['100%', '100%'], closeBtn: 0, success: function (layero, index) { let iframeWin = parent.window["layui-layer-iframe" + layerIndex]; iframeWin.setForm(idParam, workManagerNum, teamName,teamId, 2); indexArr.push({'type':'parent','index':layerIndex}); }, end:function(){ if(indexArr && indexArr.length > 0){ indexArr.forEach(function(item,index){ if(item.index === layerIndex) indexArr.splice(index,1); }) } $('#startTime').focus(); getTeamLabelsAjax(); } }); } // 编辑预警信息 function editWarn() { let layerIndex = parent.layer.open({ title: ['
编辑预警信息
', 'font-size:16px;background-color:#f0f0f0;display: flex;align-items: center;'], type: 2, maxmin: false, shade: 0.1, shadeClose: false, content: '../dutyTask/remotePatrol/editWarnInfoForm.html', area: ["925px", "625px"], move: false, success: function (layero, index) { let iframeWin = parent.window["layui-layer-iframe" + layerIndex]; iframeWin.setParams(idParam, warnInfo); indexArr.push({'type':'parent','index':layerIndex}); }, end:function(){ if(indexArr && indexArr.length > 0){ indexArr.forEach(function(item,index){ if(item.index === layerIndex) indexArr.splice(index,1); }) } $('#startTime').focus(); } }); } // 设置守望位置 function editSwwz() { let layerIndex = parent.layer.open({ title: ['
设置参数
', 'font-size:16px;background-color:#f0f0f0;display: flex;align-items: center;'], type: 2, maxmin: false, shade: 0.1, shadeClose: false, content: '../dutyTask/remotePatrol/editSwwz.html', area: ["925px", "625px"], move: false, success: function (layero, index) { let iframeWin = parent.window["layui-layer-iframe" + layerIndex]; iframeWin.setParams(puidParam); indexArr.push({'type':'parent','index':layerIndex}); }, end:function(){ if(indexArr && indexArr.length > 0){ indexArr.forEach(function(item,index){ if(item.index === layerIndex) indexArr.splice(index,1); }) } $('#startTime').focus(); } }); } /** * 守望位置 * @param type */ function setPosition(type) { console.log(type, puidParam); Ajax().post({ url: dataUrl + 'proteam/pot/device/setSwwzConfig', headers: { "encrypt": sm3(JSON.stringify({ 'type': type, 'puid': puidParam })) }, data: { type: type,//加密处理 puid: puidParam//加密处理 }, async: true, success: function (data) { console.log(data.msg) layer.msg(data.msg) } }); } /*标段杆塔维护*/ function openBidTowerMain() { let layerIndex = parent.layer.open({ id: "bidTowerMain", title: false, type: 2, maxmin: false, content: '../dutyTask/remotePatrol/bidTowerMain.html', area: ['100%', '100%'], closeBtn: 0, success: function (layero, index) { let iframeWin = parent.window["layui-layer-iframe" + layerIndex]; iframeWin.setParams(); indexArr.push({'type':'parent','index':layerIndex}); }, end: function (layero, index) { getBidTowerListAjax(bidCode); if(indexArr && indexArr.length > 0){ indexArr.forEach(function(item,index){ if(item.index === layerIndex) indexArr.splice(index,1); }) } $('#startTime').focus(); } }); }