mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-02 02:48:15 +00:00
数据库备份
This commit is contained in:
parent
9e2717db89
commit
9bc4e59ebb
@ -119,7 +119,7 @@ class SystemDatabackup extends AuthController
|
|||||||
public function import(Request $request = null)
|
public function import(Request $request = null)
|
||||||
{
|
{
|
||||||
$part = $request->post('part')?:null;
|
$part = $request->post('part')?:null;
|
||||||
$start = $request->post('start')?:0;
|
$start = $request->post('start')?:null;
|
||||||
$time = strtotime($request->post('time'));
|
$time = strtotime($request->post('time'));
|
||||||
$db = $this->DB;
|
$db = $this->DB;
|
||||||
if(is_numeric($time) && is_null($part) && is_null($start)){
|
if(is_numeric($time) && is_null($part) && is_null($start)){
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
start:start
|
start:start
|
||||||
};
|
};
|
||||||
layList.basePost(layList.Url({a:'import'}),data,function (res) {
|
layList.basePost(layList.Url({a:'import'}),data,function (res) {
|
||||||
console.log(res);
|
console.log(res);console.log(123);
|
||||||
if(res.code){
|
if(res.code){
|
||||||
console.log(res);
|
console.log(res);
|
||||||
setTimeout(ipmosrting(time,res.data.part,res.data.start),2000);
|
setTimeout(ipmosrting(time,res.data.part,res.data.start),2000);
|
||||||
@ -89,7 +89,7 @@
|
|||||||
switch (layEvent){
|
switch (layEvent){
|
||||||
case 'import':
|
case 'import':
|
||||||
layer.confirm('真的倒入该备份吗?', function(index){
|
layer.confirm('真的倒入该备份吗?', function(index){
|
||||||
ipmosrting(data.time);
|
ipmosrting(data.time,null,null);
|
||||||
layer.close(index);
|
layer.close(index);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user