diff --git a/src/renderer/src/components/set-homework/index.vue b/src/renderer/src/components/set-homework/index.vue index 380e381..854ade1 100644 --- a/src/renderer/src/components/set-homework/index.vue +++ b/src/renderer/src/components/set-homework/index.vue @@ -55,6 +55,7 @@ import { saveByClassWorkArray } from '@/api/teaching/classwork' import useUserStore from '@/store/modules/user' import { getCurrentTime } from '@/utils/date' import { uniqBy, groupBy } from 'lodash' +import { sessionStore } from '@/utils/store' const model = defineModel({ type: Boolean, default: false }) const props = defineProps({ @@ -211,6 +212,8 @@ const delStudent = (index) => { const onSubmit = (formEl) => { if (!formEl) return + // 课堂id + const classRoomId = sessionStore.get('curClassRoom.id') formEl.validate((valid) => { if (valid) { /** @@ -226,7 +229,8 @@ const onSubmit = (formEl) => { id: 0, parentid: props.row.id, classid: value, - classcourseid: 0, + classcourseid: 0, // 课堂id-ppt为字符串不能使用 + classReservId: classRoomId, // 课堂id entpcourseid: props.entpcourseid, studentlist: JSON.stringify(gradeObj[value]), feedback: form.feedback, diff --git a/src/renderer/src/store/modules/tool.js b/src/renderer/src/store/modules/tool.js index dd17432..f2ff2b0 100644 --- a/src/renderer/src/store/modules/tool.js +++ b/src/renderer/src/store/modules/tool.js @@ -18,7 +18,7 @@ export const useToolState = defineStore('tool', { showBoardAll: false, // 全屏画板-是否显示 isPdfWin: false, // pdf窗口是否打开 isToolWin: false, // 工具窗口是否打开 - isTaskWin: false, // 批改窗口是否打开 + isTaskWin: false, // 批改窗口是否打开 curSubjectNode: { querySearch: {} // 查询资源所需参数 }, diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index 06e709f..7a3729a 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -138,6 +138,8 @@ + +