mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-20 17:42:59 +00:00
数据库备份
This commit is contained in:
parent
080b128f8a
commit
fe618b1715
@ -63,6 +63,22 @@
|
||||
]]
|
||||
,page: false
|
||||
});
|
||||
function ipmosrting(time,part = null,start = null) {
|
||||
var data = {
|
||||
time:time,
|
||||
part:part||null,
|
||||
start:start||null
|
||||
};
|
||||
layList.basePost(layList.Url({a:'import'}),data,function (res) {
|
||||
if(res.code){
|
||||
layList.msg(res.msg);
|
||||
}else{
|
||||
layList.msg(res.msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
//监听工具条
|
||||
fileList.on('tool(fileList)', function(obj){
|
||||
var data = obj.data;
|
||||
@ -70,8 +86,9 @@
|
||||
switch (layEvent){
|
||||
case 'import':
|
||||
layer.confirm('真的倒入该备份吗?', function(index){
|
||||
ipmosrting(data.time);
|
||||
layList.basePost(layList.Url({a:'import'}),{feilname:data.time},function (res) {
|
||||
layList.msg(res.msg);
|
||||
setTimeout("ipmosrting(res.data.time,res.data.part,res.data.start)",2000);
|
||||
});
|
||||
});
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user