This commit is contained in:
曹辉 2023-04-12 10:23:40 +08:00
parent cf20c952aa
commit c85d8901d7
2 changed files with 17 additions and 10 deletions

View File

@ -6,7 +6,6 @@
<button @click="revoke">撤回</button> <button @click="revoke">撤回</button>
<button @click="saveTempFilePath">保存</button> <button @click="saveTempFilePath">保存</button>
</view> </view>
</view> </view>
</template> </template>

View File

@ -107,16 +107,24 @@
"taskReturnReason": this.taskReturnReason, "taskReturnReason": this.taskReturnReason,
} }
orderFallback(obj).then(res => { orderFallback(obj).then(res => {
this.$refs.uToast.show({ if (res.code == 200) {
title: '任务退回成功', this.$refs.uToast.show({
type: 'success', title: '任务退回成功',
duration: '1500' type: 'success',
}) duration: '1500'
setTimeout(() => {
uni.navigateBack({
delta: 1
}) })
}, 1500); setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 1500);
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: '1500'
})
}
}) })
}, },
}, },