fix(测试计划): 修复测试计划缺陷管理抽屉更新附件后未刷新
This commit is contained in:
parent
3b9566e50d
commit
d69715d8ba
|
@ -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) => {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -513,7 +513,6 @@
|
|||
hideCancel: false,
|
||||
});
|
||||
} else if (val === 'minder') {
|
||||
keyword.value = '';
|
||||
// 切换到脑图刷新模块统计
|
||||
emit('init', { moduleIds: [props.activeFolder], projectId: appStore.currentProjectId, pageSize: 10, current: 1 });
|
||||
}
|
||||
|
|
|
@ -259,8 +259,8 @@
|
|||
},
|
||||
{
|
||||
title: 'caseManagement.featureCase.defectState',
|
||||
slotName: 'defectState',
|
||||
dataIndex: 'defectState',
|
||||
slotName: 'statusName',
|
||||
dataIndex: 'statusName',
|
||||
showTooltip: true,
|
||||
width: 150,
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue