mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
36 lines
746 B
JavaScript
36 lines
746 B
JavaScript
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
|
|
} |