You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.2 KiB

5 years ago
  1. import axios from '@/utils/request'
  2. import config from '@/common/config'
  3. let base=config.getWorkflowBasePath();
  4. //默认只开放普通查询,所有查询,只要上传 分页参数 {currentPage:1,pageSize:10,total:0},后台都会自动按分页查询 其它 api用到再打开,没用到的api请注释掉,
  5. //普通查询
  6. export const listComment = params => { return axios.get(`${base}/mdp/workflow/hi/comment/list`, { params: params }); };
  7. //关键字模糊查询 {字段1:v1,字段2:v1,字段3:v1},字段驼峰命名,条件之间默认为or关系
  8. //export const listCommentKey = params => { return axios.get(`${base}/mdp/workflow/hi/comment/listKey`, { params: params }); };
  9. //删除一个
  10. export const delComment = params => { return axios.post(`${base}/mdp/workflow/hi/comment/del`,params); };
  11. //批量删除
  12. export const batchDelComment = params => { return axios.post(`${base}/mdp/workflow/hi/comment/batchDel`, params); };
  13. //修改一个
  14. export const editComment = params => { return axios.post(`${base}/mdp/workflow/hi/comment/edit`, params); };
  15. //新增一个
  16. export const addComment = params => { return axios.post(`${base}/mdp/workflow/hi/comment/add`, params); };