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

View File

@ -80,7 +80,7 @@
</div>
</template>
<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>
<template #content>
<div v-dompurify-html="record.description || '-'"></div>

View File

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

View File

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

View File

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