mo 3 rokov pred
rodič
commit
b6df983f3c

+ 6 - 3
src/views/teamDetail/components/courseList.vue

@@ -180,6 +180,7 @@
             <div v-if="scope.row.courseScheduleStatus != 'NOT_START'">
               {{ scope.row.signInStatus | attendanceType }}
             </div>
+            <span v-else>--</span>
           </template>
         </el-table-column>
         <el-table-column align="center" label="老师签退">
@@ -187,6 +188,7 @@
             <div v-if="scope.row.courseScheduleStatus != 'NOT_START'">
               {{ scope.row.signOutStatus | attendanceOutType }}
             </div>
+              <span v-else>--</span>
           </template>
         </el-table-column>
         <el-table-column
@@ -204,13 +206,14 @@
             <div v-if="scope.row.courseScheduleStatus != 'NOT_START'">
               {{ scope.row.isCallNames ? "已点名" : "未点名" }}
             </div>
+            <span v-else>--</span>
           </template>
         </el-table-column>
         <el-table-column align="center" prop="attendanceRate" label="出勤率">
           <template slot-scope="scope">
             <div>
               {{
-                scope.row.courseScheduleStatistics.attendanceRate
+                scope.row.courseScheduleStatistics.attendanceRate&& scope.row.courseScheduleStatus== 'OVER'
                   ? scope.row.courseScheduleStatistics.attendanceRate
                   : "--"
               }}
@@ -221,7 +224,7 @@
           <template slot-scope="scope">
             <div>
               {{
-                scope.row.courseScheduleStatistics.standardRate
+                scope.row.courseScheduleStatistics.standardRate&& scope.row.courseScheduleStatus== 'OVER'
                   ? scope.row.courseScheduleStatistics.standardRate
                   : "--"
               }}
@@ -250,7 +253,7 @@
           <template slot-scope="scope">
             <div>
               {{
-                scope.row.courseScheduleStatistics.homeworkCommitRate
+                scope.row.courseScheduleStatistics.homeworkCommitRate&&scope.row.courseScheduleStatistics.homeworkFlag
                   ? scope.row.courseScheduleStatistics.homeworkCommitRate
                   : "--"
               }}