|
@@ -39,17 +39,21 @@
|
|
|
<div class="form-group">
|
|
<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>
|
|
<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>
|
|
|
|
|
+ <!--<div class="form-group">-->
|
|
|
|
|
+ <!--<a href="/static/admin/file/words.xlsx" class="btn btn-primary" style="margin-top:5px" >下载快捷回复模板文件</a>-->
|
|
|
|
|
+ <!--</div>-->
|
|
|
|
|
+ <!--<div class="form-group">-->
|
|
|
|
|
+ <!--<!–<label>导入快捷回复:</label>–>-->
|
|
|
|
|
+ <!--<input type="file" class="form-control" name="excel" style="width: 200px;border: none;" />-->
|
|
|
|
|
+ <!--</div>-->
|
|
|
|
|
+ <!--<div class="form-group">-->
|
|
|
|
|
+ <!--<input type="submit" class="btn btn-primary" style="margin-top:5px" value="导入">-->
|
|
|
|
|
+ <!--</div>-->
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
- <a href="/static/admin/file/words.xlsx" class="btn btn-primary" style="margin-top:5px" >下载快捷回复模板文件</a>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form-group">
|
|
|
|
|
- <!--<label>导入快捷回复:</label>-->
|
|
|
|
|
- <input type="file" class="form-control" name="excel" style="width: 200px;border: none;" />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form-group">
|
|
|
|
|
- <input type="submit" class="btn btn-primary" style="margin-top:5px" value="导入">
|
|
|
|
|
|
|
+ <a href="javascript:leadingin()" class="btn" style="margin-top:5px;" ><button type="button" class="btn btn-primary">导入快捷回复</button></a>
|
|
|
</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">
|
|
@@ -192,6 +196,29 @@
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ function leadingin(){
|
|
|
|
|
+ layer.confirm('<form action="/admin/words/inserExcel" enctype="multipart/form-data" method="post" role="form" class="form-inline pull-right"> <div class=""><input type="file" class="" name="excel" style="border: none;" /> </div><div class="" style="margin-top: 20px;"><input type="submit" class="btn btn-primary" value="开始导入"></div><div class="" style="margin-top: 20px;"> <a href="/static/admin/file/words.xlsx" style="color:black;" class=""><input type="button" value="下载快捷回复模板文件"></a></div></form>', {icon: 6, title:'导入快捷回复'}, function(index){
|
|
|
|
|
+ //do something
|
|
|
|
|
+ $.getJSON("{:url('words/inserExcel')}", {'id' : id}, 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);
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ $('a.layui-layer-btn0').css('display','none');
|
|
|
|
|
+ $('.layui-layer-ico').css('display','none');
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
</script>
|
|
</script>
|
|
|
</body>
|
|
</body>
|
|
|
</html>
|
|
</html>
|