123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- import axios from "axios";
- import request from "@/tools/request";
- const headers = {
- isPower: true,
- };
- export function getStation(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/base/station",
- method: "get",
- headers,
- timeout,
- });
- }
- export function getWtByStation(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/base/windturbine",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getPrepareTree(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/prepare/tree",
- method: "get",
- headers,
- timeout,
- });
- }
- export function getProcessTree(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/process/tree",
- method: "get",
- headers,
- timeout,
- });
- }
- export function getPrepareExcelShow(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/prepare/show",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getProcessExcelShow(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/prepare/show",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getPrepareData(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/prepare/data",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getProcessData(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/prepare/data",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function fittingCurveSave(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/curve/save",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function dataOptionDel(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/data/option/delete",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function filesDel(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/data/option/delete",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
|