Commit d09c93c5 authored by zhengke's avatar zhengke

修改

parent 1d95c705
...@@ -461,8 +461,10 @@ ...@@ -461,8 +461,10 @@
}, },
created() {}, created() {},
mounted() { mounted() {
if (this.$route.query.ClassId && this.$route.query.School_Id) { if (this.$route.query && this.$route.query.ClassId) {
this.msg.ClassId = this.$route.query.ClassId; this.msg.ClassId = this.$route.query.ClassId;
}
if (this.$route.query && this.$route.query.School_Id) {
this.msg.School_Id = this.$route.query.School_Id; this.msg.School_Id = this.$route.query.School_Id;
} }
this.getData(); this.getData();
...@@ -477,7 +479,7 @@ ...@@ -477,7 +479,7 @@
}, },
//减法 得实收 //减法 得实收
getShiShou(num1, num2) { getShiShou(num1, num2) {
if (num1!=='' && num2!=='') { if (num1 && num2) {
return parseInt(num1) - parseInt(num2); return parseInt(num1) - parseInt(num2);
} else { } else {
return 0; return 0;
......
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