From 119e3d83332269a900612b494f91682aa0dc905d Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Thu, 3 Apr 2025 00:09:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(ProjectAttachment):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DetailComponent/ProjectAttachment.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DetailComponent/ProjectAttachment.vue b/src/components/DetailComponent/ProjectAttachment.vue index e3e0e93..3192b5a 100644 --- a/src/components/DetailComponent/ProjectAttachment.vue +++ b/src/components/DetailComponent/ProjectAttachment.vue @@ -261,7 +261,7 @@ const compositeParam = (item) => { fileType: item.fileType, url: item.url, newFile: true, - tag: getTagName(activeName.value), + tag: getTagName(activeName.value) || '项目实施', } } const getFile = (val) => { From ed22942ab29261df04267a8dabb21493f31d86e8 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Thu, 3 Apr 2025 00:11:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(project-management):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=99=84=E4=BB=B6=E5=90=AF=E7=94=A8=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project-management/filing/index.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/project-management/filing/index.vue b/src/views/project-management/filing/index.vue index 78f2ab5..561dcc9 100644 --- a/src/views/project-management/filing/index.vue +++ b/src/views/project-management/filing/index.vue @@ -11,7 +11,7 @@ import fvSelect from '@/fvcomponents/fvSelect/index.vue' import {toThousands} from '@/utils/changePrice.js' import {switchAttachmentState} from "@/api/project-manage/attachment"; -import {ElMessageBox} from "element-plus"; +import {ElMessageBox, ElNotification} from "element-plus"; import { getSubCompOpt } from '@/api/user/user.js'; import {filterProjectName} from "@/api/project-manage"; import {filterRequirementName} from "@/api/project-demand"; @@ -436,7 +436,15 @@ const handleOpenUpload=(row,flag)=>{ projectId: row.projectId } switchAttachmentState(params).then(res=>{ - tableIns.value.refresh() + if(res.code==1000){ + tableIns.value.refresh() + }else{ + ElNotification({ + title: '提示', + message: res.msg, + type: 'error' + }) + } }) }) }