|
@@ -174,11 +174,11 @@ Ext.define('saas.view.core.EChartsBase', {
|
|
|
|
|
|
|
|
me.removeEmptyChart();
|
|
me.removeEmptyChart();
|
|
|
|
|
|
|
|
- if(dataCount > 0) {
|
|
|
|
|
|
|
+ if(me.isEmpty(store)) {
|
|
|
|
|
+ me.appendEmptyChart();
|
|
|
|
|
+ }else {
|
|
|
option = me.createOption(store);
|
|
option = me.createOption(store);
|
|
|
me.echarts.setOption(option);
|
|
me.echarts.setOption(option);
|
|
|
- }else {
|
|
|
|
|
- me.appendEmptyChart();
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -204,6 +204,11 @@ Ext.define('saas.view.core.EChartsBase', {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ isEmpty: function(store) {
|
|
|
|
|
+ var dataCount = store.getCount();
|
|
|
|
|
+ return dataCount <= 0;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
createOption: function(store) {
|
|
createOption: function(store) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|