@@ -159,6 +159,10 @@ export default {
submitNoticeForm(noticeForm) {
// this.$refs[this.noticeForm].validate((valid) => {
// if (valid) {
+ if(typeof this.noticeForm.examNum !== 'number'){
+ this.$message.error('请输入数字类型')
+ return
+ }
console.log(7788)
editConfigApi({
id:this.noticeForm.id,
@@ -168,9 +172,9 @@ export default {
projectSn: this.$store.state.projectSn,
}).then(result => {
if (result.success) {
+ this.getConfig()
console.log('信息编辑成功', result);
this.$message.success(result.message);
-
this.isDisabled = true
this.isDisabled2 = true
}
diff --git a/src/views/projectFront/examSystem2/pointManagement/pointManagement.vue b/src/views/projectFront/examSystem2/pointManagement/pointManagement.vue
index 282f9ee9..d3e97abb 100644
--- a/src/views/projectFront/examSystem2/pointManagement/pointManagement.vue
+++ b/src/views/projectFront/examSystem2/pointManagement/pointManagement.vue
@@ -15,8 +15,6 @@
-
-
-
{{
$t("message.laborMange.refresh")
}}
-
-
@@ -229,14 +181,16 @@
style="width: 75%;margin: 0 auto;"
:rules="questionFormRules"
>
-
+
+
@@ -259,9 +213,9 @@
-
+
@@ -277,6 +231,7 @@
{
- // if(option === item){
- // return true
- // }else{
- // return false
- // }
- // })
- // return this.questionForm.options.includes(item.optionCode) ? true : false
},
optionStr(index){
let str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('')
@@ -735,9 +671,9 @@ export default {
},
resetForm(){
this.questionForm = {
- content: "",
+ questionName: "",
type: 1,
- level: 1,
+ difficulty: 1,
isApplication: 1,
score: 0
}
@@ -790,9 +726,9 @@ export default {
console.log(this.questionForm)
editQuestionBankApi({
id:this.questionForm.id,
- questionName:this.questionForm.content,
+ questionName:this.questionForm.questionName,
type:this.questionForm.type,
- difficulty:this.questionForm.level,
+ difficulty:this.questionForm.difficulty,
isEnable:this.questionForm.isApplication,
// optionList: this.questionForm.type == 1 ? this.questionArr.map((item,index) => {
// return {
@@ -821,13 +757,18 @@ export default {
let option = this.optionStr(this.radio)
//多选答案
let multiOptions = ''
+ console.log(this.checkList,'this.checkList========================')
+ if(this.questionForm.type !== 1 && this.checkList.length === 0){
+ this.$message.warning('请选择答案')
+ return
+ }
this.checkList.map(item =>{
multiOptions += this.optionStr(item)
})
addQuestionBankApi({
- questionName:this.questionForm.content,
+ questionName:this.questionForm.questionName,
type:this.questionForm.type,
- difficulty:this.questionForm.level,
+ difficulty:this.questionForm.difficulty,
isEnable:this.questionForm.isApplication,
// optionList: this.questionArr.type == 1 ? this.questionArr.map((item,index) => {
// return {
@@ -885,9 +826,9 @@ export default {
console.log(item);
this.title = "编辑试题";
- this.questionForm.content = item.questionName;
+ this.questionForm.questionName = item.questionName;
this.questionForm.type = item.type;
- this.questionForm.level = item.difficulty;
+ this.questionForm.difficulty = item.difficulty;
this.questionForm.isApplication = item.isEnable;
detailIdQuestionBankApi({
@@ -930,7 +871,7 @@ export default {
addQuestionBtn() {
this.questionForm = {}
this.title = "添加试题";
- this.questionForm.content = "";
+ // this.questionForm.questionName = "";
this.questionArr = [{ isCheck: true, questionContent: "" },{ isCheck: true, questionContent: "" },{ isCheck: true, questionContent: "" },{ isCheck: true, questionContent: "" }];
this.radio = 0;
this.checkList = [];
@@ -938,6 +879,10 @@ export default {
},
// 添加答案项
addQuestionAnswer() {
+ if(!this.questionForm.type){
+ this.$message.warning('请选择题目类型')
+ return
+ }
this.questionArr.push({ isCheck: true , questionContent: "" });
},
// 删除答案项
diff --git a/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue b/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue
index 00d18cd1..47dd5300 100644
--- a/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue
+++ b/src/views/projectFront/examSystem2/trainRecord/trainPlan.vue
@@ -69,20 +69,22 @@
layout="total, sizes, prev, pager, next" :total="Number(pagInfo.total)" background>
-
+
-
+
-
+
-
+
@@ -90,7 +92,8 @@
-
+
@@ -98,7 +101,8 @@
-
+
@@ -106,17 +110,20 @@
-
+
-
+
-
+
@@ -134,7 +141,11 @@
-
+
+
+ {{scope.row.teamName}}{{scope.row.departmentName}}
+
+
-
+
-
-
+
+
+
@@ -206,8 +218,13 @@
-
-
+
+
+ {{scope.row.teamName}}{{scope.row.departmentName}}
+
+
+
@@ -240,7 +257,6 @@