Commit b263a38f authored by 罗新东's avatar 罗新东

修改请求根路径

parent a366dceb
Pipeline #8098 passed with stage
in 5 minutes and 10 seconds
import request from '@/utils/axios'
import { getFun, postFun } from "@/service/table.js";
// 隐患上报模块
// 请求新增表单数据信息的
export function getFormList(url, params) {
return request({
url: url,
method: 'get',
params
})
return getFun(url,params);
}
// 隐患类型
export function postHdTyp(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患项目名称
export function postHdName(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患单编号和隐患级别
export function postHdInventories(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险源带出来的字段
export function postHdRiskSource(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患整改人接口
export function postHdShowPeople(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患上报保存接口
export function postHdReportAdd(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患上报已退回列表
export function dangerReturn(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患上报已退回删除
export function dangerReturnDel(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患上报已退回 回显所有数据接口
export function dangerReturnEcho(url, data) {
return request({
url: url,
method: 'get',
data
})
return getFun(url,data);
}
// 隐患上报已退回 保存接口
export function dangerReturnAdd(url, data) {
return request({
url: url,
method: 'get',
data
})
return getFun(url,data);
}
// 隐患确认模块
// 隐患确认列表
export function dangerConfirm(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患确认form表单列表数据
export function getConfirmFormList(url, params) {
return request({
url: url,
method: 'get',
params
})
return getFun(url,params);
}
// 隐患确认提交
export function dangerConSub(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患整改模块
// 隐患整改列表
export function dangerRect(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患整改 有退回原因的
export function dangerRectReturn(url, params) {
return request({
url: url,
method: 'get',
params
})
return getFun(url,params);
}
// 隐患整改保存 没有退回原因
export function dangerRectAdd(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 整改复查模块
// 整改复查列表
export function dangerReview(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 整改复查保存
export function dangerReviewAdd(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患台账模块
export function dangerStandBook(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患各种台账详情模块
export function standBookDetail(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//重大隐患台账
export function majorList(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//重大隐患添加
export function majorAdd(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//企业级督办
export function superviseList(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//项目级督办
export function superviseSABlist(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//项目级督办添加
export function superviseAdd(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//延期审批
export function delayList(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//延期审批退回回显
export function delayReturn(url, data) {
return request({
url: url,
method: 'get',
data
})
return getFun(url,data)
}
//延期审批添加
export function delayAdd(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
//延期审批添加
export function delayEdit(url, data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 隐患整改
export function list1(data) {
return request({
url:"/rectification/list1",
method: 'post',
data
})
return postFun("/rectification/list1",data)
}
// 隐患整改已退回
export function list2(data) {
return request({
url:"/rectification/list2",
method: 'post',
data
})
return postFun("/rectification/list2",data)
}
// 我的上报接口
export function myHDList(data){
return request({
url:'/hdreport/myHDList',
method:'post',
data
})
return postFun('/hdreport/myHDList',data)
}
export function deal(url,data){
return request({
url,
method:'post',
data
})
return postFun(url,data);
}
......
import request from '@/utils/axios'
import { getFun, postFun } from "@/service/table.js";
/*get请求*/
// export function getFun(url,params) {
// return request({
......@@ -12,92 +12,46 @@ import request from '@/utils/axios'
//消息信息列表
export function postMessgaelist(data) {
return request({
url: '/messageInfo/list',
method: 'post',
data
})
return postFun('/messageInfo/list',data)
}
//未读消息变为已读
export function noticeRemove(data) {
return request({
url: '/messageInfo/changeRead',
method: 'post',
data
})
return postFun('/messageInfo/changeRead',data)
}
//清除未读消息列表
export function removeAllMessgae(data) {
return request({
url: "/messageInfo/changeStatus",
method: 'get',
data
})
return postFun( "/messageInfo/changeStatus",data)
}
//删除已读消息
export function removeMessgae(data) {
return request({
url: "/messageInfo/remove",
method: 'post',
data
})
return postFun("/messageInfo/remove",data)
}
//待办事项列表
export function waitList(data) {
return request({
url: '/hse/app-api/'+"/backlogInfo/list",
method: 'post',
data
})
return postFun("/backlogInfo/list",data)
}
//未读消息数
export function badgeNumber(data) {
return request({
url: '/hse/app-api/'+"/backlogInfo/unReadCount",
method: 'get',
data
})
return getFun("/backlogInfo/unReadCount",data);
}
//删除已办事项
export function removeWaitList(data) {
return request({
url: "/backlogInfo/remove",
method: 'post',
data
})
return postFun("/backlogInfo/remove",data)
}
//通知公告列表
export function notificationList(data) {
return request({
url: "/noticeInfo/list",
method: 'post',
data
})
return postFun("/noticeInfo/list",data)
}
//清除通知公告未读
export function removeAllNotification(data) {
return request({
url: "/noticeInfo/changeStatus",
method: 'get',
data
})
return getFun("/noticeInfo/changeStatus",data)
}
//清除通知未读改为已读
export function readNotification(data) {
return request({
url: "/noticeInfo/changeRead",
method: 'post',
data
})
return postFun("/noticeInfo/changeRead",data)
}
//删除已读通知列表
export function removeNotification(data) {
return request({
url: "/noticeInfo/remove",
method: 'post',
data
})
return postFun("/noticeInfo/remove",data)
}
\ No newline at end of file
import request from '@/utils/axios'
// import request from '@/utils/axios'
import { getFun, postFun } from "@/service/table.js";
// 风险上报模块
// 请求新增表单数据信息的
export function getFormList(url,params) {
return request({
url: url,
method: 'get',
params
})
return getFun(url,params);
}
// 风险源
export function postHdSource(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 事故类型
export function postHdType(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 各种措施
export function postMeasures(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 主责人员
export function postHdPeople(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险上报提交
export function postReAdd(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险上报矩阵式定级
export function postMatrix(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 矩阵式定级判读风险等级的接口
export function postCalRiskLevel(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险确认列表
export function postriskConList(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险确认保存
export function postriskConAdd(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险退回列表
export function postriskConReturn(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险退回列表 删除
export function postriskConReDel(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险退回重新上报 退回原因接口
export function postriskConiCause(url,data) {
return request({
url: url,
method: 'get',
data
})
return getFun(url,data);
}
// 风险台账
export function postriskBook(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险详情
export function postriskDetail(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
// 风险详情
export function postRiskShowMeasures(url,data) {
return request({
url: url,
method: 'post',
data
})
return postFun(url,data);
}
/*接口对接1 START*/
......
......@@ -6,26 +6,26 @@
* Copyright (c) 2020 陈尼克 all rights reserved.
* 版权所有,侵权必究!
*/
import { getFun, postFun } from "@/service/table.js";
import axios from '../utils/axios'
export function getUserInfo() {
return axios.get('/user/info');
return getFun('/user/info')
}
export function EditUserInfo(params) {
return axios.put('/user/info', params);
return axios.put('/hse/app-api/user/info', params);
}
export function login(params) {
return axios.post('/user/login', params);
return postFun('/user/login', params);
}
export function logout() {
return axios.post('/user/logout')
return postFun('/user/logout')
}
export function register(params) {
return axios.post('/user/register', params);
return postFun('/user/register', params);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment