import req from "@/request.js"; const portal = window.context.portal; export default { //新增 addSave(data, cb) { req.post(portal + `/biz/warn/stationStll/create`, data).then(rep => { cb(rep.data); }); }, //水库 findAll(data, cb) { req.post(portal + `/att/res/base/findAll`, data).then(rep => { cb(rep.data); }); }, //分页 ListGet(data, cb) { req.post(portal + `/biz/warn/stationStll/query`, data).then(rep => { cb(rep.data); }); }, // 修改 detailId(id, cb) { req.get(portal + `/biz/warn/stationStll/get/` + id).then(rep => { cb(rep.data); }); }, // 位移确认修改 upData(data, cb) { req.post(portal + `/biz/warn/stationStll/updateById`, data).then(rep => { cb(rep.data); }); }, //位移删除 remove(ids, cb) { req.get(portal + `/biz/warn/stationStll/deleteByIds?ids=` + ids).then(rep => { cb(rep.data); }); }, // 关联测站 staion(data,cb){ req.post(portal+'/biz/station/base/findAll',data).then(rep=>{ cb(rep.data) }) } }