字典信息表查询删除接口

This commit is contained in:
chenchun
2022-09-10 20:05:45 +08:00
parent 1db8bb4d13
commit 9f23b911c1
14 changed files with 266 additions and 37 deletions

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询字典数据列表
export function listData(query) {
return request({
url: '/system/dict/data/list',
url: '/dictionaryInfo/pageList',
method: 'get',
params: query
})
@@ -20,7 +20,7 @@ export function getData(dictCode) {
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
return request({
url: '/dictionary/GetListByType/' + dictType,
url: '/dictionaryInfo/GetListByType/' + dictType,
method: 'get'
})
}
@@ -28,7 +28,7 @@ export function getDicts(dictType) {
// 新增字典数据
export function addData(data) {
return request({
url: '/system/dict/data',
url: '/dictionaryInfo/add',
method: 'post',
data: data
})
@@ -45,8 +45,14 @@ export function updateData(data) {
// 删除字典数据
export function delData(dictCode) {
if("string"==typeof(dictCode))
{
dictCode=[dictCode];
}
return request({
url: '/system/dict/data/' + dictCode,
method: 'delete'
url: '/dictionaryInfo/delList',
method: 'delete',
data:dictCode
})
}

View File

@@ -12,7 +12,7 @@ export function listType(query) {
// 查询字典类型详细
export function getType(dictId) {
return request({
url: '/system/dict/type/' + dictId,
url: '/dictionary/getById/' + dictId,
method: 'get'
})
}
@@ -54,7 +54,7 @@ export function refreshCache() {
// 获取字典选择框列表
export function optionselect() {
return request({
url: '/system/dict/type/optionselect',
url: '/dictionary/getList',
method: 'get'
})
}