|
@@ -251,11 +251,11 @@ export default {
|
|
|
let teacherRate = this.teacherRate
|
|
|
let studentRate = this.studentRate
|
|
|
if (type == 'submit') {
|
|
|
- if (teacherRate < 0 || teacherRate > 10 || typeof teacherRate == 'string') {
|
|
|
+ if (teacherRate < 0 || teacherRate > 10 || Number(teacherRate) == NaN) {
|
|
|
this.$message.error('老师责任比输入有误')
|
|
|
return
|
|
|
}
|
|
|
- if (studentRate < 0 || studentRate > 10 || typeof studentRate == 'string') {
|
|
|
+ if (studentRate < 0 || studentRate > 10 || Number(studentRate) == NaN) {
|
|
|
this.$message.error('学生责任比输入有误')
|
|
|
return
|
|
|
}
|