|
|
@@ -27,13 +27,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="审核状态" width="90">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="statusType(row.auditStatus)" size="small">{{ statusLabel(row.auditStatus) }}</el-tag>
|
|
|
+ <StatusTag :type="statusType(row.auditStatus)" :text="statusLabel(row.auditStatus)" size="small" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="auditReason" label="驳回原因" min-width="150" show-overflow-tooltip>
|
|
|
<template slot-scope="{ row }">
|
|
|
- <span v-if="row.auditReason" style="color:#f56c6c;">{{ row.auditReason }}</span>
|
|
|
- <span v-else style="color:#999;">-</span>
|
|
|
+ <span v-if="row.auditReason" style="color:var(--adm-error-text);">{{ row.auditReason }}</span>
|
|
|
+ <span v-else style="color:var(--adm-text-45);">-</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="createdAt" label="申请时间" width="160">
|
|
|
@@ -70,16 +70,16 @@
|
|
|
<el-form label-width="100px" size="small">
|
|
|
<el-form-item label="ID">{{ currentRow.id }}</el-form-item>
|
|
|
<el-form-item label="标题">{{ currentRow.title }}</el-form-item>
|
|
|
- <el-form-item label="状态"><el-tag :type="statusType(currentRow.auditStatus)">{{ statusLabel(currentRow.auditStatus) }}</el-tag></el-form-item>
|
|
|
+ <el-form-item label="状态"><StatusTag :type="statusType(currentRow.auditStatus)" :text="statusLabel(currentRow.auditStatus)" /></el-form-item>
|
|
|
<el-form-item label="分类">{{ currentRow.categoryName || '-' }}</el-form-item>
|
|
|
<el-form-item label="作者">{{ currentRow.authorName || '-' }}</el-form-item>
|
|
|
<el-form-item label="创建时间">{{ currentRow.createdAt }}</el-form-item>
|
|
|
<el-form-item label="发布时间">{{ currentRow.publishedAt || '-' }}</el-form-item>
|
|
|
<el-form-item label="内容摘要" v-if="currentRow.summary">{{ currentRow.summary }}</el-form-item>
|
|
|
<el-form-item label="内容" v-if="currentRow.content">
|
|
|
- <div v-html="currentRow.content" style="max-height:300px;overflow-y:auto;border:1px solid #eee;padding:10px;border-radius:4px;background:#fafafa;"></div>
|
|
|
+ <div v-html="currentRow.content" style="max-height:300px;overflow-y:auto;border:1px solid var(--adm-border-split);padding:10px;border-radius:4px;background:var(--adm-bg-header);"></div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="驳回原因" v-if="currentRow.auditReason" style="color:#f56c6c;">
|
|
|
+ <el-form-item label="驳回原因" v-if="currentRow.auditReason" style="color:var(--adm-error-text);">
|
|
|
{{ currentRow.auditReason }}
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
@@ -236,10 +236,5 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px; background: #fff; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); flex-wrap: wrap; }
|
|
|
-.sort-header { cursor: pointer; user-select: none; font-weight: 500; font-size: 12px; }
|
|
|
-.sort-header:hover { color: #409eff; }
|
|
|
-.sort-index { color: #fff; border-radius: 8px; font-size: 10px; padding: 0 4px; margin: 0 2px; }
|
|
|
-.sort-asc-badge { background: #f56c6c; }
|
|
|
-.sort-desc-badge { background: #409eff; }
|
|
|
+.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px; background: var(--adm-bg-container); border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); flex-wrap: wrap; }
|
|
|
</style>
|