Models.js 732 B

12345678910111213141516171819202122232425
  1. Ext.define('saas.view.cuservice.Models', {
  2. extend: 'Ext.app.ViewModel',
  3. alias: 'viewmodel.cuservice',
  4. stores: {
  5. feedback: {
  6. model: 'saas.model.cuservice.Feedback',
  7. autoLoad: true,
  8. proxy: {
  9. type: 'ajax',
  10. // url: 'http://10.1.80.33:9040/customerFeedBack/list',
  11. url: '/api/operation/customerFeedBack/list',
  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. }
  24. });