Commit 7b778386 authored by 胡斌's avatar 胡斌

过滤规则维护

parent 220b8b10
This diff is collapsed.
No preview for this file type
...@@ -66,7 +66,8 @@ public class TaskManageController { ...@@ -66,7 +66,8 @@ public class TaskManageController {
@Autowired @Autowired
private EWarningCalcResultDao eWarningCalcResultDao; private EWarningCalcResultDao eWarningCalcResultDao;
@Autowired
private SystemParameterDao systemParameterDao;
@RequestMapping(value = "/taskHome") @RequestMapping(value = "/taskHome")
...@@ -333,9 +334,10 @@ public class TaskManageController { ...@@ -333,9 +334,10 @@ public class TaskManageController {
@ResponseBody @ResponseBody
public APPEWarningDetail ModelPreview(String id){ public APPEWarningDetail ModelPreview(String id){
APPEWarningDetail app =null; APPEWarningDetail app =null;
String modelSavePath = systemParameterDao.findByParameterName("MODEL_SCRIPT_FILE_DIR").get(0).getParameterValue();
RunTask rt = runTaskService.getRunTask(Long.parseLong(id)); RunTask rt = runTaskService.getRunTask(Long.parseLong(id));
String path = "/home/dsadm/ETL/test/"+rt.getDataModelView().getModelScriptName()+" "+id; String path =modelSavePath+rt.getDataModelView().getModelScriptName()+" "+id;
// String path ="d:\\rscript\\a.r"; // String path ="d:\\rscript\\a.r";
try { try {
Runtime run = Runtime.getRuntime();// 返回与当前 Java 应用程序相关的运行时对象 Runtime run = Runtime.getRuntime();// 返回与当前 Java 应用程序相关的运行时对象
...@@ -375,8 +377,10 @@ public class TaskManageController { ...@@ -375,8 +377,10 @@ public class TaskManageController {
}; };
@RequestMapping(value = "/modelPreviewImg") @RequestMapping(value = "/modelPreviewImg")
public void ModelPreview(HttpServletResponse response,String path){ public void ModelPreview(HttpServletResponse response,String path){
System.out.println("fileName:"+path); // System.out.println("fileName:"+path);
File file = new File("/home/dsadm/ETL/test/"+path); String modelSavePath = systemParameterDao.findByParameterName("MODEL_SCRIPT_FILE_DIR").get(0).getParameterValue();
File file = new File(modelSavePath+"img"+path);
// File file = new File("d:\\rscript\\al.jpg"); // File file = new File("d:\\rscript\\al.jpg");
FileInputStream fis; FileInputStream fis;
try { try {
......
...@@ -253,10 +253,10 @@ public class ModelMaintainController { ...@@ -253,10 +253,10 @@ public class ModelMaintainController {
ftpFileInput.close(); ftpFileInput.close();
ftpClient.logout(); ftpClient.logout();
ftpClient.disconnect(); ftpClient.disconnect();
File oldFile = new File(modelSavePath,ftpFileName); // File oldFile = new File(modelSavePath,ftpFileName);
if(oldFile.isFile() && oldFile.exists()){ // if(oldFile.isFile() && oldFile.exists()){
oldFile.delete(); // oldFile.delete();
} // }
} catch (SocketException e) { } catch (SocketException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
......
...@@ -151,6 +151,7 @@ $(".ifRepeate").change(function (){ ...@@ -151,6 +151,7 @@ $(".ifRepeate").change(function (){
$unit.append(new Option("月",3)) $unit.append(new Option("月",3))
}else{ }else{
var msg ="";
alertMsg.forEach(function (t,i) { alertMsg.forEach(function (t,i) {
msg+="<span style='color: red'>"+(i+1)+"."+t+"</span><br />" msg+="<span style='color: red'>"+(i+1)+"."+t+"</span><br />"
}); });
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
kpiName:'${list.kpiName}',businessId:'${list.businessId}'}); kpiName:'${list.kpiName}',businessId:'${list.businessId}'});
</c:forEach> </c:forEach>
var dataSourceList = []; var dataSourceList = [];
<c:forEach var="list" items="${dataSourceList}"> <c:forEach var="list" items="${datasourceList}">
dataSourceList.push({dataSourceName:'${list.dataSourceName}', dataSourceId:'${list.dataSourceId}'}); dataSourceList.push({dataSourceName:'${list.dataSourceName}', dataSourceId:'${list.dataSourceId}'});
</c:forEach> </c:forEach>
filterResultDetailTable(); filterResultDetailTable();
......
...@@ -203,7 +203,6 @@ table_pagging.prototype = { ...@@ -203,7 +203,6 @@ table_pagging.prototype = {
}, },
pagging : function(objectJson) { pagging : function(objectJson) {
console.log(objectJson)
this.objectlist = eval('(' + objectJson + ')'); this.objectlist = eval('(' + objectJson + ')');
if (this.start + this.limit >= this.objectlist.length) { if (this.start + this.limit >= this.objectlist.length) {
......
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