api配置
This commit is contained in:
parent
116cd0bad8
commit
c0ed291e17
|
|
@ -1,10 +1,10 @@
|
|||
# 页面标题
|
||||
VUE_APP_TITLE = 博诺思管理系统
|
||||
VUE_APP_TITLE = 绿智食堂
|
||||
|
||||
# 开发环境配置
|
||||
ENV = 'development'
|
||||
|
||||
# 博诺思管理系统/开发环境
|
||||
# 绿智食堂/开发环境
|
||||
VUE_APP_BASE_API = '/dev-api'
|
||||
|
||||
# 路由懒加载
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# 页面标题
|
||||
VUE_APP_TITLE = 博诺思管理系统
|
||||
VUE_APP_TITLE = 绿智食堂
|
||||
|
||||
NODE_ENV = production
|
||||
|
||||
# 测试环境配置
|
||||
ENV = 'staging'
|
||||
|
||||
# 博诺思管理系统/测试环境
|
||||
# 绿智食堂/测试环境
|
||||
VUE_APP_BASE_API = '/stage-api'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,38 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* @data 新增注册参数 公司注册接口
|
||||
*/
|
||||
export const addCompanyAPI = (data) => {
|
||||
return request.post('/system/dept', data)
|
||||
}
|
||||
/**
|
||||
* @data 查询参数 公司列表查询接口
|
||||
*/
|
||||
export const getDeptListAPI = (data) => {
|
||||
return request.get('/system/dept/deptList', { params: data })
|
||||
}
|
||||
/**
|
||||
* @id 查询参数 获取详情
|
||||
*/
|
||||
export const getDeptDetailsAPI = (id) => {
|
||||
return request.get(`/system/dept/${id}`)
|
||||
}
|
||||
/**
|
||||
* @data 编辑参数 编辑公司信息提交接口
|
||||
*/
|
||||
export const editCompanyAPI = (data) => {
|
||||
return request.post('/system/dept/edit', data)
|
||||
}
|
||||
/**
|
||||
* @data 注销
|
||||
*/
|
||||
export const turnOnOffAPI = (data) => {
|
||||
return request.post('/system/dept/turnOnOff', data)
|
||||
}
|
||||
/**
|
||||
* @data 查询参数 获取地址信息
|
||||
*/
|
||||
export const getAddressListAPI = (data) => {
|
||||
return request.get('/system/address/list', { params: data })
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 获取系统配置
|
||||
export const getConfig = () => {
|
||||
return request({
|
||||
url: '/auth/getConfig',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询列表
|
||||
export function listData(query) {
|
||||
return request({
|
||||
url: '/face/data/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询详细
|
||||
export function getData(faceId) {
|
||||
return request({
|
||||
url: '/face/data/' + faceId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function addData(data) {
|
||||
return request({
|
||||
url: '/face/data/add',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function updateData(data) {
|
||||
return request({
|
||||
url: '/face/data/edit',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delData(faceId) {
|
||||
return request({
|
||||
url: '/face/data/delete/' + faceId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询列表
|
||||
export function listGroups(query) {
|
||||
return request({
|
||||
url: '/face/groups/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询详细
|
||||
export function getGroups(groupId) {
|
||||
return request({
|
||||
url: '/face/groups/' + groupId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function addGroups(data) {
|
||||
return request({
|
||||
url: '/face/groups/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function updateGroups(data) {
|
||||
return request({
|
||||
url: '/face/groups/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delGroups(groupId) {
|
||||
return request({
|
||||
url: '/face/groups/delete/' + groupId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
@ -81,7 +81,7 @@ export function getInfo() {
|
|||
export function logout() {
|
||||
return request({
|
||||
url: '/auth/logout',
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|||
// 获取路由
|
||||
export const getRouters = () => {
|
||||
return request({
|
||||
url: '/system/menu/getRouters',
|
||||
url: '/system/menu/getRouters/0',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
@ -29,8 +29,8 @@ export function addJob(data) {
|
|||
// 修改定时任务调度
|
||||
export function updateJob(data) {
|
||||
return request({
|
||||
url: '/schedule/job',
|
||||
method: 'put',
|
||||
url: '/schedule/job/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -38,8 +38,8 @@ export function updateJob(data) {
|
|||
// 删除定时任务调度
|
||||
export function delJob(jobId) {
|
||||
return request({
|
||||
url: '/schedule/job/' + jobId,
|
||||
method: 'delete'
|
||||
url: '/schedule/job/delete/' + jobId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ export function changeJobStatus(jobId, status) {
|
|||
}
|
||||
return request({
|
||||
url: '/schedule/job/changeStatus',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ export function runJob(jobId, jobGroup) {
|
|||
}
|
||||
return request({
|
||||
url: '/schedule/job/run',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -12,8 +12,8 @@ export function listJobLog(query) {
|
|||
// 删除调度日志
|
||||
export function delJobLog(jobLogId) {
|
||||
return request({
|
||||
url: '/schedule/job/log/' + jobLogId,
|
||||
method: 'delete'
|
||||
url: '/schedule/job/log/delete' + jobLogId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -21,6 +21,6 @@ export function delJobLog(jobLogId) {
|
|||
export function cleanJobLog() {
|
||||
return request({
|
||||
url: '/schedule/job/log/clean',
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export function list(query) {
|
|||
// 强退用户
|
||||
export function forceLogout(tokenId) {
|
||||
return request({
|
||||
url: '/system/online/' + tokenId,
|
||||
method: 'delete'
|
||||
url: '/system/online/delete/' + tokenId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* @data 新增权限模板参数 权限模板新增接口
|
||||
*/
|
||||
export const addTemplateAPI = (data) => {
|
||||
return request.post('/system/template', data)
|
||||
}
|
||||
/**
|
||||
* @data 修改权限模板参数 权限模板修改接口
|
||||
*/
|
||||
export const editTemplateAPI = (data) => {
|
||||
return request.post('/system/template/edit', data)
|
||||
}
|
||||
/**
|
||||
* @data 查询参数 权限模板列表接口
|
||||
*/
|
||||
export const getTemplateListAPI = (data) => {
|
||||
return request.get(`/system/template/list`, { params: data })
|
||||
}
|
||||
/**
|
||||
* @data 删除参数 权限模板删除接口
|
||||
* @ids 参数
|
||||
*/
|
||||
export const deleteTemplateAPI = (data) => {
|
||||
return request.post('/system/template/delete/' + data)
|
||||
}
|
||||
/**
|
||||
* @data 删除参数 查询权限模板详情
|
||||
*/
|
||||
export const getTemplateMenuTreeselectAPI = (id) => {
|
||||
return request.get(`/system/template/templateMenuTreeselect/${id}`)
|
||||
}
|
||||
|
|
@ -37,8 +37,8 @@ export function addConfig(data) {
|
|||
// 修改参数配置
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
url: '/system/config/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -46,8 +46,8 @@ export function updateConfig(data) {
|
|||
// 删除参数配置
|
||||
export function delConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'delete'
|
||||
url: '/system/config/delete/' + configId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -55,6 +55,6 @@ export function delConfig(configId) {
|
|||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/config/refreshCache',
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ export function addDept(data) {
|
|||
// 修改部门
|
||||
export function updateDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'put',
|
||||
url: '/system/dept/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ export function updateDept(data) {
|
|||
// 删除部门
|
||||
export function delDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'delete'
|
||||
url: '/system/dept/delete/' + deptId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
@ -37,8 +37,8 @@ export function addData(data) {
|
|||
// 修改字典数据
|
||||
export function updateData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'put',
|
||||
url: '/system/dict/data/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ export function updateData(data) {
|
|||
// 删除字典数据
|
||||
export function delData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'delete'
|
||||
url: '/system/dict/data/delete/' + dictCode,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ export function addType(data) {
|
|||
// 修改字典类型
|
||||
export function updateType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'put',
|
||||
url: '/system/dict/type/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -38,8 +38,8 @@ export function updateType(data) {
|
|||
// 删除字典类型
|
||||
export function delType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'delete'
|
||||
url: '/system/dict/type/delete/' + dictId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ export function delType(dictId) {
|
|||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/dict/type/refreshCache',
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,57 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询【请填写功能名称】列表
|
||||
export function listWhitelist(query) {
|
||||
return request({
|
||||
url: '/system/whitelist/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询【请填写功能名称】详细
|
||||
export function getWhitelist(id) {
|
||||
return request({
|
||||
url: '/system/whitelist/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增【请填写功能名称】
|
||||
export function addWhitelist(data) {
|
||||
return request({
|
||||
url: '/system/whitelist/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改【请填写功能名称】
|
||||
export function updateWhitelist(data) {
|
||||
return request({
|
||||
url: '/system/whitelist/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除【请填写功能名称】
|
||||
export function delWhitelist(id) {
|
||||
return request({
|
||||
url: '/system/whitelist/' + id,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function updateSysIpWhitelistStatus(id,status) {
|
||||
const data = {
|
||||
id,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/system/whitelist/updateSysIpWhitelistStatus',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询【请填写功能名称】列表
|
||||
export function list() {
|
||||
return request({
|
||||
url: '/system/user/getLockUser',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询【请填写功能名称】详细
|
||||
export function delLockUser(data) {
|
||||
return request({
|
||||
url: '/system/user/delLockUser',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ export function getSysLogs(data) {
|
|||
//备份系统日志列表
|
||||
export function downloadSysLogs(data) {
|
||||
return request({
|
||||
url: '/sys/sysLog/downloadSysLogs',
|
||||
url: '/system/sys/sysLog/downloadSysLogs',
|
||||
method: 'get',
|
||||
params: data,
|
||||
responseType: 'blob'
|
||||
|
|
@ -92,6 +92,12 @@ export function getLogSize(data) {
|
|||
})
|
||||
}
|
||||
|
||||
export function handleNoWarningLog(data) {
|
||||
return request({
|
||||
url: '/system/sys/sysLog/logWarn',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export function list(query) {
|
|||
export function delLogininfor(infoId) {
|
||||
return request({
|
||||
url: '/system/logininfor/' + infoId,
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -28,6 +28,6 @@ export function unlockLogininfor(userName) {
|
|||
export function cleanLogininfor() {
|
||||
return request({
|
||||
url: '/system/logininfor/clean',
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ export function addMenu(data) {
|
|||
// 修改菜单
|
||||
export function updateMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'put',
|
||||
url: '/system/menu/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ export function updateMenu(data) {
|
|||
// 删除菜单
|
||||
export function delMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'delete'
|
||||
url: '/system/menu/delete/' + menuId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
@ -29,8 +29,8 @@ export function addNotice(data) {
|
|||
// 修改公告
|
||||
export function updateNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'put',
|
||||
url: '/system/notice/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -38,7 +38,7 @@ export function updateNotice(data) {
|
|||
// 删除公告
|
||||
export function delNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'delete'
|
||||
url: '/system/notice/delete/' + noticeId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
@ -12,8 +12,8 @@ export function list(query) {
|
|||
// 删除操作日志
|
||||
export function delOperlog(operId) {
|
||||
return request({
|
||||
url: '/system/operlog/' + operId,
|
||||
method: 'delete'
|
||||
url: '/system/operlog/delete/' + operId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -21,6 +21,6 @@ export function delOperlog(operId) {
|
|||
export function cleanOperlog() {
|
||||
return request({
|
||||
url: '/system/operlog/clean',
|
||||
method: 'delete'
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ export function addPost(data) {
|
|||
// 修改岗位
|
||||
export function updatePost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'put',
|
||||
url: '/system/post/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -38,7 +38,7 @@ export function updatePost(data) {
|
|||
// 删除岗位
|
||||
export function delPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'delete'
|
||||
url: '/system/post/delete/' + postId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ export function addRole(data) {
|
|||
// 修改角色
|
||||
export function updateRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'put',
|
||||
url: '/system/role/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -38,8 +38,8 @@ export function updateRole(data) {
|
|||
// 角色数据权限
|
||||
export function dataScope(data) {
|
||||
return request({
|
||||
url: '/system/role/dataScope',
|
||||
method: 'put',
|
||||
url: '/system/role/dataScope/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -52,7 +52,7 @@ export function changeRoleStatus(roleId, status) {
|
|||
}
|
||||
return request({
|
||||
url: '/system/role/changeStatus',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -60,8 +60,8 @@ export function changeRoleStatus(roleId, status) {
|
|||
// 删除角色
|
||||
export function delRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'delete'
|
||||
url: '/system/role/delete/' + roleId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ export function unallocatedUserList(query) {
|
|||
export function authUserCancel(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancel',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -96,7 +96,7 @@ export function authUserCancel(data) {
|
|||
export function authUserCancelAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancelAll',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ export function authUserCancelAll(data) {
|
|||
export function authUserSelectAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/selectAll',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,88 @@
|
|||
import request from '@/utils/request'
|
||||
//资源图片上传
|
||||
export function imgUpLoad(param){
|
||||
const formData = new FormData()
|
||||
formData.append('file', param.file)
|
||||
formData.append('fileType', param.type)
|
||||
return request({
|
||||
url: '/system/sys/file/upload',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
header:'multipart/form-data'
|
||||
})
|
||||
}
|
||||
|
||||
export function imgUpLoadTwo(param){
|
||||
const formData = new FormData()
|
||||
formData.append('file', param.file)
|
||||
formData.append('fileType', param.type)
|
||||
return request({
|
||||
url: '/file/upload',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
header:'multipart/form-data'
|
||||
})
|
||||
}
|
||||
|
||||
export function imgUpLoadThree(param){
|
||||
const formData = new FormData()
|
||||
param.forEach(item => {
|
||||
formData.append('files', item)
|
||||
})
|
||||
// formData.append('files', param)
|
||||
return request({
|
||||
url: '/file/uploadFiles',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
header:'multipart/form-data'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//资源文件上传
|
||||
export function fileUpLoad(param){
|
||||
const formData = new FormData()
|
||||
formData.append('file', param.file)
|
||||
return request({
|
||||
url: '/system/sys/file/upload',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
})
|
||||
}
|
||||
|
||||
// excel文件上传
|
||||
export function excelUpLoad(param){
|
||||
const formData = new FormData()
|
||||
formData.append('file', param.file)
|
||||
return request({
|
||||
url: '/material/base/maPartType/readExcel',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
})
|
||||
}
|
||||
|
||||
// excel文件下载
|
||||
export function downloadExcel(param){
|
||||
return request({
|
||||
url: '/material/base/maPartType/downLoad',
|
||||
method: 'post',
|
||||
param
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -30,8 +30,8 @@ export function addUser(data) {
|
|||
// 修改用户
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
method: 'put',
|
||||
url: '/system/user/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -39,8 +39,8 @@ export function updateUser(data) {
|
|||
// 删除用户
|
||||
export function delUser(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + userId,
|
||||
method: 'delete'
|
||||
url: '/system/user/delete/' + userId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ export function resetUserPwd(userId, password) {
|
|||
}
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ export function changeUserStatus(userId, status) {
|
|||
}
|
||||
return request({
|
||||
url: '/system/user/changeStatus',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -81,8 +81,8 @@ export function getUserProfile() {
|
|||
// 修改用户个人信息
|
||||
export function updateUserProfile(data) {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
method: 'put',
|
||||
url: '/system/user/profile/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -95,7 +95,7 @@ export function updateUserPwd(oldPassword, newPassword) {
|
|||
}
|
||||
return request({
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
|
@ -123,8 +123,8 @@ export function getAuthRole(userId) {
|
|||
// 保存授权角色
|
||||
export function updateAuthRole(data) {
|
||||
return request({
|
||||
url: '/system/user/authRole',
|
||||
method: 'put',
|
||||
url: '/system/user/authRole/edit',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
|
@ -154,3 +154,16 @@ export function checkPasswordStatus(data) {
|
|||
})
|
||||
}
|
||||
|
||||
export function confirmPassword(password) {
|
||||
const data = {
|
||||
password
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/confirmPassword',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ export function getGenTable(tableId) {
|
|||
// 修改代码生成信息
|
||||
export function updateGenTable(data) {
|
||||
return request({
|
||||
url: '/code/gen',
|
||||
method: 'put',
|
||||
url: '/code/gen/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
@ -54,8 +54,8 @@ export function previewTable(tableId) {
|
|||
// 删除表数据
|
||||
export function delTable(tableId) {
|
||||
return request({
|
||||
url: '/code/gen/' + tableId,
|
||||
method: 'delete'
|
||||
url: '/code/gen/delete/' + tableId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue