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