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

@@ -34,8 +34,8 @@
menuList: [
{id: 1, title: this.$t('title.call'), icon: 'RF01', path: '/pages/manage/call-manage'},
{id: 2, title: this.$t('title.command'), icon: 'RF02', path: '/pages/manage/inst-manage'},
{id: 3, title: this.$t('title.task'), icon: 'RF03', path: '/pages/manage/task-manage'},
{id: 4, title: this.$t('title.release-confirm'), icon: 'RF04', path: '/pages/manage/release-confirm'}
{id: 3, title: this.$t('title.task'), icon: 'RF03', path: '/pages/manage/task-manage'}
// {id: 4, title: this.$t('title.release-confirm'), icon: 'RF04', path: '/pages/manage/release-confirm'}
],
show: false,
secM: []

View File

@@ -50,7 +50,7 @@
let res = await callTask(this.sCode, this.nCode, type)
this.disabled = false
uni.showToast({
title: res.desc,
title: res.message,
icon: 'none'
})
} catch (err) {

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()