diff --git a/public/components/property/indexArrears/indexArrears.js b/public/components/property/indexArrears/indexArrears.js
index 525922606..6b454252c 100644
--- a/public/components/property/indexArrears/indexArrears.js
+++ b/public/components/property/indexArrears/indexArrears.js
@@ -15,6 +15,7 @@
$that._listRepairCount();
$that._listPurchaseCount();
$that._listCollectionCount();
+ $that._initMyEcharts();
},
_initEvent: function () {
@@ -102,7 +103,37 @@
console.log('请求失败处理');
}
);
- }
+ },
+ _initMyEcharts: function () {
+ let dom = document.getElementById("myToDo");
+ let myChart = echarts.init(dom);
+ let option = null;
+ option = {
+ legend: {},
+ tooltip: {},
+ color: ['#FFDAB9','#66CDAA'],
+ dataset: {
+ source: [
+ ['product', '待办', '已办'],
+ ['投诉', 43.3, 85.8],
+ ['报修', 83.1, 73.4],
+ ['采购', 86.4, 65.2],
+ ['领用', 72.4, 53.9]
+ ]
+ },
+ xAxis: {type: 'category'},
+ yAxis: {},
+ series: [
+ {type: 'bar'},
+ {type: 'bar'}
+ ]
+ };
+
+ if (option && typeof option === "object") {
+ myChart.setOption(option, true);
+ }
+
+ },
}
})
})(window.vc);
\ No newline at end of file
diff --git a/public/pages/property/indexContext/indexContext.js b/public/pages/property/indexContext/indexContext.js
index 4b3206b56..f890201da 100644
--- a/public/pages/property/indexContext/indexContext.js
+++ b/public/pages/property/indexContext/indexContext.js
@@ -156,7 +156,7 @@
{
name: _title,
type: 'pie',
- radius: [20, 95],
+ radius: ['20%', '75%'],
center: ['50%', '50%'],
roseType: 'area',
data: [