diff --git a/E/system-commandline-sentinel-files/dotnet-suggest-registration-git-credential-manager-core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null b/E/system-commandline-sentinel-files/dotnet-suggest-registration-git-credential-manager-core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null deleted file mode 100644 index 821db7c..0000000 --- a/E/system-commandline-sentinel-files/dotnet-suggest-registration-git-credential-manager-core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null +++ /dev/null @@ -1,6 +0,0 @@ -Exception during registration: -System.ComponentModel.Win32Exception (0x80004005): 系统找不到指定的文件。 - 在 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) - 在 System.Diagnostics.Process.Start() - 在 System.CommandLine.Invocation.Process.StartProcess(String command, String args, String workingDir, Action`1 stdOut, Action`1 stdErr, ValueTuple`2[] environmentVariables) - 在 System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__10_1>d.MoveNext() \ No newline at end of file diff --git a/src/views/examinationPaper/add.vue b/src/views/examinationPaper/add.vue index 0692a8f..75ecbff 100644 --- a/src/views/examinationPaper/add.vue +++ b/src/views/examinationPaper/add.vue @@ -117,8 +117,7 @@ type="text" placeholder="请输入答题卡类型名称" v-model.trim="answerTypeName" - maxlength="10" - show-word-limit + :maxlength="10" >

@@ -502,7 +501,7 @@ export default { gradeList: [], //年级 subjectList: [], //科目 answerTypeList: [], //测验类型 - answerTypeName: [], //测验类型名称 + answerTypeName: "", //测验类型名称 form: { //答题卡详情 title: "", @@ -787,6 +786,16 @@ export default { this.$message.error("请填写测验名称!"); return; } + let isRepeat = false + this.answerTypeList.map(item=>{ + if(item.typeName == this.answerTypeName){ + isRepeat = true + } + }) + if(isRepeat){ + this.$message.error("类型已存在请重新填写!"); + return; + } //添加测验类型 const { data, status, info } = await this.$request.addPaperType({ tag: this.answerTypeName, diff --git a/src/views/examinationPaper/edit.vue b/src/views/examinationPaper/edit.vue index e815e2f..0e4f5cc 100644 --- a/src/views/examinationPaper/edit.vue +++ b/src/views/examinationPaper/edit.vue @@ -6,9 +6,11 @@
-

+

- {{`${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); }