This commit is contained in:
2024-08-21 15:23:25 +08:00
parent 06ab5ad2b8
commit 077a249556
2 changed files with 18 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
"name" : "海亮铜箔", "name" : "海亮铜箔",
"appid" : "__UNI__3A002CD", "appid" : "__UNI__3A002CD",
"description" : "海亮铜箔二期手持系统", "description" : "海亮铜箔二期手持系统",
"versionName" : "1.0.5", "versionName" : "1.0.6",
"versionCode" : 105, "versionCode" : 106,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -23,7 +23,7 @@
</view> </view>
<view class="zd-row submitbar"> <view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button> <button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" :disabled="disabled" @tap="_doUpShaftToSlitter">上轴</button> <button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" :disabled="disabled" @tap="toSure">上轴</button>
</view> </view>
</view> </view>
</template> </template>
@@ -110,12 +110,26 @@
showSelector () { showSelector () {
this.newoptions = this.options this.newoptions = this.options
}, },
async _doUpShaftToSlitter () { toSure () {
this.disabled = true this.disabled = true
if (!this.index) { if (!this.index) {
this.disabled = false this.disabled = false
return return
} }
uni.showModal({
title: '提示',
content: '确定呼叫桁架上气胀轴?',
confirmColor: '#ff6a00',
success: (res) => {
if (res.confirm) {
this._doUpShaftToSlitter()
} else if (res.cancel) {
this.disabled = false
}
}
})
},
async _doUpShaftToSlitter () {
try { try {
let res = await doUpShaftToSlitter(this.index) let res = await doUpShaftToSlitter(this.index)
uni.showToast({ uni.showToast({