第 5 阶段:纠纷、通知与后台-4
This commit is contained in:
@@ -20,7 +20,7 @@ async function loadListings() {
|
||||
|
||||
async function submitReview(id: number) {
|
||||
await submitListingReview(id)
|
||||
ElMessage.success('已提交审核并自动上架')
|
||||
ElMessage.success('已提交审核,等待后台处理')
|
||||
await loadListings()
|
||||
}
|
||||
|
||||
@@ -52,10 +52,13 @@ async function offline(id: number) {
|
||||
<el-table-column prop="deposit_amount" label="押金" width="100" />
|
||||
<el-table-column prop="status" label="状态" width="110" />
|
||||
<el-table-column prop="review_status" label="审核" width="110" />
|
||||
<el-table-column label="操作" width="180">
|
||||
<el-table-column prop="review_reason" label="审核原因" min-width="160" show-overflow-tooltip />
|
||||
<el-table-column label="操作" width="190">
|
||||
<template #default="{ row }">
|
||||
<el-button size="small" @click="submitReview(row.id)">上架</el-button>
|
||||
<el-button size="small" type="danger" @click="offline(row.id)">下架</el-button>
|
||||
<el-button size="small" :disabled="row.review_status === 'pending' || row.status === 'rented'" @click="submitReview(row.id)">
|
||||
提审
|
||||
</el-button>
|
||||
<el-button size="small" type="danger" :disabled="row.status === 'rented'" @click="offline(row.id)">下架</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user