更改系统管理api

This commit is contained in:
2022-12-22 11:32:22 +08:00
parent 6b534a43e7
commit e80260c24e
12 changed files with 39 additions and 27 deletions

View File

@ -12,7 +12,7 @@ export function listConfig(query) {
// 查询参数详细
export function getConfig(configId) {
return request({
url: '/system/config/' + configId,
url: '/system/config?configId=' + configId,
method: 'get'
})
}
@ -46,8 +46,11 @@ export function updateConfig(data) {
// 删除参数配置
export function delConfig(configId) {
return request({
url: '/system/config/' + configId,
method: 'delete'
url: '/system/config',
method: 'delete',
data: {
ids: configId
}
})
}

View File

@ -46,7 +46,10 @@ export function updateDept(data) {
// 删除部门
export function delDept(deptId) {
return request({
url: '/system/dept/' + deptId,
method: 'delete'
url: '/system/dept',
method: 'delete',
data: {
id: deptId
}
})
}

View File

@ -12,7 +12,7 @@ export function listData(query) {
// 查询字典数据详细
export function getData(dictCode) {
return request({
url: '/system/dict/data/' + dictCode,
url: '/system/dict/data?dictCode=' + dictCode,
method: 'get'
})
}
@ -46,7 +46,10 @@ export function updateData(data) {
// 删除字典数据
export function delData(dictCode) {
return request({
url: '/system/dict/data/' + dictCode,
method: 'delete'
url: '/system/dict/data',
method: 'delete',
data: {
ids: dictCode
}
})
}

View File

@ -12,7 +12,7 @@ export function listType(query) {
// 查询字典类型详细
export function getType(dictId) {
return request({
url: '/system/dict/type/' + dictId,
url: '/system/dict/type?dictId=' + dictId,
method: 'get'
})
}
@ -38,8 +38,11 @@ export function updateType(data) {
// 删除字典类型
export function delType(dictId) {
return request({
url: '/system/dict/type/' + dictId,
method: 'delete'
url: '/system/dict/type',
method: 'delete',
data: {
ids: dictId
}
})
}
@ -54,7 +57,7 @@ export function refreshCache() {
// 获取字典选择框列表
export function optionselect() {
return request({
url: '/system/dict/type/optionselect',
url: '/system/dict/type/optionSelect',
method: 'get'
})
}

View File

@ -12,7 +12,7 @@ export function listNotice(query) {
// 查询公告详细
export function getNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
url: '/system/notice?noticeId=' + noticeId,
method: 'get'
})
}
@ -38,7 +38,10 @@ export function updateNotice(data) {
// 删除公告
export function delNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'delete'
url: '/system/notice',
method: 'delete',
data:{
ids: noticeId
}
})
}

View File

@ -12,7 +12,7 @@ export function listPost(query) {
// 查询岗位详细
export function getPost(postId) {
return request({
url: '/system/post/' + postId,
url: '/system/post?postId=' + postId,
method: 'get'
})
}
@ -38,7 +38,10 @@ export function updatePost(data) {
// 删除岗位
export function delPost(postId) {
return request({
url: '/system/post/' + postId,
method: 'delete'
url: '/system/post',
method: 'delete',
data: {
ids: postId
}
})
}