fix(测试计划): 修复测试计划缺陷管理抽屉更新附件后未刷新
This commit is contained in:
parent
3b9566e50d
commit
d69715d8ba
|
@ -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) => {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue