....
This commit is contained in:
parent
134a3c0583
commit
380a61cb4a
22
pom.xml
22
pom.xml
@ -54,10 +54,30 @@
|
||||
-->
|
||||
</dependency>
|
||||
<!-- 引入log4j2依赖 -->
|
||||
<dependency>
|
||||
<!--<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-log4j2</artifactId>
|
||||
</dependency>-->
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.15.0</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl -->
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-slf4j-impl</artifactId>
|
||||
<version>2.15.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
<version>2.15.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
|
||||
@ -10,6 +10,7 @@ import com.nbclass.exception.ParameterException;
|
||||
import com.nbclass.util.HttpUtils;
|
||||
import com.nbclass.util.JWTUtils;
|
||||
import com.nbclass.vo.base.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@ -31,12 +33,13 @@ import java.util.UUID;
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/wx")
|
||||
@Slf4j
|
||||
public class WxController {
|
||||
|
||||
/**
|
||||
* wx的AppID
|
||||
*/
|
||||
private static final String appId = "wx013ea7738ce6991f";
|
||||
private static final String appId = "wx35766a64d73d08a9";
|
||||
|
||||
/**
|
||||
* wx的AppSecret
|
||||
@ -78,8 +81,10 @@ public class WxController {
|
||||
*/
|
||||
@GetMapping("/getWxUser")
|
||||
@ResponseBody
|
||||
public Result getWxUser(HttpServletRequest request){
|
||||
public void getWxUser(HttpServletRequest request, HttpServletResponse response){
|
||||
|
||||
if(request.getParameter("code")==null){
|
||||
log.error("code:"+request.getParameter("code"));
|
||||
throw new ParameterException("code参数异常!");
|
||||
}
|
||||
|
||||
@ -91,11 +96,24 @@ public class WxController {
|
||||
url = String.format(url,appId,AppSecret,code);
|
||||
JSONObject jsonObject = HttpUtils.httpGet(url);
|
||||
|
||||
try {
|
||||
if(jsonObject ==null || jsonObject.getIntValue("errcode") == 40029 || jsonObject.getIntValue("errcode") == 40163) { // invalid code 重新发起授权\
|
||||
log.info("errcode == 40029|40163, 重新跳转授权 ......");
|
||||
response.sendRedirect("http://test.szxgl.cn/cases/login/");
|
||||
return;
|
||||
}
|
||||
}catch (Exception e) {
|
||||
log.error("授权失败:", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
if(jsonObject.getString("access_token")==null){
|
||||
log.error("access_token:"+jsonObject.getString("access_token"));
|
||||
throw new ParameterException("access_token参数异常!");
|
||||
}
|
||||
|
||||
if(jsonObject.getString("openid")==null){
|
||||
log.error("openid:"+jsonObject.getString("openid"));
|
||||
throw new ParameterException("openid参数异常!");
|
||||
}
|
||||
|
||||
@ -126,14 +144,14 @@ public class WxController {
|
||||
String subject = JSON.toJSONString(user);
|
||||
try {
|
||||
token = JWTUtils.createJWT(UUID.randomUUID().toString(), "admin", subject, 7200 * 1000, null);
|
||||
/*Map<String,Object> map = new HashMap<>();
|
||||
map.put("token",token);
|
||||
map.put("nickname",weiXiUser.getNickname());
|
||||
map.put("headimgurl",weiXiUser.getHeadimgurl());*/
|
||||
response.sendRedirect("http://test.szxgl.cn/cases/?token="+token+"&nickname="+weiXiUser.getNickname()+"&headimgurl"+weiXiUser.getHeadimgurl());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("token",token);
|
||||
map.put("nickname",weiXiUser.getNickname());
|
||||
map.put("headimgurl",weiXiUser.getHeadimgurl());
|
||||
|
||||
|
||||
//获取企业微信的access_token
|
||||
/* String qyWxUrl = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
|
||||
@ -180,9 +198,6 @@ public class WxController {
|
||||
|
||||
System.out.println(memberList.getUnionid());
|
||||
}*/
|
||||
|
||||
|
||||
return Result.success(map);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -67,5 +67,3 @@ pagehelper:
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
|
||||
|
||||
|
||||
|
||||
@ -275,14 +275,15 @@ body .demo-class .layui-layer-btn .layui-layer-btn1{background:#f1f1f1;}
|
||||
}
|
||||
|
||||
.table-btn{
|
||||
margin: 0 2px;
|
||||
border-radius: 10px;
|
||||
margin: 0px 2px;
|
||||
border-radius: 4px;
|
||||
padding: 2px 5px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.table-btn.table-btn-info{
|
||||
color: #00c0ef;
|
||||
color: white;
|
||||
border: 1px solid #00c0ef;
|
||||
background-color: #00c0ef;
|
||||
}
|
||||
.table-btn.table-btn-info:hover{
|
||||
color: #00acd6;
|
||||
@ -305,8 +306,9 @@ body .demo-class .layui-layer-btn .layui-layer-btn1{background:#f1f1f1;}
|
||||
border: 1px solid #dc8d1e;
|
||||
}
|
||||
.table-btn.table-btn-danger{
|
||||
color: #dd4b39;
|
||||
border: 1px solid #dd4b39;
|
||||
color: white;
|
||||
border: 1px solid #00c0ef;
|
||||
background-color: #00c0ef;
|
||||
}
|
||||
.table-btn.table-btn-danger:hover{
|
||||
color: #d73925;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -868,8 +868,8 @@
|
||||
|
||||
// part of this is duplicated in i18n/defaults-en_US.js. Make sure to update both.
|
||||
Selectpicker.DEFAULTS = {
|
||||
noneSelectedText: 'Nothing selected',
|
||||
noneResultsText: 'No results matched {0}',
|
||||
noneSelectedText: '未选择任何内容',
|
||||
noneResultsText: '没有匹配的结果 {0}',
|
||||
countSelectedText: function (numSelected, numTotal) {
|
||||
return (numSelected == 1) ? '{0} item selected' : '{0} items selected';
|
||||
},
|
||||
File diff suppressed because one or more lines are too long
@ -11,15 +11,15 @@
|
||||
<label>案例编号: </label>
|
||||
<input type="text" id="contentId" class="form-control" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查 询</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="reset_query" class="btn btn-info">重置</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
|
||||
<button id="reset_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 重置
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -6,17 +6,93 @@
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<input class="hidden" id="name" name="username" th:value="${session.username}">
|
||||
<div class="jax-box">
|
||||
<form id="formSearch" class="form-inline form-search">
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例编号: </label>
|
||||
<input type="text" id="case_number" class="form-control" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
<input type="text" id="case_number" class="form-control" style="width: 100px" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>标题: </label>
|
||||
<input type="text" id="title" class="form-control">
|
||||
<input type="text" id="title" class="form-control" style="width: 100px">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>状态: </label>
|
||||
<select id="status" class="form-control" style="width: 100px">
|
||||
<option value="">请选择</option>
|
||||
<option value="1">待审核</option>
|
||||
<option value="2">通过</option>
|
||||
<option value="3">未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>反馈次数: </label>
|
||||
<select id="count" class="form-control" style="width: 100px">
|
||||
<option value="">请选择</option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">非0</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>标签: </label>
|
||||
<select id="tags" name="tagLists" class="js-example-basic-single" style="line-height: 23px !important;">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>品牌公司: </label>
|
||||
<select id="brandCompany" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>广告公司: </label>
|
||||
<select id="advertisingAgency" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例用途: </label>
|
||||
<select id="purposeCase" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>创意形式: </label>
|
||||
<select id="formCreative" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例类型: </label>
|
||||
<select id="typeCase" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>节日事件: </label>
|
||||
<select id="eventsFestival" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>创建时间:</label>
|
||||
<!--指定 date标记-->
|
||||
@ -39,83 +115,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>品牌公司: </label>
|
||||
<select id="brandCompany" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>状态: </label>
|
||||
<select id="status" class="form-control">
|
||||
<option value="">未提交</option>
|
||||
<option value="1">待审核</option>
|
||||
<option value="2">通过</option>
|
||||
<option value="3">未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>反馈次数: </label>
|
||||
<select id="count" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">非0</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>标签: </label>
|
||||
<select id="tags" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>广告公司: </label>
|
||||
<select id="advertisingAgency" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例用途: </label>
|
||||
<select id="purposeCase" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>创意形式: </label>
|
||||
<select id="formCreative" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例类型: </label>
|
||||
<select id="typeCase" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>节日事件: </label>
|
||||
<select id="eventsFestival" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>修改时间:</label>
|
||||
<!--指定 date标记-->
|
||||
@ -161,23 +161,41 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查 询</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="reset_query" class="btn btn-info">重置</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" style="margin-bottom: 10px">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
|
||||
<button id="reset_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 重置
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="jax-box jax-box-table">
|
||||
<div id="toolbar" class="btn-group">
|
||||
<shiro:hasPermission name="indexPage">
|
||||
<button id="btn_add" type="button" class="btn btn-primary">
|
||||
<span aria-hidden="true"></span> 新增
|
||||
</button>
|
||||
</shiro:hasPermission>
|
||||
|
||||
<shiro:hasPermission name="indexPage">
|
||||
<button id="btn_batch_delete" type="button" class="btn btn-danger">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> 批量删除
|
||||
</button>
|
||||
</shiro:hasPermission>
|
||||
|
||||
<!--<shiro:hasPermission name="indexPage">
|
||||
<button id="btn_synces" type="button" class="btn btn-info">
|
||||
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> 同步数据到搜索引擎
|
||||
</button>
|
||||
</shiro:hasPermission>-->
|
||||
</div>
|
||||
<table id="table" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap"></table>
|
||||
</div>
|
||||
</section>
|
||||
@ -448,6 +466,7 @@
|
||||
$("#case_number").val("");
|
||||
$("#title").val("");
|
||||
$(".form-control").find("option:selected").attr("selected",false);
|
||||
$(".js-example-basic-single").val(null).trigger("change");
|
||||
$("#createTime").find("input").val("");
|
||||
$("#createTimeSection").find("input").val("");
|
||||
$("#updateTime").find("input").val("");
|
||||
@ -557,6 +576,18 @@
|
||||
todayBtn: true//显示今日按钮
|
||||
})
|
||||
|
||||
$('.js-example-basic-single').select2({
|
||||
language: 'zh-CN',
|
||||
width:100,
|
||||
closeOnSelect:true
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.table-btn.table-btn-danger {
|
||||
color: white;
|
||||
border: #00c0ef;
|
||||
background-color: #00c0ef;!important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -7,10 +7,10 @@
|
||||
<body>
|
||||
<br/><br/><br/>
|
||||
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
|
||||
<div id="main" style="width: 1500px;height:800px;"></div><br/><br/><br/>
|
||||
<div id="main2" style="width: 1500px;height:800px;"></div><br/><br/><br/>
|
||||
<div id="main3" style="width: 1500px;height:800px;"></div><br/><br/><br/>
|
||||
<div id="main4" style="width: 1500px;height:800px;"></div>
|
||||
<div id="main" class="jax-box jax-box-table" style="width: 1500px;height:800px;background-color: white"></div><br/><br/><br/>
|
||||
<div id="main2" class="jax-box jax-box-table" style="width: 1500px;height:800px;background-color: white"></div><br/><br/><br/>
|
||||
<div id="main3" class="jax-box jax-box-table" style="width: 1500px;height:800px;background-color: white"></div><br/><br/><br/>
|
||||
<div id="main4" class="jax-box jax-box-table" style="width: 1500px;height:800px;background-color: white"></div>
|
||||
<script type="text/javascript">
|
||||
function getCensus(){
|
||||
var count = [];
|
||||
@ -202,7 +202,20 @@
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<style type="text/css">
|
||||
.jax-box{
|
||||
border-radius: 3px;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e6e7e7;
|
||||
border-bottom: none;
|
||||
margin-bottom: 50px;
|
||||
width: 100%;
|
||||
padding: 25px;
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
|
||||
margin-left: 90px;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">关联部门:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType26" name="tagLists" class="selectpicker" multiple>
|
||||
<select id="contentType26" name="tagLists" class="selectpicker" multiple data-live-search="true">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -35,13 +35,13 @@
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">案例类型:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType18" name="tagLists" class="selectpicker">
|
||||
<select id="contentType18" name="tagLists" class="selectpicker" data-live-search="true">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">案例用途:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType19" name="tagLists" class="selectpicker" multiple>
|
||||
<select id="contentType19" name="tagLists" class="selectpicker" multiple data-live-search="true">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -49,12 +49,12 @@
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">创意形式:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType20" name="tagLists" class="selectpicker" multiple>
|
||||
<select id="contentType20" name="tagLists" class="selectpicker" multiple data-live-search="true">
|
||||
</select>
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">节日事件:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType21" name="tagLists" class="selectpicker" multiple>
|
||||
<select id="contentType21" name="tagLists" class="selectpicker" multiple data-live-search="true">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -62,12 +62,12 @@
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">品牌公司:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType23" name="tagLists" class="selectpicker" multiple>
|
||||
<select id="contentType23" name="tagLists" class="selectpicker" multiple data-live-search="true">
|
||||
</select>
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">广告公司:</label>
|
||||
<div class="col-sm-2">
|
||||
<select id="contentType24" name="tagLists" class="selectpicker" multiple>
|
||||
<select id="contentType24" name="tagLists" class="selectpicker" multiple data-live-search="true">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -189,9 +189,9 @@ var caseType = [[${caseType}]];
|
||||
// });
|
||||
}
|
||||
|
||||
$(".selectpicker").selectpicker({
|
||||
noneSelectedText : '请选择'
|
||||
});
|
||||
/* $(".selectpicker").selectpicker({
|
||||
noneSelectedText : '请选择',
|
||||
});*/
|
||||
|
||||
function getDropDownBox(){
|
||||
//初始化下拉框
|
||||
@ -287,6 +287,7 @@ var caseType = [[${caseType}]];
|
||||
|
||||
// 上传附件
|
||||
function uploadAttrFile() {
|
||||
alert(111)
|
||||
$('#newsForm').ajaxSubmit({
|
||||
url: '[[@{/console/tool/oss/uploadFile}]]?category=attachment&caseType=[[${caseType}]]',
|
||||
type: 'post',
|
||||
|
||||
@ -13,81 +13,81 @@
|
||||
<label>案例编号: </label>
|
||||
<input type="text" id="case_number" class="form-control" style="width: 100px" oninput = "value=value.replace(/[^\d]/g,'')">
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>标题: </label>
|
||||
<input type="text" id="title" class="form-control" style="width: 100px">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>品牌公司: </label>
|
||||
<select id="brandCompany" name="tagLists" class="form-control">
|
||||
<label>状态: </label>
|
||||
<select id="status" class="form-control" style="width: 100px">
|
||||
<option value="">请选择</option>
|
||||
<option value="1">待审核</option>
|
||||
<option value="2">通过</option>
|
||||
<option value="3">未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>广告公司: </label>
|
||||
<select id="advertisingAgency" name="tagLists" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>状态: </label>
|
||||
<select id="status" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option value="1">待审核</option>
|
||||
<option value="2">通过</option>
|
||||
<option value="3">未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>反馈次数: </label>
|
||||
<select id="count" class="form-control">
|
||||
<select id="count" class="form-control" style="width: 100px">
|
||||
<option value="">请选择</option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">非0</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>标签: </label>
|
||||
<select id="tags" name="tagLists" class="form-control">
|
||||
<select id="tags" name="tagLists" class="js-example-basic-single" style="line-height: 23px !important;">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<br/>
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>品牌公司: </label>
|
||||
<select id="brandCompany" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>广告公司: </label>
|
||||
<select id="advertisingAgency" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例用途: </label>
|
||||
<select id="purposeCase" name="tagLists" class="form-control">
|
||||
<select id="purposeCase" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>创意形式: </label>
|
||||
<select id="formCreative" name="tagLists" class="form-control">
|
||||
<select id="formCreative" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>案例类型: </label>
|
||||
<select id="typeCase" name="tagLists" class="form-control">
|
||||
<select id="typeCase" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<label>节日事件: </label>
|
||||
<select id="eventsFestival" name="tagLists" class="form-control">
|
||||
<select id="eventsFestival" name="tagLists" class="js-example-basic-single">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -161,19 +161,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="btn-group" style="margin-bottom: 10px">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查 询</button>
|
||||
</div>
|
||||
<button id="reset_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 重置
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 10px">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="reset_query" class="btn btn-info">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -497,6 +495,7 @@
|
||||
$("#case_number").val("");
|
||||
$("#title").val("");
|
||||
$(".form-control").find("option:selected").attr("selected",false);
|
||||
$(".js-example-basic-single").val(null).trigger("change");
|
||||
$("#createTime").find("input").val("");
|
||||
$("#createTimeSection").find("input").val("");
|
||||
$("#updateTime").find("input").val("");
|
||||
@ -622,5 +621,22 @@
|
||||
});
|
||||
|
||||
});*/
|
||||
// In your Javascript (external .js resource or <script> tag)
|
||||
|
||||
$('.js-example-basic-single').select2({
|
||||
language: 'zh-CN',
|
||||
width:100,
|
||||
closeOnSelect:true
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.table-btn.table-btn-danger {
|
||||
color: white;
|
||||
border: #00c0ef;
|
||||
background-color: #00c0ef;!important;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<label>字典名: </label>
|
||||
<input type="text" id="s_name" class="form-control" placeholder="这里输入关键字">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>状态: </label>
|
||||
<select id="s_isvalid" class="form-control">
|
||||
@ -20,11 +21,12 @@
|
||||
<option value="0">无效</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查 询</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<title>案例管理系统</title>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" th:href="@{/libs/bootstrap/bootstrap.min.css}"/>
|
||||
<link rel="stylesheet" th:href="@{/libs/bootstrap/bootstrap-select.min.css}"/>
|
||||
<link rel="stylesheet" th:href="@{/libs/bootstrap-select/bootstrap-select.min.css}"/>
|
||||
<link rel="stylesheet" th:href="@{/libs/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css}"/>
|
||||
<link rel="stylesheet" th:href="@{/libs/font-awesome/font-awesome.min.css}"/>
|
||||
<link rel="stylesheet" th:href="@{/libs/adminlte/css/AdminLTE.min.css}"/>
|
||||
@ -19,13 +19,20 @@
|
||||
<!-- tagsinput引用css -->
|
||||
<link rel="stylesheet" th:href="@{https://s0.pstatp.com/cdn/expire-1-M/jqueryui/1.12.1/jquery-ui.min.css}"/>
|
||||
<link rel="stylesheet" th:href="@{https://s0.pstatp.com/cdn/expire-1-M/jquery-tagsinput/1.3.6/jquery.tagsinput.min.css}"/>
|
||||
<!-- <link rel="stylesheet" th:href="@{https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css}"/>-->
|
||||
<link rel="stylesheet" th:href="@{/libs/select2/select2.min.css}"/>
|
||||
|
||||
<link rel="stylesheet" th:href="@{/css/common.css}"/>
|
||||
<script th:src="@{/libs/jquery/jquery.min.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap/bootstrap.min.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap/bootstrap-select.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-select/bootstrap-select.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-select/defaults-zh_CN.min.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js}"></script>
|
||||
<!-- <script th:src="@{https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js}"></script>-->
|
||||
<!-- <script th:src="@{https://cdn.bootcdn.net/ajax/libs/select2/4.1.0-rc.0/js/i18n/zh-CN.min.js}"></script>-->
|
||||
<script th:src="@{/libs/select2/select2.min.js}"></script>
|
||||
<script th:src="@{/libs/select2/zh-CN.js}"></script>
|
||||
<!-- <script th:src="@{/libs/pace/pace.js}"></script> 进度插件 -->
|
||||
<script th:src="@{/libs/jquery/jquery.slimscroll.min.js}"></script>
|
||||
<script th:src="@{/libs/jquery/fastclick.min.js}"></script>
|
||||
@ -33,7 +40,6 @@
|
||||
<script th:src="@{/libs/layer/layer.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-table/js/bootstrap-table.min.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-table/js/bootstrap-table-zh-CN.min.js}"></script>
|
||||
<script th:src="@{/libs/bootstrap-table/js/bootstrap-table-zh-CN.min.js}"></script>
|
||||
<script th:src="@{/libs/treegrid/jquery.treegrid.min.js}"></script>
|
||||
<script th:src="@{/libs/treegrid/jquery.treegrid.extension.js}"></script>
|
||||
<script th:src="@{/libs/treegrid/tree.table.js}"></script>
|
||||
@ -51,7 +57,7 @@
|
||||
<div class="wrapper">
|
||||
<div th:replace="fragments/navbar :: navbar"></div>
|
||||
<div th:replace="fragments/sidebar :: sidebar"></div>
|
||||
<div id="content" class="content-wrapper" >
|
||||
<div id="content" class="content-wrapper">
|
||||
</div>
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
|
||||
|
||||
@ -8,20 +8,20 @@
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="jax-box">
|
||||
<form id="formSearch" class="form-horizontal">
|
||||
<form id="formSearch" class="form-inline form-search">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3 col-sm-6 col-xs-9">
|
||||
<label class="control-label col-xs-4" for="username">用户名:</label>
|
||||
<div class="col-xs-8">
|
||||
<input type="text" class="form-control" id="username">
|
||||
</div>
|
||||
</div>
|
||||
<shiro:hasPermission name="onlineUser:list">
|
||||
<div class="col-md-1 col-sm-6 col-xs-2" style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查询</button>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
<label for="username">用户名:</label>
|
||||
<input type="text" class="form-control" id="username">
|
||||
</div>
|
||||
|
||||
|
||||
<shiro:hasPermission name="onlineUser:list">
|
||||
<div class="btn-group">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
</form>
|
||||
</div>
|
||||
<div class="jax-box jax-box-table">
|
||||
|
||||
@ -8,22 +8,20 @@
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="jax-box">
|
||||
<form id="formSearch" class="form-horizontal">
|
||||
<form id="formSearch" class="form-inline form-search">
|
||||
<div class="form-group">
|
||||
<div class="col-md-5 col-xs-8">
|
||||
<label class="control-label col-xs-4" for="roleName">角色名称:</label>
|
||||
<div class="col-xs-8">
|
||||
<input type="text" class="form-control" id="roleName">
|
||||
</div>
|
||||
</div>
|
||||
<shiro:hasPermission name="role:list">
|
||||
<div class="col-md-5 col-xs-4 " style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查询</button>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
|
||||
<label for="roleName">角色名称:</label>
|
||||
<input type="text" class="form-control" id="roleName">
|
||||
</div>
|
||||
|
||||
|
||||
<shiro:hasPermission name="role:list">
|
||||
<div class="btn-group">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
</form>
|
||||
</div>
|
||||
<div class="jax-box jax-box-table">
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<label>关键字: </label>
|
||||
<input type="text" id="s_description" class="form-control" placeholder="这里输入关键字">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>日志类型: </label>
|
||||
<select id="s_type" class="form-control">
|
||||
@ -22,11 +23,12 @@
|
||||
<option value="4">案例管理</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-1 col-sm-3" style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查 询</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" >
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -51,7 +53,7 @@
|
||||
{field: 'operator', title: '操作者', align : "left"},
|
||||
{field: 'ipaddr', title: 'IP地址', align : "left"},
|
||||
{field: 'description', title: '描述', align : "center"},
|
||||
{field : 'operation', title : '操作', align : "left", width: '102px', formatter: function(value, row, index) {
|
||||
{field : 'operation', title : '操作', align : "center", width: '102px', formatter: function(value, row, index) {
|
||||
let delHtml = delFlag=="true" ? ' <a class="table-btn table-btn-danger" href="javascript:void(0)" onclick="deleteAction('+row.id+',1)">删除</a>' : '';
|
||||
return delHtml;
|
||||
}}
|
||||
|
||||
@ -8,32 +8,32 @@
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="jax-box">
|
||||
<form id="formSearch" class="form-horizontal form-search">
|
||||
<form id="formSearch" class="form-inline form-search">
|
||||
<div class="form-group">
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="control-label col-xs-4" for="username">用户名:</label>
|
||||
<div class="col-xs-8">
|
||||
<input type="text" class="form-control" id="username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="control-label col-xs-4" for="email">邮箱:</label>
|
||||
<div class="col-xs-8">
|
||||
<input type="text" class="form-control" id="email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<label class="control-label col-xs-4" for="phone">电话:</label>
|
||||
<div class="col-xs-8">
|
||||
<input type="text" class="form-control" id="phone">
|
||||
</div>
|
||||
</div>
|
||||
<shiro:hasPermission name="user:list">
|
||||
<div class="col-md-1 col-sm-6 " style="text-align:left;">
|
||||
<button type="button" id="btn_query" class="btn btn-info">查询</button>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
<label for="username">用户名:</label>
|
||||
<input type="text" class="form-control" id="username">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">邮箱:</label>
|
||||
<input type="text" class="form-control" id="email">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone">电话:</label>
|
||||
<input type="text" class="form-control" id="phone">
|
||||
</div>
|
||||
|
||||
|
||||
<shiro:hasPermission name="user:list">
|
||||
<div class="btn-group">
|
||||
<button id="btn_query" type="button" class="btn table-btn-info">
|
||||
<span aria-hidden="true"></span> 查 询
|
||||
</button>
|
||||
</div>
|
||||
</shiro:hasPermission>
|
||||
</form>
|
||||
</div>
|
||||
<div class="jax-box jax-box-table">
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
id:"login_container",
|
||||
appid: "wx013ea7738ce6991f",
|
||||
scope: "snsapi_login", // 固定参数,微信官方提供的解析参数
|
||||
redirect_uri: "http://demo.xfhd.net/cases/wx/getWxUser", // 回调url,就是你扫码后,微信官方返回一些参数(code,state),然后调用你这里指定的方法
|
||||
redirect_uri: "http://test.szxgl.cn/cases/wx/getWxUser", // 回调url,就是你扫码后,微信官方返回一些参数(code,state),然后调用你这里指定的方法
|
||||
state: "", // 该参数可以不写
|
||||
style: "black", //二维码黑白风格,该参数可以不写
|
||||
href: "" // 该参数可以不写
|
||||
|
||||
Loading…
Reference in New Issue
Block a user