xiaodai2017 vor 1 Jahr
Ursprung
Commit
dbb736817e

+ 2 - 1
src/views/serviceParam/actNum/addEdit.vue

@@ -166,11 +166,12 @@ export default {
         if (valid) {
           if (!this.loading) {
             this.loading = true;
+            const {min,max}=this.ruleForm
             let model = JSON.parse(JSON.stringify(this.ruleForm));
             if (model.type === "2") {
               model.max = "";
             } else {
-              if (Number(min) <= Number(max)) {
+              if (Number(min) >= Number(max)) {
                 this.$message.warning("最大人数需大于最小人数!");
                 this.loading = false;
                 return;

+ 1 - 1
src/views/serviceParam/area/addEdit.vue

@@ -171,7 +171,7 @@ export default {
             if (model.type === "2") {
               model.max = "";
             } else {
-              if (Number(min) <= Number(max)) {
+              if (Number(min) >= Number(max)) {
                 this.$message.warning("最大面积需大于最小面积!");
                 this.loading = false;
                 return;