+
- {{`${form.modifiedTime} ${form.realName}`}}老师修改了答案 + {{ + `${paperModifyLog.modifiedTime} ${paperModifyLog.realName}` + }}老师修改了答案
{{ form.title }}
@@ -116,10 +118,13 @@ export default { examsDuration: 90, gradeName: "", share: 1, - realName:"", - modifiedTime:"", + questionList: [], }, + paperModifyLog: { + realName: "", + modifiedTime: "", + }, }; }, computed: { @@ -209,11 +214,13 @@ export default { let valid = ""; this.form.questionList.map((item, index) => { if (!item.questionTitle) { - valid += ((index + 1)+'、'); + valid += index + 1 + "、"; } }); if (valid) { - this.$message.error(`大题名称不能为空,请检查第${valid.slice(0,-1)}题!`); + this.$message.error( + `大题名称不能为空,请检查第${valid.slice(0, -1)}题!` + ); return; } let questionList = this.form.questionList.map((item) => { @@ -245,7 +252,10 @@ export default { this.form.questionList.map((item) => { item.score = ""; }); - this.paperModifyLog ={...this.paperModifyLog,...this.form.paperModifyLog} + this.paperModifyLog = { + ...this.paperModifyLog, + ...this.form.paperModifyLog, + }; } else { this.$message.error(info); } -- libgit2 0.21.4