mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
2022年5月29日从svn移到git
This commit is contained in:
36
src/api/modules/protocol.js
Normal file
36
src/api/modules/protocol.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
|
||||
//查看当前协议
|
||||
//type 查看的类型
|
||||
const query = function(type){
|
||||
return ajax.get('/xboe/m/assistance/protocol/query?type='+type);
|
||||
}
|
||||
//添加协议
|
||||
|
||||
const save = function(date){
|
||||
return ajax.postJson('/xboe/m/assistance/protocol/save',date);
|
||||
}
|
||||
|
||||
//修改协议
|
||||
const update = function(date){
|
||||
return ajax.postJson('/xboe/m/assistance/protocol/update',date);
|
||||
}
|
||||
|
||||
//删除协议
|
||||
const del = function(type){
|
||||
return ajax.get('/xboe/m/assistance/protocol/dalete?type='+type);
|
||||
}
|
||||
//查询全部
|
||||
//@ type 类型,可以不传
|
||||
const list = function(type){
|
||||
return ajax.get('/xboe/m/assistance/protocol/list?type='+type);
|
||||
}
|
||||
|
||||
export default{
|
||||
query,
|
||||
save,
|
||||
update,
|
||||
del,
|
||||
list
|
||||
}
|
||||
Reference in New Issue
Block a user