物联网平台 +Web 组态
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
4.7 KiB

2 years ago
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="com.lp.cfg.ProConfig"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/WEB-INF/oss/iot/common/variable.jsp"%>
<%@ include file="/WEB-INF/oss/iot/common/variable_js.jsp"%>
<%@ include file="/WEB-INF/oss/iot/common/resource_lib.jsp"%>
<style type="text/css">
.app-container{
width: 100%;border-top:1px solid #ecf0f5;
padding-top: 10px;
}
.box-white {
width: 97%;
min-width: 897px;
padding-bottom: 0;
margin: 0 auto;
}
.box {
padding: 10px;
border: 0!important;
position: relative;
border-radius: 3px;
background: #fff;
margin-bottom: 20px;
margin: 0 auto;
}
.List-info{
padding-top: 10px;
padding-left: 10px;
}
</style>
</head>
<body>
<div>
<div>
<div class="mapContainer" >
<div class="app-container">
<div class="container-layout List-info">
<div class="box join-device-box">
<div class="clearfix" style="width: 600px;margin: 0 auto;">
<div>
<div class="ml-20" id="form_submit_add" config-option=" url:'/access/info',
submit:'.add-Btn',
success:'sunccessReturn' " >
<div id="form_submit_update" config-option=" url:'/access/info','method':'put',
submit:'.add-Btn',
success:'sunccessReturn' " >
<div id="detail_get" config-option=" 'url':'/access/info?id=$#init-id$' ">
<input id="init-id" type-name="id" type="hidden">
<div class="form-line">
<div class="float-left" style="width: 48%; ">
<span class="red">*</span>&nbsp;<span>门禁名称:</span>
<div class="pb-10 pt-10">
<input placeholder="门禁名称" validate="empty" type-name="name" class="input input-big" >
</div>
</div>
<div class="float-left" style="width: 48%;margin-left: 4%;">
<span class="red">*</span>&nbsp;<span>排序:</span>
<div class="pb-10 pt-10">
<input placeholder="显示顺序" value="1" type="number" validate="empty" type-name="seq" class="input input-big" >
</div>
</div>
</div>
<div class="form-line">
<div class="float-left" style="width: 48%; ">
<span class="red">*</span>&nbsp;<span>SN号:</span>
<div class="pb-10 pt-10">
<input placeholder="access SN number" validate="empty" type-name="sn" class="input input-big" >
</div>
</div>
<div class="float-left" style="width: 48%;margin-left: 4%;" >
<span class="red">*</span>&nbsp;<span>门控数:</span>
<div class="pb-10 pt-10">
<input placeholder="门控数量,1,2,4" validate="empty" value="1" type-name="door_type" class="input input-big" >
</div>
</div>
</div>
<input type="hidden" type-name="iot_node_status" value="18">
<input type="hidden" type-name="scene_id" class="scene_id" >
<div class="form-line">
<div class="float-left" style="width:100%;" >
<span>备注:</span>
<div class="pb-10 pt-10">
<input placeholder="备注信息" type-name="remark" class="input input-big" >
</div>
</div>
</div>
<div class="form-line clearfix pb-10">
<button onclick="parent.layer.close(index);" style="background: #aaa;" class="layui-btn ml-20 border-gray float-right">取消</button>
<button class="add-Btn ml-10 float-right layui-btn layui-btn-normal">保存</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
//获取窗口索引
var index = parent.layer.getFrameIndex(window.name);
function sunccessReturn(){
tip("成功");
setTimeout(function() {
// 添加成功
parent.layer.close(index);
parent.location.reload();
}, 1000);
}
$(function(){
// 初始化url参数
var id = GetQueryString("id");
if(validater.empty(id)){
manual_form_submit($("#form_submit_add"))
}else{
writeVal("init-id",id);
manual_form_submit($("#form_submit_update"));
manual_init_detail_get($("#detail_get"));
}
// 初始化scene_id
$(".scene_id").val( $('.scene_id', parent.document).val() ) ;
})
</script>
</html>