add.html
9 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
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
<style>
legend {
padding-bottom: 5px;
font-size: 14px;
font-weight: 600;
padding-left: 10px;
padding-right: 15px;
padding-top: 12px;
color: #1e7fc2;
}
/*.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {*/
/* padding: 4px;*/
/* line-height: 1.42857143;*/
/* vertical-align: top;*/
/* border-top: 1px solid #ddd;*/
/*}*/
div ::-webkit-scrollbar {
/*滚动条整体*/
width: 4px;
height: 8px;
border-radius: 5px;
}
div ::-webkit-scrollbar-track {
/*滚动条轨道*/
background: #e3e3e3;
border-radius: 2px;
}
div ::-webkit-scrollbar-thumb {
/*滚动条里面的滑块*/
background: #d1d1d1;
border-radius: 2px;
}
div ::-webkit-scrollbar-thumb:hover {
/*滚动条鼠标事件,鼠标放上去出现的事件*/
background: #a8a8a8;
}
div ::-webkit-scrollbar-corner {
/*滚动条边角*/
background: #a8a8a8;
}
#fastflow-left-content,#fastflow-center-content{
height: calc(100vh - 94px)!important;
overflow: auto;
overflow-x: hidden;
padding: 10px 0 10px 10px!important;
scrollbar-width: thin;
}
#fastflow-right-content{
height: calc(100vh - 94px)!important;
}
.main-content{
padding-right: 15px;
}
.content{
padding-bottom: 0!important;
}
.CodeMirror{
height: 100%;
}
.editor-tool{
margin-right: 1px;
margin-left: 1px;
}
.dd ins,input{
margin-right: 4px;
}
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="row main-content">
<div class="col-md-3 col-lg-3 col-sm-3">
<legend>配置</legend>
<div id="fastflow-left-content">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3">{:__('Name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-name" class="form-control" name="row[name]" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3">{:__('Key')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-key" class="form-control" name="row[key]" type="text">
</div>
</div>
<legend>自定义参数</legend>
<div class="form-group" style="overflow: auto;width: 100%;">
<div class="col-xs-12 col-sm-12">
<dl class="fieldlist" data-template="configtpl" data-name="row[config]">
<dd style="display: inline-flex">
<ins class="text-center" style="width:100px;">标题</ins>
<ins class="text-center" style="width:100px;">键名</ins>
<ins class="text-center" style="width:100px;">值</ins>
</dd>
<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i>
{:__('Append')}</a></dd>
<textarea name="row[config]" class="form-control hidden" cols="30"
rows="5">[{"title":"","key":"","value":""}]</textarea>
</dl>
<script id="configtpl" type="text/html">
<dd class="form-inline" fieldlist-item="true" style="display: inline-flex">
<input class="form-control" style="width:100px;" name="<%=name%>[<%=index%>][title]" type="text" value="<%=row.title%>">
<input class="form-control" style="width:100px;" name="<%=name%>[<%=index%>][key]" type="text" value="<%=row.key%>">
<input class="form-control" style="width:100px;" name="<%=name%>[<%=index%>][value]" type="text" value="<%=row.value%>">
<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
</dd>
</script>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-lg-3 col-sm-3">
<legend>变量</legend>
<div class="box box-primary" id="fastflow-center-content">
<div class="box-body no-padding">
<table class="table table-striped">
<tbody>
<tr>
<th>变量</th>
<th>解释</th>
</tr>
<tr>
<td>{flowName}</td>
<td>流程名称</td>
</tr>
<tr>
<td>{flowDescription}</td>
<td>流程描述</td>
</tr>
<tr>
<td>{scope}</td>
<td>域</td>
</tr>
<tr>
<td>{scopeName}</td>
<td>域名称</td>
</tr>
<tr>
<td>{workerIds}</td>
<td>原审批人ID</td>
</tr>
<tr>
<td>{workerNames}</td>
<td>原审批人名</td>
</tr>
<tr>
<td>{checkmode}</td>
<td>审批模式</td>
</tr>
<tr>
<td>{stepName}</td>
<td>步骤名</td>
</tr>
<tr>
<td>{preStepName}</td>
<td>上一步骤名</td>
</tr>
<tr>
<td>{bill}</td>
<td>单据表名</td>
</tr>
<tr>
<td>{billId}</td>
<td>单据id</td>
</tr>
<tr>
<td>{billName}</td>
<td>单据注释</td>
</tr>
<tr>
<td>{agency}</td>
<td>是否为代理</td>
</tr>
<tr>
<td>{agentIds}</td>
<td>代理人ID</td>
</tr>
<tr>
<td>{agentName}</td>
<td>代理人名</td>
</tr>
<tr>
<td>{principalIds}</td>
<td>被代理人ID</td>
</tr>
<tr>
<td>{principalName}</td>
<td>被代理人名</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-6 col-lg-6 col-sm-6">
<legend>
{:__('Templet')}
<button type="button" class="btn btn-xs btn-info pull-right btn-preview editor-tool"><i class="fa fa-hand-paper"></i><span class="btn-preview-text">预览</span></button>
<button type="button" class="btn btn-xs btn-default pull-right btn-linewrapping editor-tool"><i class="fa fa-code" style="margin-right: 4px;"></i>自动换行</button>
<button type="button" class="btn btn-xs btn-default pull-right btn-linenumbers editor-tool"><i class="fa fa-navicon" style="margin-right: 4px;"></i>显示行号</button>
</legend>
<div class="form-group" id="fastflow-right-content" style="margin-bottom: 0;">
<textarea id="templet" class="form-control" style="display: none" rows="32" name="row[templet]" cols="50"></textarea>
<iframe id="preview" class="hidden" style="width: 100%;height: 100%;border: none;"></iframe>
</div>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-10">
<div class="pull-right">
<button class="btn btn-success btn-save">保存</button>
<button type="submit" class="btn btn-success btn-embossed hidden">{:__('OK')}</button>
</div>
</div>
</div>
</form>