Models.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Ext.define('saas.view.statistical.Models', {
  2. extend: 'Ext.app.ViewModel',
  3. alias: 'viewmodel.statistical',
  4. stores: {
  5. personinfo: {
  6. model: 'saas.model.statistical.PersonInfo',
  7. autoLoad: true,
  8. proxy: {
  9. type: 'ajax',
  10. // url: 'http://10.1.80.33:9040/data/getAccount',
  11. url: '/api/operation/data/getAccount',
  12. timeout: 8000,
  13. actionMethods: {
  14. read: 'GET'
  15. },
  16. reader: {
  17. type: 'json',
  18. rootProperty: 'data.list',
  19. totalProperty: 'data.total',
  20. }
  21. }
  22. },
  23. companyinfo: {
  24. model: 'saas.model.statistical.CompanyInfo',
  25. autoLoad: true,
  26. proxy: {
  27. type: 'ajax',
  28. // url: 'http://10.1.80.33:9040/data/getCompany',
  29. url: '/api/operation/data/getCompany',
  30. timeout: 8000,
  31. actionMethods: {
  32. read: 'GET'
  33. },
  34. reader: {
  35. type: 'json',
  36. rootProperty: 'data.list',
  37. totalProperty: 'data.total',
  38. }
  39. }
  40. },
  41. loginlog: {
  42. model: 'saas.model.statistical.LoginLog',
  43. autoLoad: true,
  44. proxy: {
  45. type: 'ajax',
  46. // url: 'http://10.1.80.33:9040/data/getLogin',
  47. url: '/api/operation/data/getLogin',
  48. timeout: 8000,
  49. actionMethods: {
  50. read: 'GET'
  51. },
  52. reader: {
  53. type: 'json',
  54. rootProperty: 'data.list',
  55. totalProperty: 'data.total',
  56. },
  57. }
  58. },
  59. }
  60. });