1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045 |
- <!DOCTYPE html>
- <!--[if IE 8]>
- <html lang="en" class="ie8 no-js"> <![endif]-->
- <!--[if IE 9]>
- <html lang="en" class="ie9 no-js"> <![endif]-->
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>SCD文档管理系统</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <link rel="stylesheet" type="text/css" href="/static/css/sub_bureau.css">
- <link rel="stylesheet" type="text/css" href="/static/css/common.css"/>
- <link rel="stylesheet" type="text/css" href="/static/css/font-awesome.min.css"/>
- <link rel="stylesheet" type="text/css" href="/static/layui_2/css/layui.css" media="all"/>
- <link rel="stylesheet" type="text/css" href="/static/css/kmsjsmap.css"/>
- <link rel="stylesheet" type="text/css" href="/static/css/zTreeStyle/global.css">
- <script src="/static/js/jquery.min.js" type="text/javascript"></script>
- <script src="/static/js/echarts.min.js" type="text/javascript"></script>
- <script src="/static/js/template.js" type="text/javascript"></script>
- <script src="/static/js/police_o.js" type="text/javascript"></script>
- <script src="/static/layui_2/layui.js" type="text/javascript"></script>
- <script src="/static/js/global.js" type="text/javascript"></script>
- <script type="text/javascript" src="/static/js/ztree/jquery.ztree.all_useicon.js"></script>
- <script src="/static/js/jquery.slimscroll.min.js" type="text/javascript"></script>
- <script src="/static/js/TweenMax.js" type="text/javascript"></script>
- <script src="/static/js/mqtt.min.js" type="text/javascript"></script>
- <script src="/static/js/kmsjsmap.js" type="text/javascript"></script>
- <script src="/static/js/jquery.pagination.js" type="text/javascript"></script>
- <style type="text/css">
- .layui-tab-title .layui-this{color: #fff;background: #134BEA;border-radius: 1rem;}
- .layui-tab-title .layui-this::after{border-color:transparent;}
- .layui-tab-title li{background: #fff;color: #134BEA}
- .tree .tree-plus.ace-icon:first-child, .tree .tree-minus.ace-icon:first-child{
- border: 1px solid #7B929D;
- background-color: #134BEA;
- }
- .tree .tree-plus.ace-icon:first-child::before, .tree .tree-minus.ace-icon:first-child::before{
- border-top: 1px solid #A8B9C4;
- }
- .tree .tree-plus.ace-icon:first-child::after{
- border-left: 1px solid #A8B9C4;
- }
- </style>
- </head>
- <body>
- <div class="monitor_center" style="width:100%;height: 100%;">
- <div class="header">
- <div class="header_logo">
- <img src="/static/images/logo.jpg">
- </div>
- <div class="system_middle_title">
- <span class="system_big_title">SCD文档管理系统</span>
- <span class="orgname f_l text_overflow" id="orgname"></span><span class="stationname hidden" id="stationname"></span>
- <div class="scd_info f_l" id="scd_info">
- <span class="scd_name text_overflow"></span>
- <span style="margin-left: 1rem;margin-right: 1rem;font-size: 1.5rem;float: left;"><i class="fa fa-caret-up"></i></span>
- </div>
- </div>
- <div class="header_background">
- <div>
- <div class="main_bar" id="main_bar" style="float: left;margin-right: 2rem;">
- <div class="app_default accessControl app_active" mark="screen" access-code="pl_menu_screen" onclick="window.location.href='scd_network.html'">
- <i class="app_icon fa fa-fw fa-gg"></i>
- <span>网络结构图</span>
- </div>
- <div class="app_default accessControl" mark="screen" access-code="pl_menu_screen" onclick="window.location.href='scd_o.html'">
- <i class="app_icon fa fa-fw fa-file-image-o"></i>
- <span>SCD可视化</span>
- </div>
- <div class="app_default accessControl" mark="outin" access-code="pl_menu_outin" onclick="window.location.href='scd_inout.html'">
- <i class="app_icon fa fa-fw fa-exchange fa-rotate-90"></i>
- <span>签入签出</span>
- </div>
- <div class="app_default accessControl" mark="scdtools" access-code="pl_menu_scdtools" onclick="window.location.href='scd_files.html'">
- <i class="app_icon fa fa-fw fa-file-code-o"></i>
- <span>配置文件</span>
- </div>
- <div class="app_default accessControl" mark="stat" access-code="pl_menu_stat" onclick="window.location.href='scd_stat.html'">
- <i class="app_icon fa fa-fw fa-pie-chart"></i>
- <span>统计分析</span>
- </div>
- <div class="app_default accessControl" mark="admin" access-code="pl_menu_admin" onclick="window.location.href='police_o_admin.html'" style="margin-right: 0;">
- <i class="app_icon fa fa-fw fa-laptop"></i>
- <span>管理后台</span>
- </div>
- </div>
- <div class="app_default" style="color: #7A13E1;">|</div>
- <div class="app_default">
- <span class="yyyymmdd f_l" style="cursor:default;font-size: 1.4rem;font-family:electronicFont;width: 8rem;"> </span>
- <span class="week f_l" style="cursor:default;font-size: 1.4rem;width: 5rem;"> </span>
- <span class="hour_minute f_l" style="cursor:default;letter-spacing: 0.3rem;font-size: 1.4rem;color: #516380;font-family:electronicFont;width: 8rem;"> </span>
- </div>
- <div class="app_default" style="color: #7A13E1;">/</div>
- <div class="app_default" style="border-bottom: 0px solid #7A13E1;height: 93%;">
- <a style="font-size: 1.4rem;cursor: pointer;" href="/" title="当前登录人员"><i class="fa fa-user" style="color: #00CEFB;font-size: 1.8rem;margin-right: 0.5rem;"></i><span id="login_user_name"></span></a>
- </div>
- <div class="app_default" style="color: #7A13E1;">/</div>
- <div class="app_default" style="border-bottom: 0px solid #7A13E1;height: 93%;">
- <a style="font-size: 1.6rem;cursor: pointer;" href="/" title="退出"><i class="layui-icon layui-icon-logout" style="background-color: transparent !important;color: #00CEFB;"></i></a>
- </div>
- </div>
- </div>
- <div class="user_role hidden" id="login_user_role"></div>
- </div>
- <div class="body_content">
- <!--中间-->
- <div class="body_center home_center" id="container_map">
- <div id="container_map_ied" style="position: absolute;z-index: 1;height: 100%;width: 77%;left: 20%;top:0;"></div>
- </div>
- </div>
- </div>
- <!--SCD列表-->
- <div class="scd_list hidden" id="scd_list"></div>
- <!--电压等级列表-->
- <div class="station_list hidden" id="voltage_level_list"></div>
- <!--间隔列表-->
- <div class="station_list hidden" id="area_list">
- <div></div>
- </div>
- <!--设备类型列表-->
- <div class="station_list hidden" id="device_type_list"></div>
- <!--左侧树-->
- <!--展开按钮-->
- <div id="scd_tree_btn" title="显示SCD结构树" class="abs scd_node_tree_btn hidden"><i class="fa fa-caret-right" style="color: #fff"></i></div>
- <!--树-->
- <div id="scd_tree_list" class="abs scd_node_tree ">
- <div class="title f_l"><span class="f_l">变电站列表</span></div>
- <div class="list f_l station_list" style="background-color: transparent;"></div>
- </div>
- <!--IED结构关系图窗口-->
- <div id="device_video" class="site_device_list hidden" style="height: 64rem;width: 48rem;">
- <span class="text_overflow caption" style="position: relative;color: #fff;height: 5%;line-height: 4rem;"><b></b><i class="fa fa-times" title="关闭窗口" onclick="$('#device_video').addClass('hidden')" style="font-size: 2.4rem;"></i></span>
- <div class="dataitemlist" style="padding:0;height:85%;width: 100%; text-align: center;overflow: hidden;position: relative;">
- <canvas id="canvas" style="position: absolute;left: 0;top:0;z-index: 1;background-color: transparent;height:100%;width: 100%;"></canvas>
- <div id="dataitemlist" style="position: absolute;left: 0;top:0;z-index: 0;height:100%;width: 100%;"></div>
- </div>
- <span class="caption" style="position: relative;color: #fff;height: 10%;background-color: #ffffff45;">
- <span style="float: left;width: 4%;font-size: 1.8rem;text-align: center;background-color: #425280;padding: 1rem;">关联IED</span>
- <span style="float: left;width: 93%;overflow: auto;height: 6rem;" class="ref_ied_list"></span>
- </span>
- </div>
- <div id="ied_strcut" class="site_device_list hidden" style="height: 64rem;width: 48rem;">
- <span class="text_overflow caption" style="position: relative;color: #fff;height: 5%;line-height: 4rem;"><b></b><i class="fa fa-times" title="关闭窗口" onclick="$('#ied_strcut').addClass('hidden');$('#showLnList').remove();" style="font-size: 2.4rem;"></i></span>
- <div class="dataitemlist" style="padding:0;height:85%;width: 100%; text-align: center;overflow: hidden;position: relative;">
- <div id="ied_strcut_detail" style="position: absolute;left: 0;top:0;z-index: 0;height:100%;width: 100%;overflow: auto;"></div>
- </div>
- <span class="caption" style="position: relative;color: #fff;height: 10%;background-color: #ffffff45;">
- <span style="float: left;width: 4%;font-size: 1.8rem;text-align: center;background-color: #425280;padding: 1rem;">关联IED</span>
- <span style="float: left;width: 93%;overflow: auto;height: 6rem;" class="ref_ied_list"></span>
- </span>
- </div>
- <div id="dialog_public" class="site_device_list dialog_public">
- <span class="text_overflow caption"><b></b>
- <span class="dlg_close" title="关闭窗口">
- <span class="dlg_icon_close"></span>
- </span>
- </span>
- <div class="dataitemlist">
- <div id="ln_strcut_detail" style="position: absolute;left: 0;top:0;z-index: 0;height:100%;width: 100%;"></div>
- </div>
- </div>
- <!--SCL校验-->
- <script type="text/html" id="checktools_scl_tpl">
- <div id="node_tree" class="f_l" style="width: 20%;text-align: left;background-color: #F3F5FA;border-radius: 4px;border: 1px solid #DCDEE3;">
- <div class="ztree tree"></div>
- </div>
- <div id="content_div" class="f_l" style="width: 78%;height: 100%;position: relative;background: #fff;margin-left: 1%;">
- <div class="f_l stat" style="width: 100%;height: 4rem;line-height: 4rem;">
- <span>
- <span alert_level="" style="margin: 0 1rem;cursor: pointer;">全部:<b class="alert_level_all">0</b></span>
- <span alert_level="error" style="margin: 0 1rem;cursor: pointer;">错误:<b class="alert_level_error">0</b></span>
- <span alert_level="waring" style="margin: 0 1rem;cursor: pointer;">告警:<b class="alert_level_waring">0</b></span>
- <span alert_level="hint" style="margin: 0 1rem;cursor: pointer;">提示:<b class="alert_level_hint">0</b></span>
- <span class="btn f_l accessControl func_scdcomp_exportexcel" access-code="func_scdcomp_exportexcel" isall="1" style="width: 12rem;margin-top: 0.3rem;margin-left: 1.5rem;text-align: center;"><i class="fa fa-file-excel-o"></i>导出所有结果</span>
- <span class="btn f_l accessControl func_scdcomp_exportexcel" access-code="func_scdcomp_exportexcel" isall="0" style="width: 15rem;margin-top: 0.3rem;margin-left: 1.5rem;text-align: center;"><i class="fa fa-file-excel-o"></i>导出当前节点结果</span>
- </span>
- </div>
- <div class="datalist_header" style="height: 4rem;line-height: 2.6rem;overflow: auto;width: 100%">
- <table style="width: 100%;text-align: left;background-color: #423176;"><thead><tr>
- <td class="" style="width: 6%;padding-left: 1rem;">装置名称</td>
- <td class="" style="width: 14%">装置描述</td>
- <td class="" style="width: 8%">等级</td>
- <td class="" style="width: 8%">行号</td>
- <td class="" style="width: 47%">描述</td>
- <td class="" style="width: 15%">标准及条款</td>
- </tr></thead></table>
- </div>
- <div class="f_l datalist" style="width: 100%;"></div>
- <div class="f_l pagebar pagination" style="width: 100%;height: 4rem;line-height: 2rem;"></div>
- </div>
- </script>
- <script type="text/html" id="checktools_scl_datalist_tpl">
- <table style="width: 100%;text-align: left;table-layout: fixed;">
- <tbody>
- {{each data}}
- <tr class="alert_level_{{$value.alert_level}}" alertid="{{$value.node_id}}">
- <td class="" style="width: 6%;padding-left: 1rem;">{{#($value.ied_name||"-")}}</td>
- <td class="" style="width: 14%;line-height: 2rem;">{{#($value.ied_desc||"-")}}</td>
- <td class="" style="width: 8%">{{alertLevelDesc $value.alert_level}}</td>
- <td class="" style="width: 8%;line-height: 2rem;"><a style="color: #8080f0;text-decoration: underline;cursor: pointer;" href="javascript:PoliceObject.OpenToXml({{$value.scd_id}},{{$value.line_no}},'{{$value.parse_result}}')">{{$value.line_no}}</a></td>
- <td class="" style="width: 47%;line-height: 2rem;">{{$value.parse_result}}</td>
- <td class="" style="width: 15%;line-height: 2rem;" title="">{{$value.apply_standard}} {{$value.apply_standard_no}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </script>
- <!--SCD校验-->
- <script type="text/html" id="checktools_scd_tpl">
- <div class="f_l" style="width: 30%">
- <div id="scd_comp_tools" class="f_l" style="width: 100%;height: 5rem;text-align: left;">
- <span class="btn f_l accessControl func_scdcomp_new" access-code="func_scdcomp_new" style="width: 10rem;margin-left: 1.5rem;text-align: center;"><i class="fa fa-plus"></i>新的比对</span>
- <span class="btn f_l accessControl func_scdcomp_start" access-code="func_scdcomp_start" style="width: 10rem;margin-left: 1.5rem;text-align: center;"><i class="fa fa-check"></i>重新比对</span>
- <span class="btn f_l accessControl func_scdcomp_exportexcel" access-code="func_scdcomp_exportexcel" style="width: 12rem;margin-left: 1.5rem;text-align: center;"><i class="fa fa-file-excel-o"></i>导出所有结果</span>
- </div>
- <div id="scd_comp_list" class="f_l" style="width: 100%;height: 90%;text-align: left;background-color: #fbfbfb;border: 1px solid #f2f2f2;">
- <table class="datalist_header f_l" style="width: 100%;text-align: center;background-color: #fbfbfb;"><thead><tr>
- <td class="text_overflow" style="width: 9%;">选择</td>
- <td class="text_overflow" style="width: 40%;">比对SCD</td>
- <td class="text_overflow" style="width: 38%;">日期</td>
- <td class="text_overflow" style="width: 10%;">操作</td>
- </tr></thead></table>
- <div class="datalist f_l"></div>
- </div>
- </div>
- <div id="content_div" class="f_l" style="width: 68%;margin-left: 1.5%;height: 98%;position: relative;background: #fff;border: 1px solid #C8D4E2;border-radius:0.5rem;background: #F3F5FA;">
- <div id="node_tree" class="f_l" style="width: 97%;height: 4rem;line-height: 4rem;text-align: left;color: #516380;background: #FFF;margin:1%;">
- <div class="f_l" style="text-align: center;width: 49%"><span>基准SCD:</span><b style="color: #09162C">—</b></div>
- <div class="f_l" style="width: 2%;color: #516380;font-weight: bold;text-align: center;font-size: 2rem;">|</div>
- <div class="f_l" style="text-align: center;width: 49%"><span>比对SCD:</span><b style="color: #09162C">—</b></div>
- </div>
- <div id="comp_show_area" class="f_l" style="width: 100%;height: 90.5%;margin-left: 0;position: relative;">
- <div>请选择比对记录或创建新的比对</div>
- </div>
- </div>
- </script>
- <script type="text/html" id="checktools_scd_datalist_tpl">
- <table style="width: 100%;text-align: center;">
- <tbody>
- {{each data}}
- <tr style="border-bottom: 1px solid #f0f0f0;">
- <td class="text_overflow" style="width: 9%;">{{if $value.node_state=="1"}}<input type="radio" name="comp_selected" value="{{$value.id}}">{{else}} {{/if}}</td>
- <td class="text_overflow" style="width: 40%" title="{{$value.source_name}}与{{$value.target_name}}">{{#($value.name||"-")}}</td>
- <td class="text_overflow" style="width: 38%">{{$value.CREATED_TIME}}</td>
- <td class="text_overflow" style="width: 10%">
- {{if $value.node_state=="1"}}
- <span onclick="PoliceObject.CheckTools_Scd_Comp_Detail(this,'{{$value.id}}','{{$value.source_name}}','{{$value.target_name}}','{{$value.source_id}}','{{$value.target_id}}')" style="cursor: pointer;border-bottom: 1px solid #9784d0;color: #9784d0;">查看</span>
- {{else}}...{{/if}}
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </script>
- <script type="text/html" id="comp_scd_tpl">
- <div class="abs comp_scd" style="left:20%">
- <img src="/static/images/comp_scd/version.png">
- <div class="scd_font">SCD版本</div>
- <div style="margin-top: 1rem;">
- <div><img src="/static/images/comp_scd/change_icon_1.png" style="width: 1rem"><b> {{version.target||'无'}}</b></div>
- <div><img src="/static/images/comp_scd/allow.png" style="height: 4rem;width: 1rem;"></div>
- <div style="color: #000;"><img src="/static/images/comp_scd/change_icon_2.png" style="width: 1rem"><b> {{version.source||'无'}}</b></div>
- </div>
- </div>
- <div class="abs comp_scd" style="left:45%">
- <img src="/static/images/comp_scd/crc.png">
- <div class="scd_font">CRC</div>
- <div style="margin-top: 1rem;">
- <div><img src="/static/images/comp_scd/change_icon_1.png" style="width: 1rem"><b> {{crc.target||'无'}}</b></div>
- <div><img src="/static/images/comp_scd/allow.png" style="height: 4rem;width: 1rem;"></div>
- <div style="color: #000;"><img src="/static/images/comp_scd/change_icon_2.png" style="width: 1rem;"><b> {{crc.source||'无'}}</b></div>
- </div>
- </div>
- <div class="abs comp_scd" style="left:70%">
- <img src="/static/images/comp_scd/ied.png">
- <div class="scd_font">IED</div>
- </div>
- <div class="abs" id="ied_change_stat">
- <div class="change_btn f_l" style="color: #134BEA" change_type='i' change_num="{{ied.addnum||'0'}}"><span class="abs linkpointer"> </span><img src="/static/images/comp_scd/add.png"> 新增({{ied.addnum||'0'}})</div>
- <div class="change_btn f_l" style="color: #FFBC11" change_type='u' change_num="{{ied.editnum||'0'}}"><span class="abs linkpointer"> </span><img src="/static/images/comp_scd/edit.png"> 更改({{ied.editnum||'0'}})</div>
- <div class="change_btn f_l" style="color: #FF0000" change_type='d' change_num="{{ied.delnum||'0'}}"><span class="abs linkpointer"> </span><img src="/static/images/comp_scd/del.png"> 删除({{ied.delnum||'0'}})</div>
- </div>
- </script>
- <script type="text/html" id="comp_scd_ied_tpl">
- <div class="f_l comp_ied_list" id="comp_ied_list">
- <div style="font-weight: bold;text-align: left;border-bottom: 1px solid #ccc;line-height: 3rem;">【{{opt}}】的设备列表 ({{num}})</div>
- <div class="ied_data_list">
- {{each list}}
- <div class="ied_item text_overflow" title="{{$value.ied_desc}}" ied_name="{{$value.ied_name}}">({{$value.ied_name}}){{$value.ied_desc}}</div>
- {{/each}}
- </div>
- <div class="ied_comp_items">
- <div class="f_l node" type='ied' num='0'><i class="f_l fa fa-caret-right" /><span class="f_l">装置信息</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="ied" type="scd.ied" num='0'><span class="f_l">基本信息</span><span class="f_r num">0</span></div>
- <div class="f_l node" type='Communication' num='0'><i class="f_l fa fa-caret-right" /><span class="f_l">通信参数</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Communication" type="scd.ied.Communication" num='0'><span class="f_l">通信接入点</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Communication" type="scd.ied.Communication.S1" num='0'><span class="f_l">站控层通信参数</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Communication" type="scd.ied.Communication.GSE" num='0'><span class="f_l">GOOSE 通信参数</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Communication" type="scd.ied.Communication.SMV" num='0' num='0'><span class="f_l">SV 通信参数</span><span class="f_r num">0</span></div>
- <div class="f_l node" type='Point' num='0'><i class="f_l fa fa-caret-right" /><span class="f_l">测点信息</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Point" type="scd.ied.YX" num='0'><span class="f_l">遥信</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Point" type="scd.ied.YK" num='0'><span class="f_l">遥控</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Point" type="scd.ied.YC" num='0'><span class="f_l">遥测</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Point" type="scd.ied.YM" num='0'><span class="f_l">遥脉</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="Point" type="scd.ied.DZ" num='0'><span class="f_l">定值</span><span class="f_r num">0</span></div>
- <div class="f_l node" type='config' num='0'><i class="f_l fa fa-caret-right"/><span class="f_l">回路配置</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="config" type="scd.ied.FCDA" num='0'><span class="f_l">发布虚端子</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="config" type="scd.ied.ExtRef" num='0'><span class="f_l">定阅虚端子</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="config" type="scd.ied.Relation" num='0'><span class="f_l">虚回路信息</span><span class="f_r num">0</span></div>
- <div class="f_l node" type='model' num='0'><i class="f_l fa fa-caret-right"/><span class="f_l">建模信息</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="model" type="scd.ied.DatSet" num='0'><span class="f_l">数据集</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="model" type="scd.ied.DatSetMeber" num='0'><span class="f_l">数据集成员</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="model" type="scd.ied.GSEControl" num='0'><span class="f_l">GOOSE控制块</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="model" type="scd.ied.SampledValueControl" num='0'><span class="f_l">SV控制块</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="model" type="scd.ied.ReportControl" num='0'><span class="f_l">报告控制块</span><span class="f_r num">0</span></div>
- <div class="f_l children hidden" p_type="model" type="scd.ied.LogControl" num='0'><span class="f_l">日志控制块</span><span class="f_r num">0</span></div>
- </div>
- </div>
- <div class="f_l comp_ied_result_show" id="comp_ied_result_show">
- <div id="node_tree" class="f_l" style="width: 98%;height: 4rem;line-height: 4rem;text-align: left;color: #516380;background: #FFF;margin:1%;">
- <div class="f_l" style="text-align: center;width: 49%"><span>基准SCD:</span><b style="color: #09162C">—</b></div>
- <div class="f_l" style="width: 2%;color: #516380;font-weight: bold;text-align: center;font-size: 2rem;">|</div>
- <div class="f_l" style="text-align: center;width: 49%"><span>比对SCD:</span><b style="color: #09162C">—</b></div>
- </div>
- <div class="comp_show_area" class="f_l">
- <div>正在加载数据中...</div>
- </div>
- </div>
- </script>
- <script type="text/html" id="comp_ied_result_show_tpl">
- <div class="comp_ied_result_split_line"></div>
- <div class="iedele source_ied" style="left: 5%"><img src="/static/images/default_ied.png"><div class="ied_name"></div></div>
- <div class="iedele target_ied" style="left: 90%"><img src="/static/images/default_ied.png"><div class="ied_name"></div></div>
- </script>
- <!--SCD校验模板定义结束-->
- <script type="text/html" id="main_tpl">
- <div class="scd_tools f_l">
- <!--工具栏-->
- <div class="tools_btns">
- <span class="" onclick="PoliceObject.CheckTools('scd','SCD文件一致性校验')">SCD文件一致性校验</span>
- <span class="hidden" onclick="PoliceObject.CheckTools('icd_cid','ICD/CID文件一致性校核')">ICD/CID文件一致性校核</span>
- <span class="hidden" onclick="PoliceObject.CheckTools('icd_cid_ied','ICD/CID与SCD中IED一致性')">ICD/CID与SCD中IED一致性</span>
- <span onclick="PoliceObject.CheckTools('scl','SCL文件校验')">SCL文件校验</span>
- <span class="hidden" onclick="PoliceObject.CheckTools('ccd','CCD文件一致性校验')">CCD文件一致性校验</span>
- <span class="hidden" onclick="PoliceObject.CheckTools('ccd_scd','CCD与SCD文件一致性校验')">CCD与SCD文件一致性校验</span>
- <span class="" onclick="PoliceObject.CheckTools('crc','CRC校验结果')">CRC校验</span>
- </div>
- </div>
- <div class="scd_filter f_l hidden">
- <!--过滤栏-->
- <span class="f_l iedNumber" style="font-size: 1.6rem;line-height: 3.6rem;margin-right: 4rem;">共 <b></b> 台装置</span>
- <div class="filter_cond f_l" filter_type="voltage_level" id="voltage_level_select">
- <span class="filter_text">电压等级</span>
- <i class="fa fa-caret-up"></i>
- <span class="rect_left_top"></span>
- <span class="rect_left_bottom"></span>
- <span class="rect_right_top"></span>
- <span class="rect_right_bottom"></span>
- </div>
- <div class="filter_cond f_l" filter_type="area" id="area_select">
- <span class="filter_text">间隔</span>
- <i class="fa fa-caret-up"></i>
- <span class="rect_left_top"></span>
- <span class="rect_left_bottom"></span>
- <span class="rect_right_top"></span>
- <span class="rect_right_bottom"></span>
- </div>
- <div class="filter_cond f_l" filter_type="device_type" id="device_type_select">
- <span class="filter_text">装置类型</span>
- <i class="fa fa-caret-up"></i>
- <span class="rect_left_top"></span>
- <span class="rect_left_bottom"></span>
- <span class="rect_right_top"></span>
- <span class="rect_right_bottom"></span>
- </div>
- <!--搜索区域-->
- <div id="search_panel" class="search_panel f_l" style="width: 24rem;position: relative;">
- <span class="rect_left_top"></span>
- <span class="rect_left_bottom"></span>
- <span class="rect_right_top"></span>
- <span class="rect_right_bottom"></span>
- <div class="search_box" >
- <input class="search_input" style="width:65%;font-size:1.4rem;color: #BAC5E1" id="search_input" maxlength="40" placeholder="请输入IED编码或者名称"/>
- </div>
- <span class="search_botton" id="search_button" style="font-size:1.8rem;width:4rem;margin-top: -3.2rem;height: 3.2rem;line-height: 3.2rem;"><i class="fa fa-search"></i></span>
- </div>
- <div class="station_list hidden" id="search_result"></div>
- <!--搜索区域结束-->
- </div>
- <div class="network" id="network">
- <div class="network_area"></div>
- </div>
- </script>
- <script type="text/html" id="ied_list_tpl">
- {{each data}}
- <div class="f_l ied_list_item" name="{{$value.attr_name}}" id="{{$value.node_id}}">
- <img class="f_l" src='/static/images/ied.png'>
- <span class="f_l l_c" style="color: #ccc">{{$value.attr_name}}</span>
- <span class="f_l">{{$value.attr_desc}}</span>
- </div>
- {{/each}}
- </script>
- <script type="text/html" id="ied_detail_tpl">
- <div id="ied_list_tree" class="station_list f_l" style="width:19%;height: 100%;text-align: left;position: static;box-shadow: 0px 0px 0px 0px rgba(163,139,243,0.56);">
- <div><input type="text" class="layui-input fast_find_list" placeholder="快速查找" style="background: #a09eb9;color: #fff;border-color: #45436a;"></div>
- <div></div>
- </div>
- <div class="tools f_l" style="height: 5rem;width:80%;">
- <ul class="layui-tab-title" style="text-align: center;border: 0;padding-top: 1rem;">
- <li class="layui-this" onclick="PoliceObject.LoadIedGraph(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">装置关联关系</li>
- <li class="" onclick="PoliceObject.LoadIedCtrlRelation(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">输入输出控制块</li>
- <li class="" onclick="PoliceObject.LoadIedAllPointRelation(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">虚端子关系</li>
- <li class="" onclick="PoliceObject.LoadIedStrcut(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">基础信息</li>
- <li class="" onclick="PoliceObject.LoadIedDingzhiTable(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">定值条目</li>
- <li class="" onclick="PoliceObject.LoadIedPointTable(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">信息点表</li>
- <li class="" onclick="PoliceObject.LoadIedSourceXML(this,PoliceObject.GetIedData($(this).parents('.site_device_list').attr('ied_name'),$(this).parents('.site_device_list').attr('scd_id')))">源文件</li>
- </ul>
- </div>
- <div class="content f_l" style="width:80%">
- <div class="hidden" id="ied_info" style="position: relative;height: 100%;">
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;"></div>
- </div>
- <div class="hidden" id="ied_relation" style="position: relative;height: 100%;">
- <div class="abs tools layui-tab-title" style="margin: 0 !important;width: 98% !important;border: 0 !important;margin-left: 1% !important;text-align: left;top: 1%;border-bottom: 1px solid #ccc !important;border-radius: 0 !important;">
- <li class="layui-this ref_map">关联图</li><li class="sv_send">SV发送</li><li class="sv_revice">SV接收</li><li class="goose_send">GOOSE发送</li><li class="goose_revice">GOOSE接收</li>
- </div>
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;"></div>
- </div>
- <div class="hidden" id="ied_allpoint_info" style="position: relative;height: 100%;">
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;"></div>
- </div>
- <div class="hidden" id="ied_basicinfo" style="position: relative;height: 100%;">
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;"></div>
- </div>
- <div class="hidden" id="ied_dingzhiinfo" style="position: relative;height: 100%;">
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;"></div>
- </div>
- <div class="hidden" id="ied_pointtableinfo" style="position: relative;height: 100%;">
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;"></div>
- </div>
- <div class="hidden" id="ied_sourcexmlinfo" style="position: relative;height: 100%;">
- <div id="ied_strcut_detail" style="height: 60rem;position: relative;margin: 1rem;"></div>
- </div>
- </div>
- </script>
- <script type="text/html" id="station_list_item_tpl">
- {{each data}}
- <div class="station_list_item" stationid="{{$value.id}}"><i style="height: 1px;" class="f_l fa-fw"><i class="hidden fa fa-dot-circle-o"></i></i>{{$value.area_name}}</div>
- {{/each}}
- </script>
- <script type="text/html" id="voltage_level_item_tpl">
- {{each data}}
- <div class="voltage_level_item" itemid="{{$value.id}}">
- <div class="voltage_level_name">{{$value.name}}</div>
- <div class="voltage_level_area"></div>
- </div>
- {{/each}}
- </script>
- <script type="text/html" id="select_item_tpl">
- {{each data}}
- <div class="station_list_item text_overflow" value="{{$value.id||$value.code}}">{{#$value.name}}</div>
- {{/each}}
- </script>
- <script type="text/html" id="dingzhi_datasetlist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 4rem">访问点</td><td style="width: 15rem">逻辑设备(Inst)</td><td style="width: 15rem">数据集名称</td><td style="width: 20rem">数据集描述</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr fcdalist='{{$value.fcdalist}}'><td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 4rem">{{$value.accesspoint_name}}</td>
- <td style="width: 15rem">{{$value.ld_desc}}({{$value.ld_name}})</td>
- <td style="width: 15rem">{{$value.dataset_name}}</td>
- <td style="width: 20rem">{{$value.dataset_desc}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <script type="text/html" id="dingzhi_fcdalist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 16rem">条目描述</td><td style="width: 6rem">最大值</td><td style="width: 6rem">最小值</td><td style="width: 6rem">单位</td><td style="width: 6rem">步长</td><td style="width: 12rem">数据类型</td><td style="width: 15rem">内部地址</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr>
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 16rem;line-height: 1.2rem;">{{$value.doi_desc}}</td>
- <td style="width: 6rem">{{$value.da_maxval||''}}</td>
- <td style="width: 6rem">{{$value.da_minval||''}}</td>
- <td style="width: 6rem">{{$value.da_units||''}}</td>
- <td style="width: 6rem">{{$value.da_stepsize||''}}</td>
- <td style="width: 12rem">{{$value.da_datatype||''}}</td>
- <td style="width: 15rem">{{$value.short_addr||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--信息点表模板-->
- <script type="text/html" id="pointtable_datasetlist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 4rem">访问点</td><td style="width: 8rem">逻辑设备(Inst)</td><td style="width: 8rem">控制块名称</td><td style="width: 12rem">控制块描述</td><td style="width: 8rem">数据集名称</td><td style="width: 12rem">RptID</td><td style="width: 6rem">完整性周期</td><td style="width: 4rem">配置版本</td><td style="width: 4rem">是否缓存</td><td style="width: 4rem">缓存时间</td><td style="width: 6rem">信息点数量</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr fcdalist='{{$value.fcdalist}}'>
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 4rem">{{$value.accesspoint_name}}</td>
- <td style="width: 8rem">{{$value.ld_desc}}({{$value.ld_inst}})</td>
- <td style="width: 8rem">{{$value.block_name}}</td>
- <td style="width: 12rem">{{$value.block_desc}}</td>
- <td style="width: 8rem">{{$value.block_datset}}</td>
- <td style="width: 12rem">{{$value.block_rptid}}</td>
- <td style="width: 6rem">{{$value.block_intgpd}}</td>
- <td style="width: 4rem">{{$value.block_confrev}}</td>
- <td style="width: 4rem">{{$value.block_buffered}}</td>
- <td style="width: 4rem">{{$value.block_buftime}}</td>
- <td style="width: 6rem">{{$value.point_cnt}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--信息点表模板-->
- <script type="text/html" id="pointtable_fcdalist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 20rem">条目描述</td><td style="width: 8rem">数据类型</td><td style="width: 20rem">内部地址</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr>
- <td style="width: 4rem">{{$index+1}}</td><td style="width: 20rem">{{$value.doi_desc}}</td><td style="width: 8rem">{{$value.da_datatype||''}}</td><td style="width: 20rem">{{$value.short_addr||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--SV发送列表模板-->
- <script type="text/html" id="svsend_datasetlist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 10rem">控制块名称</td><td style="width: 8rem">数据集</td><td style="width: 15rem">APPID</td><td style="width: 15rem">MAC地址</td><td style="width: 6rem">VLAN-ID</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr ctrl_id="{{$value.node_id}}"><td style="width: 4rem">{{$index+1}}</td><td style="width: 10rem">{{$value.attr_name}}</td><td style="width: 8rem">[{{$value.attr_dat_set}}]{{$value.datset_desc}}</td><td style="width: 15rem">{{$value.address.APPID}}</td><td style="width: 15rem">{{$value.address.MAC_Address}}</td><td style="width: 6rem">{{$value.address.VLAN_ID}}</td></tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--SV发送列表模板-->
- <script type="text/html" id="svsend_fcdalist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 15rem">内部端子描述</td><td style="width: 15rem">内部端子地址</td><td style="width: 15rem">外部IED名称</td><td style="width: 15rem">外部端子描述</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr>
- <td style="width: 4rem">{{$index+1}}</td><td style="width: 15rem">{{$value.do_desc}}</td>
- <td style="width: 15rem">{{$value.ld_inst||''}}/{{$value.prefix}}{{$value.ld_inst}}{{$value.ln_class}}{{$value.ln_inst}}.{{$value.do_name}}</td>
- <td style="width: 15rem">{{$value.out_ied_name||''}}{{'.'+$value.out_ied_desc||''}}</td>
- <td style="width: 15rem">{{$value.out_do_desc||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--SV接收模板-->
- <script type="text/html" id="svrev_datasetlist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 15rem">输入IED</td><td style="width: 15rem">控制块名称</td><td style="width: 10rem">数据集</td><td style="width: 10rem">APPID</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr fcdalist="{{$value.info.list}}">
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 15rem">[{{$value.info.out_ied_name}}]{{$value.info.out_ied_desc}}</td>
- <td style="width: 15rem">{{$value.info.out_smv_ctrl_name||''}}</td>
- <td style="width: 10rem">{{$value.info.out_dataset_name||''}}</td>
- <td style="width: 10rem">{{$value.info.out_smv_ctrl_address.APPID||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <script type="text/html" id="svrev_fcdalist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 15rem">内部端子描述</td><td style="width: 15rem">内部端子地址</td><td style="width: 15rem">外部IED名称</td><td style="width: 15rem">外部端子描述</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr>
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 15rem">{{$value.do_desc}}</td>
- <td style="width: 15rem">{{$value.int_addr}}</td>
- <td style="width: 15rem">{{$value.out_ied_name||''}}{{'.'+$value.out_ied_desc||''}}</td>
- <td style="width: 15rem">{{$value.out_do_desc||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--GOOSE发送列表模板-->
- <script type="text/html" id="goosesend_datasetlist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 10rem">控制块名称</td><td style="width: 10rem">数据集</td><td style="width: 6rem">APPID</td><td style="width: 10rem">MAC地址</td><td style="width: 10rem">VLAN-ID</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr ctrl_id="{{$value.node_id}}"><td style="width: 4rem">{{$index+1}}</td><td style="width: 10rem">{{$value.attr_name}}</td><td style="width: 10rem">[{{$value.attr_dat_set}}]{{$value.datset_desc}}</td><td style="width: 6rem">{{$value.address.APPID}}</td><td style="width: 10rem">{{$value.address.MAC_Address}}</td><td style="width: 10rem">{{$value.address.VLAN_ID}}</td></tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--GOOSE发送列表模板-->
- <script type="text/html" id="goosesend_fcdalist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 15rem">内部端子描述</td><td style="width: 15rem">内部端子地址</td><td style="width: 15rem">外部IED名称</td><td style="width: 15rem">外部端子描述</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr>
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 15rem">{{$value.do_desc}}</td>
- <td style="width: 15rem">{{$value.ld_inst||''}}/{{$value.prefix}}{{$value.ld_inst}}{{$value.ln_class}}{{$value.ln_inst}}.{{$value.do_name}}</td>
- <td style="width: 15rem">{{$value.out_ied_name||''}}{{'.'+$value.out_ied_desc||''}}</td>
- <td style="width: 15rem">{{$value.out_do_desc||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--GOOSE接收模板-->
- <script type="text/html" id="gooserev_datasetlist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 15rem">输入IED</td><td style="width: 15rem">控制块名称</td><td style="width: 15rem">数据集</td><td style="width: 8rem">APPID</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr fcdalist="{{$value.info.list}}">
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 15rem">[{{$value.info.out_ied_name}}]{{$value.info.out_ied_desc}}</td>
- <td style="width: 15rem">{{$value.info.out_gse_ctrl_name||''}}</td>
- <td style="width: 15rem">{{$value.info.out_dataset_name||''}}</td>
- <td style="width: 8rem">{{$value.info.out_gse_ctrl_address.APPID||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <script type="text/html" id="gooserev_fcdalist_tpl">
- <table class="headertable" style="width: 98%;">
- <thead><tr><td style="width: 4rem">序号</td><td style="width: 15rem">内部端子描述</td><td style="width: 15rem">内部端子地址</td><td style="width: 15rem">外部IED名称</td><td style="width: 15rem">外部端子描述</td></tr></thead>
- </table>
- <div class="detailtable" style="width: 100%;height: 96%;">
- <table style="width: 100%;">
- <tbody>
- {{each data}}
- <tr>
- <td style="width: 4rem">{{$index+1}}</td>
- <td style="width: 15rem">{{$value.do_desc}}</td>
- <td style="width: 15rem">{{$value.int_addr}}</td>
- <td style="width: 15rem">{{$value.out_ied_name||''}}{{'.'+$value.out_ied_desc||''}}</td>
- <td style="width: 15rem">{{$value.out_do_desc||''}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </script>
- <!--crc校验结果-->
- <script type="text/html" id="checktools_crc_tpl">
- <div style="width: 96%;height: 6%;margin:0 2%;">
- <span>SCD文件CRC:</span><span id="scdcrc" style="margin: 0 1rem;font-weight: bold;">-</span>
- <span>SCD校验CRC:</span><span id="scdcrc2" style="margin: 0 1rem;font-weight: bold;">-</span>
- <span>校验结果:</span><span id="scdcrcresult" style="margin: 0 1rem;font-weight: bold;">-</span>
- </div>
- <table style="width: 98%">
- <thead><tr><td style="width: 6rem">序号</td><td style="width: 10rem">装置名称</td><td style="width: 24rem;">装置描述</td><td style="width: 10rem">厂家</td><td style="width: 10rem">型号</td><td style="width: 10rem">IED版本</td><td style="width: 10rem">CCD CRC</td><td style="width: 10rem">SCD CRC</td><td style="width: 10rem">校验CRC</td>
- <td style="width: 10rem">校验结果</td></tr></thead>
- </table>
- <div id="iedcrclist" style="width: 100%;height: 86%;margin: 0"></div>
- </script>
- <script type="text/html" id="checktools_crc_list_tpl">
- <table style="width: 100%">
- <tbody>
- {{each data}}
- <tr>
- <td class="" style="width: 6rem">{{$index+1}}</td>
- <td class="" style="width: 10rem;">{{$value.iedname}}</td>
- <td class="" style="width: 24rem;line-height: 1.2rem;" title="{{$value.ieddesc}}">{{$value.ieddesc}}</td>
- <td class="" style="width: 10rem;line-height: 1.2rem;" title="{{$value.manufacturer||''}}">{{$value.manufacturer}}</td>
- <td class="" style="width: 10rem;line-height: 1.2rem;" title="{{$value.type||''}}">{{$value.type}}</td>
- <td class="" style="width: 10rem;line-height: 1.2rem;">{{$value.iedversion||'-'}}</td>
- <td class="" style="width: 10rem">{{$value.ccdcrc||'无'}}</td>
- <td class="" style="width: 10rem">{{$value.scdcrc||'无'}}</td>
- <td class="" style="width: 10rem">{{$value.checkcrc||'无'}}</td>
- <td class="" style="width: 10rem">{{if $value.checkcrc!=null && $value.scdcrc==$value.checkcrc}}一致{{else}}<b style="color: red">不一致</b>{{/if}}</td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </script>
- <script type="text/javascript">
- template.helper("FullImgPath",function(imgsrc){
- if(imgsrc==null||imgsrc=="") return Global.AccessUrl+ "/static/images/userhead.png";
- if (imgsrc.substr(0, 4) != "http") {
- var _index = imgsrc.indexOf("static/");
- if (_index > -1) return Global.AccessUrl + imgsrc.substr(_index);
- }
- return imgsrc;
- })
- template.helper("ts2datetime",function(timestamp){
- if(timestamp==null||timestamp=="") return "";
- if(timestamp.indexOf("-")>-1 || timestamp.indexOf(":")>-1) return timestamp;
- if(timestamp.length>13) timestamp=timestamp.substring(0,13);
- else if( timestamp.length==10) timestamp=timestamp*1000;
- return new Date(timestamp).Format("yyyy-MM-dd hh:mm:ss");
- })
- template.helper("replaceStr",function(str,oldstr,newstr){
- if($.trim(str)=="") return "";
- var reg=new RegExp(oldstr);
- return str.replace(reg,newstr);
- })
- template.helper("alertLevelDesc",function(levelcode){
- if($.trim(levelcode)=="") return "";
- if(levelcode=="hint") return "提示";
- else if(levelcode=="waring") return "警告";
- else if(levelcode=="error") return "错误";
- return ""
- })
- var netaddrLoadState=0,iedLoadState=0,apLoadState=0;
- var IedList=[];
- var NetWork_ApNodes=[];
- var IedNetaddrList={};
- var myChart = null;
- var scdid="";
- //当前选中的IED
- var selectedIedName="";
- var TempScdID=$.trim(window.localStorage.getItem("PoliceObject.TempScdID"));
- var TempAreaID=$.trim(window.localStorage.getItem("PoliceObject.TempAreaID"));
- $(document).ready(function () {
- var token = $.trim(localStorage.getItem("sessionid"));
- if (token == "") {
- window.location.href = "/";
- return false;
- }
- Global.accessControl();
- PoliceObject.AlwaysTimer();
- PoliceObject.OnInited=function(){
- layer.msg("正在加载SCD数据中...",{"icon":Global.ICON_LOADING})
- //加载变电站列表。需要2个回调函数,第一个为load回调,第二个为变电站选择事件回调
- PoliceObject.LoadStationList(function(r){
- var cur_station_id = $.trim(window.localStorage.getItem("PoliceObject.AreaID"));
- if(cur_station_id=="") cur_station_id=r.data[0].id;
- //填充当前站的电压等级列表
- PoliceObject.LoadVoltageLevelSelect(cur_station_id);
- if(cur_station_id==""){
- //默认加载第一个站的scd信息
- InitLoadScdList(cur_station_id);
- }
- },function(stationid){
- if(TempScdID!="" && stationid!=TempAreaID){
- window.localStorage.removeItem("PoliceObject.TempScdID");
- window.localStorage.removeItem("PoliceObject.TempAreaID");
- }
- //更换变电站时需要重新获取电压和间隔信息
- PoliceObject.AreaList=null;
- PoliceObject.VoltageLevel=null;
- PoliceObject.IedList=null;
- PoliceObject.ScdList=null;
- //填充当前站的电压等级列表
- //PoliceObject.LoadVoltageLevelSelect(stationid);
- InitLoadScdList(stationid);
- });
- }
- PoliceObject.init();
- //scd结构树显示和隐藏控制
- $("#scd_tree_btn").off().on('click',function(){
- $(this).addClass("hidden");
- $("#scd_tree_list").removeClass("hidden");
- });
- $("#scd_tree_list .title>i").off().on('click',function(){
- $("#scd_tree_list").addClass("hidden");
- $("#scd_tree_btn").removeClass("hidden");
- });
- var canvasW=1300;
- var isdrag=false;
- var data=[];
- $("#device_video,#ied_strcut").css({
- "top": "0",
- "left": "0",
- "height": "100%",
- "width": "100%",
- "background-color":"#324B86EB"
- });
- });
- function InitLoadScdList(stationid){
- myChart=null;
- //echarts.init(document.getElementById('container_map_ied')).dispose();
- $("#scd_list").html("");
- $("#network").html("");
- var container_map_ied=$("#container_map_ied").html(Tools.LoadingText("正在加载数据中..."));
- var $scd_info=$("#scd_info");
- $scd_info.find(".scd_name").html("");
- PoliceObject.AreaID=stationid;
- $.getJSON(Global.AccessUrl+"/api/screen/scd/list",{"ischeckinscd": "1","stationid":stationid,"pageno":1},function(r){
- PoliceObject.ScdList=r.data;
- //判断 是否有临时scd需要可视化查看
- var TempScdID=$.trim(window.localStorage.getItem("PoliceObject.TempScdID"));
- if(TempScdID==""){
- if(r.data==null||r.data.length==0){
- //还没有SCD文件
- container_map_ied.html(Tools.HintText("该站还没有签入任何SCD文件!","red"));
- return;
- }
- }
- container_map_ied.html(template('main_tpl',{}));
- $("#search_input").keydown(function(event) {
- if (event.keyCode == 13) {
- $("#search_button").trigger("click");
- }
- });
- $("#search_button").off("click").on("click", function(event) {
- event.stopPropagation();
- var volId=$.trim($("#voltage_level_select").attr("vid"));
- var areaId=$.trim($("#area_select").attr("vid"));
- var dtypeId=$.trim($("#device_type_select").attr("vid"));
- var searchValue = $.trim($("#search_input").val()).toLocaleLowerCase();
- if (searchValue == "" && volId=="" && areaId=="" && dtypeId=="") {
- return;
- }
- if(searchValue != ""){
- var $thisParent = $("#search_panel");
- var search_result = $("#search_result").removeClass("hidden").css({
- "top": $thisParent.position().top + $thisParent.height() + 10 + "px",
- "left": $thisParent.position().left + "px",
- "width": $thisParent.width() - 2 + "px"
- }).html("<div class='nodata'>正在加载数据中...</div>");
- var result = [];
- for (var k in PoliceObject.IedList) {
- if (k.toLocaleLowerCase().indexOf(searchValue) > -1) {
- result.push({
- "ied_name": k,
- "desc": PoliceObject.IedList[k].desc
- });
- } else if (PoliceObject.IedList[k].desc.indexOf(searchValue) > -1) {
- result.push({
- "ied_name": k,
- "desc": PoliceObject.IedList[k].desc
- });
- }
- }
- if (result == 0) {
- search_result.html("<div class='nodata'>未搜索到相关数据信息!</div>");
- return false;
- }
- search_result.html(template('search_result_list_tpl', {
- "data": result,
- "count": result.length
- })).find("ul").off("click").on('click', function() {
- var $this = $(this);
- //选择查询结果IED
- DialogObject.Open($("#dialog_public"), {
- size: ["150rem", "88rem"],
- para: {
- "title": $this.attr("ied_name") + "—详细信息",
- "ied_id": "",
- "ied_name": $this.attr("ied_name"),
- },
- callback: function(win, p1) {
- win.attr("ied_name", p1.ied_name);
- win.find(".caption>b").html(p1.title);
- var h = (win.height() - win.find(".caption").height() - win.find(".footer").height());
- win.find(".dataitemlist").height(h + "px").html(template('ied_detail_tpl', {}));
- win.find(".content").height(h - win.find(".tools").height() + "px");
- PoliceObject.LoadIedGraph(null,PoliceObject.IedList[p1.ied_name]);
- }
- });
- });
- var th = search_result.find(".search_result_list_item").height();
- if (th > 600) {
- search_result.find(".search_result_list_item").slimScroll({
- height: (600 * hRate) + "px",
- width: "98%",
- alwaysVisible: false,
- wheelStep: 10,
- size: "6px",
- color: "#03aee7"
- });
- }
- }else{
- PoliceObject.OpenShowIedList("装置查询", {
- "area_id": areaId,
- "voltage_level_id":volId,
- "device_type_id":dtypeId
- });
- }
- });
- var data=r.data;
- var lst=[];
- if(data!=null){
- //默认为第一个scd
- var scdobj=data[0];
- var cur_ScdID=$.trim(window.localStorage.getItem(PoliceObject.AreaID+ ".ScdID"));
- if(data.length>0){
- for (var i = 0; i < data.length; i++) {
- if(cur_ScdID==data[i].id || data[i].enable==1){
- scdobj=data[i];
- }
- var version=i==0?"<span style='color:#502df7;font-weight: bold;'>"+(data[i].version||"在运版")+"</span>":data[i].version;
- lst.push('<div class="f_l" scdid="'+data[i].id+'" style="cursor:pointer;color: #516380;"><span class="f_l text_overflow" style="color: #516380;font-weight: bold;width: 20rem;" title="'+data[i].scd_name+'">'+data[i].scd_name+'</span><span class="f_l" style="margin:0 1rem;width: 18rem;">版本号:'+version+'</span><span class="f_l" style="margin:0 1rem;width: 14rem;">签入人:'+data[i].user_name+'</span><span class="f_l" style="margin:0 1rem;width: 22rem;">签入时间:'+data[i].CREATED_TIME+'</span></div>');
- }
- }else{
- lst.push(Tools.HintText("未签入SCD文件"));
- }
- PoliceObject.ScdID=scdobj.id;
- }else{
- lst.push(Tools.HintText("未签入SCD文件"));
- }
- //判断 是否有临时scd需要可视化查看
- if(TempScdID!=""){
- PoliceObject.ScdID=TempScdID;
- }
- PoliceObject.NetWork_ApNodes=null;
- PoliceObject.LoadVoltageLevelSelect(stationid);
- PoliceObject.LoadDeviceType();
- PoliceObject.LoadIedList();
- $scd_info.on("click",function(e){
- e.stopPropagation();
- var $t=$(this), xy=$t.offset();
- $t.find("i").attr("class","fa fa-caret-down");
- $("#scd_list").removeClass("hidden").css({
- top:xy.top+$t.height()+15,
- left:xy.left
- });
- }).find(".scd_name").html(TempScdID!=""?$.trim("【临时】"+window.localStorage.getItem("PoliceObject.TempScdName")):scdobj.scd_name);
- $("#scd_list").html(lst.join("")).children("div").off().on("click",function(){
- var t=$(this);
- $scd_info.find(".scd_name").html(t.children("span:first").text());
- var tmpscdid=t.attr("scdid");
- $("#scd_list").addClass("hidden");
- $("#scd_info").find("i").attr("class","fa fa-caret-up");
- if(PoliceObject.ScdID==tmpscdid){
- return;
- }
- netaddrLoadState=0;
- $("#network").html("")
- window.localStorage.removeItem("PoliceObject.TempScdID");
- window.localStorage.removeItem("PoliceObject.TempAreaID");
- PoliceObject.TempScdID="";
- PoliceObject.VoltageLevel= []; //电压等级
- PoliceObject.AreaList=[]; //间隔列表
- PoliceObject.DeviceType=[]; //装置类型列表
- PoliceObject.IedList=[]; //IED装置列表
- PoliceObject.NetWork_ApNodes=null;
- PoliceObject.ScdID=tmpscdid;
- window.localStorage.setItem(PoliceObject.AreaID+ ".ScdID",tmpscdid);
- PoliceObject.LoadVoltageLevelSelect(PoliceObject.AreaID);
- PoliceObject.LoadDeviceType();
- PoliceObject.LoadIedList();
- });
- netaddrLoadState=1;
- iedLoadState=0;
- apLoadState=1;
- //GetSubNetwork();
- //LoadIedNetAddr();
- //LoadIedList();
- })
- }
- function p_drawPoly(canvascontext,point1,point2) {
- //canvascontext.setLineDash([]);
- canvascontext.strokeStyle = "#08b008";
- canvascontext.lineWidth = 1;
- canvascontext.lineJoin = 'round';
- canvascontext.lineCap = 'round';
- canvascontext.beginPath();
- canvascontext.moveTo(point1[0], point1[1]);
- canvascontext.lineTo(point1[0]+10, point1[1]);
- canvascontext.stroke();
- canvascontext.closePath();
- canvascontext.beginPath();
- canvascontext.moveTo(point1[0]+9, point1[1]);
- if(point2[1]<point1[1]) canvascontext.quadraticCurveTo(point1[0]+50,point1[1]-20,point2[0], point2[1]);
- else canvascontext.quadraticCurveTo(point1[0]+50,point1[1]+20,point2[0], point2[1]);
- canvascontext.stroke();
-
- }
- </script>
- <!--搜索结果列表-->
- <script type="text/html" id="search_result_list_tpl">
- <div style="color: #51637F;padding: 0rem;font-size: 1.2rem;border-bottom: 1px solid #d9e3ec;">为您找到<span style="padding:0 5px;color:#134BEA;font-weight: bold;">{{count}}</span>个相关结果</div>
- <div class="search_result_list_item">
- {{each data}}
- <ul style="padding-bottom: 0.5rem;" ied_name="{{$value.ied_name}}" >
- <li>
- <span style="font-size: 1.4rem;display: inline-block;width: 2rem;height: 2rem;"></span>
- <span class="text_overflow" title="{{$value.desc}}">{{$value.desc}}</span>
- </li>
- </ul>
- {{/each}}
- </div>
- </script>
|