物联网平台 +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.
 
 
 
 

124 lines
3.8 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="com.lp.cfg.ProConfig" %>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/WEB-INF/oss/base/common/variable.jsp"%>
<%@ include file="/WEB-INF/oss/base/common/resource_lib.jsp"%>
<%@ include file="/WEB-INF/oss/base/common/variable_js.jsp"%>
</head>
<script type="text/javascript">
</script>
<style type="text/css">
.scene-style{
padding-left: 30px;
height: 30px;
line-height: 30px;
background: #d9d9d9;
color: #333;
margin: 2px 0;
border-radius: 3px;
cursor: pointer;
}
.scene-style.active{
background: #3499da;
color: white;
}
.limiter{
cursor: pointer;
}
</style>
<body>
<div class="app-container">
<div class="search-condition" type-option="search_table" config-option=" 'submit':'#searchbtns',
'table':'#init-table',
'wait_flag':true">
<input type-name="name" placeholder="名称查询" class="input input-auto" />
<button id="searchbtns" class="button ml-20 bg-sub"><span class="icon-search"></span> 查询</button>
<button onclick="otherSetting()" class="button ml-20 bg-sub"><span class="icon-cog"></span> 其他设置</button>
</div>
<div style="margin-top:10px;">
<div id="init-table" type-option="table" config-option=" url:'/sys/confog/page/info',
param:{},
columns:[
{'name':'序号','type':'seq','value':'seq','width':'4%'},
{'name':'名称KEY','value':'name','width':'10%'},
{'name':'值','value':'value','width':'15%'},
{'name':'备注','value':'remark','width':'15%'},
{'name':'操作','type':'self','value_callback':'value_function','width':'15%'}]" >
</div>
</div>
</div>
<div style="display:none;padding:20px;" type-option="form_submit" id="modifyInfo"
config-option=" url:'/sys/confog/info', method :'put',
submit :'.modify-Btn',
success:'sunccessReturn' ">
<div id="detail_get" config-option=" url:'/sys/confog/info?id=$#init-id$' ">
<input type="hidden" type-name="id" id="init-id" >
<div class="form-line">
<span>名称:</span>
<input placeholder="名称" validate="empty" readonly="readonly" type-name="name" class="input input-window" >
</div>
<div class="form-line">
<span>数值:</span>
<input placeholder="值" validate="empty" type-name="value" class="input input-window" >
</div>
<div class="form-line">
<span>备注:</span>
<input placeholder="备注说明" type-name="remark" validate="empty" class="input input-window" >
</div>
<div class="form-line" style="padding-top: 15px;">
<button class="modify-Btn ml-20 layui-btn layui-btn-normal">保存</button>
<button onclick="closeAll();" style="background: #aaa;" class="layui-btn ml-10 border-gray">取消</button>
</div>
</div>
</div>
<script type="text/javascript">
function value_function(data,seq){
return "<button type='button' onclick='t_modify(this,"+data.id+")' class='layui-btn layui-btn-xs layui-btn-normal'>编辑</button>"
;
}
function t_modify(obj,id){
writeVal("init-id",id);
openWindow("编辑信息","#modifyInfo","400px");
manual_init_detail_get($("#detail_get"));
}
function sunccessReturn(data){
if(data.status == status_code.OK){
tip("成功");
setTimeout(function(){
closeAll();
$("#init-table").tableAdaptor();
},1000)
}else{
tip(data.statusMsg);
}
}
function otherSetting(){
// 打开窗口查看传感器列表
layer.open({
type: 2,
title: '其他信息设置',
shadeClose: true,
shade: 0.7,
maxmin: true, //开启最大化最小化按钮
area: ['900px', '90%'],
content: "<%=basePath%>/service/base/setting"
});
}
</script>
</body>
</html>