123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- 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 getGfstation(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/base/gfstation",
- 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 getWtByGfstation(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "base/inverter",
- 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 getWindFittingTree(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/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/process/show",
- 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: "/delete/files",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- //光伏准备表单
- export function lightPrepareExcelShow(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/new/photovol/datas",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- // 光伏准备树
- export function getLightPrepareTree(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/new/photovol/allfilelist",
- method: "get",
- headers,
- timeout,
- });
- }
- // 光伏准备表格数据
- export function getLightPrepareData(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/new/photovol/filelist",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- // 风电拟合表单
- export function getWindFittingExcelShow(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/curve",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- // 风电拟合表格
- export function getWindFittingShow(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/show",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindFittingData(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/data",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindFittingFilter(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/filter",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindFittingAlarms(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/alarms",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindRoses(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/wind/roses",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindDeviationRatio(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/wind/deviation/ratio",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindFittingLine(data, timeout = 5000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/line",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindFittingTime(data, timeout = 15000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/power/fitting/time",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
- export function getWindRatedPower(data, timeout = 15000) {
- return request({
- baseURL: process.env.VUE_APP_TEST,
- url: "/rated/power",
- method: "get",
- params: data,
- headers,
- timeout,
- });
- }
|