|
@@ -2403,50 +2403,54 @@ export default {
|
|
|
|
|
|
let userWork =[]
|
|
|
let _fileid = ''
|
|
|
- for (let index = 0; index < val.array.length; index++) {
|
|
|
- if (val.array[index].type == 3) {
|
|
|
- userWork.push( {
|
|
|
- // type:'文本',
|
|
|
- tit: val.array[index].json.title,
|
|
|
- con: val.array[index].json.answer2
|
|
|
- })
|
|
|
+for (let index = 0; index < val.array.length; index++) {
|
|
|
+ if (val.array[index].type == 3 && this.cueWord.fieldList.includes(val.array[index].json.title)) {
|
|
|
+ userWork += val.array[index].json.title +':'+ val.array[index].json.answer2+','
|
|
|
+ // userWork.push( {
|
|
|
+ // // type:'文本',
|
|
|
+ // tit: val.array[index].json.title,
|
|
|
+ // con: val.array[index].json.answer2
|
|
|
+ // })
|
|
|
}
|
|
|
- if (val.array[index].type == 5) {
|
|
|
+ if (val.array[index].type == 5 && this.cueWord.fieldList.includes(val.array[index].json.title)) {
|
|
|
|
|
|
if (val.array[index].json.file && val.array[index].json.file[0].url && this.cueWord.fieldList.indexOf('附件') != -1) {
|
|
|
_fileid = await this.createFileid(val.array[index].json.file[0].url)
|
|
|
}
|
|
|
|
|
|
- userWork.push( {
|
|
|
- // type:"附件",
|
|
|
- detail:val.array[index].json.detail,
|
|
|
- tit: val.array[index].json.title,
|
|
|
- con: _fileid
|
|
|
- })
|
|
|
+ userWork += val.array[index].json.title+':' + _fileid+','
|
|
|
+ // userWork.push( {
|
|
|
+ // // type:"附件",
|
|
|
+ // detail:val.array[index].json.detail,
|
|
|
+ // tit: val.array[index].json.title,
|
|
|
+ // con: _fileid
|
|
|
+ // })
|
|
|
}
|
|
|
- if (val.array[index].type == 7) {
|
|
|
- userWork.push( {
|
|
|
- // type:"评分",
|
|
|
- rule:`${val.array[index].json.small}分-${val.array[index].json.big}分`,
|
|
|
- detail:val.array[index].json.detail,
|
|
|
- tit: val.array[index].json.title,
|
|
|
- con: val.array[index].json.answer2
|
|
|
- })
|
|
|
+ if (val.array[index].type == 7 && this.cueWord.fieldList.includes(val.array[index].json.title)) {
|
|
|
+ userWork += val.array[index].json.title+':'+val.array[index].json.answer2+','
|
|
|
+ // userWork.push( {
|
|
|
+ // // type:"评分",
|
|
|
+ // rule:`${val.array[index].json.small}分-${val.array[index].json.big}分`,
|
|
|
+ // detail:val.array[index].json.detail,
|
|
|
+ // tit: val.array[index].json.title,
|
|
|
+ // con: val.array[index].json.answer2
|
|
|
+ // })
|
|
|
}
|
|
|
- if (val.array[index].type == 1) {
|
|
|
+ if (val.array[index].type == 1 && this.cueWord.fieldList.includes(val.array[index].json.title)) {
|
|
|
let kk = []
|
|
|
val.array[index].json.answer2.forEach((e)=>{
|
|
|
kk.push(val.array[index].json.array[e].option)
|
|
|
})
|
|
|
- userWork.push( {
|
|
|
- tit: val.array[index].json.title,
|
|
|
- con: kk.join(','),
|
|
|
- type: val.array[index].json.type == 1?"单选题": "多选题",
|
|
|
- })
|
|
|
+ userWork += val.array[index].json.title+':' +kk.join(',')+','
|
|
|
+ // userWork.push( {
|
|
|
+ // tit: val.array[index].json.title,
|
|
|
+ // con: kk.join(','),
|
|
|
+ // type: val.array[index].json.type == 1?"单选题": "多选题",
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- const result = userWork.filter(item => this.cueWord.fieldList.includes(item.tit));
|
|
|
+ // const result = userWork.filter(item => this.cueWord.fieldList.includes(item.tit));
|
|
|
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是一个资深的教师,你要根据评分标准,对用户回答进行评分
|
|
@@ -2456,23 +2460,21 @@ export default {
|
|
|
作业内容中tit是题目,con是用户回答。
|
|
|
根据用户信息与作业内容进行评分。
|
|
|
|
|
|
- #评分资料#
|
|
|
- 用户信息:
|
|
|
- ${this.cueWord.fieldList.includes('提交人') ? '提交人:' +val.name :''}
|
|
|
- ${this.cueWord.fieldList.includes('学段') ? '学段:' +this.getTType(this.teaType[0].id,val.cclassid) :''}
|
|
|
- ${this.cueWord.fieldList.includes('年级') ? '年级:' +this.getTType(this.teaType[1].id,val.cclassid) :''}
|
|
|
- ${this.cueWord.fieldList.includes('学科') ? '学科:' +this.getTType(this.teaType[2].id,val.cclassid) :''}
|
|
|
- ${this.cueWord.fieldList.includes('职务') ? '职务:' +this.getTType(this.teaType[3].id,val.cclassid) :''}
|
|
|
- ${this.cueWord.fieldList.includes('教龄') ? '教龄:' +this.getTType(this.teaType[4].id,val.cclassid) :''}
|
|
|
- ${this.cueWord.fieldList.includes('作业提交时间') ? '作业提交时间:' +val.time :''}
|
|
|
+ #评分资料#
|
|
|
|
|
|
评价标准:${this.cueWord.openCeCon}
|
|
|
- 作业内容 :${_fileid ? "知识库中上传的文件内容与"+JSON.stringify(result) : JSON.stringify(result)}
|
|
|
-
|
|
|
+
|
|
|
+ 作业内容 ${this.cueWord.fieldList.includes('提交人') ? '提交人:' +val.name :''}
|
|
|
+ ${this.cueWord.fieldList.includes('学段') ? '学段:' +this.getTType(this.teaType[0].id,val.cclassid) :''}
|
|
|
+ ${this.cueWord.fieldList.includes('年级') ? '年级:' +this.getTType(this.teaType[1].id,val.cclassid) :''}
|
|
|
+ ${this.cueWord.fieldList.includes('学科') ? '学科:' +this.getTType(this.teaType[2].id,val.cclassid) :''}
|
|
|
+ ${this.cueWord.fieldList.includes('职务') ? '职务:' +this.getTType(this.teaType[3].id,val.cclassid) :''}
|
|
|
+ ${this.cueWord.fieldList.includes('教龄') ? '教龄:' +this.getTType(this.teaType[4].id,val.cclassid) :''}
|
|
|
+ ${this.cueWord.fieldList.includes('作业提交时间') ? '作业提交时间:' +val.time :''}
|
|
|
+ ${userWork}
|
|
|
|
|
|
#输出要求#
|
|
|
- 未找到评价内容或相关信息的评为0分。
|
|
|
- 直接输出分数!不要输入任何其他无关内容!
|
|
|
+ 根据评价标准对作业内容进行评分,直接输出合计分数!只输出数字,不要输入任何其他无关内容!
|
|
|
|
|
|
#输出格式#
|
|
|
分数
|