字典页面与字典信息页面完成增删改查
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user