Pārlūkot izejas kodu

选课码可以为空

chenjiayao 1 gadu atpakaļ
vecāks
revīzija
7269e793c2
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 6 6
      src/views/CoursePage/CoursePage.vue

+ 6 - 6
src/views/CoursePage/CoursePage.vue

@@ -20,8 +20,8 @@
         暂无课程
       </template>
       <el-table-column type="index"/>
-      <el-table-column prop="courseName" label="课程名称" width="300"/>
-      <el-table-column prop="description" label="描述" width="600"/>
+      <el-table-column prop="courseName" label="课程名称" width="280"/>
+      <el-table-column prop="description" label="描述" width="420"/>
       <el-table-column prop="endTime" label="截止时间" sortable/>
       <el-table-column label="操作">
         <template #default="scope">
@@ -250,10 +250,10 @@
       ElNotification({title: '描述不得为空',type: 'error',})
       return
     }
-    if(newCourse.enrollCode === '') {
-      ElNotification({title: '选课码不得为空',type: 'error',})
-      return
-    }
+    // if(newCourse.enrollCode === '') {
+    //   ElNotification({title: '选课码不得为空',type: 'error',})
+    //   return
+    // }
     if(newCourse.startTime === '') {
       ElNotification({title: '开始时间不得为空',type: 'error',})
       return