del.js 682 Bytes
Newer Older
zhangfeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
layui.define(['table', 'temApi'], function(exports) {
    var temApi = layui.temApi;
    var table=layui.table;
    var view = {
        init:function(){
        },
        delBatch:function(){
            var data = Common.getMoreDataFromTable(table,"temTable");
            if(data==null){
                return ;
            }
            Common.openConfirm("确认要删除这些模板类?",function(){
            var ids =Common.concatBatchId(data,"id");
            temApi.del(ids,function(){
                Common.info("删除成功");
                    dataReload();
                })
            })
        }
    }
    exports('del',view);
	
});