提交 fe1fc3ee authored 作者: 吴德鹏's avatar 吴德鹏

修改一个小bug

上级 53c4caa5
......@@ -91,4 +91,4 @@ redis.testOnReturn=false
redis.testWhileIdle=true
redis.timeBetweenEvictionRunsMillis=300000
redis.blockWhenExhausted=false
redis.jmxEnabled=false
\ No newline at end of file
redis.jmxEnabled=false
......@@ -602,7 +602,7 @@
<i-button type="warning" @click="changeItemsTop"><i class="fa fa-arrow-down"></i>&nbsp;取消置顶
</i-button>
<i-button type="success" @click="changeItemsunTop"><i class="fa fa-arrow-up"></i>批量置顶</i-button>
<i-button type="success" @click="changeItemsunTop"><i class="fa fa-arrow-up"></i>置顶</i-button>
</div>
</div>
......
......@@ -632,73 +632,73 @@ let app = new Vue({
};
app.setOption(option);
},
initEchartsCategory() {
var app = echarts.init(document.getElementById('category-echarts'));
let _this = this;
option = {
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
legend: {
orient: 'vertical',
left: 'right',
top: 'center',
icon: "circle",
data: ['MEN', 'WOMEN', 'Afri Home', 'Hair', 'Sport'],
align: 'left',
textStyle: {
rich: {
a: {
width: 60,
fontSize: 14,
color: "rgba(0, 0, 0, 0.647058823529412)",
padding: 10,
},
b: {
width: 40,
fontSize: 14,
color: "rgba(0, 0, 0, 0.3)"
},
c: {
width: 40,
fontSize: 14,
color: "#333"
}
}
},
formatter: function (name) {
var data = _this.initEchartsCategoryData[0].data;
var total = 0;
var tarValue;
var price;
for (var i = 0, l = data.length; i < l; i++) {
total += data[i].value;
if (data[i].name == name) {
tarValue = data[i].value;
}
price = data[i].price;
}
var p = Math.round(((tarValue / total) * 100)).toFixed(2);
let arr = ["{a|" + name.slice(0, 4) + "..}{b|" + p + "%} {c|¥" + price + "}"]
return arr;
},
// show:false
},
grid: {
x: 0,
y: 0,
x2: 0,
y2: 0,
borderWidth: 1
},
series: [...this.initEchartsCategoryData]
};
app.setOption(option);
},
// initEchartsCategory() {
// var app = echarts.init(document.getElementById('category-echarts'));
// let _this = this;
// option = {
//
// tooltip: {
// trigger: 'item',
// formatter: '{a} <br/>{b}: {c} ({d}%)'
// },
// legend: {
// orient: 'vertical',
// left: 'right',
// top: 'center',
// icon: "circle",
// data: ['MEN', 'WOMEN', 'Afri Home', 'Hair', 'Sport'],
// align: 'left',
// textStyle: {
// rich: {
// a: {
// width: 60,
// fontSize: 14,
// color: "rgba(0, 0, 0, 0.647058823529412)",
// padding: 10,
//
// },
// b: {
// width: 40,
//
// fontSize: 14,
// color: "rgba(0, 0, 0, 0.3)"
// },
// c: {
// width: 40,
// fontSize: 14,
// color: "#333"
// }
// }
// },
// formatter: function (name) {
// var data = _this.initEchartsCategoryData[0].data;
// var total = 0;
// var tarValue;
// var price;
// for (var i = 0, l = data.length; i < l; i++) {
// total += data[i].value;
// if (data[i].name == name) {
// tarValue = data[i].value;
// }
// price = data[i].price;
// }
// var p = Math.round(((tarValue / total) * 100)).toFixed(2);
// let arr = ["{a|" + name.slice(0, 4) + "..}{b|" + p + "%} {c|¥" + price + "}"]
// return arr;
// },
// // show:false
// },
// grid: {
// x: 0,
// y: 0,
// x2: 0,
// y2: 0,
// borderWidth: 1
// },
// series: [...this.initEchartsCategoryData]
// };
// app.setOption(option);
// },
changeMiddelActive(element, index) {
this.$refs.serviceStatusClear.clearSingleSelect();
this.show = true;
......@@ -889,9 +889,9 @@ let app = new Vue({
this.initEchartsPV();
this.initEchartsPayTheAmount();
this.initEchartsMiddle();
this.initEchartsMiddlebottomUserSearchSum();
this.initEchartsMiddlebottomUserSearchPerCapita();
this.initEchartsCategory();
// this.initEchartsMiddlebottomUserSearchSum();
// this.initEchartsMiddlebottomUserSearchPerCapita();
// this.initEchartsCategory();
this.getOrderNum();
this.getOrderPaidNum();
this.getOrderRate();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论