// === EIP4 P4 脚本迁移产出 === // template_id : d2a01b24-9941-4e7c-a96e-74fbb54d2e79 // template_name: 项目部质量目标 // seq : 1 // label : HARD // 硬 S3 原因 : 动态创建 Vaadin 组件 // 处置 : 原文保留,进人工排期(amis dialog/service 重写) import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.FormLayout; //import com.vaadin.shared.ui.label.ContentMode; def mainLayout = group.getField("PROJECTQUALITY")?.parent?.parent?.parent?.parent; def horLayout = new HorizontalLayout(); horLayout?.setSizeFull(); horLayout?.setMargin(true); horLayout?.setSpacing(true); FormLayout fl = new FormLayout(); fl.setWidth("350px"); fl.setMargin(false); fl.addComponent(group.getField("PROJECTID")); horLayout?.addComponent(fl); def label = new Label("项目部质量管理目标、指标及管理方案"); //label?.setContentMode(ContentMode.HTML); //label?.setWidth("100.0%"); //label?.setValue("<span style='font-size: 13px; font-weight: bolder;'>项目部质量管理目标、指标及管理方案</span>"); horLayout?.addComponent(label); horLayout?.setExpandRatio(label, 1.0f); mainLayout?.addComponent(horLayout,0);