@scenetechnology/cj_iview_table 0.0.17 → 0.0.18

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.
@@ -184,6 +184,26 @@ module.exports = getBuiltIn('document', 'documentElement');
184
184
  module.exports = {};
185
185
 
186
186
 
187
+ /***/ }),
188
+
189
+ /***/ 507:
190
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
191
+
192
+ "use strict";
193
+
194
+ var call = __webpack_require__(9565);
195
+
196
+ module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
197
+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
198
+ var next = record.next;
199
+ var step, result;
200
+ while (!(step = call(next, iterator)).done) {
201
+ result = fn(step.value);
202
+ if (result !== undefined) return result;
203
+ }
204
+ };
205
+
206
+
187
207
  /***/ }),
188
208
 
189
209
  /***/ 616:
@@ -440,6 +460,24 @@ var uncurryThis = __webpack_require__(9504);
440
460
  module.exports = uncurryThis({}.isPrototypeOf);
441
461
 
442
462
 
463
+ /***/ }),
464
+
465
+ /***/ 1698:
466
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
467
+
468
+ "use strict";
469
+
470
+ var $ = __webpack_require__(6518);
471
+ var union = __webpack_require__(4204);
472
+ var setMethodAcceptSetLike = __webpack_require__(4916);
473
+
474
+ // `Set.prototype.union` method
475
+ // https://tc39.es/ecma262/#sec-set.prototype.union
476
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
477
+ union: union
478
+ });
479
+
480
+
443
481
  /***/ }),
444
482
 
445
483
  /***/ 1701:
@@ -666,6 +704,28 @@ module.exports = Object.create || function create(O, Properties) {
666
704
  };
667
705
 
668
706
 
707
+ /***/ }),
708
+
709
+ /***/ 2475:
710
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
711
+
712
+ "use strict";
713
+
714
+ var $ = __webpack_require__(6518);
715
+ var isSupersetOf = __webpack_require__(8527);
716
+ var setMethodAcceptSetLike = __webpack_require__(4916);
717
+
718
+ var INCORRECT = !setMethodAcceptSetLike('isSupersetOf', function (result) {
719
+ return !result;
720
+ });
721
+
722
+ // `Set.prototype.isSupersetOf` method
723
+ // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
724
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
725
+ isSupersetOf: isSupersetOf
726
+ });
727
+
728
+
669
729
  /***/ }),
670
730
 
671
731
  /***/ 2489:
@@ -18137,6 +18197,40 @@ module.exports = function (key) {
18137
18197
  };
18138
18198
 
18139
18199
 
18200
+ /***/ }),
18201
+
18202
+ /***/ 3440:
18203
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18204
+
18205
+ "use strict";
18206
+
18207
+ var aSet = __webpack_require__(7080);
18208
+ var SetHelpers = __webpack_require__(4402);
18209
+ var clone = __webpack_require__(9286);
18210
+ var size = __webpack_require__(5170);
18211
+ var getSetRecord = __webpack_require__(3789);
18212
+ var iterateSet = __webpack_require__(8469);
18213
+ var iterateSimple = __webpack_require__(507);
18214
+
18215
+ var has = SetHelpers.has;
18216
+ var remove = SetHelpers.remove;
18217
+
18218
+ // `Set.prototype.difference` method
18219
+ // https://github.com/tc39/proposal-set-methods
18220
+ module.exports = function difference(other) {
18221
+ var O = aSet(this);
18222
+ var otherRec = getSetRecord(other);
18223
+ var result = clone(O);
18224
+ if (size(O) <= otherRec.size) iterateSet(O, function (e) {
18225
+ if (otherRec.includes(e)) remove(result, e);
18226
+ });
18227
+ else iterateSimple(otherRec.getIterator(), function (e) {
18228
+ if (has(O, e)) remove(result, e);
18229
+ });
18230
+ return result;
18231
+ };
18232
+
18233
+
18140
18234
  /***/ }),
18141
18235
 
18142
18236
  /***/ 3579:
@@ -18165,6 +18259,37 @@ $({ target: 'Iterator', proto: true, real: true }, {
18165
18259
  });
18166
18260
 
18167
18261
 
18262
+ /***/ }),
18263
+
18264
+ /***/ 3650:
18265
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18266
+
18267
+ "use strict";
18268
+
18269
+ var aSet = __webpack_require__(7080);
18270
+ var SetHelpers = __webpack_require__(4402);
18271
+ var clone = __webpack_require__(9286);
18272
+ var getSetRecord = __webpack_require__(3789);
18273
+ var iterateSimple = __webpack_require__(507);
18274
+
18275
+ var add = SetHelpers.add;
18276
+ var has = SetHelpers.has;
18277
+ var remove = SetHelpers.remove;
18278
+
18279
+ // `Set.prototype.symmetricDifference` method
18280
+ // https://github.com/tc39/proposal-set-methods
18281
+ module.exports = function symmetricDifference(other) {
18282
+ var O = aSet(this);
18283
+ var keysIter = getSetRecord(other).getIterator();
18284
+ var result = clone(O);
18285
+ iterateSimple(keysIter, function (e) {
18286
+ if (has(O, e)) remove(result, e);
18287
+ else add(result, e);
18288
+ });
18289
+ return result;
18290
+ };
18291
+
18292
+
18168
18293
  /***/ }),
18169
18294
 
18170
18295
  /***/ 3706:
@@ -18215,6 +18340,100 @@ module.exports = !fails(function () {
18215
18340
  });
18216
18341
 
18217
18342
 
18343
+ /***/ }),
18344
+
18345
+ /***/ 3789:
18346
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18347
+
18348
+ "use strict";
18349
+
18350
+ var aCallable = __webpack_require__(9306);
18351
+ var anObject = __webpack_require__(8551);
18352
+ var call = __webpack_require__(9565);
18353
+ var toIntegerOrInfinity = __webpack_require__(1291);
18354
+ var getIteratorDirect = __webpack_require__(1767);
18355
+
18356
+ var INVALID_SIZE = 'Invalid size';
18357
+ var $RangeError = RangeError;
18358
+ var $TypeError = TypeError;
18359
+ var max = Math.max;
18360
+
18361
+ var SetRecord = function (set, intSize) {
18362
+ this.set = set;
18363
+ this.size = max(intSize, 0);
18364
+ this.has = aCallable(set.has);
18365
+ this.keys = aCallable(set.keys);
18366
+ };
18367
+
18368
+ SetRecord.prototype = {
18369
+ getIterator: function () {
18370
+ return getIteratorDirect(anObject(call(this.keys, this.set)));
18371
+ },
18372
+ includes: function (it) {
18373
+ return call(this.has, this.set, it);
18374
+ }
18375
+ };
18376
+
18377
+ // `GetSetRecord` abstract operation
18378
+ // https://tc39.es/proposal-set-methods/#sec-getsetrecord
18379
+ module.exports = function (obj) {
18380
+ anObject(obj);
18381
+ var numSize = +obj.size;
18382
+ // NOTE: If size is undefined, then numSize will be NaN
18383
+ // eslint-disable-next-line no-self-compare -- NaN check
18384
+ if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
18385
+ var intSize = toIntegerOrInfinity(numSize);
18386
+ if (intSize < 0) throw new $RangeError(INVALID_SIZE);
18387
+ return new SetRecord(obj, intSize);
18388
+ };
18389
+
18390
+
18391
+ /***/ }),
18392
+
18393
+ /***/ 3838:
18394
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18395
+
18396
+ "use strict";
18397
+
18398
+ var aSet = __webpack_require__(7080);
18399
+ var size = __webpack_require__(5170);
18400
+ var iterate = __webpack_require__(8469);
18401
+ var getSetRecord = __webpack_require__(3789);
18402
+
18403
+ // `Set.prototype.isSubsetOf` method
18404
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
18405
+ module.exports = function isSubsetOf(other) {
18406
+ var O = aSet(this);
18407
+ var otherRec = getSetRecord(other);
18408
+ if (size(O) > otherRec.size) return false;
18409
+ return iterate(O, function (e) {
18410
+ if (!otherRec.includes(e)) return false;
18411
+ }, true) !== false;
18412
+ };
18413
+
18414
+
18415
+ /***/ }),
18416
+
18417
+ /***/ 3853:
18418
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
18419
+
18420
+ "use strict";
18421
+
18422
+ var $ = __webpack_require__(6518);
18423
+ var isDisjointFrom = __webpack_require__(4449);
18424
+ var setMethodAcceptSetLike = __webpack_require__(4916);
18425
+
18426
+ var INCORRECT = !setMethodAcceptSetLike('isDisjointFrom', function (result) {
18427
+ return !result;
18428
+ });
18429
+
18430
+ // `Set.prototype.isDisjointFrom` method
18431
+ // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
18432
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
18433
+ isDisjointFrom: isDisjointFrom
18434
+ });
18435
+
18436
+
18218
18437
  /***/ }),
18219
18438
 
18220
18439
  /***/ 4055:
@@ -18298,6 +18517,32 @@ module.exports = function (it) {
18298
18517
  };
18299
18518
 
18300
18519
 
18520
+ /***/ }),
18521
+
18522
+ /***/ 4204:
18523
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18524
+
18525
+ "use strict";
18526
+
18527
+ var aSet = __webpack_require__(7080);
18528
+ var add = (__webpack_require__(4402).add);
18529
+ var clone = __webpack_require__(9286);
18530
+ var getSetRecord = __webpack_require__(3789);
18531
+ var iterateSimple = __webpack_require__(507);
18532
+
18533
+ // `Set.prototype.union` method
18534
+ // https://github.com/tc39/proposal-set-methods
18535
+ module.exports = function union(other) {
18536
+ var O = aSet(this);
18537
+ var keysIter = getSetRecord(other).getIterator();
18538
+ var result = clone(O);
18539
+ iterateSimple(keysIter, function (it) {
18540
+ add(result, it);
18541
+ });
18542
+ return result;
18543
+ };
18544
+
18545
+
18301
18546
  /***/ }),
18302
18547
 
18303
18548
  /***/ 4209:
@@ -18358,6 +18603,58 @@ module.exports = Array.isArray || function isArray(argument) {
18358
18603
  };
18359
18604
 
18360
18605
 
18606
+ /***/ }),
18607
+
18608
+ /***/ 4402:
18609
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18610
+
18611
+ "use strict";
18612
+
18613
+ var uncurryThis = __webpack_require__(9504);
18614
+
18615
+ // eslint-disable-next-line es/no-set -- safe
18616
+ var SetPrototype = Set.prototype;
18617
+
18618
+ module.exports = {
18619
+ // eslint-disable-next-line es/no-set -- safe
18620
+ Set: Set,
18621
+ add: uncurryThis(SetPrototype.add),
18622
+ has: uncurryThis(SetPrototype.has),
18623
+ remove: uncurryThis(SetPrototype['delete']),
18624
+ proto: SetPrototype
18625
+ };
18626
+
18627
+
18628
+ /***/ }),
18629
+
18630
+ /***/ 4449:
18631
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18632
+
18633
+ "use strict";
18634
+
18635
+ var aSet = __webpack_require__(7080);
18636
+ var has = (__webpack_require__(4402).has);
18637
+ var size = __webpack_require__(5170);
18638
+ var getSetRecord = __webpack_require__(3789);
18639
+ var iterateSet = __webpack_require__(8469);
18640
+ var iterateSimple = __webpack_require__(507);
18641
+ var iteratorClose = __webpack_require__(9539);
18642
+
18643
+ // `Set.prototype.isDisjointFrom` method
18644
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
18645
+ module.exports = function isDisjointFrom(other) {
18646
+ var O = aSet(this);
18647
+ var otherRec = getSetRecord(other);
18648
+ if (size(O) <= otherRec.size) return iterateSet(O, function (e) {
18649
+ if (otherRec.includes(e)) return false;
18650
+ }, true) !== false;
18651
+ var iterator = otherRec.getIterator();
18652
+ return iterateSimple(iterator, function (e) {
18653
+ if (has(O, e)) return iteratorClose(iterator, 'normal', false);
18654
+ }) !== false;
18655
+ };
18656
+
18657
+
18361
18658
  /***/ }),
18362
18659
 
18363
18660
  /***/ 4495:
@@ -18533,6 +18830,90 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P
18533
18830
  };
18534
18831
 
18535
18832
 
18833
+ /***/ }),
18834
+
18835
+ /***/ 4916:
18836
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18837
+
18838
+ "use strict";
18839
+
18840
+ var getBuiltIn = __webpack_require__(7751);
18841
+
18842
+ var createSetLike = function (size) {
18843
+ return {
18844
+ size: size,
18845
+ has: function () {
18846
+ return false;
18847
+ },
18848
+ keys: function () {
18849
+ return {
18850
+ next: function () {
18851
+ return { done: true };
18852
+ }
18853
+ };
18854
+ }
18855
+ };
18856
+ };
18857
+
18858
+ var createSetLikeWithInfinitySize = function (size) {
18859
+ return {
18860
+ size: size,
18861
+ has: function () {
18862
+ return true;
18863
+ },
18864
+ keys: function () {
18865
+ throw new Error('e');
18866
+ }
18867
+ };
18868
+ };
18869
+
18870
+ module.exports = function (name, callback) {
18871
+ var Set = getBuiltIn('Set');
18872
+ try {
18873
+ new Set()[name](createSetLike(0));
18874
+ try {
18875
+ // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
18876
+ // https://github.com/tc39/proposal-set-methods/pull/88
18877
+ new Set()[name](createSetLike(-1));
18878
+ return false;
18879
+ } catch (error2) {
18880
+ if (!callback) return true;
18881
+ // early V8 implementation bug
18882
+ // https://issues.chromium.org/issues/351332634
18883
+ try {
18884
+ new Set()[name](createSetLikeWithInfinitySize(-Infinity));
18885
+ return false;
18886
+ } catch (error) {
18887
+ var set = new Set();
18888
+ set.add(1);
18889
+ set.add(2);
18890
+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
18891
+ }
18892
+ }
18893
+ } catch (error) {
18894
+ return false;
18895
+ }
18896
+ };
18897
+
18898
+
18899
+ /***/ }),
18900
+
18901
+ /***/ 5024:
18902
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
18903
+
18904
+ "use strict";
18905
+
18906
+ var $ = __webpack_require__(6518);
18907
+ var symmetricDifference = __webpack_require__(3650);
18908
+ var setMethodAcceptSetLike = __webpack_require__(4916);
18909
+
18910
+ // `Set.prototype.symmetricDifference` method
18911
+ // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
18912
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, {
18913
+ symmetricDifference: symmetricDifference
18914
+ });
18915
+
18916
+
18536
18917
  /***/ }),
18537
18918
 
18538
18919
  /***/ 5031:
@@ -18556,6 +18937,21 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
18556
18937
  };
18557
18938
 
18558
18939
 
18940
+ /***/ }),
18941
+
18942
+ /***/ 5170:
18943
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18944
+
18945
+ "use strict";
18946
+
18947
+ var uncurryThisAccessor = __webpack_require__(6706);
18948
+ var SetHelpers = __webpack_require__(4402);
18949
+
18950
+ module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) {
18951
+ return set.size;
18952
+ };
18953
+
18954
+
18559
18955
  /***/ }),
18560
18956
 
18561
18957
  /***/ 5397:
@@ -18607,6 +19003,28 @@ module.exports = function (key, value) {
18607
19003
  };
18608
19004
 
18609
19005
 
19006
+ /***/ }),
19007
+
19008
+ /***/ 5876:
19009
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19010
+
19011
+ "use strict";
19012
+
19013
+ var $ = __webpack_require__(6518);
19014
+ var isSubsetOf = __webpack_require__(3838);
19015
+ var setMethodAcceptSetLike = __webpack_require__(4916);
19016
+
19017
+ var INCORRECT = !setMethodAcceptSetLike('isSubsetOf', function (result) {
19018
+ return result;
19019
+ });
19020
+
19021
+ // `Set.prototype.isSubsetOf` method
19022
+ // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
19023
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
19024
+ isSubsetOf: isSubsetOf
19025
+ });
19026
+
19027
+
18610
19028
  /***/ }),
18611
19029
 
18612
19030
  /***/ 5917:
@@ -18837,6 +19255,24 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
18837
19255
  };
18838
19256
 
18839
19257
 
19258
+ /***/ }),
19259
+
19260
+ /***/ 6706:
19261
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19262
+
19263
+ "use strict";
19264
+
19265
+ var uncurryThis = __webpack_require__(9504);
19266
+ var aCallable = __webpack_require__(9306);
19267
+
19268
+ module.exports = function (object, key, method) {
19269
+ try {
19270
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
19271
+ return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
19272
+ } catch (error) { /* empty */ }
19273
+ };
19274
+
19275
+
18840
19276
  /***/ }),
18841
19277
 
18842
19278
  /***/ 6801:
@@ -19048,6 +19484,22 @@ module.exports = fails(function () {
19048
19484
  } : $Object;
19049
19485
 
19050
19486
 
19487
+ /***/ }),
19488
+
19489
+ /***/ 7080:
19490
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19491
+
19492
+ "use strict";
19493
+
19494
+ var has = (__webpack_require__(4402).has);
19495
+
19496
+ // Perform ? RequireInternalSlot(M, [[SetData]])
19497
+ module.exports = function (it) {
19498
+ has(it);
19499
+ return it;
19500
+ };
19501
+
19502
+
19051
19503
  /***/ }),
