|
|
@@ -82,7 +82,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" align="right" label="操作" width="140">
|
|
|
+ <el-table-column fixed="right" label="操作" width="160">
|
|
|
<template #default="scope">
|
|
|
<el-button
|
|
|
icon="edit"
|
|
|
@@ -91,6 +91,13 @@
|
|
|
link
|
|
|
@click="editCardFunc(scope.row)"
|
|
|
>编辑</el-button>
|
|
|
+ <el-button
|
|
|
+ icon="edit"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ @click="resetFeeFunc(scope.row)"
|
|
|
+ >重置付费</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -246,6 +253,7 @@
|
|
|
getGameTaskTargetById,
|
|
|
updateGameTaskTarget,
|
|
|
getGameTaskTargetList,
|
|
|
+ taskResetFee,
|
|
|
} from '@/api/task'
|
|
|
import {
|
|
|
selectResponsiblePerson,
|
|
|
@@ -687,22 +695,19 @@ const deleteBtn = async(btns, index) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- const deleteApiFunc = async(row) => {
|
|
|
- ElMessageBox.confirm('此操作将永久删除所有角色下该api, 是否继续?', '提示', {
|
|
|
+ const resetFeeFunc = async(row) => {
|
|
|
+ ElMessageBox.confirm('此操作将重置付费, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(async() => {
|
|
|
- const res = await deleteGameTask(row)
|
|
|
+ const res = await taskResetFee(row)
|
|
|
if (res.code === 0) {
|
|
|
ElMessage({
|
|
|
type: 'success',
|
|
|
- message: '删除成功!'
|
|
|
+ message: '重置成功!'
|
|
|
})
|
|
|
- if (tableData.value.length === 1 && page.value > 1) {
|
|
|
- page.value--
|
|
|
- }
|
|
|
getTableData()
|
|
|
}
|
|
|
})
|