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