19052
19504
 
19053
19505
  /***/ 7347:
@@ -19148,6 +19600,28 @@ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED,
19148
19600
  });
19149
19601
 
19150
19602
 
19603
+ /***/ }),
19604
+
19605
+ /***/ 7642:
19606
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19607
+
19608
+ "use strict";
19609
+
19610
+ var $ = __webpack_require__(6518);
19611
+ var difference = __webpack_require__(3440);
19612
+ var setMethodAcceptSetLike = __webpack_require__(4916);
19613
+
19614
+ var INCORRECT = !setMethodAcceptSetLike('difference', function (result) {
19615
+ return result.size === 0;
19616
+ });
19617
+
19618
+ // `Set.prototype.difference` method
19619
+ // https://tc39.es/ecma262/#sec-set.prototype.difference
19620
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
19621
+ difference: difference
19622
+ });
19623
+
19624
+
19151
19625
  /***/ }),
19152
19626
 
19153
19627
  /***/ 7657:
@@ -19268,6 +19742,32 @@ module.exports = function (namespace, method) {
19268
19742
  };
19269
19743
 
19270
19744
 
19745
+ /***/ }),
19746
+
19747
+ /***/ 8004:
19748
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19749
+
19750
+ "use strict";
19751
+
19752
+ var $ = __webpack_require__(6518);
19753
+ var fails = __webpack_require__(9039);
19754
+ var intersection = __webpack_require__(8750);
19755
+ var setMethodAcceptSetLike = __webpack_require__(4916);
19756
+
19757
+ var INCORRECT = !setMethodAcceptSetLike('intersection', function (result) {
19758
+ return result.size === 2 && result.has(1) && result.has(2);
19759
+ }) || fails(function () {
19760
+ // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
19761
+ return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
19762
+ });
19763
+
19764
+ // `Set.prototype.intersection` method
19765
+ // https://tc39.es/ecma262/#sec-set.prototype.intersection
19766
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
19767
+ intersection: intersection
19768
+ });
19769
+
19770
+
19271
19771
  /***/ }),
19272
19772
 
19273
19773
  /***/ 8014:
@@ -19387,6 +19887,28 @@ module.exports = function (name) {
19387
19887
  };
19388
19888
 
19389
19889
 
19890
+ /***/ }),
19891
+
19892
+ /***/ 8469:
19893
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19894
+
19895
+ "use strict";
19896
+
19897
+ var uncurryThis = __webpack_require__(9504);
19898
+ var iterateSimple = __webpack_require__(507);
19899
+ var SetHelpers = __webpack_require__(4402);
19900
+
19901
+ var Set = SetHelpers.Set;
19902
+ var SetPrototype = SetHelpers.proto;
19903
+ var forEach = uncurryThis(SetPrototype.forEach);
19904
+ var keys = uncurryThis(SetPrototype.keys);
19905
+ var next = keys(new Set()).next;
19906
+
19907
+ module.exports = function (set, fn, interruptible) {
19908
+ return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
19909
+ };
19910
+
19911
+
19390
19912
  /***/ }),
19391
19913
 
19392
19914
  /***/ 8480:
@@ -19407,6 +19929,33 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
19407
19929
  };
19408
19930
 
19409
19931
 
19932
+ /***/ }),
19933
+
19934
+ /***/ 8527:
19935
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19936
+
19937
+ "use strict";
19938
+
19939
+ var aSet = __webpack_require__(7080);
19940
+ var has = (__webpack_require__(4402).has);
19941
+ var size = __webpack_require__(5170);
19942
+ var getSetRecord = __webpack_require__(3789);
19943
+ var iterateSimple = __webpack_require__(507);
19944
+ var iteratorClose = __webpack_require__(9539);
19945
+
19946
+ // `Set.prototype.isSupersetOf` method
19947
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
19948
+ module.exports = function isSupersetOf(other) {
19949
+ var O = aSet(this);
19950
+ var otherRec = getSetRecord(other);
19951
+ if (size(O) < otherRec.size) return false;
19952
+ var iterator = otherRec.getIterator();
19953
+ return iterateSimple(iterator, function (e) {
19954
+ if (!has(O, e)) return iteratorClose(iterator, 'normal', false);
19955
+ }) !== false;
19956
+ };
19957
+
19958
+
19410
19959
  /***/ }),
19411
19960
 
19412
19961
  /***/ 8551:
@@ -19481,6 +20030,45 @@ module.exports = [
19481
20030
  ];
19482
20031
 
19483
20032
 
20033
+ /***/ }),
20034
+
20035
+ /***/ 8750:
20036
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20037
+
20038
+ "use strict";
20039
+
20040
+ var aSet = __webpack_require__(7080);
20041
+ var SetHelpers = __webpack_require__(4402);
20042
+ var size = __webpack_require__(5170);
20043
+ var getSetRecord = __webpack_require__(3789);
20044
+ var iterateSet = __webpack_require__(8469);
20045
+ var iterateSimple = __webpack_require__(507);
20046
+
20047
+ var Set = SetHelpers.Set;
20048
+ var add = SetHelpers.add;
20049
+ var has = SetHelpers.has;
20050
+
20051
+ // `Set.prototype.intersection` method
20052
+ // https://github.com/tc39/proposal-set-methods
20053
+ module.exports = function intersection(other) {
20054
+ var O = aSet(this);
20055
+ var otherRec = getSetRecord(other);
20056
+ var result = new Set();
20057
+
20058
+ if (size(O) > otherRec.size) {
20059
+ iterateSimple(otherRec.getIterator(), function (e) {
20060
+ if (has(O, e)) add(result, e);
20061
+ });
20062
+ } else {
20063
+ iterateSet(O, function (e) {
20064
+ if (otherRec.includes(e)) add(result, e);
20065
+ });
20066
+ }
20067
+
20068
+ return result;
20069
+ };
20070
+
20071
+
19484
20072
  /***/ }),
19485
20073
 
19486
20074
  /***/ 8773:
@@ -19537,6 +20125,28 @@ module.exports = function (exec) {
19537
20125
  };
19538
20126
 
19539
20127
 
20128
+ /***/ }),
20129
+
20130
+ /***/ 9286:
20131
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20132
+
20133
+ "use strict";
20134
+
20135
+ var SetHelpers = __webpack_require__(4402);
20136
+ var iterate = __webpack_require__(8469);
20137
+
20138
+ var Set = SetHelpers.Set;
20139
+ var add = SetHelpers.add;
20140
+
20141
+ module.exports = function (set) {
20142
+ var result = new Set();
20143
+ iterate(set, function (it) {
20144
+ add(result, it);
20145
+ });
20146
+ return result;
20147
+ };
20148
+
20149
+
19540
20150
  /***/ }),
19541
20151
 
19542
20152
  /***/ 9297:
@@ -19969,7 +20579,7 @@ if (typeof window !== 'undefined') {
19969
20579
  // Indicate to webpack that this file can be concatenated
19970
20580
  /* harmony default export */ var setPublicPath = (null);
19971
20581
 
19972
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=32801b01&scoped=true
20582
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=2a98d2a4&scoped=true
19973
20583
  var render = function render() {
19974
20584
  var _vm = this,
19975
20585
  _c = _vm._self._c;
@@ -20029,7 +20639,50 @@ var render = function render() {
20029
20639
  "value": _vm.getStringValue(option)
20030
20640
  }
20031
20641
  }, [_vm._v(_vm._s(option.name || option.text || option.unit_name || option.label || option.month))]);
20032
- }), 1)] : _vm._e(), item.valueType === 'date' || item.valueType === 'daterange' || item.valueType === 'datetime' || item.valueType === 'datetimerange' || item.valueType == 'year' ? [_c('DatePicker', {
20642
+ }), 1)] : _vm._e(), item.valueType === 'person' ? [_c('Select', {
20643
+ staticClass: "personSelect",
20644
+ staticStyle: {
20645
+ "width": "100%"
20646
+ },
20647
+ attrs: {
20648
+ "transfer": "",
20649
+ "value": _vm.filterForm[_vm.formKey(item)] || item.defaultValue,
20650
+ "filterable": "",
20651
+ "clearable": !item.multiple,
20652
+ "multiple": item.multiple,
20653
+ "placeholder": `请选择${item.filterLable || item.title}`,
20654
+ "max-tag-count": 1
20655
+ },
20656
+ on: {
20657
+ "on-change": function ($event) {
20658
+ _vm.changeSelect($event, _vm.formKey(item), item);
20659
+ }
20660
+ }
20661
+ }, _vm._l(_vm.personList, function (option, indexOption) {
20662
+ return _c('Option', {
20663
+ key: indexOption,
20664
+ attrs: {
20665
+ "value": _vm.getStringValue(option),
20666
+ "label": option.name
20667
+ }
20668
+ }, [_vm._v(_vm._s(option.name || option.text || option.unit_name || option.label || option.month)), _c('span', {
20669
+ staticStyle: {
20670
+ "float": "right",
20671
+ "margin-right": "13px",
20672
+ "color": "#ccc"
20673
+ }
20674
+ }, [_vm._v(_vm._s(option.department_name) + _vm._s(option.department_name ? ' / ' : '') + _vm._s(option.department_item_name))])]);
20675
+ }), 1), _c('img', {
20676
+ staticClass: "person_icon",
20677
+ attrs: {
20678
+ "src": _vm.person_icon
20679
+ },
20680
+ on: {
20681
+ "click": function ($event) {
20682
+ return _vm.choosePerson(item);
20683
+ }
20684
+ }
20685
+ })] : _vm._e(), item.valueType === 'date' || item.valueType === 'daterange' || item.valueType === 'datetime' || item.valueType === 'datetimerange' || item.valueType == 'year' ? [_c('DatePicker', {
20033
20686
  ref: "element",
20034
20687
  refInFor: true,
20035
20688
  staticStyle: {
@@ -20348,7 +21001,17 @@ var render = function render() {
20348
21001
  attrs: {
20349
21002
  "viewList": _vm.viewList
20350
21003
  }
20351
- })], 2);
21004
+ }), _vm.initShow ? _c('org-picker', {
21005
+ ref: "orgPicker",
21006
+ attrs: {
21007
+ "type": "user",
21008
+ "multiple": true,
21009
+ "selected": _vm.all_names
21010
+ },
21011
+ on: {
21012
+ "ok": _vm.selected
21013
+ }
21014
+ }) : _vm._e()], 2);
20352
21015
  };
20353
21016
  var staticRenderFns = [];
20354
21017
 
@@ -20366,6 +21029,20 @@ var es_iterator_for_each = __webpack_require__(7588);
20366
21029
  var es_iterator_map = __webpack_require__(1701);
20367
21030
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
20368
21031
  var es_iterator_some = __webpack_require__(3579);
21032
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
21033
+ var es_set_difference_v2 = __webpack_require__(7642);
21034
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js
21035
+ var es_set_intersection_v2 = __webpack_require__(8004);
21036
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js
21037
+ var es_set_is_disjoint_from_v2 = __webpack_require__(3853);
21038
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js
21039
+ var es_set_is_subset_of_v2 = __webpack_require__(5876);
21040
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js
21041
+ var es_set_is_superset_of_v2 = __webpack_require__(2475);
21042
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js
21043
+ var es_set_symmetric_difference_v2 = __webpack_require__(5024);
21044
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
21045
+ var es_set_union_v2 = __webpack_require__(1698);
20369
21046
  ;// ./src/libs/util.js
20370
21047
  const getToken = () => {
20371
21048
  let token=''
@@ -20376,6 +21053,16 @@ const getToken = () => {
20376
21053
  }
20377
21054
  if (token) return token
20378
21055
  else return false
21056
+ }
21057
+ function getCjosToken(){
21058
+ let result
21059
+ if (localStorage.getItem('is_root') === 'true'||localStorage.getItem('is_root') === 'false'){
21060
+ result=encodeURIComponent(getToken())
21061
+ // console.log('999999',result)
21062
+ }else{
21063
+ result=''
21064
+ }
21065
+ return result
20379
21066
  }
20380
21067
  ;// ./node_modules/axios/lib/helpers/bind.js
20381
21068
 
@@ -24564,8 +25251,46 @@ const getUserQuery = (data) => {
24564
25251
  method: 'post'
24565
25252
  })
24566
25253
  }
24567
-
24568
-
25254
+ const indexPerson = (data) => {
25255
+ return api_request.request({
25256
+ url: config.baseUrl.simp+ 'Person/index',
25257
+ data,
25258
+ method: 'post'
25259
+ })
25260
+ }
25261
+
25262
+
25263
+ function getDepartmentOrganization (param) {
25264
+ return api_request.request({
25265
+ url: config.baseUrl.simp+ `Department/Organization`,
25266
+ method: 'get',
25267
+ params: param
25268
+ })
25269
+ }
25270
+
25271
+ function getDepartmentOrganizationRead (param) {
25272
+ return api_request.request({
25273
+ url: config.baseUrl.simp+ `Department/Organization_read`,
25274
+ method: 'get',
25275
+ params: param
25276
+ })
25277
+ }
25278
+
25279
+ function getDepartmentSearch (param) {
25280
+ return api_request.request({
25281
+ url: config.baseUrl.simp+ `Department/search`,
25282
+ method: 'get',
25283
+ params: param
25284
+ })
25285
+ }
25286
+
25287
+ function getPersonSearch (param) {
25288
+ return api_request.request({
25289
+ url: config.baseUrl.simp+ `Person/search`,
25290
+ method: 'get',
25291
+ params: param
25292
+ })
25293
+ }
24569
25294
  ;// ./src/assets/images/table_no_flod.png
24570
25295
  var table_no_flod_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAAXNSR0IArs4c6QAAAh1JREFUOE+dlMtu00AYhc9vKxvkBwDEEgFvgERXKRepkYBmWWCPEBIo8sRcCpIF5ZYZOxJ5gRYkWLAp3bULEAIkXgFYtzxAYwgLz5CJZqKpsTHprJzR78+fzxyHAKDb7c4BuJ7n+fM0Tb/ovf0sxthVACcbjcYt0gDG2CaAc+NnZES0wDn/OCuYMXYfwANz300LbgN4A8AfP2dIRK1Z4AXotu/7pyZgvcIwXCKilxaulFpIkuRTnXkYhveI6KGZ2yaiJuf8+xS8H3gRKqWcT9P0m2btAZu8LwF4UWfOGFsGsGJNXWgpuAS+q5RqubEUoDtSyqY1tdH9ZexkfpmI1oz5rmnL5/+BTo0ZYzfGAH0AK0IIXgUH8AqA7qpeO57nzfd6va/6RxzHB7Ise617DKBl67YB4LweUEotJ0ny2MIZY1cArBpzu10G3VBKnTaMaxNwp9M56vv+BwCHzZ13hRBPKuA/PM9ruqbD4fAtgDNmfjMIggvTjKMoOi6lfPcP+EUAbSJ6pHtqX78EuhjH8WjP4dXB3Y/FZLqulDprTfM8b/f7/V+ldTPw9wAOTQaI7nDOn84CrexxEQ7gthDimXP6rulWnueL1rS2x2XwIAgGWZbVQiuNnR6fICJ9oJNYAOj/gWPmutS01rgA15kfdHLeCoKgHcfxTzd797ryk3aHwjDU5hZeC62NwoVHUXREKTU3Go3WB4PB7ypTu/8HEL0+yS21nGMAAAAASUVORK5CYII=";
24571
25296
  ;// ./src/assets/images/table_flod.png
@@ -26203,6 +26928,730 @@ var view_edit_component = normalizeComponent(
26203
26928
  )
26204
26929
 
26205
26930
  /* harmony default export */ var view_edit = (view_edit_component.exports);
26931
+ ;// ./src/assets/images/person.png
26932
+ var person_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QzkyQkY4M0M2QjExRjA5MjY0OTFGMkQ1MDY4REQ0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA0QzkyQkY5M0M2QjExRjA5MjY0OTFGMkQ1MDY4REQ0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDRDOTJCRjYzQzZCMTFGMDkyNjQ5MUYyRDUwNjhERDQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDRDOTJCRjczQzZCMTFGMDkyNjQ5MUYyRDUwNjhERDQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7dfkw4AAAI7ElEQVR42uxdTW8U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";
26933
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/common/OrgPicker.vue?vue&type=template&id=2b17f40f&scoped=true
26934
+ var OrgPickervue_type_template_id_2b17f40f_scoped_true_render = function render() {
26935
+ var _vm = this,
26936
+ _c = _vm._self._c;
26937
+ return _c('Modal', {
26938
+ attrs: {
26939
+ "closeFree": "",
26940
+ "width": "616px",
26941
+ "title": _vm.title
26942
+ },
26943
+ on: {
26944
+ "on-ok": _vm.selectOk,
26945
+ "on-cancel": _vm.cancelModal
26946
+ },
26947
+ model: {
26948
+ value: _vm.visible,
26949
+ callback: function ($$v) {
26950
+ _vm.visible = $$v;
26951
+ },
26952
+ expression: "visible"
26953
+ }
26954
+ }, [_c('div', {
26955
+ staticClass: "picker"
26956
+ }, [_c('div', {
26957
+ staticClass: "candidate"
26958
+ }, [_c('Spin', {
26959
+ directives: [{
26960
+ name: "show",
26961
+ rawName: "v-show",
26962
+ value: _vm.loading,
26963
+ expression: "loading"
26964
+ }],
26965
+ attrs: {
26966
+ "fix": ""
26967
+ }
26968
+ }, [_c('Icon', {
26969
+ staticClass: "demo-spin-icon-load",
26970
+ attrs: {
26971
+ "type": "ios-loading",
26972
+ "size": "18"
26973
+ }
26974
+ }), _c('div', [_vm._v("Loading")])], 1), _c('div', {
26975
+ staticStyle: {
26976
+ "padding": "5px 10px"
26977
+ }
26978
+ }, [_c('Input', {
26979
+ staticStyle: {
26980
+ "width": "95%"
26981
+ },
26982
+ attrs: {
26983
+ "clearable": "",
26984
+ "placeholder": _vm.type == 'dept' ? '搜索部门' : '搜索人员',
26985
+ "icon": "md-search"
26986
+ },
26987
+ on: {
26988
+ "on-change": _vm.searchUser
26989
+ },
26990
+ model: {
26991
+ value: _vm.search,
26992
+ callback: function ($$v) {
26993
+ _vm.search = $$v;
26994
+ },
26995
+ expression: "search"
26996
+ }
26997
+ }), _c('div', {
26998
+ directives: [{
26999
+ name: "show",
27000
+ rawName: "v-show",
27001
+ value: !_vm.showUsers,
27002
+ expression: "!showUsers"
27003
+ }]
27004
+ }, [_c('ellipsis', {
27005
+ staticStyle: {
27006
+ "height": "22px",
27007
+ "color": "#8c8c8c",
27008
+ "padding": "5px 0 0",
27009
+ "font-size": "13px"
27010
+ },
27011
+ attrs: {
27012
+ "hoverTip": "",
27013
+ "row": 1,
27014
+ "content": _vm.deptStackStr
27015
+ }
27016
+ }, [_c('Icon', {
27017
+ staticStyle: {
27018
+ "vertical-align": "text-bottom"
27019
+ },
27020
+ attrs: {
27021
+ "slot": "pre",
27022
+ "type": "ios-home",
27023
+ "size": "18"
27024
+ },
27025
+ slot: "pre"
27026
+ })], 1), _c('div', {
27027
+ staticStyle: {
27028
+ "margin-top": "5px"
27029
+ }
27030
+ }, [_c('Checkbox', {
27031
+ attrs: {
27032
+ "disabled": !_vm.multiple
27033
+ },
27034
+ on: {
27035
+ "on-change": _vm.handleCheckAllChange
27036
+ },
27037
+ model: {
27038
+ value: _vm.checkAll,
27039
+ callback: function ($$v) {
27040
+ _vm.checkAll = $$v;
27041
+ },
27042
+ expression: "checkAll"
27043
+ }
27044
+ }, [_vm._v(_vm._s(_vm.type == 'user' && _vm.multiple ? '全选人员' : '全选'))]), _c('span', {
27045
+ directives: [{
27046
+ name: "show",
27047
+ rawName: "v-show",
27048
+ value: _vm.deptStack.length > 0,
27049
+ expression: "deptStack.length > 0"
27050
+ }],
27051
+ staticClass: "top-dept",
27052
+ on: {
27053
+ "click": _vm.beforeNode
27054
+ }
27055
+ }, [_vm._v("上一级")])], 1)], 1)], 1), _c('div', {
27056
+ staticClass: "org-items"
27057
+ }, [_c('div', {
27058
+ directives: [{
27059
+ name: "show",
27060
+ rawName: "v-show",
27061
+ value: _vm.orgs.length === 0,
27062
+ expression: "orgs.length === 0"
27063
+ }],
27064
+ staticClass: "msgCard",
27065
+ staticStyle: {
27066
+ "text-align": "center"
27067
+ }
27068
+ }, [_c('img', {
27069
+ staticStyle: {
27070
+ "width": "200px",
27071
+ "height": "200px",
27072
+ "margin": "0 auto"
27073
+ },
27074
+ attrs: {
27075
+ "src": _vm.kong_icon
27076
+ }
27077
+ })]), _vm._l(_vm.orgs, function (org, index) {
27078
+ return _c('div', {
27079
+ key: index,
27080
+ class: _vm.orgItemClass(org),
27081
+ on: {
27082
+ "click": function ($event) {
27083
+ return _vm.selectChange(org);
27084
+ }
27085
+ }
27086
+ }, [_c('Checkbox', {
27087
+ attrs: {
27088
+ "disabled": _vm.disableDept(org)
27089
+ },
27090
+ nativeOn: {
27091
+ "click": function ($event) {
27092
+ $event.preventDefault();
27093
+ return _vm.handleClick.apply(null, arguments);
27094
+ }
27095
+ },
27096
+ model: {
27097
+ value: org.selected,
27098
+ callback: function ($$v) {
27099
+ _vm.$set(org, "selected", $$v);
27100
+ },
27101
+ expression: "org.selected"
27102
+ }
27103
+ }), org.type === 'dept' ? _c('div', [_c('Icon', {
27104
+ attrs: {
27105
+ "type": "md-folder-open"
27106
+ }
27107
+ }), _c('span', {
27108
+ staticClass: "name overTetx",
27109
+ staticStyle: {
27110
+ "vertical-align": "bottom"
27111
+ },
27112
+ attrs: {
27113
+ "title": org.name
27114
+ }
27115
+ }, [_vm._v(_vm._s(org.name))]), _c('span', {
27116
+ class: `next-dept${org.selected ? '-disable' : ''}`,
27117
+ on: {
27118
+ "click": function ($event) {
27119
+ $event.stopPropagation();
27120
+ org.selected ? '' : _vm.nextNode(org);
27121
+ }
27122
+ }
27123
+ }, [_c('Icon', {
27124
+ attrs: {
27125
+ "type": "md-git-network"
27126
+ }
27127
+ }), _vm._v("下级 ")], 1)], 1) : org.type === 'user' ? _c('div', {
27128
+ staticStyle: {
27129
+ "display": "flex",
27130
+ "align-items": "center"
27131
+ }
27132
+ }, [_vm.isNotEmpty(org.avatar) ? _c('Avatar', {
27133
+ attrs: {
27134
+ "size": "large",
27135
+ "src": _vm.mapUrl + org.avatar
27136
+ }
27137
+ }) : _c('span', {
27138
+ staticClass: "avatar"
27139
+ }, [_vm._v(_vm._s(_vm.getShortName(org.name)))]), _c('span', {
27140
+ staticClass: "name"
27141
+ }, [_vm._v(_vm._s(org.name))])], 1) : _c('div', {
27142
+ staticStyle: {
27143
+ "display": "inline-block"
27144
+ }
27145
+ }, [_c('i', {
27146
+ staticClass: "iconfont icon-bumen"
27147
+ }), _c('span', {
27148
+ staticClass: "name"
27149
+ }, [_vm._v(_vm._s(org.name))])])], 1);
27150
+ })], 2)], 1), _c('div', {
27151
+ staticClass: "selected"
27152
+ }, [_c('div', {
27153
+ staticClass: "count"
27154
+ }, [_c('span', [_vm._v("已选 " + _vm._s(_vm.select.length) + " 项")]), _c('span', {
27155
+ on: {
27156
+ "click": _vm.clearSelected
27157
+ }
27158
+ }, [_vm._v("清空")])]), _c('div', {
27159
+ staticClass: "org-items",
27160
+ staticStyle: {
27161
+ "height": "350px"
27162
+ }
27163
+ }, [_c('div', {
27164
+ directives: [{
27165
+ name: "show",
27166
+ rawName: "v-show",
27167
+ value: _vm.select.length === 0,
27168
+ expression: "select.length === 0"
27169
+ }],
27170
+ staticClass: "msgCard",
27171
+ staticStyle: {
27172
+ "text-align": "center"
27173
+ }
27174
+ }, [_c('img', {
27175
+ staticStyle: {
27176
+ "width": "200px",
27177
+ "height": "200px",
27178
+ "margin": "0 auto"
27179
+ },
27180
+ attrs: {
27181
+ "src": _vm.kong_icon
27182
+ }
27183
+ })]), _vm._l(_vm.select, function (org, index) {
27184
+ return _c('div', {
27185
+ key: index,
27186
+ class: _vm.orgItemClass(org)
27187
+ }, [org.type === 'dept' ? _c('div', [_c('Icon', {
27188
+ attrs: {
27189
+ "type": "md-folder-open"
27190
+ }
27191
+ }), _c('span', {
27192
+ staticClass: "name",
27193
+ staticStyle: {
27194
+ "position": "static"
27195
+ }
27196
+ }, [_vm._v(_vm._s(org.name))])], 1) : org.type === 'user' ? _c('div', {
27197
+ staticStyle: {
27198
+ "display": "flex",
27199
+ "align-items": "center"
27200
+ }
27201
+ }, [_vm.isNotEmpty(org.avatar) ? _c('Avatar', {
27202
+ attrs: {
27203
+ "size": "large",
27204
+ "src": _vm.mapUrl + org.avatar
27205
+ }
27206
+ }) : _c('span', {
27207
+ staticClass: "avatar"
27208
+ }, [_vm._v(_vm._s(_vm.getShortName(org.name)))]), _c('span', {
27209
+ staticClass: "name"
27210
+ }, [_vm._v(_vm._s(org.name))])], 1) : _c('div', [_c('i', {
27211
+ staticClass: "iconfont icon-bumen"
27212
+ }), _c('span', {
27213
+ staticClass: "name"
27214
+ }, [_vm._v(_vm._s(org.name))])]), _c('Icon', {
27215
+ staticClass: "closeStyle",
27216
+ attrs: {
27217
+ "type": "md-close"
27218
+ },
27219
+ on: {
27220
+ "click": function ($event) {
27221
+ return _vm.noSelected(index);
27222
+ }
27223
+ }
27224
+ })], 1);
27225
+ })], 2)])])]);
27226
+ };
27227
+ var OrgPickervue_type_template_id_2b17f40f_scoped_true_staticRenderFns = [];
27228
+
27229
+ ;// ./src/assets/images/kong_icon.png
27230
+ var kong_icon_namespaceObject = __webpack_require__.p + "img/kong_icon.459aaab5.png";
27231
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/common/OrgPicker.vue?vue&type=script&lang=js
27232
+
27233
+
27234
+
27235
+
27236
+
27237
+
27238
+
27239
+
27240
+
27241
+
27242
+
27243
+
27244
+
27245
+
27246
+ /* harmony default export */ var OrgPickervue_type_script_lang_js = ({
27247
+ name: 'OrgPicker',
27248
+ components: {},
27249
+ props: {
27250
+ title: {
27251
+ default: '请选择',
27252
+ type: String
27253
+ },
27254
+ type: {
27255
+ default: 'org',
27256
+ // org选择部门/人员 user-选人 dept-选部门 role-选角色
27257
+ type: String
27258
+ },
27259
+ multiple: {
27260
+ // 是否多选
27261
+ default: false,
27262
+ type: Boolean
27263
+ },
27264
+ selected: {
27265
+ default: () => {
27266
+ return [];
27267
+ },
27268
+ type: Array
27269
+ }
27270
+ },
27271
+ data() {
27272
+ return {
27273
+ kong_icon: kong_icon_namespaceObject,
27274
+ mapUrl: config.mapUrl,
27275
+ visible: false,
27276
+ loading: false,
27277
+ checkAll: false,
27278
+ nowDeptId: null,
27279
+ isIndeterminate: false,
27280
+ searchUsers: [],
27281
+ nodes: [],
27282
+ select: [],
27283
+ search: '',
27284
+ deptStack: [],
27285
+ curNode: null,
27286
+ initShow: false
27287
+ };
27288
+ },
27289
+ computed: {
27290
+ deptStackStr() {
27291
+ return String(this.deptStack.map(v => v.name)).replaceAll(',', ' > ');
27292
+ },
27293
+ orgs() {
27294
+ return !this.search || this.search.trim() === '' ? this.nodes : this.searchUsers;
27295
+ },
27296
+ showUsers() {
27297
+ return this.search || this.search.trim() !== '';
27298
+ }
27299
+ },
27300
+ methods: {
27301
+ isNotEmpty(obj) {
27302
+ return obj !== undefined && obj !== null && obj !== '' && obj !== 'null';
27303
+ },
27304
+ show() {
27305
+ this.visible = true;
27306
+ this.init();
27307
+ this.getOrgList();
27308
+ },
27309
+ orgItemClass(org) {
27310
+ return {
27311
+ 'org-item': true,
27312
+ 'org-dept-item': org.type === 'dept',
27313
+ 'org-user-item': org.type === 'user',
27314
+ 'org-role-item': org.type === 'role'
27315
+ };
27316
+ },
27317
+ disableDept(node) {
27318
+ return this.type === 'user' && node.type === 'dept';
27319
+ },
27320
+ getOrgList(deptId = 0) {
27321
+ this.loading = true;
27322
+ let data = {
27323
+ id: this.curNode ? this.curNode.id : 0,
27324
+ // simp_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJhZG1pbiIsInB3ZCI6IjJkZjE0OTRiMTY4Mzc1ZDNmYjcwNGZjYjAxMTEwM2U2In0.to8D-j_i5G5R4mbf4vnqdfiHOKMTE8T2ACnoBYN4LAU",
27325
+ // project_id: '3',
27326
+ simp_token: getToken(),
27327
+ cjos_token: getCjosToken(),
27328
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
27329
+ page: 1,
27330
+ rows: 99999
27331
+ };
27332
+ if (!this.curNode) {
27333
+ getDepartmentOrganization(data).then(res => {
27334
+ if (res.data.code == 200) {
27335
+ if (this.type == 'dept') {
27336
+ if (Array.isArray(res.data.data)) {
27337
+ res.data.data = res.data.data.filter((item, index) => {
27338
+ if (item.type == 'dept') {
27339
+ return item;
27340
+ }
27341
+ });
27342
+ this.nodes = res.data.data;
27343
+ }
27344
+ } else {
27345
+ if (Array.isArray(res.data.data)) {
27346
+ this.nodes = res.data.data;
27347
+ }
27348
+ }
27349
+ this.selectToLeft();
27350
+ this.loading = false;
27351
+ }
27352
+ }).catch(res => {});
27353
+ } else {
27354
+ this.clickRead(this.curNode);
27355
+ }
27356
+
27357
+ // getOrgTree({deptId: this.nowDeptId, type: this.type}).then(rsp => {
27358
+ // this.loading = false
27359
+ // this.nodes = rsp.data
27360
+ // this.selectToLeft()
27361
+ // }).catch(err => {
27362
+ // this.loading = false
27363
+ // this.$message.error(err.response.data)
27364
+ // })
27365
+ },
27366
+ clickRead(row) {
27367
+ let data = {
27368
+ type: '1',
27369
+ id: row.id,
27370
+ // simp_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiIxMzY0MTUwMDAzMiIsInB3ZCI6InF3ZTEyMyIsIm5iZiI6MTcxOTYyNzY2NSwiZXhwIjoxNzE5Njg1MjY1fQ.omeeUT4TUqoauTh7R-oO-FIrdMueORuERlANp1mCoPI"
27371
+ simp_token: getToken(),
27372
+ cjos_token: getCjosToken(),
27373
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id
27374
+ };
27375
+ getDepartmentOrganizationRead(data).then(res => {
27376
+ console.log(res.data.data, 'res.data.data');
27377
+ if (this.type == 'dept') {
27378
+ if (Array.isArray(res.data.data)) {
27379
+ res.data.data = res.data.data.filter((item, index) => {
27380
+ if (item.type == 'dept') {
27381
+ return item;
27382
+ }
27383
+ });
27384
+ }
27385
+ this.nodes = res.data.data;
27386
+ } else {
27387
+ this.nodes = res.data.data;
27388
+ }
27389
+ this.selectToLeft();
27390
+ // if (res.data.code == 200) {
27391
+ // if (Array.isArray(res.data.data)) {
27392
+ // res.data = res.data.data.filter((item, index) => {
27393
+ // if (item.type == 'dept') {
27394
+ // return item
27395
+ // }
27396
+ // })
27397
+ // console.log(res,'res.data.data');
27398
+ this.loading = false;
27399
+ // }
27400
+ // }
27401
+ }).catch(res => {});
27402
+ },
27403
+ getShortName(name) {
27404
+ if (name) {
27405
+ return name.length > 2 ? name.substring(1, 3) : name;
27406
+ }
27407
+ return '**';
27408
+ },
27409
+ searchUser() {
27410
+ if (this.type == 'user' || this.type == 'role') {
27411
+ let userName = this.search.trim();
27412
+ this.searchUsers = [];
27413
+ this.loading = true;
27414
+ getPersonSearch({
27415
+ keyword: userName,
27416
+ simp_token: getToken(),
27417
+ cjos_token: getCjosToken(),
27418
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id
27419
+ }).then(rsp => {
27420
+ this.loading = false;
27421
+ this.searchUsers = rsp.data.data;
27422
+ this.selectToLeft();
27423
+ }).catch(err => {
27424
+ this.loading = false;
27425
+ this.$message.error('接口异常');
27426
+ });
27427
+ } else if (this.type == 'dept') {
27428
+ let userName = this.search.trim();
27429
+ this.searchUsers = [];
27430
+ this.loading = true;
27431
+ getDepartmentSearch({
27432
+ keyword: userName,
27433
+ simp_token: getToken(),
27434
+ cjos_token: getCjosToken(),
27435
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id
27436
+ }).then(rsp => {
27437
+ this.loading = false;
27438
+ this.searchUsers = rsp.data.data;
27439
+ this.selectToLeft();
27440
+ }).catch(err => {
27441
+ this.loading = false;
27442
+ this.$message.error('接口异常');
27443
+ });
27444
+ }
27445
+ },
27446
+ selectToLeft() {
27447
+ let checkAllNum = 0;
27448
+ // this.checkAll = false
27449
+ let nodes = this.search.trim() === '' ? this.nodes : this.searchUsers;
27450
+ nodes.forEach(node => {
27451
+ for (let i = 0; i < this.select.length; i++) {
27452
+ if (this.select[i].id === node.id) {
27453
+ checkAllNum++;
27454
+ node.selected = true;
27455
+ break;
27456
+ } else {
27457
+ node.selected = false;
27458
+ }
27459
+ }
27460
+ });
27461
+ if (this.select.length == 0 || this.nodes.length == 0) {
27462
+ this.checkAll = false;
27463
+ } else if (checkAllNum == this.nodes.length) {
27464
+ this.checkAll = true;
27465
+ } else {
27466
+ this.checkAll = false;
27467
+ }
27468
+ },
27469
+ handleClick(event) {
27470
+ // 阻止默认行为,即不切换选中状态
27471
+ event.preventDefault();
27472
+ },
27473
+ selectChange(node) {
27474
+ if (node.selected) {
27475
+ this.checkAll = false;
27476
+ for (let i = 0; i < this.select.length; i++) {
27477
+ if (this.select[i].id === node.id) {
27478
+ this.select.splice(i, 1);
27479
+ break;
27480
+ }
27481
+ }
27482
+ node.selected = false;
27483
+ } else if (!this.disableDept(node)) {
27484
+ node.selected = true;
27485
+ let nodes = this.search.trim() === '' ? this.nodes : this.searchUsers;
27486
+ if (!this.multiple) {
27487
+ nodes.forEach(nd => {
27488
+ if (node.id !== nd.id) {
27489
+ nd.selected = false;
27490
+ }
27491
+ });
27492
+ }
27493
+ if (node.type === 'dept') {
27494
+ if (!this.multiple) {
27495
+ this.select = [node];
27496
+ } else {
27497
+ this.select.unshift(node);
27498
+ }
27499
+ } else {
27500
+ if (!this.multiple) {
27501
+ this.select = [node];
27502
+ } else {
27503
+ this.select.push(node);
27504
+ }
27505
+ }
27506
+ }
27507
+ },
27508
+ boxEvent(org) {
27509
+ // org.selected = !org.selected
27510
+ },
27511
+ noSelected(index) {
27512
+ this.curNode = null;
27513
+ // this.select = []
27514
+ let nodes = this.nodes;
27515
+ for (let f = 0; f < 2; f++) {
27516
+ for (let i = 0; i < nodes.length; i++) {
27517
+ if (nodes[i].id === this.select[index].id) {
27518
+ nodes[i].selected = false;
27519
+ this.checkAll = false;
27520
+ break;
27521
+ }
27522
+ }
27523
+ nodes = this.searchUsers;
27524
+ }
27525
+ this.select.splice(index, 1);
27526
+ },
27527
+ handleCheckAllChange() {
27528
+ this.nodes.forEach(node => {
27529
+ if (this.checkAll) {
27530
+ if (!node.selected && !this.disableDept(node)) {
27531
+ node.selected = true;
27532
+ this.select.push(node);
27533
+ }
27534
+ } else {
27535
+ node.selected = false;
27536
+ for (let i = 0; i < this.select.length; i++) {
27537
+ if (this.select[i].id === node.id) {
27538
+ this.select.splice(i, 1);
27539
+ break;
27540
+ }
27541
+ }
27542
+ }
27543
+ });
27544
+ },
27545
+ nextNode(node) {
27546
+ this.curNode = node;
27547
+ this.nowDeptId = node.id;
27548
+ this.deptStack.push(node);
27549
+ this.getOrgList(this.nowDeptId);
27550
+ },
27551
+ beforeNode() {
27552
+ if (this.deptStack.length === 0) {
27553
+ return;
27554
+ }
27555
+ if (this.deptStack.length < 2) {
27556
+ // this.nowDeptId = null
27557
+ this.curNode = null;
27558
+ } else {
27559
+ // this.nowDeptId = this.deptStack[this.deptStack.length - 2].id
27560
+ this.curNode = this.deptStack[this.deptStack.length - 2];
27561
+ }
27562
+ this.deptStack.splice(this.deptStack.length - 1, 1);
27563
+ this.getOrgList();
27564
+ },
27565
+ recover() {
27566
+ this.curNode = null;
27567
+ this.select = [];
27568
+ this.search = '';
27569
+ this.nodes.forEach(nd => nd.selected = false);
27570
+ },
27571
+ selectOk() {
27572
+ console.log(this.select, 'selectselect');
27573
+ // if(this.select.length > 20){
27574
+ // this.$message.info("人员不能超过20人,请重新选择");
27575
+ // return
27576
+ // }
27577
+ // this.select = []
27578
+ this.$emit('ok', Object.assign([], this.select.map(v => {
27579
+ // v.avatar = undefined
27580
+ return v;
27581
+ })));
27582
+ this.visible = false;
27583
+ this.recover();
27584
+ },
27585
+ cancelModal() {
27586
+ this.curNode = null;
27587
+ this.select = [];
27588
+ this.recover();
27589
+ this.visible = false;
27590
+ },
27591
+ clearSelected() {
27592
+ this.$Modal.confirm({
27593
+ title: '提示',
27594
+ content: '<p>您确定要清空已选中的项?</p>',
27595
+ onOk: () => {
27596
+ this.checkAll = false;
27597
+ this.recover();
27598
+ },
27599
+ onCancel: () => {
27600
+ // this.$Message.info('取消');
27601
+ }
27602
+ });
27603
+ },
27604
+ close() {
27605
+ this.curNode = null;
27606
+ this.select = [];
27607
+ this.$emit('close');
27608
+ this.recover();
27609
+ },
27610
+ init() {
27611
+ this.checkAll = false;
27612
+ this.nowDeptId = null;
27613
+ this.deptStack = [];
27614
+ this.nodes = [];
27615
+ if (this.initShow) {} else {
27616
+ this.selected = [];
27617
+ }
27618
+ setTimeout(() => {
27619
+ this.select = Object.assign([], this.selected);
27620
+ this.selectToLeft();
27621
+ }, 100);
27622
+
27623
+ // this.select = []
27624
+ }
27625
+ }
27626
+ });
27627
+ ;// ./packages/common/OrgPicker.vue?vue&type=script&lang=js
27628
+ /* harmony default export */ var common_OrgPickervue_type_script_lang_js = (OrgPickervue_type_script_lang_js);
27629
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/common/OrgPicker.vue?vue&type=style&index=0&id=2b17f40f&prod&lang=less&scoped=true
27630
+ // extracted by mini-css-extract-plugin
27631
+
27632
+ ;// ./packages/common/OrgPicker.vue?vue&type=style&index=0&id=2b17f40f&prod&lang=less&scoped=true
27633
+
27634
+ ;// ./packages/common/OrgPicker.vue
27635
+
27636
+
27637
+
27638
+ ;
27639
+
27640
+
27641
+ /* normalize component */
27642
+
27643
+ var OrgPicker_component = normalizeComponent(
27644
+ common_OrgPickervue_type_script_lang_js,
27645
+ OrgPickervue_type_template_id_2b17f40f_scoped_true_render,
27646
+ OrgPickervue_type_template_id_2b17f40f_scoped_true_staticRenderFns,
27647
+ false,
27648
+ null,
27649
+ "2b17f40f",
27650
+ null
27651
+
27652
+ )
27653
+
27654
+ /* harmony default export */ var OrgPicker = (OrgPicker_component.exports);
26206
27655
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=script&lang=js
26207
27656
 
26208
27657
 
@@ -26223,6 +27672,22 @@ var view_edit_component = normalizeComponent(
26223
27672
 
26224
27673
 
26225
27674
 
27675
+
27676
+
27677
+
27678
+
27679
+
27680
+
27681
+
27682
+
27683
+
27684
+
27685
+
27686
+
27687
+
27688
+
27689
+
27690
+
26226
27691
 
26227
27692
 
26228
27693
 
@@ -26233,7 +27698,8 @@ var view_edit_component = normalizeComponent(
26233
27698
  components: {
26234
27699
  tableSetting: table_setting,
26235
27700
  saveViewModal: save_view_modal,
26236
- viewEdit: view_edit
27701
+ viewEdit: view_edit,
27702
+ OrgPicker: OrgPicker
26237
27703
  },
26238
27704
  props: {
26239
27705
  customPath: {
@@ -26320,6 +27786,7 @@ var view_edit_component = normalizeComponent(
26320
27786
  },
26321
27787
  data() {
26322
27788
  return {
27789
+ person_icon: person_namespaceObject,
26323
27790
  viewSaveIcon: view_save_icon_namespaceObject,
26324
27791
  viewSettingIcon: view_setting_icon_namespaceObject,
26325
27792
  table_no_flod: table_no_flod_namespaceObject,
@@ -26355,7 +27822,13 @@ var view_edit_component = normalizeComponent(
26355
27822
  current: 1,
26356
27823
  pageSize: 10,
26357
27824
  total: 0
26358
- }
27825
+ },
27826
+ personList: [],
27827
+ initShow: true,
27828
+ all_names: [],
27829
+ personObj: {},
27830
+ person_ids: [],
27831
+ currentFilterItem: null
26359
27832
  };
26360
27833
  },
26361
27834
  computed: {
@@ -27002,6 +28475,10 @@ var view_edit_component = normalizeComponent(
27002
28475
  this.$set(this.filterForm, key, e);
27003
28476
  }
27004
28477
  });
28478
+ // if(item.valueType=='person'){
28479
+ // console.log(e,this.all_names,'888888888888888888888')
28480
+
28481
+ // }
27005
28482
  },
27006
28483
  sortAndFilterColumns(a, b, keepAction = true) {
27007
28484
  // 1. 过滤:只保留 b 数组中存在的 title,以及 "操作" 列(如果 keepAction 为 true)和 type 为 "selection" 的列
@@ -27050,6 +28527,22 @@ var view_edit_component = normalizeComponent(
27050
28527
  }
27051
28528
  });
27052
28529
  },
28530
+ getPerson() {
28531
+ let obj = {
28532
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
28533
+ simp_token: getToken(),
28534
+ rows: 3000,
28535
+ page: 1
28536
+ };
28537
+ indexPerson(obj).then(res => {
28538
+ let datas = res.data;
28539
+ if (datas.code == 200) {
28540
+ this.personList = datas.data.rows;
28541
+ } else {
28542
+ this.$Message.error(datas.msg);
28543
+ }
28544
+ });
28545
+ },
27053
28546
  handleGetUserQuery() {
27054
28547
  let route_path = '';
27055
28548
  if (this.customPath || this.$route && this.$route.path) {
@@ -27112,6 +28605,87 @@ var view_edit_component = normalizeComponent(
27112
28605
  this.$parent.doJlMsg(item, e); //两个select之间的级联方法,需要在父容器定义,多个情况自己定义变量区分
27113
28606
  } else this.$set(this.filterForm, key, e);
27114
28607
  });
28608
+ },
28609
+ choosePerson(item) {
28610
+ // 检查filterForm是否有对应的key,如果没有则初始化为空数组
28611
+ if (!this.filterForm[this.formKey(item)]) {
28612
+ this.$set(this.filterForm, this.formKey(item), []);
28613
+ }
28614
+
28615
+ // 确保all_names已初始化
28616
+ if (!this.all_names) {
28617
+ this.all_names = [];
28618
+ }
28619
+
28620
+ // 将array1转换为Set以便快速查找
28621
+ const idsToKeep = new Set(this.filterForm[this.formKey(item)] || []);
28622
+ // 过滤array2,只保留id在array1中的对象
28623
+ const filteredArray2 = this.all_names.filter(item => idsToKeep.has(item.id));
28624
+ this.all_names = filteredArray2;
28625
+
28626
+ // 1. 获取数组2的所有ID
28627
+ const array2Ids = new Set(this.all_names.map(item => item.id));
28628
+ // 2. 找出数组1中有但数组2中没有的ID
28629
+ const missingIds = (this.filterForm[this.formKey(item)] || []).filter(id => !array2Ids.has(id));
28630
+ if (missingIds.length > 0) {
28631
+ missingIds.forEach((item, index) => {
28632
+ this.personList.forEach((it, idx) => {
28633
+ if (it.id == item) {
28634
+ let obj = {
28635
+ "id": item,
28636
+ "name": it.name,
28637
+ "app_avatar": it.app_avatar,
28638
+ "type": "user",
28639
+ "avatar": it.avatar,
28640
+ "count": 0,
28641
+ "selected": true
28642
+ };
28643
+ this.all_names.push(obj);
28644
+ }
28645
+ });
28646
+ });
28647
+ }
28648
+ console.log(missingIds, 'missingIds');
28649
+ this.initShow = true;
28650
+ this.currentFilterItem = item; // 保存当前操作的筛选项
28651
+ this.$nextTick(() => {
28652
+ this.$refs.orgPicker.initShow = true;
28653
+ this.$refs.orgPicker.show();
28654
+ });
28655
+ },
28656
+ selected(e) {
28657
+ console.log("选择的人", e);
28658
+ this.person_ids = [];
28659
+ this.personObj = [];
28660
+ let names = [];
28661
+ let departs = [];
28662
+ if (e.length > 0) {
28663
+ e.forEach(item => {
28664
+ this.person_ids.push(item.id);
28665
+ names.push(item.name);
28666
+ });
28667
+ }
28668
+ this.names = names.join("、");
28669
+ this.all_names = e;
28670
+
28671
+ // 将选择的人员ID赋值给对应的表单项
28672
+ if (this.currentFilterItem) {
28673
+ this.filterForm[this.formKey(this.currentFilterItem)] = this.person_ids;
28674
+ }
28675
+ if (names.length > 0) {
28676
+ let obj = {
28677
+ departName: "人员",
28678
+ names: names
28679
+ };
28680
+ this.personObj.push(obj);
28681
+ }
28682
+ if (departs.length > 0) {
28683
+ let obj = {
28684
+ departName: "部门",
28685
+ names: departs
28686
+ };
28687
+ this.personObj.push(obj);
28688
+ }
27115
28689
  }
