整合光旭的新样式
This commit is contained in:
@@ -41,7 +41,7 @@ public class SystemServiceController extends BaseController {
|
||||
@RequiresPermissions("system:service:view")
|
||||
@RequestMapping(value = "list")
|
||||
public String list(Model model, SystemServiceInfo systemServiceInfo, HttpServletRequest request, HttpServletResponse response) {
|
||||
Page<SystemServiceInfo> page = systemServiceService.findPage(new Page<SystemServiceInfo>(request, response, 1), systemServiceInfo);
|
||||
Page<SystemServiceInfo> page = systemServiceService.findPage(new Page<SystemServiceInfo>(request, response, 30), systemServiceInfo);
|
||||
model.addAttribute("page", page);
|
||||
return "/systemService/list";
|
||||
}
|
||||
|
||||
@@ -88,6 +88,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
window.onload = function() {
|
||||
$("[data-id=serviceType]").click(function() {
|
||||
now = $("#serviceType").val();
|
||||
});
|
||||
}
|
||||
|
||||
function changeType(v, obj) {
|
||||
if ($(obj).val() == '') {
|
||||
$("#addBtn").attr("disabled", true);
|
||||
@@ -164,7 +170,7 @@
|
||||
'<div class="table-item">' +
|
||||
'<span class="child-label col-md-3"><font color="red">*</font>'+'<spring:message code="table_type"/>'+':</span> ' +
|
||||
'<span> ' +
|
||||
'<select class="child-required child-input" name="tableType" onchange="autoServiceId()"> ' +
|
||||
'<select class="child-required2 selectpicker select2" name="tableType" onchange="autoServiceId()"> ' +
|
||||
'<option value="">'+'<spring:message code="select"/>'+'</option>' +
|
||||
'<option value="1">IP</option>' +
|
||||
'<option value="2">'+'<spring:message code="string"/>'+'</option>' +
|
||||
@@ -184,7 +190,7 @@
|
||||
'</div>' +
|
||||
'</div>'
|
||||
);
|
||||
|
||||
$("[name=tableType]").selectpicker('refresh');
|
||||
if ($("#serviceType").val() == '1' || $("#serviceType").val() == '3') {
|
||||
$("#addBtn").attr("disabled", true);
|
||||
}
|
||||
@@ -239,7 +245,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="act"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<form:select id="action" path="action" class="required form-control" onchange="autoServiceId()">
|
||||
<form:select id="action" path="action" class="required form-control selectpicker select2" onchange="autoServiceId()">
|
||||
<form:option value=""><spring:message code="select"/></form:option>
|
||||
<form:option value="1"><spring:message code="block"/></form:option>
|
||||
<form:option value="2"><spring:message code="monitor"/></form:option>
|
||||
@@ -254,7 +260,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="type"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<form:select id="serviceType" path="serviceType" class="required form-control" onclick="now=this.value" onchange="changeType(now, this)">
|
||||
<form:select id="serviceType" path="serviceType" class="required form-control selectpicker select2" onchange="changeType(now, this)">
|
||||
<form:option value=""><spring:message code="select"/></form:option>
|
||||
<form:option value="1"><spring:message code="single_domain"/></form:option>
|
||||
<form:option value="2"><spring:message code="multi_domain"/></form:option>
|
||||
@@ -284,7 +290,7 @@
|
||||
<div class="table-item">
|
||||
<span class="child-label col-md-3"><font color="red">*</font><spring:message code="table_type"/>:</span>
|
||||
<span>
|
||||
<select class="child-required child-input" name="tableType">
|
||||
<select class="child-required2 selectpicker select2" name="tableType">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<option value="1" <c:if test="${serviceConfigInfo.tableType eq 1}">selected="selected"</c:if>>IP</option>
|
||||
<option value="2" <c:if test="${serviceConfigInfo.tableType eq 2}">selected="selected"</c:if>><spring:message code="string"/></option>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>系统业务类型管理列表</title>
|
||||
<link href="${pageContext.request.contextPath}/static/pages/css/systemService.css" rel="stylesheet" type="text/css"/>
|
||||
<%-- <link href="${pageContext.request.contextPath}/static/pages/css/systemService.css" rel="stylesheet" type="text/css"/> --%>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -36,29 +36,24 @@ function deleteService(id) {
|
||||
|
||||
<h3 class="page-title">
|
||||
<spring:message code="sysService_manage"></spring:message>
|
||||
<small><spring:message code="date_list"/></small>
|
||||
</h3>
|
||||
|
||||
<h5 class="page-header"></h5>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="portlet box blue">
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
<i class="fa fa-cogs"></i><spring:message code="date_list"></spring:message>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet">
|
||||
<div class="portlet-body">
|
||||
<sys:message content="${message}"/>
|
||||
<form:form id="searchForm" modelAttribute="systemServiceInfo" method="post">
|
||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo }"/>
|
||||
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize }"/>
|
||||
<input id="serviceId" name="id" type="hidden"/>
|
||||
<div class="row search-table">
|
||||
<div class="row">
|
||||
<sys:message content="${message}"/>
|
||||
<form:form id="searchForm" modelAttribute="systemServiceInfo" method="post" class="form-search">
|
||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo }"/>
|
||||
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize }"/>
|
||||
<input id="serviceId" name="id" type="hidden"/>
|
||||
<div class="col-md-12">
|
||||
<span class="search-item" class="input-small">
|
||||
<span><spring:message code="act"/> :</span>
|
||||
<form:select path="action">
|
||||
<form:option value=""><spring:message code="select"/></form:option>
|
||||
<div class="pull-left">
|
||||
<form:select path="action" class="selectpicker select2 input-small">
|
||||
<form:option value=""><spring:message code="act"/></form:option>
|
||||
<form:option value="1"><spring:message code="block"/></form:option>
|
||||
<form:option value="2"><spring:message code="monitor"/></form:option>
|
||||
<form:option value="5"><spring:message code="block_white_list"/></form:option>
|
||||
@@ -66,36 +61,29 @@ function deleteService(id) {
|
||||
<form:option value="7"><spring:message code="block_monitor_white_list"/></form:option>
|
||||
<form:option value="8"><spring:message code="grey_list"/></form:option>
|
||||
</form:select>
|
||||
</span>
|
||||
|
||||
<span class="search-item" class="input-small">
|
||||
<span><spring:message code="type"/> :</span>
|
||||
<form:select path="serviceType">
|
||||
<form:option value=""><spring:message code="select"/></form:option>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<form:select path="serviceType" class="selectpicker select2 input-small">
|
||||
<form:option value=""><spring:message code="type"/></form:option>
|
||||
<form:option value="1"><spring:message code="single_domain"/></form:option>
|
||||
<form:option value="2"><spring:message code="multi_domain"/></form:option>
|
||||
<form:option value="3"><spring:message code="special_service"/></form:option>
|
||||
</form:select>
|
||||
</span>
|
||||
|
||||
<span class="search-item">
|
||||
<span><spring:message code="service_name"/> :</span>
|
||||
<form:input path="serviceName" htmlEscape="false" class="input-small"/>
|
||||
</span>
|
||||
|
||||
<span class="search-item">
|
||||
<span><spring:message code="service_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">
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<input name="serviceName" class="form-control input-medium" placeholder="<spring:message code="service_name"/>" value="${systemServiceInfo.serviceName }"/>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<input name="serviceId" class="form-control input-medium" placeholder="<spring:message code="service_id"/>" value="${systemServiceInfo.serviceId }"/>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<button type="submit" onclick="return page();" class="btn btn-default">
|
||||
<i class="fa fa-edit"></i> <spring:message code="search"></spring:message>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form:form>
|
||||
</form:form>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
@@ -105,7 +93,7 @@ function deleteService(id) {
|
||||
<th style="width:8%"><spring:message code="service_id"/></th>
|
||||
<th><spring:message code="act"/></th>
|
||||
<th><spring:message code="type"/></th>
|
||||
<th><spring:message code="creator_id"></spring:message></th>
|
||||
<th><spring:message code="creator"></spring:message></th>
|
||||
<th style="width:15%"><spring:message code="create_time"></spring:message></th>
|
||||
<th><spring:message code="desc"></spring:message></th>
|
||||
<th><spring:message code="operation"/></th>
|
||||
|
||||
@@ -34,13 +34,9 @@ select, input {
|
||||
font-size: 12px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
.datatable-index {
|
||||
width: 14px;
|
||||
display: inline-block;
|
||||
}
|
||||
#datatables select {
|
||||
height: 34px;
|
||||
vertical-align: middle;
|
||||
.child-required2 {
|
||||
color: #e02222;
|
||||
font-size: 12px;
|
||||
}
|
||||
.del-button {
|
||||
float: right;
|
||||
@@ -53,4 +49,11 @@ select, input {
|
||||
.table-item {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.btn-group.bootstrap-select.child-required2.select2 {
|
||||
height: 34px;
|
||||
width: 50% !important;
|
||||
margin-left: 5px;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
Reference in New Issue
Block a user