1.系统业务管理列表增加serviceId搜索条件

2.修复修改业务时serviceId会自动获取新值的问题(serviceId是不允许修改的)
This commit is contained in:
chenjinsong
2018-03-05 10:23:02 +08:00
parent 8dea18adc1
commit 58cff64fd9
3 changed files with 12 additions and 2 deletions

View File

@@ -41,6 +41,9 @@
<if test="serviceName != null and serviceName != ''">
and ssi.service_name like CONCAT('%', #{serviceName}, '%')
</if>
<if test="serviceId != null and serviceId != ''">
and ssi.service_id like CONCAT('%', #{serviceId}, '%')
</if>
<if test="action != null">
and ssi.action=#{action}
</if>

View File

@@ -116,6 +116,9 @@
//自动获取serviceId
function autoServiceId() {
if ("${systemServiceInfo.id}") {
return false;
}
var type = $("[name=tableType]").val();
var action = $("#action").val();
var serviceIdPre;
@@ -315,7 +318,6 @@
<div class="row">
<div class="col-md-offset-3 col-md-9">
<shiro:hasPermission name="system:service:edit"><input type="submit" class="btn btn-circle blue" value="保存"/></shiro:hasPermission>
<%-- <shiro:hasPermission name="system:service:edit"><button type="submit" class="btn btn-circle blue">保存</button></shiro:hasPermission> --%>
<button type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)">取消</button>
</div>
</div>

View File

@@ -79,10 +79,15 @@ function deleteService(id) {
</span>
<span class="search-item">
<span>名称 :</span>
<span>业务名称 :</span>
<form:input path="serviceName" htmlEscape="false" class="input-small"/>
</span>
<span class="search-item">
<span>业务ID :</span>
<form:input path="serviceId" htmlEscape="false" class="input-small"/>
</span>
<span class="search-item">
<button type="submit" onclick="return page();" class="btn btn-default btn-sm">
<i class="fa fa-edit"></i> 搜索