条件限制
This commit is contained in:
@@ -155,6 +155,10 @@ export default {
|
||||
if (JSON.stringify(this.robj) === '{}') {
|
||||
return
|
||||
}
|
||||
if (!(this.val3 && this.val4 && this.val5 && this.val6 && this.val7 && this.val8)) {
|
||||
this.toast('值须>=0')
|
||||
return
|
||||
}
|
||||
if (!(this.val3 >= 0 && this.val4 >= 0 && this.val5 >= 0 && this.val6 >= 0 && this.val7 >= 0 && this.val8 >= 0)) {
|
||||
this.toast('值须>=0')
|
||||
return
|
||||
@@ -165,6 +169,10 @@ export default {
|
||||
if (JSON.stringify(this.robj) === '{}') {
|
||||
return
|
||||
}
|
||||
if (!(this.val3 && this.val4 && this.val5 && this.val6 && this.val7 && this.val8)) {
|
||||
this.toast('值须>=0')
|
||||
return
|
||||
}
|
||||
if (!(this.val3 >= 0 && this.val4 >= 0 && this.val5 >= 0 && this.val6 >= 0 && this.val7 >= 0 && this.val8 >= 0)) {
|
||||
this.toast('值须>=0')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user