fix : 修复实施图片
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const getArticle = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/article/list',
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
export const getArticleDetail = (articleId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/article/${articleId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addArticle= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/article/add',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const editArticle= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/article/update',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteArticle = (articleIds) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/article/${articleIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const getArticle = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/article/list',
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
export const getArticleDetail = (articleId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/article/${articleId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addArticle= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/article/add',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const editArticle= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/article/update',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteArticle = (articleIds) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/article/${articleIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
export const initPassword=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/init/password',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const editPassword=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/update/password',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const getAgentInfo=()=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/self/approval/agent',
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const editAgentInfo=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/self/approval/agent',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
export const initPassword=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/init/password',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const editPassword=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/update/password',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const getAgentInfo=()=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/self/approval/agent',
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const editAgentInfo=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/self/approval/agent',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getCacheOpt = (cacheKey) => {
|
||||
return request({
|
||||
url: '/admin/dict/data/option/'+ cacheKey,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export const getCacheType = (cacheKey) => {
|
||||
return request({
|
||||
url: '/admin/dict/data/type/'+ cacheKey,
|
||||
method: 'get',
|
||||
})
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getCacheOpt = (cacheKey) => {
|
||||
return request({
|
||||
url: '/admin/dict/data/option/'+ cacheKey,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export const getCacheType = (cacheKey) => {
|
||||
return request({
|
||||
url: '/admin/dict/data/type/'+ cacheKey,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const requestList = ( api, params, method = 'get' ) => {
|
||||
return request({
|
||||
url: api,
|
||||
method,
|
||||
params
|
||||
})
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const requestList = ( api, params, method = 'get' ) => {
|
||||
return request({
|
||||
url: api,
|
||||
method,
|
||||
params
|
||||
})
|
||||
}
|
||||
@@ -1,54 +1,54 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
//获取部门信息
|
||||
export const getDeptList = (params) => {
|
||||
return request({
|
||||
url: '/admin/dept',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取增加时的部门列表
|
||||
export const getDeptOption = () => {
|
||||
return request({
|
||||
url: '/admin/dept/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//获取修改时的部门列表
|
||||
export const getDeptExcludeOption = (deptId) => {
|
||||
return request({
|
||||
url: `/admin/dept/option/exclude/${deptId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//新增部门
|
||||
export const addDept = (data) => {
|
||||
return request({
|
||||
url: '/admin/dept',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//编辑部门
|
||||
export const editDept = (data) => {
|
||||
return request({
|
||||
url: '/admin/dept',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//查询部门详情
|
||||
export const getDeptDetail = (deptId) => {
|
||||
return request({
|
||||
url: `/admin/dept/${deptId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//删除部门
|
||||
export const deleteDept = (deptId) => {
|
||||
return request({
|
||||
url: `/admin/dept/${deptId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
//获取部门信息
|
||||
export const getDeptList = (params) => {
|
||||
return request({
|
||||
url: '/admin/dept',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取增加时的部门列表
|
||||
export const getDeptOption = () => {
|
||||
return request({
|
||||
url: '/admin/dept/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//获取修改时的部门列表
|
||||
export const getDeptExcludeOption = (deptId) => {
|
||||
return request({
|
||||
url: `/admin/dept/option/exclude/${deptId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//新增部门
|
||||
export const addDept = (data) => {
|
||||
return request({
|
||||
url: '/admin/dept',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//编辑部门
|
||||
export const editDept = (data) => {
|
||||
return request({
|
||||
url: '/admin/dept',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//查询部门详情
|
||||
export const getDeptDetail = (deptId) => {
|
||||
return request({
|
||||
url: `/admin/dept/${deptId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//删除部门
|
||||
export const deleteDept = (deptId) => {
|
||||
return request({
|
||||
url: `/admin/dept/${deptId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,107 +1,107 @@
|
||||
import request from '@/utils/request.js'
|
||||
import axios from "axios";
|
||||
import {getToken} from "@/utils/auth";
|
||||
|
||||
export const addAllocation = (data) => {
|
||||
return request({
|
||||
url:'/workflow/mosr/cost/allocation',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const addShare = (data) => {
|
||||
return request({
|
||||
url:'/workflow/mosr/cost/share',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const getAllocationDetail = (allocationId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/cost/allocation/info/${allocationId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getAllocationDetails = (allocationId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/cost/allocation/usr/detail/${allocationId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getAllocationSummaryDetails = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/collect',
|
||||
method: "get",
|
||||
params:params
|
||||
});
|
||||
};
|
||||
export const getAllocationProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getAllocationDetailList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/usr',
|
||||
method: "get",
|
||||
params:params
|
||||
});
|
||||
};
|
||||
export const getResearchUser = () => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/research',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getProjectOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/implementation/in/implementation/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const editAllocation = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/edit',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const applyCcSend = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cc/send',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteAllocation = (id) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/cost/allocation/${id}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
export const shareExportExcel = (allocationId) => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/cost/allocation/collect/${allocationId}`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export const shareDetailExport= (data) => {
|
||||
return axios.post(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/cost/share/export`,
|
||||
data, {
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
import axios from "axios";
|
||||
import {getToken} from "@/utils/auth";
|
||||
|
||||
export const addAllocation = (data) => {
|
||||
return request({
|
||||
url:'/workflow/mosr/cost/allocation',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const addShare = (data) => {
|
||||
return request({
|
||||
url:'/workflow/mosr/cost/share',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const getAllocationDetail = (allocationId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/cost/allocation/info/${allocationId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getAllocationDetails = (allocationId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/cost/allocation/usr/detail/${allocationId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getAllocationSummaryDetails = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/collect',
|
||||
method: "get",
|
||||
params:params
|
||||
});
|
||||
};
|
||||
export const getAllocationProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getAllocationDetailList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/usr',
|
||||
method: "get",
|
||||
params:params
|
||||
});
|
||||
};
|
||||
export const getResearchUser = () => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/research',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getProjectOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/implementation/in/implementation/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const editAllocation = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cost/allocation/edit',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const applyCcSend = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/cc/send',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteAllocation = (id) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/cost/allocation/${id}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
export const shareExportExcel = (allocationId) => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/cost/allocation/collect/${allocationId}`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export const shareDetailExport= (data) => {
|
||||
return axios.post(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/cost/share/export`,
|
||||
data, {
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getHomeTaskInfo = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/process/task',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//获取已办数据
|
||||
export const getDoneTaskInfo = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/process/task/about',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//获取专项资金饼图数据
|
||||
export const getSpecialFundChart = () => {
|
||||
return request({
|
||||
url: '/workflow/home/page/statistic',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//获取首页四个统计数量
|
||||
export const getHomeStatistics = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/process/task/statistics',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getHomeTaskInfo = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/process/task',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//获取已办数据
|
||||
export const getDoneTaskInfo = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/process/task/about',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//获取专项资金饼图数据
|
||||
export const getSpecialFundChart = () => {
|
||||
return request({
|
||||
url: '/workflow/home/page/statistic',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//获取首页四个统计数量
|
||||
export const getHomeStatistics = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/process/task/statistics',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 获取list
|
||||
export const getIPBlackList = (params) => {
|
||||
return request({
|
||||
url: '/admin/ip/back',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export const addIPBlack = (data) => {
|
||||
return request({
|
||||
url: '/admin/ip/back',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export const editIPBlack = (data) => {
|
||||
return request({
|
||||
url: '/admin/ip/back',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export const delIPBlack = (ids) => {
|
||||
return request({
|
||||
url: '/admin/ip/back/'+ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 详情
|
||||
export const getIPBlackDetail = (id) => {
|
||||
return request({
|
||||
url: '/admin/ip/back/'+id,
|
||||
method: 'get'
|
||||
})
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 获取list
|
||||
export const getIPBlackList = (params) => {
|
||||
return request({
|
||||
url: '/admin/ip/back',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export const addIPBlack = (data) => {
|
||||
return request({
|
||||
url: '/admin/ip/back',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export const editIPBlack = (data) => {
|
||||
return request({
|
||||
url: '/admin/ip/back',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export const delIPBlack = (ids) => {
|
||||
return request({
|
||||
url: '/admin/ip/back/'+ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 详情
|
||||
export const getIPBlackDetail = (id) => {
|
||||
return request({
|
||||
url: '/admin/ip/back/'+id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -1,24 +1,24 @@
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
//查询登录日志
|
||||
export const getLoginLogList = (params) => {
|
||||
return request({
|
||||
url: "/log/login-info/list",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//查询登录日志详情
|
||||
export const getLoginLogDetail = (infoId) => {
|
||||
return request({
|
||||
url: `/log/login-info/${infoId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//删除登录日志
|
||||
export const deleteLoginLog = (infoIds) => {
|
||||
return request({
|
||||
url: `/log/login-info/${infoIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
//查询登录日志
|
||||
export const getLoginLogList = (params) => {
|
||||
return request({
|
||||
url: "/log/login-info/list",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//查询登录日志详情
|
||||
export const getLoginLogDetail = (infoId) => {
|
||||
return request({
|
||||
url: `/log/login-info/${infoId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//删除登录日志
|
||||
export const deleteLoginLog = (infoIds) => {
|
||||
return request({
|
||||
url: `/log/login-info/${infoIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
//查询操作日志
|
||||
export const getOperateLog = (params) => {
|
||||
return request({
|
||||
url: "/log/log/list",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//查询操作日志详情
|
||||
export const getOperateLogDetail = (operId) => {
|
||||
return request({
|
||||
url: `/log/log/${operId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//删除操作日志
|
||||
export const deleteOperateLog = (operIds) => {
|
||||
return request({
|
||||
url: `/log/log/${operIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
//查询操作日志
|
||||
export const getOperateLog = (params) => {
|
||||
return request({
|
||||
url: "/log/log/list",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//查询操作日志详情
|
||||
export const getOperateLogDetail = (operId) => {
|
||||
return request({
|
||||
url: `/log/log/${operId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//删除操作日志
|
||||
export const deleteOperateLog = (operIds) => {
|
||||
return request({
|
||||
url: `/log/log/${operIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getCodeImg = () => {
|
||||
return request({
|
||||
url: '/auth/captchaImage',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export const login = (data) => {
|
||||
return request({
|
||||
url: '/auth/login',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const switchAccount = (userId) => {
|
||||
return request({
|
||||
url: `/auth/switch/account/${userId}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
export const getUserInfo = () => {
|
||||
return request({
|
||||
url: '/auth/info',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
export const getAuthInfo = () => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/detail/info',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getCodeImg = () => {
|
||||
return request({
|
||||
url: '/auth/captchaImage',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export const login = (data) => {
|
||||
return request({
|
||||
url: '/auth/login',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const switchAccount = (userId) => {
|
||||
return request({
|
||||
url: `/auth/switch/account/${userId}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
export const getUserInfo = () => {
|
||||
return request({
|
||||
url: '/auth/info',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
export const getAuthInfo = () => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/detail/info',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
import request from '@/utils/request.js'
|
||||
export const getNoticeList = (params) => {
|
||||
return request({
|
||||
url: '/notice/notice',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getNoticeDetail = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notice/'+noticeId,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const addNotice = (data) => {
|
||||
return request({
|
||||
url: '/notice/notice',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const deleteNotice = (noticeId) => {
|
||||
return request({
|
||||
url: `/notice/notice/${noticeId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
export const getNoticeList = (params) => {
|
||||
return request({
|
||||
url: '/notice/notice',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getNoticeDetail = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notice/'+noticeId,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const addNotice = (data) => {
|
||||
return request({
|
||||
url: '/notice/notice',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const deleteNotice = (noticeId) => {
|
||||
return request({
|
||||
url: `/notice/notice/${noticeId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
import request from '@/utils/request.js'
|
||||
export const getNotifyList = (params) => {
|
||||
return request({
|
||||
url: '/notice/notify',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getNotifyDetail = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notify/'+noticeId,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//已读单个消息
|
||||
export const readSingleNotify = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notify/read/'+noticeId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
//已读全部消息
|
||||
export const readAllNotify = () => {
|
||||
return request({
|
||||
url: '/notice/notify/read/all',
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
//删除单个消息
|
||||
export const deleteSingleNotify = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notify/'+noticeId,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
//删除多个消息
|
||||
export const deleteMoreNotify = (noticeIds) => {
|
||||
return request({
|
||||
url: '/notice/notify/batch/'+noticeIds,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
import request from '@/utils/request.js'
|
||||
export const getNotifyList = (params) => {
|
||||
return request({
|
||||
url: '/notice/notify',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getNotifyDetail = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notify/'+noticeId,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//已读单个消息
|
||||
export const readSingleNotify = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notify/read/'+noticeId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
//已读全部消息
|
||||
export const readAllNotify = () => {
|
||||
return request({
|
||||
url: '/notice/notify/read/all',
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
//删除单个消息
|
||||
export const deleteSingleNotify = (noticeId) => {
|
||||
return request({
|
||||
url: '/notice/notify/'+noticeId,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
//删除多个消息
|
||||
export const deleteMoreNotify = (noticeIds) => {
|
||||
return request({
|
||||
url: '/notice/notify/batch/'+noticeIds,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import request from "@/utils/request.js";
|
||||
//查询在线用户
|
||||
export const getOnlineList = (params) => {
|
||||
return request({
|
||||
url: "/admin/online/user",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
//强制退出用户
|
||||
export const deleteOnlineUser= (tokenId) => {
|
||||
return request({
|
||||
url: '/admin/online/user/'+tokenId,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from "@/utils/request.js";
|
||||
//查询在线用户
|
||||
export const getOnlineList = (params) => {
|
||||
return request({
|
||||
url: "/admin/online/user",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
//强制退出用户
|
||||
export const deleteOnlineUser= (tokenId) => {
|
||||
return request({
|
||||
url: '/admin/online/user/'+tokenId,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,48 +1,48 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
//获取岗位信息
|
||||
export const getPostList = (params) => {
|
||||
return request({
|
||||
url: '/admin/post',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//查询岗位详情
|
||||
export const getPostDetail = (postId) => {
|
||||
return request({
|
||||
url: `/admin/post/info/${postId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//新增岗位
|
||||
export const addPost = (data) => {
|
||||
return request({
|
||||
url: '/admin/post',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//编辑岗位
|
||||
export const editPost = (data) => {
|
||||
return request({
|
||||
url: '/admin/post',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取select下拉框数据
|
||||
export const getSelectOption = () => {
|
||||
return request({
|
||||
url: '/admin/post/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//删除角色信息
|
||||
export const deletePost = (postId) => {
|
||||
return request({
|
||||
url: `/admin/post/${postId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
//获取岗位信息
|
||||
export const getPostList = (params) => {
|
||||
return request({
|
||||
url: '/admin/post',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//查询岗位详情
|
||||
export const getPostDetail = (postId) => {
|
||||
return request({
|
||||
url: `/admin/post/info/${postId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//新增岗位
|
||||
export const addPost = (data) => {
|
||||
return request({
|
||||
url: '/admin/post',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//编辑岗位
|
||||
export const editPost = (data) => {
|
||||
return request({
|
||||
url: '/admin/post',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//获取select下拉框数据
|
||||
export const getSelectOption = () => {
|
||||
return request({
|
||||
url: '/admin/post/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//删除角色信息
|
||||
export const deletePost = (postId) => {
|
||||
return request({
|
||||
url: `/admin/post/${postId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,128 +1,128 @@
|
||||
import request from '@/utils/request.js'
|
||||
import axios from "axios";
|
||||
import {getToken} from "@/utils/auth";
|
||||
|
||||
//需求征集
|
||||
export const getDemandInfo = (param) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement',
|
||||
method: "get",
|
||||
params: param
|
||||
});
|
||||
};
|
||||
export const filterRequirementName = (requirementName) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/match/${requirementName}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getWorkflowInfo = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getInfo = (requirementId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/info/${requirementId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFormInfo = (requirementId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/form/${requirementId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const agreeTask = (data) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/process/task/agree`,
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const rejectTask = (data) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/process/task/reject`,
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const addRequirement = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const resubmit = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const deleteFile = (fileId) => {
|
||||
return request({
|
||||
url: `/workflow/process/file/delete/${fileId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const downloadFile = (fileId) => {
|
||||
return request({
|
||||
url: '/workflow/process/file/download',
|
||||
method: "get",
|
||||
responseType:'blob',
|
||||
params:{
|
||||
fileId:fileId
|
||||
}
|
||||
});
|
||||
};
|
||||
export const getCompanyOption = () => {
|
||||
return request({
|
||||
url: '/admin/mosr/sub/company/companyOption',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const deleteDemand = (id) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/${id}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const getRequirementStatePerm = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/prem/state',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const downloadTemplate = (type) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/download/template',
|
||||
method: "get",
|
||||
responseType:'blob',
|
||||
params:{
|
||||
type:type
|
||||
}
|
||||
});
|
||||
};
|
||||
export const downloadTemplateZip = (typeList) => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/attachment/download/pack?typeList=${typeList}`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
},
|
||||
}
|
||||
);
|
||||
// return request({
|
||||
// url: '/workflow/mosr/attachment/download/pack',
|
||||
// method: "get",
|
||||
// responseType:'blob',
|
||||
// params:{
|
||||
// typeList:typeList
|
||||
// }
|
||||
// });
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
import axios from "axios";
|
||||
import {getToken} from "@/utils/auth";
|
||||
|
||||
//需求征集
|
||||
export const getDemandInfo = (param) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement',
|
||||
method: "get",
|
||||
params: param
|
||||
});
|
||||
};
|
||||
export const filterRequirementName = (requirementName) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/match/${requirementName}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getWorkflowInfo = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getInfo = (requirementId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/info/${requirementId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFormInfo = (requirementId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/form/${requirementId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const agreeTask = (data) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/process/task/agree`,
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const rejectTask = (data) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/process/task/reject`,
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const addRequirement = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const resubmit = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const deleteFile = (fileId) => {
|
||||
return request({
|
||||
url: `/workflow/process/file/delete/${fileId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const downloadFile = (fileId) => {
|
||||
return request({
|
||||
url: '/workflow/process/file/download',
|
||||
method: "get",
|
||||
responseType:'blob',
|
||||
params:{
|
||||
fileId:fileId
|
||||
}
|
||||
});
|
||||
};
|
||||
export const getCompanyOption = () => {
|
||||
return request({
|
||||
url: '/admin/mosr/sub/company/companyOption',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const deleteDemand = (id) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/${id}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const getRequirementStatePerm = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/prem/state',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const downloadTemplate = (type) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/download/template',
|
||||
method: "get",
|
||||
responseType:'blob',
|
||||
params:{
|
||||
type:type
|
||||
}
|
||||
});
|
||||
};
|
||||
export const downloadTemplateZip = (typeList) => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/attachment/download/pack?typeList=${typeList}`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
},
|
||||
}
|
||||
);
|
||||
// return request({
|
||||
// url: '/workflow/mosr/attachment/download/pack',
|
||||
// method: "get",
|
||||
// responseType:'blob',
|
||||
// params:{
|
||||
// typeList:typeList
|
||||
// }
|
||||
// });
|
||||
};
|
||||
|
||||
@@ -1,123 +1,123 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export const fileUp = (url, data) => {
|
||||
return request({
|
||||
url,
|
||||
method: 'post',
|
||||
data,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const requirementReported = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/reported',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
//需求汇总-征集名称关键词匹配
|
||||
export const getRequirementName = (requirementName) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/collect/project/match/${requirementName}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//需求汇总-项目名称关键词匹配
|
||||
export const getProjectName = (projectName) => {
|
||||
return request({
|
||||
url: `workflow/mosr/requirement/collect`,
|
||||
method: "get",
|
||||
params:{
|
||||
projectName:projectName
|
||||
}
|
||||
});
|
||||
};
|
||||
//获取需求上报 流程信息
|
||||
export const getProcessInfo = (specialFund) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/collect/process/${specialFund}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/collect/info/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const resubmitReported = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/collect/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const getCollectAttachment = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/collect/attachments',
|
||||
method: "get",
|
||||
params:params
|
||||
});
|
||||
};
|
||||
export const uploadCollectAttachment= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/collect/upload',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 年度计划
|
||||
export const addPlan= (data) => {
|
||||
return request({
|
||||
url: '/workflow/annual/plan',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const editPlan= (data) => {
|
||||
return request({
|
||||
url: '/workflow/annual/plan',
|
||||
method: "put",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getPlan= (annualPlanId) => {
|
||||
return request({
|
||||
url: `/workflow/annual/plan/info/${annualPlanId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const deletePlan= (annualPlanId) => {
|
||||
return request({
|
||||
url: `/workflow/annual/plan/${annualPlanId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const approvePlan= (data) => {
|
||||
return request({
|
||||
url: '/workflow/annual/plan/approve',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const getProjectOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/master',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const getRequirementOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request'
|
||||
|
||||
export const fileUp = (url, data) => {
|
||||
return request({
|
||||
url,
|
||||
method: 'post',
|
||||
data,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const requirementReported = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/reported',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
//需求汇总-征集名称关键词匹配
|
||||
export const getRequirementName = (requirementName) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/collect/project/match/${requirementName}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//需求汇总-项目名称关键词匹配
|
||||
export const getProjectName = (projectName) => {
|
||||
return request({
|
||||
url: `workflow/mosr/requirement/collect`,
|
||||
method: "get",
|
||||
params:{
|
||||
projectName:projectName
|
||||
}
|
||||
});
|
||||
};
|
||||
//获取需求上报 流程信息
|
||||
export const getProcessInfo = (specialFund) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/collect/process/${specialFund}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/requirement/collect/info/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const resubmitReported = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/collect/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const getCollectAttachment = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/collect/attachments',
|
||||
method: "get",
|
||||
params:params
|
||||
});
|
||||
};
|
||||
export const uploadCollectAttachment= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/collect/upload',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 年度计划
|
||||
export const addPlan= (data) => {
|
||||
return request({
|
||||
url: '/workflow/annual/plan',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const editPlan= (data) => {
|
||||
return request({
|
||||
url: '/workflow/annual/plan',
|
||||
method: "put",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getPlan= (annualPlanId) => {
|
||||
return request({
|
||||
url: `/workflow/annual/plan/info/${annualPlanId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const deletePlan= (annualPlanId) => {
|
||||
return request({
|
||||
url: `/workflow/annual/plan/${annualPlanId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const approvePlan= (data) => {
|
||||
return request({
|
||||
url: '/workflow/annual/plan/approve',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const getProjectOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/master',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export const getRequirementOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/requirement/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const searchFileList = (params) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/attachment/list`,
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const searchAllFileList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/all',
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const uploadFileList = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/upload',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const searchImplementationFileList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/implementation/list',
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const switchAttachmentState = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/attachment/switch',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const searchFileList = (params) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/attachment/list`,
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const searchAllFileList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/all',
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const uploadFileList = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/upload',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const searchImplementationFileList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/attachment/implementation/list',
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
export const switchAttachmentState = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/attachment/switch',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,240 +1,240 @@
|
||||
import request from '@/utils/request.js'
|
||||
import axios from "axios";
|
||||
import {getToken} from "@/utils/auth";
|
||||
//项目立项
|
||||
export const getApplyProcess = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/approval/initiation/process/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const filterProjectName = (projectName,targetState) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/approval/match/${projectName}/${targetState}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const projectApply = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/approval/initiation/apply',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getApplyDetail = (ProjectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/approval/info/${ProjectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const resubmitApply = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/approval/initiation/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getInitiationAttachment = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/approval/attachments',
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
//项目实施
|
||||
export const getCheckDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/implementation/info/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const resubmitCheck = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/implementation/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const projectCheck = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/implementation/initiation/check',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getProjectCheckProcess = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/implementation/process/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const addLedger = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/expense/ledger',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const getTags = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/attachment/option/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getTagList = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/file/tag/list`,
|
||||
method: "get",
|
||||
params:{
|
||||
projectId: projectId
|
||||
}
|
||||
});
|
||||
};
|
||||
export const addTag = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/file/tag/add',
|
||||
method: "post",
|
||||
data:data
|
||||
});
|
||||
};
|
||||
export const updateTag = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/file/tag/update',
|
||||
method: "post",
|
||||
data:data
|
||||
});
|
||||
};
|
||||
export const delTag = (tageId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/file/tag/${tageId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const getPhaseProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/phase/change/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const submitPhaseChange = (data) => {
|
||||
return request({
|
||||
url: '/workflow/phase/change',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getPhaseDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/phase/change/info/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getPhaseForm = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/phase/change/from/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const resubmitPhaseForm = (data) => {
|
||||
return request({
|
||||
url: '/workflow/phase/change/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
//项目归档
|
||||
export const getConclusionDetail = (ProjectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/filing/info/${ProjectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const resubmitConclusion = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const projectConclusion = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/project/entry',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getProjectConclusionProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//获取前置流程
|
||||
export const getPreProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/details/pre/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const updateLedger = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/expense/ledger/replenishment',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const searchUpdateLedgerData = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/expense/ledger/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//
|
||||
// export const searchUpdateLedgerData = (projectId) => {
|
||||
// return request({
|
||||
// url: '/workflow/mosr/expense/ledger/import',
|
||||
// method: "get"
|
||||
// });
|
||||
// };
|
||||
|
||||
export const exportExcel = (data) => {
|
||||
return axios.post(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/project/implementation/export`,
|
||||
data, {
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
//台账模板下载
|
||||
export const ledgerTemplateDownload = () => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/project/implementation/download/template`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
//费用明细模板下载
|
||||
export const costTemplateDownload = () => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/rd/expense/download/template`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
import axios from "axios";
|
||||
import {getToken} from "@/utils/auth";
|
||||
//项目立项
|
||||
export const getApplyProcess = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/approval/initiation/process/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const filterProjectName = (projectName,targetState) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/approval/match/${projectName}/${targetState}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const projectApply = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/approval/initiation/apply',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getApplyDetail = (ProjectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/approval/info/${ProjectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const resubmitApply = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/approval/initiation/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getInitiationAttachment = (params) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/approval/attachments',
|
||||
method: "get",
|
||||
params: params
|
||||
});
|
||||
};
|
||||
//项目实施
|
||||
export const getCheckDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/implementation/info/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const resubmitCheck = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/implementation/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const projectCheck = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/implementation/initiation/check',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getProjectCheckProcess = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/implementation/process/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const addLedger = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/expense/ledger',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const getTags = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/attachment/option/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getTagList = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/file/tag/list`,
|
||||
method: "get",
|
||||
params:{
|
||||
projectId: projectId
|
||||
}
|
||||
});
|
||||
};
|
||||
export const addTag = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/file/tag/add',
|
||||
method: "post",
|
||||
data:data
|
||||
});
|
||||
};
|
||||
export const updateTag = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/file/tag/update',
|
||||
method: "post",
|
||||
data:data
|
||||
});
|
||||
};
|
||||
export const delTag = (tageId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/file/tag/${tageId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
export const getPhaseProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/phase/change/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const submitPhaseChange = (data) => {
|
||||
return request({
|
||||
url: '/workflow/phase/change',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getPhaseDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/phase/change/info/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getPhaseForm = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/phase/change/from/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const resubmitPhaseForm = (data) => {
|
||||
return request({
|
||||
url: '/workflow/phase/change/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
//项目归档
|
||||
export const getConclusionDetail = (ProjectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/project/filing/info/${ProjectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const resubmitConclusion = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/resubmit',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const projectConclusion = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/project/entry',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const getProjectConclusionProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/project/filing/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//获取前置流程
|
||||
export const getPreProcess = () => {
|
||||
return request({
|
||||
url: '/workflow/details/pre/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const updateLedger = (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/expense/ledger/replenishment',
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const searchUpdateLedgerData = (projectId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/expense/ledger/${projectId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//
|
||||
// export const searchUpdateLedgerData = (projectId) => {
|
||||
// return request({
|
||||
// url: '/workflow/mosr/expense/ledger/import',
|
||||
// method: "get"
|
||||
// });
|
||||
// };
|
||||
|
||||
export const exportExcel = (data) => {
|
||||
return axios.post(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/project/implementation/export`,
|
||||
data, {
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
//台账模板下载
|
||||
export const ledgerTemplateDownload = () => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/project/implementation/download/template`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
//费用明细模板下载
|
||||
export const costTemplateDownload = () => {
|
||||
return axios.get(
|
||||
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/rd/expense/download/template`,
|
||||
{
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: getToken()
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,68 +1,68 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getTableList = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/table',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getDynamicTable = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/dynamic-table',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getTableDetail = (tableId) => {
|
||||
return request({
|
||||
url: `/code-gen/table/${tableId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export const previewCode = (tableId) => {
|
||||
return request({
|
||||
url: `/code-gen/table/preview/${tableId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export const deleteMoreTable = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/table',
|
||||
method: 'delete',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const deleteTable = (tableId) => {
|
||||
return request({
|
||||
url: `/code-gen/table/${tableId}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
export const importTable = (data) => {
|
||||
return request({
|
||||
url: "/code-gen/table/import-table",
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const editCodeGen = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/table',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const syncDatabase = (tableId) => {
|
||||
return request({
|
||||
url: '/code-gen/table/sync/'+tableId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getTableList = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/table',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getDynamicTable = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/dynamic-table',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getTableDetail = (tableId) => {
|
||||
return request({
|
||||
url: `/code-gen/table/${tableId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export const previewCode = (tableId) => {
|
||||
return request({
|
||||
url: `/code-gen/table/preview/${tableId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export const deleteMoreTable = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/table',
|
||||
method: 'delete',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const deleteTable = (tableId) => {
|
||||
return request({
|
||||
url: `/code-gen/table/${tableId}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
export const importTable = (data) => {
|
||||
return request({
|
||||
url: "/code-gen/table/import-table",
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const editCodeGen = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/table',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const syncDatabase = (tableId) => {
|
||||
return request({
|
||||
url: '/code-gen/table/sync/'+tableId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const getDataSourceList = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/data-source',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getDataSourceOption = () => {
|
||||
return request({
|
||||
url: '/code-gen/data-source/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getDataSourceOptionType=()=>{
|
||||
return request({
|
||||
url:'/code-gen/data-source/option/type',
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getDataSource = (dsId) => {
|
||||
return request({
|
||||
url: `/code-gen/data-source/${dsId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const addDataSource = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/data-source',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const editDataSource = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/data-source',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const deleteDataSource = (dsId) => {
|
||||
return request({
|
||||
url: `/code-gen/data-source/${dsId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const getDataSourceList = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/data-source',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getDataSourceOption = () => {
|
||||
return request({
|
||||
url: '/code-gen/data-source/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getDataSourceOptionType=()=>{
|
||||
return request({
|
||||
url:'/code-gen/data-source/option/type',
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getDataSource = (dsId) => {
|
||||
return request({
|
||||
url: `/code-gen/data-source/${dsId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const addDataSource = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/data-source',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const editDataSource = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/data-source',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const deleteDataSource = (dsId) => {
|
||||
return request({
|
||||
url: `/code-gen/data-source/${dsId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,52 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求校验规则表list
|
||||
export const getRegularList = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取校验规则表详情
|
||||
export const getRegularDetails = (regularId) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular/' + regularId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取校验规则选项列表
|
||||
export const getRegularOpt = (regularId) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增校验规则表
|
||||
export const addRegular = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改校验规则表
|
||||
export const editRegular = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除校验规则表
|
||||
export const delRegular =(regularId) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular/' + regularId,
|
||||
method: 'delete'
|
||||
})
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求校验规则表list
|
||||
export const getRegularList = (params) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取校验规则表详情
|
||||
export const getRegularDetails = (regularId) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular/' + regularId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取校验规则选项列表
|
||||
export const getRegularOpt = (regularId) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增校验规则表
|
||||
export const addRegular = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改校验规则表
|
||||
export const editRegular = (data) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除校验规则表
|
||||
export const delRegular =(regularId) => {
|
||||
return request({
|
||||
url: '/code-gen/rapid/regular/' + regularId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -1,36 +1,36 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const getResearchFundChart = (year) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/rd/home',
|
||||
method: 'get',
|
||||
params: {year:year}
|
||||
})
|
||||
}
|
||||
export const getResearchFundDetail = (rdFundId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/rd/${rdFundId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addResearchFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/rd/add',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const editResearchFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/rd/update',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteResearchFund = (rdFundIds) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/rd/${rdFundIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
export const getResearchFundChart = (year) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/rd/home',
|
||||
method: 'get',
|
||||
params: {year:year}
|
||||
})
|
||||
}
|
||||
export const getResearchFundDetail = (rdFundId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/rd/${rdFundId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addResearchFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/rd/add',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const editResearchFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/rd/update',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteResearchFund = (rdFundIds) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/rd/${rdFundIds}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,110 +1,110 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getRoleList = (params) => {
|
||||
return request({
|
||||
url: '/admin/role',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//查询角色option
|
||||
export const getRoleOption = () => {
|
||||
return request({
|
||||
url: '/admin/role/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const getTemRoleOption = () => {
|
||||
return request({
|
||||
url: '/admin/role/option/template',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//查询角色信息
|
||||
export const getRoleDetail = (roleId) => {
|
||||
return request({
|
||||
url: `/admin/role/${roleId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//根据菜单id获取分配的角色信息
|
||||
export const getRoleInfoByMenuId = (params) => {
|
||||
return request({
|
||||
url: '/admin/role/menu',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取排除在外的角色
|
||||
export const getRoleExcludeMenuId = (params) => {
|
||||
return request({
|
||||
url: '/admin/role/menu/list',
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 新增修改
|
||||
export const operate = (data) => {
|
||||
if(data.roleId) return editRole(data)
|
||||
return addRole(data)
|
||||
}
|
||||
|
||||
// 新增角色
|
||||
export const addRole = (data) => {
|
||||
return request({
|
||||
url: '/admin/role',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改角色
|
||||
export const editRole = (data) => {
|
||||
return request({
|
||||
url: '/admin/role',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//解除当前角色对应的所有菜单的绑定关系
|
||||
export const unbindAllRole = (menuId) => {
|
||||
return request({
|
||||
url: '/admin/role/all/unbind/menu',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: menuId
|
||||
}
|
||||
})
|
||||
}
|
||||
// 解除角色与菜单之间的绑定状态
|
||||
export const cancelAuthorization = (menuId, roleIds) => {
|
||||
return request({
|
||||
url: '/admin/role/unbind/menu',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: menuId,
|
||||
ids: roleIds
|
||||
}
|
||||
})
|
||||
}
|
||||
//建立角色用户绑定关系
|
||||
export const bindRoleAndMenu = (menuId, roleIds) => {
|
||||
return request({
|
||||
url: '/admin/role/bind/menu',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: menuId,
|
||||
ids: roleIds
|
||||
}
|
||||
})
|
||||
}
|
||||
//删除角色信息
|
||||
export const deleteRole = (roleId) => {
|
||||
return request({
|
||||
url: `/admin/role/${roleId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getRoleList = (params) => {
|
||||
return request({
|
||||
url: '/admin/role',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//查询角色option
|
||||
export const getRoleOption = () => {
|
||||
return request({
|
||||
url: '/admin/role/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
export const getTemRoleOption = () => {
|
||||
return request({
|
||||
url: '/admin/role/option/template',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
//查询角色信息
|
||||
export const getRoleDetail = (roleId) => {
|
||||
return request({
|
||||
url: `/admin/role/${roleId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
//根据菜单id获取分配的角色信息
|
||||
export const getRoleInfoByMenuId = (params) => {
|
||||
return request({
|
||||
url: '/admin/role/menu',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取排除在外的角色
|
||||
export const getRoleExcludeMenuId = (params) => {
|
||||
return request({
|
||||
url: '/admin/role/menu/list',
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 新增修改
|
||||
export const operate = (data) => {
|
||||
if(data.roleId) return editRole(data)
|
||||
return addRole(data)
|
||||
}
|
||||
|
||||
// 新增角色
|
||||
export const addRole = (data) => {
|
||||
return request({
|
||||
url: '/admin/role',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改角色
|
||||
export const editRole = (data) => {
|
||||
return request({
|
||||
url: '/admin/role',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//解除当前角色对应的所有菜单的绑定关系
|
||||
export const unbindAllRole = (menuId) => {
|
||||
return request({
|
||||
url: '/admin/role/all/unbind/menu',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: menuId
|
||||
}
|
||||
})
|
||||
}
|
||||
// 解除角色与菜单之间的绑定状态
|
||||
export const cancelAuthorization = (menuId, roleIds) => {
|
||||
return request({
|
||||
url: '/admin/role/unbind/menu',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: menuId,
|
||||
ids: roleIds
|
||||
}
|
||||
})
|
||||
}
|
||||
//建立角色用户绑定关系
|
||||
export const bindRoleAndMenu = (menuId, roleIds) => {
|
||||
return request({
|
||||
url: '/admin/role/bind/menu',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: menuId,
|
||||
ids: roleIds
|
||||
}
|
||||
})
|
||||
}
|
||||
//删除角色信息
|
||||
export const deleteRole = (roleId) => {
|
||||
return request({
|
||||
url: `/admin/role/${roleId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getFundDetail = (specialFundId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/special/fund/from/${specialFundId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFundDetailProcess = (specialFundId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/special/fund/info/${specialFundId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFundOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFundProcess = (specialFundId) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const resubmitFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund/resubmit',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteFund = (id) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/special/fund/${id}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getFundDetail = (specialFundId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/special/fund/from/${specialFundId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFundDetailProcess = (specialFundId) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/special/fund/info/${specialFundId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFundOption = () => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund/option',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const getFundProcess = (specialFundId) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund/process',
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
export const addFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const resubmitFund= (data) => {
|
||||
return request({
|
||||
url: '/workflow/mosr/special/fund/resubmit',
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
};
|
||||
export const deleteFund = (id) => {
|
||||
return request({
|
||||
url: `/workflow/mosr/special/fund/${id}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
export const getSubCompanyList=(params)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/sub/company',
|
||||
method:'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getDepartmentList=(params)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/department',
|
||||
method:'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getCompanyDetail=(companyId)=>{
|
||||
return request({
|
||||
url:`/admin/mosr/sub/company/info/${companyId}`,
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const setCompanyLeader=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/sub/company/leader',
|
||||
method:'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
export const getSubCompanyList=(params)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/sub/company',
|
||||
method:'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getDepartmentList=(params)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/department',
|
||||
method:'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getCompanyDetail=(companyId)=>{
|
||||
return request({
|
||||
url:`/admin/mosr/sub/company/info/${companyId}`,
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const setCompanyLeader=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/sub/company/leader',
|
||||
method:'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求参数配置表list
|
||||
export const getConfigList = (params) => {
|
||||
return request({
|
||||
url: '/admin/config',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
//获取到option列表
|
||||
|
||||
// 获取参数配置表详情
|
||||
export const getConfigDetails = (configId) => {
|
||||
return request({
|
||||
url: '/admin/config/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 获取参数配置表详情
|
||||
export const getConfigByKey = (configKey) => {
|
||||
return request({
|
||||
url: '/admin/config/key/' + configKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增参数配置表
|
||||
export const addConfig = (data) => {
|
||||
return request({
|
||||
url: '/admin/config',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改参数配置表
|
||||
export const editConfig = (data) => {
|
||||
return request({
|
||||
url: '/admin/config',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除参数配置表
|
||||
export const delConfig =(configId) => {
|
||||
return request({
|
||||
url: '/admin/config/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求参数配置表list
|
||||
export const getConfigList = (params) => {
|
||||
return request({
|
||||
url: '/admin/config',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
//获取到option列表
|
||||
|
||||
// 获取参数配置表详情
|
||||
export const getConfigDetails = (configId) => {
|
||||
return request({
|
||||
url: '/admin/config/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 获取参数配置表详情
|
||||
export const getConfigByKey = (configKey) => {
|
||||
return request({
|
||||
url: '/admin/config/key/' + configKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增参数配置表
|
||||
export const addConfig = (data) => {
|
||||
return request({
|
||||
url: '/admin/config',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改参数配置表
|
||||
export const editConfig = (data) => {
|
||||
return request({
|
||||
url: '/admin/config',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除参数配置表
|
||||
export const delConfig =(configId) => {
|
||||
return request({
|
||||
url: '/admin/config/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求字典类型表list
|
||||
export const getDictDataList = (params) => {
|
||||
return request({
|
||||
url: '/admin/dict/data',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典数据表详情
|
||||
export const getDictDataDetails = (dictCode) => {
|
||||
return request({
|
||||
url: '/admin/dict/data/' + dictCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典数据表
|
||||
export const addDictData = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/data',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型表
|
||||
export const editDictData = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/data',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型表
|
||||
export const delDictData = (dictCode) => {
|
||||
return request({
|
||||
url: `/admin/dict/data/${dictCode}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求字典类型表list
|
||||
export const getDictDataList = (params) => {
|
||||
return request({
|
||||
url: '/admin/dict/data',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典数据表详情
|
||||
export const getDictDataDetails = (dictCode) => {
|
||||
return request({
|
||||
url: '/admin/dict/data/' + dictCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典数据表
|
||||
export const addDictData = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/data',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型表
|
||||
export const editDictData = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/data',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型表
|
||||
export const delDictData = (dictCode) => {
|
||||
return request({
|
||||
url: `/admin/dict/data/${dictCode}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,58 +1,58 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getDictOption = () => {
|
||||
return request({
|
||||
url: '/admin/dict/type/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 请求字典类型表list
|
||||
export const getDictTypeList = (params) => {
|
||||
return request({
|
||||
url: '/admin/dict/type',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典类型表详情
|
||||
export const getDictTypeDetails = (dictTypeId) => {
|
||||
return request({
|
||||
url: '/admin/dict/type/' + dictTypeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典类型表
|
||||
export const addDictType = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/type',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型表
|
||||
export const editDictType = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/type',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型表
|
||||
export const delDictType =(dictTypeId) => {
|
||||
return request({
|
||||
url: '/admin/dict/type/' + dictTypeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
//字典刷新缓存
|
||||
export const refreshDict =() => {
|
||||
return request({
|
||||
url: 'admin/dict/type/refresh',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getDictOption = () => {
|
||||
return request({
|
||||
url: '/admin/dict/type/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 请求字典类型表list
|
||||
export const getDictTypeList = (params) => {
|
||||
return request({
|
||||
url: '/admin/dict/type',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典类型表详情
|
||||
export const getDictTypeDetails = (dictTypeId) => {
|
||||
return request({
|
||||
url: '/admin/dict/type/' + dictTypeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典类型表
|
||||
export const addDictType = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/type',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型表
|
||||
export const editDictType = (data) => {
|
||||
return request({
|
||||
url: '/admin/dict/type',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型表
|
||||
export const delDictType =(dictTypeId) => {
|
||||
return request({
|
||||
url: '/admin/dict/type/' + dictTypeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
//字典刷新缓存
|
||||
export const refreshDict =() => {
|
||||
return request({
|
||||
url: 'admin/dict/type/refresh',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getMappingList = (params) => {
|
||||
return request({
|
||||
url: '/admin/mapping/switch',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const editMappingSwitch = (data) => {
|
||||
return request({
|
||||
url: '/admin/mapping/switch',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getMappingList = (params) => {
|
||||
return request({
|
||||
url: '/admin/mapping/switch',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const editMappingSwitch = (data) => {
|
||||
return request({
|
||||
url: '/admin/mapping/switch',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export const getRouters = () => {
|
||||
return request({
|
||||
url: '/auth/router',
|
||||
method: 'get'
|
||||
})
|
||||
import request from '@/utils/request'
|
||||
|
||||
export const getRouters = () => {
|
||||
return request({
|
||||
url: '/auth/router',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -1,53 +1,53 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getMenuList = (params) => {
|
||||
return request({
|
||||
url: '/admin/menu',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const editMenu = (data) => {
|
||||
return request({
|
||||
url: '/admin/menu',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const addMenu = (data) => {
|
||||
return request({
|
||||
url: '/admin/menu',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const delMenu = (menuId) => {
|
||||
return request({
|
||||
url: '/admin/menu/'+menuId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export const getMenuInfo = (menuId) => {
|
||||
return request({
|
||||
url: '/admin/menu/info/'+menuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getMenuOpt = (excludeId=0) => {
|
||||
return request({
|
||||
url: '/admin/menu/option/'+excludeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getMenuOptRole = (roleId) => {
|
||||
return request({
|
||||
url: '/admin/menu/option/role/'+roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export const getMenuList = (params) => {
|
||||
return request({
|
||||
url: '/admin/menu',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const editMenu = (data) => {
|
||||
return request({
|
||||
url: '/admin/menu',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const addMenu = (data) => {
|
||||
return request({
|
||||
url: '/admin/menu',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const delMenu = (menuId) => {
|
||||
return request({
|
||||
url: '/admin/menu/'+menuId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export const getMenuInfo = (menuId) => {
|
||||
return request({
|
||||
url: '/admin/menu/info/'+menuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getMenuOpt = (excludeId=0) => {
|
||||
return request({
|
||||
url: '/admin/menu/option/'+excludeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const getMenuOptRole = (roleId) => {
|
||||
return request({
|
||||
url: '/admin/menu/option/role/'+roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,251 +1,251 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 根据角色或者部门id获取对应数据
|
||||
export const getDeptOpt = (params = {}) => {
|
||||
return request({
|
||||
url: `/admin/mosr/department/option`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getSubCompOpt = () => {
|
||||
return request({
|
||||
url: `/admin/mosr/sub/company/option`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export const getUserAccount = () => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/account/list`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export const judgeIsSameRole = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/company/same/${userId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色信息
|
||||
export const getRolesOpt = () => {
|
||||
return request({
|
||||
url: '/admin/role/option',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 获取岗位下拉
|
||||
export const getJobOpt = () => {
|
||||
return request({
|
||||
url: '/admin/job/option',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export const getMosrUserList = (params) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getUserList = (params) => {
|
||||
return request({
|
||||
url: '/admin/user',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取用户详情
|
||||
export const getUserDetail = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/info/${userId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
// 操作
|
||||
export const operate = (data, type) => {
|
||||
// console.log(type ,'type');
|
||||
if (data.userId && type !== '0') return editUser(data)
|
||||
else if (type == '0') return editUserOA(data)
|
||||
return addUser(data)
|
||||
}
|
||||
|
||||
// 新增用户
|
||||
export const addUser = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 修改用户
|
||||
export const editUser = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改OA用户
|
||||
export const editUserOA = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/oa',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除用户信息
|
||||
export const deleteUser = (userId) => {
|
||||
return request({
|
||||
url: `/admin/user/${userId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
//根据roleId获取用户信息
|
||||
export const getUserByRoleId = (roleId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/role/${roleId}`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//排除角色id获取用户信息
|
||||
export const getUserExcludeRoleId = (roleId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/role/exclude/${roleId}`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//建立角色用户绑定关系
|
||||
export const roleBindUser = (data) => {
|
||||
return request({
|
||||
url: '/admin/user/bind/role',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 解除角色与用户之间的绑定状态
|
||||
export const cancelAuthorization = (data) => {
|
||||
return request({
|
||||
url: '/admin/user/unbind/role',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//解除当前角色对应的所有用户的绑定关系
|
||||
export const unbindAllUser = (roleId) => {
|
||||
return request({
|
||||
url: '/admin/user/all/unbind/role',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: roleId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据岗位id获取分配的用户信息
|
||||
export const getUserInfoByPostId = (postId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/post/${postId}`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//排除岗位id获取用户信息
|
||||
export const getUserExcludePostId = (postId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/post/exclude/${postId}`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//建立岗位与用户绑定关系
|
||||
export const postBindUser = (userIds, postId) => {
|
||||
return request({
|
||||
url: '/admin/user/bind/post',
|
||||
method: 'put',
|
||||
data: {
|
||||
ids: userIds,
|
||||
id: postId
|
||||
}
|
||||
})
|
||||
}
|
||||
// 解除岗位与用户之间的绑定状态
|
||||
export const cancelPostAndUserAuthorization = (userIds, postId) => {
|
||||
return request({
|
||||
url: '/admin/user/unbind/post',
|
||||
method: 'put',
|
||||
data: {
|
||||
ids: userIds,
|
||||
id: postId
|
||||
}
|
||||
})
|
||||
}
|
||||
//解除当前岗位对应的所有用户的绑定关系
|
||||
export const unbindAllUserByPost = (postId) => {
|
||||
return request({
|
||||
url: '/admin/user/all/unbind/post',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: postId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const bindAccount = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/bind/account',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const getBindAccount = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/bind/account/info/${userId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const checkMatrix = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/matrix?userId=` + userId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export const getAgentInfo=(userId)=>{
|
||||
return request({
|
||||
url: `/admin/mosr/user/approval/agent/${userId}`,
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const editAgentInfo=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/approval/agent',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const addWhiteUser=(data)=>{
|
||||
return request({
|
||||
url:'/admin/approve/white',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const delWhiteUser=(data)=>{
|
||||
return request({
|
||||
url:'/admin/approve/white',
|
||||
method:'delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 根据角色或者部门id获取对应数据
|
||||
export const getDeptOpt = (params = {}) => {
|
||||
return request({
|
||||
url: `/admin/mosr/department/option`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getSubCompOpt = () => {
|
||||
return request({
|
||||
url: `/admin/mosr/sub/company/option`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export const getUserAccount = () => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/account/list`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export const judgeIsSameRole = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/company/same/${userId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色信息
|
||||
export const getRolesOpt = () => {
|
||||
return request({
|
||||
url: '/admin/role/option',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 获取岗位下拉
|
||||
export const getJobOpt = () => {
|
||||
return request({
|
||||
url: '/admin/job/option',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export const getMosrUserList = (params) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export const getUserList = (params) => {
|
||||
return request({
|
||||
url: '/admin/user',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取用户详情
|
||||
export const getUserDetail = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/info/${userId}`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
|
||||
// 操作
|
||||
export const operate = (data, type) => {
|
||||
// console.log(type ,'type');
|
||||
if (data.userId && type !== '0') return editUser(data)
|
||||
else if (type == '0') return editUserOA(data)
|
||||
return addUser(data)
|
||||
}
|
||||
|
||||
// 新增用户
|
||||
export const addUser = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 修改用户
|
||||
export const editUser = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改OA用户
|
||||
export const editUserOA = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/oa',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除用户信息
|
||||
export const deleteUser = (userId) => {
|
||||
return request({
|
||||
url: `/admin/user/${userId}`,
|
||||
method: "delete"
|
||||
});
|
||||
};
|
||||
//根据roleId获取用户信息
|
||||
export const getUserByRoleId = (roleId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/role/${roleId}`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//排除角色id获取用户信息
|
||||
export const getUserExcludeRoleId = (roleId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/role/exclude/${roleId}`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//建立角色用户绑定关系
|
||||
export const roleBindUser = (data) => {
|
||||
return request({
|
||||
url: '/admin/user/bind/role',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 解除角色与用户之间的绑定状态
|
||||
export const cancelAuthorization = (data) => {
|
||||
return request({
|
||||
url: '/admin/user/unbind/role',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
//解除当前角色对应的所有用户的绑定关系
|
||||
export const unbindAllUser = (roleId) => {
|
||||
return request({
|
||||
url: '/admin/user/all/unbind/role',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: roleId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据岗位id获取分配的用户信息
|
||||
export const getUserInfoByPostId = (postId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/post/${postId}`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//排除岗位id获取用户信息
|
||||
export const getUserExcludePostId = (postId, params) => {
|
||||
return request({
|
||||
url: `/admin/user/post/exclude/${postId}`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
};
|
||||
//建立岗位与用户绑定关系
|
||||
export const postBindUser = (userIds, postId) => {
|
||||
return request({
|
||||
url: '/admin/user/bind/post',
|
||||
method: 'put',
|
||||
data: {
|
||||
ids: userIds,
|
||||
id: postId
|
||||
}
|
||||
})
|
||||
}
|
||||
// 解除岗位与用户之间的绑定状态
|
||||
export const cancelPostAndUserAuthorization = (userIds, postId) => {
|
||||
return request({
|
||||
url: '/admin/user/unbind/post',
|
||||
method: 'put',
|
||||
data: {
|
||||
ids: userIds,
|
||||
id: postId
|
||||
}
|
||||
})
|
||||
}
|
||||
//解除当前岗位对应的所有用户的绑定关系
|
||||
export const unbindAllUserByPost = (postId) => {
|
||||
return request({
|
||||
url: '/admin/user/all/unbind/post',
|
||||
method: 'put',
|
||||
data: {
|
||||
id: postId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const bindAccount = (data) => {
|
||||
return request({
|
||||
url: '/admin/mosr/user/bind/account',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export const getBindAccount = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/bind/account/info/${userId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const checkMatrix = (userId) => {
|
||||
return request({
|
||||
url: `/admin/mosr/user/matrix?userId=` + userId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export const getAgentInfo=(userId)=>{
|
||||
return request({
|
||||
url: `/admin/mosr/user/approval/agent/${userId}`,
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
export const editAgentInfo=(data)=>{
|
||||
return request({
|
||||
url:'/admin/mosr/user/approval/agent',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const addWhiteUser=(data)=>{
|
||||
return request({
|
||||
url:'/admin/approve/white',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const delWhiteUser=(data)=>{
|
||||
return request({
|
||||
url:'/admin/approve/white',
|
||||
method:'delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,78 +1,78 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export function getProcessDefinitionList(param) {
|
||||
return request({
|
||||
url: "/workflow/process/definition",
|
||||
method: "get",
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getProcessDefinitionInfo(deploymentId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/" + deploymentId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function getInitiateInfo(processDefinitionKey) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/key/" + processDefinitionKey,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getHistoryVersion(processDefinitionKey) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/history/" + processDefinitionKey,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteHistoryVersion(deploymentId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/" + deploymentId,
|
||||
method: "delete",
|
||||
})
|
||||
}
|
||||
|
||||
export function suspendProcessDefinition(processDefinitionId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/suspend",
|
||||
method: "put",
|
||||
data: processDefinitionId
|
||||
})
|
||||
}
|
||||
|
||||
export function activateProcessDefinition(processDefinitionId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/activate",
|
||||
method: "put",
|
||||
data: processDefinitionId
|
||||
})
|
||||
}
|
||||
|
||||
export function addProcessDefinition(param) {
|
||||
return request({
|
||||
url: "/workflow/process/definition",
|
||||
method: "post",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getTypeOption() {
|
||||
return request({
|
||||
url: "/workflow/process/definition/type/option",
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function getFromPerm(processKey) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/from/perm/"+processKey,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export function getProcessDefinitionList(param) {
|
||||
return request({
|
||||
url: "/workflow/process/definition",
|
||||
method: "get",
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getProcessDefinitionInfo(deploymentId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/" + deploymentId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function getInitiateInfo(processDefinitionKey) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/key/" + processDefinitionKey,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getHistoryVersion(processDefinitionKey) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/history/" + processDefinitionKey,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteHistoryVersion(deploymentId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/" + deploymentId,
|
||||
method: "delete",
|
||||
})
|
||||
}
|
||||
|
||||
export function suspendProcessDefinition(processDefinitionId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/suspend",
|
||||
method: "put",
|
||||
data: processDefinitionId
|
||||
})
|
||||
}
|
||||
|
||||
export function activateProcessDefinition(processDefinitionId) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/activate",
|
||||
method: "put",
|
||||
data: processDefinitionId
|
||||
})
|
||||
}
|
||||
|
||||
export function addProcessDefinition(param) {
|
||||
return request({
|
||||
url: "/workflow/process/definition",
|
||||
method: "post",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getTypeOption() {
|
||||
return request({
|
||||
url: "/workflow/process/definition/type/option",
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function getFromPerm(processKey) {
|
||||
return request({
|
||||
url: "/workflow/process/definition/from/perm/"+processKey,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export function deleteFile(fileId) {
|
||||
// 删除文件
|
||||
return request({
|
||||
url: '/workflow/process/file/' + fileId,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export function deleteFile(fileId) {
|
||||
// 删除文件
|
||||
return request({
|
||||
url: '/workflow/process/file/' + fileId,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,53 +1,53 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
/**
|
||||
* 开始实例流程
|
||||
* @param param
|
||||
* @returns {*}
|
||||
*/
|
||||
export function startProcessInstance(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/start",
|
||||
method: "post",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
export function restartProcessInstance(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/restart",
|
||||
method: "post",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getAboutInstanceList(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/about",
|
||||
method: "get",
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getInitiatedInstanceList(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/self",
|
||||
method: "get",
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getInitiatedInstanceInfo(processInstanceId) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/info/"+processInstanceId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getInitiatedInstanceReInfo(instanceId) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/re/info/"+instanceId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
|
||||
/**
|
||||
* 开始实例流程
|
||||
* @param param
|
||||
* @returns {*}
|
||||
*/
|
||||
export function startProcessInstance(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/start",
|
||||
method: "post",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
export function restartProcessInstance(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/restart",
|
||||
method: "post",
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getAboutInstanceList(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/about",
|
||||
method: "get",
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getInitiatedInstanceList(param) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/self",
|
||||
method: "get",
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getInitiatedInstanceInfo(processInstanceId) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/info/"+processInstanceId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getInitiatedInstanceReInfo(instanceId) {
|
||||
return request({
|
||||
url: "/workflow/process/instance/re/info/"+instanceId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求系统内置监听器list
|
||||
export const getProcessListenerList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
//获取到option列表
|
||||
|
||||
// 获取系统内置监听器详情
|
||||
export const getProcessListenerDetails = (processListenerId) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener/' + processListenerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增系统内置监听器
|
||||
export const addProcessListener = (data) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改系统内置监听器
|
||||
export const editProcessListener = (data) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除系统内置监听器
|
||||
export const delProcessListener =(processListenerId) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener/' + processListenerId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 请求系统内置监听器list
|
||||
export const getProcessListenerList = (params) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
//获取到option列表
|
||||
|
||||
// 获取系统内置监听器详情
|
||||
export const getProcessListenerDetails = (processListenerId) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener/' + processListenerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增系统内置监听器
|
||||
export const addProcessListener = (data) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改系统内置监听器
|
||||
export const editProcessListener = (data) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除系统内置监听器
|
||||
export const delProcessListener =(processListenerId) => {
|
||||
return request({
|
||||
url: '/workflow/process/listener/' + processListenerId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export function getTaskList() {
|
||||
return request({
|
||||
url: "/workflow/process/task",
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function getTaskInfo(taskId) {
|
||||
return request({
|
||||
url: "/workflow/process/task/"+taskId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
export function completeTask(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/complete",
|
||||
method: "put",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
export function refuseTask(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/refuse",
|
||||
method: "put",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
export function rollBackTask(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/rollback",
|
||||
method: "put",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
export function addComment(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/comment",
|
||||
method: "post",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
export function getTaskList() {
|
||||
return request({
|
||||
url: "/workflow/process/task",
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function getTaskInfo(taskId) {
|
||||
return request({
|
||||
url: "/workflow/process/task/"+taskId,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
export function completeTask(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/complete",
|
||||
method: "put",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
export function refuseTask(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/refuse",
|
||||
method: "put",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
export function rollBackTask(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/rollback",
|
||||
method: "put",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
export function addComment(params) {
|
||||
return request({
|
||||
url: "/workflow/process/task/comment",
|
||||
method: "post",
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,47 +1,47 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
//根据角色或者部门获取到对应的数据
|
||||
export function getUserTree(type,chooseId){
|
||||
return request({
|
||||
url:`/admin/user/choose/${type}/${chooseId}`,
|
||||
method:'get'
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 查询系统角色
|
||||
export function getRole() {
|
||||
return request({
|
||||
url: 'admin/role/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//获取采取树形控件的部门option
|
||||
export function getDepartmentTree() {
|
||||
return request({
|
||||
url: 'admin/dept/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function getMosrUser(params) {
|
||||
return request({
|
||||
url: '/admin/mosr/user/choose',
|
||||
method: 'get',
|
||||
params:params
|
||||
})
|
||||
}
|
||||
|
||||
export function getOrganizationStructure(params) {
|
||||
return request({
|
||||
url: '/admin/organizational/structure/choose',
|
||||
method: 'get',
|
||||
params:params
|
||||
})
|
||||
}
|
||||
export function getOrganizationStructureTree(params) {
|
||||
return request({
|
||||
url: '/admin/organizational/structure/tree',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
//根据角色或者部门获取到对应的数据
|
||||
export function getUserTree(type,chooseId){
|
||||
return request({
|
||||
url:`/admin/user/choose/${type}/${chooseId}`,
|
||||
method:'get'
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 查询系统角色
|
||||
export function getRole() {
|
||||
return request({
|
||||
url: 'admin/role/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//获取采取树形控件的部门option
|
||||
export function getDepartmentTree() {
|
||||
return request({
|
||||
url: 'admin/dept/option',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function getMosrUser(params) {
|
||||
return request({
|
||||
url: '/admin/mosr/user/choose',
|
||||
method: 'get',
|
||||
params:params
|
||||
})
|
||||
}
|
||||
|
||||
export function getOrganizationStructure(params) {
|
||||
return request({
|
||||
url: '/admin/organizational/structure/choose',
|
||||
method: 'get',
|
||||
params:params
|
||||
})
|
||||
}
|
||||
export function getOrganizationStructureTree(params) {
|
||||
return request({
|
||||
url: '/admin/organizational/structure/tree',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user