| | |
| | | pathName = pathName.substring(1); |
| | | } |
| | | } |
| | | map.put("importPath", tableName.replaceAll("_", "-"));// url请求的 |
| | | map.put("pathName", pathName);// url请求的 |
| | | map.put("permName", pathName.replace("/", ":"));// 权限的 |
| | | map.put("columns", columsList); |
| | |
| | | String fileName = ""; |
| | | String filePath = ""; |
| | | if (template.contains("index.vue")) { |
| | | fileName = tableName.substring(tableName.indexOf("_") + 1).replaceAll("_", "-") + ".vue"; |
| | | fileName = className + ".vue"; |
| | | filePath = getFilePath(template, vueFilePath, packageName, moduleName); |
| | | } else if (template.contains("add-or-update.vue")) { |
| | | fileName = tableName.substring(tableName.indexOf("_") + 1).replaceAll("_", "-") + "-add-or-update.vue"; |
| | | fileName = className + "-AddOrUpdate.vue"; |
| | | filePath = getFilePath(template, vueFilePath, packageName, moduleName); |
| | | } else if (template.contains("Entity.java.vm")) { |
| | | fileName = className + ".java"; |