Parcourir la source

生成js文件路径问题

master
FLYPHT il y a 2 ans
Parent
révision
01dba789a6
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/CodeBuildHandler.java
  2. +1
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormLoadHandler.java

+ 1
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/CodeBuildHandler.java Voir le fichier

@@ -67,7 +67,7 @@ public class CodeBuildHandler extends AbstractHandler {
if (StringUtils.isEmpty(moduleName)) throw new BizException("此项目未定义Module!");

final String eventPath = ModelFormHelper.getEventPath(form);
codePath = ModelFormHelper.getCodePath(form) + "/src/main/resources/static/" + eventPath.replaceAll("\\.", "/");
codePath = ModelFormHelper.getCodePath(form) + "/src/main/resources/static/event/" + eventPath.replaceAll("\\.", "/");
new File(codePath).mkdirs();

SwMap model = new SwMap();


+ 1
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormLoadHandler.java Voir le fichier

@@ -85,7 +85,7 @@ public class ModelFormLoadHandler extends DefaultLoadHandler<ModelForm> {
if (StringUtils.isEmpty(codeJavaPath)) {
return r;
}
String path = ModelFormHelper.getCodePath(form) + "/src/main/resources/static/" + ModelFormHelper.getEventPath(form).replaceAll("\\.", "/") + "/" + form.getName() + ".js";
String path = ModelFormHelper.getCodePath(form) + "/src/main/resources/static/event/" + ModelFormHelper.getEventPath(form).replaceAll("\\.", "/") + "/" + form.getName() + ".js";
String js = FileUtil.readFileStr(path);
if (StringUtils.isEmpty(js)) {
return r;


Chargement…
Annuler
Enregistrer