wwbenchApi.js 644 Bytes
const url = '/rop-scrm-wwbench/router'
export default {
  /**统计我的待办数据 */
  getTaskData (data = {}) {
    data.method = 'scrm.api.wwbench.user.task.list.count'
    return window.$HTTP({
      url,
      data
    })
  },
  /** 查询我的待办 */
  getTasksList (data = {}) {
    data.method = 'scrm.api.wwbench.user.task.list.get'
    data.taskTypes = [3, 4, 5, 6, 8]
    return window.$HTTP({
      url,
      data,
      returnAll: true
    })
  },
  /**更新待办状态  */
  updateTasks (data = {}) {
    data.method = 'scrm.api.wwbench.user.task.list.update'
    return window.$HTTP({
      url,
      data
    })
  }
}