|
|
@@ -31,11 +31,14 @@
|
|
|
</div>
|
|
|
<div class="ibox-content" style="border-top: 0;">
|
|
|
<a href="/admin/words/addword.html">
|
|
|
- <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>
|
|
|
</a>
|
|
|
<form action="/admin/words/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">
|
|
|
+ <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">
|
|
|
<a href="/static/admin/file/words.xlsx" class="btn btn-primary" style="margin-top:5px" >下载快捷回复模板文件</a>
|
|
|
</div>
|
|
|
@@ -51,9 +54,9 @@
|
|
|
<!--搜索框开始-->
|
|
|
<form id='commentForm' role="form" method="post" class="form-inline pull-right">
|
|
|
<input style="display: none">
|
|
|
- <div class="content clearfix m-b">
|
|
|
+ <div class="content clearfix m-b" style="margin-top:5px;">
|
|
|
<div class="form-group">
|
|
|
- <label>常用语内容:</label>
|
|
|
+ <label>常用语:</label>
|
|
|
<input type="text" class="form-control" id="content" name="content">
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
@@ -169,6 +172,26 @@
|
|
|
})
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ function allDel(){
|
|
|
+ layer.confirm('确认删除全部快捷回复?', {icon: 3, title:'提示'}, function(index){
|
|
|
+ //do something
|
|
|
+ $.getJSON("{:url('words/delAll')}", 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>
|
|
|
</body>
|
|
|
</html>
|