lex 2 rokov pred
rodič
commit
ee87551763

+ 6 - 2
src/views/user-info/components/item/index.tsx

@@ -25,10 +25,14 @@ export default defineComponent({
               }
             })
           }
-          if (item.type === 'live' && item.status === "CANCEL"){ // 直播课
+          if (
+            (item.type === 'live' && item.status === 'CANCEL') ||
+            item.status === 'OUT_SALE'
+          ) {
+            // 直播课
             this.$router.push({
               path: '/userInfo/liveOperation',
-              query:{
+              query: {
                 type: 'edit',
                 groupId: item.courseGroupId
               }

+ 4 - 1
src/views/user-info/live-class/index.tsx

@@ -60,9 +60,12 @@ export default defineComponent({
           <ElTabPane label="已取消" name="CANCEL">
             {this.activeName === 'CANCEL' && <List groupStatus="CANCEL" />}
           </ElTabPane>
+          <ElTabPane label="已下架" name="OUT_SALE">
+            {this.activeName === 'OUT_SALE' && <List groupStatus="OUT_SALE" />}
+          </ElTabPane>
         </ElTabs>
         {/* 课程组状态 ING(进行中) NOT_SALE(未开售,未上架) APPLY(报名中,销售中)
-        COMPLETE(已完成) CANCEL(已取消) */}
+        COMPLETE(已完成) CANCEL(已取消) OUT_SALE(已下架) */}
       </div>
     )
   }