Commit 46626482 by s_guodong

多页签标题

parent 095be164
......@@ -267,7 +267,7 @@ public class MdaContext implements IContext {
// 获取填充的值
valueMap.putAll(snapshotService.getValueMap(keySet, panel.getParent()));
// 設置頁簽標題
String titleI18nKey = panel.getTitleI18nKey();
String titleI18nKey = panel.getWindow() == null ? "" : (String) panel.getWindow();
PackTabBo packTabBo = new PackTabBo();
packTabBo.setLabel(titleI18nKey);
tabList.add(packTabBo);
......
......@@ -211,6 +211,9 @@ public class SnapshotServiceImpl implements SnapshotService {
*/
private CustomAttributes getAttributeValue(List<CustomAttributes> list) {
CustomAttributes data = new CustomAttributes();
if (list == null) {
return data;
}
for (CustomAttributes customAttribute : list) {
if (StringUtils.isNotBlank(customAttribute.getLabelId())) {
data.setLabelId(customAttribute.getLabelId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment