From e77b3f583d4a1c8a5826988d743ca184181b7ad7 Mon Sep 17 00:00:00 2001 From: gengxin Date: Wed, 5 Mar 2025 13:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=AD=E5=BF=83=EF=BC=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=9B=9E=E6=98=BE10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectcenter/ProjectAdd.vue | 1 + src/views/projectcenter/ProjectManage.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index 209f71eb..bb8d0c1f 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -350,6 +350,7 @@ export default { }); watch(routers.query, () => { + state.projectInfo.name = routers.query.name; state.projectInfo.id = routers.query.id; state.projectInfo.parentName = routers.query.parentName; state.projectInfo.parentId = routers.query.parentId; diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 919e2dc1..a22a9482 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -1579,7 +1579,7 @@ export default { } function handleEdit(record) { console.log("handleEdit gx 项目中心-项目" ,record); - if (record.type === 1 || record.type === 2 || record.type === 3) { + if (record.type === 1 || record.type === 2) { state.doublepro = true; state.projectInfo = record; state.onceName = record.name; @@ -1595,6 +1595,7 @@ export default { router.push({ path: "/projectadd", query: { + name: record.name, projectId: record.id, parentId: record.parentId, parentName: record.parentName,