正在显示
2 个修改的文件
包含
6 行增加
和
4 行删除
@@ -25,8 +25,9 @@ const ( | @@ -25,8 +25,9 @@ const ( | ||
25 | ) | 25 | ) |
26 | 26 | ||
27 | type EntryItem struct { | 27 | type EntryItem struct { |
28 | - Title string `json:"title" comment:"填写标题"` | ||
29 | - HintText string `json:"hintText" comment:"文本内容提示"` | 28 | + Title string `json:"title" comment:"填写标题"` |
29 | + HintText string `json:"hintText" comment:"文本内容提示"` | ||
30 | + Definition string `json:"definition" comment:"定义"` | ||
30 | } | 31 | } |
31 | 32 | ||
32 | // NodeContent 评估内容 | 33 | // NodeContent 评估内容 |
@@ -106,8 +106,9 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf | @@ -106,8 +106,9 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf | ||
106 | for i3 := range module.Target { | 106 | for i3 := range module.Target { |
107 | target := module.Target[i3] | 107 | target := module.Target[i3] |
108 | nc.EntryItems = append(nc.EntryItems, &domain.EntryItem{ | 108 | nc.EntryItems = append(nc.EntryItems, &domain.EntryItem{ |
109 | - Title: target.Task, // 输入型标题 | ||
110 | - HintText: target.Definition, // 输入项提示文本 | 109 | + Title: target.Task, // 输入型标题 |
110 | + HintText: "", // 输入项提示文本 | ||
111 | + Definition: target.Definition, //定义 | ||
111 | }) | 112 | }) |
112 | } | 113 | } |
113 | // 没有任何输入项时,默认1个 | 114 | // 没有任何输入项时,默认1个 |
-
请 注册 或 登录 后发表评论