Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmszMonitorAnalysis
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuna
cmszMonitorAnalysis
Commits
196722b8
Commit
196722b8
authored
Dec 10, 2017
by
胡斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智能分析平台备份
parent
96875115
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
294 additions
and
280 deletions
+294
-280
CmszMonitorAnalysis.war
CmszMonitorAnalysis.war
+0
-0
RunTaskDao.java
.../java/com/hp/cmsz/repository/commonmanage/RunTaskDao.java
+6
-0
PageURLController.java
src/main/java/com/hp/cmsz/web/PageURLController.java
+2
-2
TaskManageController.java
...va/com/hp/cmsz/web/commonmanage/TaskManageController.java
+11
-9
TaskManageController.class
...s/com/hp/cmsz/web/commonmanage/TaskManageController.class
+0
-0
FilterRuleMaintain.jsp
...bapp/WEB-INF/views/AnalysisSupport/FilterRuleMaintain.jsp
+250
-256
ModelMonitorHome.jsp
...main/webapp/WEB-INF/views/TaskManage/ModelMonitorHome.jsp
+12
-1
RunTaskForm.jsp
src/main/webapp/WEB-INF/views/TaskManage/RunTaskForm.jsp
+3
-6
RunTaskImage.jsp
src/main/webapp/WEB-INF/views/TaskManage/RunTaskImage.jsp
+3
-2
xcdWarningTable.js
src/main/webapp/static/js/xcdWarningTable.js
+7
-4
No files found.
CmszMonitorAnalysis.war
View file @
196722b8
No preview for this file type
src/main/java/com/hp/cmsz/repository/commonmanage/RunTaskDao.java
View file @
196722b8
...
@@ -8,6 +8,9 @@ import org.springframework.data.repository.query.Param;
...
@@ -8,6 +8,9 @@ import org.springframework.data.repository.query.Param;
import
com.hp.cmsz.entity.commonmanage.RunTask
;
import
com.hp.cmsz.entity.commonmanage.RunTask
;
import
javax.persistence.SequenceGenerator
;
import
java.util.List
;
/**
/**
* RunTask实体类对应的Dao层实现
* RunTask实体类对应的Dao层实现
*
*
...
@@ -23,4 +26,7 @@ public interface RunTaskDao extends PagingAndSortingRepository<RunTask, Long>, J
...
@@ -23,4 +26,7 @@ public interface RunTaskDao extends PagingAndSortingRepository<RunTask, Long>, J
@Modifying
@Modifying
@Query
(
"update RunTask t set t.taskStatus='3' where t.taskType.tasktypeId=1 and t.dataModelView.dataModelId=:dataModelId "
)
@Query
(
"update RunTask t set t.taskStatus='3' where t.taskType.tasktypeId=1 and t.dataModelView.dataModelId=:dataModelId "
)
public
void
updateTaskStatusByModelId
(
@Param
(
"dataModelId"
)
Long
dataModelId
);
public
void
updateTaskStatusByModelId
(
@Param
(
"dataModelId"
)
Long
dataModelId
);
}
}
src/main/java/com/hp/cmsz/web/PageURLController.java
View file @
196722b8
...
@@ -44,8 +44,8 @@ public class PageURLController {
...
@@ -44,8 +44,8 @@ public class PageURLController {
public
static
String
ImgDisplay
=
"MonitorOperation/ImgDisplay"
;
public
static
String
ImgDisplay
=
"MonitorOperation/ImgDisplay"
;
//模型监控下的预览图片展示
//模型监控下的预览图片展示
//
ImgDisplay映射到WEB-INF/views下的MonitorOperation/ImgDisplay
.jsp页面
//
RunTaskImgDisplay-INF/TaskManage/RunTaskImage
.jsp页面
public
static
String
RunTaskImgDisplay
=
"TaskManage/
ImgDisplay
"
;
public
static
String
RunTaskImgDisplay
=
"TaskManage/
RunTaskImage
"
;
//监控运营下的告警分析
//监控运营下的告警分析
//WarnAnalysis映射到WEB-INF/views下的MonitorOperation/WarnAnalysis.jsp页面
//WarnAnalysis映射到WEB-INF/views下的MonitorOperation/WarnAnalysis.jsp页面
...
...
src/main/java/com/hp/cmsz/web/commonmanage/TaskManageController.java
View file @
196722b8
package
com
.
hp
.
cmsz
.
web
.
commonmanage
;
package
com
.
hp
.
cmsz
.
web
.
commonmanage
;
import
com.hp.cmsz.repository.commonmanage.EWarningCalcResultDao
;
import
com.hp.cmsz.repository.commonmanage.EWarningCalcResultDao
;
import
com.hp.cmsz.repository.commonmanage.RunTaskDao
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
@@ -11,6 +13,10 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -11,6 +13,10 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityManagerFactory
;
import
javax.persistence.Persistence
;
import
javax.persistence.Query
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.*
;
import
java.io.*
;
...
@@ -53,6 +59,8 @@ public class TaskManageController {
...
@@ -53,6 +59,8 @@ public class TaskManageController {
@Autowired
@Autowired
private
BusinessDao
businessDao
;
private
BusinessDao
businessDao
;
@Autowired
private
RunTaskDao
runTaskDao
;
@Autowired
@Autowired
private
com
.
hp
.
cmsz
.
repository
.
PublicDao
PublicDao
;
private
com
.
hp
.
cmsz
.
repository
.
PublicDao
PublicDao
;
...
@@ -99,17 +107,10 @@ public class TaskManageController {
...
@@ -99,17 +107,10 @@ public class TaskManageController {
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"5"
)
int
pageSize
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"5"
)
int
pageSize
,
RunTask
runTask
,
String
newTaskStatus
)
{
RunTask
runTask
,
String
newTaskStatus
)
{
ModelAndView
modelAndView
=
new
ModelAndView
(
PageURLController
.
RunTaskList
);
ModelAndView
modelAndView
=
new
ModelAndView
(
PageURLController
.
RunTaskList
);
/*if (StringUtils.isNotEmpty(newTaskStatus) && runTask.getTaskId() != null) {
runTaskService.updateTaskStatus(runTask.getTaskId(), newTaskStatus);
}
Page<RunTask> taskList = runTaskService.getRunTaskPage(runTask, pageNumber, pageSize, sortType);
modelAndView.addObject("taskList", taskList);*/
modelAndView
.
addObject
(
"queryCondition"
,
runTask
);
modelAndView
.
addObject
(
"queryCondition"
,
runTask
);
modelAndView
.
addObject
(
"pageSize"
,
pageSize
);
modelAndView
.
addObject
(
"pageSize"
,
pageSize
);
modelAndView
.
addObject
(
"sortType"
,
sortType
);
modelAndView
.
addObject
(
"sortType"
,
sortType
);
modelAndView
.
addObject
(
"taskTypeList"
,
runTaskService
.
getTaskTypeList
());
modelAndView
.
addObject
(
"taskTypeList"
,
runTaskService
.
getTaskTypeList
());
// modelAndView.addObject("useType", defaultTaskType);
return
modelAndView
;
return
modelAndView
;
}
}
...
@@ -342,7 +343,8 @@ public class TaskManageController {
...
@@ -342,7 +343,8 @@ public class TaskManageController {
@RequestMapping
(
value
=
"/modelPreview"
)
@RequestMapping
(
value
=
"/modelPreview"
)
@ResponseBody
@ResponseBody
public
APPEWarningDetail
ModelPreview
(
String
id
){
public
APPEWarningDetail
ModelPreview
(
String
id
){
APPEWarningDetail
app
=
null
;
// APPEWarningDetail app = null;
APPEWarningDetail
app
=
new
APPEWarningDetail
();
String
modelSavePath
=
systemParameterDao
.
findByParameterName
(
"MODEL_SCRIPT_FILE_DIR"
).
get
(
0
).
getParameterValue
();
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
));
...
@@ -390,7 +392,7 @@ public class TaskManageController {
...
@@ -390,7 +392,7 @@ public class TaskManageController {
String
modelSavePath
=
systemParameterDao
.
findByParameterName
(
"MODEL_SCRIPT_FILE_DIR"
).
get
(
0
).
getParameterValue
();
String
modelSavePath
=
systemParameterDao
.
findByParameterName
(
"MODEL_SCRIPT_FILE_DIR"
).
get
(
0
).
getParameterValue
();
File
file
=
new
File
(
modelSavePath
+
path
);
File
file
=
new
File
(
modelSavePath
+
path
);
// File file = new File("
d:\\rscript\\al.jpg
");
// File file = new File("
D:\\game\\Warcraft3\\361_ee8b12708735464225629f3200a93.gif
");
FileInputStream
fis
;
FileInputStream
fis
;
try
{
try
{
fis
=
new
FileInputStream
(
file
);
fis
=
new
FileInputStream
(
file
);
...
...
src/main/webapp/WEB-INF/classes/com/hp/cmsz/web/commonmanage/TaskManageController.class
View file @
196722b8
No preview for this file type
src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleMaintain.jsp
View file @
196722b8
...
@@ -121,280 +121,275 @@
...
@@ -121,280 +121,275 @@
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
<script
type=
"text/javascript"
>
$
(
"#ruleBack"
).
click
(
function
(){
$
(
"#ruleBack"
).
click
(
function
(){
location
.
href
=
"${ctx}/AnalysisSupport/FilterRuleResult"
;
location
.
href
=
"${ctx}/AnalysisSupport/FilterRuleResult"
;
});
});
$
(
".period"
).
hide
();
$
(
".period"
).
hide
();
$
(
".ifRepeate"
).
change
(
function
(){
$
(
".ifRepeate"
).
change
(
function
(){
var
selectValue
=
$
(
"input:radio[name='ifRepeate']:checked"
).
val
();
var
selectValue
=
$
(
"input:radio[name='ifRepeate']:checked"
).
val
();
if
(
selectValue
==
0
){
if
(
selectValue
==
0
){
var
alertMsg
=
[];
var
alertMsg
=
[];
var
filterStartTime
=
$
(
"#filterStartTime"
).
val
();
var
filterStartTime
=
$
(
"#filterStartTime"
).
val
();
if
(
filterStartTime
===
""
){
if
(
filterStartTime
===
""
){
alertMsg
.
push
(
"您没有选择生效开始时间,请先选择生效开始时间和结束时间"
)
alertMsg
.
push
(
"您没有选择生效开始时间,请先选择生效开始时间和结束时间"
)
}
}
var
filterEndTime
=
$
(
"#filterEndTime"
).
val
();
var
filterEndTime
=
$
(
"#filterEndTime"
).
val
();
if
(
filterEndTime
===
""
){
if
(
filterEndTime
===
""
){
alertMsg
.
push
(
"您没有选择生效结束时间,请先选择生效开始时间和结束时间"
)
alertMsg
.
push
(
"您没有选择生效结束时间,请先选择生效开始时间和结束时间"
)
}
if
(
alertMsg
.
length
===
0
){
var
timeDifference
=
new
Date
(
filterEndTime
).
getTime
()
-
new
Date
(
filterStartTime
).
getTime
();
var
$unit
=
$
(
"#unit"
);
$unit
.
empty
();
if
(
timeDifference
<
(
1000
*
60
*
60
*
24
)){
$unit
.
append
(
new
Option
(
"分钟"
,
0
));
$unit
.
append
(
new
Option
(
"小时"
,
1
))
}
$unit
.
append
(
new
Option
(
"天"
,
2
));
$unit
.
append
(
new
Option
(
"月"
,
3
))
}
else
{
var
msg
=
""
;
alertMsg
.
forEach
(
function
(
t
,
i
)
{
msg
+=
"<span style='color: red'>"
+
(
i
+
1
)
+
"."
+
t
+
"</span><br />"
});
$
.
dialog
({
title
:
"提醒"
,
content
:
msg
,
ok
:
function
(){
},
okValue
:
"确定"
,
lock
:
true
});
}
$
(
".period"
).
show
();
}
if
(
selectValue
==
1
){
$
(
".period"
).
hide
();
}
});
function
changeDate
()
{
$
(
"input[name='ifRepeate']:eq(1)"
).
attr
(
"checked"
,
'checked'
);
$
(
".period"
).
hide
();
}
}
if
(
alertMsg
.
length
===
0
){
var
timeDifference
=
new
Date
(
filterEndTime
).
getTime
()
-
new
Date
(
filterStartTime
).
getTime
();
var
$unit
=
$
(
"#unit"
);
$unit
.
empty
();
if
(
timeDifference
<
(
1000
*
60
*
60
*
24
)){
$unit
.
append
(
new
Option
(
"分钟"
,
0
));
$unit
.
append
(
new
Option
(
"小时"
,
1
))
}
$unit
.
append
(
new
Option
(
"天"
,
2
));
$unit
.
append
(
new
Option
(
"月"
,
3
))
}
else
{
function
getProvinceCheckedValues
()
{
var
msg
=
""
;
var
provinceArray
=
[];
alertMsg
.
forEach
(
function
(
t
,
i
)
{
var
i
=
0
;
msg
+=
"<span style='color: red'>"
+
(
i
+
1
)
+
"."
+
t
+
"</span><br />"
$
(
"#province:checked"
).
each
(
function
(){
provinceArray
[
i
]
=
$
(
this
).
val
();
i
++
;
});
});
$
.
dialog
({
return
provinceArray
;
title
:
"提醒"
,
content
:
msg
,
ok
:
function
(){
},
okValue
:
"确定"
,
lock
:
true
});
}
$
(
".period"
).
show
();
}
if
(
selectValue
==
1
){
$
(
".period"
).
hide
();
}
});
function
changeDate
()
{
$
(
"input[name='ifRepeate']:eq(1)"
).
attr
(
"checked"
,
'checked'
);
$
(
".period"
).
hide
();
}
function
getProvinceCheckedValues
()
{
var
provinceArray
=
[];
var
i
=
0
;
$
(
"#province:checked"
).
each
(
function
(){
provinceArray
[
i
]
=
$
(
this
).
val
();
i
++
;
});
return
provinceArray
;
}
function
getProvinceCheckedValuesString
(){
var
provinceStr
=
""
;
var
provinceArray
=
getProvinceCheckedValues
();
for
(
var
i
=
0
;
i
<
provinceArray
.
length
;
i
++
){
if
(
i
==
provinceArray
.
length
-
1
){
provinceStr
+=
provinceArray
[
i
];
}
else
{
provinceStr
+=
provinceArray
[
i
]
+
","
;
}
}
}
return
provinceStr
;
}
var
dataSourceValue
=
$
(
"#dataSource"
).
val
();
function
getProvinceCheckedValuesString
(){
var
channelValue
=
$
(
"#channel"
).
val
();
var
provinceStr
=
""
;
var
businessIds
=
getBusinessCheckedValues
();
var
provinceArray
=
getProvinceCheckedValues
();
var
calCycleValue
=
$
(
"#calCycle"
).
val
();
for
(
var
i
=
0
;
i
<
provinceArray
.
length
;
i
++
){
$
(
"#dataSource"
).
change
(
function
(){
if
(
i
==
provinceArray
.
length
-
1
){
dataSourceValue
=
$
(
"#dataSource"
).
val
();
provinceStr
+=
provinceArray
[
i
];
updateBusiness
(
dataSourceValue
,
channelValue
);
}
else
{
});
provinceStr
+=
provinceArray
[
i
]
+
","
;
$
(
"#channel"
).
change
(
function
(){
}
channelValue
=
$
(
"#channel"
).
val
();
}
updateBusiness
(
dataSourceValue
,
channelValue
);
return
provinceStr
;
}
});
var
dataSourceValue
=
$
(
"#dataSource"
).
val
();
var
channelValue
=
$
(
"#channel"
).
val
();
var
businessIds
=
getBusinessCheckedValues
();
var
calCycleValue
=
$
(
"#calCycle"
).
val
();
$
(
"#dataSource"
).
change
(
function
(){
dataSourceValue
=
$
(
"#dataSource"
).
val
();
updateBusiness
(
dataSourceValue
,
channelValue
);
});
$
(
"#channel"
).
change
(
function
(){
channelValue
=
$
(
"#channel"
).
val
();
updateBusiness
(
dataSourceValue
,
channelValue
);
function
updateKpi
(
businessIds
){
});
$
.
ajax
({
function
updateKpi
(
businessIds
){
type
:
"GET"
,
contentType
:
"application/json"
,
$
.
ajax
({
url
:
"${ctx}/AnalysisSupport/QualityRuleMaintain/findKpiId?businessIds="
+
businessIds
,
type
:
"GET"
,
async
:
false
,
contentType
:
"application/json"
,
beforeSend
:
function
(
data
)
{},
url
:
"${ctx}/AnalysisSupport/QualityRuleMaintain/findKpiId?businessIds="
+
businessIds
,
success
:
function
(
data
){
async
:
false
,
var
td
=
$
(
"#kpitd"
);
beforeSend
:
function
(
data
)
{},
td
.
empty
();
success
:
function
(
data
){
data
=
JSON
.
parse
(
data
)
var
td
=
$
(
"#kpitd"
);
data
.
forEach
(
function
(
t
){
td
.
empty
();
td
.
append
(
"<input type='checkbox' name='kpiinput' class='kpiItem' value='"
+
t
[
0
]
+
"' checked >"
+
t
[
1
]
+
"</input>"
)
data
=
JSON
.
parse
(
data
)
data
.
forEach
(
function
(
t
){
td
.
append
(
"<input type='checkbox' name='kpiinput' class='kpiItem' value='"
+
t
[
0
]
+
"' checked />"
+
t
[
1
])
});
}
});
});
}
}
});
}
function
updateBusiness
(
dataSource
,
channel
){
function
updateBusiness
(
dataSource
,
channel
){
$
.
ajax
({
$
.
ajax
({
type
:
"GET"
,
type
:
"GET"
,
contentType
:
"application/json"
,
contentType
:
"application/json"
,
url
:
"${ctx}/AnalysisSupport/QualityRuleMaintain/findBusinessId?dataSource="
+
dataSource
+
"&channel="
+
channel
,
url
:
"${ctx}/AnalysisSupport/QualityRuleMaintain/findBusinessId?dataSource="
+
dataSource
+
"&channel="
+
channel
,
async
:
false
,
async
:
false
,
beforeSend
:
function
(
data
)
{},
beforeSend
:
function
(
data
)
{},
success
:
function
(
data
){
success
:
function
(
data
){
var
td
=
$
(
"#businesstd"
);
var
td
=
$
(
"#businesstd"
);
var
businessIds
=
new
Array
();
var
businessIds
=
new
Array
();
td
.
empty
();
td
.
empty
();
data
=
JSON
.
parse
(
data
)
data
=
JSON
.
parse
(
data
)
data
.
forEach
(
function
(
t
){
data
.
forEach
(
function
(
t
){
td
.
append
(
"<input type='checkbox' name='businessinput' class='businessItem' value='"
+
t
[
0
]
+
"' checked >"
+
t
[
1
]
+
"</input>"
)
td
.
append
(
"<input type='checkbox' name='businessinput' class='businessItem' value='"
+
t
[
0
]
+
"' checked />"
+
t
[
1
])
businessIds
+=
t
[
0
]
+
","
;
businessIds
+=
t
[
0
]
+
","
;
});
updateKpi
(
businessIds
);
}
});
});
updateKpi
(
businessIds
);
}
});
$
(
".businessItem"
).
click
(
function
(){
businessIds
=
""
;
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
businessIds
+=
$
(
this
).
val
()
+
","
;
});
updateKpi
(
businessIds
);
});
}
updateBusiness
(
$
(
"#dataSource"
).
val
(),
$
(
"#channel"
).
val
());
function
getBusinessCheckedValues
(){
$
(
".businessItem"
).
click
(
function
(){
var
businessArray
=
[];
businessIds
=
""
;
var
i
=
0
;
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
businessIds
+=
$
(
this
).
val
()
+
","
;
businessArray
[
i
]
=
$
(
this
).
val
();
});
i
++
;
updateKpi
(
businessIds
);
});
});
return
businessArray
;
}
function
getBusinessCheckedValuesString
(){
var
businessStr
=
""
;
var
businessArray
=
getBusinessCheckedValues
();
for
(
var
i
=
0
;
i
<
businessArray
.
length
;
i
++
){
if
(
i
==
businessArray
.
length
-
1
){
businessStr
+=
businessArray
[
i
];
}
else
{
businessStr
+=
businessArray
[
i
]
+
","
;
}
}
}
return
businessStr
;
}
function
getKpiCheckedValues
(){
updateBusiness
(
$
(
"#dataSource"
).
val
(),
$
(
"#channel"
).
val
());
var
kpiArray
=
new
Array
();
var
i
=
0
;
$
(
"[name='kpiinput']:checked"
).
each
(
function
(){
kpiArray
[
i
]
=
$
(
this
).
val
();
i
++
;
});
return
kpiArray
;
}
function
getKpiCheckedValuesString
(){
function
getBusinessCheckedValues
(){
var
kpiStr
=
""
;
var
businessArray
=
[]
;
var
kpiArray
=
getKpiCheckedValues
()
;
var
i
=
0
;
for
(
var
i
=
0
;
i
<
kpiArray
.
length
;
i
++
){
$
(
"[name='businessinput']:checked"
).
each
(
function
(
){
if
(
i
==
kpiArray
.
length
-
1
){
businessArray
[
i
]
=
$
(
this
).
val
();
kpiStr
+=
kpiArray
[
i
]
;
i
++
;
}
else
{
});
kpiStr
+=
kpiArray
[
i
]
+
","
;
return
businessArray
;
}
}
}
return
kpiStr
;
}
$
(
'#ruleSubmit'
).
click
(
function
()
{
var
alertMsg
=
[];
var
provinceArr
=
$
(
"input:checkbox[name='province']:checked"
);
if
(
provinceArr
.
length
===
0
){
alertMsg
.
push
(
"您没有选择省份,请选择省份"
)
}
var
businessArr
=
$
(
"input:checkbox[name='businessinput']"
);
var
businessChecked
=
false
;
businessArr
.
each
(
function
()
{
if
(
$
(
this
).
attr
(
"checked"
))
businessChecked
=
true
});
if
(
businessArr
.
length
!==
0
&&
!
businessChecked
){
alertMsg
.
push
(
"您没有选择业务,请选择业务"
)
}
var
kpiArr
=
$
(
"input:checkbox[name='kpiinput']"
);
var
kpiChecked
=
false
;
kpiArr
.
each
(
function
()
{
if
(
$
(
this
).
attr
(
"checked"
))
kpiChecked
=
true
});
if
(
kpiArr
.
length
!==
0
&&
!
kpiChecked
){
alertMsg
.
push
(
"您没有选择指标,请选择指标"
)
}
var
filterStartTime
=
$
(
"#filterStartTime"
).
val
();
if
(
filterStartTime
===
""
){
alertMsg
.
push
(
"您没有选择生效开始时间,请选择生效开始时间"
)
}
var
filterEndTime
=
$
(
"#filterEndTime"
).
val
();
if
(
filterEndTime
===
""
){
alertMsg
.
push
(
"您没有选择生效结束时间,请选择生效结束时间"
)
}
var
filterReason
=
$
(
"#filterReason"
).
val
();
if
(
filterReason
===
""
){
alertMsg
.
push
(
"您没有填写过滤原因,请填写过滤原因"
)
}
var
ifRepeate
=
$
(
"input:radio[name='ifRepeate']:checked"
).
val
();
var
cycle
=
$
(
"#cycle"
).
val
();
if
(
ifRepeate
===
0
&&
cycle
===
""
){
alertMsg
.
push
(
"您选择了重复,请填写重复周期"
)
}
if
(
alertMsg
.
length
===
0
){
$
.
dialog
({
title
:
"提醒"
,
content
:
"确定上传该规则吗?"
,
ok
:
function
(){
$
.
ajax
({
cache
:
true
,
type
:
"POST"
,
async
:
false
,
dataType
:
"json"
,
url
:
"${ctx}/AnalysisSupport/FilterRuleMaintain/createRule"
,
data
:
$
(
"#filterMaintainForm"
).
serialize
(),
success
:
function
(
data
){
window
.
location
.
href
=
"${ctx}/AnalysisSupport/FilterRuleResult"
;
}
})
},
okValue
:
"确定"
,
cancel
:
function
(){},
cancelValue
:
"返回修改"
,
lock
:
true
});
}
else
{
var
msg
=
""
;
alertMsg
.
forEach
(
function
(
t
,
i
)
{
msg
+=
"<span style='color: red'>"
+
(
i
+
1
)
+
"."
+
t
+
"</span><br />"
});
$
.
dialog
({
title
:
"提醒"
,
content
:
msg
,
ok
:
function
(){
},
okValue
:
"确定"
,
lock
:
true
});
}
})
function
getBusinessCheckedValuesString
(){
var
businessStr
=
""
;
var
businessArray
=
getBusinessCheckedValues
();
for
(
var
i
=
0
;
i
<
businessArray
.
length
;
i
++
){
if
(
i
==
businessArray
.
length
-
1
){
businessStr
+=
businessArray
[
i
];
}
else
{
businessStr
+=
businessArray
[
i
]
+
","
;
}
}
return
businessStr
;
}
function
getKpiCheckedValues
(){
var
kpiArray
=
new
Array
();
var
i
=
0
;
$
(
"[name='kpiinput']:checked"
).
each
(
function
(){
kpiArray
[
i
]
=
$
(
this
).
val
();
i
++
;
});
return
kpiArray
;
}
function
getKpiCheckedValuesString
(){
var
kpiStr
=
""
;
var
kpiArray
=
getKpiCheckedValues
();
for
(
var
i
=
0
;
i
<
kpiArray
.
length
;
i
++
){
if
(
i
==
kpiArray
.
length
-
1
){
kpiStr
+=
kpiArray
[
i
];
}
else
{
kpiStr
+=
kpiArray
[
i
]
+
","
;
}
}
return
kpiStr
;
}
</script>
$
(
'#ruleSubmit'
).
click
(
function
()
{
\ No newline at end of file
var
alertMsg
=
[];
var
provinceArr
=
$
(
"input:checkbox[name='province']:checked"
);
if
(
provinceArr
.
length
===
0
){
alertMsg
.
push
(
"您没有选择省份,请选择省份"
)
}
var
businessArr
=
$
(
"input:checkbox[name='businessinput']"
);
var
businessChecked
=
false
;
businessArr
.
each
(
function
()
{
if
(
$
(
this
).
attr
(
"checked"
))
businessChecked
=
true
});
if
(
businessArr
.
length
!==
0
&&
!
businessChecked
){
alertMsg
.
push
(
"您没有选择业务,请选择业务"
)
}
var
kpiArr
=
$
(
"input:checkbox[name='kpiinput']"
);
var
kpiChecked
=
false
;
kpiArr
.
each
(
function
()
{
if
(
$
(
this
).
attr
(
"checked"
))
kpiChecked
=
true
});
if
(
kpiArr
.
length
!==
0
&&
!
kpiChecked
){
alertMsg
.
push
(
"您没有选择指标,请选择指标"
)
}
var
filterStartTime
=
$
(
"#filterStartTime"
).
val
();
if
(
filterStartTime
===
""
){
alertMsg
.
push
(
"您没有选择生效开始时间,请选择生效开始时间"
)
}
var
filterEndTime
=
$
(
"#filterEndTime"
).
val
();
if
(
filterEndTime
===
""
){
alertMsg
.
push
(
"您没有选择生效结束时间,请选择生效结束时间"
)
}
var
filterReason
=
$
(
"#filterReason"
).
val
();
if
(
filterReason
===
""
){
alertMsg
.
push
(
"您没有填写过滤原因,请填写过滤原因"
)
}
var
ifRepeate
=
$
(
"input:radio[name='ifRepeate']:checked"
).
val
();
var
cycle
=
$
(
"#cycle"
).
val
();
if
(
ifRepeate
===
0
&&
cycle
===
""
){
alertMsg
.
push
(
"您选择了重复,请填写重复周期"
)
}
if
(
alertMsg
.
length
===
0
){
$
.
dialog
({
title
:
"提醒"
,
content
:
"确定上传该规则吗?"
,
ok
:
function
(){
$
.
ajax
({
cache
:
true
,
type
:
"POST"
,
async
:
false
,
dataType
:
"json"
,
url
:
"${ctx}/AnalysisSupport/FilterRuleMaintain/createRule"
,
data
:
$
(
"#filterMaintainForm"
).
serialize
(),
success
:
function
(
data
){
window
.
location
.
href
=
"${ctx}/AnalysisSupport/FilterRuleResult"
;
}
})
},
okValue
:
"确定"
,
cancel
:
function
(){},
cancelValue
:
"返回修改"
,
lock
:
true
});
}
else
{
var
msg
=
""
;
alertMsg
.
forEach
(
function
(
t
,
i
)
{
msg
+=
"<span style='color: red'>"
+
(
i
+
1
)
+
"."
+
t
+
"</span><br />"
});
$
.
dialog
({
title
:
"提醒"
,
content
:
msg
,
ok
:
function
(){
},
okValue
:
"确定"
,
lock
:
true
});
}
})
</script>
</body>
src/main/webapp/WEB-INF/views/TaskManage/ModelMonitorHome.jsp
View file @
196722b8
...
@@ -84,8 +84,19 @@
...
@@ -84,8 +84,19 @@
dilog
.
close
();
dilog
.
close
();
document
.
getElementById
(
"taskManageFrame"
).
src
=
'${ctx}'
+
"/BaseManage/TaskManage/taskFormFrame?defaultTaskType="
+
taskType
+
"&taskId="
+
id
+
"&type=modify"
;
document
.
getElementById
(
"taskManageFrame"
).
src
=
'${ctx}'
+
"/BaseManage/TaskManage/taskFormFrame?defaultTaskType="
+
taskType
+
"&taskId="
+
id
+
"&type=modify"
;
}
}
function
openwin
(
url
)
{
var
a
=
document
.
createElement
(
"a"
);
//创建a对象
a
.
setAttribute
(
"href"
,
url
);
a
.
setAttribute
(
"target"
,
"_blank"
);
a
.
setAttribute
(
"id"
,
"camnpr"
);
document
.
body
.
appendChild
(
a
);
a
.
click
();
//执行当前对象
}
function
imgOnclick
(
e
)
{
openwin
(
"${ctx}/BaseManage/TaskManage/ImgDisplay?"
+
e
.
src
)
}
function
OpenDialog
(
data
,
id
,
taskType
)
{
function
OpenDialog
(
data
,
id
,
taskType
)
{
var
df
=
new
SimpleDateFormat
();
var
df
=
new
SimpleDateFormat
();
...
@@ -143,7 +154,7 @@
...
@@ -143,7 +154,7 @@
" <tr>"
+
" <tr>"
+
" <td colspan='8'>"
+
" <td colspan='8'>"
+
" <div class=''>"
+
" <div class=''>"
+
"
<a src='${ctx}/BaseManage/TaskManage/ImgDisplay?${ctx}/BaseManage/TaskManage/modelPreviewImg?path="
+
data
.
fileAddress
+
"'><img id='img' src='${ctx}/BaseManage/TaskManage/modelPreviewImg?path="
+
data
.
fileAddress
+
"'/></a
>"
+
"
<img id='img' onclick='imgOnclick(this)' style='width:622px' src='${ctx}/BaseManage/TaskManage/modelPreviewImg?path="
+
data
.
fileAddress
+
"'/
>"
+
" </div>"
+
" </div>"
+
" </td>"
+
" </td>"
+
" </tr>"
+
" </tr>"
+
...
...
src/main/webapp/WEB-INF/views/TaskManage/RunTaskForm.jsp
View file @
196722b8
...
@@ -217,18 +217,12 @@ var kpiOptions = new Array();
...
@@ -217,18 +217,12 @@ var kpiOptions = new Array();
function
submitForm
()
{
function
submitForm
()
{
var
url
=
'${ctx}/BaseManage/TaskManage/checkNameAndCode'
;
var
url
=
'${ctx}/BaseManage/TaskManage/checkNameAndCode'
;
var
data
=
'name='
+
$
(
'#name'
).
val
()
+
"&code="
+
$
(
'#code'
).
val
()
+
"&id="
+
$
(
'#taskId'
).
val
()
+
"&defaultTaskType="
+
$
(
'#defaultTaskType'
).
val
()
;
var
data
=
'name='
+
$
(
'#name'
).
val
()
+
"&code="
+
$
(
'#code'
).
val
()
+
"&id="
+
$
(
'#taskId'
).
val
()
+
"&defaultTaskType="
+
$
(
'#defaultTaskType'
).
val
()
;
/* if(!checkFrequency()) {
alert("运行频率允许的值为整数、小数、分数和格式为ADD_MONTHS(x)的字符串,其中x可以为整数、小数、分数");
$('#frequency').focus();
return;
} */
if
(
validate
())
{
if
(
validate
())
{
var
i
=
$
(
"#addTr"
).
find
(
"tr"
).
size
();
var
i
=
$
(
"#addTr"
).
find
(
"tr"
).
size
();
if
(
i
==
0
){
if
(
i
==
0
){
checkAndSubmit
(
url
,
encodeURI
(
encodeURI
(
data
)));
checkAndSubmit
(
url
,
encodeURI
(
encodeURI
(
data
)));
}
else
{
}
else
{
$
(
"#addTr"
).
find
(
"tr"
).
each
(
function
()
{
$
(
"#addTr"
).
find
(
"tr"
).
each
(
function
()
{
//alert($(this).find("td").eq(0).html());
var
paramId
=
$
(
this
).
context
.
id
;
var
paramId
=
$
(
this
).
context
.
id
;
var
modelId
=
$
(
'#modelId'
).
val
();
var
modelId
=
$
(
'#modelId'
).
val
();
var
paramName
=
$
(
this
).
find
(
"td"
).
eq
(
0
).
html
();
var
paramName
=
$
(
this
).
find
(
"td"
).
eq
(
0
).
html
();
...
@@ -389,6 +383,9 @@ var kpiOptions = new Array();
...
@@ -389,6 +383,9 @@ var kpiOptions = new Array();
$
(
'#frequencyValue'
).
append
(
monthOption
);
$
(
'#frequencyValue'
).
append
(
monthOption
);
}
}
}
}
function
abandonTask
(){
function
abandonTask
(){
$
.
ajax
({
$
.
ajax
({
type
:
"GET"
,
type
:
"GET"
,
...
...
src/main/webapp/WEB-INF/views/TaskManage/RunTaskImage.jsp
View file @
196722b8
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<div
class=
"content clearfix"
>
<div
class=
"content clearfix"
>
<div
class=
"block clearfix"
>
<div
class=
"block clearfix"
>
<div
class=
"tab-content"
>
<div
class=
"tab-content"
>
<img
id=
"img"
src=
"${ctx}/static/images/loading.gif"
/>
<img
style=
"width: 100%"
id=
"img"
src=
"${ctx}/static/images/loading.gif"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -60,7 +60,8 @@
...
@@ -60,7 +60,8 @@
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
src
=
window
.
location
.
href
.
split
(
'?'
)[
1
];
var
src
=
window
.
location
.
href
.
split
(
'?'
)[
1
]
+
"?"
+
window
.
location
.
href
.
split
(
'?'
)[
2
];
$
(
"#img"
).
attr
(
"src"
,
src
);
$
(
"#img"
).
attr
(
"src"
,
src
);
</script>
</script>
...
...
src/main/webapp/static/js/xcdWarningTable.js
View file @
196722b8
...
@@ -319,15 +319,18 @@ table_pagging.prototype = {
...
@@ -319,15 +319,18 @@ table_pagging.prototype = {
+
")' alt='"
+
i
+
"'>"
+
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
])
+
"</a>"
;
+
")' alt='"
+
i
+
"'>"
+
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
])
+
"</a>"
;
}
}
if
(
k
==
1
1
){
if
(
k
==
1
0
){
if
(
tdContext
!=
" "
){
if
(
tdContext
!=
" "
){
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
}
}
}
else
if
(
k
==
1
2
){
}
else
if
(
k
==
1
1
){
if
(
tdContext
!=
" "
){
if
(
tdContext
!=
" "
){
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
}
}
else
if
(
k
==
12
){
}
else
if
(
k
==
15
){
if
(
tdContext
!=
" "
){
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
}
}
else
if
(
k
==
16
){
if
(
tdContext
==
"已确认"
){
if
(
tdContext
==
"已确认"
){
tr
.
className
=
"green-tr"
;
tr
.
className
=
"green-tr"
;
}
else
if
(
tdContext
==
"已关联协查单"
){
}
else
if
(
tdContext
==
"已关联协查单"
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment