Переглянути джерело

流水-新增收入总额展示

panyong 3 роки тому
батько
коміт
3e0d57ea67

+ 3 - 0
htmldev/manage/src/mixin/page.js

@@ -33,6 +33,9 @@ export default {
         if (this.tableUrl === '/v1/user/song/list') {
           this.user_song_name = data.user_song_name
         }
+        if (this.tableUrl === '/v1/user/record/price/List') {
+          this.total_price = data.total_price
+        }
       }
     },
     handleCurrentChange (page) {

+ 6 - 1
htmldev/manage/src/views/fms/check/index.vue

@@ -29,6 +29,10 @@
         </el-form-item>
       </el-form>
     </div>
+    <div>
+      <span style="font-weight: bold;">收入总额:</span>
+      <span>¥{{ total_price | fen2Yuan }}</span>
+    </div>
     <el-table
       :data="tableData"
       stripe
@@ -76,7 +80,8 @@ export default {
       time: [],
       searchForm: {},
       tableData: [],
-      tableUrl: '/v1/user/record/price/List'
+      tableUrl: '/v1/user/record/price/List',
+      total_price: 0
     }
   },
   mounted () {