fix: 首页项目评论;去掉技术负责人3
This commit is contained in:
@@ -22,6 +22,7 @@ export namespace CommentApi {
|
|||||||
serialNo?: string;
|
serialNo?: string;
|
||||||
businessOwner?: string;
|
businessOwner?: string;
|
||||||
technicalOwnerA?: string;
|
technicalOwnerA?: string;
|
||||||
|
customerName?: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,11 @@ import type { AnalysisOverviewItem, WorkbenchTrendItem } from '@vben/common-ui';
|
|||||||
|
|
||||||
import { onMounted, shallowRef } from 'vue';
|
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 dayjs from 'dayjs';
|
||||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||||
@@ -102,7 +106,10 @@ onMounted(async () => {
|
|||||||
date: dayjs(item.updateTime).format('YYYY-MM-DD HH:mm:ss') || '',
|
date: dayjs(item.updateTime).format('YYYY-MM-DD HH:mm:ss') || '',
|
||||||
title: `${item.projectName ?? ''} `,
|
title: `${item.projectName ?? ''} `,
|
||||||
status: dict,
|
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>
|
||||||
<div class="mr-4 w-full lg:w-1/2">
|
<div class="mr-4 w-full lg:w-1/2">
|
||||||
<WorkbenchTrends
|
<WorkbenchTrendsComment
|
||||||
:items="projectProgressItems"
|
:items="projectProgressItems"
|
||||||
class="mt-5"
|
class="mt-5"
|
||||||
title="项目评论"
|
title="项目评论"
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const formatContent = computed(() => {
|
|||||||
<a-comment :author="data.author">
|
<a-comment :author="data.author">
|
||||||
<template #avatar>
|
<template #avatar>
|
||||||
<a-avatar :src="data.avatar" :alt="data.author">
|
<a-avatar :src="data.avatar" :alt="data.author">
|
||||||
{{ data.author?.substring(0, 2) }}
|
{{ data.author?.slice(-2).toUpperCase() }}
|
||||||
</a-avatar>
|
</a-avatar>
|
||||||
</template>
|
</template>
|
||||||
<template #datetime>
|
<template #datetime>
|
||||||
|
|||||||
@@ -183,20 +183,20 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
fieldName: 'technicalOwnerC',
|
// fieldName: 'technicalOwnerC',
|
||||||
label: $t('project.technicalOwnerC'),
|
// label: $t('project.technicalOwnerC'),
|
||||||
component: 'Select',
|
// component: 'Select',
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
options: userList,
|
// options: userList,
|
||||||
allowClear: true,
|
// allowClear: true,
|
||||||
showSearch: true,
|
// showSearch: true,
|
||||||
fieldNames: { label: 'nickname', value: 'id' },
|
// fieldNames: { label: 'nickname', value: 'id' },
|
||||||
filterOption: (input: string, option: any) => {
|
// filterOption: (input: string, option: any) => {
|
||||||
return option.nickname.toLowerCase().includes(input.toLowerCase());
|
// return option.nickname.toLowerCase().includes(input.toLowerCase());
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
fieldName: 'startTime',
|
fieldName: 'startTime',
|
||||||
label: $t('project.startTime'),
|
label: $t('project.startTime'),
|
||||||
@@ -468,11 +468,11 @@ export function useGridColumns(
|
|||||||
title: $t('project.technicalOwnerB'),
|
title: $t('project.technicalOwnerB'),
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
field: 'technicalOwnerCName',
|
// field: 'technicalOwnerCName',
|
||||||
title: $t('project.technicalOwnerC'),
|
// title: $t('project.technicalOwnerC'),
|
||||||
minWidth: 120,
|
// minWidth: 120,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
field: 'endTime',
|
field: 'endTime',
|
||||||
title: $t('project.endTime'),
|
title: $t('project.endTime'),
|
||||||
|
|||||||
Reference in New Issue
Block a user