批改作业
This commit is contained in:
parent
7545e68a62
commit
4a0e9b0b84
|
@ -71,6 +71,14 @@ export function updateClassworkeval(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function updateClassworkevalList(data) {
|
||||||
|
return request({
|
||||||
|
url: '/education/classworkeval/updateList',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 修改classworkdata
|
// 修改classworkdata
|
||||||
export function updateClassworkdata(data) {
|
export function updateClassworkdata(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -427,7 +427,7 @@ import useUserStore from '@/store/modules/user'
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
// import { Plus } from '@element-plus/icons-vue'
|
// import { Plus } from '@element-plus/icons-vue'
|
||||||
import { ElMessageBox, ElMessage } from 'element-plus'
|
import { ElMessageBox, ElMessage } from 'element-plus'
|
||||||
import { updateClassworkeval, updateClassworkdata, getClassworkdata } from '@/api/classTask'
|
import { updateClassworkeval, updateClassworkdata, getClassworkdata, updateClassworkevalList } from '@/api/classTask'
|
||||||
import { getTimeDate } from '@/utils/date'
|
import { getTimeDate } from '@/utils/date'
|
||||||
import ReFilePreview from '@/components/refile-preview/index.vue'
|
import ReFilePreview from '@/components/refile-preview/index.vue'
|
||||||
import { quizStrToList } from '@/utils/comm';
|
import { quizStrToList } from '@/utils/comm';
|
||||||
|
@ -882,8 +882,8 @@ const onSubmit = () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// 更新题目批改
|
// 更新题目批改
|
||||||
classWorkFormScore.teacherRating &&
|
const queryList = [];
|
||||||
classWorkFormScore.teacherRating.map((item, index) => {
|
classWorkFormScore.teacherRating && classWorkFormScore.teacherRating.map((item, index) => {
|
||||||
const queryParams = {
|
const queryParams = {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
teacherRating: item.score, // 教师评分
|
teacherRating: item.score, // 教师评分
|
||||||
|
@ -891,13 +891,32 @@ const onSubmit = () => {
|
||||||
teacherremark: classWorkFormScore.teacherremark, //评分说明
|
teacherremark: classWorkFormScore.teacherremark, //评分说明
|
||||||
timestamp: getTimeDate() // 时间
|
timestamp: getTimeDate() // 时间
|
||||||
}
|
}
|
||||||
console.log(queryParams)
|
queryList.push(queryParams)
|
||||||
updateClassworkeval(queryParams).then((res) => {
|
})
|
||||||
|
//console.log('queryList->', queryList)
|
||||||
|
updateClassworkevalList(queryList).then((res) => {
|
||||||
// if(res.code == 200){
|
// if(res.code == 200){
|
||||||
// 循环提交能干个啥
|
// 循环提交能干个啥
|
||||||
// }
|
// }
|
||||||
})
|
})
|
||||||
})
|
|
||||||
|
// 更新题目批改
|
||||||
|
// classWorkFormScore.teacherRating &&
|
||||||
|
// classWorkFormScore.teacherRating.map((item, index) => {
|
||||||
|
// const queryParams = {
|
||||||
|
// id: item.id,
|
||||||
|
// teacherRating: item.score, // 教师评分
|
||||||
|
// rating: classWorkFormScore.rating, // 评价
|
||||||
|
// teacherremark: classWorkFormScore.teacherremark, //评分说明
|
||||||
|
// timestamp: getTimeDate() // 时间
|
||||||
|
// }
|
||||||
|
// console.log(queryParams)
|
||||||
|
// updateClassworkeval(queryParams).then((res) => {
|
||||||
|
// // if(res.code == 200){
|
||||||
|
// // 循环提交能干个啥
|
||||||
|
// // }
|
||||||
|
// })
|
||||||
|
// })
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '提交成功!'
|
message: '提交成功!'
|
||||||
|
|
Loading…
Reference in New Issue