update:编辑报告后任务详情内的报告列表刷新

This commit is contained in:
2026-03-20 10:17:18 +08:00
parent cde291d3b6
commit 421ac1a86c
2 changed files with 18 additions and 2 deletions

View File

@@ -216,6 +216,10 @@ const beforeUploadFun = (file: any) => {
AddFileRef.value.addFileFun(file);
};
defineExpose({
baseTableRef,
});
onMounted(async () => {
getTaskRunInfoFun();

View File

@@ -66,6 +66,7 @@
<div class="report-table">
<taskReport
ref="taskReportRef"
:task-id="currentTaskInfo?.uuid"
:show-left-options="showLeftOptions"
:canUpdate="isPMemberOrEMember"
@@ -216,7 +217,11 @@
</template>
</Dialog>
<ReportInputDialog v-model="reportInpDiaShow" :taskId="currentTaskInfo?.uuid" />
<ReportInputDialog
v-model="reportInpDiaShow"
:taskId="currentTaskInfo?.uuid"
@update:model-value="reportChangeFun"
/>
</div>
</template>
@@ -287,7 +292,7 @@ const activeName = ref('taskDetail');
const keyResultType = ref('performance');
const approvaVisable = ref(false);
const reportInpDiaShow = ref(false);
const taskReportRef = ref();
const handleClickFun = () => {};
const currentTaskInfo = ref<any>(null);
@@ -392,6 +397,13 @@ const getTaskImportLevelFun = () => {
}
};
// 刷新报告列表
const reportChangeFun = () => {
if (taskReportRef.value) {
taskReportRef.value?.baseTableRef?.resetFun();
}
};
// 监控传入的任务信息
watch(
() => props.taskInfo,