mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
2022年5月29日从svn移到git
This commit is contained in:
47
src/api/modules/dict.js
Normal file
47
src/api/modules/dict.js
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user