Przeglądaj źródła

修改用户列表导出字段

wangzhiqiang 3 tygodni temu
rodzic
commit
d8f52605eb
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      src/views/main/userModule/userList.vue

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

@@ -47,7 +47,7 @@
             roundPrice(scope.row.nearlyIncome, 3)
           }} </template>
         </el-table-column>
-        <el-table-column prop="totalIncome" label="用户当日贡献" sortable width="140">
+        <el-table-column prop="todayIncome" label="用户当日贡献" sortable width="140">
           <template #default="scope">
             {{ roundPrice(scope.row.todayIncome === 0 ? '0.000' : scope.row.todayIncome ?? '0.000', 3) }}
           </template>
@@ -769,7 +769,8 @@ 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)}`,
+    todayIncome: `${roundPrice(item.todayIncome === 0 ? '0.000' : item.todayIncome ?? '0.000', 3)}`,
+    totalIncome: `${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}`
@@ -789,9 +790,10 @@ const tableHeader = {
   "nickName": "用户昵称",
   "userStatus": "用户状态",
   "ditchName": "渠道来源",
-  "todayVideo": "日视频播放数",
+  "todayVideo": "日视频播放数",
   "totalVideo": "视频播放总数",
-  "totalIncome": "用户贡献(当日/总共)",
+  "todayIncome": "用户当日贡献",
+  "totalIncome": "用户总贡献",
   "communicationOperator": "通信运营商",
   "loginRecordList": "用户设备",
   "deviceRepeatCount": "设备重复数量",