Quellcode durchsuchen

用户列表新增前三日总收益

wangzhiqiang vor 1 Monat
Ursprung
Commit
c90c4ae6f5

+ 1 - 1
src/views/main/outBagModule/channelTypeAdmin.vue

@@ -174,7 +174,7 @@ const edit = (row) => {
     layer.value.edit = true
     formEdit.value.ditchId = row.ditchId
     formEdit.value.ditchName = row.ditchName
-    formEdit.value.ditchType = row.ditchType
+    formEdit.value.ditchType = Number(row.appType) || undefined
   } else {
     layer.value.title = '新增渠道类型'
     layer.value.edit = false

+ 6 - 1
src/views/main/userModule/userList.vue

@@ -42,6 +42,11 @@
         <el-table-column prop="ditchName" label="渠道来源" width="150" />
         <el-table-column prop="todayVideo" label="今日视频播放数" width="130" />
         <el-table-column prop="totalVideo" label="视频播放总数" width="110" />
+        <el-table-column prop="nearlyIncome" label="前三日总收益" width="110">
+          <template #default="scope">{{
+            roundPrice(scope.row.nearlyIncome, 3)
+          }} </template>
+        </el-table-column>
         <el-table-column prop="totalIncome" label="用户贡献(当日/总共)" sortable width="200">
           <template #default="scope">
             {{ roundPrice(scope.row.todayIncome === 0 ? '0.000' : scope.row.todayIncome ?? '0.000', 3) }} /
@@ -754,7 +759,7 @@ const getData = (data) => {
     ditchName: item.ditchName,
     todayVideo: item.todayVideo,
     totalVideo: item.totalVideo,
-    totalIncome: `${roundPrice(item.todayIncome === 0 ? '0.000' : item.todayIncome ?? '0.000', 3)} / ${roundPrice(item.totalIncome === 0 ? '0.000' : item.totalIncome ?? '0.000',3)}`,
+    totalIncome: `${roundPrice(item.todayIncome === 0 ? '0.000' : item.todayIncome ?? '0.000', 3)} / ${roundPrice(item.totalIncome === 0 ? '0.000' : item.totalIncome ?? '0.000', 3)}`,
     communicationOperator: item.communicationOperator,
     loginRecordList: item.loginRecordList?.length
       ? `${item.loginRecordList[0].deviceBrand} ${item.loginRecordList[0].deviceModel}`