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.
51 lines
1006 B
51 lines
1006 B
import request from '@/utils/request'
|
|
|
|
export function getDictsList(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 default { add, edit, del, getDictsList, FetchDictionaryTree, FetchSonDictionaryList }
|