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
24
25
/*访问后台的代码*/
layui.define([], function(exports) {
    var api={
            updateXzxUserVehicleInfo:function(form,userId,storageId,relId,callback){
                Lib.submitForm("/admin/xzxUserVehicleInfo/edit.json",form,{"userId":userId,"storageId":storageId,"relId":relId},callback)
            },
            addXzxUserVehicleInfo:function(form,userId,storageId,callback){
                Lib.submitForm("/admin/xzxUserVehicleInfo/add.json",form,{"userId":userId,"storageId":storageId},callback)
            },
            del:function(ids,callback){
                Common.post("/admin/xzxUserVehicleInfo/delete.json",{"ids":ids},function(){
                    callback();
                })
            }
            ,
            exportExcel:function(form,callback){
                var formPara = form.serializeJson();
                Common.post("/admin/xzxUserVehicleInfo/excel/export.json", formPara, function(fileId) {
                    callback(fileId);
                })
            }
        
    };
    exports('xzxUserVehicleInfoApi',api);
});