|
@@ -327,13 +327,14 @@
|
|
|
return new Promise((r,j) => {
|
|
|
let paperInfo = this.$store.state.answerSheet.paperItem
|
|
|
let configParams = this.$store.state.answerSheet.config
|
|
|
- console.log(paperInfo);
|
|
|
+ let curCode = paperInfo.examCode || paperInfo.code
|
|
|
+ let curScope = paperInfo.examScope || paperInfo.scope
|
|
|
if(paperInfo.sheet){
|
|
|
configParams.id = paperInfo.sheet
|
|
|
}
|
|
|
- configParams.code = paperInfo.examCode ? paperInfo.examCode.replace('Exam-','') : paperInfo.code.replace('Paper-','')
|
|
|
- configParams.school = paperInfo.examScope === 'school' ? this.$store.state.userInfo.schoolCode : ''
|
|
|
- configParams.scope = paperInfo.examScope || paperInfo.scope
|
|
|
+ configParams.code = curCode.replace('Paper-','')
|
|
|
+ configParams.school = curScope === 'school' ? this.$store.state.userInfo.schoolCode : ''
|
|
|
+ configParams.scope = curScope
|
|
|
configParams.creatorId = this.$store.state.userInfo.TEAMModelId
|
|
|
this.$api.evaluation.upsertSheet(configParams).then(res => {
|
|
|
if(!res.error){
|