fixed 节点增加属性,节点名称带上id

This commit is contained in:
2024-12-10 09:36:49 +08:00
parent 35c0ac4eec
commit 28f3395b05
5 changed files with 33 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ class Action::Node < ApplicationRecord
belongs_to :user, optional: true
attr_accessor :cust_name, :run_values, :input_values, :sub_nodes
attr_accessor :cust_name, :run_values, :input_values, :sub_nodes, :link_type_array, :node_id
validates :name, presence: { message: "不能为空" }
validates :full_name, length: { maximum: 200, too_long: "不能超过200个字符" }