From 37c914c66204ca56c087da52620b96bb2a820027 Mon Sep 17 00:00:00 2001 From: dhr <2216804034@qq.com> Date: Thu, 21 Aug 2025 18:38:02 +0800 Subject: [PATCH] 0821 --- src/views/patch/index.vue | 15 +++++++++++++-- src/views/tender/plan/index.vue | 14 ++++++++++++-- src/views/tender/supplierInput/index.vue | 5 ++--- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/views/patch/index.vue b/src/views/patch/index.vue index b81f85b..149aea8 100644 --- a/src/views/patch/index.vue +++ b/src/views/patch/index.vue @@ -32,6 +32,7 @@ + @@ -631,8 +632,18 @@ const handleExport = () => { proxy?.download('patch/patch/export', { ...queryParams.value }, `任务列表_${new Date().getTime()}.xlsx`); }; -onMounted(() => { - getList(); +// 监听项目id刷新数据 +const listeningProject = watch( + () => currentProject.value?.id, + (nid, oid) => { + queryParams.value.projectId = nid; + form.value.projectId = nid; + getList(); + } +); + +onUnmounted(() => { + listeningProject(); }); diff --git a/src/views/tender/plan/index.vue b/src/views/tender/plan/index.vue index 3302bf8..dff6321 100644 --- a/src/views/tender/plan/index.vue +++ b/src/views/tender/plan/index.vue @@ -557,8 +557,18 @@ const handleFileRemove = (file: UploadFile) => { console.log('移除文件:', file); }; -onMounted(() => { - getList(); +// 监听项目id刷新数据 +const listeningProject = watch( + () => currentProject.value?.id, + (nid, oid) => { + queryParams.value.projectId = nid; + form.value.projectId = nid; + getList(); + } +); + +onUnmounted(() => { + listeningProject(); }); diff --git a/src/views/tender/supplierInput/index.vue b/src/views/tender/supplierInput/index.vue index c5dd002..5c05dd3 100644 --- a/src/views/tender/supplierInput/index.vue +++ b/src/views/tender/supplierInput/index.vue @@ -64,7 +64,6 @@ - @@ -116,8 +115,8 @@ - - + +