Browse Source

修改责任比问题

lex-xin 5 years ago
parent
commit
ed874bdfc4

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-6541442b.a533dced.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.f7cd68e7.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-6541442b.a54124e8.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-7a0e4919.13525efd.js


+ 2 - 2
src/views/journal/studentComplain.vue

@@ -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
         }

Some files were not shown because too many files changed in this diff