
import axios from 'axios'

export const wsuri = 'ws://localhost:8247//WebMoudule//websocket'
export const opname = 'SCADAMain' // TOBS??SCADAMain?MES|Current|opName|电流^电压

export const getPayToken = 'http://192.168.199.237:8001/submit/MESgetToken.ashx' // token地址
const service = axios.create({
  baseURL: window.dt_Config.serverAddress,
  // baseURL: 'http://localhost:8402/submit/MESCommonBase.ashx',
  // baseURL: 'http://localhost:8403/submit/MESCommonBase.ashx',
  timeout: 1500000 // 请求超时时间
})
export default service
axios.defaults.headers.post['Content-Type'] = 'application/json'
export const ExcelDownLoad = window.dt_Config.serverAddress // 导出excel
// export const ExcelDownLoad = 'http://localhost:8402/submit/MESCommonBase.ashx' // 导出excel
// export const ExcelDownLoad = 'http://localhost:8403/submit/MESCommonBase.ashx' // 导出excel
// export const ExcelDownLoad = 'http://124.220.32.217:8001/submit/MESCommonBase.ashx' // 导出excel

export const serviceDT_Process = axios.create({
  baseURL: `http://127.0.0.1:41181/api/GetPositionData`,
  // baseURL: `http://192.168.192.62:41181/api/GetPositionData`,
  // baseURL: `http://124.220.32.217:41181/api/GetPositionData`,
  timeout: 1500000, // 请求超时间 default service,
  method: 'GET'
})
