import req from "@/request.js"; const portal = window.context.portal; export default { // 雨量水雨情下拉 getStcd(data,cb) { req.post(portal + `/biz/station/base/findAll`,data).then(rep => { cb(rep.data); }); }, //雨量新增 addSave(data,cb) { req.post(portal + `/biz/warn/stationYl/create`,data).then(rep => { cb(rep.data); }); }, //字典 getSys(data,cb) { req.post(portal + `/sys/sysDictionary/v1/queryDictItemsByCode`,data).then(rep => { cb(rep.data); }); }, //雨量分页 ListGet(data,cb) { req.post(portal + `/biz/warn/stationYl/query`,data).then(rep => { cb(rep.data); }); }, // 雨量修改 detailId(id,cb) { req.get(portal + `/biz/warn/stationYl/get/`+id).then(rep => { cb(rep.data); }); }, // 雨量确认修改 upData(data,cb) { req.post(portal + `/biz/warn/stationYl/updateById`,data).then(rep => { cb(rep.data); }); }, //雨量删除 remove(ids,cb) { req.get(portal + `/biz/warn/stationYl/deleteByIds?ids=`+ids).then(rep => { cb(rep.data); }); }, // 雨量设施下拉 getgqList(data,cb) { req.post(portal + `/biz/station/base/findAll`,data).then(rep => { cb(rep.data); }); }, }