数据库备份

This commit is contained in:
sugar1569 2018-09-25 12:29:39 +08:00
parent fde2328142
commit e115130767

View File

@ -50,7 +50,7 @@
var fileList = layui.table; var fileList = layui.table;
var tableList = layui.table; var tableList = layui.table;
//加载sql备份列表 //加载sql备份列表
fileList.render({ var buckdata = fileList.render({
elem: '#fileList' elem: '#fileList'
,url:"{:Url('fileList')}" ,url:"{:Url('fileList')}"
,cols: [[ ,cols: [[
@ -72,7 +72,7 @@
layer.confirm('真的删除行么', function(index){ layer.confirm('真的删除行么', function(index){
layList.basePost(layList.Url({a:'delFile'}),{feilname:data.time},function (res) { layList.basePost(layList.Url({a:'delFile'}),{feilname:data.time},function (res) {
layList.msg(res.msg); layList.msg(res.msg);
// layList.reload(); buckdata.reload();
}); });
obj.del(); obj.del();
layer.close(index); layer.close(index);
@ -111,7 +111,7 @@
if(tables.length){ if(tables.length){
layList.basePost(layList.Url({a:'backup'}),{tables:tables},function (res) { layList.basePost(layList.Url({a:'backup'}),{tables:tables},function (res) {
layList.msg(res.msg); layList.msg(res.msg);
fileList.reload(); //fileList.reload();
}); });
}else{ }else{
layList.msg('请选择表'); layList.msg('请选择表');