fix: 首页项目评论;去掉技术负责人3

This commit is contained in:
caiyuchao
2025-08-25 16:26:24 +08:00
parent 6112bdd9bc
commit 0636850977
4 changed files with 31 additions and 23 deletions

View File

@@ -22,6 +22,7 @@ export namespace CommentApi {
serialNo?: string;
businessOwner?: string;
technicalOwnerA?: string;
customerName?: string;
}
}

View File

@@ -3,7 +3,11 @@ import type { AnalysisOverviewItem, WorkbenchTrendItem } from '@vben/common-ui';
import { onMounted, shallowRef } from 'vue';
import { AnalysisOverview, WorkbenchTrends } from '@vben/common-ui';
import {
AnalysisOverview,
WorkbenchTrends,
WorkbenchTrendsComment,
} from '@vben/common-ui';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
@@ -102,7 +106,10 @@ onMounted(async () => {
date: dayjs(item.updateTime).format('YYYY-MM-DD HH:mm:ss') || '',
title: `${item.projectName ?? ''} `,
status: dict,
info: `${item.serialNo ?? ''}  ${item.businessOwner ?? ''}  ${item.technicalOwnerA ?? ''}`,
customerName: item.customerName,
serialNo: item.serialNo,
businessOwner: item.businessOwner,
technicalOwnerA: item.technicalOwnerA,
};
});
});
@@ -131,7 +138,7 @@ onMounted(async () => {
/>
</div>
<div class="mr-4 w-full lg:w-1/2">
<WorkbenchTrends
<WorkbenchTrendsComment
:items="projectProgressItems"
class="mt-5"
title="项目评论"

View File

@@ -79,7 +79,7 @@ const formatContent = computed(() => {
<a-comment :author="data.author">
<template #avatar>
<a-avatar :src="data.avatar" :alt="data.author">
{{ data.author?.substring(0, 2) }}
{{ data.author?.slice(-2).toUpperCase() }}
</a-avatar>
</template>
<template #datetime>

View File

@@ -183,20 +183,20 @@ export function useFormSchema(): VbenFormSchema[] {
},
},
},
{
fieldName: 'technicalOwnerC',
label: $t('project.technicalOwnerC'),
component: 'Select',
componentProps: {
options: userList,
allowClear: true,
showSearch: true,
fieldNames: { label: 'nickname', value: 'id' },
filterOption: (input: string, option: any) => {
return option.nickname.toLowerCase().includes(input.toLowerCase());
},
},
},
// {
// fieldName: 'technicalOwnerC',
// label: $t('project.technicalOwnerC'),
// component: 'Select',
// componentProps: {
// options: userList,
// allowClear: true,
// showSearch: true,
// fieldNames: { label: 'nickname', value: 'id' },
// filterOption: (input: string, option: any) => {
// return option.nickname.toLowerCase().includes(input.toLowerCase());
// },
// },
// },
{
fieldName: 'startTime',
label: $t('project.startTime'),
@@ -468,11 +468,11 @@ export function useGridColumns(
title: $t('project.technicalOwnerB'),
minWidth: 120,
},
{
field: 'technicalOwnerCName',
title: $t('project.technicalOwnerC'),
minWidth: 120,
},
// {
// field: 'technicalOwnerCName',
// title: $t('project.technicalOwnerC'),
// minWidth: 120,
// },
{
field: 'endTime',
title: $t('project.endTime'),