Merge remote-tracking branch 'coding/main' into 0620
This commit is contained in:
commit
06eeeb01c7
|
|
@ -6,7 +6,8 @@
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${page.totalRecord > 0}">
|
<c:when test="${page.totalRecord > 0}">
|
||||||
<c:forEach items="${page.results}" var="ma" varStatus="index">
|
<c:forEach items="${page.results}" var="ma" varStatus="index">
|
||||||
<tr ondblclick="setChecked(${ma.id})">
|
|
||||||
|
<tr ondblclick="setChecked(${ma.id})" onclick="topage(${ma.id} , '${ma.processName}')">
|
||||||
<th style="vertical-align:middle;" class="center">${(page.pageNum-1)*page.pageSize+index.index+1}</th>
|
<th style="vertical-align:middle;" class="center">${(page.pageNum-1)*page.pageSize+index.index+1}</th>
|
||||||
<%-- <th style="vertical-align:middle;" class="center">
|
<%-- <th style="vertical-align:middle;" class="center">
|
||||||
${ma.unitName}
|
${ma.unitName}
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,18 @@
|
||||||
<!DOCTYPE html >
|
<!DOCTYPE html >
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<%@include file="../baseset.jsp" %>
|
<%@include file="../baseset.jsp" %>
|
||||||
<%@include file="../systemset.jsp" %>
|
<%@include file="../systemset.jsp" %>
|
||||||
<link rel="stylesheet" href="${bonuspath}/static/plugins/zTree/3.5/zTreeStyle.css" />
|
<link rel="stylesheet" href="${bonuspath}/static/plugins/zTree/3.5/zTreeStyle.css" />
|
||||||
<script src="${bonuspath}/static/plugins/zTree/3.5/jquery.ztree.all.min.js"></script>
|
<script src="${bonuspath}/static/plugins/zTree/3.5/jquery.ztree.all.min.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.orgTree {
|
.orgTree {
|
||||||
width:100% !important;
|
width:100% !important;
|
||||||
height:500px !important;
|
height:500px !important;
|
||||||
background: none repeat scroll 0 0 #fff !important;
|
background: none repeat scroll 0 0 #fff !important;
|
||||||
border:1px solid #ddd !important
|
border:1px solid #ddd !important
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
|
|
@ -67,9 +67,9 @@
|
||||||
<%@include file="../dialog.jsp" %>
|
<%@include file="../dialog.jsp" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function edit(id,definitionId){
|
function edit(id,definitionId){
|
||||||
cleanForm();
|
cleanForm();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : 'POST',
|
type : 'POST',
|
||||||
|
|
@ -91,22 +91,34 @@ function edit(id,definitionId){
|
||||||
},
|
},
|
||||||
dataType : 'json'
|
dataType : 'json'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$(function() {
|
|
||||||
|
document.addEventListener("visibilitychange", function () {
|
||||||
|
if (document.visibilityState === "visible") {
|
||||||
|
refreshTable(); // 页面激活时刷新表格
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function refreshTable() {
|
||||||
|
console.log("页面重新激活,刷新任务列表...");
|
||||||
|
getbaseList(1); // 重新请求表格数据
|
||||||
|
}
|
||||||
|
$(function() {
|
||||||
getbaseList(1);
|
getbaseList(1);
|
||||||
|
|
||||||
$("#keyWord").keydown(function(e) {
|
$("#keyWord").keydown(function(e) {
|
||||||
keycode = e.which || e.keyCode;
|
keycode = e.which || e.keyCode;
|
||||||
if (keycode == 13) {
|
if (keycode == 13) {
|
||||||
search();
|
search();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function search(){
|
function search(){
|
||||||
$("#search").trigger("click");
|
$("#search").trigger("click");
|
||||||
}
|
}
|
||||||
|
|
||||||
function getbaseList(init) {
|
function getbaseList(init) {
|
||||||
var isFinish =$("#isFinish").val();
|
var isFinish =$("#isFinish").val();
|
||||||
var data = {pageNum:init};
|
var data = {pageNum:init};
|
||||||
data = {pageNum:init,pageSize:10 };
|
data = {pageNum:init,pageSize:10 };
|
||||||
|
|
@ -131,8 +143,8 @@ function getbaseList(init) {
|
||||||
console.log("ajax请求错误!");
|
console.log("ajax请求错误!");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function cleanForm() {
|
function cleanForm() {
|
||||||
$("#auForm input[id$='unitName']").val("");
|
$("#auForm input[id$='unitName']").val("");
|
||||||
$("#auForm input[id$='projectName']").val("");
|
$("#auForm input[id$='projectName']").val("");
|
||||||
$("#auForm input[id$='taskName']").val("");
|
$("#auForm input[id$='taskName']").val("");
|
||||||
|
|
@ -143,8 +155,8 @@ function cleanForm() {
|
||||||
$("#auForm input[id$='testLoad']").val("");
|
$("#auForm input[id$='testLoad']").val("");
|
||||||
$("#auForm input[id$='holdingTime']").val("");
|
$("#auForm input[id$='holdingTime']").val("");
|
||||||
$("#auForm input[id$='operaTionName']").val("");
|
$("#auForm input[id$='operaTionName']").val("");
|
||||||
}
|
}
|
||||||
function assignment(data){
|
function assignment(data){
|
||||||
$("#auForm input[id$='unitName']").val(data.unitName);
|
$("#auForm input[id$='unitName']").val(data.unitName);
|
||||||
$("#auForm input[id$='projectName']").val(data.projectName);
|
$("#auForm input[id$='projectName']").val(data.projectName);
|
||||||
$("#auForm input[id$='taskName']").val(data.taskName);
|
$("#auForm input[id$='taskName']").val(data.taskName);
|
||||||
|
|
@ -155,7 +167,7 @@ function assignment(data){
|
||||||
$("#auForm input[id$='testLoad']").val(data.testLoad);
|
$("#auForm input[id$='testLoad']").val(data.testLoad);
|
||||||
$("#auForm input[id$='holdingTime']").val(data.holdingTime);
|
$("#auForm input[id$='holdingTime']").val(data.holdingTime);
|
||||||
$("#auForm input[id$='operaTionName']").val(data.operaTionName);
|
$("#auForm input[id$='operaTionName']").val(data.operaTionName);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -113,18 +113,17 @@
|
||||||
WHERE
|
WHERE
|
||||||
cpa.status = '1'
|
cpa.status = '1'
|
||||||
|
|
||||||
<if test="param.operationUserId == '14'">
|
<choose>
|
||||||
AND cpa.status_type = '3'
|
<when test="param.operationUserId == '14'">
|
||||||
</if>
|
|
||||||
<if test="param.operationUserId in ('57','29','55','56','67')">
|
|
||||||
AND cpa.status_type = '4'
|
AND cpa.status_type = '4'
|
||||||
</if>
|
</when>
|
||||||
<if test="!(param.operationUserId == null
|
<when test="param.operationUserId == '84' or param.operationUserId == '85'">
|
||||||
or param.operationUserId == ''
|
AND cpa.status_type = '3'
|
||||||
or param.operationUserId == '14'
|
</when>
|
||||||
or param.operationUserId in ('57','29','55','56','67'))">
|
<otherwise>
|
||||||
AND 1 = 0
|
AND 1 = 0
|
||||||
</if>
|
</otherwise>
|
||||||
|
</choose>
|
||||||
<if test="param.keyWord != null and param.keyWord != ''">
|
<if test="param.keyWord != null and param.keyWord != ''">
|
||||||
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
|
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -151,24 +150,22 @@
|
||||||
car_plan_out cpo
|
car_plan_out cpo
|
||||||
LEFT JOIN pm_user pu ON pu.id = cpo.creator
|
LEFT JOIN pm_user pu ON pu.id = cpo.creator
|
||||||
LEFT JOIN car_plan_apply cpa ON cpo.apply_id = cpa.id
|
LEFT JOIN car_plan_apply cpa ON cpo.apply_id = cpa.id
|
||||||
WHERE
|
<where>
|
||||||
1 = 1
|
<choose>
|
||||||
<if test="param.operationUserId in ('57','29','55','56','67')">
|
<when test="param.operationUserId == '57' or param.operationUserId == '29' or param.operationUserId == '55' or param.operationUserId == '56' or param.operationUserId == '67'">
|
||||||
AND cpo.status = '0'
|
AND cpa.status_type = '0'
|
||||||
</if>
|
</when>
|
||||||
<if test="param.operationUserId in ('49','50')">
|
<when test="param.operationUserId == '49' or param.operationUserId == '50'">
|
||||||
AND cpo.status = '1'
|
AND cpo.status = '1'
|
||||||
</if>
|
</when>
|
||||||
|
<otherwise>
|
||||||
<if test="!(param.operationUserId == null
|
|
||||||
or param.operationUserId == ''
|
|
||||||
or param.operationUserId in ('49','50')
|
|
||||||
or param.operationUserId in ('57','29','55','56','67'))">
|
|
||||||
AND 1 = 0
|
AND 1 = 0
|
||||||
</if>
|
</otherwise>
|
||||||
|
</choose>
|
||||||
<if test="param.keyWord != null and param.keyWord != ''">
|
<if test="param.keyWord != null and param.keyWord != ''">
|
||||||
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
|
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
</where>
|
||||||
)
|
)
|
||||||
|
|
||||||
ORDER BY id DESC
|
ORDER BY id DESC
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue