Commit 694c549336ef72563cc6f17ab544473557a043cf

Authored by 黄 x
1 parent f91e3d2a

fix: remove ComponentLayout id

@@ -74,8 +74,8 @@ public class YtDataComponentController extends BaseController { @@ -74,8 +74,8 @@ public class YtDataComponentController extends BaseController {
74 if (null == defaultLayout) { 74 if (null == defaultLayout) {
75 defaultLayout = new ComponentLayoutDTO(result.getData().getId()); 75 defaultLayout = new ComponentLayoutDTO(result.getData().getId());
76 } else { 76 } else {
77 - if (StringUtils.isEmpty(defaultLayout.getId())  
78 - || null == defaultLayout.getH() 77 + defaultLayout.setId(result.getData().getId());
  78 + if (null == defaultLayout.getH()
79 || null == defaultLayout.getW() 79 || null == defaultLayout.getW()
80 || null == defaultLayout.getX() 80 || null == defaultLayout.getX()
81 || null == defaultLayout.getY()) { 81 || null == defaultLayout.getY()) {
@@ -10,7 +10,7 @@ public class ComponentLayoutDTO implements Serializable { @@ -10,7 +10,7 @@ public class ComponentLayoutDTO implements Serializable {
10 10
11 private static final long serialVersionUID = 8166034261704947504L; 11 private static final long serialVersionUID = 8166034261704947504L;
12 12
13 - @ApiModelProperty(value = "组件元素ID", required = true) 13 + @ApiModelProperty(value = "组件元素ID")
14 private String id; 14 private String id;
15 15
16 @ApiModelProperty(value = "X坐标", required = true) 16 @ApiModelProperty(value = "X坐标", required = true)