import req from "@/request.js"; const portal = window.context.portal; export default { // 水库下拉框 getResName(data, cb) { req.post(portal + `/att/res/base/findAll`, data).then(rep => { cb(rep.data); }); }, //水库巡检管理 ListGet(data,cb) { req.post(portal + `/dsm/ins/inin/query`,data).then(rep => { cb(rep.data); }); }, //水库巡检统计 statisticsList(data,cb) { req.post(portal + `/dsm/ins/inin/statistical`,data).then(rep => { cb(rep.data); }); }, detailId(id,cb) { req.get(portal + `/dsmInsException/exception/get/`+id).then(rep => { cb(rep.data); }); }, structureList(id,cb){ req.post(portal + `/dsm/ins/result/structureList?inId=`+id).then(rep => { cb(rep.data); }); }, getInsResult(id,cb){ req.get(portal + `/dsm/ins/inin/getInsResult/`+id).then(rep => { cb(rep.data); }); }, saveBatch(data,cb){ req.post(portal + `/dsmInsException/exception/save`,data).then(rep => { cb(rep.data); }); } }