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,