import axios from 'axios'

// 创建axios实例
const service = axios.create({
  baseURL: `http://124.220.15.242:8250/submit/MESCommonBase.ashx`,
  // baseURL: `http://119.45.113.185:8010/submit/MESCommonBase.ashx`,
  // baseURL: `http://120.26.210.14:8060/submit/MESCommonBase.ashx`,
  // baseURL: `http://192.168.1.171:8006/submit/MESCommonBase.ashx`,
  // baseURL: `http://192.168.1.188:8047/submit/MESCommonBase.ashx`,
  timeout: 1500000 // 请求超时时间
})

export default service
axios.defaults.headers.post['Content-Type'] = 'application/json'
export const uploadFile = 'http://119.45.113.185:8010/submit/uploadFile.ashx'
export const uploadFile2 = 'http://119.45.113.185:8010/submit/uploadFile2.ashx'
export const uploadFile3 = 'http://119.45.113.185:8010/submit/uploadFile3.ashx'
export const uploadFile4 = 'http://119.45.113.185:8010/submit/uploadFile4.ashx'
export const upload = 'http://119.45.113.185:8010/submit/uploadFile.ashx'
export const ImageUrl = 'http://119.45.113.185:8010/webpage/file/'
export const MESDownloadFile = 'http://119.45.113.185:8010/submit/MESDownloadFile.ashx'
export const MESUploadFileSpotCheck = 'http://119.45.113.185:8010/submit/MESUploadFileSpotCheck.ashx'
export const MESUploadFileEquipment = 'http://119.45.113.185:8010/submit/MESUploadFileEquipment.ashx'
export const action = 'http://119.45.113.185:8010/submit/MESCommonBase.ashx'
export const ExcelDownLoad = 'http://119.45.113.185:8010/submit/MESCommonBase.ashx' // 导出excel

// export const uploadFile = 'http://120.26.210.14:8060/submit/uploadFile.ashx'
// export const uploadFile2 = 'http://120.26.210.14:8060/submit/uploadFile2.ashx'
// export const uploadFile3 = 'http://120.26.210.14:8060/submit/uploadFile3.ashx'
// export const uploadFile4 = 'http://120.26.210.14:8060/submit/uploadFile4.ashx'
// export const upload = 'http://120.26.210.14:8060/submit/uploadFile.ashx'
// export const ImageUrl = 'http://120.26.210.14:8060/webpage/file/'
// export const MESDownloadFile = 'http://120.26.210.14:8060/submit/MESDownloadFile.ashx'
// export const MESUploadFileSpotCheck = 'http://120.26.210.14:8060/submit/MESUploadFileSpotCheck.ashx'
// export const MESUploadFileEquipment = 'http://120.26.210.14:8060/submit/MESUploadFileEquipment.ashx'
// export const action = 'http://120.26.210.14:8060/submit/MESCommonBase.ashx'
// export const ExcelDownLoad = 'http://120.26.210.14:8060/submit/MESCommonBase.ashx' // 导出excel

