|
@@ -25,26 +25,33 @@ const fieldProps = {
|
|
|
readonly: true,
|
|
|
'arrow-direction': 'down'
|
|
|
}
|
|
|
-
|
|
|
-export const params = reactive({
|
|
|
- courseName: '', // 课程名称
|
|
|
- classNum: 1, // 课时数
|
|
|
- singleClassTime: '', //单课时长
|
|
|
- freeCourseMinutes: '', // 休息时间
|
|
|
- studentIds: [] as IStudent[], //学员id集合
|
|
|
- subjectId: 0,
|
|
|
- subjectName: '',
|
|
|
- week: '', // 周几
|
|
|
- isSkipHolidays: true,
|
|
|
- startTime: '',
|
|
|
- endTime: ''
|
|
|
-})
|
|
|
+const init = () => {
|
|
|
+ return reactive({
|
|
|
+ courseName: '', // 课程名称
|
|
|
+ classNum: 1, // 课时数
|
|
|
+ singleClassTime: '', //单课时长
|
|
|
+ freeCourseMinutes: '', // 休息时间
|
|
|
+ studentIds: [] as IStudent[], //学员id集合
|
|
|
+ subjectId: 0,
|
|
|
+ subjectName: '',
|
|
|
+ week: '', // 周几
|
|
|
+ isSkipHolidays: true,
|
|
|
+ startTime: '',
|
|
|
+ endTime: ''
|
|
|
+ })
|
|
|
+}
|
|
|
+export let params : any
|
|
|
export default defineComponent({
|
|
|
name: 'ClassArrangement',
|
|
|
- props: ['onSubmit'],
|
|
|
+ props: {
|
|
|
+ onSubmit: {
|
|
|
+ type: Function,
|
|
|
+ default: () => {}
|
|
|
+ }
|
|
|
+ },
|
|
|
setup(props) {
|
|
|
const selectStudentShow = ref(false)
|
|
|
-
|
|
|
+ params = init()
|
|
|
// 设置学员
|
|
|
const studentRef = ref('') as any
|
|
|
const students = ref<IStudent[]>([])
|