UNPKG

ty-mobile-uni

Version:

uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水

51 lines (44 loc) 1.15 kB
import Vue from 'vue'; //查询列表 export function getList(data,apiObj) { const {url,methodType}=apiObj; return Vue.prototype.request.init({ url: url||'/association/memberorgContact/list', method: methodType||'get', data }) } //获取详情 export function getDetail(id,apiObj) { const {url,methodType}=apiObj; return Vue.prototype.request.init({ url: (url||'/association/memberorgContact/getInfo/')+id, method: methodType||'get' }) } //保存数据 export function save(data,apiObj) { const {url,methodType}=apiObj; return Vue.prototype.request.init({ url: url||'/association/memberorgContact/add', method:methodType||'post', data }) } //修改数据 export function update(data,apiObj) { const {url,methodType}=apiObj; return Vue.prototype.request.init({ url: url||'/association/memberorgContact/edit', method:methodType|| 'post', data }) } //删除数据 export function del(id,apiObj) { const {url,methodType}=apiObj; return Vue.prototype.request.init({ url: (url||'/association/memberorgContact/remove/')+id, method: methodType||'post' }) }