需求修改
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !index1}" :disabled="disabled" @tap="_updateRouteStatus('1')">锁定</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !index1}" :disabled="disabled" @tap="toSure('1')">锁定</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !index1}" :disabled="disabled" @tap="_updateRouteStatus('0')">释放</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -45,6 +45,26 @@
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
toSure (type) {
|
||||
this.disabled = true
|
||||
if (!this.index1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
cancelText: '取消',
|
||||
confirmText: '确定',
|
||||
content: '请确认当前锁定路线不存在AGV',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this._updateRouteStatus(type)
|
||||
} else if (res.cancel) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
async _updateRouteStatus (type) {
|
||||
this.disabled = true
|
||||
if (!this.index1) {
|
||||
|
||||
Reference in New Issue
Block a user