|
@@ -20,6 +20,7 @@ import {
|
|
|
getSalesOrdersCounts,
|
|
|
saveDesignerFamilyInfo,
|
|
|
getUserInfoById,
|
|
|
+ getEditRecords,
|
|
|
} from '../../../../core/libs/agent-requests'
|
|
|
import { messages } from '../../../../core/libs/messages'
|
|
|
import { omit } from 'radash'
|
|
@@ -44,14 +45,17 @@ const tabs = [
|
|
|
{ label: '奖项信息', value: 'award' },
|
|
|
{ label: '销售信息', value: 'sale' },
|
|
|
{ label: '游学/活动信息', value: 'activity' },
|
|
|
+ { label: '修改记录', value: 'record' },
|
|
|
// { label: '其他活动信息', value: 'events' },
|
|
|
]
|
|
|
const id = ref()
|
|
|
const { data: basicData, run: setBasicData } = useRequest(() => getDesignerBasicInfo(id.value))
|
|
|
console.log('basicData::::', basicData)
|
|
|
const { data: familyData, run: setData } = useRequest(() => getUserInfoById(id.value))
|
|
|
+const { data: editData, run: setEditData } = useRequest(() => getEditRecords())
|
|
|
const query = computed(() => ({ userId: id.value }))
|
|
|
const eventsQuery = computed(() => ({ type: '3' }))
|
|
|
+const recordQuery = computed(() => ({ pageNo: 1, pageSize:10 }))
|
|
|
const actionSheetStatus = ref(false)
|
|
|
const schema = ref<DataFormSchema>()
|
|
|
const formData = ref({
|
|
@@ -237,6 +241,9 @@ onShow(async () => {
|
|
|
case 'activity':
|
|
|
await activityListRef.value?.reload()
|
|
|
break
|
|
|
+ case 'record':
|
|
|
+ await setEditData()
|
|
|
+ break
|
|
|
default:
|
|
|
break
|
|
|
}
|
|
@@ -564,6 +571,25 @@ onShow(async () => {
|
|
|
</template>
|
|
|
</PageHelperEvo>
|
|
|
</template>
|
|
|
+ <template v-if="tab === 'record'">
|
|
|
+ <div class="bg-white p-4 mt-4 flex-grow flex flex-col">
|
|
|
+ <SectionHeading title="修改记录"></SectionHeading>
|
|
|
+ <PageHelperEvo :request="getEditRecords" :query="query">
|
|
|
+ <template #default="{ source }">
|
|
|
+ <template v-for="(it, index) in source?.list" :key="index">
|
|
|
+ <div class="record">
|
|
|
+ <div class="record-time">
|
|
|
+ <div class="time">{{dayjs(it.createTime).format('YYYY-MM-DD')}}</div>
|
|
|
+ <div class="createBy">经纪人:杨温</div>
|
|
|
+ </div>
|
|
|
+ <div class="record-title">修改信息:</div>
|
|
|
+ <div class="record-content">{{it.content}}</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </PageHelperEvo>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<BottomAppBar fixed placeholder>
|
|
|
<wd-button v-if="tab === 'basic'" block :round="false" @click="handleEditBasicInfo">
|
|
@@ -581,3 +607,25 @@ onShow(async () => {
|
|
|
</wd-action-sheet>
|
|
|
</div>
|
|
|
</template>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.record{
|
|
|
+ padding: 60rpx 0;
|
|
|
+ border-bottom: 2rpx solid #F5F5F5;
|
|
|
+ .record-time{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ color: rgba(0, 0, 0, 0.45);
|
|
|
+ font-size: 28rpx;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ }
|
|
|
+ .record-title{
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: rgba(0, 0, 0, 0.45);
|
|
|
+ margin-bottom: 14rpx;
|
|
|
+ }
|
|
|
+ .record-content{
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
+ font-size: 28rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|