Commit 88adb1a8 authored by leiqingsong's avatar leiqingsong

优化

parent 7e31ea6e
<template> <template>
<div class="all-income"> <div class="all-income">
<div v-for="item in incomeList" :key="item.id" class="list-item"> <template v-if="incomeList.length > 0">
<span style="color:#333333">{{ item.yearMonth }}</span> <div v-for="item in incomeList" :key="item.id" class="list-item">
<span>{{ item.income }}</span> <span style="color:#333333">{{ item.yearMonth }}</span>
</div> <span>{{ item.income }}</span>
</div>
</template>
<p v-else class="no-data">
暂无数据~
</p>
</div> </div>
</template> </template>
...@@ -17,7 +22,7 @@ export default { ...@@ -17,7 +22,7 @@ export default {
incomeList: [] incomeList: []
}; };
}, },
monted() { mounted() {
this.getAllRecord(); this.getAllRecord();
}, },
methods: { methods: {
...@@ -51,4 +56,8 @@ export default { ...@@ -51,4 +56,8 @@ export default {
font-size: 16px; font-size: 16px;
background-color: #ffffff; background-color: #ffffff;
} }
.no-data {
text-align: center;
font-size: 12px;
}
</style> </style>
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