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}
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,20 @@ function edit(id,definitionId){
|
||||||
dataType : 'json'
|
dataType : 'json'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener("visibilitychange", function () {
|
||||||
|
if (document.visibilityState === "visible") {
|
||||||
|
refreshTable(); // 页面激活时刷新表格
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function refreshTable() {
|
||||||
|
console.log("页面重新激活,刷新任务列表...");
|
||||||
|
getbaseList(1); // 重新请求表格数据
|
||||||
|
}
|
||||||
$(function() {
|
$(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) {
|
||||||
|
|
|
||||||
|
|
@ -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