Browse Source

生成js文件路径问题

master
FLYPHT 2 years ago
parent
commit
01dba789a6
2 changed files with 2 additions and 2 deletions
  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 View File

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


final String eventPath = ModelFormHelper.getEventPath(form); 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(); new File(codePath).mkdirs();


SwMap model = new SwMap(); SwMap model = new SwMap();


+ 1
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormLoadHandler.java View File

@@ -85,7 +85,7 @@ public class ModelFormLoadHandler extends DefaultLoadHandler<ModelForm> {
if (StringUtils.isEmpty(codeJavaPath)) { if (StringUtils.isEmpty(codeJavaPath)) {
return r; 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); String js = FileUtil.readFileStr(path);
if (StringUtils.isEmpty(js)) { if (StringUtils.isEmpty(js)) {
return r; return r;


Loading…
Cancel
Save