longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
import axios from "axios";
 
export default {
    /**
     * 获取省
     * @returns {AxiosPromise}
     */
    province() {
        return axios({
            method: "post",
            url: 'PowerInfAction_power_getProvincesContainBatt',
            data: null
        });
    },
    /**
     * 获取市
     * @param data {stationName1: ""}
     * @returns {AxiosPromise}
     */
    city(data) {
        return axios({
            method: "post",
            url: 'PowerInfAction_power_getCitiesContainBatt',
            data: 'json='+JSON.stringify(data)
        });
    },
    /**
     * 获取区县
     * @param data {stationName1:“”, stationName2: ""}
     * @returns {AxiosPromise}
     */
    county(data) {
        return axios({
            method: "post",
            url: 'PowerInfAction_power_getDistrictsContainBatt',
            data: 'json='+JSON.stringify(data)
        });
    },
    getWeather(data) {
        return axios({
            method: "post",
            url: 'WeatherAction_weather_get',
            data: 'json='+JSON.stringify(data)
        });
    },
}