|
@@ -3,15 +3,15 @@
|
|
|
<!-- 菜单栏 -->
|
|
<!-- 菜单栏 -->
|
|
|
<From :form-items="dynamicFormItems" @formSubmitted="handleFormSubmitted" @formReset="handleFormReset" />
|
|
<From :form-items="dynamicFormItems" @formSubmitted="handleFormSubmitted" @formReset="handleFormReset" />
|
|
|
|
|
|
|
|
- <!-- 其他按钮 -->
|
|
|
|
|
- <div class="btn">
|
|
|
|
|
|
|
+ <!-- 其他按钮(隐藏) -->
|
|
|
|
|
+ <div v-if="false" class="btn">
|
|
|
<el-button type="" v-if="!formSearch.appIds && selectData.length > 0" @click="clearSelection">取消全选</el-button>
|
|
<el-button type="" v-if="!formSearch.appIds && selectData.length > 0" @click="clearSelection">取消全选</el-button>
|
|
|
<el-button type="primary" :disabled="!selectData.length > 0" @click="userCheck">批量审核</el-button>
|
|
<el-button type="primary" :disabled="!selectData.length > 0" @click="userCheck">批量审核</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
|
<div class="layout-container">
|
|
<div class="layout-container">
|
|
|
- <Table @getTableData="changeTableData" v-model:page="page" ref="table" :data="tableData" showSelection
|
|
|
|
|
|
|
+ <Table @getTableData="changeTableData" v-model:page="page" ref="table" :data="tableData" :showSelection="false"
|
|
|
@selection-change="handleSelectionChange" @select-all="handleSelectAll" @select="handleSelect" :revenue="totalRevenue">
|
|
@selection-change="handleSelectionChange" @select-all="handleSelectAll" @select="handleSelect" :revenue="totalRevenue">
|
|
|
<el-table-column prop="userId" label="查看ECPM" width="130" fixed="left">
|
|
<el-table-column prop="userId" label="查看ECPM" width="130" fixed="left">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -324,12 +324,14 @@
|
|
|
// 并发获取数据
|
|
// 并发获取数据
|
|
|
const [listRes, revenueRes] = await Promise.all([
|
|
const [listRes, revenueRes] = await Promise.all([
|
|
|
getUserList({ ...formSearch.value }),
|
|
getUserList({ ...formSearch.value }),
|
|
|
- getRevenueByTime({ ...param })
|
|
|
|
|
|
|
+ // getRevenueByTime({ ...param })
|
|
|
])
|
|
])
|
|
|
|
|
+ // 列表当日总收益
|
|
|
|
|
+ const totalEarnings = listRes.data.reduce((acc,cur) => acc + (cur.todayIncome || 0), 0)
|
|
|
|
|
|
|
|
tableData.value = listRes.data;
|
|
tableData.value = listRes.data;
|
|
|
page.total = listRes.pageMeta.total;
|
|
page.total = listRes.pageMeta.total;
|
|
|
- totalRevenue.value = roundPrice(revenueRes.data, 2, true)
|
|
|
|
|
|
|
+ totalRevenue.value = roundPrice(totalEarnings, 2, true)
|
|
|
|
|
|
|
|
}catch(e){
|
|
}catch(e){
|
|
|
//TODO handle the exception
|
|
//TODO handle the exception
|