index.html
6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]-->
<!DOCTYPE html>
<html>
<head>
<title>流程图设计器</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script type="text/javascript">
var urlParams = (function(url)
{
var result = new Object();
var idx = url.lastIndexOf('?');
if (idx > 0)
{
var params = url.substring(idx + 1).split('&');
for (var i = 0; i < params.length; i++)
{
idx = params[i].indexOf('=');
if (idx > 0)
{
result[params[i].substring(0, idx)] = params[i].substring(idx + 1);
}
}
}
return result;
})(window.location.href);
mxLoadResources = false;
</script>
<!-- 流程图组件所需资源 -->
<link rel="stylesheet" href="/cloudstore/resource/pc/com/v1/index.min.css">
<link rel="stylesheet" href="/cloudstore/resource/pc/com/v1/ecCom.min.css">
<link rel="stylesheet" type="text/css" href="styles/main.css">
<script type="text/javascript" src="/cloudstore/resource/pc/jquery/jquery-1.8.3.min.js"></script>
</head>
<body class="geEditor">
<!-- 流程图组件所需资源 -->
<div id="container"></div>
<div id="Spin-container"></div>
<script type="text/javascript" src="/cloudstore/resource/pc/polyfill/polyfill.min.js"></script>
<script type="text/javascript" src="sanitizer/sanitizer.min.js"></script>
<script type="text/javascript" src="js/main.js?v20191112"></script>
<!-- Polyfills -->
<!--[if lt IE 10]>
<script type="text/javascript" src="/cloudstore/resource/pc/shim/shim.min.js"></script>
<![endif]-->
<script type="text/javascript">jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<9&&(window.location.href="/login/Login.jsp")</script>
<script type="text/javascript" src="/cloudstore/resource/pc/react16/react.production.min.js"></script>
<script type="text/javascript" src="/cloudstore/resource/pc/react16/react-dom.production.min.js"></script>
<script type="text/javascript" src="/cloudstore/resource/pc/react16/prop-types.min.js"></script>
<script type="text/javascript" src="/cloudstore/resource/pc/react16/create-react-class.min.js"></script>
<script>React.PropTypes=PropTypes,React.createClass=createReactClass</script>
<script type="text/javascript" src="/spa/workflow/async/zDialog_wev8.js"></script>
<!-- 全局依赖 -->
<!-- <script type="text/javascript" src="/cloudstore/resource/pc/promise/promise.min.js"></script>
<script type="text/javascript" src="/cloudstore/resource/pc/fetch/fetch.min.js"></script> -->
<!-- 组件库 -->
<script type="text/javascript" src="/cloudstore/resource/pc/com/v1/index.min.js"></script>
<script type="text/javascript" src="/cloudstore/resource/pc/com/v1/ecCom.min.js"></script>
<!-- mobx -->
<script type="text/javascript" src="/cloudstore/resource/pc/mobx-3.1.16/mobx.umd.js"></script>
<script type="text/javascript" src="/spa/coms/index.mobx.js"></script>
<script type="text/javascript" src="/spa/workflow/static4engine/engine.js"></script>
<script type="text/javascript" src="/spa/workflow/static4engine/engine4single.js"></script>
<!-- -->
<script type="text/javascript">
// Extends EditorUi to update I/O action states based on availability of backend
(function()
{
var editorUiInit = EditorUi.prototype.init;
var message = window.antd && window.antd.message;
var getLabel = window.ecCom && window.ecCom.WeaLocaleProvider && window.ecCom.WeaLocaleProvider.getLabel;
var formatMultiLang = window.ecCom && window.ecCom.WeaLocaleProvider && window.ecCom.WeaLocaleProvider.formatMultiLang;
var getCurrentLabel = window.ecCom && window.ecCom.WeaInputLocale && window.ecCom.WeaInputLocale.getCurrentLabel;
var modal = window.antd && window.antd.Modal && window.antd.Modal;
window.wfGetLabel = getLabel; //国际化方法
// window.wfFormatMultiLang = formatMultiLang; //转换为当前语言
window.wfFormatMultiLang = getCurrentLabel; //转换为当前语言
window.wfModal = modal; //modal 弹框
window.wfMessage = message;
window.workflowUiIsLoaded = false;
EditorUi.prototype.init = function()
{
editorUiInit.apply(this, arguments);
(window.urlParams['isFromWfForm']=='true' || window.urlParams['backstageReadOnly']=='true') && this.editor.graph.setGridEnabled(false);
var sb = this;
window.onresize = function (){
wfDesignContainerResize(sb);
}
getXmlAndDatas(sb,true);
wfDesignContainerResize(sb,1);
!(window.urlParams['isFromWfForm']=='true' || window.urlParams['backstageReadOnly']=='true') &&
this.wfEditor.setIconsActions('1',{target:document.getElementsByClassName('icon-workflow-biaochi')[0]},'icon-workflow-biaochi');//标尺默认打开
};
// Adds required resources (disables loading of fallback properties, this can only
// be used if we know that all keys are defined in the language specific file)
mxResources.loadDefaultBundle = false;
var bundle = mxResources.getDefaultBundle(RESOURCE_BASE, mxLanguage) ||
mxResources.getSpecialBundle(RESOURCE_BASE, mxLanguage);
// Fixes possible asynchronous requests
mxUtils.getAll([bundle, STYLE_PATH + '/default.xml'], function(xhr)
{
// Adds bundle text to resources
mxResources.parse(xhr[0].getText());
// Configures the default graph theme
var themes = new Object();
themes[Graph.prototype.defaultThemeName] = xhr[1].getDocumentElement();
// Main
new EditorUi(new Editor(urlParams['chrome'] == '0', themes));
}, function()
{
document.body.innerHTML = '<center style="margin-top:10%;">Error loading resource files. Please check browser console.</center>';
});
})();
</script>
<div id='workflow-should-hide-resources'>
<span class="icon-workflow-wrong"></span>
<span class="icon-workflow-shang"></span>
<span class="icon-workflow-xia"></span>
<span class="icon-workflow-zuo"></span>
<span class="icon-workflow-you"></span>
<img src="/workflow/workflowDesign/images/shalou.gif" alt="shalou">
</div>
</body>
</html>