|
|
@@ -52,29 +52,31 @@
|
|
|
<el-table-column label="登录方式" width="75" prop="login_method" />
|
|
|
<el-table-column label="新增目标" width="75" prop="new_target" />
|
|
|
<el-table-column label="新增完成" width="75" prop="new_complete" />
|
|
|
- <el-table-column fixed="right" align="right" label="剩余新增" width="75" prop="new_target1">
|
|
|
+ <el-table-column label="剩余新增" width="75" prop="new_target1">
|
|
|
<template #default="scope">
|
|
|
- {{ scope.row.new_target <= scope.row.new_complete+scope.row.hand_new_complete ? 0 : scope.row.new_complete+scope.row.hand_new_complete-scope.row.new_target}}
|
|
|
+ {{ scope.row.new_target <= scope.row.new_complete ? 0 : scope.row.new_complete-scope.row.new_target}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" align="right" label="留存目标" width="75" prop="retained_target" />
|
|
|
- <el-table-column fixed="right" align="right" label="留存完成" width="75" prop="retained_complete" />
|
|
|
- <el-table-column fixed="right" align="right" label="剩余留存" width="75" prop="retained_target1">
|
|
|
+ <el-table-column label="留存目标" width="75" prop="retained_target" />
|
|
|
+ <el-table-column label="留存完成" width="75" prop="retained_complete" />
|
|
|
+ <el-table-column label="剩余留存" width="75" prop="retained_target1">
|
|
|
<template #default="scope">
|
|
|
- {{ scope.row.retained_target <= scope.row.retained_complete+scope.row.hand_retained_complete ? 0 : scope.row.retained_complete+scope.row.hand_retained_complete-scope.row.retained_target}}
|
|
|
+ {{ scope.row.retained_target <= scope.row.retained_complete ? 0 : scope.row.retained_complete-scope.row.retained_target}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" align="right" label="付费目标" width="75" prop="pay_target" />
|
|
|
- <el-table-column fixed="right" align="right" label="付费完成" width="75" prop="pay_complete" />
|
|
|
- <el-table-column fixed="right" align="right" label="剩余付费" width="75" prop="pay_target1">
|
|
|
+ <el-table-column label="付费目标" width="75" prop="pay_target" />
|
|
|
+ <el-table-column label="付费完成" width="75" prop="pay_complete" />
|
|
|
+ <el-table-column label="剩余付费" width="75" prop="pay_target1">
|
|
|
<template #default="scope">
|
|
|
- {{ scope.row.pay_target <= scope.row.pay_complete+scope.row.hand_pay_complete ? 0 : scope.row.pay_complete+scope.row.hand_pay_complete-scope.row.pay_target}}
|
|
|
+ {{ scope.row.pay_target <= scope.row.pay_complete ? 0 : scope.row.pay_complete-scope.row.pay_target}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" align="right" label="付费流水" width="75" prop="amount"/>
|
|
|
- <el-table-column fixed="right" align="right" label="手动新增" width="75" prop="hand_new_complete"/>
|
|
|
- <el-table-column fixed="right" align="right" label="手动留存" width="75" prop="hand_retained_complete"/>
|
|
|
- <el-table-column fixed="right" align="right" label="手动付费" width="75" prop="hand_pay_complete"/>
|
|
|
+ <el-table-column label="付费流水" width="75" prop="amount"/>
|
|
|
+ <el-table-column label="群控效率" width="75" prop="game_rate"/>
|
|
|
+ <el-table-column label="手动新增" width="75" prop="hand_new_complete"/>
|
|
|
+ <el-table-column label="手动留存" width="75" prop="hand_retained_complete"/>
|
|
|
+ <el-table-column label="手动付费" width="75" prop="hand_pay_complete"/>
|
|
|
+ <el-table-column label="手动付费金额" width="75" prop="hand_amount_total"/>
|
|
|
<el-table-column fixed="right" align="right" label="是否完成" width="75" prop="is_complete" >
|
|
|
<template #default="scope">
|
|
|
<div>
|
|
|
@@ -98,6 +100,13 @@
|
|
|
link
|
|
|
@click="resetFeeFunc(scope.row)"
|
|
|
>重置付费</el-button>
|
|
|
+ <el-button
|
|
|
+ icon="edit"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ @click="accountListFunc(scope.row)"
|
|
|
+ >可付费账号</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -239,6 +248,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog v-model="accountFormVisible" :before-close="closeAccount" :title="accountTitle">
|
|
|
+ <el-table :data="tableData1">
|
|
|
+ <el-table-column align="left" label="账号" show-overflow-tooltip min-width="160" prop="account" />
|
|
|
+ <el-table-column align="left" label="密码" show-overflow-tooltip min-width="160" prop="password" />
|
|
|
+ </el-table>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button size="small" @click="closeAccount">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -254,6 +274,7 @@
|
|
|
updateGameTaskTarget,
|
|
|
getGameTaskTargetList,
|
|
|
taskResetFee,
|
|
|
+ getFeeAccountList,
|
|
|
} from '@/api/task'
|
|
|
import {
|
|
|
selectResponsiblePerson,
|
|
|
@@ -490,6 +511,7 @@ const deleteBtn = async(btns, index) => {
|
|
|
const total = ref(0)
|
|
|
const pageSize = ref(10)
|
|
|
const tableData = ref([])
|
|
|
+ const tableData1 = ref([])
|
|
|
const searchInfo = ref({})
|
|
|
|
|
|
const onReset = () => {
|
|
|
@@ -619,6 +641,7 @@ const deleteBtn = async(btns, index) => {
|
|
|
|
|
|
const dialogTitle = ref('新增')
|
|
|
const dialogFormVisible = ref(false)
|
|
|
+ const accountFormVisible = ref(false)
|
|
|
const openDialog = (key) => {
|
|
|
switch (key) {
|
|
|
case 'addCard':
|
|
|
@@ -639,6 +662,10 @@ const deleteBtn = async(btns, index) => {
|
|
|
initForm()
|
|
|
dialogFormVisible.value = false
|
|
|
}
|
|
|
+
|
|
|
+ const closeAccount = () => {
|
|
|
+ accountFormVisible.value = false
|
|
|
+ }
|
|
|
|
|
|
const editCardFunc = async(row) => {
|
|
|
const res = await getGameTaskTargetById({ id: row.task_id, create_date:row.create_date })
|
|
|
@@ -646,7 +673,15 @@ const deleteBtn = async(btns, index) => {
|
|
|
form.value = res.data
|
|
|
openDialog('edit')
|
|
|
}
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+ const accountListFunc = async(row) => {
|
|
|
+ const res = await getFeeAccountList({ id: row.task_id, create_date:row.create_date })
|
|
|
+ if (res.code === 0) {
|
|
|
+ tableData1.value = res.data
|
|
|
+ dialogTitle.value = '可付费账号'
|
|
|
+ accountFormVisible.value = true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const enterDialog = async() => {
|