Browse Source

✨ feat: 电费变更加入余额

Pchen. 9 months ago
parent
commit
ea54da45e1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/pages/power/accountList.vue

+ 7 - 0
src/pages/power/accountList.vue

@@ -89,6 +89,9 @@
       <template #balance="{ record }">
       <template #balance="{ record }">
         ¥{{ record.balance }}
         ¥{{ record.balance }}
       </template>
       </template>
+      <template #old_balance="{ record }">
+        ¥{{ record.old_balance }}
+      </template>
       <template #change="{ record }">
       <template #change="{ record }">
         <a-tag :color="record.balance < record.old_balance ? 'red' : 'green'">¥{{ record.balance - record.old_balance
         <a-tag :color="record.balance < record.old_balance ? 'red' : 'green'">¥{{ record.balance - record.old_balance
         }}</a-tag>
         }}</a-tag>
@@ -203,6 +206,10 @@ const listColumns = [{
   title: '电费余额',
   title: '电费余额',
   slotName: 'balance',
   slotName: 'balance',
   width: 120
   width: 120
+}, {
+  title: '原余额',
+  slotName: 'old_balance',
+  width: 120
 }, {
 }, {
   title: '变动金额',
   title: '变动金额',
   slotName: 'change',
   slotName: 'change',