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 + `/bizwarn/stationSy/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 + `/bizwarn/stationSy/query`,data).then(rep => { cb(rep.data); }); }, // 渗压修改 detailId(id,cb) { req.get(portal + `/bizwarn/stationSy/get/`+id).then(rep => { cb(rep.data); }); }, // 渗压确认修改 upData(data,cb) { req.post(portal + `/bizwarn/stationSy/updateById`,data).then(rep => { cb(rep.data); }); }, //渗压删除 remove(ids,cb) { req.get(portal + `/bizwarn/stationSy/deleteByIds?ids=`+ids).then(rep => { cb(rep.data); }); }, // 渗压设施下拉 getgqList(data,cb) { req.post(portal + `/biz/warn/stationWy/getTree?sttp=`+data).then(rep => { cb(rep.data); }); }, }