Commit af96a222 authored by 曹雷's avatar 曹雷

统计页面调整

parent ae27cc4f
...@@ -486,14 +486,17 @@ ...@@ -486,14 +486,17 @@
success: function (result) { success: function (result) {
_this.nums = result.data.all_auth; _this.nums = result.data.all_auth;
_this.numsJcjy = result.data.cas_edu_auth; _this.numsJcjy = result.data.cas_edu_auth;
_this.numsIdpList = result.data.area_auth; _this.numsQp = esult.data.qp_auth;
var legend = [], data = []; _this.numsSy = esult.data.operator_auth;
for (var i = 0; i < result.data.area_auth.length; i++) {
var element = result.data.area_auth[i]; // _this.numsIdpList = result.data.area_auth;
legend.push(element.name); // var legend = [], data = [];
data.push({ value: element.count, name: element.name }) // for (var i = 0; i < result.data.area_auth.length; i++) {
} // var element = result.data.area_auth[i];
_this.numsIdpList = data.filter(element => { return element.value > 0 }); // legend.push(element.name);
// data.push({ value: element.count, name: element.name })
// }
// _this.numsIdpList = data.filter(element => { return element.value > 0 });
// optionNums.series[0].data = data // optionNums.series[0].data = data
// myChartNums.setOption(optionNums); // myChartNums.setOption(optionNums);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment