Merge remote-tracking branch 'coding/main' into 0620
This commit is contained in:
commit
06eeeb01c7
|
|
@ -6,7 +6,8 @@
|
|||
<c:choose>
|
||||
<c:when test="${page.totalRecord > 0}">
|
||||
<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">
|
||||
${ma.unitName}
|
||||
|
|
|
|||
|
|
@ -92,8 +92,20 @@ function edit(id,definitionId){
|
|||
dataType : 'json'
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener("visibilitychange", function () {
|
||||
if (document.visibilityState === "visible") {
|
||||
refreshTable(); // 页面激活时刷新表格
|
||||
}
|
||||
});
|
||||
|
||||
function refreshTable() {
|
||||
console.log("页面重新激活,刷新任务列表...");
|
||||
getbaseList(1); // 重新请求表格数据
|
||||
}
|
||||
$(function() {
|
||||
getbaseList(1);
|
||||
|
||||
$("#keyWord").keydown(function(e) {
|
||||
keycode = e.which || e.keyCode;
|
||||
if (keycode == 13) {
|
||||
|
|
|
|||
|
|
@ -113,18 +113,17 @@
|
|||
WHERE
|
||||
cpa.status = '1'
|
||||
|
||||
<if test="param.operationUserId == '14'">
|
||||
AND cpa.status_type = '3'
|
||||
</if>
|
||||
<if test="param.operationUserId in ('57','29','55','56','67')">
|
||||
<choose>
|
||||
<when test="param.operationUserId == '14'">
|
||||
AND cpa.status_type = '4'
|
||||
</if>
|
||||
<if test="!(param.operationUserId == null
|
||||
or param.operationUserId == ''
|
||||
or param.operationUserId == '14'
|
||||
or param.operationUserId in ('57','29','55','56','67'))">
|
||||
</when>
|
||||
<when test="param.operationUserId == '84' or param.operationUserId == '85'">
|
||||
AND cpa.status_type = '3'
|
||||
</when>
|
||||
<otherwise>
|
||||
AND 1 = 0
|
||||
</if>
|
||||
</otherwise>
|
||||
</choose>
|
||||
<if test="param.keyWord != null and param.keyWord != ''">
|
||||
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
|
||||
</if>
|
||||
|
|
@ -151,24 +150,22 @@
|
|||
car_plan_out cpo
|
||||
LEFT JOIN pm_user pu ON pu.id = cpo.creator
|
||||
LEFT JOIN car_plan_apply cpa ON cpo.apply_id = cpa.id
|
||||
WHERE
|
||||
1 = 1
|
||||
<if test="param.operationUserId in ('57','29','55','56','67')">
|
||||
AND cpo.status = '0'
|
||||
</if>
|
||||
<if test="param.operationUserId in ('49','50')">
|
||||
<where>
|
||||
<choose>
|
||||
<when test="param.operationUserId == '57' or param.operationUserId == '29' or param.operationUserId == '55' or param.operationUserId == '56' or param.operationUserId == '67'">
|
||||
AND cpa.status_type = '0'
|
||||
</when>
|
||||
<when test="param.operationUserId == '49' or param.operationUserId == '50'">
|
||||
AND cpo.status = '1'
|
||||
</if>
|
||||
|
||||
<if test="!(param.operationUserId == null
|
||||
or param.operationUserId == ''
|
||||
or param.operationUserId in ('49','50')
|
||||
or param.operationUserId in ('57','29','55','56','67'))">
|
||||
</when>
|
||||
<otherwise>
|
||||
AND 1 = 0
|
||||
</if>
|
||||
</otherwise>
|
||||
</choose>
|
||||
<if test="param.keyWord != null and param.keyWord != ''">
|
||||
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
|
||||
</if>
|
||||
</where>
|
||||
)
|
||||
|
||||
ORDER BY id DESC
|
||||
|
|
|
|||
Loading…
Reference in New Issue