1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| import { $fysp } from '../index';
|
| export default {
| /**
| * 获取区域用户的监测设备和飞羽监管系统、飞羽环境系统的匹配记录
| */
| fetchDeviceMap(param) {
| return $fysp.post(`usermap/device`, param).then((res) => res.data);
| },
|
| /**
| * 搜索第三方设备
| */
| searchThirdPartyDevice(areaVo, keyword, page, perPage) {
| return $fysp
| .post(`usermap/searchThirdPartyDevice`, areaVo, {
| params: { keyword, page, perPage }
| })
| .then((res) => res.data);
| },
|
| insertOrUpdate(areaVo, deviceMap) {
| return $fysp
| .post(`usermap/insertOrUpdate`, { first: areaVo, second: deviceMap })
| .then((res) => res.data);
| }
| };
|
|