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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| import axios from 'axios'
|
| export default {
| /**
| * 查询所有的机房
| * 无参
| */
| searchAll() {
| return axios({
| method: 'post',
| url: 'BattInfAction_serchByStationName',
| data: 'bif.StationName1=',
| });
| },
| /**
| * 查询所有的机房(电池组和电源)
| * 无参
| */
| searchAllStations() {
| return axios({
| method: 'post',
| url: 'User_battgroup_baojigroupAction!getStations',
| data: null,
| });
| },
| /**
| * 根据包机组id查询包机机房
| *
| * @param {[String,Number]} id 包机组id
| *
| */
| searchBaojiStation(id) {
| return axios({
| method: 'post',
| url: 'User_battgroup_baojigroupAction!getAddedStations',
| data: "json="+JSON.stringify({
| baoji_group_id: id
| }),
| });
| },
| /**
| * 根据包机组id查询包机机房
| *
| * @param {[String,Number]} id 包机组id
| *
| */
| searchBaojiHome(id) {
| return axios({
| method: 'post',
| url: 'User_battgroup_baojigroupAction!serchByInfo',
| data: "us.baoji_group_id="+id,
| });
| }
| }
|
|