字典页面与字典信息页面完成增删改查

This commit is contained in:
chenchun
2022-09-10 20:25:39 +08:00
parent 9f23b911c1
commit b5ad7a1721
8 changed files with 96 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ export function listData(query) {
// 查询字典数据详细
export function getData(dictCode) {
return request({
url: '/system/dict/data/' + dictCode,
url: '/dictionaryInfo/getById/' + dictCode,
method: 'get'
})
}
@@ -37,7 +37,7 @@ export function addData(data) {
// 修改字典数据
export function updateData(data) {
return request({
url: '/system/dict/data',
url: '/dictionaryInfo/update',
method: 'put',
data: data
})

View File

@@ -29,7 +29,7 @@ export function addType(data) {
// 修改字典类型
export function updateType(data) {
return request({
url: '/system/dict/type',
url: '/dictionary/update',
method: 'put',
data: data
})
@@ -37,9 +37,14 @@ export function updateType(data) {
// 删除字典类型
export function delType(dictId) {
if("string"==typeof(dictId))
{
dictId=[dictId];
}
return request({
url: '/system/dict/type/' + dictId,
method: 'delete'
url: '/dictionary/delList',
method: 'delete',
data:dictId
})
}