mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
47 lines
1022 B
JavaScript
47 lines
1022 B
JavaScript
|
|
import ajax from '@/utils/xajax.js'
|
|
|
|
//param key 字典后缀名
|
|
// 案例的组织机构字典 org_domain
|
|
//案例的内容分类字段 major_type
|
|
// 传对应key查出对应值
|
|
const items=function(key){
|
|
return ajax.get('/xboe/m/dictionary/items?key='+key);
|
|
}
|
|
// 修改
|
|
//@param key 对应字段后缀
|
|
//
|
|
// 案例的组织机构字典 org_domain key
|
|
//案例的内容分类字段 major_type key
|
|
// @param code
|
|
// @param name
|
|
// @param filter
|
|
// @param group
|
|
// @param explanation
|
|
// @param norder
|
|
// @param deletable
|
|
// @param deleted
|
|
//
|
|
const update=function(data){
|
|
return ajax.post('/xboe/m/dictionary/update',data);
|
|
}
|
|
|
|
const save=function(data){
|
|
return ajax.post('/xboe/m/dictionary/save',data);
|
|
}
|
|
|
|
const del=function(key,id){
|
|
return ajax.get(`/xboe/m/dictionary/delete?key=${key}&&id=${id}`);
|
|
}
|
|
|
|
const findAll=function(){
|
|
return ajax.get('/xboe/m/dictionary/findAll');
|
|
}
|
|
|
|
export default{
|
|
items,
|
|
update,
|
|
del,
|
|
save,
|
|
findAll
|
|
} |