|
@@ -28,28 +28,31 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="ibox-content">
|
|
<div class="ibox-content">
|
|
|
<a id="add" href="/admin/sensitivec/addsensitive.html?type=2">
|
|
<a id="add" href="/admin/sensitivec/addsensitive.html?type=2">
|
|
|
- <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
|
|
|
|
|
|
|
+ <button class="btn btn-primary" type="button" style="margin-top:10px"><strong>新增敏感词</strong>
|
|
|
</button>
|
|
</button>
|
|
|
</a>
|
|
</a>
|
|
|
<form action="/admin/sensitivec/inserExcel" enctype="multipart/form-data" method="post" role="form" class="form-inline pull-right">
|
|
<form action="/admin/sensitivec/inserExcel" enctype="multipart/form-data" method="post" role="form" class="form-inline pull-right">
|
|
|
- <div class="content clearfix m-b" style="margin-left: 50px;">
|
|
|
|
|
|
|
+ <div class="content clearfix m-b">
|
|
|
|
|
+ <div class="form-group" style="margin-left: 20px">
|
|
|
|
|
+ <a href="javascript:allDel()" class="btn" style="margin-top:5px;" ><button type="button" class="btn btn-danger btn-sm"><i class="fa fa-trash-o"></i>全部删除</button></a>
|
|
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
- <a href="/static/admin/file/sensitivewords.xlsx" class="btn btn-primary" style="margin-top:5px" >下载敏感词模板文件</a>
|
|
|
|
|
|
|
+ <a href="/static/admin/file/sensitivewords.xlsx" class="btn btn-primary" >下载敏感词模板文件</a>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<!--<label>导入敏感词:</label>-->
|
|
<!--<label>导入敏感词:</label>-->
|
|
|
<input type="file" class="form-control" name="excel" style="width: 200px;border: none;" />
|
|
<input type="file" class="form-control" name="excel" style="width: 200px;border: none;" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
- <input type="submit" class="btn btn-primary" style="margin-top:5px" value="导入">
|
|
|
|
|
|
|
+ <input type="submit" class="btn btn-primary" value="导入">
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
<!--搜索框开始-->
|
|
<!--搜索框开始-->
|
|
|
<form id='commentForm' role="form" method="post" class="form-inline pull-right">
|
|
<form id='commentForm' role="form" method="post" class="form-inline pull-right">
|
|
|
- <div class="content clearfix m-b">
|
|
|
|
|
|
|
+ <div class="content clearfix m-b" style="margin-top: 5px;">
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
- <label>敏感词关键字:</label>
|
|
|
|
|
|
|
+ <label>敏感词:</label>
|
|
|
<input type="text" class="form-control" id="content" name="content" value="" placeholder="请输入敏感词">
|
|
<input type="text" class="form-control" id="content" name="content" value="" placeholder="请输入敏感词">
|
|
|
<input style="display: none">
|
|
<input style="display: none">
|
|
|
</div>
|
|
</div>
|
|
@@ -111,9 +114,9 @@
|
|
|
url: "{:url('sensitivec/index')}", //获取数据的地址
|
|
url: "{:url('sensitivec/index')}", //获取数据的地址
|
|
|
striped: true, //表格显示条纹
|
|
striped: true, //表格显示条纹
|
|
|
pagination: true, //启动分页
|
|
pagination: true, //启动分页
|
|
|
- pageSize: 10, //每页显示的记录数
|
|
|
|
|
|
|
+ pageSize: 50, //每页显示的记录数
|
|
|
pageNumber:1, //当前第几页
|
|
pageNumber:1, //当前第几页
|
|
|
- pageList: [5, 10, 15, 20, 25], //记录数可选列表
|
|
|
|
|
|
|
+ pageList: [20, 50], //记录数可选列表
|
|
|
sidePagination: "server", //表示服务端请求
|
|
sidePagination: "server", //表示服务端请求
|
|
|
paginationFirstText: "首页",
|
|
paginationFirstText: "首页",
|
|
|
paginationPreText: "上一页",
|
|
paginationPreText: "上一页",
|
|
@@ -184,6 +187,34 @@
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ function allDel(){
|
|
|
|
|
+ var type = $('#type').val();
|
|
|
|
|
+ var name = '';
|
|
|
|
|
+ if(type == 1){
|
|
|
|
|
+ name = '用户';
|
|
|
|
|
+ }
|
|
|
|
|
+ if(type == 2){
|
|
|
|
|
+ name = '客服';
|
|
|
|
|
+ }
|
|
|
|
|
+ layer.confirm('确认删除全部'+name+'敏感词?', {icon: 3, title:'提示'}, function(index){
|
|
|
|
|
+ //do something
|
|
|
|
|
+ $.getJSON("{:url('sensitivec/delAll')}", {'type' : type}, function(res){
|
|
|
|
|
+ if(1 == res.code){
|
|
|
|
|
+ layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
|
|
|
|
|
+ initTable();
|
|
|
|
|
+ });
|
|
|
|
|
+ }else if(111 == res.code){
|
|
|
|
|
+ window.location.reload();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ layer.alert(res.msg, {title: '友情提示', icon: 2});
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ layer.close(index);
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
</script>
|
|
</script>
|
|
|
</body>
|
|
</body>
|
|
|
</html>
|
|
</html>
|