import req from "@/request.js"; const portal = window.context.portal; export default { // 渗压工勤下拉 getStcd(data,cb) { req.post(portal + `/biz/station/gq/findAll`,data).then(rep => { cb(rep.data); }); }, //渗流新增 addSave(data,cb) { req.post(portal + `/biz/warn/station/sl/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/station/sl/query`,data).then(rep => { cb(rep.data); }); }, // 渗流修改 detailId(id,cb) { req.get(portal + `/biz/warn/station/sl/get/`+id).then(rep => { cb(rep.data); }); }, // 渗流确认修改 upData(data,cb) { req.post(portal + `/biz/warn/station/sl/updateById`,data).then(rep => { cb(rep.data); }); }, //渗流删除 remove(ids,cb) { req.get(portal + `/biz/warn/station/sl/deleteByIds?ids=`+ids).then(rep => { cb(rep.data); }); }, // 渗流设施下拉 getgqList(data,cb) { req.post(portal + `/biz/warn/stationWy/getTree`,data).then(rep => { cb(rep.data); }); }, }