SmartStorage/apis/http.js

46 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class HttpConfig{
/*
演示基地址
authPath = 'http://192.168.0.14:21624/auth'
systemPath = 'http://192.168.0.14:21624/system'
basePath = 'http://192.168.0.14:21624/base'
*/
/*
调试ip
刘川10.40.92.209
*/
//基地址
authPath = 'http://10.40.92.209:9200'
systemPath = 'http://10.40.92.209:9201'
basePath = 'http://10.40.92.209:9301'
// 短链
serviceUrl = {
login:{
code:'/sendCode',// 获取验证码
},
index: {
noticeCont: '/sysNotice/getList', // 获取公告内容
waitDo: '/app/getToDoList', // 获取待办事项
keyData: '/app/getCriticalData' // 获取关键数据
},
fetchMaterial: {
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表
},
exitMaterial: {
exitDeptList: '/back_apply/getbackUnit', // 获取退料单位,工程列表
exitMaterialList: '/back_apply/getbackList', // 获取机具退料列表
exitMaterialDetail: '/back_apply/view' ,// 获取退料设备详情
subExitMaterial: '/back_apply/upload', // 提交退料清单
delMaterial: '/back_apply/del', // 删除退料申请
newExitList: '/back_apply/addBackTask', // 新建退料任务单
selectMaterial: '/back_apply/materialList', // 退料物料选择
},
exitExam: {
exitExamList: '/back_apply/examineList', // 获取退料审核列表
exitExamDetail: '/back_apply/examineView', // 获取退料审核明细
subExitExam: '/back_apply/audit', // 提交单个审核
}
}
}
export default new HttpConfig()