Commit 4cd00f17 authored by 纪泽龙's avatar 纪泽龙

修复一个保存分数的bug

parent 0e27e9e1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 17:56:05 * @Date: 2022-09-22 17:56:05
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-01-13 16:26:33 * @LastEditTime: 2023-01-31 10:12:31
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/QuestionList.vue * @FilePath: /danger-manage-web/src/views/lessonsProgram/components/QuestionList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -296,7 +296,7 @@ export default { ...@@ -296,7 +296,7 @@ export default {
this.bottomFrom.singleChoiceScore > 0 && this.bottomFrom.singleChoiceScore > 0 &&
this.bottomFrom.multipleChoiceScore > 0 && this.bottomFrom.multipleChoiceScore > 0 &&
this.bottomFrom.judgmentScore > 0 && this.bottomFrom.judgmentScore > 0 &&
this.fobottomFromrm.qualifiedNum > 0 this.bottomFrom.qualifiedNum > 0
) )
) { ) {
this.$message({ this.$message({
......
<template> <template>
<div style="padding:10px 0 0 20px">
<el-form ref="form" :rules="rules" :model="form" label-width="80px"> <el-form ref="form" :rules="rules" :model="form" label-width="80px">
<h3>个人信息录入</h3>
<h3>个人信息录入</h3>
<el-form-item label="单位" prop="beyondUnit"> <el-form-item label="单位" prop="beyondUnit">
<el-input <el-input
style="width: 70%;" style="width: 70%"
placeholder="请输入单位" placeholder="请输入单位"
v-model="form.beyondUnit" v-model="form.beyondUnit"
maxlength="30" maxlength="30"
clearable> clearable
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="姓名"> <el-form-item label="姓名">
<el-input <el-input
style="width: 70%;" style="width: 70%"
placeholder="请输入姓名" placeholder="请输入姓名"
v-model="form.name" v-model="form.name"
maxlength="11" maxlength="11"
clearable> clearable
>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -31,27 +33,26 @@ ...@@ -31,27 +33,26 @@
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input <el-input
style="width: 70%;" style="width: 70%"
placeholder="手机号" placeholder="手机号"
v-model="form.phoneNum" v-model="form.phoneNum"
type="number" type="number"
maxlength="11" maxlength="11"
clearable> clearable
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="onSubmit" type="primary" >下一步</el-button> <el-button @click="onSubmit" type="primary">下一步</el-button>
<el-button>取消</el-button> <el-button>取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div>
</template> </template>
<script> <script>
export default { export default {
name: "EnterInformation", name: "EnterInformation",
data() { data() {
return { return {
...@@ -60,9 +61,9 @@ ...@@ -60,9 +61,9 @@
name: null, name: null,
sex: null, sex: null,
phoneNum: null, phoneNum: null,
testBeginTime:null, testBeginTime: null,
}, },
} };
}, },
methods: { methods: {
/** /**
...@@ -99,43 +100,41 @@ ...@@ -99,43 +100,41 @@
dateArr[4]; dateArr[4];
//此处可以拿外部的变量接收 strDate:2022-05-01 13:25:30 //此处可以拿外部的变量接收 strDate:2022-05-01 13:25:30
//this.date = strDate; //this.date = strDate;
this.form.testBeginTime=strDate; this.form.testBeginTime = strDate;
}, },
onSubmit() { onSubmit() {
this.currentTime(); this.currentTime();
// let params = this.form; // let params = this.form;
let params = JSON.stringify(this.form); let params = JSON.stringify(this.form);
console.log(this.form.beyondUnit) console.log(this.form.beyondUnit);
if (!this.form.beyondUnit){ if (!this.form.beyondUnit) {
console.log(params.beyondUnit) console.log(params.beyondUnit);
this.$message('请输入单位'); this.$message("请输入单位");
}else if (!this.form.name){ } else if (!this.form.name) {
this.$message('请输入姓名'); this.$message("请输入姓名");
}else if (!this.form.sex){ } else if (!this.form.sex) {
this.$message('请选择性别'); this.$message("请选择性别");
}else if (!this.form.phoneNum){ } else if (!this.form.phoneNum) {
this.$message('请输入手机号'); this.$message("请输入手机号");
}else if (this.form.phoneNum.length>11){ } else if (this.form.phoneNum.length > 11) {
this.$message('长度超出11位'); this.$message("长度超出11位");
} else { } else {
const routeData = this.$router.resolve({ const routeData = this.$router.resolve({
path: '/trainingMaterials', //跳转目标窗口的地址 path: "/trainingMaterials", //跳转目标窗口的地址
query: { query: {
params //括号内是要传递给新窗口的参数 params, //括号内是要传递给新窗口的参数
} },
}) });
window.open(routeData.href, "_search"); window.open(routeData.href, "_search");
} }
}, },
next() { next() {
if (this.active++ > 2) this.active = 0; if (this.active++ > 2) this.active = 0;
} },
} },
} };
</script> </script>
<style> <style>
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment