|
|
@@ -11,11 +11,11 @@
|
|
|
<el-button v-if="selectedRows.length > 0 && statusFilter === 'pending'" size="small" type="success" @click="handleBatchApprove">批量通过({{ selectedRows.length }})</el-button>
|
|
|
<el-button v-if="selectedRows.length > 0 && statusFilter === 'pending'" size="small" type="danger" @click="showBatchRejectDialog">批量驳回({{ selectedRows.length }})</el-button>
|
|
|
</div>
|
|
|
- <div class="table-scroll-wrap"><div style="overflow:auto;max-height:calc(100vh - 300px);">
|
|
|
+ <div style="overflow:auto;max-height:calc(100vh - 300px);min-width:0;box-sizing:border-box;">
|
|
|
<el-table :data="list" v-loading="loading" border stripe style="min-width:900px;" @selection-change="onSelectionChange">
|
|
|
<el-table-column type="selection" width="40" v-if="statusFilter === 'pending'" />
|
|
|
<el-table-column prop="id" label="ID" width="60" />
|
|
|
- <el-table-column prop="name" label="套餐名称" min-width="180" show-overflow-tooltip />
|
|
|
+ <el-table-column prop="name" label="任务模板名称" min-width="180" show-overflow-tooltip />
|
|
|
<el-table-column prop="cycleDays" label="周期" width="70">
|
|
|
<template slot-scope="{ row }">{{ row.cycleDays }}天</template>
|
|
|
</el-table-column>
|
|
|
@@ -44,7 +44,7 @@
|
|
|
<el-button v-else size="mini" type="primary" @click="showDetail(row)">查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table></div></div>
|
|
|
+ </el-table></div>
|
|
|
|
|
|
<el-pagination
|
|
|
v-if="total > 0"
|
|
|
@@ -56,11 +56,11 @@
|
|
|
style="margin-top:12px;text-align:right;"
|
|
|
/>
|
|
|
|
|
|
- <el-dialog title="套餐详情" :visible.sync="detailVisible" width="700px" top="5vh">
|
|
|
+ <el-dialog title="任务模板详情" :visible.sync="detailVisible" width="700px" top="5vh">
|
|
|
<div v-if="currentRow" style="max-height:60vh;overflow-y:auto;">
|
|
|
<el-form label-width="110px" size="small">
|
|
|
<el-form-item label="ID">{{ currentRow.id }}</el-form-item>
|
|
|
- <el-form-item label="套餐名称">{{ currentRow.name }}</el-form-item>
|
|
|
+ <el-form-item label="任务模板名称">{{ currentRow.name }}</el-form-item>
|
|
|
<el-form-item label="状态"><el-tag :type="statusType(currentRow.status)">{{ statusLabel(currentRow.status) }}</el-tag></el-form-item>
|
|
|
<el-form-item label="周期">{{ currentRow.cycleDays }} 天</el-form-item>
|
|
|
<el-form-item label="价格">{{ formatPrice(currentRow.price) }}</el-form-item>
|
|
|
@@ -168,7 +168,7 @@ export default {
|
|
|
},
|
|
|
async handleApprove(row) {
|
|
|
try {
|
|
|
- await this.$confirm('确认通过该套餐?', '提示', { type: 'warning' })
|
|
|
+ await this.$confirm('确认通过该任务模板?', '提示', { type: 'warning' })
|
|
|
await reviewPackage({ id: row.id, action: 'approve' })
|
|
|
this.$message.success('已通过')
|
|
|
this.loadData()
|
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
},
|
|
|
async handleBatchApprove() {
|
|
|
try {
|
|
|
- await this.$confirm(`确认通过所选 ${this.selectedRows.length} 个套餐?`, '提示', { type: 'warning' })
|
|
|
+ await this.$confirm(`确认通过所选 ${this.selectedRows.length} 个任务模板?`, '提示', { type: 'warning' })
|
|
|
for (const row of this.selectedRows) {
|
|
|
await reviewPackage({ id: row.id, action: 'approve' })
|
|
|
}
|