|
@@ -52,6 +52,7 @@ import { browser, _throttle } from '@/common/common'
|
|
|
import dayjs from "dayjs";
|
|
|
import { addHomeWork } from '@/api/audition'
|
|
|
import AccompanimentModal from './modal/accompanimentModal'
|
|
|
+import cleanDeep from 'clean-deep'
|
|
|
export default {
|
|
|
name: "teacherList",
|
|
|
components: { MHeader, AccompanimentModal },
|
|
@@ -127,9 +128,10 @@ export default {
|
|
|
let params = {
|
|
|
content: this.content,
|
|
|
courseId: query.courseId,
|
|
|
- expiryDate: dayjs(this.dateSection.currentDate).format('YYYY-MM-DD')
|
|
|
+ expiryDate: dayjs(this.dateSection.currentDate).format('YYYY-MM-DD'),
|
|
|
+ musicScoreId: this.dateSection.musicScoreId
|
|
|
}
|
|
|
- addHomeWork({...params}).then(res => {
|
|
|
+ addHomeWork(cleanDeep({...params})).then(res => {
|
|
|
let result = res.data
|
|
|
this.$toast.clear()
|
|
|
if(result.code == 200) {
|