2022年5月29日从svn移到git

This commit is contained in:
daihh
2022-05-29 18:56:34 +08:00
commit b050613020
488 changed files with 68444 additions and 0 deletions

View 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
}