|
@@ -11,6 +11,7 @@ import {
|
|
createAward,
|
|
createAward,
|
|
deleteAward,
|
|
deleteAward,
|
|
getAwards,
|
|
getAwards,
|
|
|
|
+ getDesignerActivities,
|
|
getDesignerBasicInfo,
|
|
getDesignerBasicInfo,
|
|
getDesignerExtraEvents,
|
|
getDesignerExtraEvents,
|
|
getDesignerFamilyInfo,
|
|
getDesignerFamilyInfo,
|
|
@@ -32,7 +33,7 @@ import ListHelperEvo from '@/components/list-helper-evo.vue'
|
|
import SectionHeading from '@designer-hub/app/src/components/section-heading.vue'
|
|
import SectionHeading from '@designer-hub/app/src/components/section-heading.vue'
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
|
|
|
-const tab = ref('sale')
|
|
|
|
|
|
+const tab = ref('activity')
|
|
// 基础信息 家庭信息 奖项信息 销售信息 游学/活动信息
|
|
// 基础信息 家庭信息 奖项信息 销售信息 游学/活动信息
|
|
const tabs = [
|
|
const tabs = [
|
|
{ label: '基础信息', value: 'basic' },
|
|
{ label: '基础信息', value: 'basic' },
|
|
@@ -40,7 +41,7 @@ const tabs = [
|
|
{ label: '奖项信息', value: 'award' },
|
|
{ label: '奖项信息', value: 'award' },
|
|
{ label: '销售信息', value: 'sale' },
|
|
{ label: '销售信息', value: 'sale' },
|
|
{ label: '游学/活动信息', value: 'activity' },
|
|
{ label: '游学/活动信息', value: 'activity' },
|
|
- { label: '其他活动信息', value: 'events' },
|
|
|
|
|
|
+ // { label: '其他活动信息', value: 'events' },
|
|
]
|
|
]
|
|
const id = ref()
|
|
const id = ref()
|
|
const { data: basicData, run: setBasicData } = useRequest(() => getDesignerBasicInfo(id.value))
|
|
const { data: basicData, run: setBasicData } = useRequest(() => getDesignerBasicInfo(id.value))
|
|
@@ -182,28 +183,30 @@ onLoad(async (query?: Record<string | 'id', any>) => {
|
|
</wd-tabs>
|
|
</wd-tabs>
|
|
<div class="flex flex-col flex-grow gap-5">
|
|
<div class="flex flex-col flex-grow gap-5">
|
|
<template v-if="tab === 'basic'">
|
|
<template v-if="tab === 'basic'">
|
|
- <template
|
|
|
|
- v-for="([key, value], index) in Object.entries(omit(basicData, ['id', 'userId']))"
|
|
|
|
- :key="index"
|
|
|
|
- >
|
|
|
|
- <div class="flex items-center justify-between">
|
|
|
|
- <div class="text-black/40 text-base font-normal font-['PingFang_SC'] leading-none">
|
|
|
|
- {{ messages.objects.designerBasiceInfo[key] }}
|
|
|
|
|
|
+ <div class="bg-white mt-4 flex flex-col gap-5 p-4">
|
|
|
|
+ <template
|
|
|
|
+ v-for="([key, value], index) in Object.entries(omit(basicData, ['id', 'userId']))"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
|
|
+ <div class="flex items-center justify-between">
|
|
|
|
+ <div class="text-black/40 text-base font-normal font-['PingFang_SC'] leading-none">
|
|
|
|
+ {{ (messages.objects.designerBasiceInfo as any)[key] }}
|
|
|
|
+ </div>
|
|
|
|
+ <DataRender v-bind="(renders.designerBasiceInfo as any)[key](value)"></DataRender>
|
|
</div>
|
|
</div>
|
|
- <DataRender v-bind="renders.designerBasiceInfo[key](value)"></DataRender>
|
|
|
|
- </div>
|
|
|
|
- <!-- <SectionHeading size="base" :title="messages.objects.designerBasiceInfo[key]">
|
|
|
|
|
|
+ <!-- <SectionHeading size="base" :title="messages.objects.designerBasiceInfo[key]">
|
|
<template #append>
|
|
<template #append>
|
|
<DataRender v-bind="renders.designerBasiceInfo[key](value)"></DataRender>
|
|
<DataRender v-bind="renders.designerBasiceInfo[key](value)"></DataRender>
|
|
</template>
|
|
</template>
|
|
</SectionHeading> -->
|
|
</SectionHeading> -->
|
|
- <div class="w-full h-.25 bg-[#f4f4f4]"></div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <div class="w-full h-.25 bg-[#f4f4f4]"></div>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
<template v-if="tab === 'family'">
|
|
<template v-if="tab === 'family'">
|
|
<PageHelperEvo ref="familyPageRef" :request="getDesignerFamilyInfo" :query="query">
|
|
<PageHelperEvo ref="familyPageRef" :request="getDesignerFamilyInfo" :query="query">
|
|
<template #default="{ source }">
|
|
<template #default="{ source }">
|
|
- <template v-for="(it, index) in source.list" :key="index">
|
|
|
|
|
|
+ <template v-for="(it, index) in source?.list" :key="index">
|
|
<div>{{ it }}</div>
|
|
<div>{{ it }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
@@ -290,13 +293,6 @@ onLoad(async (query?: Record<string | 'id', any>) => {
|
|
: `/pages/agent/designer/archives/sale-info/others/index?id=${id}`
|
|
: `/pages/agent/designer/archives/sale-info/others/index?id=${id}`
|
|
"
|
|
"
|
|
></SectionHeading>
|
|
></SectionHeading>
|
|
- <!-- <SectionHeading-->
|
|
|
|
- <!-- title="奖项日期"-->
|
|
|
|
- <!-- :end-text="dayjs(item.awardsTime).format('YYYY-MM-DD')"-->
|
|
|
|
- <!-- ></SectionHeading>-->
|
|
|
|
- <!-- <SectionHeading title="奖项名次" :end-text="item.awardsRank"></SectionHeading>-->
|
|
|
|
- <!-- <SectionHeading title="奖项照片" end-arrow></SectionHeading>-->
|
|
|
|
- <!-- <wd-button type="text" @click="handleDeleteAward(item)">删除</wd-button>-->
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</ListHelperEvo>
|
|
</ListHelperEvo>
|
|
@@ -316,10 +312,51 @@ onLoad(async (query?: Record<string | 'id', any>) => {
|
|
<!-- </PageHelperEvo>-->
|
|
<!-- </PageHelperEvo>-->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template v-if="tab === 'activity'">
|
|
|
|
+ <div class="bg-white p-4 mt-4 flex-grow flex flex-col">
|
|
|
|
+ <SectionHeading title="游学/活动信息"></SectionHeading>
|
|
|
|
+ <ListHelperEvo :request="getDesignerActivities" :query="{ userId: id }">
|
|
|
|
+ <template #default="{ item, isLast }">
|
|
|
|
+ <div class="">
|
|
|
|
+ <template v-if="item.type === 'line'">
|
|
|
|
+ <div class="w-full h-1 bg-[#dadada]"></div>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div class="py-4">
|
|
|
|
+ <SectionHeading
|
|
|
|
+ :title="item.label"
|
|
|
|
+ :end-text="item.value"
|
|
|
|
+ :path="
|
|
|
|
+ isLast
|
|
|
|
+ ? `/pages/agent/designer/archives/activity/others/index?id=${id}`
|
|
|
|
+ : ''
|
|
|
|
+ "
|
|
|
|
+ ></SectionHeading>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <div v-if="!isLast" class="w-full h-.25 bg-[#f4f4f4]"></div>
|
|
|
|
+ <!-- </template>-->
|
|
|
|
+
|
|
|
|
+ <!-- <SectionHeading-->
|
|
|
|
+ <!-- :title="item.label"-->
|
|
|
|
+ <!-- size="base"-->
|
|
|
|
+ <!-- :end-text="String(item.value)"-->
|
|
|
|
+ <!-- end-arrow-->
|
|
|
|
+ <!-- :path="-->
|
|
|
|
+ <!-- !isLast-->
|
|
|
|
+ <!-- ? `/pages/agent/designer/archives/sale-info/index?id=${id}`-->
|
|
|
|
+ <!-- : `/pages/agent/designer/archives/sale-info/others/index?id=${id}`-->
|
|
|
|
+ <!-- "-->
|
|
|
|
+ <!-- ></SectionHeading>-->
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </ListHelperEvo>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
<template v-if="tab === 'events'">
|
|
<template v-if="tab === 'events'">
|
|
<PageHelperEvo :request="getDesignerExtraEvents" :query="eventsQuery">
|
|
<PageHelperEvo :request="getDesignerExtraEvents" :query="eventsQuery">
|
|
<template #default="{ source }">
|
|
<template #default="{ source }">
|
|
- <template v-for="(it, index) in source.list" :key="index">
|
|
|
|
|
|
+ <template v-for="(it, index) in source?.list" :key="index">
|
|
<div>{{ it }}</div>
|
|
<div>{{ it }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|