Tang před 2 roky
rodič
revize
a6f900e0b6
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10 0
      src/pages/course-detail/components/CourseTree.vue

+ 10 - 0
src/pages/course-detail/components/CourseTree.vue

@@ -22,6 +22,9 @@
           </div>
           <div class="center">
             {{ item1.name }}
+            <el-tag v-if="item1.type == 2 && item1.commonSign == 1" size="mini"
+              >公共章</el-tag
+            >
             <p v-if="liveShowTimeData(item1)" class="live_style">
               <span>{{
                 $tools.timestampToTime(item1.liveStartTime, (isDay = false))
@@ -101,6 +104,11 @@
               </div>
               <div class="center">
                 {{ item2.name }}
+                <el-tag
+                  v-if="item2.type == 2 && item2.commonSign == 1"
+                  size="mini"
+                  >公共章</el-tag
+                >
                 <p v-if="liveShowTimeData(item2)" class="live_style">
                   <span>{{
                     $tools.timestampToTime(item2.liveStartTime, (isDay = false))
@@ -553,6 +561,7 @@ export default {
                 type: i.type,
                 name: i.menuName,
                 courseId: i.courseId,
+                commonSign: i.commonSign || null,
                 moduleId: i.type == 1 ? i.menuId : 0,
                 chapterId: i.type == 2 ? i.menuId : 0,
                 sectionId: i.type == 3 ? i.menuId : 0,
@@ -601,6 +610,7 @@ export default {
                       level: item.level + 1,
                       type: 2,
                       name: i.name,
+                      commonSign: i.commonSign || null,
                       courseId: i.courseId,
                       moduleId: i.moduleId,
                       chapterId: i.chapterId,