Browse Source

接口调整

zhuth 7 years ago
parent
commit
795d06b046
1 changed files with 13 additions and 19 deletions
  1. 13 19
      frontend/saas-web/app/view/home/HomeModel.js

+ 13 - 19
frontend/saas-web/app/view/home/HomeModel.js

@@ -2,6 +2,10 @@ Ext.define('saas.view.home.HomeModel', {
     extend: 'Ext.app.ViewModel',
     alias: 'viewmodel.home',
 
+    data: {
+        month_sale_sum: '0'
+    },
+
     stores: {
         infoData: {
             model: 'saas.model.home.Info',
@@ -9,7 +13,7 @@ Ext.define('saas.view.home.HomeModel', {
             proxy: {
                 type: 'ajax',
                 // url: 'http://192.168.253.58:8920/homePage/liveData',
-                url: '/api/common/homePage/liveData',
+                url: '/api/commons/homePage/liveData',
                 reader: {
                     type: 'json'
                 },
@@ -283,24 +287,14 @@ Ext.define('saas.view.home.HomeModel', {
         pieData: {
             model: 'saas.model.chart.DataXY',
             data: [{
-                "xvalue": "华商龙",
-                "yvalue": 200.19
-            }, {
-                "xvalue": "维泰",
-                "yvalue": 180.17
-            }, {
-                "xvalue": "数码",
-                "yvalue": 150.15
-            }, {
-                "xvalue": "优企",
-                "yvalue": 150.15
-            }, {
-                "xvalue": "云服",
-                "yvalue": 120.12
-            }, {
-                "xvalue": "其他",
-                "yvalue": 230.22
-            }]
+                "xvalue": "无",
+                "yvalue": 1
+            }],
+            listeners: {
+                load: function() {
+                    console.log();
+                }
+            }
         },
 
         areaData: {