123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>值班</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!--框架必需start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <!--框架必需start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/css/import_basic.css" />
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css" rel="stylesheet" type="text/css"/>
- <!--框架必需end-->
- <!--数据表格start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" ></script>
- <!--数据表格end-->
- <!-- 扩展工具js -->
- <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <!--消息提示start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <!--设置首页高度 star -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/ReSetIdxHeight.js" ></script>
-
- </head>
- <style>
- html,body{
- margin: 0 auto;
- width: 100%;
- /*min-height:100%!important;*/
- height: auto;
- }
- /**表格*/
- .l-grid-header {
- border-bottom: 1px solid #c7c6c6;
- height: 32px;
- line-height: 120%!important;
- background:#e7e9e9 !important;
- overflow: hidden;
- width: 100%;
- }
- .l-grid-row-cell {
- border-right: 1px solid #c7c6c6;
- border-bottom: 1px solid #c7c6c6;
- text-align: center;
- }
- .l-grid-hd-cell {
- padding: 0;
- margin: 0;
- overflow: hidden;
- border-right: 1px solid #c7c6c6;
- text-align: center;
- }
- /**表格*/
- .duty_grid_cont{
- width:98%;
- height: 100%;
- text-align: center;
- margin-left: 1%;
- margin-right: 1%;
- }
- .duty_grid_enter{
- margin: 0 auto;
- width:90%;
- height: 100%;
- }
- .caozuo{
- height:100%;
- line-height: 100%;
- }
- .caozuo_btn{
- background: #D9E0E7;
- cursor: pointer;
- height: 20px;
- line-height: 20px;
- display: inline-block;
- margin-top: 8px;
- padding: 2px 8px;
- }
- .caozuo_btn:hover{
- background:#7FF1B7
- }
- </style>
- <script type="text/javascript">
- var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
- var comp_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var _this = this;
- _this.listGrid2 = null;// 值班数据列表
- $(function(){
- //console.log(_this);
- intdaibangrid("");
- //var params = resolveUrl();
- //console.log(params);
- getdaibanData();
-
- });
-
-
- function resolveUrl (){
- var encondeCondition=window.location.search;
- var condition= decodeURI(decodeURI(encondeCondition.substring(1,encondeCondition.length)));
- var conditionArr=condition.split("&");
- var condJson={};
- for(var item in conditionArr){
- var temArr=conditionArr[item].split("=");
- condJson[temArr[0]]=temArr[1];
- }
- return condJson;
- };
-
- /**
- * 改变所展示数据的长度,超过5条,只显示5条
- */
- function controlDataLength(data){
- var dataArr = data.rows;
- if(dataArr.length<=10){
- return data;
- }else{
- var setData = {};
- var showData = [];
- for(var i = 0;i<10;i++){
- showData.push(dataArr[i]);
- }
- //console.log(showData);
- setData.rows = showData;
- return setData;
- setData = null;
- showData = null;
- }
- dataArr = null;
- }
- function getdaibanData(){
- $.ajax({
- url : "/nwyj/ws/xianlutingyun/XianlutingyunService/getDBmsg",
- type : 'post',
- data : {
- user_id:user_id,
- // role_id:getRole_id(),
- role_id:getRole_id(role_id),
- company_id:comp_id,
- type:''
- },
- async:false,
- dataType : 'json',
- success : function(data){
- //console.log(data);
-
- _this.listGrid2.setOptions({data:controlDataLength(data.rows)});
- //_this.listGrid2.setOptions({data:data.rows});
- _this.listGrid2.loadData();
- setIframe("index_right_4");
- },
- error : function(e){
- try{
- $.messager.alert('访问服务失败!', 'error');
- }catch(e){
- }
- }
- }).done(function(){
- var text = $(".l-grid-body2").text();
- if(text==""){
- $("#dataGrid2 .l-grid-body2 table").css("width","100%");
- $("#dataGrid2 .l-grid-body2 tbody").append($('<tr style="text-align:center;width:100%;"><td colspan="6"><div style="height:50px;line-height:50px;font-size:14px;">此列表暂无数据!</div></td></tr>'));
- //$("#dataGrid2 .l-grid-body2").append($('<div style="text-align:center;width:100%;"><div style="height:50px;line-height:50px;font-size:14px;">此列表暂无数据!</div></div>'));
- }
- setIframe("index_right_4");
- });
- }
- function intdaibangrid(griddata) {
- _this.listGrid2 = $("#dataGrid2").quiGrid({
- columns: [
- { display: '事件类型', name: 'DB_TYPE', align: 'center' , width: "16%"},
- { display: '事件名称', name: 'NAME', align: 'left',showTitle:true, width: "26%"},
- { display: '下一步操作', name: 'IS_SEND', align: 'center', width: "8%",render:showRequire },
- { display: '发起时间', name: 'WRITE_TIME', align: 'center', width: "16%" },
- { display: '发起人', name: 'WRITER', align: 'center', width: "16%",},
- { display: '操作', name: 'count', align: 'center', width: "16%",
- render: function (rowdata, rowindex, value, column){
- var next_do='"'+rowdata.IS_SEND+'"';
- var type = '"'+rowdata.DB_TYPE+'"';
- var fd_id = '"'+rowdata.FD_OBJECTID+'"';
- var types = '"'+rowdata.EARLY_WARNING_PROPERTY+'"';
- var report_type = '"'+rowdata.REPORT_TYPE+'"';
- var plan_id = '"'+rowdata.PLAN_ID+'"';//报告填报要求id
- //var strhtml="<div class=tdContentStyle3><a class='showMsg'><img src='/nwyj/scripts/qui/libs/images/demo/to_do1.png'/ onclick='javascript:show("+next_do+","+type+","+fd_id+","+types+","+plan_id+","+report_type+");'></a></div>";
- //var strhtml="<div class='caozuo'><div class='caozuo_btn' onclick='javascript:show("+next_do+","+type+","+fd_id+","+types+","+plan_id+","+report_type+");'>立即处理</div></div>";
- var strhtml="<div class='caozuo'><div class='caozuo_btn' onclick='javascript:showNextDo("+next_do+","+type+","+fd_id+","+types+","+plan_id+","+report_type+");'>立即处理</div></div>";
-
-
- return strhtml;
- } }
- ],
- data:"",
- pageSize : 10,
- percentWidthMode : true,
- usePager : false,
- alternatingRow : false
-
-
- });
- }
- function showRequire(rowdata, rowindex, value, column){
- if(value=="0"){
- return "待处理";
- }
- if(value=="1"){
- return "待审核";
- }
- if(value=="3"){
- return "待签发";
- }
- if(value=="4"){
- return "待发布";
- }
- if(value=="132"){
- return "队伍待审核";
- }
- if(value=="133"){
- return "队伍待调拨";
- }
- if(value=="54"){
- return "装备待调拨";
- }
- if(value=="53"){
- return "装备待审核";
- }
- if(value=="999"){
- return "待填报";
- }
- if(value=="99999"){
- return "待维护";
- }
- }
- function getRole_id(id){
- if(id.indexOf(",")!=-1){
- var role_ids = id.split(",");
- for(var i=0;i<role_ids.length;i++){
- if(role_ids[i]=="R002105430210"||role_ids[i]=="R002105430211"||role_ids[i]=="R002105430212"||role_ids[i]=="R002105430213"){
- return role_ids[i];
- }
- }
- }else{
- return id;
- }
- }
- function showNextDo(next,type,id,types,plan_id,report_type){
- if(type=="响应通知单"){
- if(next=="1"){
- if(types=="51"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
- }else{
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
- }
- }else if(next=="3"){
- if(types=="51"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
- }else{
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
- }
- }else if(next=="4"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/Warning.jsp");
- }
-
- }
-
- if(type=="预警通知单"){
- if(next=="1"){
- if(types=="51"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
- }else{
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
- }
- }else if(next=="3"){
- if(types=="51"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
- }else{
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
- }
- }else if(next=="4"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/Warning.jsp");
- }
- }
- if(type=="预警报告填报要求"){
- if(report_type=="1"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/report/reportInput/ReportInputAddEdit.jsp?plan_id="+plan_id);
- }else if(report_type=="2"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/report/reportInput1/ReportInputAddEdit.jsp?plan_id="+plan_id);
- }
- }
- if(type=="响应报告填报要求"){
- if(report_type=="3"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/report/reportInput/ReportInputAddEdit.jsp?plan_id="+plan_id);
- }else if(report_type=="4"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/report/reportInput1/ReportInputAddEdit.jsp?plan_id="+plan_id);
- }
- }
-
- if(type=="队伍调拨"){
- //调拨
- if(next=="133"){
-
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/team/TeamDemandAudit.jsp?fd_id="+ id + "&is_audit=" + 1);
- }
-
- if(next=="132"){
- //审核
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/team/TeamDemandAuditCheck.jsp?fd_id="+ id + "&is_audit=" + 0);
- }
-
- if(next=="135"){
- //
- // window.parent.parent.document.getElementById("frmright").setAttribute("src",$.pathname()+ "/page/business/em/response/team/TeamAddEdit.jsp?fd_id="+id);
- window.parent.parent.document.getElementById("frmright").setAttribute("src",$.pathname()+ "/page/business/em/response/team/TeamAddEditTest.jsp?fd_id="+id);
- }
- }
-
-
-
- if(type=="装备调拨"){
- //审核
- if(next=="53"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/em/response/equipment/EquipmentAudit.jsp?fd_id="+id+"&is_audit=0");
- //$.pathname()+"/page/business/em/response/equipment/EquipmentAudit.jsp?fd_id="+fd_id+"&is_audit=0"
- }
-
- if(next=="54"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()
- + "/page/business/em/response/equipment/EquipmentAllot.jsp?fd_id="
- + id + "&is_audit=" + 1);
- }
- // if(next==""){
- // //装备调拨
- // window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/nwyj/page/business/em/response/equipment/EquipmentDemand.jsp");
- // }
- }
-
- if(type=="物资查看权限申请"){
- //alert(id);
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/am/resource/ledger/readDeptMsginfo.jsp?"+id);
- }
-
-
-
- if(type=="报表填报计划"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/em/report/Report_Add.html?"+report_type);
- }
- if(type=="日常报表填报计划"){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/am/report/reportinput/Report_Add.html?"+report_type);
- }
- if(type=="日常报表维护计划"){
- if(report_type=='1'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/team/teamer-inside.jsp");
- }
- if(report_type=='3'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/team/team-poll.jsp");
- }
- if(report_type=='4'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/team/team-poll-out.jsp");
- }
- if(report_type=='6'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/ledger/command-car.jsp");
- }
- if(report_type=='8'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/ledger/generator-car.jsp");
- }
- if(report_type=='10'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/ledger/generator.jsp");
- }
- if(report_type=='5'){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/expert/expert-maintenance.jsp");
- }
- }
- return false;
- }
-
-
- </script>
- <body>
- <div class="duty_grid_cont "><div class = "duty_grid_enter" id="dataGrid2"></div></div>
- </body>
- </html>
|