update:编辑报告后任务详情内的报告列表刷新
This commit is contained in:
@@ -216,6 +216,10 @@ const beforeUploadFun = (file: any) => {
|
||||
AddFileRef.value.addFileFun(file);
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
baseTableRef,
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
getTaskRunInfoFun();
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user