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

112 lines
4.9 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"%>
<link type="text/css" href="<%=basePath%>/css/oss/base/dictionary.css?<%=v%>" rel="stylesheet"/>
<script type="text/javascript" src="<%=basePath%>/js/oss/base/dictionary.js?<%=v%>"></script>
</head>
<body>
<div class="app-container">
<div class="search-condition" type-option="search_table" config-option=" 'submit':'#searchbtns',
'table':'#init-table' ">
<input type-name="p_code" id="parent_key_input" type="hidden" />
<input type-name="name" placeholder="名称查询" id="sub-name-alias" style="width: 100px;" class="input input-auto" />
<input type-name="dictionary_name" placeholder="分类名查询" id="sub_category" style="width: 100px;" class="input input-auto" />
<input type-name="code" id="sub_category" placeholder="CODE 查询" style="width: 100px;" class="input input-auto" />
<select class="input input-auto" type-name="delete_flag" style="width: 100px;">
<option value="">请选择</option>
<option value="0">正常显示</option>
<option value="1">已隐藏</option>
</select>
<button id="searchbtns" class="button ml-20 bg-sub">查询</button>
<button type-option="button" class="button ml-10 bg-sub" config-option="'type':'window','title':'增加数据字典','selector':'#add-dictionary','width':'260px','before':'beforeFunc' " >增加数据字典</button>
</div>
<div id="return_back_div" class="hide mt-10 clearfix">
<span style="font-weight: 700;"><span>父项名称:</span><span id="father-dictionary" style="display: inline-block;line-height:30px;"></span></span>
<button id="return_back" class="button button-small bg-sub float-right">返回上一级</button>
</div>
<div>
<div id="init-table" type-option="table" config-option="'url':'/page/dictionary',
'param':{ 'isOnlyP':1 },
'columns':[
{'name':'序号','type':'seq','value':'seq','width':'6%'},
{'name':'名称','type':'value','value':'name','width':'10%'},
{'name':'分类','type':'value','value':'dictionary_name',limit:15,'width':'10%'},
{'name':'CODE','type':'value','value':'code','width':'8%'},
{'name':'父类','type':'value','value':'p_dictionary_name',limit:8,'width':'10%','click_callback':'ssss12','default_value':'-'},
{'name':'父CODE','value':'p_code','width':'10%','default_value':'-'},
{'name':'操作','type':'self','value_callback':'value_function','width':'16%'}]" >
</div>
</div>
</div>
<div style="display:none;padding:20px;" id="add-dictionary"
type-option="form_submit" config-option=" 'url':'/dictionary',
'submit':'#add-Btn',
'success':'sunccessReturn',
'validate':{ 'tigger':'focusout,submit','style':'color,pop'} ">
<input id="p_code_add" type-name="p_code" type="hidden" />
<input id="p_dictionary_name_add" type-name="p_dictionary_name" type="hidden" />
<div>
<span>名称 &nbsp;</span>
<input id="sub-name" validate="empty" type-name="name" class="input input-auto"/>
</div>
<div style="margin-top: 10px;">
<span>分类名&nbsp;</span>
<input id="sub-category" validate="empty" type-name="dictionary_name" class="input input-auto" />
</div>
<div style="margin-top: 10px;">
<span>数值 &nbsp;</span>
<input id="sub-category" type-name="value" placeholder="没有则不填" class="input input-auto" />
</div>
<div style="margin-top: 10px;">
<button id="add-Btn" class="button button-small" >保存</button>
</div>
</div>
<div style="display:none;padding:20px;" id ="table-detail-info"
type-option="form_submit" config-option=" 'url':'/dictionary',
'method':'PUT',
'submit':'#update_btn',
'success':'sunccessReturn',
'validate':{ 'tigger':'focusout,submit','style':'color,pop'}" >
<input type-name="id" type="hidden" />
<div>
<span>名称 </span>
<input id="modify_name" type-name="name" class="input input-auto" />
</div>
<div style="margin-top: 10px;">
<span>KEY&nbsp;</span>
<input id="modify_key" type-name="dictionary_name" class="input input-auto" />
</div>
<div style="margin-top: 10px;">
<span>数值</span>
<input id="sub-category" type-name="value" class="input input-auto" />
</div>
<div style="margin-top: 10px;">
<button id="update_btn" class="button button-small" > 更新 </button>
</div>
</div>
</body>
<script type="text/javascript">
$(function(){
$(document).delegate(".limiter","click",function(){
layer.tips($(this).attr("tag") , this, {
tips: [1, '#4682B4']
});
})
})
</script>
</html>