27116
28690
  },
27117
28691
  created() {
@@ -27120,6 +28694,7 @@ var view_edit_component = normalizeComponent(
27120
28694
  mounted() {
27121
28695
  this.handleGetUserQueryView();
27122
28696
  this.handleGetUserQuery();
28697
+ this.getPerson();
27123
28698
  if (window.$wujie) {
27124
28699
  window.$wujie.bus.$on('window-resize', () => {
27125
28700
  this.$nextTick(() => {
@@ -27133,15 +28708,15 @@ var view_edit_component = normalizeComponent(
27133
28708
  });
27134
28709
  ;// ./packages/components/index.vue?vue&type=script&lang=js
27135
28710
  /* harmony default export */ var packages_componentsvue_type_script_lang_js = (componentsvue_type_script_lang_js);
27136
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=32801b01&prod&scoped=true&lang=less
28711
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=2a98d2a4&prod&scoped=true&lang=less
27137
28712
  // extracted by mini-css-extract-plugin
27138
28713
 
27139
- ;// ./packages/components/index.vue?vue&type=style&index=0&id=32801b01&prod&scoped=true&lang=less
28714
+ ;// ./packages/components/index.vue?vue&type=style&index=0&id=2a98d2a4&prod&scoped=true&lang=less
27140
28715
 
27141
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=32801b01&prod&lang=css
28716
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=2a98d2a4&prod&lang=css
27142
28717
  // extracted by mini-css-extract-plugin
27143
28718
 
27144
- ;// ./packages/components/index.vue?vue&type=style&index=1&id=32801b01&prod&lang=css
28719
+ ;// ./packages/components/index.vue?vue&type=style&index=1&id=2a98d2a4&prod&lang=css
27145
28720
 
27146
28721
  ;// ./packages/components/index.vue
27147
28722
 
@@ -27159,7 +28734,7 @@ var components_component = normalizeComponent(
27159
28734
  staticRenderFns,
27160
28735
  false,
27161
28736
  null,
27162
- "32801b01",
28737
+ "2a98d2a4",
27163
28738
  null
27164
28739
 
27165
28740
  )