|
@@ -3,16 +3,16 @@
|
|
|
<div class="list-by_box" v-if="!$util.isEmpty(list.data)">
|
|
<div class="list-by_box" v-if="!$util.isEmpty(list.data)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
<t-tr header>
|
|
|
- <t-th v-for="(item, index) in columns" :key="index" :align="item.align">
|
|
|
|
|
- {{ item.name }}
|
|
|
|
|
- </t-th>
|
|
|
|
|
|
|
+ <t-th>时间</t-th>
|
|
|
|
|
+ <t-th><view style="width:210upx;">事项</view></t-th>
|
|
|
|
|
+ <t-th>金额</t-th>
|
|
|
|
|
+ <t-th>累计收入</t-th>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
<t-tr v-for="(item, index) in list.data" :key="index">
|
|
<t-tr v-for="(item, index) in list.data" :key="index">
|
|
|
- <t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color" >
|
|
|
|
|
- <view>
|
|
|
|
|
- {{ item[column.dataIndex] || "" }}
|
|
|
|
|
- </view>
|
|
|
|
|
- </t-td>
|
|
|
|
|
|
|
+ <t-td><view>{{item.addTime.substr(5,11)}}</view></t-td>
|
|
|
|
|
+ <t-td><view style="width:210upx;">{{item.event}}</view></t-td>
|
|
|
|
|
+ <t-td><view>{{parseFloat(item.amount)}}</view></t-td>
|
|
|
|
|
+ <t-td><view>{{parseFloat(item.totalIncome)}}</view></t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
</t-table>
|
|
</t-table>
|
|
|
</div>
|
|
</div>
|
|
@@ -33,12 +33,6 @@ export default {
|
|
|
mixins: [list],
|
|
mixins: [list],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- columns: [
|
|
|
|
|
- {name: "事项",dataIndex: "event",color: "info",align: "center"},
|
|
|
|
|
- {name: "金额",dataIndex: "amount",color: "info",align: "center"},
|
|
|
|
|
- {name: "累计收入",dataIndex: "totalIncome",color: "info",align: "center"},
|
|
|
|
|
- {name: "时间",dataIndex: "addTime",color: "info",align: "center"}
|
|
|
|
|
- ]
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -72,4 +66,4 @@ export default {
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|