sd-prison-select 1.0.13 → 1.0.15

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.
@@ -0,0 +1,1153 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("sd-general-history", [], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["sd-general-history"] = factory();
8
+ else
9
+ root["sd-general-history"] = factory();
10
+ })(typeof self !== 'undefined' ? self : this, function() {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, {
50
+ /******/ configurable: false,
51
+ /******/ enumerable: true,
52
+ /******/ get: getter
53
+ /******/ });
54
+ /******/ }
55
+ /******/ };
56
+ /******/
57
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
58
+ /******/ __webpack_require__.n = function(module) {
59
+ /******/ var getter = module && module.__esModule ?
60
+ /******/ function getDefault() { return module['default']; } :
61
+ /******/ function getModuleExports() { return module; };
62
+ /******/ __webpack_require__.d(getter, 'a', getter);
63
+ /******/ return getter;
64
+ /******/ };
65
+ /******/
66
+ /******/ // Object.prototype.hasOwnProperty.call
67
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
68
+ /******/
69
+ /******/ // __webpack_public_path__
70
+ /******/ __webpack_require__.p = "/dist/";
71
+ /******/
72
+ /******/ // Load entry module and return exports
73
+ /******/ return __webpack_require__(__webpack_require__.s = 1);
74
+ /******/ })
75
+ /************************************************************************/
76
+ /******/ ([
77
+ /* 0 */
78
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
79
+
80
+ "use strict";
81
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__ = __webpack_require__(9);
82
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__);
83
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_track_methods__ = __webpack_require__(10);
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
+ //
269
+ //
270
+ //
271
+ //
272
+ //
273
+ //
274
+ //
275
+ //
276
+ //
277
+ //
278
+ //
279
+ //
280
+ //
281
+ //
282
+ //
283
+ //
284
+ //
285
+ //
286
+ //
287
+ //
288
+ //
289
+ //
290
+ //
291
+ //
292
+ //
293
+ //
294
+ //
295
+ //
296
+ //
297
+ //
298
+ //
299
+ //
300
+ //
301
+ //
302
+ //
303
+ //
304
+ //
305
+ //
306
+ //
307
+ //
308
+ //
309
+ //
310
+ //
311
+ //
312
+ //
313
+ //
314
+ //
315
+ //
316
+ //
317
+ //
318
+ //
319
+ //
320
+ //
321
+ //
322
+ //
323
+ //
324
+ //
325
+ //
326
+ //
327
+ //
328
+ //
329
+ //
330
+ //
331
+ //
332
+ //
333
+ //
334
+ //
335
+ //
336
+ //
337
+ //
338
+ //
339
+ //
340
+ //
341
+ //
342
+ //
343
+ //
344
+ //
345
+ //
346
+ //
347
+ //
348
+ //
349
+ //
350
+ //
351
+ //
352
+ //
353
+ //
354
+ //
355
+ //
356
+ //
357
+ //
358
+ //
359
+ //
360
+ //
361
+ //
362
+ //
363
+ //
364
+ //
365
+ //
366
+ //
367
+ //
368
+ //
369
+ //
370
+ //
371
+ //
372
+ //
373
+ //
374
+ //
375
+ //
376
+ //
377
+ //
378
+ //
379
+ //
380
+
381
+ // import modifyApproveUser from '../../bpm/approval/modify-approve-user.vue' // 测试
382
+
383
+
384
+
385
+ /* harmony default export */ __webpack_exports__["a"] = ({
386
+ components: {
387
+ modifyApproveUser: __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__["modifyApproveUser"]
388
+ },
389
+ mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_track_methods__["a" /* default */]],
390
+ props: {},
391
+ data: function data() {
392
+ return {};
393
+ },
394
+
395
+ filters: {
396
+ dateFormat: function dateFormat(dateStr) {
397
+ var date = new Date(dateStr);
398
+ var year = date.getFullYear();
399
+ /* 在日期格式中,月份是从0开始的,因此要加0使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05 */
400
+ var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
401
+ var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
402
+ var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
403
+ var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
404
+ var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
405
+ // 拼接
406
+ return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
407
+ }
408
+ },
409
+ mounted: function mounted() {
410
+ this.getApprovalTrack();
411
+ },
412
+
413
+ methods: {
414
+ callbackSuccess: function callbackSuccess(data) {
415
+ var _this = this;
416
+
417
+ if (this.modifyUserCallback) {
418
+ this.getApprovalTrack();
419
+ return this.modifyUserCallback(data);
420
+ } else {
421
+ // 重新获取审批历史
422
+ return new Promise(function (resolve, reject) {
423
+ var that = _this;
424
+ _this.getApprovalTrack();
425
+ setTimeout(function () {
426
+ that.$Modal.success({
427
+ title: '温馨提示',
428
+ content: '修改审批人成功'
429
+ });
430
+ resolve({ success: true });
431
+ }, 1000);
432
+ });
433
+ }
434
+ },
435
+ testErr: function testErr() {
436
+ var _this2 = this;
437
+
438
+ return new Promise(function (resolve, reject) {
439
+ var that = _this2;
440
+ setTimeout(function () {
441
+ that.$Modal.error({
442
+ title: '温馨提示',
443
+ content: '修改审批人失败,请稍后重试'
444
+ });
445
+ resolve({ success: false });
446
+ }, 1000);
447
+ });
448
+ }
449
+ }
450
+ });
451
+
452
+ /***/ }),
453
+ /* 1 */
454
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
455
+
456
+ "use strict";
457
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
458
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_flow_general_history_vue__ = __webpack_require__(2);
459
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sGeneralHistory", function() { return __WEBPACK_IMPORTED_MODULE_0__components_flow_general_history_vue__["a"]; });
460
+
461
+ var Plugin = {
462
+ install: function install(Vue) {
463
+ Vue.component('s-general-history', __WEBPACK_IMPORTED_MODULE_0__components_flow_general_history_vue__["a" /* default */]);
464
+ }
465
+ };
466
+
467
+ /* harmony default export */ __webpack_exports__["default"] = (Plugin);
468
+
469
+ /***/ }),
470
+ /* 2 */
471
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
472
+
473
+ "use strict";
474
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__ = __webpack_require__(0);
475
+ /* unused harmony namespace reexport */
476
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac47f65a_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__ = __webpack_require__(12);
477
+ function injectStyle (ssrContext) {
478
+ __webpack_require__(3)
479
+ }
480
+ var normalizeComponent = __webpack_require__(8)
481
+ /* script */
482
+
483
+
484
+ /* template */
485
+
486
+ /* template functional */
487
+ var __vue_template_functional__ = false
488
+ /* styles */
489
+ var __vue_styles__ = injectStyle
490
+ /* scopeId */
491
+ var __vue_scopeId__ = "data-v-ac47f65a"
492
+ /* moduleIdentifier (server only) */
493
+ var __vue_module_identifier__ = null
494
+ var Component = normalizeComponent(
495
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__["a" /* default */],
496
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac47f65a_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__["a" /* default */],
497
+ __vue_template_functional__,
498
+ __vue_styles__,
499
+ __vue_scopeId__,
500
+ __vue_module_identifier__
501
+ )
502
+
503
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
504
+
505
+
506
+ /***/ }),
507
+ /* 3 */
508
+ /***/ (function(module, exports, __webpack_require__) {
509
+
510
+ // style-loader: Adds some css to the DOM by adding a <style> tag
511
+
512
+ // load the styles
513
+ var content = __webpack_require__(4);
514
+ if(typeof content === 'string') content = [[module.i, content, '']];
515
+ if(content.locals) module.exports = content.locals;
516
+ // add the styles to the DOM
517
+ var update = __webpack_require__(6)("f91bf378", content, true);
518
+
519
+ /***/ }),
520
+ /* 4 */
521
+ /***/ (function(module, exports, __webpack_require__) {
522
+
523
+ exports = module.exports = __webpack_require__(5)(false);
524
+ // imports
525
+
526
+
527
+ // module
528
+ exports.push([module.i, ".history-audit[data-v-ac47f65a]{padding:15px}.task-container[data-v-ac47f65a]{margin-bottom:10px}.task-container .task-title[data-v-ac47f65a]{font-size:18px;font-weight:700;color:#333}.line-gray[data-v-ac47f65a]{padding:0}.history-audit .content[data-v-ac47f65a]{width:432px;padding:10px 18px;background-color:#f5f8ff}[data-v-ac47f65a] .ivu-timeline-item-content{padding:10px 10px 10px 24px;top:-16px}.row-col-title[data-v-ac47f65a]{text-align:right}.row-col-title span[data-v-ac47f65a]{font-size:16px;color:#7a8499}.padding-btm-10[data-v-ac47f65a]{padding:5px 0}.row-col-content[data-v-ac47f65a]{padding-left:10px}.row-col-content span[data-v-ac47f65a]{color:#333;font-size:16px;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.success[data-v-ac47f65a]{padding:4px;background-color:#d9fce8;color:#13ba5a;margin-left:10px}.error[data-v-ac47f65a]{padding:4px;background-color:#ffd6dd;color:#f23051;margin-left:10px}.warning[data-v-ac47f65a]{padding:4px;background-color:#ffe7d6;color:#f83;margin-left:10px}.primary[data-v-ac47f65a]{padding:4px;background-color:#e5f0ff;color:#2b5fda;margin-left:10px}.task-oper[data-v-ac47f65a]{float:right}.history-audit .oper-container[data-v-ac47f65a]{width:432px;display:flex;justify-content:space-between;flex-direction:row}.slot-button[data-v-ac47f65a]{background-color:#2b5fda;color:#fff;font-size:14px}.back-button[data-v-ac47f65a]{background-color:#f36279;color:#fff;font-size:14px}[data-v-ac47f65a] .ivu-icon-ios-radio-button-off{background-color:#dae1ec;border-radius:50%}.customIcon[data-v-ac47f65a]{position:relative;left:-31px;top:0;background:#fff}.task-title-active[data-v-ac47f65a]{border-bottom:2px solid #2b5fda}", ""]);
529
+
530
+ // exports
531
+
532
+
533
+ /***/ }),
534
+ /* 5 */
535
+ /***/ (function(module, exports) {
536
+
537
+ /*
538
+ MIT License http://www.opensource.org/licenses/mit-license.php
539
+ Author Tobias Koppers @sokra
540
+ */
541
+ // css base code, injected by the css-loader
542
+ module.exports = function(useSourceMap) {
543
+ var list = [];
544
+
545
+ // return the list of modules as css string
546
+ list.toString = function toString() {
547
+ return this.map(function (item) {
548
+ var content = cssWithMappingToString(item, useSourceMap);
549
+ if(item[2]) {
550
+ return "@media " + item[2] + "{" + content + "}";
551
+ } else {
552
+ return content;
553
+ }
554
+ }).join("");
555
+ };
556
+
557
+ // import a list of modules into the list
558
+ list.i = function(modules, mediaQuery) {
559
+ if(typeof modules === "string")
560
+ modules = [[null, modules, ""]];
561
+ var alreadyImportedModules = {};
562
+ for(var i = 0; i < this.length; i++) {
563
+ var id = this[i][0];
564
+ if(typeof id === "number")
565
+ alreadyImportedModules[id] = true;
566
+ }
567
+ for(i = 0; i < modules.length; i++) {
568
+ var item = modules[i];
569
+ // skip already imported module
570
+ // this implementation is not 100% perfect for weird media query combinations
571
+ // when a module is imported multiple times with different media queries.
572
+ // I hope this will never occur (Hey this way we have smaller bundles)
573
+ if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
574
+ if(mediaQuery && !item[2]) {
575
+ item[2] = mediaQuery;
576
+ } else if(mediaQuery) {
577
+ item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
578
+ }
579
+ list.push(item);
580
+ }
581
+ }
582
+ };
583
+ return list;
584
+ };
585
+
586
+ function cssWithMappingToString(item, useSourceMap) {
587
+ var content = item[1] || '';
588
+ var cssMapping = item[3];
589
+ if (!cssMapping) {
590
+ return content;
591
+ }
592
+
593
+ if (useSourceMap && typeof btoa === 'function') {
594
+ var sourceMapping = toComment(cssMapping);
595
+ var sourceURLs = cssMapping.sources.map(function (source) {
596
+ return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
597
+ });
598
+
599
+ return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
600
+ }
601
+
602
+ return [content].join('\n');
603
+ }
604
+
605
+ // Adapted from convert-source-map (MIT)
606
+ function toComment(sourceMap) {
607
+ // eslint-disable-next-line no-undef
608
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
609
+ var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
610
+
611
+ return '/*# ' + data + ' */';
612
+ }
613
+
614
+
615
+ /***/ }),
616
+ /* 6 */
617
+ /***/ (function(module, exports, __webpack_require__) {
618
+
619
+ /*
620
+ MIT License http://www.opensource.org/licenses/mit-license.php
621
+ Author Tobias Koppers @sokra
622
+ Modified by Evan You @yyx990803
623
+ */
624
+
625
+ var hasDocument = typeof document !== 'undefined'
626
+
627
+ if (typeof DEBUG !== 'undefined' && DEBUG) {
628
+ if (!hasDocument) {
629
+ throw new Error(
630
+ 'vue-style-loader cannot be used in a non-browser environment. ' +
631
+ "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
632
+ ) }
633
+ }
634
+
635
+ var listToStyles = __webpack_require__(7)
636
+
637
+ /*
638
+ type StyleObject = {
639
+ id: number;
640
+ parts: Array<StyleObjectPart>
641
+ }
642
+
643
+ type StyleObjectPart = {
644
+ css: string;
645
+ media: string;
646
+ sourceMap: ?string
647
+ }
648
+ */
649
+
650
+ var stylesInDom = {/*
651
+ [id: number]: {
652
+ id: number,
653
+ refs: number,
654
+ parts: Array<(obj?: StyleObjectPart) => void>
655
+ }
656
+ */}
657
+
658
+ var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
659
+ var singletonElement = null
660
+ var singletonCounter = 0
661
+ var isProduction = false
662
+ var noop = function () {}
663
+
664
+ // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
665
+ // tags it will allow on a page
666
+ var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
667
+
668
+ module.exports = function (parentId, list, _isProduction) {
669
+ isProduction = _isProduction
670
+
671
+ var styles = listToStyles(parentId, list)
672
+ addStylesToDom(styles)
673
+
674
+ return function update (newList) {
675
+ var mayRemove = []
676
+ for (var i = 0; i < styles.length; i++) {
677
+ var item = styles[i]
678
+ var domStyle = stylesInDom[item.id]
679
+ domStyle.refs--
680
+ mayRemove.push(domStyle)
681
+ }
682
+ if (newList) {
683
+ styles = listToStyles(parentId, newList)
684
+ addStylesToDom(styles)
685
+ } else {
686
+ styles = []
687
+ }
688
+ for (var i = 0; i < mayRemove.length; i++) {
689
+ var domStyle = mayRemove[i]
690
+ if (domStyle.refs === 0) {
691
+ for (var j = 0; j < domStyle.parts.length; j++) {
692
+ domStyle.parts[j]()
693
+ }
694
+ delete stylesInDom[domStyle.id]
695
+ }
696
+ }
697
+ }
698
+ }
699
+
700
+ function addStylesToDom (styles /* Array<StyleObject> */) {
701
+ for (var i = 0; i < styles.length; i++) {
702
+ var item = styles[i]
703
+ var domStyle = stylesInDom[item.id]
704
+ if (domStyle) {
705
+ domStyle.refs++
706
+ for (var j = 0; j < domStyle.parts.length; j++) {
707
+ domStyle.parts[j](item.parts[j])
708
+ }
709
+ for (; j < item.parts.length; j++) {
710
+ domStyle.parts.push(addStyle(item.parts[j]))
711
+ }
712
+ if (domStyle.parts.length > item.parts.length) {
713
+ domStyle.parts.length = item.parts.length
714
+ }
715
+ } else {
716
+ var parts = []
717
+ for (var j = 0; j < item.parts.length; j++) {
718
+ parts.push(addStyle(item.parts[j]))
719
+ }
720
+ stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
721
+ }
722
+ }
723
+ }
724
+
725
+ function createStyleElement () {
726
+ var styleElement = document.createElement('style')
727
+ styleElement.type = 'text/css'
728
+ head.appendChild(styleElement)
729
+ return styleElement
730
+ }
731
+
732
+ function addStyle (obj /* StyleObjectPart */) {
733
+ var update, remove
734
+ var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
735
+
736
+ if (styleElement) {
737
+ if (isProduction) {
738
+ // has SSR styles and in production mode.
739
+ // simply do nothing.
740
+ return noop
741
+ } else {
742
+ // has SSR styles but in dev mode.
743
+ // for some reason Chrome can't handle source map in server-rendered
744
+ // style tags - source maps in <style> only works if the style tag is
745
+ // created and inserted dynamically. So we remove the server rendered
746
+ // styles and inject new ones.
747
+ styleElement.parentNode.removeChild(styleElement)
748
+ }
749
+ }
750
+
751
+ if (isOldIE) {
752
+ // use singleton mode for IE9.
753
+ var styleIndex = singletonCounter++
754
+ styleElement = singletonElement || (singletonElement = createStyleElement())
755
+ update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
756
+ remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
757
+ } else {
758
+ // use multi-style-tag mode in all other cases
759
+ styleElement = createStyleElement()
760
+ update = applyToTag.bind(null, styleElement)
761
+ remove = function () {
762
+ styleElement.parentNode.removeChild(styleElement)
763
+ }
764
+ }
765
+
766
+ update(obj)
767
+
768
+ return function updateStyle (newObj /* StyleObjectPart */) {
769
+ if (newObj) {
770
+ if (newObj.css === obj.css &&
771
+ newObj.media === obj.media &&
772
+ newObj.sourceMap === obj.sourceMap) {
773
+ return
774
+ }
775
+ update(obj = newObj)
776
+ } else {
777
+ remove()
778
+ }
779
+ }
780
+ }
781
+
782
+ var replaceText = (function () {
783
+ var textStore = []
784
+
785
+ return function (index, replacement) {
786
+ textStore[index] = replacement
787
+ return textStore.filter(Boolean).join('\n')
788
+ }
789
+ })()
790
+
791
+ function applyToSingletonTag (styleElement, index, remove, obj) {
792
+ var css = remove ? '' : obj.css
793
+
794
+ if (styleElement.styleSheet) {
795
+ styleElement.styleSheet.cssText = replaceText(index, css)
796
+ } else {
797
+ var cssNode = document.createTextNode(css)
798
+ var childNodes = styleElement.childNodes
799
+ if (childNodes[index]) styleElement.removeChild(childNodes[index])
800
+ if (childNodes.length) {
801
+ styleElement.insertBefore(cssNode, childNodes[index])
802
+ } else {
803
+ styleElement.appendChild(cssNode)
804
+ }
805
+ }
806
+ }
807
+
808
+ function applyToTag (styleElement, obj) {
809
+ var css = obj.css
810
+ var media = obj.media
811
+ var sourceMap = obj.sourceMap
812
+
813
+ if (media) {
814
+ styleElement.setAttribute('media', media)
815
+ }
816
+
817
+ if (sourceMap) {
818
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
819
+ // this makes source maps inside style tags work properly in Chrome
820
+ css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
821
+ // http://stackoverflow.com/a/26603875
822
+ css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
823
+ }
824
+
825
+ if (styleElement.styleSheet) {
826
+ styleElement.styleSheet.cssText = css
827
+ } else {
828
+ while (styleElement.firstChild) {
829
+ styleElement.removeChild(styleElement.firstChild)
830
+ }
831
+ styleElement.appendChild(document.createTextNode(css))
832
+ }
833
+ }
834
+
835
+
836
+ /***/ }),
837
+ /* 7 */
838
+ /***/ (function(module, exports) {
839
+
840
+ /**
841
+ * Translates the list format produced by css-loader into something
842
+ * easier to manipulate.
843
+ */
844
+ module.exports = function listToStyles (parentId, list) {
845
+ var styles = []
846
+ var newStyles = {}
847
+ for (var i = 0; i < list.length; i++) {
848
+ var item = list[i]
849
+ var id = item[0]
850
+ var css = item[1]
851
+ var media = item[2]
852
+ var sourceMap = item[3]
853
+ var part = {
854
+ id: parentId + ':' + i,
855
+ css: css,
856
+ media: media,
857
+ sourceMap: sourceMap
858
+ }
859
+ if (!newStyles[id]) {
860
+ styles.push(newStyles[id] = { id: id, parts: [part] })
861
+ } else {
862
+ newStyles[id].parts.push(part)
863
+ }
864
+ }
865
+ return styles
866
+ }
867
+
868
+
869
+ /***/ }),
870
+ /* 8 */
871
+ /***/ (function(module, exports) {
872
+
873
+ /* globals __VUE_SSR_CONTEXT__ */
874
+
875
+ // IMPORTANT: Do NOT use ES2015 features in this file.
876
+ // This module is a runtime utility for cleaner component module output and will
877
+ // be included in the final webpack user bundle.
878
+
879
+ module.exports = function normalizeComponent (
880
+ rawScriptExports,
881
+ compiledTemplate,
882
+ functionalTemplate,
883
+ injectStyles,
884
+ scopeId,
885
+ moduleIdentifier /* server only */
886
+ ) {
887
+ var esModule
888
+ var scriptExports = rawScriptExports = rawScriptExports || {}
889
+
890
+ // ES6 modules interop
891
+ var type = typeof rawScriptExports.default
892
+ if (type === 'object' || type === 'function') {
893
+ esModule = rawScriptExports
894
+ scriptExports = rawScriptExports.default
895
+ }
896
+
897
+ // Vue.extend constructor export interop
898
+ var options = typeof scriptExports === 'function'
899
+ ? scriptExports.options
900
+ : scriptExports
901
+
902
+ // render functions
903
+ if (compiledTemplate) {
904
+ options.render = compiledTemplate.render
905
+ options.staticRenderFns = compiledTemplate.staticRenderFns
906
+ options._compiled = true
907
+ }
908
+
909
+ // functional template
910
+ if (functionalTemplate) {
911
+ options.functional = true
912
+ }
913
+
914
+ // scopedId
915
+ if (scopeId) {
916
+ options._scopeId = scopeId
917
+ }
918
+
919
+ var hook
920
+ if (moduleIdentifier) { // server build
921
+ hook = function (context) {
922
+ // 2.3 injection
923
+ context =
924
+ context || // cached call
925
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
926
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
927
+ // 2.2 with runInNewContext: true
928
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
929
+ context = __VUE_SSR_CONTEXT__
930
+ }
931
+ // inject component styles
932
+ if (injectStyles) {
933
+ injectStyles.call(this, context)
934
+ }
935
+ // register component module identifier for async chunk inferrence
936
+ if (context && context._registeredComponents) {
937
+ context._registeredComponents.add(moduleIdentifier)
938
+ }
939
+ }
940
+ // used by ssr in case component is cached and beforeCreate
941
+ // never gets called
942
+ options._ssrRegister = hook
943
+ } else if (injectStyles) {
944
+ hook = injectStyles
945
+ }
946
+
947
+ if (hook) {
948
+ var functional = options.functional
949
+ var existing = functional
950
+ ? options.render
951
+ : options.beforeCreate
952
+
953
+ if (!functional) {
954
+ // inject component registration as beforeCreate hook
955
+ options.beforeCreate = existing
956
+ ? [].concat(existing, hook)
957
+ : [hook]
958
+ } else {
959
+ // for template-only hot-reload because in that case the render fn doesn't
960
+ // go through the normalizer
961
+ options._injectStyles = hook
962
+ // register for functioal component in vue file
963
+ options.render = function renderWithStyleInjection (h, context) {
964
+ hook.call(context)
965
+ return existing(h, context)
966
+ }
967
+ }
968
+ }
969
+
970
+ return {
971
+ esModule: esModule,
972
+ exports: scriptExports,
973
+ options: options
974
+ }
975
+ }
976
+
977
+
978
+ /***/ }),
979
+ /* 9 */
980
+ /***/ (function(module, exports, __webpack_require__) {
981
+
982
+ !function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define("sd-modify-approve-user",[],t):"object"==typeof exports?exports["sd-modify-approve-user"]=t():e["sd-modify-approve-user"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=3)}([function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+m+'~="'+e.id+'"]');if(r){if(h)return g;r.parentNode.removeChild(r)}if(x){var o=p++;r=f||(f=i()),t=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function a(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(m,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(7),d={},u=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,g=function(){},v=null,m="data-vue-ssr-id",x="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){h=n,v=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],a=d[s.id];a.refs--,n.push(a)}t?(o=l(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var a=n[i];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var s=t[i](o),a=s.value}catch(e){return void n(e)}if(!s.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}t.a={name:"modify-approve-user",props:{actInstId:{type:String},module:{type:String,default:""},platform:{type:String,default:"pc"},extraOrgId:{type:String,default:""},extraRegId:{type:String,default:""},extraCityId:{type:String,default:""},complete:{type:Function,default:null},error:{type:Function,default:null},bindEvent:{type:Boolean,default:!0}},data:function(){return{isInitData:!1,openStatus:!1,nodeName:"领导审核",loading:!1,indeterminate:!0,checkAll:!1,orgUserList:[],orgId:"",userList:[],candidateUsers:[],isCanChang:!1,taskId:"",reference:null}},mounted:function(){this.bindEvent&&this.$slots.func&&(this.reference=this.$slots.func[0].elm,this.reference&&this.reference.addEventListener("click",this.initData))},methods:{initData:function(){this.isInitData?this.openStatus=!0:this.getOrgUserList(this.actInstId)},warnSwal:function(e,t){this.$swal({type:"warning",text:e,confirmButtonText:"确 定"}).then(function(e){t&&t(e)})},getOrgUserList:function(e){var t=this,n={actInstId:e,extraOrgId:this.extraOrgId,extraRegId:this.extraRegId,extraCityId:this.extraCityId};this.$store.dispatch("authGetRequest",{url:"bsp-bpm/bpm/approveProcess/taskIdentityLinks",params:n}).then(function(e){if(e.success){t.openStatus=!0,t.isInitData=!0;var n=e.data;t.nodeName=n.nodeName,t.isCanChang=n.isCanChang,t.taskId=n.taskId;var r=n.orgUserList;if(r.length>1){var i=[];n.orgUserList.forEach(function(e){var t=e.user;t&&t.length>0&&(i=i.concat(t))}),r.push({orgId:"allOrg",orgName:"所有单位",user:i})}t.orgUserList=r,r.length>=1&&t.$nextTick(function(){t.orgId=r[0].orgId,t.onSelectOrg(r[0].orgId)})}else t.warnSwal("启动流程失败。")})},clearCheckbox:function(){this.indeterminate=!1,this.checkAll=!1,this.candidateUsers=[],this.$forceUpdate()},onSelectOrg:function(e){if(e){var t=this.orgUserList.findIndex(function(t){return t.orgId==e});t>-1&&(this.userList=this.orgUserList[t].user),this.clearCheckbox(),this.$refs.checkAllRef.$el.click(),this.$forceUpdate()}},convertCandidateUsers:function(){return this.candidateUsers.map(function(e){var t=e.split("_");return{idCard:t[0],orgCode:t[1]}})},submit:function(){var e=this;return r(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.candidateUsers&&0!==e.candidateUsers.length){t.next=3;break}return e.$Modal.warning({title:"温馨提示",content:"请选择审批人。"}),t.abrupt("return");case 3:e.loading=!0,n={taskId:e.taskId,candidateUsers:JSON.stringify(e.convertCandidateUsers()),fApp:e.module,fXxpt:e.platform},e.$store.dispatch("postRequest",{url:"bsp-bpm/bpm/approveProcess/saveTaskIdentityLinks",params:n}).then(function(t){t.success?e.complete?e.complete(t).then(function(t){e.loading=!1,t.success&&e.cancel()}):(e.cancel(),e.$Modal.success({title:"温馨提示",content:"审批人修改成功!"})):(e.loading=!1,e.error?e.error(t):e.$Modal.error({title:"温馨提示",content:"审批人修改失败。原因:"+t.msg}))});case 6:case"end":return t.stop()}},t,e)}))()},handleCheckAll:function(){var e=this;this.indeterminate?this.checkAll=!1:this.checkAll=!this.checkAll,this.indeterminate=!1,this.checkAll?this.userList.forEach(function(t){e.candidateUsers.push(t.userIdCard+"_"+t.orgCode)}):this.candidateUsers=[]},checkAllGroupChange:function(e){e.length===this.userList.length?(this.indeterminate=!1,this.checkAll=!0):e.length>0?(this.indeterminate=!0,this.checkAll=!1):(this.indeterminate=!1,this.checkAll=!1)},cancel:function(){this.openStatus=!1,this.loading=!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);n.d(t,"modifyApproveUser",function(){return r.a});var i={install:function(e){e.component("modify-approve-user",r.a)}};t.default=i},function(e,t,n){"use strict";function r(e){n(5),n(8)}var i=n(2),o=n(11),s=n(10),a=r,c=s(i.a,o.a,!1,a,"data-v-07e6c48d",null);t.a=c.exports},function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("75c7965a",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".flow-modal{color:#333;font-size:15px}.flow-modal .ivu-modal-body,.flow-modal .ivu-modal-header{padding:0}.flow-modal .ivu-checkbox-wrapper,.flow-modal .ivu-select-input{font-size:15px}.flow-modal .ivu-select-item{font-size:15px!important}",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a=o[1],c=o[2],l=o[3],d={id:e+":"+i,css:a,media:c,sourceMap:l};r[s]?r[s].parts.push(d):n.push(r[s]={id:s,parts:[d]})}return n}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("53157a8c",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".flow-modal-title[data-v-07e6c48d]{height:40px;background:#1171d0;width:100%;text-indent:1em;color:#fff;line-height:40px;font-size:15px}.content-1[data-v-07e6c48d]{padding:5px;display:flex;justify-content:space-between;align-items:center}",""])},function(e,t){e.exports=function(e,t,n,r,i,o){var s,a=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(s=e,a=e.default);var l="function"==typeof a?a.options:a;t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=d):r&&(d=r),d){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=d,l.render=function(e,t){return d.call(t),f(e,t)}):l.beforeCreate=f?[].concat(f,d):[d]}return{esModule:s,exports:a,options:l}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._t("func"),e._v(" "),n("Modal",{attrs:{"class-name":"flow-modal",width:580,closable:!1,"mask-closable":!1},model:{value:e.openStatus,callback:function(t){e.openStatus=t},expression:"openStatus"}},[n("div",{staticClass:"flow-modal-title",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("修改审核审批人员信息")]),e._v(" "),n("span",{staticStyle:{position:"absolute",right:"6px","font-size":"32px",cursor:"pointer"},on:{click:e.cancel}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})])]),e._v(" "),n("div",{staticStyle:{"min-height":"220px",padding:"10px"}},[n("table",{staticStyle:{width:"100%","border-collapse":"collapse","border-spacing":"0"}},[n("tr",[n("td",{staticStyle:{width:"85%",border:"solid 1px #dedede","border-bottom":"solid 1px #fff",background:"#f6f6f6"}},[n("div",{staticClass:"content-1",staticStyle:{height:"58px","align-items":"center"}},[n("h3",[e._v(e._s(e.nodeName))]),e._v(" "),n("span",{staticStyle:{"font-size":"15px"}},[n("Select",{staticStyle:{width:"350px"},attrs:{placeholder:"请选择审批单位",filterable:""},on:{"on-change":e.onSelectOrg},model:{value:e.orgId,callback:function(t){e.orgId=t},expression:"orgId"}},e._l(e.orgUserList,function(t){return n("Option",{key:t.orgId,attrs:{value:t.orgId}},[e._v(e._s(t.orgName))])}),1)],1),e._v(" "),n("Checkbox",{ref:"checkAllRef",attrs:{size:"large",indeterminate:e.indeterminate,value:e.checkAll},nativeOn:{click:function(t){return t.preventDefault(),e.handleCheckAll.apply(null,arguments)}}},[e._v("全选")])],1)])]),e._v(" "),n("tr",[n("td",{staticStyle:{border:"solid 1px #dedede",background:"#f6f6f6"}},[n("div",{staticStyle:{width:"90%",margin:"0 auto","line-height":"20px","min-height":"60px","align-items":"center",display:"flex"}},[n("CheckboxGroup",{staticStyle:{width:"100%"},on:{"on-change":e.checkAllGroupChange},model:{value:e.candidateUsers,callback:function(t){e.candidateUsers=t},expression:"candidateUsers"}},[e._l(e.userList,function(t){return[n("span",{staticStyle:{"min-width":"24%",display:"inline-block","margin-bottom":"10px","margin-top":"10px"}},[n("Checkbox",{key:t.userIdCard+"_"+t.orgCode,attrs:{size:"large",label:t.userIdCard+"_"+t.orgCode}},[e._v(e._s(t.userName)+" ")])],1)]})],2)],1)])])])]),e._v(" "),n("template",{slot:"footer"},[n("Button",{staticStyle:{width:"90px",height:"36px","font-size":"15px"},on:{click:e.cancel}},[e._v("取  消")]),e._v(" "),n("Button",{staticStyle:{width:"90px",height:"36px","font-size":"15px"},attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("确  认")])],1)],2)],2)},i=[],o={render:r,staticRenderFns:i};t.a=o}])});
983
+ //# sourceMappingURL=sd-modify-approve-user.js.map
984
+
985
+ /***/ }),
986
+ /* 10 */
987
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
988
+
989
+ "use strict";
990
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__data__ = __webpack_require__(11);
991
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
992
+
993
+ /* 审批轨迹相关方法 */
994
+
995
+
996
+ /* harmony default export */ __webpack_exports__["a"] = ({
997
+ mixins: [__WEBPACK_IMPORTED_MODULE_0__data__["a" /* default */]],
998
+ methods: {
999
+ // 获取流程轨迹
1000
+ getApprovalTrack: function getApprovalTrack() {
1001
+ var _this = this;
1002
+
1003
+ this.$store.dispatch('postRequest', {
1004
+ url: 'bsp-bpm/bpm/approveProcess/approveTrack',
1005
+ params: { actInstId: this.actInstId }
1006
+ }).then(function (resp) {
1007
+ if (resp.success) {
1008
+ if (!resp.data) return;
1009
+ resp.data.map(function (item) {
1010
+ if (item.createTime) {
1011
+ if (item.endTime) {
1012
+ item.taskStatus = '2';
1013
+ } else {
1014
+ item.taskStatus = '1';
1015
+ }
1016
+ } else {
1017
+ item.taskStatus = '0';
1018
+ }
1019
+ });
1020
+ _this.trackArr = resp.data;
1021
+ } else {
1022
+ _this.trackArr = [];
1023
+ }
1024
+ });
1025
+ },
1026
+
1027
+ // 撤回流程
1028
+ revoke: function revoke(taskId, preIsBeginTask) {
1029
+ var _this2 = this;
1030
+
1031
+ this.$Modal.confirm({
1032
+ title: '是否确认撤回?',
1033
+ // loading: true,
1034
+ onOk: function () {
1035
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
1036
+ return regeneratorRuntime.wrap(function _callee$(_context) {
1037
+ while (1) {
1038
+ switch (_context.prev = _context.next) {
1039
+ case 0:
1040
+ _this2.loading = true;
1041
+ _this2.$store.dispatch('postRequest', {
1042
+ url: 'bsp-bpm/bpm/approveProcess/revokeProcess',
1043
+ params: { actInstId: _this2.actInstId, taskId: taskId, preIsBeginTask: preIsBeginTask }
1044
+ }).then(function (resp) {
1045
+ if (resp.success) {
1046
+ if (_this2.revokeCallback) {
1047
+ _this2.revokeCallback(resp).then(function (data) {
1048
+ _this2.loading = false;
1049
+ if (data.success) {
1050
+ // window.location.reload()
1051
+ _this2.getApprovalTrack();
1052
+ }
1053
+ });
1054
+ } else {
1055
+ _this2.loading = false;
1056
+ _this2.$Modal.success({
1057
+ title: '温馨提示',
1058
+ content: '操作成功',
1059
+ onOk: function onOk() {
1060
+ // window.location.reload()
1061
+ _this2.getApprovalTrack();
1062
+ }
1063
+ });
1064
+ }
1065
+ }
1066
+ });
1067
+
1068
+ case 2:
1069
+ case 'end':
1070
+ return _context.stop();
1071
+ }
1072
+ }
1073
+ }, _callee, _this2);
1074
+ }));
1075
+
1076
+ return function onOk() {
1077
+ return _ref.apply(this, arguments);
1078
+ };
1079
+ }()
1080
+ });
1081
+ }
1082
+ }
1083
+ });
1084
+
1085
+ /***/ }),
1086
+ /* 11 */
1087
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1088
+
1089
+ "use strict";
1090
+
1091
+ /* harmony default export */ __webpack_exports__["a"] = ({
1092
+ props: {
1093
+ // 流程实例ID
1094
+ actInstId: {
1095
+ type: String
1096
+ },
1097
+ // 是否显示撤回按钮
1098
+ showRevokeBtn: {
1099
+ type: Boolean,
1100
+ default: true
1101
+ },
1102
+ // 是否显示修改审批人按钮
1103
+ showModifyBtn: {
1104
+ type: Boolean,
1105
+ default: true
1106
+ },
1107
+ modifyBtnText: {
1108
+ type: String,
1109
+ default: '修改审批人'
1110
+ },
1111
+ extraOrgId: {
1112
+ type: String,
1113
+ default: ''
1114
+ },
1115
+ extraRegId: {
1116
+ type: String,
1117
+ default: ''
1118
+ },
1119
+ extraCityId: {
1120
+ type: String,
1121
+ default: ''
1122
+ },
1123
+ revokeCallback: {
1124
+ type: Function,
1125
+ default: null
1126
+ },
1127
+ modifyUserCallback: {
1128
+ type: Function,
1129
+ default: null
1130
+ }
1131
+ },
1132
+ data: function data() {
1133
+ return {
1134
+ trackArr: [],
1135
+ loading: false
1136
+ };
1137
+ }
1138
+ });
1139
+
1140
+ /***/ }),
1141
+ /* 12 */
1142
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1143
+
1144
+ "use strict";
1145
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"history-audit"},[_c('Timeline',[_vm._l((_vm.trackArr),function(item){return [(!item.children)?_c('TimelineItem',{key:item.id,staticClass:"line-gray"},[(item.taskStatus == 2)?_c('Icon',{attrs:{"slot":"dot","type":"md-checkmark-circle","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(item.taskStatus == 1)?_c('Icon',{attrs:{"slot":"dot","type":"md-radio-button-off","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(item.taskStatus == 0)?_c('Icon',{attrs:{"slot":"dot","type":"ios-radio-button-off","size":"24","color":"#dae1ec"},slot:"dot"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"oper-container"},[_c('p',{staticClass:"task-container"},[_c('span',{staticClass:"task-title"},[_vm._v(_vm._s(item.taskName))]),_vm._v(" "),_c('span',[(item.isApprove == 1)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 2)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 3)?[_c('span',{staticClass:"warning"},[_vm._v("退回")])]:_vm._e(),_vm._v(" "),(item.isApprove == 4)?[_c('span',{staticClass:"primary"},[_vm._v("委派")])]:_vm._e(),_vm._v(" "),(item.isApprove == 5)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 6)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"task-oper"},[(item.taskStatus == 1)?[(_vm.showModifyBtn)?_c('modify-approve-user',{ref:"modifyApproveUser",refInFor:true,attrs:{"actInstId":_vm.actInstId,"complete":_vm.callbackSuccess,"extraOrgId":_vm.extraOrgId,"extraRegId":_vm.extraRegId,"extraCityId":_vm.extraCityId,"error":_vm.testErr}},[_c('Button',{staticClass:"slot-button",attrs:{"slot":"func","size":"small","type":"primary"},slot:"func"},[_vm._v(_vm._s(_vm.modifyBtnText))])],1):_vm._e()]:_vm._e(),_vm._v(" "),(item.revokeNodeId && _vm.showRevokeBtn)?_c('Button',{staticClass:"back-button",staticStyle:{"margin-left":"5px"},attrs:{"type":"error","size":"small","loading":_vm.loading},on:{"click":function($event){return _vm.revoke(item.preTaskId,item.preIsBeginTask)}}},[_vm._v("撤回")]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"content"},[(item.isApprove)?[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","content":item.executeUserName,"placement":"top"}},[_c('span',[_vm._v(_vm._s(item.executeUserName))])])],1)],1)],1),_vm._v(" "),(item.approvalContent)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理意见:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","placement":"top","theme":"light","content":item.approvalContent}},[_c('span',[_vm._v(_vm._s(item.approvalContent))])])],1)],1)],1):_vm._e(),_vm._v(" "),_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理时间:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(item.endTime)))])])],1)],1)]:[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理状态:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[(item.taskStatus == 1)?[_c('span',[_vm._v("处理中")])]:_vm._e(),_vm._v(" "),(item.taskStatus == 0)?[_c('span',[_vm._v("未处理")])]:_vm._e()],2)],1)],1),_vm._v(" "),(item.nodeUser)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[[_c('Tooltip',{attrs:{"max-width":"400","content":item.nodeUser,"placement":"top"}},[_c('span',[_vm._v(_vm._s(item.nodeUser))])])]],2)],1)],1):_vm._e()]],2)],1):_c('TimelineItem',{key:item.parentNodeId,staticClass:"line-gray"},[_c('div',{staticClass:"task-container",staticStyle:{"display":"flex","z-index":"999","position":"relative"}},_vm._l((item.children),function(ele){return _c('span',{key:ele.taskId,class:['task-title',ele.active?'task-title-active':''],staticStyle:{"cursor":"pointer","margin-right":"16px"},attrs:{"label":ele.taskName,"name":ele.taskId},on:{"click":function($event){return _vm.changeTab(ele)}}},[_vm._v("\n "+_vm._s(ele.taskName)+"\n ")])}),0),_vm._v(" "),_c('div',[_c('div',{staticStyle:{"display":"flex","margin-top":"-40px"}},_vm._l((item.children),function(ele){return _c('div',{key:ele.taskId,attrs:{"label":ele.taskName,"name":ele.taskId}},[(ele.active)?_c('div',[(ele.taskStatus == 2)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"md-checkmark-circle","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(ele.taskStatus == 1)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"md-radio-button-off","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(ele.taskStatus == 0)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"ios-radio-button-off","size":"24","color":"#dae1ec"},slot:"dot"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"oper-container"},[_c('p',{staticClass:"task-container"},[_c('span',[(ele.isApprove == 1)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 2)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 3)?[_c('span',{staticClass:"warning"},[_vm._v("退回")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 4)?[_c('span',{staticClass:"primary"},[_vm._v("委派")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 5)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 6)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"task-oper"},[(ele.taskStatus == 1)?[(_vm.showModifyBtn)?_c('modify-approve-user',{ref:"modifyApproveUser",refInFor:true,attrs:{"actInstId":_vm.actInstId,"complete":_vm.callbackSuccess,"extraOrgId":_vm.extraOrgId,"extraRegId":_vm.extraRegId,"extraCityId":_vm.extraCityId,"error":_vm.testErr}},[_c('Button',{staticClass:"slot-button",attrs:{"slot":"func","size":"small","type":"primary"},slot:"func"},[_vm._v(_vm._s(_vm.modifyBtnText))])],1):_vm._e()]:_vm._e(),_vm._v(" "),(ele.revokeNodeId && _vm.showRevokeBtn)?_c('Button',{staticClass:"back-button",staticStyle:{"margin-left":"5px"},attrs:{"type":"error","size":"small","loading":_vm.loading},on:{"click":function($event){return _vm.revoke(ele.preTaskId,ele.preIsBeginTask)}}},[_vm._v("撤回")]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"content"},[(ele.isApprove)?[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","content":ele.executeUserName,"placement":"top"}},[_c('span',[_vm._v(_vm._s(ele.executeUserName))])])],1)],1)],1),_vm._v(" "),(ele.approvalContent)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理意见:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","placement":"top","theme":"light","content":ele.approvalContent}},[_c('span',[_vm._v(_vm._s(ele.approvalContent))])])],1)],1)],1):_vm._e(),_vm._v(" "),_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理时间:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(ele.endTime)))])])],1)],1)]:[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理状态:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[(ele.taskStatus == 1)?[_c('span',[_vm._v("处理中")])]:_vm._e(),_vm._v(" "),(ele.taskStatus == 0)?[_c('span',[_vm._v("未处理")])]:_vm._e()],2)],1)],1),_vm._v(" "),(ele.nodeUser)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[[_c('Tooltip',{attrs:{"max-width":"400","content":ele.nodeUser,"placement":"top"}},[_c('span',[_vm._v(_vm._s(ele.nodeUser))])])]],2)],1)],1):_vm._e()]],2)],1):_vm._e()])}),0)])])]})],2)],1)}
1146
+ var staticRenderFns = []
1147
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
1148
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
1149
+
1150
+ /***/ })
1151
+ /******/ ]);
1152
+ });
1153
+ //# sourceMappingURL=sd-general-history.js.map