|
|
@@ -6,7 +6,7 @@
|
|
|
<div class="admin-page-actions">
|
|
|
<el-button @click="$router.push('/article-manage')">返回列表</el-button>
|
|
|
<template v-if="!readonly">
|
|
|
- <el-button type="primary" @click="handleSave(false)" :loading="saving">保存草稿</el-button>
|
|
|
+ <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="handleSave(true)" :loading="publishing" v-if="!isEdit || articleStatus === 'draft'">直接发布</el-button>
|
|
|
</template>
|
|
|
@@ -306,7 +306,7 @@ export default {
|
|
|
this.readonly = true
|
|
|
} else if (d.status === 'rejected') {
|
|
|
this.readonly = true
|
|
|
- } else if (d.status === 'published' || d.status === 'withdrawn') {
|
|
|
+ } else if (d.status === 'withdrawn') {
|
|
|
this.readonly = true
|
|
|
} else {
|
|
|
this.readonly = this.$route.query.readonly === '1'
|
|
|
@@ -457,7 +457,7 @@ export default {
|
|
|
console.error('保存维度权重失败', e)
|
|
|
}
|
|
|
}
|
|
|
- this.$message.success(publishNow ? '文章已发布' : '草稿已保存')
|
|
|
+ this.$message.success(publishNow ? '文章已发布' : (this.articleStatus === 'published' ? '修改已保存' : '草稿已保存'))
|
|
|
this.$router.push('/article-manage')
|
|
|
} catch (e) {
|
|
|
this.$message.error(e.message || '保存失败')
|