123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- import request from "../utils/request";
- const getwindpowerVal=()=>{
- return request({
- baseURL: process.env.VUE_APP_API,
- url:`/windpowerw/getwindpowerVal.action`,
- method:"get"
- })
- }
- const getwindpowerLine=()=>{
- return request({
- baseURL: process.env.VUE_APP_API,
- url:`/windpowerw/getwindpowerLine.action`,
- method:"get"
- })
- }
- const getStation=()=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/wplist`,
- method:"get"
- })
- }
- const getGroupList=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/wtlist?wpid=${data.wpid}`,
- method:"get"
- })
- }
- const getTableData=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/function?wpid=${data.wpid}&beginDate=${data.beginDate}&endDate=${data.endDate}`,
- method:"get"
- })
- }
- const getNature=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/nature?wpid=${data.wpid}&beginDate=${data.beginDate}&endDate=${data.endDate}`,
- method:"get"
- })
- }
- const getShutdownevent=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/shutdownevent?wpid=${data.wpid}&beginDate=${data.beginDate}&endDate=${data.endDate}&type=${data.type}`,
- method:"get"
- })
- }
- const natureReal=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/natureReal?wpid=${data.wpid}`,
- method:"get"
- })
- }
- const freedomList=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/freedomList?wtid=${data.wtid}&beginDate=${data.beginDate}&endDate=${data.endDate}&uniformcodes=${data.uniformcodes}&interval=${data.interval}`,
- method:"get"
- })
- }
- const wtls=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/wtls`,
- method:"get"
- })
- }
- const points=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`/ghost/points`,
- method:"get"
- })
- }
- const faultrecord=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/faultrecord?wpid=${data.wpid}&wtid=${data.wtid}&begin=${data.begin}&end=${data.end}&faulttype=${data.faulttype}&type=${data.type}`,
- method:"get"
- })
- }
- const faultrecordAdd=(pairs)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/faultrecord`,
- method:"post",
- data:pairs
- })
- }
- const faultrecordEdit=(pairs)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/faultrecord`,
- method:"put",
- data:pairs
- })
- }
- const faultrecordDel=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/faultrecord/${data.id}`,
- method:"delete"
- })
- }
- const mainrecord=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/mainrecord?wpid=${data.wpid}&wtid=${data.wtid}&begin=${data.begin}&end=${data.end}&type=${data.type}`,
- method:"get"
- })
- }
- const mainrecordAdd=(pairs)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/mainrecord`,
- method:"post",
- data:pairs
- })
- }
- const mainrecordEdit=(pairs)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/mainrecord`,
- method:"put",
- data:pairs
- })
- }
- const mainrecordDel=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/mainrecord/${data.id}`,
- method:"delete"
- })
- }
- const getLines = (data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/getLines?wpid=${data.wpid}`,
- method:"get"
- })
- }
- const getslStatus = (data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/getslStatus`,
- method:"get"
- })
- }
- const involved = (data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/involved?wpid=${data.wpid}&begin=${data.begin}&end=${data.end}&type=${data.type}`,
- method:"get"
- })
- }
- const involvedAdd=(pairs)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/involved`,
- method:"post",
- data:pairs
- })
- }
- const involvedEdit=(pairs)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/involved`,
- method:"put",
- data:pairs
- })
- }
- const involvedDel=(data)=>{
- return request({
- baseURL: process.env.VUE_APP_APIs,
- url:`ghost/involved/${data.id}`,
- method:"delete"
- })
- }
- export default {
- getwindpowerVal,
- getwindpowerLine,
- getStation,
- getTableData,
- getNature,
- getShutdownevent,
- natureReal,
- freedomList,
- wtls,
- points,
- faultrecord,
- faultrecordAdd,
- faultrecordEdit,
- faultrecordDel,
- mainrecord,
- mainrecordAdd,
- mainrecordEdit,
- mainrecordDel,
- getGroupList,
- getLines,
- getslStatus,
- involved,
- involvedAdd,
- involvedEdit,
- involvedDel,
- };
|