|
@@ -430,6 +430,7 @@
|
|
|
<el-input placeholder="时长(分)"
|
|
|
type="number"
|
|
|
v-model.trim="item.time"
|
|
|
+ disabled
|
|
|
@input="()=>{setItem(item,index)}"
|
|
|
style="width:100px!important"></el-input>
|
|
|
<span>开始时间</span>
|
|
@@ -697,6 +698,7 @@ import { queryEmployByOrganId } from "@/api/systemManage";
|
|
|
import { diffTimerFormMinute, addTimerFormMinute } from '@/utils/date'
|
|
|
import dayjs from 'dayjs'
|
|
|
import axios from "axios";
|
|
|
+import { classTimeList } from "@/utils/searchArray";
|
|
|
import qs from "qs";
|
|
|
export default {
|
|
|
name: "tresetClass",
|
|
@@ -713,6 +715,7 @@ export default {
|
|
|
topForm: {
|
|
|
classType: ""
|
|
|
},
|
|
|
+ classTimeList,
|
|
|
tableList: [],
|
|
|
maxClassList: [],
|
|
|
activeSingleList: [],
|
|
@@ -756,12 +759,7 @@ export default {
|
|
|
expectStudentNum: [{ required: true, message: "请填写预计招生人数" }]
|
|
|
},
|
|
|
weekList: [
|
|
|
- {
|
|
|
- week: "",
|
|
|
- startTime: "",
|
|
|
- endTime: "",
|
|
|
- id: new Date().getTime()
|
|
|
- }
|
|
|
+
|
|
|
],
|
|
|
teacherList: [], // 存储的老师列表
|
|
|
courseTypeList: [],
|
|
@@ -818,7 +816,8 @@ export default {
|
|
|
subjectId: null
|
|
|
},
|
|
|
classGroupIds: null,
|
|
|
- maxMun: 16
|
|
|
+ maxMun: 16,
|
|
|
+ courseTime: ''
|
|
|
};
|
|
|
},
|
|
|
created () {
|
|
@@ -1352,8 +1351,8 @@ export default {
|
|
|
dayOfWeek: "",
|
|
|
startClassTime: "",
|
|
|
endClassTime: "",
|
|
|
- time: "",
|
|
|
- id: new Date()
|
|
|
+ time: this.courseTime,
|
|
|
+ id: new Date().getTime()
|
|
|
});
|
|
|
},
|
|
|
// 删除循环周
|
|
@@ -1625,14 +1624,27 @@ export default {
|
|
|
},
|
|
|
changeCourseType (val) {
|
|
|
console.log(val)
|
|
|
- this.weekList = [
|
|
|
- {
|
|
|
- week: "",
|
|
|
- startTime: "",
|
|
|
- endTime: "",
|
|
|
- id: new Date().getTime()
|
|
|
- }
|
|
|
- ]
|
|
|
+ if (val) {
|
|
|
+ this.classTimeList.forEach(item => {
|
|
|
+ if (item.value == val) {
|
|
|
+ this.courseTime = item.label
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // courseTime
|
|
|
+ this.weekList = [
|
|
|
+ {
|
|
|
+ week: "",
|
|
|
+ startTime: "",
|
|
|
+ endTime: "",
|
|
|
+ time: this.courseTime,
|
|
|
+ id: new Date().getTime()
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.courseTime = null
|
|
|
+ this.weekList = []
|
|
|
+ }
|
|
|
+
|
|
|
// if (val === 'HIGH_ONLINE' || val === 'HIGH' || val === 'MUSIC_NETWORK') {
|
|
|
// this.step = '00:05'
|
|
|
// } else {
|