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.
41 lines
668 B
41 lines
668 B
import api from '@/utils/api'
|
|
|
|
export function add(data) {
|
|
return api({
|
|
url: '/dicData',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return api({
|
|
url: '/dicData',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(id) {
|
|
return api({
|
|
url: '/dicData/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
export function getAllDicData() {
|
|
return api({
|
|
url: '/dicData/getAll',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function getDicDataListByTypeName(params) {
|
|
return api({
|
|
url: '/dicData/getDicDataByTypeCode',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, getAllDicData }
|
|
|