feat(工作台): 工作台首页评审数量饼图色阶调整&缺陷增加处理人列字段

This commit is contained in:
xinxin.wu 2024-11-15 18:56:52 +08:00 committed by 刘瑞斌
parent 1e431295b8
commit 2893f1247e
4 changed files with 25 additions and 6 deletions

View File

@ -119,6 +119,16 @@
}, },
showInTable: true, showInTable: true,
}, },
{
title: 'bugManagement.handleMan',
dataIndex: 'handleUser',
slotName: 'handleUser',
titleSlotName: 'handleUserTitle',
showTooltip: true,
width: 125,
showDrag: true,
showInTable: true,
},
{ {
title: 'bugManagement.updateUser', title: 'bugManagement.updateUser',
dataIndex: 'updateUser', dataIndex: 'updateUser',

View File

@ -34,7 +34,13 @@
> >
<template #num="{ record }"> <template #num="{ record }">
<div class="flex items-center"> <div class="flex items-center">
<a-tooltip v-if="props.type === 'my_todo'" :content="`${record.num}`">
<a-button type="text" class="px-0 !text-[14px] !leading-[22px]" @click="openDetail(record.id)">
<div class="one-line-text max-w-[168px]">{{ record.num }}</div>
</a-button>
</a-tooltip>
<PlanExpandRow <PlanExpandRow
v-else
v-model:expanded-keys="expandedKeys" v-model:expanded-keys="expandedKeys"
:record="record" :record="record"
@action="openDetail(record.id)" @action="openDetail(record.id)"

View File

@ -251,11 +251,6 @@
} }
} }
//
function handleRefresh() {
initDefaultList();
}
async function changeHandler() { async function changeHandler() {
try { try {
await editDashboardLayout(defaultWorkList.value, appStore.currentOrgId); await editDashboardLayout(defaultWorkList.value, appStore.currentOrgId);
@ -289,6 +284,7 @@
// id // id
async function requestQueue() { async function requestQueue() {
requestedIds.value = new Set([]);
const awaitType = [WorkCardEnum.API_COUNT, WorkCardEnum.API_CASE_COUNT, WorkCardEnum.SCENARIO_COUNT]; const awaitType = [WorkCardEnum.API_COUNT, WorkCardEnum.API_CASE_COUNT, WorkCardEnum.SCENARIO_COUNT];
const queueList = defaultWorkList.value.filter((item) => awaitType.includes(item.key)); const queueList = defaultWorkList.value.filter((item) => awaitType.includes(item.key));
for (let i = 0; i < queueList.length; i++) { for (let i = 0; i < queueList.length; i++) {
@ -301,6 +297,12 @@
} }
} }
//
async function handleRefresh() {
await initDefaultList();
requestQueue();
}
onMounted(async () => { onMounted(async () => {
const defaultTime = getLocalStorage(`WORK_TIME_${userStore.id}`); const defaultTime = getLocalStorage(`WORK_TIME_${userStore.id}`);
if (!defaultTime) { if (!defaultTime) {
@ -323,6 +325,7 @@
(val) => { (val) => {
if (val.dayNumber || (val.endTime && val.startTime)) { if (val.dayNumber || (val.endTime && val.startTime)) {
time.value = { ...val }; time.value = { ...val };
requestQueue();
} }
}, },
{ deep: true } { deep: true }

View File

@ -45,7 +45,7 @@ export const commonColorConfig = [
export const colorMapConfig: Record<string, string[]> = { export const colorMapConfig: Record<string, string[]> = {
[WorkCardEnum.CASE_COUNT]: ['#ED0303', '#FFA200', '#3370FF', '#D4D4D8'], [WorkCardEnum.CASE_COUNT]: ['#ED0303', '#FFA200', '#3370FF', '#D4D4D8'],
[WorkCardEnum.ASSOCIATE_CASE_COUNT]: ['#00C261', '#3370FF'], [WorkCardEnum.ASSOCIATE_CASE_COUNT]: ['#00C261', '#3370FF'],
[WorkCardEnum.REVIEW_CASE_COUNT]: ['#9441B1', '#00C261', '#D4D4D8', '#3370FF'], [WorkCardEnum.REVIEW_CASE_COUNT]: ['#D4D4D8', '#3370FF', '#00C261', '#ED0303', '#9441B1', '#3370FF'],
[WorkCardEnum.TEST_PLAN_COUNT]: ['#9441B1', '#3370FF', '#00C261', '#D4D4D8'], [WorkCardEnum.TEST_PLAN_COUNT]: ['#9441B1', '#3370FF', '#00C261', '#D4D4D8'],
[WorkCardEnum.PLAN_LEGACY_BUG]: ['#9441B1', '#3370FF', '#00C261', '#D4D4D8'], [WorkCardEnum.PLAN_LEGACY_BUG]: ['#9441B1', '#3370FF', '#00C261', '#D4D4D8'],
[WorkCardEnum.BUG_COUNT]: ['#FFA200', '#D4D4D8', '#00C261'], [WorkCardEnum.BUG_COUNT]: ['#FFA200', '#D4D4D8', '#00C261'],