From 334d9079f2de993d257e47d7a7169c2338481417 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Tue, 25 Sep 2018 12:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/view/system/system_databackup/index.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/application/admin/view/system/system_databackup/index.php b/application/admin/view/system/system_databackup/index.php index d31f50a5..a45ae9cd 100644 --- a/application/admin/view/system/system_databackup/index.php +++ b/application/admin/view/system/system_databackup/index.php @@ -110,13 +110,18 @@ switch(obj.event){ case 'getCheckData': var data = checkStatus.data; - var ids = []; + var tables = []; $.each(data, function (name, value) { - if (value['name'] != undefined) ids.push(value['name']); + if (value['name'] != undefined) tables.push(value['name']); }); - console.log(data); - console.log(ids); - layer.alert(JSON.stringify(ids)); + if(tables.length){ + layList.basePost(layList.Url({a:'optimize'}),{tables:tables},function (res) { + layList.msg(res.msg); + filelist.reload(); + }); + }else{ + layList.msg('请选择表'); + } break; case 'getCheckLength': var data = checkStatus.data;