Browse Source

调整样式

feature
lucky 4 years ago
parent
commit
89bd83099a
  1. 19
      src/components/curve.vue
  2. 10
      src/components/heat.vue

19
src/components/curve.vue

@ -41,6 +41,8 @@ export default defineComponent({
weightOfInLists.forEach((item) => { weightOfInLists.forEach((item) => {
arr.push(item.weightOfIn); arr.push(item.weightOfIn);
}); });
} else {
arr = [152, 130, 158, 146, 128, 166];
} }
return arr; return arr;
}, },
@ -53,6 +55,8 @@ export default defineComponent({
weightOfOutLists.forEach((item) => { weightOfOutLists.forEach((item) => {
arr.push(item.weightOfOut); arr.push(item.weightOfOut);
}); });
} else {
arr = [56, 38, 64, 100, 98, 79];
} }
return arr; return arr;
}, },
@ -65,6 +69,15 @@ export default defineComponent({
weightOfInLists.forEach((item) => { weightOfInLists.forEach((item) => {
arr.push(item.time); arr.push(item.time);
}); });
} else {
arr = [
"2021-05",
"2021-04",
"2021-03",
"2021-02",
"2021-01",
"2020-12",
];
} }
return arr; return arr;
}, },
@ -155,10 +168,10 @@ export default defineComponent({
}, },
}, },
grid: { grid: {
left: "0", left: "6%",
right: "6%", right: "6%",
top: "15%", top: "25%",
bottom: "15%", bottom: "5%",
containLabel: true, containLabel: true,
}, },
xAxis: { xAxis: {

10
src/components/heat.vue

@ -1,8 +1,8 @@
<template> <template>
<div class="box-bg"> <div class="box-bg">
<img :src="src" :style="{ width: '426rem', height: 'auto',margin: '10rem 35rem' }" v-if="src" /> <img :src="src" class="img" v-if="src" />
<img <img
:style="{ width: '426rem', height: 'auto',margin: '10rem 35rem' }" class="img"
src="https://www.tall.wiki/gateway/logistics/uploads//file/2021-05-14/162097666558154.png" src="https://www.tall.wiki/gateway/logistics/uploads//file/2021-05-14/162097666558154.png"
v-else v-else
/> />
@ -65,4 +65,10 @@ export default defineComponent({
width: 1440rem; width: 1440rem;
height: 1110rem; height: 1110rem;
} }
.img {
width: 426rem;
height: 200rem;
margin: 10rem 35rem;
}
</style> </style>

Loading…
Cancel
Save