<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
<meta charset="utf-8">
|
<title>Guns</title>
|
<!-- HTML5 Shim and Respond.js IE10 support of HTML5 elements and media queries -->
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
<!--[if lt IE 10]>
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
<![endif]-->
|
<!-- Meta -->
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
</head>
|
<body>
|
|
<div style="width:100%;" id="app">
|
|
<!-- 调用流程设计器插件 -->
|
<iframe name="mainFrame" id="mainFrame" frameborder="0" src="" style="margin:0 auto;width:100%;height:681px;"></iframe>
|
|
</div>
|
|
<script type="text/javascript" src="../assets/expand/plugins/jquery/jquery-3.2.1.min.js"></script>
|
|
<script type="text/javascript">
|
function getUrlKey(name) {
|
return decodeURIComponent(
|
(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null;
|
}
|
|
$(function () {
|
|
var curl = getUrlKey('curl');
|
var modelId = getUrlKey('modelId');
|
|
var src = 'modeler.html?modelId=' + modelId + '&curl=' + curl;
|
$("#mainFrame").attr("src", src);
|
|
});
|
</script>
|
</body>
|
</html>
|