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 }