Browse Source

REPORT-127453 frm问题处理

mss/2.0
Destiny.Lin 4 months ago
parent
commit
df58ea9ae2
  1. 12
      designer-base/src/main/java/com/fr/startup/ui/StartupPageModel.java
  2. 2
      designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java

12
designer-base/src/main/java/com/fr/startup/ui/StartupPageModel.java

@ -1,5 +1,6 @@
package com.fr.startup.ui;
import com.fr.base.extension.FileExtension;
import com.fr.design.DesignerEnvManager;
import com.fr.design.env.DesignerWorkspaceInfo;
import com.fr.design.env.DesignerWorkspaceType;
@ -19,7 +20,8 @@ import java.util.stream.Collectors;
* created by Harrison on 2022/07/06
**/
public class StartupPageModel {
private static final String FRM = "frm";
private static final String FORM = "form";
private StartupWorkspaceBean selectWorkspaceInfo;
private List<StartupWorkspaceBean> workspaceInfos = new ArrayList<>();
@ -57,7 +59,13 @@ public class StartupPageModel {
for (StartupWorkspaceBean info : infos) {
String name = info.getName();
List<String> recentFiles = envManager.getRecentOpenedFilePathList4Env(name);
recentFileMap.put(name, recentFiles);
List<String> checkFiles = new ArrayList<>();
for (String s : recentFiles) {
if (!s.endsWith(FRM) && !s.endsWith(FORM)) {
checkFiles.add(s);
}
}
recentFileMap.put(name, checkFiles);
}
return new StartupPageModel(infos, recentFileMap);
}

2
designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java vendored

@ -56,6 +56,6 @@ public class DesignAppComponent {
*/
@Supplemental
public void prepare() {
Carina.getApplicationContext().group(AppGroup.class).addAll(new CptApp(), new CptxApp(), new FormApp(), new XlsApp(), new XlsxApp());
Carina.getApplicationContext().group(AppGroup.class).addAll(new CptApp(), new CptxApp(), new XlsApp(), new XlsxApp());
}
}

Loading…
Cancel
Save