You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
10 KiB
HTML
207 lines
10 KiB
HTML
2 years ago
|
<!DOCTYPE html>
|
||
|
<html><head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>抽水蓄能电站智能化状态监测系统</title>
|
||
|
|
||
|
<meta name="description" content="Dashboard">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<!--Basic Styles-->
|
||
|
<link href="__PUBLIC__/style/bootstrap.css" rel="stylesheet">
|
||
|
<link href="__PUBLIC__/style/font-awesome.css" rel="stylesheet">
|
||
|
<link href="__PUBLIC__/style/weather-icons.css" rel="stylesheet">
|
||
|
|
||
|
<!--Beyond styles-->
|
||
|
<link id="beyond-link" href="__PUBLIC__/style/beyond.css" rel="stylesheet" type="text/css">
|
||
|
<link href="__PUBLIC__/style/demo.css" rel="stylesheet">
|
||
|
<link href="__PUBLIC__/style/typicons.css" rel="stylesheet">
|
||
|
<link href="__PUBLIC__/style/animate.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="bodyClass">
|
||
|
<!-- 头部 -->
|
||
|
{include file="public/top" /}
|
||
|
<!-- /头部 -->
|
||
|
|
||
|
<div class="main-container container-fluid hei">
|
||
|
<div class="page-container">
|
||
|
<!-- Page Sidebar -->
|
||
|
{include file="common/devleft" /}
|
||
|
<!-- /Page Sidebar -->
|
||
|
<!-- Page Content -->
|
||
|
<div class="page-content">
|
||
|
<!-- Page Breadcrumb -->
|
||
|
<div class="page-breadcrumbs">
|
||
|
<ul class="breadcrumb">
|
||
|
<li>
|
||
|
<a href="{:url('zsb/lst')}">监测设备管理</a>
|
||
|
</li>
|
||
|
<li class="active">编辑监测设备</li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!-- /Page Breadcrumb -->
|
||
|
|
||
|
<!-- Page Body -->
|
||
|
<div class="page-body">
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-lg-12 col-sm-12 col-xs-12">
|
||
|
<div class="widget">
|
||
|
<div class="widget-header bordered-bottom bordered-blue">
|
||
|
<span class="widget-caption">监测设备</span>
|
||
|
</div>
|
||
|
<div class="widget-body">
|
||
|
<div id="horizontal-form">
|
||
|
<input type="hidden" name="id" value="{$sbs.id}">
|
||
|
<form class="form-horizontal" role="form" action="" method="post">
|
||
|
<div class="form-group">
|
||
|
<label for="name" class="col-sm-2 control-label no-padding-right">名称</label>
|
||
|
<div class="col-sm-6">
|
||
|
<input class="form-control" id="name" placeholder="" name="name" value="{$sbs.name}" type="text">
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="modevtid" class="col-sm-2 control-label no-padding-right">类型</label>
|
||
|
<div class="col-sm-6">
|
||
|
<select class="form-control" id="modevtid" name="modevtid" >
|
||
|
{volist name="lxs" id="lxvo"}
|
||
|
<option {if $sbs.modevtid==$lxvo.id} selected="selected" {/if} value="{$lxvo.id}">{$lxvo.mc}</option>
|
||
|
{/volist}
|
||
|
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div id="config" style="display:none">
|
||
|
<div class="form-group">
|
||
|
<label for="ip" class="col-sm-2 control-label no-padding-right">ip地址</label>
|
||
|
<div class="col-sm-6">
|
||
|
<input class="form-control" id="ip" placeholder="" name="ip" value="{$sbs.ip}" type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="username" class="col-sm-2 control-label no-padding-right">用户名</label>
|
||
|
<div class="col-sm-6">
|
||
|
<input class="form-control" id="username" placeholder="" name="username" value="{$sbs.username}" type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="pwd" class="col-sm-2 control-label no-padding-right">密码</label>
|
||
|
<div class="col-sm-6">
|
||
|
<input class="form-control" id="pwd" placeholder="" name="pwd" value="{$sbs.pwd}" type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="port" class="col-sm-2 control-label no-padding-right">端口</label>
|
||
|
<div class="col-sm-6">
|
||
|
<input class="form-control" id="port" placeholder="" name="port" value="{$sbs.port}" type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="careLevel" class="col-sm-2 control-label no-padding-right">关心度</label>
|
||
|
<div class="col-sm-6">
|
||
|
<select class="form-control" id="careLevel" name="careLevel" >
|
||
|
<option {if $sbs.careLevel==1 } selected="selected" {/if} value="1">关心</option>
|
||
|
<option {if $sbs.careLevel==0 } selected="selected" {/if} value="0">不关心</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="iedid" class="col-sm-2 control-label no-padding-right">IED</label>
|
||
|
<div class="col-sm-6">
|
||
|
<select class="form-control" id="iedid" name="iedid" >
|
||
|
{volist name="ieds" id="iedvo"}
|
||
|
<option {if $sbs.iedid==$iedvo.id} selected="selected" {/if} value="{$iedvo.id}">{$iedvo.name}</option>
|
||
|
{/volist}
|
||
|
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<div class="col-sm-offset-2 col-sm-10">
|
||
|
<button type="submit" class="btn btn-default">保存信息</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<!-- /Page Body -->
|
||
|
</div>
|
||
|
<!-- /Page Content -->
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!--Basic Scripts-->
|
||
|
|
||
|
<script src="__PUBLIC__/style/jquery_002.js"></script>
|
||
|
<script src="__PUBLIC__/style/bootstrap.js"></script>
|
||
|
<script src="__PUBLIC__/style/jquery.js"></script>
|
||
|
<!--Beyond Scripts-->
|
||
|
<script src="__PUBLIC__/style/beyond.js"></script>
|
||
|
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
var mid = "{$sbs.modevtid}";
|
||
|
if(mid=="9"||mid=="12"||mid=="35"||mid=="36"){
|
||
|
$("#config").show();
|
||
|
}else{
|
||
|
$("#config").hide();
|
||
|
$("#ip").val("");
|
||
|
$("#username").val("");
|
||
|
$("#pwd").val("");
|
||
|
$("#port").val("");
|
||
|
}
|
||
|
|
||
|
function getjg(){
|
||
|
$.getJSON('{:url('msb/getjg')}?bid='+$('#bdzid').val(), function (data){
|
||
|
$("#jgid").empty();
|
||
|
var count = data.length;
|
||
|
var i = 0;
|
||
|
var b="";
|
||
|
for(i=0;i<count;i++){
|
||
|
if(data[i].id==$("#jid").val()) {
|
||
|
b += "<option selected='selected' value='" + data[i].id + "'>" + data[i].mc + "</option>";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
b += "<option value='" + data[i].id + "'>" + data[i].mc + "</option>";
|
||
|
}
|
||
|
}
|
||
|
$("#jgid").append(b);
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
$(function(){
|
||
|
getjg();
|
||
|
$("#bdzid").change(function(){
|
||
|
getjg();
|
||
|
});
|
||
|
$("#modevtid").change(function(){
|
||
|
var modevid = $("#modevtid").val();
|
||
|
if(modevid=="9"||modevid=="12"||modevid=="35"||modevid=="36"){
|
||
|
$("#config").show();
|
||
|
}else{
|
||
|
$("#config").hide();
|
||
|
$("#ip").val("");
|
||
|
$("#username").val("");
|
||
|
$("#pwd").val("");
|
||
|
$("#port").val("");
|
||
|
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
</div>
|
||
|
</body></html>
|