<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>终端版本管理</title>
    <link rel="stylesheet" href="${ctx}/css/plugin/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="${ctx}/css/plugin/metroStyle/metroStyle.css">
    <%--<link rel="stylesheet" href="${ctx}/js/plugin/layui/css/layui.css">--%>
    <link rel="stylesheet" href="${ctx}/css/plugin/fontawesome/font-awesome.min.css">
    <link rel="stylesheet" href="${ctx}/css/plugin/datatables/datatables.bootstrap.css">
    <link rel="stylesheet" href="${ctx}/css/basic.css">
    <style>
        .btn{
            padding: 2px 6px;
        }
        .nav>li>a{
            padding: 6px 15px;
        }
        .form-horizontal{
            border: 1px solid var(--primarycolor);
            margin-top: 25px
        }
    </style>
</head>
<body class="container-fluid">

<div class="left-menu" style="top:8px">
    <div class="pdt5">
        <input style="width:155px;" id="search_value" type="text" value="" placeholder="请输入关键词" />
        <input type="button" value="搜索" onclick="javascript: searchNode(search_value.value)" style="padding:0 5px;">
    </div>
    <div id="tree" class="ztree" style="padding:2px 2px;"></div>
</div>
<div class="" style="margin-left: 260px">
        <div class="row show-grid">
            <div class="col-lg-12">
                <!-- 导航 -->
                <ul class="nav nav-tabs" role="tablist" style="margin-top: 8px">
                    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">基本电镀配置</a></li>
                    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">分时方案结构配置</a></li>
                    <li id="title_top" style="float: right;color: red"></li>
                    <li id="read" style="float: right;color: red"><button class="btn btn-primary">参数读取</button></li>
                </ul>

                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane fade in active" id="home">
                        <form class="form-horizontal" role="form">
                            <div class="row" style="margin: 15px 0">
                                <label class="col-lg-2 control-label">参数最后修改时间</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-2">
                                </div>
                                <label class="col-lg-2 control-label">额定电压(KV)</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-3">
                                </div>
                            </div>
                            <div class="row" style="margin: 15px 0">
                                <label class="col-lg-2 control-label">额定电流(A)</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-2">
                                </div>
                                <label class="col-lg-2 control-label">最大电流(A)</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-3">
                                </div>
                            </div>
                            <div class="row" style="margin: 15px 0">
                                <label class="col-lg-2 control-label">有功精确度等级</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-2">
                                </div>
                                <label class="col-lg-2 control-label">无功精确度等级</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-3">
                                </div>
                            </div>
                            <div class="row" style="margin: 15px 0">
                                <label class="col-lg-2 control-label">有功组合方式特征字</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-2">
                                </div>
                                <label class="col-lg-2 control-label">无功组合方式1,2特征字</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-3">
                                </div>
                            </div>
                            <div class="row" style="margin: 15px 0">
                                <label class="col-lg-2 control-label">最大需量周期(min)</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-2">
                                </div>
                                <label class="col-lg-2 control-label">需量划窗时间(min)</label>
                                <div class="col-lg-3">
                                    <input type="text" class="form-control" placeholder=".col-lg-3">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="profile">

                    </div>
                </div>

            </div>
        </div>

</div>


<script src="${ctx}/js/plugin/jquery/jquery.min.js"></script>
<script src="${ctx}/js/plugin/layui/layer.js"></script>
<script src="${ctx}/js/plugin/ztree/jquery.ztree.core.js"></script>
<script src="${ctx}/js/plugin/ztree/jquery.ztree.excheck.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap.min.js"></script>
<script src="${ctx}/jspJS/utils/loading.js"></script>
<script src="${ctx}/jspJS/device/terminalTree.js"></script>
<script src="${ctx}/jspJS/utils/judgeAjaxStatus.js"></script>
<script>
$(function () {
var i;
    $('#read').click(function () {
      var arr =  getTreeSelected(1)
        if(arr==null||arr.length == 0){
            layer.msg('请选则终端',{icon:2})
            return
        }else if(arr.length>1) {
            layer.msg('请选则唯一终端',{icon:2})
            return
        }else {
            $.ajax({
                url:'/pqs9900/device/steadyTB',
                data:{
                    startTime:startTime,
                },
                type:'get',
                dataType:'json',
                beforeSend: function () {
                    i = ityzl_SHOW_LOAD_LAYER();
                },
                success:function (data) {

                }
            })
        }
    })

})

</script>
</body>
</html>
