|
|
@@ -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;
|