Helius
2021-06-16 5728be2af515b2200e782aa201ca5d4d67d9ea47
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', '${entity.code}Api'], function(exports) {
    var ${entity.code}Api = layui.${entity.code}Api;
    var table=layui.table;
    var view = {
        init:function(){
        },
        delBatch:function(){
            var data = Common.getMoreDataFromTable(table,"${entity.code}Table");
            if(data==null){
                return ;
            }
            Common.openConfirm("确认要删除这些${entity.displayName}?",function(){
            var ids =Common.concatBatchId(data,"${entity.idAttribute.name}");
            ${entity.code}Api.del(ids,function(){
                Common.info("删除成功");
                    dataReload();
                })
            })
        }
    }
    exports('del',view);
    
});