import req from "@/request.js"; const portal = window.context.portal; export default { // 新增 addSave(data,cb) { req.post(portal + `/biz/warn/station/hdsw/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/station/base/get/?id=`+id).then(rep => { cb(rep.data); }); }, // 分页 ListGet(data,cb) { req.post(portal + `/biz/warn/station/hdsw/query`,data).then(rep => { cb(rep.data); }); }, // 修改 detailId(id,cb) { req.get(portal + `/biz/warn/station/hdsw/get/`+id).then(rep => { cb(rep.data); }); }, // 确认修改 upData(data,cb) { req.post(portal + `/biz/warn/station/hdsw/updateById`,data).then(rep => { cb(rep.data); }); }, //删除 remove(ids,cb) { req.get(portal + `/biz/warn/station/hdsw/deleteByIds?ids=`+ids).then(rep => { cb(rep.data); }); }, // 行政区查询接口 getbasAdName(data,cb) { req.post(portal + `/sys/sysAreas/v1/tree`,data).then(rep => { cb(rep.data); }); }, // 责任人组织 getorgId(data,cb) { req.post(portal + `/biz/manager/org/getTree`,data).then(rep => { cb(rep.data); }); }, getpersonId(data,cb) { req.post(portal + `/biz/managerOrg/person/findAll`,data).then(rep => { cb(rep.data); }); }, // 获取单位树 getrgTree(data,cb) { req.post(portal + `/biz/manager/org/manageOrgTree`,data).then(rep => { cb(rep.data); }); }, // 河流下拉 getRvcds(data,cb) { req.post(portal + `/att/rv/base/findAll`,data).then(rep => { cb(rep.data); }); }, // 流域下拉 getCtcds(data,cb) { req.post(portal + `/att/bas/base/findAll`,data).then(rep => { cb(rep.data); }); }, // 设备获取下拉 getdeviceIds(data,cb) { req.post(portal + `/att/device/base/findAll`,data).then(rep => { cb(rep.data); }); }, //水与情设施下拉 getStnm(data,cb){ req.post(portal + `/biz/station/base/findAll`,data).then(rep => { cb(rep.data); }); }, // 获取弹层列表 getList(data,cb) { req.post(portal + `/biz/station/base/getTree`,data).then(rep => { cb(rep.data); }); }, // 绑定对象接口 getPush(data,cb) { req.post(portal + `/biz/station/base/bind`,data).then(rep => { cb(rep.data); }); }, }