|
|
@@ -7,7 +7,7 @@
|
|
|
<el-button @click="$router.push('/article-manage')">返回列表</el-button>
|
|
|
<template v-if="!readonly">
|
|
|
<el-button type="primary" @click="handleSave(false)" :loading="saving">{{ articleStatus === 'published' ? '保存修改' : '保存草稿' }}</el-button>
|
|
|
- <el-button type="success" @click="handleSubmitReview" :loading="reviewLoading" v-if="isEdit && articleStatus === 'draft' && !articleWasPublished">提交审核</el-button>
|
|
|
+ <el-button type="success" @click="handleSubmitReview" :loading="reviewLoading" v-if="isEdit && articleStatus === 'draft' && !articleWasPublished && articleAuditStatus !== 'approved'">提交审核</el-button>
|
|
|
<el-button type="success" @click="handleSave(true)" :loading="publishing" v-if="!isEdit || articleStatus === 'draft'">直接发布</el-button>
|
|
|
</template>
|
|
|
<template v-if="articleStatus === 'rejected' || articleStatus === 'withdrawn'">
|
|
|
@@ -199,6 +199,7 @@ export default {
|
|
|
readonly: false,
|
|
|
articleWasPublished: false,
|
|
|
articleStatus: '',
|
|
|
+ articleAuditStatus: '',
|
|
|
rejectReason: '',
|
|
|
categories: [],
|
|
|
editorConfig: null,
|
|
|
@@ -605,6 +606,7 @@ export default {
|
|
|
if (res.data) {
|
|
|
const d = res.data
|
|
|
this.articleStatus = d.status || ''
|
|
|
+ this.articleAuditStatus = d.auditStatus || ''
|
|
|
this.rejectReason = d.auditReason || ''
|
|
|
this.articleWasPublished = !!(d.publishedAt || d.status === 'published')
|
|
|
if (d.auditStatus === 'pending') {
|