|
|
@@ -202,42 +202,42 @@ Ext.define('saas.view.home.HomeModel', {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- purchase_trend: {
|
|
|
- fields: ['x', 'y'],
|
|
|
- autoLoad: true,
|
|
|
- proxy: {
|
|
|
- type: 'ajax',
|
|
|
- // url: 'http://192.168.253.58:8920/homePage/purchaseData?sixMonths=true',
|
|
|
- url: '/api/commons/homePage/purchaseData?sixMonths=true',
|
|
|
- timeout: 8000,
|
|
|
- actionMethods: {
|
|
|
- read: 'GET'
|
|
|
- },
|
|
|
- reader: {
|
|
|
- type: 'json',
|
|
|
- rootProperty: 'data',
|
|
|
- },
|
|
|
- listeners: {
|
|
|
- exception: function(proxy, response, operation, eOpts) {
|
|
|
- var p = Ext.getCmp('purchase_trend');
|
|
|
- p && p.setLoading(false);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- sorters: [
|
|
|
- { property: 'x', direction: 'ASC' }
|
|
|
- ],
|
|
|
- listeners: {
|
|
|
- beforeload: function() {
|
|
|
- var p = Ext.getCmp('purchase_trend');
|
|
|
- p && p.setLoading(true);
|
|
|
- },
|
|
|
- load: function(s, d) {
|
|
|
- var p = Ext.getCmp('purchase_trend');
|
|
|
- p && p.setLoading(false);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ // purchase_trend: {
|
|
|
+ // fields: ['x', 'y'],
|
|
|
+ // autoLoad: true,
|
|
|
+ // proxy: {
|
|
|
+ // type: 'ajax',
|
|
|
+ // // url: 'http://192.168.253.58:8920/homePage/purchaseData?sixMonths=true',
|
|
|
+ // url: '/api/commons/homePage/purchaseData?sixMonths=true',
|
|
|
+ // timeout: 8000,
|
|
|
+ // actionMethods: {
|
|
|
+ // read: 'GET'
|
|
|
+ // },
|
|
|
+ // reader: {
|
|
|
+ // type: 'json',
|
|
|
+ // rootProperty: 'data',
|
|
|
+ // },
|
|
|
+ // listeners: {
|
|
|
+ // exception: function(proxy, response, operation, eOpts) {
|
|
|
+ // var p = Ext.getCmp('purchase_trend');
|
|
|
+ // p && p.setLoading(false);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // sorters: [
|
|
|
+ // { property: 'x', direction: 'ASC' }
|
|
|
+ // ],
|
|
|
+ // listeners: {
|
|
|
+ // beforeload: function() {
|
|
|
+ // var p = Ext.getCmp('purchase_trend');
|
|
|
+ // p && p.setLoading(true);
|
|
|
+ // },
|
|
|
+ // load: function(s, d) {
|
|
|
+ // var p = Ext.getCmp('purchase_trend');
|
|
|
+ // p && p.setLoading(false);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
|
|
|
stock_amount: {
|
|
|
fields: ['x', 'y'],
|