提交 a7a15b09 编写于 作者: RedPig97's avatar RedPig97

update: 更新

上级 40fa6442
...@@ -35,17 +35,22 @@ public class PageModel extends BaseModel{ ...@@ -35,17 +35,22 @@ public class PageModel extends BaseModel{
if(appView.getPSControls()!=null) if(appView.getPSControls()!=null)
{ {
appView.getPSControls().forEach(item->{ appView.getPSControls().forEach(item->{
if(appView.getCodeName().equals("ChartDataUsr2GridView")) {
System.out.println(item.getId());
}
CtrlModel ctrl=new CtrlModel(appModel,item); CtrlModel ctrl=new CtrlModel(appModel,item);
if(ctrl.getControl().getPSAppDataEntity()!=null) {
AppEntityModel ctrlAppEntity=app.getAppEntity(ctrl.getControl().getPSAppDataEntity().getCodeName());
ctrl.setAppEntity(ctrlAppEntity);
ctrlAppEntity.addCtrl(ctrl.getId(),ctrl);
}
if(!this.app.getCtrlsMap().containsKey(ctrl.getId())) if(!this.app.getCtrlsMap().containsKey(ctrl.getId()))
{ {
if(ctrl.getControl().getPSAppDataEntity()!=null) {
AppEntityModel ctrlAppEntity=app.getAppEntity(ctrl.getControl().getPSAppDataEntity().getCodeName());
ctrl.setAppEntity(ctrlAppEntity);
ctrlAppEntity.addCtrl(ctrl.getId(),ctrl);
}
this.app.getCtrlsMap().put(ctrl.getId(),ctrl); this.app.getCtrlsMap().put(ctrl.getId(),ctrl);
} }
this.ctrlsMap.put(ctrl.getId(),ctrl); if(!this.ctrlsMap.containsKey(ctrl.getId())){
this.ctrlsMap.put(ctrl.getId(),ctrl);
}
// 树导航栏获取数据部件 // 树导航栏获取数据部件
if ("TREEEXPBAR".equals(ctrl.getControl().getControlType())) { if ("TREEEXPBAR".equals(ctrl.getControl().getControlType())) {
List<IPSControl> controls = ((IPSExpBar)item).getPSControls(); List<IPSControl> controls = ((IPSExpBar)item).getPSControls();
......
...@@ -7,9 +7,9 @@ import { ViewConfig } from './{{spinalCase page.codeName}}-config'; ...@@ -7,9 +7,9 @@ import { ViewConfig } from './{{spinalCase page.codeName}}-config';
{{#eq controlType "GRID"}} {{#eq controlType "GRID"}}
import { {{codeName}}Grid } from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase codeName}}-grid'; import { {{codeName}}Grid } from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase codeName}}-grid';
{{/eq}} {{/eq}}
{{#eq controlType "SEARCHFORM"}} {{#if (and (eq controlType "SEARCHFORM") (eq name 'searchform'))}}
import { {{codeName}}SearchForm } from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase codeName}}-searchForm'; import { {{codeName}}SearchForm } from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase codeName}}-searchForm';
{{/eq}} {{/if}}
{{/page.ctrls}} {{/page.ctrls}}
// props声明和默认值处理 // props声明和默认值处理
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册