项目中心,编辑回显10

This commit is contained in:
gengxin
2025-03-05 13:32:53 +08:00
parent be2d3b2960
commit e77b3f583d
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -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,