This commit is contained in:
王一嘉
2025-07-18 20:36:00 +08:00
parent bdb05623e9
commit 50a85dd274

View File

@@ -5,6 +5,7 @@ import {getCurrentInstance, nextTick, onMounted, reactive, ref, watch} from "vue
import PlatformENUM from "../enum/PlatformENUM"; import PlatformENUM from "../enum/PlatformENUM";
import Api from "../api/index"; import Api from "../api/index";
import {showToast, toPage} from "../utils/uils"; import {showToast, toPage} from "../utils/uils";
import {debounce} from "lodash";
const emits = defineEmits(['success']); const emits = defineEmits(['success']);
const {details} = defineProps({ const {details} = defineProps({
@@ -71,7 +72,7 @@ watch(
{deep: true} {deep: true}
) )
const success = async () => { const success = debounce(async () => {
if (!selected.value) { if (!selected.value) {
showToast('请选择帐号'); showToast('请选择帐号');
return; return;
@@ -84,7 +85,7 @@ const success = async () => {
show.value = false; show.value = false;
await toPage(`/pages/taskDetails/index?id=${task_id}&task_children_id=${task_children_id}&delta=999`) await toPage(`/pages/taskDetails/index?id=${task_id}&task_children_id=${task_children_id}&delta=999`)
emits('success'); emits('success');
} }, 500);
</script> </script>
<template> <template>
@@ -112,6 +113,7 @@ const success = async () => {
<view class="!mt-[20rpx] px-[16rpx]"> <view class="!mt-[20rpx] px-[16rpx]">
<template v-if="vo.length > 0"> <template v-if="vo.length > 0">
<scroll-view style="height: 30vh" scroll-y>
<view <view
:key="index" :key="index"
@click="v.is_use !== 0 && po.status === 0 ? selected = v.id : null" @click="v.is_use !== 0 && po.status === 0 ? selected = v.id : null"
@@ -137,6 +139,7 @@ const success = async () => {
今日已接其他任务 今日已接其他任务
</view> </view>
</view> </view>
</scroll-view>
</template> </template>
<template v-else> <template v-else>