This commit is contained in:
2024-08-09 17:09:50 +08:00
parent db1aadb164
commit b9dd9c7e57
3 changed files with 4 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
</view>
<view class="zd-row submit-bar">
<button class="zd-col-11 button-default" @click="cancle">{{$t('button.cancel')}}</button>
<button class="zd-col-11 button-primary" :class="{'button-info': index === ''}" :disabled="disabled" @tap="_updateTask('1')">{{$t('take-and-place')}}</button>
<button class="zd-col-11 button-primary" :disabled="disabled" @tap="_updateTask('1')">{{$t('take-and-place')}}</button>
</view>
</view>
</template>
@@ -47,10 +47,6 @@
},
async _updateTask (type) {
this.disabled = true
if (!this.index) {
this.disabled = false
return
}
try {
let res = await updateTask(this.code, type)
this.cancle()