import req from "@/request.js"; const portal = window.context.portal; export default { // 水情水库测站下拉 getStnms(data, cb) { req.post(portal + `/biz/water/monitor/findRsvrList`, data).then(rep => { cb(rep.data); }); }, // 水情水库水位站分页 ListGet(data, cb) { req.post(portal + `/biz/water/monitor/rsvrQuery`, data).then(rep => { cb(rep.data); }); }, // 水情水库水位站名下拉 getRsnm(data, cb) { req.post(portal + `/att/res/base/findAll`, data).then(rep => { cb(rep.data); }); }, // 水情水库数据导出 resDataDerived(data, cb) { req.post(portal + `/biz/water/monitor/exportRsvr`, data, 'blob').then(rep => { cb(rep.data); }); }, // 水情河道测站下拉 getStcd(data, cb) { req.post(portal + `/biz/water/monitor/findRiverList`, data).then(rep => { cb(rep.data); }); }, // 水情河道水位站分页 ListGets(data, cb) { req.post(portal + `/biz/water/monitor/riverQuery`, data).then(rep => { cb(rep.data); }); }, // 河道水位河流下拉树 getrvName(data, cb) { req.post(portal + `/att/rv/base/findAll`, data).then(rep => { cb(rep.data); }); }, // 水情河道数据导出 riverDataDerived(data, cb) { req.post(portal + `/biz/water/monitor/exportRiver`, data, 'blob').then(rep => { cb(rep.data); }); }, // 行政区查询接口 getbasAdName(data, cb) { req.post(portal + `/sys/sysAreas/v1/townTree`, data).then(rep => { cb(rep.data); }); }, // 河道测站下拉 getStcd(data, cb) { req.post(portal + `/biz/water/monitor/findRiverList`, data).then(rep => { cb(rep.data); }); }, //水库曲线图 getRESChartsList(data, cb) { req.post(portal + `/biz/monitor/curve/rsvrLatestList`, data).then(rep => { cb(rep.data); }); }, //河道曲线图 getChartsList(data, cb) { req.post(portal + `/biz/monitor/curve/riverLatestList`, data).then(rep => { cb(rep.data); }); }, }