Эх сурвалжийг харах

优化页面草稿状态展示

csk 1 сар өмнө
parent
commit
2dcbc882b3

+ 5 - 2
工作空间/产研/权益/汇丰全行/产品原型/pc-demo/src/views/PageAssembly.vue

@@ -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) {

+ 2 - 1
工作空间/产研/权益/汇丰全行/产品原型/pc-demo/src/views/PageHomeConfig.vue

@@ -240,7 +240,8 @@ export default {
     pageStatusTag() {
       if (this.isModified) return { type: 'warning', label: '有未保存修改' }
       if (this.pageStatus === 'published') return { type: 'success', label: '正式线上环境' }
-      return { type: 'info', label: '草稿 (未发布)' }
+      if (this.pageStatus === 'modified') return { type: 'warning', label: '草稿(待发布)' }
+      return { type: 'info', label: '草稿(未发布)' }
     },
     canPublish() {
       return !this.isModified && ['draft', 'modified'].includes(this.pageStatus)

+ 2 - 1
工作空间/产研/权益/汇丰全行/产品原型/pc-demo/src/views/PageZoneConfig.vue

@@ -366,7 +366,8 @@ export default {
     pageStatusTag() {
       if (this.isModified) return { type: 'warning', label: '有未保存修改' }
       if (this.pageStatus === 'published') return { type: 'success', label: '正式线上环境' }
-      return { type: 'info', label: '草稿 (未发布)' }
+      if (this.pageStatus === 'modified') return { type: 'warning', label: '草稿(待发布)' }
+      return { type: 'info', label: '草稿(未发布)' }
     },
     linkQueryStr() {
       const params = []