From 1ed22589254a9752013beea1021116d6556676c8 Mon Sep 17 00:00:00 2001 From: chenyuan Date: Tue, 23 Jun 2026 15:36:14 +0800 Subject: [PATCH] feat: apply teacher ownership UI rules --- src/api/teacher.js | 8 ++++++-- src/views/teacherEnd/class/index.vue | 23 ++++++++++++++++----- src/views/teacherEnd/student/index.vue | 28 ++++++++++++++++++-------- src/views/teacherEnd/task/index.vue | 16 ++++++++++----- 4 files changed, 55 insertions(+), 20 deletions(-) diff --git a/src/api/teacher.js b/src/api/teacher.js index 4f770ac..13705ac 100644 --- a/src/api/teacher.js +++ b/src/api/teacher.js @@ -441,6 +441,9 @@ export function updateStudent(data) { url: "/api/user/updateStudent", method: "POST", data, + params: { + operatorId: data.operatorId, + }, }); } // 学生管理删除 @@ -471,7 +474,7 @@ export function getTaskList(query) { } // 任务分配 export function addTask(data) { - let { taskAllocationList, classId, schoolId } = data; + let { taskAllocationList, classId, schoolId, userId } = data; return request({ url: "/api/taskAllocation/updateTaskAllocationByClassId", method: "POST", @@ -479,6 +482,7 @@ export function addTask(data) { params: { classId, schoolId, + userId, }, }); } @@ -537,7 +541,7 @@ export function doRankOne(params) { // 教师端初始化学生密码 export function initStudentPassword(params) { return request({ - url: "/api/user/updateTeacherPassword", + url: "/api/user/updateStudentPassword", method: "POST", params, }); diff --git a/src/views/teacherEnd/class/index.vue b/src/views/teacherEnd/class/index.vue index c462972..29ef37b 100644 --- a/src/views/teacherEnd/class/index.vue +++ b/src/views/teacherEnd/class/index.vue @@ -52,6 +52,11 @@ > + + +