配置管理增删改查

This commit is contained in:
陈淳
2022-09-23 18:46:37 +08:00
parent 261d9fcd79
commit 9149d6de9a
11 changed files with 217 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询参数列表
export function listConfig(query) {
return request({
url: '/system/config/list',
url: '/config/pageList',
method: 'get',
params: query
})
@@ -12,7 +12,7 @@ export function listConfig(query) {
// 查询参数详细
export function getConfig(configId) {
return request({
url: '/system/config/' + configId,
url: '/config/getById/' + configId,
method: 'get'
})
}
@@ -28,7 +28,7 @@ export function getConfigKey(configKey) {
// 新增参数配置
export function addConfig(data) {
return request({
url: '/system/config',
url: '/config/add',
method: 'post',
data: data
})
@@ -37,7 +37,7 @@ export function addConfig(data) {
// 修改参数配置
export function updateConfig(data) {
return request({
url: '/system/config',
url: '/config/update',
method: 'put',
data: data
})
@@ -45,9 +45,15 @@ export function updateConfig(data) {
// 删除参数配置
export function delConfig(configId) {
if("string"==typeof(configId))
{
configId=[configId];
}
return request({
url: '/system/config/' + configId,
method: 'delete'
url: '/config/delList',
method: 'delete',
data:configId
})
}