条件
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3 || !val2}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -148,7 +148,7 @@
|
||||
},
|
||||
async _needEmptyAxisv2 () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val3) {
|
||||
if (!this.val1 || !this.val3 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user