|
|
@@ -27,9 +27,9 @@
|
|
|
<StatusTag :type="statusType(row.auditStatus)" :text="statusLabel(row.auditStatus)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="auditReason" label="原因" width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="rejectReason" label="原因" width="160" show-overflow-tooltip>
|
|
|
<template slot="header">
|
|
|
- <span class="sort-header" @click.stop="onSortClick('auditReason', $event)">原因<span v-if="sortIndex('auditReason') !== null" class="sort-index" :class="sortClass('auditReason') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('auditReason') }}</span>{{ sortIcon('auditReason') }}</span>
|
|
|
+ <span class="sort-header" @click.stop="onSortClick('rejectReason', $event)">原因<span v-if="sortIndex('rejectReason') !== null" class="sort-index" :class="sortClass('rejectReason') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('rejectReason') }}</span>{{ sortIcon('rejectReason') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="120" fixed="right">
|
|
|
@@ -67,8 +67,8 @@
|
|
|
<dimension-weight-picker v-model="auditWeights" :show-presets="true" />
|
|
|
<div class="weights-tip">审核通过前请补充五维权重,合计需为 100%</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="驳回原因" v-if="currentRow.auditReason" class="text-error">
|
|
|
- {{ currentRow.auditReason }}
|
|
|
+ <el-form-item label="驳回原因" v-if="currentRow.rejectReason" class="text-error">
|
|
|
+ {{ currentRow.rejectReason }}
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</audit-detail-drawer>
|
|
|
@@ -111,7 +111,9 @@ export default {
|
|
|
const params = { auditStatus: this.statusFilter || undefined, keyword: this.keyword || undefined, page: 1, size: 50 }
|
|
|
if (this.sortState.length > 0) params.sort = this.sortState
|
|
|
const res = await getActivityList(params)
|
|
|
- this.list = res.data && res.data.records || res.data && res.data.list || res.data || []
|
|
|
+ const rows = res.data && res.data.records || res.data && res.data.list || res.data || []
|
|
|
+ // 统一口径:活动驳回原因字段名与活动报名审核一致(rejectReason),后端旧字段 auditReason 做兼容映射
|
|
|
+ this.list = rows.map(r => ({ ...r, rejectReason: r.rejectReason || r.auditReason }))
|
|
|
} catch (e) { this.$message.error('加载失败')
|
|
|
} finally { this.loading = false }
|
|
|
},
|