|
@@ -45,27 +45,13 @@
|
|
|
</button>
|
|
</button>
|
|
|
</a>
|
|
</a>
|
|
|
<!--搜索框开始-->
|
|
<!--搜索框开始-->
|
|
|
- <!--<form id='commentForm' role="form" method="post" class="form-inline pull-right">-->
|
|
|
|
|
- <!--<div class="content clearfix m-b">-->
|
|
|
|
|
- <!--<div class="form-group">-->
|
|
|
|
|
- <!--<div class="input-group col-sm-4 layui-form" style="width: 70px;">-->
|
|
|
|
|
- <!--<input type="hidden" id="user" value="user_account"/>-->
|
|
|
|
|
- <!--<select lay-verify="required" lay-filter="user">-->
|
|
|
|
|
- <!--<option value="user_account">账号</option>-->
|
|
|
|
|
- <!--<option value="user_name">名称</option>-->
|
|
|
|
|
- <!--</select>-->
|
|
|
|
|
- <!--</div>-->
|
|
|
|
|
- <!--</div>-->
|
|
|
|
|
- <!--<div class="form-group">-->
|
|
|
|
|
- <!--<!–<label>客服名:</label>–>-->
|
|
|
|
|
- <!--<input type="text" class="form-control" id="username" name="user_name">-->
|
|
|
|
|
- <!--</div>-->
|
|
|
|
|
- <!--<div class="form-group">-->
|
|
|
|
|
- <!--<button class="btn btn-primary" type="button" style="margin-top:5px" id="search"><strong>搜 索</strong>-->
|
|
|
|
|
- <!--</button>-->
|
|
|
|
|
- <!--</div>-->
|
|
|
|
|
- <!--</div>-->
|
|
|
|
|
- <!--</form>-->
|
|
|
|
|
|
|
+ <form id='commentForm' role="form" method="post" class="form-inline pull-right">
|
|
|
|
|
+ <div class="content clearfix m-b" style="margin-top:5px">
|
|
|
|
|
+ <div class="form-group" style="margin-left: 20px;">
|
|
|
|
|
+ <a href="javascript:allDel()" class="" style="margin-top:5px;" ><button type="button" class="btn btn-danger btn-sm">全部删除</button></a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
<!--搜索框结束-->
|
|
<!--搜索框结束-->
|
|
|
<!--<div style="margin-bottom: 20px;">{$allmaterial}1</div>-->
|
|
<!--<div style="margin-bottom: 20px;">{$allmaterial}1</div>-->
|
|
|
<div style="margin-top: 20px;">
|
|
<div style="margin-top: 20px;">
|
|
@@ -191,6 +177,24 @@
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ function allDel(){
|
|
|
|
|
+ layer.confirm('确认删除全部图片?', {icon: 3, title:'提示'}, function(index){
|
|
|
|
|
+ //do something
|
|
|
|
|
+ $.getJSON("{:url('material/delAll')}", function(res){
|
|
|
|
|
+ if(1 == res.code){
|
|
|
|
|
+ layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
|
|
|
|
|
+ window.location.href = '/admin/material/index.html';
|
|
|
|
|
+ });
|
|
|
|
|
+ }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>
|