1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| <template>
| <LoadingLayout :loading="isLoading" :error="isError" :loadError="refetch">
| <JobDetailContent :isCollapse="true">
| <template #footer>
| <PageFooterBtn type="primary" plain>解约</PageFooterBtn>
| <PageFooterBtn type="primary">签约</PageFooterBtn>
| </template>
| </JobDetailContent>
| </LoadingLayout>
| </template>
|
| <script setup lang="ts">
| import Taro from '@tarojs/taro';
| import { useQuery } from '@tanstack/vue-query';
| import * as flexWorkerServices from '@12333/services/api/FlexWorker';
|
| defineOptions({
| name: 'InnerPage',
| });
|
| const router = Taro.useRouter();
| const taskId = router.params?.id ?? '';
|
| const {
| isLoading,
| isError,
| data: detail,
| refetch,
| } = useQuery({
| queryKey: ['flexWorkerServices/getOrdeForDetail', taskId],
| queryFn: async () => {
| return await flexWorkerServices.getOrdeForDetail(
| { id: taskId },
| {
| showLoading: false,
| }
| );
| },
| placeholderData: () => ({} as API.OrderInfoDto),
| });
| </script>
|
| <style lang="scss">
| @import '@/styles/common.scss';
| </style>
|
|