Commit 66ae1c3d by 李伟康

修改样式

1 parent 288386d2
...@@ -13,9 +13,13 @@ ...@@ -13,9 +13,13 @@
</div> </div>
<div class="total-number-box flex"> <div class="total-number-box flex">
<transition-number <transition-number
:num="pageData.total.totalNum" :num="test"
idKey="number-total" idKey="number-total"
/> />
<!-- <transition-number
:num="pageData.total.totalNum"
idKey="number-total"
/> -->
<transition-number <transition-number
:num="pageData.total.incrNum" :num="pageData.total.incrNum"
idKey="number-incr" idKey="number-incr"
...@@ -247,7 +251,7 @@ export default { ...@@ -247,7 +251,7 @@ export default {
{ tabType } = this { tabType } = this
lineData.map(e => { lineData.map(e => {
let month = new Date(e.statDate).getMonth() let month = new Date(e.statDate).getMonth()
xData.push(queryType == 0 ? `${month == 0 ? '1月' : `${Number(month) + 1}月`}` : e.statDate) xData.push(queryType == 0 ? `${month == 0 ? '1月' : `${Number(month) + 1}月`}` : new Date(e.statDate).format('MM-dd'))
data.push(e.totalNum) data.push(e.totalNum)
}) })
let options = { let options = {
...@@ -268,10 +272,11 @@ export default { ...@@ -268,10 +272,11 @@ export default {
type: 'category', type: 'category',
axisLabel: { axisLabel: {
show: true, show: true,
interval: queryType == 0 ? 0 : 7, interval: queryType == 0 ? 0 : 6,
color: '#606266', color: '#606266',
fontSize: '0.8em', fontSize: '0.8em',
margin: 20 margin: 20,
showMaxLabel: true
}, },
data: xData, data: xData,
axisTick: { axisTick: {
...@@ -346,7 +351,7 @@ export default { ...@@ -346,7 +351,7 @@ export default {
grid-template-columns: 41.5% 57.5%; grid-template-columns: 41.5% 57.5%;
justify-content: space-between; justify-content: space-between;
margin-bottom: 0.5vh; margin-bottom: 0.5vh;
overflow: hidden;
.tab-total-box { .tab-total-box {
height: 100%; height: 100%;
padding-left: 8px; padding-left: 8px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!