fix
13404089107
2025-06-30 690ba689dc5f85937f9a13c482d24e78002c74fe
culture/src/views/pedigree-chart/add.vue
@@ -102,6 +102,7 @@
  confirmStorage,
  deleteNode,
  updateChild,
  edit,
} from "./service";
export default {
  name: "AddPedigree",
@@ -473,6 +474,16 @@
            },
            one: buildTree(this.graphData.nodes, this.graphData.edges),
          };
          if (this.$route.query.id) {
            edit({ ...baseData, id: this.$route.query.id }).then((res) => {
              if (res.code == 200) {
                this.$message.success("编辑成功");
                this.$router.back();
              }
            });
            return
          }
          add(baseData).then((res) => {
            if (res.code == 200) {
              this.$message.success("保存成功");
@@ -601,14 +612,14 @@
            content = `${cfg.planCount || 0}`;
          } else if (cfg.number) {
            // 获取类型名称
            let typeName = "传代菌种";
            let typeName = "接种菌种";
            if (cfg.data && cfg.data.strainType) {
              const typeMap = {
                "1": "原始祖代菌株SO",
                "2": "分离菌落 CO",
                "3": "祖代菌株 O",
              };
              typeName = typeMap[cfg.data.strainType] || "传代菌种";
              typeName = typeMap[cfg.data.strainType] || "接种菌种";
            }
            content = `${typeName}编号:${cfg.number}`;
          }