import req from "@/request.js"; const portal = window.context.portal; export default { //获取测站下拉列表 getTree(data, cb) { req.post(portal + `/biz/warnInfo/getTree`, data).then(rep => { cb(rep.data); }); }, //分页查询人工记录 getListTable(data, cb) { req.post(portal + `/biz/warnInfo/artificialQuery`, data).then(rep => { cb(rep.data) }) }, //新增 addSave(data, cb) { req.post(portal + `/biz/warnInfo/create`, data).then(rep => { cb(rep.data) }) }, // 修改 detailId(id, cb) { req.get(portal + `/biz/warnInfo/get/` + id).then(rep => { cb(rep.data); }); }, // 确认修改 upData(data, cb) { req.post(portal + `/biz/warnInfo/updateById`, data).then(rep => { cb(rep.data); }); }, //删除 remove(ids, cb) { req.get(portal + `/biz/warnInfo/deleteByIds?ids=` + ids).then(rep => { cb(rep.data); }); }, }