调整食谱信息顺序

This commit is contained in:
huangdeliang
2021-03-22 17:57:44 +08:00
parent 8328cbab3a
commit 6d912988ac
6 changed files with 21 additions and 433 deletions

View File

@ -70,7 +70,7 @@ export default {
this.resetCurrentDay({ currentDay: -1 });
},
getTooltipArr(params) {
console.log(params);
// console.log(params);
let tooltips;
const { name, marker, percent, value } = params;
switch (this.type) {
@ -101,7 +101,7 @@ export default {
return tooltips.join("</br>");
},
updateChart(source) {
console.log(source);
// console.log(source);
const total = source.reduce((acc, cur) => acc + cur[1], 0);
this.chart.clear();
const option = {

View File

@ -95,6 +95,7 @@ export default {
</script>
<style lang="scss" scoped>
.daily_analyze_com_wrapper {
width: 100%;
position: relative;
& > div:not(:nth-child(1)) {
margin-top: 12px;