zhengyiming
3 天以前 8bb30d6c524ff6c1b816d2113d967d4380c20967
fix: 灵工管理
3个文件已修改
34 ■■■■ 已修改文件
apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/Card/FlexJobTopView.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue
@@ -1,10 +1,10 @@
<template>
  <LoadingLayout :loading="isLoading" :error="isError" :loadError="refetch">
    <JobDetailContent :isCollapse="true">
      <template #footer>
      <!-- <template #footer>
        <PageFooterBtn type="primary" plain>解约</PageFooterBtn>
        <PageFooterBtn type="primary">签约</PageFooterBtn>
      </template>
      </template> -->
    </JobDetailContent>
  </LoadingLayout>
</template>
apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue
@@ -18,7 +18,15 @@
    :key="queryState.userSignContractStatus"
  >
    <template #renderItem="{ item }">
      <FlexJobCard :show-done-detail="false" :show-footer-left="false" @click="goDetail(item)">
      <FlexJobCard
        :show-done-detail="false"
        :show-footer-left="false"
        :name="item.name"
        :gender="item.gender"
        :age="item.age"
        :isReal="item.userIsReal"
        @click="goDetail(item)"
      >
        <template #footerRight>
          <span></span>
          <!-- <template
packages/components/src/Card/FlexJobTopView.vue
@@ -18,11 +18,7 @@
      </div>
      <slot name="detail">
        <div class="flexJob-card-top-info-detail">
          {{
            `${age ? '' : `${age}岁|`}${personalIdentityContent ?? ''} |  ${
              educationalBackgroundContent ?? ''
            } | 上岗${taskCount ?? 0}次`
          }}
          {{ infoDetail }}
        </div>
      </slot>
    </div>
@@ -34,6 +30,7 @@
import IconFemale from '@/assets/mine/icon-female.png';
import { AvatarImage, EnumUserGender } from '@12333/constants';
import { Avatar } from '@12333/components';
import { computed } from 'vue';
defineOptions({
  name: 'FlexJobTopView',
@@ -55,7 +52,20 @@
const props = withDefaults(defineProps<Props>(), {
  size: 'normal',
  avatar: AvatarImage,
  personalIdentityContent: '',
  educationalBackgroundContent: '',
});
const infoDetail = computed(() =>
  [
    props.age > 0 ? `${props.age}岁` : '',
    props.personalIdentityContent,
    props.educationalBackgroundContent,
    props.taskCount > 0 ? `上岗${props.taskCount ?? 0}次` : '',
  ]
    .filter(Boolean)
    .join('|')
);
</script>
<style lang="scss">