You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
3.3 KiB

{include file="public/frame_head"}
<style>
.panel{
width: 100%;margin-top:20px; text-align: left;padding: 20px 40px;
}
.panel button{display: block;margin:5px;}
</style>
<div class="col-sm-12">
<blockquote class="text-warning" style="font-size:14px">清除数据请谨慎,清除就无法恢复哦!
</blockquote>
<hr>
</div>
<div class="row panel">
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/UserRelevant')}">清除用户数据</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/storedata')}">清除商城数据</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/categorydata')}">清除产品分类</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/orderdata')}">清除订单数据</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/kefudata')}">清除客服数据</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/wechatdata')}">清除微信数据</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/wechatuserdata')}">清除微信用户</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/articledata')}">清除内容分类</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/uploaddata')}">清除所有附件</button><br>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" data-url="{:Url('system.SystemCleardata/userdate')}">创建前台用户用户名:crmeb 密码:123456</button>
</div>
<script>
$('.cleardata').on('click',function(){
window.t = $(this);
var _this = $(this),url =_this.data('url');
$eb.$swal('delete',function(){
$eb.axios.get(url).then(function(res){
if(res.status == 200 && res.data.code == 200) {
$eb.$swal('success',res.data.msg);
}else
return Promise.reject(res.data.msg || '操作失败')
}).catch(function(err){
$eb.$swal('error',err);
});
},{'title':'您确定要进行此操作吗?','text':'数据清除无法恢复','confirm':'是的,我要操作'})
});
$('.creatuser').on('click',function(){
window.t = $(this);
var _this = $(this),url =_this.data('url');
$eb.$swal('delete',function(){
$eb.axios.get(url).then(function(res){
if(res.status == 200 && res.data.code == 200) {
$eb.$swal('success',res.data.msg);
}else
return Promise.reject(res.data.msg || '操作失败')
}).catch(function(err){
$eb.$swal('error',err);
});
},{'title':'您确定要进行此操作吗?','text':'用户数据清除之后才能进行此操作','confirm':'是的,我要操作'})
})
</script>
{include file="public/inner_footer"}