fmui-base 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/lib/button/button.js +109 -0
  2. package/lib/button/index.js +16 -0
  3. package/lib/care/care.js +55 -0
  4. package/lib/care/index.js +16 -0
  5. package/lib/comment_list/List.js +101 -0
  6. package/lib/comment_list/List.less +3 -0
  7. package/lib/comment_list/index.js +16 -0
  8. package/lib/db/db.js +789 -0
  9. package/lib/db/variables.js +110 -0
  10. package/lib/form/answer.less +3 -0
  11. package/lib/form/form.js +2048 -0
  12. package/lib/form/index.js +16 -0
  13. package/lib/form/subForm.js +724 -0
  14. package/lib/form/table.js +1071 -0
  15. package/lib/index.js +43 -0
  16. package/lib/loading/index.js +16 -0
  17. package/lib/loading/loading.js +56 -0
  18. package/lib/no_data/index.js +16 -0
  19. package/lib/no_data/no_data.js +72 -0
  20. package/lib/poppage/check.js +572 -0
  21. package/lib/poppage/check.less +0 -0
  22. package/lib/poppage/index.js +16 -0
  23. package/lib/poppage/table/index.js +16 -0
  24. package/lib/poppage/table/table.js +776 -0
  25. package/lib/poppage/table/table.less +35 -0
  26. package/lib/poppage/tree/index.js +16 -0
  27. package/lib/poppage/tree/tree.js +705 -0
  28. package/lib/poppage/tree/tree.less +9 -0
  29. package/lib/poppage/treetable/index.js +16 -0
  30. package/lib/poppage/treetable/treetable.js +445 -0
  31. package/lib/poppage/treetable/treetable.less +9 -0
  32. package/lib/poppage/utils.js +40 -0
  33. package/lib/positioning/index.js +16 -0
  34. package/lib/positioning/positioning.js +136 -0
  35. package/lib/process_batch/index.js +16 -0
  36. package/lib/process_batch/pageHome.less +3 -0
  37. package/lib/process_batch/processBatch.js +1669 -0
  38. package/lib/process_info/FlowChart.js +231 -0
  39. package/lib/process_info/RelationProcess.js +173 -0
  40. package/lib/process_info/index.js +16 -0
  41. package/lib/process_info/processInfo.js +6090 -0
  42. package/lib/process_list/index.js +16 -0
  43. package/lib/process_list/processList.js +1378 -0
  44. package/lib/process_list/processList.less +5 -0
  45. package/lib/select-fileno/index.js +16 -0
  46. package/lib/select-fileno/pageHome.js +722 -0
  47. package/lib/select-fileno/pageHome.less +0 -0
  48. package/lib/select-fileno/utils.js +40 -0
  49. package/lib/select-serialnumber/index.js +16 -0
  50. package/lib/select-serialnumber/pageHome.js +651 -0
  51. package/lib/select-serialnumber/pageHome.less +0 -0
  52. package/lib/select-serialnumber/pageHome1.js +649 -0
  53. package/lib/select-serialnumber/utils.js +40 -0
  54. package/lib/selectMember/index.js +16 -0
  55. package/lib/selectMember/select.js +7061 -0
  56. package/lib/selectMember/select.less +25 -0
  57. package/lib/selectMember/utils.js +40 -0
  58. package/lib/selectMember//347/247/273/345/212/250/347/253/257/351/200/211/344/272/272/347/273/204/344/273/266/350/257/264/346/230/216/346/226/207/346/241/243.md +145 -0
  59. package/lib/signature/draw.js +268 -0
  60. package/lib/signature/index.js +16 -0
  61. package/lib/signature/sign.js +359 -0
  62. package/lib/signature/sign.less +73 -0
  63. package/lib/signature//346/211/213/345/206/231/347/255/276/345/220/215/344/275/277/347/224/250/346/226/207/346/241/243.md +12 -0
  64. package/lib/upload/index.js +16 -0
  65. package/lib/upload/upload.js +566 -0
  66. package/package.json +72 -0
