修改字典管理列表,新增界面显示
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
//删除子项
|
//删除子项
|
||||||
$(".delItem").live("click",function(){
|
$("#items").delegate("button","click",function(){
|
||||||
$(this).parent().remove();
|
$(this).parent().remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -110,22 +110,37 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ul class="nav nav-tabs">
|
<div class="page-content">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
|
<button type="button" class="btn btn-default" onclick="history.go(-1)"><spring:message code="back"/></button>
|
||||||
|
</div>
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="dictManage"/>
|
||||||
|
</h3>
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
<%-- <ul class="nav nav-tabs">
|
||||||
<li><a href="${ctx}/sys/dict/list">字典列表</a></li>
|
<li><a href="${ctx}/sys/dict/list">字典列表</a></li>
|
||||||
<li class="active"><a href="${ctx}/sys/dict/form?id=${sysDataDictionaryName.id}">字典
|
<li class="active"><a href="${ctx}/sys/dict/form?id=${sysDataDictionaryName.id}">字典
|
||||||
<shiro:hasPermission name="sys:dict:edit"></shiro:hasPermission>${not empty sysDataDictionaryName.id?'修改':'添加'}
|
<shiro:hasPermission name="sys:dict:edit"></shiro:hasPermission>${not empty sysDataDictionaryName.id?'修改':'添加'}
|
||||||
<shiro:lacksPermission name="sys:dict:edit">查看</shiro:lacksPermission>
|
<shiro:lacksPermission name="sys:dict:edit">查看</shiro:lacksPermission>
|
||||||
</a></li>
|
</a></li>
|
||||||
</ul><br/>
|
</ul><br/> --%>
|
||||||
|
|
||||||
|
<div class="portlet box blue">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption">
|
||||||
|
<i class="fa fa-gift"></i><c:if test="${not empty sysDataDictionaryName.id}"><spring:message code="edit"/></c:if><c:if test="${empty sysDataDictionaryName.id}"><spring:message code="add"/></c:if></div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form">
|
||||||
|
|
||||||
<form:form id="inputForm" modelAttribute="sysDataDictionaryName" action="${ctx}/sys/dict/saveOrUpdate" method="post" class="form-horizontal">
|
<form:form id="inputForm" modelAttribute="sysDataDictionaryName" action="${ctx}/sys/dict/saveOrUpdate" method="post" class="form-horizontal">
|
||||||
|
|
||||||
|
|
||||||
<form:hidden path="id"/>
|
<form:hidden path="id"/>
|
||||||
<form:hidden path="revision"/>
|
<form:hidden path="revision"/>
|
||||||
<sys:message content="${message}"/>
|
<sys:message content="${message}"/>
|
||||||
@@ -141,35 +156,35 @@
|
|||||||
<button class="close" data-dismiss="alert"></button>
|
<button class="close" data-dismiss="alert"></button>
|
||||||
表单验证成功!
|
表单验证成功!
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-body">
|
||||||
<div class="control-group">
|
<div class="form-group">
|
||||||
<label class="control-label">模块名:</label>
|
<label class="col-md-3 control-label">模块名:</label>
|
||||||
<div class="controls">
|
<div class="col-md-4">
|
||||||
<form:input path="moduleName" htmlEscape="false" maxlength="50" class="required"/>
|
<form:input path="moduleName" htmlEscape="false" maxlength="50" class="required form-control"/>
|
||||||
|
</div>
|
||||||
<span class="help-inline"><font color="red">*</font> </span>
|
<span class="help-inline"><font color="red">*</font> </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="form-group">
|
||||||
<label class="control-label">字典标识:</label>
|
<label class="col-md-3 control-label">字典标识:</label>
|
||||||
<div class="controls">
|
<div class="col-md-4">
|
||||||
<form:input path="mark" htmlEscape="false" maxlength="50" class="required"/>
|
<form:input path="mark" htmlEscape="false" maxlength="50" class="required form-control"/>
|
||||||
|
</div>
|
||||||
<span class="help-inline"><font color="red">*</font> </span>
|
<span class="help-inline"><font color="red">*</font> </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="form-group">
|
||||||
|
<label class="col-md-3 control-label">词条项</label>
|
||||||
<label class="control-label">词条项</label>
|
<div class="col-md-4">
|
||||||
|
|
||||||
<div class="controls">
|
|
||||||
<span type="button" class="btn black" title="点击添加词条项" id="btn_add_item">
|
<span type="button" class="btn black" title="点击添加词条项" id="btn_add_item">
|
||||||
<i class="icon-plus"></i> 添加词条
|
<i class="icon-plus"></i> 添加词条
|
||||||
</span>
|
</span>
|
||||||
<span class="help-inline"><font color="red">*</font> </span>
|
<span class="help-inline"><font color="red">*</font> </span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div id="items" class="controls">
|
<div class="form-group">
|
||||||
|
<div class="col-md-3"></div>
|
||||||
|
<div id="items" class="col-md-8">
|
||||||
<p id="itemModel" style="display: none;margin-top: 3px;">
|
<p id="itemModel" style="display: none;margin-top: 3px;">
|
||||||
标识 <input type="text" class="itemCode" autocomplete="off"/>
|
标识 <input type="text" class="itemCode" autocomplete="off"/>
|
||||||
值 <input type="text" class="itemValue" autocomplete="off"/>
|
值 <input type="text" class="itemValue" autocomplete="off"/>
|
||||||
@@ -184,7 +199,7 @@
|
|||||||
<option value="1">是</option>
|
<option value="1">是</option>
|
||||||
<option value="0">否</option>
|
<option value="0">否</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="button" class="btn red delItem" value="删除"/>
|
<button type="button" class="btn red delItem" >删除</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<c:forEach items="${sysDataDictionaryName.dictItemList }" var="dictItem">
|
<c:forEach items="${sysDataDictionaryName.dictItemList }" var="dictItem">
|
||||||
@@ -203,30 +218,37 @@
|
|||||||
<option value="0" <c:if test="${dictItem.type==0}">selected</c:if>>否</option>
|
<option value="0" <c:if test="${dictItem.type==0}">selected</c:if>>否</option>
|
||||||
</select>
|
</select>
|
||||||
<c:if test="${dictItem.type==1}">
|
<c:if test="${dictItem.type==1}">
|
||||||
<input type="button" class="btn red delItem" value="删除"/>
|
<button type="button" class="btn red delItem" >删除</button>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
<div class="form-group">
|
||||||
|
<label class="col-md-3 control-label">描述信息:</label>
|
||||||
<div class="control-group">
|
<div class="col-md-4">
|
||||||
<label class="control-label">描述信息:</label>
|
<form:textarea path="remark" htmlEscape="false" rows="3" maxlength="200" class="span6 form-control"/>
|
||||||
<div class="controls">
|
|
||||||
<form:textarea path="remark" htmlEscape="false" rows="3" maxlength="200" class="span6"/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="messageBox" class="alert alert-error hide"></div>
|
<div id="messageBox" class="alert alert-error hide"></div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-offset-3 col-md-9">
|
||||||
<shiro:hasPermission name="sys:dict:edit"></shiro:hasPermission>
|
<shiro:hasPermission name="sys:dict:edit"></shiro:hasPermission>
|
||||||
<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
|
<button type="submit" class="btn btn-circle blue"><spring:message code="submit"></spring:message></button>
|
||||||
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
<button type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"></spring:message></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form:form>
|
</form:form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -202,29 +202,69 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
|
<button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/sys/dict/form'">
|
||||||
|
<i class="fa fa-plus"></i>
|
||||||
|
<spring:message code="add"/></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<ul class="nav nav-tabs">
|
<h3 class="page-title">
|
||||||
<li class="active"><a href="${ctx}/sys/dict/list">字典列表</a></li>
|
<spring:message code="dictManage"></spring:message>
|
||||||
<shiro:hasPermission name="sys:dict:edit"></shiro:hasPermission>
|
<small><spring:message code="date_list"/></small>
|
||||||
<li><a href="${ctx}/sys/dict/form">字典添加</a></li>
|
</h3>
|
||||||
</ul>
|
<h5 class="page-header"></h5>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
<form:form id="searchForm" action="${ctx}/sys/dict/list" method="post" class="breadcrumb form-search">
|
<div class="portlet">
|
||||||
|
<div class="portlet-body">
|
||||||
|
<div class="row" >
|
||||||
|
<form:form id="searchForm" action="${ctx}/sys/dict/list" method="post" class="form-search">
|
||||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||||
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
||||||
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
|
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
|
||||||
<div>
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
<label>模块名称:</label><input id="moduleName" name="moduleName" type="text" maxlength="50" class="input-medium" value="${sysDataDictionaryName.moduleName}"/>
|
<div class="col-md-12 filter-action-select-panle" style="background-color:transparent">
|
||||||
<label>字典标识:</label><input id="mark" name="mark" type="text" maxlength="50" class="input-medium" value="${sysDataDictionaryName.mark}"/>
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<label>创建时间: </label><input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
<div class="pull-left">
|
||||||
value="<fmt:formatDate value="${sysDataDictionaryName.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
<label>模块名称:</label>
|
||||||
<label> -- </label><input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
</div>
|
||||||
value="<fmt:formatDate value="${sysDataDictionaryName.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
<div class="pull-left">
|
||||||
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
|
<input id="moduleName" name="moduleName" type="text" maxlength="50" class="form-control" value="${sysDataDictionaryName.moduleName}"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="pull-left">
|
||||||
|
<label>字典标识:</label>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<input id="mark" name="mark" type="text" maxlength="50" class="form-control" value="${sysDataDictionaryName.mark}"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="pull-left">
|
||||||
|
<label>创建时间:</label>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${sysDataDictionaryName.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<label><spring:message code="to"/></label>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${sysDataDictionaryName.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<button type="submit" class="btn blue""><i class="fa fa-search"></i><spring:message code="search" /></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form:form>
|
</form:form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<sys:message content="${message}"/>
|
<sys:message content="${message}"/>
|
||||||
|
|
||||||
@@ -279,6 +319,12 @@
|
|||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="pagination">${page}</div>
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user