|
|
@@ -498,7 +498,8 @@ export default {
|
|
|
pageStatusTag() {
|
|
|
if (this.isModified && !this.isNew) return { type: 'warning', label: '有未保存修改' }
|
|
|
if (this.editData.status === 'published') return { type: 'success', label: '正式线上环境' }
|
|
|
- return { type: 'info', label: '草稿 (未发布)' }
|
|
|
+ if (this.editData.status === 'modified') return { type: 'warning', label: '草稿(待发布)' }
|
|
|
+ return { type: 'info', label: '草稿(未发布)' }
|
|
|
},
|
|
|
canPublish() {
|
|
|
return !this.isModified && !!this.editData.id && ['draft', 'modified'].includes(this.editData.status)
|
|
|
@@ -601,10 +602,12 @@ export default {
|
|
|
},
|
|
|
getAssemblyStatusTag(status) {
|
|
|
if (status === 'published') return { type: 'success', label: '正式线上环境' }
|
|
|
- return { type: 'info', label: '草稿 (未发布)' }
|
|
|
+ if (status === 'modified') return { type: 'warning', label: '草稿(待发布)' }
|
|
|
+ return { type: 'info', label: '草稿(未发布)' }
|
|
|
},
|
|
|
getAssemblyListStatusTag(status) {
|
|
|
if (status === 'published') return { type: 'success', label: '正式' }
|
|
|
+ if (status === 'modified') return { type: 'warning', label: '待发布' }
|
|
|
return { type: 'info', label: '草稿' }
|
|
|
},
|
|
|
ensureReactiveField(target, key, value) {
|