From 7e2445e59ae0f5aaa39b9b8c1fbdf32ed080f5c7 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 03 一月 2025 10:09:21 +0800 Subject: [PATCH] 流程推进页面设置前端缓存,实际处理人展示逻辑调整 --- src/views/projectEngineering/projectLibrary/component/DocumentsInfo.vue | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/views/projectEngineering/projectLibrary/component/DocumentsInfo.vue b/src/views/projectEngineering/projectLibrary/component/DocumentsInfo.vue index 43b95c1..9e69851 100644 --- a/src/views/projectEngineering/projectLibrary/component/DocumentsInfo.vue +++ b/src/views/projectEngineering/projectLibrary/component/DocumentsInfo.vue @@ -76,10 +76,26 @@ if (this.$route.query.projectId && !parsedDocumentsInfoForm) { this.getDocumentsInfo(); } + + this.documentsInfoForm.projectId = this.projectForm.id; }, beforeDestroy() { if(Object.keys(this.documentsInfoForm).length !==0) localStorage.setItem("documentsInfoForm", JSON.stringify(this.documentsInfoForm)); }, + watch: { + documentsInfoForm:{ + deep: true, + handler(newVal) { + this.$emit('documentsInfoForm', newVal) + } + }, + fileList: { + deep: true, + handler(newVal) { + this.documentsInfoForm.fileList = newVal + } + } + } }; </script> -- Gitblit v1.8.0