From a5453cb3440e4536b5d5dc5e74e48df482836065 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 08 十二月 2023 12:08:33 +0800
Subject: [PATCH] 码段新增和修改时限制层级类型为最小层级时,层级的值不可输入,并且校验只能输入数字

---
 Source/UBCS-WEB/src/views/modeling/cycle.vue |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/cycle.vue b/Source/UBCS-WEB/src/views/modeling/cycle.vue
index 0fc23e9..6f00942 100644
--- a/Source/UBCS-WEB/src/views/modeling/cycle.vue
+++ b/Source/UBCS-WEB/src/views/modeling/cycle.vue
@@ -229,6 +229,8 @@
           const nodes = res.data.data.nodes.map((item) => {
             item.label = item.id;
             item.index = item.indexNum;
+            item.x = Number(item.x);
+            item.y = Number(item.y);
             return item;
           });
           const edges = res.data.data.edges.map((item) => {

--
Gitblit v1.9.3