|
@@ -208,6 +208,27 @@
|
|
|
? parameter.update
|
|
? parameter.update
|
|
|
: parameter.save;
|
|
: parameter.save;
|
|
|
|
|
|
|
|
|
|
+ const defaultValue = this.form.defaultValue
|
|
|
|
|
+ const maxValue = this.form.maxValue
|
|
|
|
|
+ const minValue = this.form.minValue
|
|
|
|
|
+ if(defaultValue!=''&maxValue!=''){
|
|
|
|
|
+ if(defaultValue>maxValue){
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ return this.$message.warning('默认值应小于参数上限')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if(defaultValue!=''&minValue!=''){
|
|
|
|
|
+ if(defaultValue<minValue){
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ return this.$message.warning('默认值应大于参数下限')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if(maxValue!=''&minValue!=''){
|
|
|
|
|
+ if(maxValue<minValue){
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ return this.$message.warning('参数上限应大于参数下限')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
saveOrUpdate(this.form)
|
|
saveOrUpdate(this.form)
|
|
|
.then((msg) => {
|
|
.then((msg) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|