fix(测试计划): 修复测试计划缺陷管理抽屉更新附件后未刷新

This commit is contained in:
xinxin.wu 2024-09-19 12:40:35 +08:00 committed by Craftsman
parent 3b9566e50d
commit d69715d8ba
5 changed files with 12 additions and 6 deletions

View File

@ -138,7 +138,7 @@
:is-platform-default-template="isPlatformDefaultTemplate" :is-platform-default-template="isPlatformDefaultTemplate"
:platform-system-fields="platformSystemFields" :platform-system-fields="platformSystemFields"
:current-platform="props.currentPlatform" :current-platform="props.currentPlatform"
@update-success="detailDrawerRef?.initDetail()" @update-success="updateSuccessHandler"
/> />
<BasicInfo <BasicInfo
v-if="activeTab === 'basicInfo'" v-if="activeTab === 'basicInfo'"
@ -566,6 +566,14 @@
return data; return data;
} }
async function updateSuccessHandler() {
if (props.pagination) {
detailDrawerRef.value?.initDetail();
} else {
updateSuccess();
}
}
watch( watch(
() => showDrawerVisible.value, () => showDrawerVisible.value,
(val) => { (val) => {

View File

@ -80,7 +80,7 @@
</div> </div>
</template> </template>
<template #description="{ record }"> <template #description="{ record }">
<a-tooltip position="tl" class="ms-tooltip-white"> <a-tooltip :disabled="!record.description" position="tl" class="ms-tooltip-white">
<div v-dompurify-html="record.description || '-'"></div> <div v-dompurify-html="record.description || '-'"></div>
<template #content> <template #content>
<div v-dompurify-html="record.description || '-'"></div> <div v-dompurify-html="record.description || '-'"></div>

View File

@ -513,7 +513,6 @@
hideCancel: false, hideCancel: false,
}); });
} else if (val === 'minder') { } else if (val === 'minder') {
keyword.value = '';
// //
emit('init', { moduleIds: [props.activeFolder], projectId: appStore.currentProjectId, pageSize: 10, current: 1 }); emit('init', { moduleIds: [props.activeFolder], projectId: appStore.currentProjectId, pageSize: 10, current: 1 });
} }

View File

@ -259,8 +259,8 @@
}, },
{ {
title: 'caseManagement.featureCase.defectState', title: 'caseManagement.featureCase.defectState',
slotName: 'defectState', slotName: 'statusName',
dataIndex: 'defectState', dataIndex: 'statusName',
showTooltip: true, showTooltip: true,
width: 150, width: 150,
}, },

View File

@ -648,7 +648,6 @@
function handleShowTypeChange(val: string | number | boolean) { function handleShowTypeChange(val: string | number | boolean) {
if (val === 'minder') { if (val === 'minder') {
keyword.value = '';
if (props.treeType === 'COLLECTION') { if (props.treeType === 'COLLECTION') {
emit('setTreeTypeToModule'); // TODO lmy v3.4 emit('setTreeTypeToModule'); // TODO lmy v3.4
return; return;