consulting-api.js 761 B

12345678910111213141516171819202122
  1. (function($){
  2. var consulting = {
  3. getList: function(data){
  4. return APIService.httpGet('/im_new/consult/getList', data);
  5. },
  6. getListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  7. method: 'get',
  8. url: APIService.server + 'im_new/consult/getList',
  9. contentType: "application/json",
  10. dataType: "json",
  11. ajaxOptions: {
  12. beforeSend: function(request) {
  13. var userAgent = APIService.userAgent;
  14. userAgent = JSON.stringify(userAgent);
  15. request.setRequestHeader("userAgent", userAgent);
  16. }
  17. }
  18. }
  19. };
  20. window.consultingAPI = consulting;
  21. })(jQuery)