UNPKG

xlb-main-login

Version:

``` yarn install ```

60 lines (51 loc) 1.56 kB
import { wei_url } from '@/api/config' import { axios } from '@/utils/request' /* ************************** 列表页 **************************** */ //获取sop列表 wei_url + '/v1/wechat/work/group-sop' export function wechatgetsoplist(params) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop', method: 'get', params, }) } //状态开启关闭 export function wechatstatussoplist(id, enable) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop/' + id + '/enable/' + enable, method: 'put', }) } //删除sop export function wechatdelsop(id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop/' + id + '?type=custom-sop', method: 'delete', }) } /* ************************** 新增、编辑页 **************************** */ //新增sop export function wechataddsop(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop', method: 'post', data, }) } //编辑sop export function wechateditsop(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop', method: 'put', data, }) } //查询sop export function wechatlooksop(id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop/' + id + '?type=custom-sop', method: 'get', }) }