package/lib/db/db.js ADDED
@@ -0,0 +1,789 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _react = require('react');
8
+
9
+ var _react2 = _interopRequireDefault(_react);
10
+
11
+ var _nattyFetch = require('natty-fetch');
12
+
13
+ var _nattyFetch2 = _interopRequireDefault(_nattyFetch);
14
+
15
+ var _Toast = require('saltui/lib/Toast');
16
+
17
+ var _Toast2 = _interopRequireDefault(_Toast);
18
+
19
+ var _variables = require('./variables');
20
+
21
+ var _variables2 = _interopRequireDefault(_variables);
22
+
23
+ var _loading = require('../loading/loading');
24
+
25
+ var _loading2 = _interopRequireDefault(_loading);
26
+
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+
29
+ // See https://github.com/Jias/natty-fetch for more details.
30
+ var context = _nattyFetch2.default.context({
31
+ mockUrlPrefix: _variables2.default.urlPrefix,
32
+ urlPrefix: _variables2.default.urlPrefix,
33
+ mock: _variables2.default.isDev,
34
+ // jsonp: true,
35
+ withCredentials: false,
36
+ traditional: true,
37
+ header: {
38
+ Authorization: 'Bearer ' + getLoginUserInfo().token
39
+ },
40
+ data: {
41
+ _tb_token_: ''
42
+ },
43
+ timeout: 0,
44
+ didFetch: function didFetch() {
45
+ return _Toast2.default.hide();
46
+ },
47
+ // 请按照需要开启
48
+ fit: function fit(response) {
49
+ return {
50
+ success: response.success,
51
+ content: response.content,
52
+ error: {
53
+ errorMsg: response.errorMsg,
54
+ errorCode: response.errorCode,
55
+ errorLevel: response.errorLevel
56
+ }
57
+ };
58
+ }
59
+ });
60
+
61
+ context.create('FlowApproval', {
62
+ getFlowClassify: {
63
+ mockUrl: 'query/getFlowClassify.json',
64
+ url: _variables2.default.URLS.getProcessClassifyTree,
65
+ header: {
66
+ Authorization: 'Bearer ' + getLoginUserInfo().token
67
+ },
68
+ willFetch: function willFetch() {
69
+ _Toast2.default.show({
70
+ content: _react2.default.createElement(_loading2.default, null),
71
+ duration: 800
72
+ });
73
+ }
74
+ },
75
+ getFavoriteProcessList: {
76
+ mockUrl: 'query/getFavoriteProcessList.json',
77
+ url: _variables2.default.URLS.getFavoriteProcessList,
78
+ header: {
79
+ Authorization: 'Bearer ' + getLoginUserInfo().token
80
+ },
81
+ willFetch: function willFetch() {
82
+ _Toast2.default.show({
83
+ content: _react2.default.createElement(_loading2.default, null),
84
+ duration: 800
85
+ });
86
+ }
87
+ },
88
+ getTransactionListDate: {
89
+ mockUrl: 'query/getTransactionListDate.json',
90
+ url: 'query/getTransactionListDate.json',
91
+ header: {
92
+ Authorization: 'Bearer ' + getLoginUserInfo().token
93
+ },
94
+ willFetch: function willFetch() {
95
+ _Toast2.default.show({
96
+ content: _react2.default.createElement(_loading2.default, null),
97
+ duration: 800
98
+ });
99
+ }
100
+ },
101
+ getFlowRecord: {
102
+ mockUrl: 'query/getFlowRecord.json',
103
+ url: 'query/getFlowRecord.json',
104
+ header: {
105
+ Authorization: 'Bearer ' + getLoginUserInfo().token
106
+ },
107
+ method: 'GET',
108
+ postDataFomat: 'FORM',
109
+ willFetch: function willFetch() {
110
+ _Toast2.default.show({
111
+ content: _react2.default.createElement(_loading2.default, null),
112
+ duration: 800
113
+ });
114
+ }
115
+ },
116
+ currentUserInfo: {
117
+ mockUrl: 'query/getUserInfo.json',
118
+ url: _variables2.default.URLS.userInfo,
119
+ header: {
120
+ Authorization: 'Bearer ' + getLoginUserInfo().token
121
+ },
122
+ willFetch: function willFetch() {
123
+ _Toast2.default.show({
124
+ content: _react2.default.createElement(_loading2.default, null),
125
+ duration: 800
126
+ });
127
+ }
128
+ },
129
+ getRemindBadgeCount: {
130
+ mockUrl: 'query/getRemindBadgeCount.json',
131
+ url: _variables2.default.URLS.getRemindBadgeCount,
132
+ header: {
133
+ Authorization: 'Bearer ' + getLoginUserInfo().token
134
+ },
135
+ willFetch: function willFetch() {
136
+ _Toast2.default.show({
137
+ content: _react2.default.createElement(_loading2.default, null),
138
+ duration: 800
139
+ });
140
+ }
141
+ },
142
+ // 获取首页常用流程的列表
143
+ getCommonUseProcess: {
144
+ mockUrl: 'query/getCommonUseProcess.json',
145
+ url: _variables2.default.URLS.getCommonUseProcess,
146
+ header: {
147
+ Authorization: 'Bearer ' + getLoginUserInfo().token
148
+ },
149
+ method: 'GET',
150
+ willFetch: function willFetch() {}
151
+ },
152
+ queryProcessInfo: {
153
+ mockUrl: 'query/queryProcessInfo.json',
154
+ url: _variables2.default.URLS.queryProcessInfo,
155
+ header: {
156
+ Authorization: 'Bearer ' + getLoginUserInfo().token
157
+ },
158
+ method: 'GET',
159
+ willFetch: function willFetch() {
160
+ _Toast2.default.show({
161
+ content: _react2.default.createElement(_loading2.default, null),
162
+ duration: 800
163
+ });
164
+ }
165
+ },
166
+ operateProcess: {
167
+ mockUrl: '',
168
+ url: _variables2.default.URLS.operateProcess,
169
+ header: {
170
+ Authorization: 'Bearer ' + getLoginUserInfo().token
171
+ },
172
+ method: 'POST',
173
+ postDataFomat: 'FORM',
174
+ willFetch: function willFetch() {
175
+ _Toast2.default.show({
176
+ content: _react2.default.createElement(_loading2.default, null),
177
+ duration: 800
178
+ });
179
+ }
180
+ },
181
+ operateCommonUseProcess: {
182
+ mockUrl: '',
183
+ url: _variables2.default.URLS.operateCommonUseProcess,
184
+ header: {
185
+ Authorization: 'Bearer ' + getLoginUserInfo().token
186
+ },
187
+ method: 'POST',
188
+ postDataFomat: 'FORM',
189
+ willFetch: function willFetch() {
190
+ // Toast.show({
191
+ // content: <Loading />,
192
+ // duration:800
193
+ // });
194
+ }
195
+ },
196
+ batchFavoriteProcess: {
197
+ mockUrl: '',
198
+ url: _variables2.default.URLS.batchFavoriteProcess,
199
+ header: {
200
+ Authorization: 'Bearer ' + getLoginUserInfo().token
201
+ },
202
+ method: 'POST',
203
+ postDataFomat: 'FORM',
204
+ willFetch: function willFetch() {}
205
+ },
206
+ queryProcessForm: {
207
+ mockUrl: 'query/queryProcessForm.json',
208
+ url: _variables2.default.URLS.queryProcessForm,
209
+ header: {
210
+ Authorization: 'Bearer ' + getLoginUserInfo().token
211
+ },
212
+ method: 'GET',
213
+ willFetch: function willFetch() {
214
+ _Toast2.default.show({
215
+ content: _react2.default.createElement(_loading2.default, null),
216
+ duration: 800
217
+ });
218
+ }
219
+ }
220
+ });
221
+
222
+ //流程接口方法
223
+ context.create('FlowModuleAPI', {
224
+ getSendFileInfo: {
225
+ mockUrl: 'query/getSendFileInfo.json',
226
+ url: _variables2.default.URLS.getSendFileInfo,
227
+ header: {
228
+ Authorization: 'Bearer ' + getLoginUserInfo().token
229
+ },
230
+ method: 'GET',
231
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
232
+ willFetch: function willFetch() {
233
+ _Toast2.default.show({
234
+ content: _react2.default.createElement(_loading2.default, null),
235
+ duration: 800
236
+ });
237
+ }
238
+ },
239
+ startProcess: {
240
+ url: _variables2.default.URLS.startProcess,
241
+ method: 'GET',
242
+ header: {
243
+ Authorization: 'Bearer ' + getLoginUserInfo().token
244
+ },
245
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
246
+ willFetch: function willFetch() {
247
+ _Toast2.default.show({
248
+ content: _react2.default.createElement(_loading2.default, null),
249
+ duration: 800
250
+ });
251
+ }
252
+ },
253
+ sendFlow: {
254
+ url: _variables2.default.URLS.sendFlow,
255
+ method: 'POST',
256
+ postDataFomat: 'FORM',
257
+ header: {
258
+ Authorization: 'Bearer ' + getLoginUserInfo().token
259
+ },
260
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
261
+ willFetch: function willFetch() {
262
+ _Toast2.default.show({
263
+ content: _react2.default.createElement(_loading2.default, null),
264
+ duration: 800
265
+ });
266
+ }
267
+ },
268
+ saveForm: {
269
+ url: _variables2.default.URLS.saveForm,
270
+ method: 'POST',
271
+ postDataFomat: 'FORM',
272
+ header: {
273
+ Authorization: 'Bearer ' + getLoginUserInfo().token
274
+ },
275
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
276
+ willFetch: function willFetch() {
277
+ _Toast2.default.show({
278
+ content: _react2.default.createElement(_loading2.default, null),
279
+ duration: 800
280
+ });
281
+ }
282
+ },
283
+ getReceiveFileInfo: {
284
+ url: _variables2.default.URLS.getReceiveFileInfo,
285
+ method: 'GET',
286
+ header: {
287
+ Authorization: 'Bearer ' + getLoginUserInfo().token
288
+ },
289
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
290
+ willFetch: function willFetch() {
291
+ _Toast2.default.show({
292
+ content: _react2.default.createElement(_loading2.default, null),
293
+ duration: 800
294
+ });
295
+ }
296
+ },
297
+ transferFlow: {
298
+ url: _variables2.default.URLS.transferFlow,
299
+ method: 'POST',
300
+ postDataFomat: 'FORM',
301
+ header: {
302
+ Authorization: 'Bearer ' + getLoginUserInfo().token
303
+ },
304
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
305
+ willFetch: function willFetch() {
306
+ _Toast2.default.show({
307
+ content: _react2.default.createElement(_loading2.default, null),
308
+ duration: 800
309
+ });
310
+ }
311
+ },
312
+ createReadTask: {
313
+ url: _variables2.default.URLS.createReadTask,
314
+ method: 'POST',
315
+ postDataFomat: 'FORM',
316
+ header: {
317
+ Authorization: 'Bearer ' + getLoginUserInfo().token
318
+ },
319
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
320
+ willFetch: function willFetch() {
321
+ _Toast2.default.show({
322
+ content: _react2.default.createElement(_loading2.default, null),
323
+ duration: 800
324
+ });
325
+ }
326
+ },
327
+ sendMail: {
328
+ url: _variables2.default.URLS.sendMail,
329
+ method: 'POST',
330
+ postDataFomat: 'FORM',
331
+ header: {
332
+ Authorization: 'Bearer ' + getLoginUserInfo().token
333
+ },
334
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
335
+ willFetch: function willFetch() {
336
+ _Toast2.default.show({
337
+ content: _react2.default.createElement(_loading2.default, null),
338
+ duration: 800
339
+ });
340
+ }
341
+ },
342
+ forwardReadTask: {
343
+ url: _variables2.default.URLS.forwardReadTask,
344
+ method: 'POST',
345
+ postDataFomat: 'FORM',
346
+ header: {
347
+ Authorization: 'Bearer ' + getLoginUserInfo().token
348
+ },
349
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
350
+ willFetch: function willFetch() {
351
+ _Toast2.default.show({
352
+ content: _react2.default.createElement(_loading2.default, null),
353
+ duration: 800
354
+ });
355
+ }
356
+ },
357
+ readCompleteTask: {
358
+ url: _variables2.default.URLS.readCompleteTask,
359
+ method: 'POST',
360
+ postDataFomat: 'FORM',
361
+ header: {
362
+ Authorization: 'Bearer ' + getLoginUserInfo().token
363
+ },
364
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
365
+ willFetch: function willFetch() {
366
+ _Toast2.default.show({
367
+ content: _react2.default.createElement(_loading2.default, null),
368
+ duration: 800
369
+ });
370
+ }
371
+ },
372
+ back: {
373
+ url: _variables2.default.URLS.back,
374
+ method: 'POST',
375
+ postDataFomat: 'FORM',
376
+ header: {
377
+ Authorization: 'Bearer ' + getLoginUserInfo().token
378
+ },
379
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
380
+ willFetch: function willFetch() {
381
+ _Toast2.default.show({
382
+ content: _react2.default.createElement(_loading2.default, null),
383
+ duration: 800
384
+ });
385
+ }
386
+ },
387
+ rollback: {
388
+ url: _variables2.default.URLS.rollback,
389
+ method: 'POST',
390
+ postDataFomat: 'FORM',
391
+ header: {
392
+ Authorization: 'Bearer ' + getLoginUserInfo().token
393
+ },
394
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
395
+ willFetch: function willFetch() {
396
+ _Toast2.default.show({
397
+ content: _react2.default.createElement(_loading2.default, null),
398
+ duration: 800
399
+ });
400
+ }
401
+ },
402
+ canRollback: {
403
+ mockUrl: 'query/canRollback.json',
404
+ url: _variables2.default.URLS.canRollback,
405
+ method: 'GET',
406
+ header: {
407
+ Authorization: 'Bearer ' + getLoginUserInfo().token
408
+ },
409
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
410
+ willFetch: function willFetch() {
411
+ // Toast.show({
412
+ // content: <Loading />
413
+ // });
414
+ }
415
+ },
416
+ getCanBackActivity: {
417
+ mockUrl: 'query/queryCanBack.json',
418
+ url: _variables2.default.URLS.getCanBackActivity,
419
+ method: 'GET',
420
+ header: {
421
+ Authorization: 'Bearer ' + getLoginUserInfo().token
422
+ },
423
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
424
+ willFetch: function willFetch() {
425
+ // Toast.show({
426
+ // content: <Loading />
427
+ // });
428
+ }
429
+ },
430
+ suspendProcess: {
431
+ url: _variables2.default.URLS.suspendProcess,
432
+ method: 'POST',
433
+ postDataFomat: 'FORM',
434
+ header: {
435
+ Authorization: 'Bearer ' + getLoginUserInfo().token
436
+ },
437
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
438
+ willFetch: function willFetch() {
439
+ _Toast2.default.show({
440
+ content: _react2.default.createElement(_loading2.default, null),
441
+ duration: 800
442
+ });
443
+ }
444
+ },
445
+ recall: {
446
+ url: _variables2.default.URLS.recall,
447
+ method: 'GET',
448
+ header: {
449
+ Authorization: 'Bearer ' + getLoginUserInfo().token
450
+ },
451
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
452
+ willFetch: function willFetch() {
453
+ _Toast2.default.show({
454
+ content: _react2.default.createElement(_loading2.default, null),
455
+ duration: 800
456
+ });
457
+ }
458
+ },
459
+ getNextActivity: {
460
+ mockUrl: 'query/getNextActivity.json',
461
+ url: _variables2.default.URLS.getNextActivity,
462
+ method: 'POST',
463
+ postDataFomat: 'FORM',
464
+ header: {
465
+ Authorization: 'Bearer ' + getLoginUserInfo().token
466
+ },
467
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
468
+ willFetch: function willFetch() {
469
+ _Toast2.default.show({
470
+ content: _react2.default.createElement(_loading2.default, null),
471
+ duration: 800
472
+ });
473
+ }
474
+ },
475
+ queryFlowChart: {
476
+ mockUrl: 'query/queryFlowChart.json',
477
+ url: _variables2.default.URLS.queryFlowChart,
478
+ method: 'GET',
479
+ header: {
480
+ Authorization: 'Bearer ' + getLoginUserInfo().token
481
+ },
482
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
483
+ willFetch: function willFetch() {
484
+ _Toast2.default.show({
485
+ content: _react2.default.createElement(_loading2.default, null),
486
+ duration: 800
487
+ });
488
+ }
489
+ },
490
+ claimTask: {
491
+ mockUrl: 'query/claimTask.json',
492
+ header: {
493
+ Authorization: 'Bearer ' + getLoginUserInfo().token
494
+ },
495
+ url: _variables2.default.URLS.claimTask,
496
+ method: 'GET',
497
+ willFetch: function willFetch() {}
498
+ },
499
+ addSign: {
500
+ mockUrl: 'query/addSign.json',
501
+ header: {
502
+ Authorization: 'Bearer ' + getLoginUserInfo().token
503
+ },
504
+ url: _variables2.default.URLS.addSign,
505
+ method: 'GET',
506
+ willFetch: function willFetch() {
507
+ _Toast2.default.show({
508
+ content: _react2.default.createElement(_loading2.default, null),
509
+ duration: 800
510
+ });
511
+ }
512
+ },
513
+ getCanJumpActivity: {
514
+ mockUrl: 'query/getCanJumpActivity.json',
515
+ header: {
516
+ Authorization: 'Bearer ' + getLoginUserInfo().token
517
+ },
518
+ url: _variables2.default.URLS.getCanJumpActivity,
519
+ method: 'GET',
520
+ willFetch: function willFetch() {
521
+ _Toast2.default.show({
522
+ content: _react2.default.createElement(_loading2.default, null),
523
+ duration: 800
524
+ });
525
+ }
526
+ },
527
+ jump: {
528
+ mockUrl: 'query/jump.json',
529
+ header: {
530
+ Authorization: 'Bearer ' + getLoginUserInfo().token
531
+ },
532
+ url: _variables2.default.URLS.jump,
533
+ method: 'POST',
534
+ postDataFomat: 'FORM',
535
+ willFetch: function willFetch() {
536
+ _Toast2.default.show({
537
+ content: _react2.default.createElement(_loading2.default, null),
538
+ duration: 800
539
+ });
540
+ }
541
+ },
542
+ urgeFlow: {
543
+ mockUrl: '',
544
+ url: _variables2.default.URLS.urgeFlow,
545
+ header: {
546
+ Authorization: 'Bearer ' + getLoginUserInfo().token
547
+ },
548
+ method: 'POST',
549
+ postDataFomat: 'FORM',
550
+ willFetch: function willFetch() {
551
+ _Toast2.default.show({
552
+ content: _react2.default.createElement(_loading2.default, null),
553
+ duration: 800
554
+ });
555
+ }
556
+ },
557
+ getDoneTaskListByProcessId: {
558
+ mockUrl: 'query/getDoneTaskListByProcessId.json',
559
+ url: _variables2.default.URLS.getDoneTaskListByProcessId,
560
+ header: {
561
+ Authorization: 'Bearer ' + getLoginUserInfo().token
562
+ },
563
+ method: 'GET',
564
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
565
+ willFetch: function willFetch() {
566
+ _Toast2.default.show({
567
+ content: _react2.default.createElement(_loading2.default, null),
568
+ duration: 800
569
+ });
570
+ }
571
+ },
572
+ getListButtonsByCodes: {
573
+ mockUrl: 'query/getListButtonsByCodes.json',
574
+ url: _variables2.default.URLS.getListButtonsByCodes,
575
+ header: {
576
+ Authorization: 'Bearer ' + getLoginUserInfo().token
577
+ },
578
+ method: 'GET',
579
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
580
+ willFetch: function willFetch() {}
581
+ },
582
+
583
+ getProcessTitleByProId: {
584
+ mockUrl: 'query/getProcessTitleByProId.json',
585
+ url: _variables2.default.URLS.getProcessTitleByProId,
586
+ header: {
587
+ Authorization: 'Bearer ' + getLoginUserInfo().token
588
+ },
589
+ method: 'GET',
590
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
591
+ willFetch: function willFetch() {}
592
+ },
593
+
594
+ getDocumentFileMap: {
595
+ header: {
596
+ Authorization: 'Bearer ' + getLoginUserInfo().token
597
+ },
598
+ mockUrl: 'query/getDocumentFileMap.json',
599
+ url: _variables2.default.URLS.getDocumentFileMap,
600
+ method: 'GET',
601
+ willFetch: function willFetch() {}
602
+ },
603
+ getLinkFieldValueMap: {
604
+ mockUrl: 'query/getLinkFieldValueMap.json',
605
+ header: {
606
+ Authorization: 'Bearer ' + getLoginUserInfo().token
607
+ },
608
+ url: _variables2.default.URLS.getLinkFieldValueMap,
609
+ method: 'GET',
610
+ willFetch: function willFetch() {}
611
+ },
612
+ cancelProcess: {
613
+ mockUrl: 'query/getDoneTaskListByProcessId.json',
614
+ url: _variables2.default.URLS.cancelProcess,
615
+ method: 'GET',
616
+ header: {
617
+ Authorization: 'Bearer ' + getLoginUserInfo().token
618
+ },
619
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
620
+ willFetch: function willFetch() {
621
+ _Toast2.default.show({
622
+ content: _react2.default.createElement(_loading2.default, null),
623
+ duration: 800
624
+ });
625
+ }
626
+ },
627
+ forceEnd: {
628
+ mockUrl: 'query/getDoneTaskListByProcessId.json',
629
+ url: _variables2.default.URLS.forceEnd,
630
+ method: 'GET',
631
+ header: {
632
+ Authorization: 'Bearer ' + getLoginUserInfo().token
633
+ },
634
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
635
+ willFetch: function willFetch() {
636
+ _Toast2.default.show({
637
+ content: _react2.default.createElement(_loading2.default, null),
638
+ duration: 800
639
+ });
640
+ }
641
+ },
642
+ getUndoTaskInfo: {
643
+ mockUrl: 'query/getUndoTaskInfo.json',
644
+ url: _variables2.default.URLS.getUndoTaskInfo,
645
+ method: 'GET',
646
+ header: {
647
+ Authorization: 'Bearer ' + getLoginUserInfo().token
648
+ },
649
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
650
+ willFetch: function willFetch() {
651
+ _Toast2.default.show({
652
+ content: _react2.default.createElement(_loading2.default, null),
653
+ duration: 800
654
+ });
655
+ }
656
+ },
657
+ completeTaskBatch: {
658
+ mockUrl: 'query/getDoneTaskListByProcessId.json',
659
+ url: _variables2.default.URLS.completeTaskBatch,
660
+ method: 'POST',
661
+ postDataFomat: 'FORM',
662
+ header: {
663
+ Authorization: 'Bearer ' + getLoginUserInfo().token
664
+ },
665
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
666
+ willFetch: function willFetch() {
667
+ _Toast2.default.show({
668
+ content: _react2.default.createElement(_loading2.default, null),
669
+ duration: 800
670
+ });
671
+ }
672
+ },
673
+ readCompleteTaskBatch: {
674
+ mockUrl: 'query/getDoneTaskListByProcessId.json',
675
+ url: _variables2.default.URLS.readCompleteTaskBatch,
676
+ method: 'POST',
677
+ postDataFomat: 'FORM',
678
+ header: {
679
+ Authorization: 'Bearer ' + getLoginUserInfo().token
680
+ },
681
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
682
+ willFetch: function willFetch() {
683
+ _Toast2.default.show({
684
+ content: _react2.default.createElement(_loading2.default, null),
685
+ duration: 800
686
+ });
687
+ }
688
+ },
689
+ getPersonalPhrase: {
690
+ mockUrl: 'query/getPersonalPhrase.json',
691
+ url: _variables2.default.URLS.getPersonalPhrase,
692
+ method: 'GET',
693
+ header: {
694
+ Authorization: 'Bearer ' + getLoginUserInfo().token
695
+ },
696
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
697
+ willFetch: function willFetch() {}
698
+ },
699
+ getAllModuleList: {
700
+ mockUrl: 'query/getAllModuleList.json',
701
+ url: _variables2.default.URLS.getAllModuleList,
702
+ method: 'GET',
703
+ header: {
704
+ Authorization: 'Bearer ' + getLoginUserInfo().token
705
+ },
706
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
707
+ willFetch: function willFetch() {}
708
+ },
709
+ getDelegateList: {
710
+ mockUrl: 'query/getDelegateList.json',
711
+ header: {
712
+ Authorization: 'Bearer ' + getLoginUserInfo().token
713
+ },
714
+ url: _variables2.default.URLS.getDelegateList,
715
+ method: 'GET',
716
+ willFetch: function willFetch() {}
717
+ },
718
+ getDelegateViewInfo: {
719
+ mockUrl: 'query/getDelegateViewInfo.json',
720
+ header: {
721
+ Authorization: 'Bearer ' + getLoginUserInfo().token
722
+ },
723
+ url: _variables2.default.URLS.getDelegateViewInfo,
724
+ method: 'GET',
725
+ willFetch: function willFetch() {}
726
+ },
727
+ getRelationProcess: {
728
+ mockUrl: 'query/getRelationProcess.json',
729
+ header: {
730
+ Authorization: 'Bearer ' + getLoginUserInfo().token
731
+ },
732
+ url: _variables2.default.URLS.getRelationProcess,
733
+ method: 'GET',
734
+ willFetch: function willFetch() {}
735
+ },
736
+ getAllProcessList: {
737
+ mockUrl: 'query/getAllProcessList.json',
738
+ header: {
739
+ Authorization: 'Bearer ' + getLoginUserInfo().token
740
+ },
741
+ url: _variables2.default.URLS.getAllProcessList,
742
+ method: 'GET',
743
+ willFetch: function willFetch() {}
744
+ },
745
+ savePersonalPhrase: {
746
+ mockUrl: 'query/savePersonalPhrase.json',
747
+ header: {
748
+ Authorization: 'Bearer ' + getLoginUserInfo().token
749
+ },
750
+ url: _variables2.default.URLS.savePersonalPhrase,
751
+ method: 'POST',
752
+ postDataFomat: 'FORM',
753
+ /* header:{'content-Type':'application/x-www-form-urlencoded'},*/
754
+ willFetch: function willFetch() {}
755
+ },
756
+ /* 删除常用语*/
757
+ deletePhrase: {
758
+ mockUrl: 'query/deletePhrase.json',
759
+ header: {
760
+ Authorization: 'Bearer ' + getLoginUserInfo().token
761
+ },
762
+ url: _variables2.default.URLS.deletePhrase,
763
+ method: 'POST',
764
+ postDataFomat: 'FORM',
765
+ willFetch: function willFetch() {}
766
+ },
767
+ deleteDelegate: {
768
+ mockUrl: 'query/deleteDelegate.json',
769
+ header: {
770
+ Authorization: 'Bearer ' + getLoginUserInfo().token
771
+ },
772
+ url: _variables2.default.URLS.deleteDelegate,
773
+ method: 'POST',
774
+ postDataFomat: 'FORM',
775
+ willFetch: function willFetch() {}
776
+ },
777
+ editSaveDelegate: {
778
+ mockUrl: 'query/editSaveDelegate.json',
779
+ header: {
780
+ Authorization: 'Bearer ' + getLoginUserInfo().token
781
+ },
782
+ url: _variables2.default.URLS.editSaveDelegate,
783
+ method: 'POST',
784
+ postDataFomat: 'FORM',
785
+ willFetch: function willFetch() {}
786
+ }
787
+ });
788
+
789
+ exports.default = context.api;