Commit 821800af authored by feiwenli's avatar feiwenli

修改首页数轴

parent 0ffbf084
......@@ -11,7 +11,7 @@
window.SITE_CONFIG['version'] = 'v1.0.0';
window.SITE_CONFIG['nodeEnv'] = '<%= process.env.VUE_APP_NODE_ENV %>';
window.SITE_CONFIG['apiURL'] = 'http://10.55.125.88:8080/hmit-admin';
// window.SITE_CONFIG['apiURL'] = 'http://119.3.50.187:8011/hmit-admin';
//window.SITE_CONFIG['apiURL'] = 'http://119.3.50.187:8011/hmit-admin';
//window.SITE_CONFIG['apiURL'] = 'http://192.168.10.67:8080/hmit-admin'; // api请求地址
window.SITE_CONFIG['storeState'] = {}; // vuex本地储存初始化状态(用于不刷新页面的情况下,也能重置初始化项目中所有状态)
window.SITE_CONFIG['contentTabDefault'] = { // 内容标签页默认属性对象
......
......@@ -521,20 +521,22 @@ export default {
let badpercentData = [];
console.log("ooopppp", xAxisData, goodnumData, middlenumData, badnumData);
this.listByMonth.forEach((ele) => {
xAxisData = xAxisData.concat(ele.createDate).reverse();
goodnumData = goodnumData.concat(ele.good).reverse();
middlenumData = middlenumData.concat(ele.medium).reverse();
badnumData = badnumData.concat(ele.badnum).reverse();
xAxisData = xAxisData.concat(ele.createDate);
goodnumData = goodnumData.concat(ele.good);
middlenumData = middlenumData.concat(ele.medium);
badnumData = badnumData.concat(ele.badnum);
let totle = ele.medium + ele.good + ele.bad;
goodpercentData = goodpercentData
.concat(((ele.good / totle) * 100).toFixed(1))
.reverse();
middlepercentData = middlepercentData
.concat(((ele.medium / totle) * 100).toFixed(1))
.reverse();
badpercentData = badpercentData
.concat(((ele.bad / totle) * 100).toFixed(1))
.reverse();
goodpercentData = goodpercentData.concat(
((ele.good / totle) * 100).toFixed(1)
);
middlepercentData = middlepercentData.concat(
((ele.medium / totle) * 100).toFixed(1)
);
badpercentData = badpercentData.concat(
((ele.bad / totle) * 100).toFixed(1)
);
});
console.log("dddddd", xAxisData, goodnumData, middlenumData, badnumData);
this.optionHandlingSituationZhe = {
......@@ -683,10 +685,10 @@ export default {
badData = badData.push(ele.bad).reverse();
}); */
this.listByMonth.forEach((ele) => {
legendData = legendData.concat(ele.createDate).reverse();
goodData = goodData.concat(ele.good).reverse();
middleData = middleData.concat(ele.medium).reverse();
badData = badData.concat(ele.bad).reverse();
legendData = legendData.concat(ele.createDate);
goodData = goodData.concat(ele.good);
middleData = middleData.concat(ele.medium);
badData = badData.concat(ele.bad);
});
console.log("么么么么么", badData);
this.optionHandlingSituationZhu = {
......
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