mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-18 07:42:55 +00:00
数据库备份
This commit is contained in:
parent
c0c007200a
commit
e5f6b9ff97
@ -52,17 +52,20 @@
|
|||||||
part:part,
|
part:part,
|
||||||
start:start
|
start:start
|
||||||
};
|
};
|
||||||
layList.basePost(layList.Url({a:'import'}),data,function (res) {
|
$.ajax({
|
||||||
console.log(res);console.log(123);
|
url: layList.Url({a: 'import'}),
|
||||||
if(res.code){
|
data: datas,
|
||||||
console.log(res);
|
type: 'post',
|
||||||
setTimeout(ipmosrting(time,res.data.part,res.data.start),2000);
|
dataType: 'json',
|
||||||
}else{
|
success: function (res) {
|
||||||
layList.msg(res.msg);
|
console.log(res);
|
||||||
return false;
|
setTimeout(ipmosrting(time,res.data.part,res.data.start),2000);
|
||||||
}
|
},
|
||||||
|
error: function (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
layui.use('table', function(){
|
layui.use('table', function(){
|
||||||
var fileList = layui.table;
|
var fileList = layui.table;
|
||||||
@ -89,24 +92,8 @@
|
|||||||
switch (layEvent){
|
switch (layEvent){
|
||||||
case 'import':
|
case 'import':
|
||||||
layer.confirm('真的倒入该备份吗?', function(index){
|
layer.confirm('真的倒入该备份吗?', function(index){
|
||||||
var datas = {
|
|
||||||
time:data.time,
|
ipmosrting(data.time,null,null);
|
||||||
part:1,
|
|
||||||
start:0
|
|
||||||
};
|
|
||||||
$.ajax({
|
|
||||||
url: layList.Url({a: 'import'}),
|
|
||||||
data: datas,
|
|
||||||
type: 'post',
|
|
||||||
dataType: 'json',
|
|
||||||
success: function (rem) {
|
|
||||||
console.log(rem)
|
|
||||||
},
|
|
||||||
error: function (err) {
|
|
||||||
console.log(err)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//ipmosrting(data.time,null,null);
|
|
||||||
layer.close(index);
|
layer.close(index);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user