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/stationWy/create`,data).then(rep => { cb(rep.data); }); }, //字典 getSys(data,cb) { req.post(portal + `/sys/sysDictionary/v1/queryDictItemsByCode`,data).then(rep => { cb(rep.data); }); }, //位移查看 detail(id,cb) { req.get(portal + `/biz/warn/stationWy/get/?id=`+id).then(rep => { cb(rep.data); }); }, //位移分页 ListGet(data,cb) { req.post(portal + `/biz/warn/stationWy/query`,data).then(rep => { cb(rep.data); }); }, // 位移修改 detailId(id,cb) { req.get(portal + `/biz/warn/stationWy/get/`+id).then(rep => { cb(rep.data); }); }, // 位移确认修改 upData(data,cb) { req.post(portal + `/biz/warn/stationWy/updateById`,data).then(rep => { cb(rep.data); }); }, //位移删除 remove(ids,cb) { req.get(portal + `/biz/warn/stationWy/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); }); }, }