wupengfei
2025-03-10 6887129e91d32557c2b57178180329f46df09d12
apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue
@@ -6,7 +6,7 @@
          <div class="flexJob-card-footer-text">已录用</div>
        </template>
        <template #footerRight>
          <nut-button type="primary">查看详情</nut-button>
          <nut-button type="primary" @click="goToJobDetail(item.id)">查看详情</nut-button>
        </template>
      </FlexJobCard>
    </template>
@@ -15,9 +15,11 @@
<script setup lang="ts">
import { OrderInputType } from '@12333/constants';
import { RouterPath } from '@/constants';
import { useInfiniteLoading } from '@12333/hooks';
import * as orderServices from '@12333/services/api/Order';
import * as flexWorkerServices from '@12333/services/api/FlexWorker';
import { FlexJobCard } from '@12333/components';
import Taro from '@tarojs/taro';
defineOptions({
  name: 'SignList',
@@ -29,7 +31,7 @@
const { infiniteLoadingProps } = useInfiniteLoading(
  ({ pageParam }) => {
    let params: API.FrontOrderListInput = {
    let params: API.GetFlexTaskListInput = {
      pageModel: {
        rows: 20,
        page: pageParam,
@@ -37,14 +39,20 @@
      },
    };
    return orderServices.getFrontOrderList(params, {
    return flexWorkerServices.getFlexTaskByArrange(params, {
      showLoading: false,
    });
  },
  {
    queryKey: ['orderServices/getFrontOrderList'],
    queryKey: ['flexWorkerServices/getFlexTaskByArrange'],
  }
);
function goToJobDetail(id: string) {
  Taro.navigateTo({
    url: `${RouterPath.flexJobDetailFromTask}?id=${id}`,
  });
}
</script>
<style lang="scss">