소스 검색

feat(deploy): undoing status

Casper Dai 1 년 전
부모
커밋
32b49ca930
3개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/constant.js
  2. 5 0
      src/views/screen/deploy/workflow/components/PublishDetailDialog.vue
  3. 5 0
      src/views/screen/deploy/workflow/history/index.vue

+ 2 - 1
src/constant.js

@@ -103,7 +103,8 @@ export const PublishState = {
   RELEASE: 1,
   PUBLISHED: 2,
   PUBLISHFAILURE: 5,
-  UNDOSUCCEE: 7
+  UNDOSUCCEE: 7,
+  UNDOING: 8
 }
 
 export const IntercutState = {

+ 5 - 0
src/views/screen/deploy/workflow/components/PublishDetailDialog.vue

@@ -111,6 +111,11 @@ export default {
                   type: 'danger',
                   label: '已下架'
                 }
+              case PublishState.UNDOING:
+                return {
+                  type: 'warning',
+                  label: '下架中'
+                }
               default:
                 return null
             }

+ 5 - 0
src/views/screen/deploy/workflow/history/index.vue

@@ -94,6 +94,11 @@ export default {
                   type: 'danger',
                   label: '已下架'
                 }
+              case PublishState.UNDOING:
+                return {
+                  type: 'warning',
+                  label: '下架中'
+                }
               default:
                 return {
                   type: 'danger',