Browse Source

修改他人项目显示我的项目样式及新增他人项目显示创建老师

zengyicheng 2 years ago
parent
commit
18438bcdda
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/pages/course.vue

+ 3 - 2
src/components/pages/course.vue

@@ -82,7 +82,8 @@
       <div class="student_table">
         <div class="course_box">
           <div class="out_box" v-for="(item, index) in course" :key="index">
-            <div class="myCourse" v-if="item.isCourseType == 1">我的项目</div>
+            <div class="myCourse" v-if="item.isCourseType == 1 && groupA == 0">我的项目</div>
+            <div class="myCourse" v-else-if="item.isCourseType == 1 && groupA == 1">他人项目</div>
             <div class="xtCourse" v-else>协同项目</div>
             <div class="tup">
               <img
@@ -105,7 +106,7 @@
             </div> -->
             <div class="bottom_box">
               <div>{{ item.title }}</div>
-              <div class="kc_t" v-if="item.isCourseType == 2">
+              <div class="kc_t" v-if="item.isCourseType == 2 || groupA == 1">
                 创建老师:{{ item.uname }}
               </div>
               <div class="kc_time">{{ item.time }}</div>