Przeglądaj źródła

06/10 14:45

111
mo 5 lat temu
rodzic
commit
7b3c326976

+ 3 - 3
src/views/teacherManager/teacherDetail/components/teacherNetwork.vue

@@ -60,7 +60,7 @@
           <el-table-column label="是否可调整"
                            align="center">
             <template slot-scope="scope">
-              {{ scope.row.hasRestClass>0?'是':'否' }}
+              {{ scope.row.totalClassTimes-scope.row.currentClassTimes>0?'是':'否' }}
             </template>
           </el-table-column>
           <el-table-column label="操作"
@@ -68,7 +68,7 @@
             <template slot-scope="scope">
               <div>
                 <el-button type="text"
-                           v-if="scope.row.hasRestClass>0"
+                           v-if="(scope.row.totalClassTimes-scope.row.currentClassTimes)>0"
                            v-permission="'courseSchedule/batchPracticeGroupTeacherAdjust?t=819'"
                            @click="resetCourse(scope.row)">操作</el-button>
               </div>
@@ -164,7 +164,7 @@ export default {
   },
   methods: {
     selectable (row, index) {
-      return row.hasRestClass > 0
+      return row.totalClassTimes - row.currentClassTimes > 0
     },
     init () {
       this.teacherId = this.$route.query.teacherId