Ver Fonte

06/08 17:43

111
mo há 5 anos atrás
pai
commit
bba058a2cb

+ 7 - 2
src/views/teacherManager/teacherDetail/components/courseInfo.vue

@@ -70,7 +70,12 @@
         <el-table-column label="是否可调整"
                          align="center">
           <template slot-scope="scope">
-            {{ scope.row.hasRestClass>0?'是':'否' }}
+            <!-- 1.没有剩余课时,2.乐团筹备中 -->
+            <div>
+              <p v-if="scope.row.status == 'PROGRESS'"> {{ scope.row.hasRestClass>0?'是':'否' }}</p>
+              <p v-else>否</p>
+            </div>
+
           </template>
         </el-table-column>
         <el-table-column label="操作"
@@ -180,7 +185,7 @@ export default {
   },
   methods: {
     selectable (row, index) {
-      return row.hasRestClass > 0
+      return row.hasRestClass > 0 && row.status == 'PROGRESS'
     },
     handleSelectionChange (val) {
       this.chioseList = val