|
@@ -333,6 +333,12 @@ export default {
|
|
|
default: '',
|
|
|
required: true
|
|
|
},
|
|
|
+ // 用于判断是个人还是校本评测
|
|
|
+ owner: {
|
|
|
+ type: String,
|
|
|
+ default: '',
|
|
|
+ required: true
|
|
|
+ },
|
|
|
subjectId: {
|
|
|
type: String,
|
|
|
default: '',
|
|
@@ -394,7 +400,7 @@ export default {
|
|
|
"subjectId": this.subjectId,
|
|
|
"classId": this.studentAnswer.classId,
|
|
|
// "code": this.paperInfo.code,//这种方式paper code规则调整了,会多Paper-"
|
|
|
- "code": this.examScope == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,//暂时取代上面的方式
|
|
|
+ "code": this.owner == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,//暂时取代上面的方式
|
|
|
}).then(
|
|
|
res => {
|
|
|
this.$Message.success(this.$t('learnActivity.score.markOk'))
|
|
@@ -506,12 +512,11 @@ export default {
|
|
|
saveScore() {
|
|
|
let requestData = {
|
|
|
"id": this.examId,
|
|
|
- // "code": this.paperInfo.code,//这种方式paper code规则调整了,会多Paper-"
|
|
|
- "code": this.examScope == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,//暂时取代上面的方式
|
|
|
+ // "code": this.examScope == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,//暂时取代上面的方式
|
|
|
+ "code": this.owner == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,//暂时取代上面的方式
|
|
|
"point": this.studentAnswer.scores,
|
|
|
"studentId": this.studentAnswer.id,
|
|
|
"classId": this.studentAnswer.classId,
|
|
|
- // "school": this.paperInfo.code,//这种方式paper code规则调整了,会多Paper-"
|
|
|
"school": this.examScope == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,//暂时取代上面的方式
|
|
|
"subjectId": this.subjectId
|
|
|
}
|