Browse Source

课表详情和学生乐团课表 课程类型优化

mo 4 years ago
parent
commit
7b8e353313

+ 3 - 7
src/views/studentManager/components/teamAndcourse.vue

@@ -148,6 +148,8 @@
 </template>
 <script>
 import pagination from "@/components/Pagination/index";
+import {musicCourseType} from "@/utils/searchArray"
+
 import {
   findStudentMusicGroups,
   findStudentCourses
@@ -170,13 +172,7 @@ export default {
         classGroupName: null,
         teacherName: null
       },
-      courseArray: [
-        { label: "声部课", value: "NORMAL" },
-        { label: "合奏课", value: "MIX" },
-        { label: "基础技能班", value: "HIGH" },
-        { label: "VIP课", value: "VIP" },
-        { label: "试听课", value: "DEMO" }
-      ],
+      courseArray: musicCourseType,
       courseStatus: [
         { value: "NOT_START", label: "未开始" },
         { value: "UNDERWAY", label: "进行中" },

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

@@ -9,24 +9,10 @@
                    clearable
                    filterable
                    placeholder="课程类型">
-          <el-option label="基础技能课"
-                     value="HIGH"></el-option>
-          <el-option label="综合课"
-                     value="COMPREHENSIVE"></el-option>
-          <el-option label="课堂课"
-                     value="CLASSROOM"></el-option>
-          <el-option label="合奏课"
-                     value="MIX"></el-option>
-          <el-option label="集训合奏课"
-                     value="TRAINING_MIX"></el-option>
-          <el-option label="集训声部课"
-                     value="TRAINING_SINGLE"></el-option>
-          <el-option label="声部课"
-                     value="SINGLE"></el-option>
-          <el-option label="线上基础技能课"
-                     value="HIGH_ONLINE"></el-option>
-          <el-option label="乐团网管课"
-                     value="MUSIC_NETWORK"></el-option>
+            <el-option v-for="(item, index) in courseArray"
+                     :key="index"
+                     :label="item.label"
+                     :value="item.value"></el-option>
         </el-select>
       </el-form-item>
       <el-form-item>
@@ -207,16 +193,6 @@
                label-position="right"
                label-width="120px"
                :inline="true">
-        <!-- <el-form-item label="课程类型" prop="type">
-          <el-select v-model.trim="maskForm.type" clearable filterable>
-            <el-option
-              v-for="(item,index) in courseType"
-              :key="index"
-              :value="item.value"
-              :label="item.label"
-            ></el-option>
-          </el-select>
-        </el-form-item>-->
         <el-form-item label="主教老师"
                       prop="teacher">
           <el-select v-model.trim="maskForm.teacher"
@@ -400,34 +376,6 @@
                   :page-sizes="rollCall.page_size"
                   @pagination="getCallName" />
     </el-dialog>
-    <el-dialog title="类型修改"
-               width="400px"
-               :visible.sync="typeVisible">
-      <el-form :model="typeForm"
-               ref="typeForm"
-               :rules="typeRules"
-               label-position="right"
-               label-width="80px;"
-               :inline="true">
-        <el-form-item label="课程类型"
-                      prop="type">
-          <el-select v-model.trim="typeForm.type"
-                     clearable
-                     filterable>
-            <el-option v-for="(item,index) in courseType"
-                       :key="index"
-                       :value="item.value"
-                       :label="item.label"></el-option>
-          </el-select>
-        </el-form-item>
-      </el-form>
-      <div slot="footer"
-           class="dialog-footer">
-        <el-button @click="typeVisible = false">取 消</el-button>
-        <el-button type="primary"
-                   @click="submitResetType">确定</el-button>
-      </div>
-    </el-dialog>
   </div>
 </template>
 <script>
@@ -450,7 +398,7 @@ import {
 } from "@/api/buildTeam";
 import { permission } from "@/utils/directivePage";
 import { diffTimerFormMinute, addTimerFormMinute } from '@/utils/date'
-import { classTimeList } from "@/utils/searchArray";
+import { classTimeList,musicCourseType } from "@/utils/searchArray";
 import { getSchool } from "@/api/systemManage"
 import cleanDeep from 'clean-deep'
 export default {
@@ -458,17 +406,7 @@ export default {
   data () {
     return {
       classTimeList,
-      courseType: [
-        { value: "SINGLE", label: "声部课" },
-        { value: "MIX", label: "合奏课" },
-        { value: "TRAINING_SINGLE", label: "集训声部课" },
-        { value: "TRAINING_MIX", label: "集训合奏课" },
-        { value: "HIGH", label: "基础技能课" },
-        { value: "COMPREHENSIVE", label: "综合课" },
-        { value: "CLASSROOM", label: "课堂课" },
-        // { value: "HIGH_ONLINE", label: "线上基础技能课" },
-        // { value: "MUSIC_NETWORK", label: "乐团网管课" },
-      ],
+      courseArray:musicCourseType,
       typeVisible: false,
       timerVisible: false,
       courseVisible: false,