diff --git a/src/api/index.js b/src/api/index.js index aea95f8..cf64561 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -20,6 +20,7 @@ export default { userinfoUpdate:`management/userInfo/update`, userinfo:`management/userInfo/getUserInfo`, getAccount:`management/userInfo/getAccount`, + getUserAccount:`management/userInfo/getUserAccount`, // 组织架构 addStaffPro: `management/staffProfessionalArchitecture/addStaffProfessionalArchitecture`, diff --git a/src/pages/quesBank/list/globalQuesBank.vue b/src/pages/quesBank/list/globalQuesBank.vue index 4de4477..4674f2d 100644 --- a/src/pages/quesBank/list/globalQuesBank.vue +++ b/src/pages/quesBank/list/globalQuesBank.vue @@ -52,7 +52,7 @@ diff --git a/src/pages/quesBank/list/quesDialog.vue b/src/pages/quesBank/list/quesDialog.vue index ad529f4..3636eaf 100644 --- a/src/pages/quesBank/list/quesDialog.vue +++ b/src/pages/quesBank/list/quesDialog.vue @@ -280,13 +280,6 @@ export default { if(this.topicForm.typeId == 3){ this.topicForm.optionA = '正确' this.topicForm.optionB = '错误' - if(this.topicForm.aisTrue == 1){ - this.topicForm.aisTrue = true - this.topicForm.answer = 'A' - }else{ - this.topicForm.bisTrue = true - this.topicForm.answer = 'B' - } } if(topicForm.typeId == 1 || topicForm.typeId == 2 || topicForm.typeId == 3){ for(let n in topicForm) { @@ -305,6 +298,7 @@ export default { if(topicForm.questionType == '单选题' && answer.length > 1) return this.$message.warning('单选题只能设置一个正确选项!') if(topicForm.questionType == '多选题' && answer.length < 2) return this.$message.warning('多选题必须设置至少两个正确选项!') if(isInvalidAnswer) return this.$message.warning('正确答案选项为空,请重新设置!'); + if(topicForm.typeId == 3) answer = topicForm.aisTrue == 1 ? 'a' : 'b' this.topicForm.answer = answer.toUpperCase() }else if(this.topicForm.typeId == 5){ if(!this.fillList.length || this.fillList.every(n => n === '')) return this.$message.warning('请至少添加一个正确答案!') diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue index ad874e7..01fbc95 100644 --- a/src/pages/user/list/index.vue +++ b/src/pages/user/list/index.vue @@ -26,9 +26,9 @@ - + - + @@ -73,8 +73,8 @@ - - + + @@ -141,7 +141,7 @@ export default { { required: true, message: '请输入用户姓名', trigger: 'blur' } ], clientId: [ - { required: true, message: '请选择客户名称', trigger: 'change' }, + { required: true, message: '请选择院校名称', trigger: 'change' }, ] }, userData:[],