85 lines
3.0 KiB
HTML
Executable File
85 lines
3.0 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
|
|
<title>
|
|
<#pageTitle>
|
|
</title>
|
|
<link rel="stylesheet" type="text/css" href="../commons/plug-in/mui/css/mui.min.css">
|
|
<!-- AWS UI -->
|
|
<link rel="stylesheet" type="text/css" href="../apps/com.actionsoft.apps.workbench/css/com.actionsoft.apps.workbench.mobile.list.css">
|
|
<link rel='stylesheet' type='text/css' href='../apps/_bpm.portal/css/client.bpm.form.mobile.common.css'/>
|
|
<style>
|
|
.mui-bar-tab .mui-tab-item.mui-active {
|
|
color: #007aff !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav class="mui-bar mui-bar-tab" style="<#displayNavStyle>">
|
|
<a id="todo" class="mui-tab-item">
|
|
<span class="mui-icon mui-icon-list"></span>
|
|
<span class="mui-tab-label">待办任务</span>
|
|
</a>
|
|
<a id="history" class="mui-tab-item">
|
|
<span class="mui-icon mui-icon-checkmarkempty"></span>
|
|
<span class="mui-tab-label">已办任务</span>
|
|
</a>
|
|
<a id="start" class="mui-tab-item mui-active">
|
|
<span class="mui-icon mui-icon-plus" style="font-size:30px;"></span>
|
|
</a>
|
|
<a id="unreadNotice" class="mui-tab-item">
|
|
<span class="mui-icon mui-icon-compose"></span>
|
|
<span class="mui-tab-label">未读通知</span>
|
|
</a>
|
|
<a id="notice" class="mui-tab-item">
|
|
<span class="mui-icon mui-icon-search"></span>
|
|
<span class="mui-tab-label">通知查询</span>
|
|
</a>
|
|
</nav>
|
|
<div id="dataList" class="mui-content">
|
|
<div class="mui-scroll">
|
|
<!--数据列表-->
|
|
<ul class="mui-table-view mui-table-view-chevron" style="margin-bottom:50px">
|
|
<#taskListHtml>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" id="sid" name="sid" value='<#sid>'>
|
|
<input type="hidden" id="listType" name="listType" value='<#listType>'>
|
|
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
|
|
<script type="text/javascript" src="../apps/com.actionsoft.apps.workbench/js/com.actionsoft.apps.workbench.mobile.nav.js"></script>
|
|
<script type="text/javascript">
|
|
var displayNav = <#displayNav>;
|
|
$(document).ready(function() {
|
|
$(".mui-media-body").each(function(i, v) {
|
|
$(v).off('click').on('click', function() {
|
|
openMobileTask($(this).attr("url"));
|
|
});
|
|
});
|
|
});
|
|
function openMobileTask(url) {
|
|
try{
|
|
var processGroupId = url.substring(url.indexOf("groupId=")+8,url.indexOf("&processDefId"));
|
|
var processDefId = url.substring(url.indexOf("processDefId=")+13,url.indexOf("&sid"));
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "./w",
|
|
data: {
|
|
cmd: "CLIENT_BPM_WORKLIST_PROCESSINST_CREATE_AJAX_PREPAGE",
|
|
sid: $("#sid").val(),
|
|
processGroupId: processGroupId,
|
|
processDefId: processDefId
|
|
},
|
|
success: function (newurl) {debugger
|
|
window.location.href = newurl;
|
|
}});
|
|
}catch(e){
|
|
window.location.href = url;
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|