diff --git a/src/renderer/src/components/move-file/index.vue b/src/renderer/src/components/move-file/index.vue index ebf1524..4fd42d8 100644 --- a/src/renderer/src/components/move-file/index.vue +++ b/src/renderer/src/components/move-file/index.vue @@ -169,8 +169,8 @@ const getTreeData = () => { let upData = transData(volumeOne.value) let downData = transData(volumeTwo.value) treeData.value = upData.length ? upData : downData - defaultExpandedKeys.value = [treeData.value[0].id] nextTick(() => { + defaultExpandedKeys.value = [treeData.value[0].id] currentNodeId.value = getLastLevelData(treeData.value)[0].id currentNodeName.value = getLastLevelData(treeData.value)[0].label emitChangeBook() diff --git a/src/renderer/src/views/prepare/container/set-homework.vue b/src/renderer/src/views/prepare/container/set-homework.vue index d880c91..7e821ac 100644 --- a/src/renderer/src/views/prepare/container/set-homework.vue +++ b/src/renderer/src/views/prepare/container/set-homework.vue @@ -7,7 +7,7 @@ -
+
@@ -31,7 +31,7 @@ + time-format="HH:mm" type="datetime" :clearable="false" placeholder="请选择截止时间" /> @@ -79,7 +79,7 @@ export default { label: 'label', isLeaf: 'leaf', }, - treeData: [], + setLoading: false, // 用户信息 userInfo: null, // 班级列表 @@ -111,10 +111,8 @@ export default { //截至时间默认值 this.form.deaddate = this.getCurrentDate() + ' ' + '10:00:00' this.userInfo = useUserStore().user - }, methods: { - // 获取班级列表 getGradeList() { listClassmain({ classuserid: this.userInfo.userId, pageSize: 100, status: 'open' }).then(res => { @@ -202,9 +200,9 @@ export default { this.$refs[formName].validate(valid => { if (valid) { /** - * 分班 - * studentList 为选中的所有学生 这些学生可能来自不同班级 - */ + * 根据学生列表中的classId分班 + * studentList 为选中的所有学生 这些学生可能来自不同班级 + */ let gradeObj = groupBy(this.studentList, 'classId') // 处理要提交的参数 let ary = [] @@ -234,11 +232,15 @@ export default { } ary.push(obj) } + this.setLoading = true saveByClassWorkArray({ classworkarray: JSON.stringify(ary) }).then(() => { + this.setLoading = false ElMessage.success('操作成功') this.cloneDialog() + }).catch(()=>{ + this.setLoading = false }) } else { return false @@ -305,4 +307,14 @@ export default { margin-right: 10px; margin-bottom: 10px; } +.dialog-footer{ + padding-bottom: 10px +} + +:deep(.el-checkbox){ + transform : scale(1.3) +} +:deep(.el-icon){ + transform : scale(1.3) +} \ No newline at end of file