You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
import request from '@/utils/request'
|
|
|
|
export function FetchDictsList(params) {
|
|
return request({
|
|
url: 'api/dictionary/initDictionaryList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/dictionary/editDictionary',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(data) {
|
|
return request({
|
|
url: 'api/dictionary/delDictionary',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/dictionary/editDictionary',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function FetchDictionaryTree(params) {
|
|
return request({
|
|
url: 'api/dictionary/initDictionaryTree',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function FetchSonDictionaryList(params) {
|
|
return request({
|
|
url: 'api/dictionary/getSonDictionaryList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 快速筛选
|
|
export function FetchDictionaryTreeByCategoryId(params) {
|
|
return request({
|
|
url: 'api/dictionary/getDictionaryTreeByCategoryId',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, FetchDictsList, FetchDictionaryTree, FetchSonDictionaryList, FetchDictionaryTreeByCategoryId }
|