完成用户添加,删除,批量删除

This commit is contained in:
yubao
2017-09-03 00:21:03 +08:00
parent 7a2a909edd
commit 3184479120
3 changed files with 35 additions and 36 deletions

View File

@@ -30,6 +30,10 @@ layui.define(['jquery', 'layer'], function (exports) {
//删除
, del: function (url, dataids, callback) {
if (dataids == undefined || dataids == "" || dataids.length == 0) {
layer.msg("至少选择一条记录");
return;
}
layer.confirm('真的删除么', function (index) {
$.post(url, { ids: dataids },
function (data) {