fix
13404089107
2025-06-30 690ba689dc5f85937f9a13c482d24e78002c74fe
culture/src/views/pedigree-chart/addProgenitor.vue
@@ -79,6 +79,7 @@
  confirmStorage,
  deleteNode,
  updateChild,
  edit
} from "./service";
export default {
@@ -379,6 +380,15 @@
            parent: { ...this.form },
            one: processNodeData(this.graphData.nodes),
          };
          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("保存成功");
@@ -969,14 +979,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}`;
          }