优化首页

This commit is contained in:
java110 2020-08-22 15:22:31 +08:00
parent d916f3e399
commit ea06fcf74b
3 changed files with 36 additions and 54 deletions

View File

@ -3,63 +3,14 @@
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>我的待办</h5>
<h5>办已</h5>
<div class="ibox-tools" style="top: 10px;">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">投诉待办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">报修待办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">采购待办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">领用待办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">投诉已办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">报修已办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">采购已办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="col-form-label">领用已办:</label>
<label class=""><span class="text-success font-bold">0</span></label>
</div>
</div>
<div id="myToDo" style="height:350px;width: 100%;">
</div>
</div>
</div>

View File

@ -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);

View File

@ -156,7 +156,7 @@
{
name: _title,
type: 'pie',
radius: [20, 95],
radius: ['20%', '75%'],
center: ['50%', '50%'],
roseType: 'area',
data: [