|
@@ -1,80 +1,429 @@
|
1
|
1
|
<style>
|
2
|
|
- .tree-control .tree-input {
|
3
|
|
- min-height: 30px !important;
|
4
|
|
- padding-top: 5px;
|
5
|
|
- }
|
6
|
|
-
|
7
|
|
- .tree-control .tree-view .item-container:hover,
|
8
|
|
- .tree-control .tree-view .selected,
|
9
|
|
- .tree-control .tree-view .active {
|
10
|
|
- background-color: #428bca;
|
11
|
|
- background-image: linear-gradient(#428bca, #428bca) !important;
|
12
|
|
- background: #428bca;
|
13
|
|
- color: #fff;
|
14
|
|
- }
|
15
|
|
-
|
16
|
|
- .tree-control .tree-view .item-container:hover .expand,
|
17
|
|
- .tree-control .tree-view .selected .expand,
|
18
|
|
- .tree-control .tree-view .active .expand {
|
19
|
|
- border-left: 10px solid #fff;
|
20
|
|
- }
|
21
|
|
-
|
22
|
|
- .tree-control .tree-view .item-container:hover .expand-opened,
|
23
|
|
- .tree-control .tree-view .selected .expand-opened,
|
24
|
|
- .tree-control .tree-view .active .expand-opened {
|
25
|
|
- border-bottom: 0px solid transparent;
|
26
|
|
- border-left: 6px solid transparent;
|
27
|
|
- border-right: 6px solid transparent;
|
28
|
|
- border-top: 10px solid #fff;
|
29
|
|
- }
|
30
|
|
-
|
31
|
|
- /* .jry_selectHeight .dropdown-menu{
|
|
2
|
+ .allSeletedUsers li{
|
|
3
|
+ margin-bottom: 8px;
|
|
4
|
+ }
|
|
5
|
+ .allSeletedUsers li .allSeletedUser {
|
|
6
|
+ padding: 8px;
|
|
7
|
+ border: 1px solid #dde1e5;
|
|
8
|
+ background-color: #f9fafb;
|
|
9
|
+ display: inline-block;
|
|
10
|
+ position: relative;
|
|
11
|
+ border-radius: 8px;
|
|
12
|
+ }
|
|
13
|
+ .allSeletedUsers li .allSeletedUser span {
|
|
14
|
+ vertical-align: middle;
|
|
15
|
+ }
|
|
16
|
+ .allSeletedUsers li .allSeletedUser em {
|
|
17
|
+ display: inline-block;
|
|
18
|
+ font-style: normal;
|
|
19
|
+ background-color: #fff;
|
|
20
|
+ font-size: 16px;
|
|
21
|
+ border: 1px solid #333;
|
|
22
|
+ width: 16px;
|
|
23
|
+ height: 16px;
|
|
24
|
+ font-weight: normal;
|
|
25
|
+ border-radius: 50%;
|
|
26
|
+ color: #333;
|
|
27
|
+ text-align: center;
|
|
28
|
+ line-height: 10px;
|
|
29
|
+ margin-left: 8px;
|
|
30
|
+ cursor: pointer;
|
|
31
|
+ }
|
|
32
|
+ .allSeletedUsers li .allSeletedUser em:hover{
|
|
33
|
+ color: #fff;
|
|
34
|
+ background-color: #eb3941;
|
|
35
|
+ border-color: #eb3941;
|
|
36
|
+ }
|
|
37
|
+ .tree-control .tree-input {
|
|
38
|
+ min-height: 30px !important;
|
|
39
|
+ padding-top: 5px;
|
|
40
|
+ }
|
|
41
|
+
|
|
42
|
+ .tree-control .tree-view .item-container:hover,
|
|
43
|
+ .tree-control .tree-view .selected,
|
|
44
|
+ .tree-control .tree-view .active {
|
|
45
|
+ background-color: #428bca;
|
|
46
|
+ background-image: linear-gradient(#428bca, #428bca) !important;
|
|
47
|
+ background: #428bca;
|
|
48
|
+ color: #fff;
|
|
49
|
+ }
|
|
50
|
+
|
|
51
|
+ .tree-control .tree-view .item-container:hover .expand,
|
|
52
|
+ .tree-control .tree-view .selected .expand,
|
|
53
|
+ .tree-control .tree-view .active .expand {
|
|
54
|
+ border-left: 10px solid #fff;
|
|
55
|
+ }
|
|
56
|
+
|
|
57
|
+ .tree-control .tree-view .item-container:hover .expand-opened,
|
|
58
|
+ .tree-control .tree-view .selected .expand-opened,
|
|
59
|
+ .tree-control .tree-view .active .expand-opened {
|
|
60
|
+ border-bottom: 0px solid transparent;
|
|
61
|
+ border-left: 6px solid transparent;
|
|
62
|
+ border-right: 6px solid transparent;
|
|
63
|
+ border-top: 10px solid #fff;
|
|
64
|
+ }
|
|
65
|
+
|
|
66
|
+ /* .jry_selectHeight .dropdown-menu{
|
32
|
67
|
height: 150px!important;
|
33
|
68
|
} */
|
34
|
|
- .dropdown-menu {
|
35
|
|
- z-index: 9999;
|
36
|
|
- }
|
37
|
|
- .autosize{
|
38
|
|
- height: auto!important;
|
39
|
|
- }
|
|
69
|
+ .dropdown-menu {
|
|
70
|
+ z-index: 9999;
|
|
71
|
+ }
|
|
72
|
+ .autosize {
|
|
73
|
+ height: auto !important;
|
|
74
|
+ }
|
|
75
|
+ /* -----------------------选择上班人员----------------------- */
|
|
76
|
+ /* 公共css,需要复用 */
|
|
77
|
+
|
|
78
|
+ .iconfont {
|
|
79
|
+ font-size: 14px;
|
|
80
|
+ }
|
|
81
|
+
|
|
82
|
+ .nav-pills > li > a {
|
|
83
|
+ border-radius: 0px;
|
|
84
|
+ }
|
|
85
|
+
|
|
86
|
+ .nav-pills > li.active > a,
|
|
87
|
+ .nav-pills > li.active > a:hover,
|
|
88
|
+ .nav-pills > li.active > a:focus {
|
|
89
|
+ background-color: #006bbf;
|
|
90
|
+ color: white !important;
|
|
91
|
+ }
|
|
92
|
+
|
|
93
|
+ .mainDiv {
|
|
94
|
+ overflow: hidden;
|
|
95
|
+ float: left;
|
|
96
|
+ width: 100%;
|
|
97
|
+ margin-top: 8px;
|
|
98
|
+ }
|
|
99
|
+
|
|
100
|
+ .mainDiv-wrapper {
|
|
101
|
+ padding-left: 14px;
|
|
102
|
+ padding-right: 14px;
|
|
103
|
+ }
|
|
104
|
+
|
|
105
|
+ .mainDivLeft {
|
|
106
|
+ display: inline-block;
|
|
107
|
+ width: 32%;
|
|
108
|
+ border-radius: 8px;
|
|
109
|
+ border: 1px solid #eeeeee;
|
|
110
|
+ margin-right: 1%;
|
|
111
|
+ }
|
|
112
|
+
|
|
113
|
+ .mainDivRight {
|
|
114
|
+ display: inline-block;
|
|
115
|
+ width: 32%;
|
|
116
|
+ border-radius: 8px;
|
|
117
|
+ border: 1px solid #eeeeee;
|
|
118
|
+ }
|
|
119
|
+
|
|
120
|
+ .mainDiv-head {
|
|
121
|
+ height: 47px;
|
|
122
|
+ line-height: 47px;
|
|
123
|
+ background: #f5f5f5;
|
|
124
|
+ font-size: 16px;
|
|
125
|
+ color: #606367;
|
|
126
|
+ border-radius: 8px 8px 0 0;
|
|
127
|
+ padding-left: 10px;
|
|
128
|
+ padding-right: 4px;
|
|
129
|
+ }
|
|
130
|
+
|
|
131
|
+ .mainDivLeft-span {
|
|
132
|
+ border: 1px solid;
|
|
133
|
+ padding-left: 15px;
|
|
134
|
+ padding-right: 15px;
|
|
135
|
+ padding-top: 4px;
|
|
136
|
+ padding-bottom: 4px;
|
|
137
|
+ height: 28px;
|
|
138
|
+ line-height: 28px;
|
|
139
|
+ border-radius: 4px;
|
|
140
|
+ margin-right: 10px;
|
|
141
|
+ font-size: 14px;
|
|
142
|
+ }
|
|
143
|
+
|
|
144
|
+ .mainDiv-head-right {
|
|
145
|
+ float: right;
|
|
146
|
+ }
|
|
147
|
+
|
|
148
|
+ .edit-left {
|
|
149
|
+ display: inline-block;
|
|
150
|
+ margin-left: 10px;
|
|
151
|
+ }
|
|
152
|
+
|
|
153
|
+ .span-1 {
|
|
154
|
+ border: none;
|
|
155
|
+ color: white;
|
|
156
|
+ background-color: #2edbb8;
|
|
157
|
+ }
|
|
158
|
+
|
|
159
|
+ .span-2 {
|
|
160
|
+ border: none;
|
|
161
|
+ color: white;
|
|
162
|
+ background-color: #006bc0;
|
|
163
|
+ }
|
|
164
|
+
|
|
165
|
+ .span-3 {
|
|
166
|
+ border: none;
|
|
167
|
+ color: white;
|
|
168
|
+ background-color: #fc4c58;
|
|
169
|
+ }
|
|
170
|
+
|
|
171
|
+ .mainDiv-body {
|
|
172
|
+ border-radius: 8px;
|
|
173
|
+ border: 1px solid #eeeeee;
|
|
174
|
+ margin: 14px;
|
|
175
|
+ padding-top: 14px;
|
|
176
|
+ }
|
|
177
|
+
|
|
178
|
+ .mainDiv-body-1 {
|
|
179
|
+ height: 50px;
|
|
180
|
+ line-height: 50px;
|
|
181
|
+ font-size: 16px;
|
|
182
|
+ color: #606367;
|
|
183
|
+ padding: 0px 14px;
|
|
184
|
+ border-bottom: 1px solid #eeeeee;
|
|
185
|
+ }
|
|
186
|
+
|
|
187
|
+ .mainDiv-body-2 {
|
|
188
|
+ height: 70px;
|
|
189
|
+ line-height: 70px;
|
|
190
|
+ font-size: 14px;
|
|
191
|
+ color: #606367;
|
|
192
|
+ padding: 0px 30px;
|
|
193
|
+ border-bottom: 1px solid #eeeeee;
|
|
194
|
+ }
|
|
195
|
+
|
|
196
|
+ .mainDiv-body-2:last-child {
|
|
197
|
+ border-bottom: none;
|
|
198
|
+ }
|
|
199
|
+
|
|
200
|
+ .fixHeight {
|
|
201
|
+ height: 450px;
|
|
202
|
+ overflow: auto;
|
|
203
|
+ }
|
|
204
|
+
|
|
205
|
+ .mainDiv-body-3 {
|
|
206
|
+ height: 50px;
|
|
207
|
+ line-height: 50px;
|
|
208
|
+ font-size: 14px;
|
|
209
|
+ color: #606367;
|
|
210
|
+ padding: 0px 30px;
|
|
211
|
+ border-bottom: 1px solid #eeeeee;
|
|
212
|
+ }
|
|
213
|
+
|
|
214
|
+ .mainDiv-body-3:last-child {
|
|
215
|
+ border-bottom: none;
|
|
216
|
+ }
|
|
217
|
+
|
|
218
|
+ .mainDiv-body-img {
|
|
219
|
+ height: 90px;
|
|
220
|
+ border-radius: 4px;
|
|
221
|
+ margin: 14px;
|
|
222
|
+ margin-bottom: 0px;
|
|
223
|
+ overflow: hidden;
|
|
224
|
+ }
|
|
225
|
+
|
|
226
|
+ .mainDiv-body-noList {
|
|
227
|
+ height: 110px;
|
|
228
|
+ margin: 50px 0;
|
|
229
|
+ text-align: center;
|
|
230
|
+ }
|
|
231
|
+
|
|
232
|
+ .form-control {
|
|
233
|
+ display: inline-block;
|
|
234
|
+ }
|
|
235
|
+
|
|
236
|
+ .mainDivLeft-span-1 {
|
|
237
|
+ border: 1px solid;
|
|
238
|
+ padding-left: 15px;
|
|
239
|
+ padding-right: 15px;
|
|
240
|
+ height: 28px;
|
|
241
|
+ line-height: 28px;
|
|
242
|
+ border-radius: 4px;
|
|
243
|
+ margin-right: 10px;
|
|
244
|
+ font-size: 14px;
|
|
245
|
+ display: inline-block;
|
|
246
|
+ }
|
|
247
|
+
|
|
248
|
+ .mainDivLeft-span-2 {
|
|
249
|
+ border: 1px solid;
|
|
250
|
+ padding-left: 15px;
|
|
251
|
+ padding-right: 15px;
|
|
252
|
+ height: 28px;
|
|
253
|
+ line-height: 28px;
|
|
254
|
+ border-radius: 4px;
|
|
255
|
+ margin-right: 10px;
|
|
256
|
+ font-size: 14px;
|
|
257
|
+ display: inline-block;
|
|
258
|
+ }
|
|
259
|
+
|
|
260
|
+ .mainDivLeft-span-edit-1 {
|
|
261
|
+ border: 1px solid;
|
|
262
|
+ padding-left: 8px;
|
|
263
|
+ padding-right: 8px;
|
|
264
|
+ height: 22px;
|
|
265
|
+ line-height: 22px;
|
|
266
|
+ border-radius: 2px;
|
|
267
|
+ margin-right: 10px;
|
|
268
|
+ font-size: 12px;
|
|
269
|
+ display: inline-block;
|
|
270
|
+ }
|
|
271
|
+
|
|
272
|
+ .mainDivLeft-span-edit-2 {
|
|
273
|
+ border: 1px solid;
|
|
274
|
+ padding-left: 8px;
|
|
275
|
+ padding-right: 8px;
|
|
276
|
+ height: 22px;
|
|
277
|
+ line-height: 22px;
|
|
278
|
+ border-radius: 2px;
|
|
279
|
+ margin-right: 10px;
|
|
280
|
+ font-size: 12px;
|
|
281
|
+ display: inline-block;
|
|
282
|
+ }
|
40
|
283
|
</style>
|
41
|
284
|
<div ng-controller="workingFormCtrl">
|
42
|
|
- <!--{{title}}-->
|
43
|
|
- <div class="col-xs-12 panel">
|
44
|
|
- <section id="page-title-form">
|
45
|
|
- <div class="row">
|
46
|
|
- <div class="col-sm-8">
|
47
|
|
- <h1 class="mainTitle">{{vm.model.label}}<i tooltip={{vm.model.placeholder}}
|
48
|
|
- tooltip-placement="right"
|
49
|
|
- class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i></h1>
|
50
|
|
- </div>
|
51
|
|
- </div>
|
52
|
|
- </section>
|
53
|
|
- </div>
|
54
|
|
- <form ng-submit="vm.submit(vm.model,'sm')" class="jry_selectHeight">
|
55
|
|
- <!-- <formly-form model="vm.model" fields="vm.fields" options="vm.options" form="vm.form" ng-if="vm.fields.length">
|
|
285
|
+ <div class="col-xs-12 panel">
|
|
286
|
+ <section id="page-title-form">
|
|
287
|
+ <div class="row">
|
|
288
|
+ <div class="col-sm-8">
|
|
289
|
+ <h1 class="mainTitle">
|
|
290
|
+ {{vm.model.label}}<i
|
|
291
|
+ tooltip="{{vm.model.placeholder}}"
|
|
292
|
+ tooltip-placement="right"
|
|
293
|
+ class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"
|
|
294
|
+ ></i>
|
|
295
|
+ </h1>
|
|
296
|
+ </div>
|
|
297
|
+ </div>
|
|
298
|
+ </section>
|
|
299
|
+ </div>
|
|
300
|
+ <form ng-submit="vm.submit(vm.model,'sm')" class="jry_selectHeight">
|
|
301
|
+ <!-- <formly-form model="vm.model" fields="vm.fields" options="vm.options" form="vm.form" ng-if="vm.fields.length">
|
56
|
302
|
</formly-form> -->
|
57
|
|
- <div class="panel col-xs-12 col-0 bg-lightgrey">
|
58
|
|
- <formly-form model="vm.model " fields="vm.fields[0].fields " form="vm.form" options="vm.options ">
|
59
|
|
- </formly-form>
|
|
303
|
+ <div class="panel col-xs-12 col-0 bg-lightgrey">
|
|
304
|
+ <formly-form
|
|
305
|
+ model="vm.model "
|
|
306
|
+ fields="vm.fields[0].fields "
|
|
307
|
+ form="vm.form"
|
|
308
|
+ options="vm.options "
|
|
309
|
+ >
|
|
310
|
+ </formly-form>
|
|
311
|
+ </div>
|
|
312
|
+ <div
|
|
313
|
+ class="panel col-xs-12 col-0 bg-lightgrey margin-top-15"
|
|
314
|
+ ng-if="vm.fields[1].fields"
|
|
315
|
+ >
|
|
316
|
+ <formly-form
|
|
317
|
+ model="vm.model "
|
|
318
|
+ fields="vm.fields[1].fields"
|
|
319
|
+ form="vm.form"
|
|
320
|
+ options="vm.options "
|
|
321
|
+ >
|
|
322
|
+ </formly-form>
|
|
323
|
+ </div>
|
|
324
|
+ <div
|
|
325
|
+ class="panel col-xs-12 col-0 bg-lightgrey margin-top-15"
|
|
326
|
+ ng-if="vm.fields[2].fields"
|
|
327
|
+ >
|
|
328
|
+ <formly-form
|
|
329
|
+ model="vm.model "
|
|
330
|
+ fields="vm.fields[2].fields "
|
|
331
|
+ form="vm.form"
|
|
332
|
+ options="vm.options "
|
|
333
|
+ >
|
|
334
|
+ </formly-form>
|
|
335
|
+ </div>
|
|
336
|
+ <div
|
|
337
|
+ class="panel col-xs-12 col-0 bg-lightgrey margin-top-15"
|
|
338
|
+ ng-if="vm.fields[3].fields"
|
|
339
|
+ >
|
|
340
|
+ <formly-form
|
|
341
|
+ model="vm.model "
|
|
342
|
+ fields="vm.fields[3].fields "
|
|
343
|
+ form="vm.form"
|
|
344
|
+ options="vm.options "
|
|
345
|
+ >
|
|
346
|
+ </formly-form>
|
|
347
|
+ </div>
|
|
348
|
+ <!-- 选择上班人员 -->
|
|
349
|
+ <div class="mainDiv">
|
|
350
|
+ <div class="mainDivLeft">
|
|
351
|
+ <div class="mainDiv-head">
|
|
352
|
+ <span>工作组</span>
|
60
|
353
|
</div>
|
61
|
|
- <div class="panel col-xs-12 col-0 bg-lightgrey margin-top-15" ng-if="vm.fields[1].fields">
|
62
|
|
- <formly-form model="vm.model " fields="vm.fields[1].fields" form="vm.form" options="vm.options ">
|
63
|
|
- </formly-form>
|
|
354
|
+ <div class="mainDiv-body fixHeight group-tree">
|
|
355
|
+ <div class="box-tree">
|
|
356
|
+ <span ng-if="doing_async">...加载中...</span>
|
|
357
|
+ <abn-tree
|
|
358
|
+ tree-data="my_data"
|
|
359
|
+ tree-control="my_tree"
|
|
360
|
+ on-select="my_tree_handler(branch)"
|
|
361
|
+ expand-level="2"
|
|
362
|
+ icon-leaf="iconfont icon-zuzhijigou"
|
|
363
|
+ icon-expand="ti-plus"
|
|
364
|
+ icon-collapse="ti-minus "
|
|
365
|
+ ></abn-tree>
|
|
366
|
+ </div>
|
64
|
367
|
</div>
|
65
|
|
- <div class="panel col-xs-12 col-0 bg-lightgrey margin-top-15" ng-if="vm.fields[2].fields">
|
66
|
|
- <formly-form model="vm.model " fields="vm.fields[2].fields " form="vm.form" options="vm.options ">
|
67
|
|
- </formly-form>
|
|
368
|
+ </div>
|
|
369
|
+ <div class="mainDivLeft">
|
|
370
|
+ <div class="mainDiv-head">
|
|
371
|
+ <span>人员列表</span>
|
68
|
372
|
</div>
|
69
|
|
- <div class="panel col-xs-12 col-0 bg-lightgrey margin-top-15" ng-if="vm.fields[3].fields">
|
70
|
|
- <formly-form model="vm.model " fields="vm.fields[3].fields " form="vm.form" options="vm.options ">
|
71
|
|
- </formly-form>
|
|
373
|
+ <div class="mainDiv-body fixHeight">
|
|
374
|
+ <div class="mainDiv-wrapper">
|
|
375
|
+ <div class="box-tree">
|
|
376
|
+ <span ng-if="doing_asyncuser ">...加载中...</span>
|
|
377
|
+ <abn-trees
|
|
378
|
+ tree-data="my_user"
|
|
379
|
+ on-chioce="formbranch(item)"
|
|
380
|
+ tree-control="my_tree"
|
|
381
|
+ expand-level=""
|
|
382
|
+ icon-expand="ti-plus "
|
|
383
|
+ icon-collapse="ti-minus "
|
|
384
|
+ check-boxs="true"
|
|
385
|
+ ></abn-trees>
|
|
386
|
+ </div>
|
|
387
|
+ </div>
|
|
388
|
+ </div>
|
|
389
|
+ </div>
|
|
390
|
+ <div class="mainDivLeft">
|
|
391
|
+ <div class="mainDiv-head">
|
|
392
|
+ <span>上班人员({{getbranchs.length}})</span>
|
72
|
393
|
</div>
|
73
|
|
- <div class="col-xs-12 margin-top-30 margin-bottom-30 text-center">
|
74
|
|
- <button type="submit" ladda="ldloading.sm" class="btn btn-addbutton addbutton"
|
75
|
|
- translate="form.button.SUBMIT" ng-if="vm.model.showSub=='true'">Submit</button>
|
76
|
|
- <button type="close" class="btn btn-removebutton removebutton" ng-click="closeModel()"
|
77
|
|
- translate="form.button.CLOSE">CLOSE </button>
|
|
394
|
+ <div class="mainDiv-body fixHeight">
|
|
395
|
+ <div class="mainDiv-wrapper">
|
|
396
|
+ <div class="box-tree">
|
|
397
|
+ <ul class="allSeletedUsers">
|
|
398
|
+ <li ng-repeat="u in getbranchs">
|
|
399
|
+ <div class="allSeletedUser">
|
|
400
|
+ <span>{{u.name}}</span><em ng-click="removeBranch(u)">x</em>
|
|
401
|
+ </div>
|
|
402
|
+ </li>
|
|
403
|
+ </ul>
|
|
404
|
+ </div>
|
|
405
|
+ </div>
|
78
|
406
|
</div>
|
79
|
|
- </form>
|
80
|
|
-</div>
|
|
407
|
+ </div>
|
|
408
|
+ </div>
|
|
409
|
+ <div class="col-xs-12 margin-top-30 margin-bottom-30 text-center">
|
|
410
|
+ <button
|
|
411
|
+ type="submit"
|
|
412
|
+ ladda="ldloading.sm"
|
|
413
|
+ class="btn btn-addbutton addbutton"
|
|
414
|
+ translate="form.button.SUBMIT"
|
|
415
|
+ ng-if="vm.model.showSub=='true'"
|
|
416
|
+ >
|
|
417
|
+ Submit
|
|
418
|
+ </button>
|
|
419
|
+ <button
|
|
420
|
+ type="close"
|
|
421
|
+ class="btn btn-removebutton removebutton"
|
|
422
|
+ ng-click="closeModel()"
|
|
423
|
+ translate="form.button.CLOSE"
|
|
424
|
+ >
|
|
425
|
+ CLOSE
|
|
426
|
+ </button>
|
|
427
|
+ </div>
|
|
428
|
+ </form>
|
|
429
|
+</div>
|