-
Notifications
You must be signed in to change notification settings - Fork 0
/
formviewH5.htm
executable file
·269 lines (239 loc) · 11.8 KB
/
formviewH5.htm
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!DOCTYPE html>
<head>
<title>1234</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link type="text/css" rel="stylesheet" href="/FormDesign-master3/static/css_compress/mobile/mobile.part01.min.css" />
<link type="text/css" rel="stylesheet" href="/FormDesign-master3/static/css_compress/mobile/mobile.part02.min.css" />
</head>
<body class="preview bg-white">
<script src="/FormDesign-master3/static/js/libs.js"></script>
<script src="/FormDesign-master3/static/js/plugins.m.form.js"></script>
<script type="text/javascript">
var _host = 'http://'+window.location.host +'/FormDesign-master3';
window.systemInfo_form="mobile"; //表单渲染平台类型 PC or Moblie
window.inDistrbute_form=true;
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
/*window.location.href="你的手机版地址";*/
} else {
/*window.location.href="你的电脑版地址"; */
window.location.href=_host+'/formviewPc.htm';
}
</script>
<div id="preview_m" class="form-preview-wrapper j_page-view">
<div id="form-preview" class="form-preview clearfix">
<input type="hidden" id="formId" value="4533136354637261015">
<input type="hidden" id="layoutId" value="2173310438941459916">
<input type="hidden" id="dataId" value="8743310729157001895">
<input type="hidden" id="taskId" value="22222">
<input type="hidden" id="scanReport" value="scanReport">
<textarea id="filterName" class="hide" >1234</textarea>
<textarea id="filterDescription" class="hide"></textarea>
<input id="colorScheme" type="hidden" name="colorScheme" value=''/>
<input id="bgcolorScheme" type="hidden" name="bgcolorScheme" value=''/>
<div class="form-view form-outview j_formpreview j_form_preview">
<div class="form-outview-banner j_formbanner"></div>
<div class="form-head">
<p class="form-name"></p>
<div class="form-description"></div>
</div>
<div id="widget-control" class="widget-control form-view_js"></div>
<div class="sys-btn j_submit_btn hide">
<a href='javascript:' class="green" id="submit" dataType='start'>提交</a>
<a href='javascript:' class="blue " id='save_btn' dataType='save'>保存</a>
</div>
<div class="data-loading hide j_loading">加载中...</div>
<div class="data-loading-cover hide j_loading">加载中...</div>
</div>
<h2 class='ph-15 pt-20'>操作日志</h2>
<div class="j_eformlistLoader">
<ul class="eform-datareport">
<li>
<div class="list">
<div class="list-l">
<div class="title-box">
<p class="txt ellipsis">填报</p>
</div>
<div class="data-box j_data-box">
<div class="data-span">
提交数据成功
</div>
</div>
</div>
<div class="list-c">
<div class="title-box">
<p class="txt ellipsis">梨花</p>
</div>
<div class="data-box j_data-box">
<div class="data-span">
2018-08-10
</div>
</div>
</div>
<div class="list-r">
<span class='status-span c-success'>通过</span>
</div>
</div>
</li>
<li>
<div class="list">
<div class="list-l">
<div class="title-box">
<p class="txt ellipsis">填报</p>
</div>
<div class="data-box j_data-box">
<div class="data-span">
提交数据成功
</div>
</div>
</div>
<div class="list-c">
<div class="title-box">
<p class="txt ellipsis">梨花</p>
</div>
<div class="data-box j_data-box">
<div class="data-span">
2018-08-10
</div>
</div>
</div>
<div class="list-r">
<span class='status-span c-warning'>待处理</span>
</div>
</div>
</li>
<li>
<div class="list">
<div class="list-l">
<div class="title-box">
<p class="txt ellipsis">填报</p>
</div>
<div class="data-box j_data-box">
<div class="data-span">
提交数据成功
</div>
</div>
</div>
<div class="list-c">
<div class="title-box">
<p class="txt ellipsis">梨花</p>
</div>
<div class="data-box j_data-box">
<div class="data-span">
2018-08-10
</div>
</div>
</div>
<div class="list-r">
<span class='status-span c-danger'>不通过</span>
</div>
</div>
</li>
</ul>
</div>
<h2 class='ph-15 pt-20'>审批意见</h2>
<div class="comment-wrapper">
<div class="comment-post">
<div class="com-inputarea">
<textarea id="comment-content" placeholder="请输入内容" data="请输入内容" class="placerholder-focus"></textarea>
</div>
<div class="sys-btn sys-btn-sm">
<a href='javascript:' class="green" data-comment='1'>
通过
</a>
<a href='javascript:' data-comment='2'>
不通过
</a>
<a href='javascript:' class="blue" data-comment='3'>
撤回
</a>
<a href='javascript:' class="orange" data-comment='4'>
终止
</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var _host = 'http://'+window.location.host +'/FormDesign-master3';
var _formDesign = _host;
var smartheerID = '',
jsonfile = ".json";
var crmContext = {
"officewebUrl":"" // office 预览地址 备用
};
var TEAMS = {
"ajaxMethod": "get",
"mobileformview":_host+"/mobile/mobileformview.htm", // 手机预览
"gallery":"gallery.htm", // 图片查看
"api":{
"remoteDownloadUrl":_host+"/onetable/a/remote/download/", // 附件下载地址
"downImgUrl": _host+"/onetable/a/remote/previewremote/img", // 图片下载地址
uploadImage:_host+"/freeform/uploadImage"+jsonfile, // 上传图片
uploadRemote:_host+"/freeform/uploadremote"+jsonfile, // 上传附件
findFileObj:_host+"/freeform/findFileObj"+jsonfile, // findFileObj
findSourcetable:_host+"/freeform/datasources/findSourcetable"+jsonfile, // findSourcetable
queryDataSourcesByTemplate:_host+"/freeform/datasources/queryDataSourcesByTemplate"+jsonfile, //queryDataSourcesByTemplate
initTemplate:_host+"/freeform/datasources/initTemplate"+jsonfile, //initTemplate
queryDateDetailsByDetails:_host+"/freeform/datasources/queryDateDetailsByDetails"+jsonfile, //queryDateDetailsByDetails
queryDataListByLayout:_host+"/freeform/datasources/queryDataListByLayout"+jsonfile, //queryDataListByLayout
queryDataTemplateById:_host+"/freeform/datasources/queryDataTemplateById"+jsonfile, //queryDataTemplateById
editDataSources:_host+"/freeform/datasources/editDataSources"+jsonfile, //editDataSources
suggestion:_host+"/freeform/suggestion"+jsonfile, //suggestion
save:_host+"/freeform/save"+jsonfile, // 保存设计器设计界面
findPreviewFrom:_host+"/freeform/findPreviewFrom"+jsonfile, // 预览查询
getFormId:_host+"/freeform/getFormId"+jsonfile, // formID
datatable:_host+"/freeform/datatable", // datatable
saveData:_host+"/freeform/saveData"+jsonfile, // 填报保存
findFormData:_host+"/freeform/findFormData"+jsonfile, // 填报查询
checkUnique:_host+"/freeform/checkUnique"+jsonfile, // 验证
findDeleteField:_host+"/freeform/findDeleteField"+jsonfile, // findDeleteField
findFormData:_host+"/freeform/findFormData"+jsonfile, // findFormData
findFormDatas:_host+"/freeform/findFormDatas"+jsonfile, // findFormDatas
queryFormFieldsByFormId:_host+"/freeform/queryFormFieldsByFormId"+jsonfile, // queryFormFieldsByFormId
findCommonField:_host+"/freeform/findCommonField"+jsonfile, // findCommonField
},
"service": {
"base": _host,
"crm": _host + "/crmapp",
"flow": _host + "/flowapp",
"form": _host,
"formreport": _host + "/formapp",
"crmextapp": _host + "/crmextapp",
"baseUrl" : _host + "/freeform"
},
"perLang": "zh_CN"
};
</script>
<script type="text/javascript">
function _loadHref() {
// 保存操作
};
// (function(){
// var url=location.search;
// window.realClientSize = {};
// if(url.indexOf("?")!=-1) {
// var str = url.slice(url.indexOf("?") + 1);
// var strs = str.split("&");
// for (var i = 0; i < strs.length; i++) {
// window.realClientSize[strs[i].split("=")[0]] = strs[i].split("=")[1];
// }
// }
// })();
window.systemInfo_form="mobile"; //表单渲染平台类型 PC or Moblie
seajs.config({base:_formDesign+"/static/js",
paths : {
"form" : _formDesign+"/static/js/form",
"formtpl" :_formDesign+"/static/template"
},
preload:["form.js"],
charset:"utf-8",debug:!1}),
seajs.use("form/formpreview");
</script>
</body>
</html>