@scenetechnology/cj_iview_table 0.0.16 → 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.
@@ -174,6 +174,26 @@ module.exports = getBuiltIn('document', 'documentElement');
174
174
  module.exports = {};
175
175
 
176
176
 
177
+ /***/ }),
178
+
179
+ /***/ 507:
180
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
181
+
182
+ "use strict";
183
+
184
+ var call = __webpack_require__(9565);
185
+
186
+ module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
187
+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
188
+ var next = record.next;
189
+ var step, result;
190
+ while (!(step = call(next, iterator)).done) {
191
+ result = fn(step.value);
192
+ if (result !== undefined) return result;
193
+ }
194
+ };
195
+
196
+
177
197
  /***/ }),
178
198
 
179
199
  /***/ 616:
@@ -430,6 +450,24 @@ var uncurryThis = __webpack_require__(9504);
430
450
  module.exports = uncurryThis({}.isPrototypeOf);
431
451
 
432
452
 
453
+ /***/ }),
454
+
455
+ /***/ 1698:
456
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
457
+
458
+ "use strict";
459
+
460
+ var $ = __webpack_require__(6518);
461
+ var union = __webpack_require__(4204);
462
+ var setMethodAcceptSetLike = __webpack_require__(4916);
463
+
464
+ // `Set.prototype.union` method
465
+ // https://tc39.es/ecma262/#sec-set.prototype.union
466
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
467
+ union: union
468
+ });
469
+
470
+
433
471
  /***/ }),
434
472
 
435
473
  /***/ 1701:
@@ -656,6 +694,28 @@ module.exports = Object.create || function create(O, Properties) {
656
694
  };
657
695
 
658
696
 
697
+ /***/ }),
698
+
699
+ /***/ 2475:
700
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
701
+
702
+ "use strict";
703
+
704
+ var $ = __webpack_require__(6518);
705
+ var isSupersetOf = __webpack_require__(8527);
706
+ var setMethodAcceptSetLike = __webpack_require__(4916);
707
+
708
+ var INCORRECT = !setMethodAcceptSetLike('isSupersetOf', function (result) {
709
+ return !result;
710
+ });
711
+
712
+ // `Set.prototype.isSupersetOf` method
713
+ // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
714
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
715
+ isSupersetOf: isSupersetOf
716
+ });
717
+
718
+
659
719
  /***/ }),
660
720
 
661
721
  /***/ 2489:
@@ -18127,6 +18187,40 @@ module.exports = function (key) {
18127
18187
  };
18128
18188
 
18129
18189
 
18190
+ /***/ }),
18191
+
18192
+ /***/ 3440:
18193
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18194
+
18195
+ "use strict";
18196
+
18197
+ var aSet = __webpack_require__(7080);
18198
+ var SetHelpers = __webpack_require__(4402);
18199
+ var clone = __webpack_require__(9286);
18200
+ var size = __webpack_require__(5170);
18201
+ var getSetRecord = __webpack_require__(3789);
18202
+ var iterateSet = __webpack_require__(8469);
18203
+ var iterateSimple = __webpack_require__(507);
18204
+
18205
+ var has = SetHelpers.has;
18206
+ var remove = SetHelpers.remove;
18207
+
18208
+ // `Set.prototype.difference` method
18209
+ // https://github.com/tc39/proposal-set-methods
18210
+ module.exports = function difference(other) {
18211
+ var O = aSet(this);
18212
+ var otherRec = getSetRecord(other);
18213
+ var result = clone(O);
18214
+ if (size(O) <= otherRec.size) iterateSet(O, function (e) {
18215
+ if (otherRec.includes(e)) remove(result, e);
18216
+ });
18217
+ else iterateSimple(otherRec.getIterator(), function (e) {
18218
+ if (has(O, e)) remove(result, e);
18219
+ });
18220
+ return result;
18221
+ };
18222
+
18223
+
18130
18224
  /***/ }),
18131
18225
 
18132
18226
  /***/ 3579:
@@ -18155,6 +18249,37 @@ $({ target: 'Iterator', proto: true, real: true }, {
18155
18249
  });
18156
18250
 
18157
18251
 
18252
+ /***/ }),
18253
+
18254
+ /***/ 3650:
18255
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18256
+
18257
+ "use strict";
18258
+
18259
+ var aSet = __webpack_require__(7080);
18260
+ var SetHelpers = __webpack_require__(4402);
18261
+ var clone = __webpack_require__(9286);
18262
+ var getSetRecord = __webpack_require__(3789);
18263
+ var iterateSimple = __webpack_require__(507);
18264
+
18265
+ var add = SetHelpers.add;
18266
+ var has = SetHelpers.has;
18267
+ var remove = SetHelpers.remove;
18268
+
18269
+ // `Set.prototype.symmetricDifference` method
18270
+ // https://github.com/tc39/proposal-set-methods
18271
+ module.exports = function symmetricDifference(other) {
18272
+ var O = aSet(this);
18273
+ var keysIter = getSetRecord(other).getIterator();
18274
+ var result = clone(O);
18275
+ iterateSimple(keysIter, function (e) {
18276
+ if (has(O, e)) remove(result, e);
18277
+ else add(result, e);
18278
+ });
18279
+ return result;
18280
+ };
18281
+
18282
+
18158
18283
  /***/ }),
18159
18284
 
18160
18285
  /***/ 3706:
@@ -18205,6 +18330,100 @@ module.exports = !fails(function () {
18205
18330
  });
18206
18331
 
18207
18332
 
18333
+ /***/ }),
18334
+
18335
+ /***/ 3789:
18336
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18337
+
18338
+ "use strict";
18339
+
18340
+ var aCallable = __webpack_require__(9306);
18341
+ var anObject = __webpack_require__(8551);
18342
+ var call = __webpack_require__(9565);
18343
+ var toIntegerOrInfinity = __webpack_require__(1291);
18344
+ var getIteratorDirect = __webpack_require__(1767);
18345
+
18346
+ var INVALID_SIZE = 'Invalid size';
18347
+ var $RangeError = RangeError;
18348
+ var $TypeError = TypeError;
18349
+ var max = Math.max;
18350
+
18351
+ var SetRecord = function (set, intSize) {
18352
+ this.set = set;
18353
+ this.size = max(intSize, 0);
18354
+ this.has = aCallable(set.has);
18355
+ this.keys = aCallable(set.keys);
18356
+ };
18357
+
18358
+ SetRecord.prototype = {
18359
+ getIterator: function () {
18360
+ return getIteratorDirect(anObject(call(this.keys, this.set)));
18361
+ },
18362
+ includes: function (it) {
18363
+ return call(this.has, this.set, it);
18364
+ }
18365
+ };
18366
+
18367
+ // `GetSetRecord` abstract operation
18368
+ // https://tc39.es/proposal-set-methods/#sec-getsetrecord
18369
+ module.exports = function (obj) {
18370
+ anObject(obj);
18371
+ var numSize = +obj.size;
18372
+ // NOTE: If size is undefined, then numSize will be NaN
18373
+ // eslint-disable-next-line no-self-compare -- NaN check
18374
+ if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
18375
+ var intSize = toIntegerOrInfinity(numSize);
18376
+ if (intSize < 0) throw new $RangeError(INVALID_SIZE);
18377
+ return new SetRecord(obj, intSize);
18378
+ };
18379
+
18380
+
18381
+ /***/ }),
18382
+
18383
+ /***/ 3838:
18384
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18385
+
18386
+ "use strict";
18387
+
18388
+ var aSet = __webpack_require__(7080);
18389
+ var size = __webpack_require__(5170);
18390
+ var iterate = __webpack_require__(8469);
18391
+ var getSetRecord = __webpack_require__(3789);
18392
+
18393
+ // `Set.prototype.isSubsetOf` method
18394
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
18395
+ module.exports = function isSubsetOf(other) {
18396
+ var O = aSet(this);
18397
+ var otherRec = getSetRecord(other);
18398
+ if (size(O) > otherRec.size) return false;
18399
+ return iterate(O, function (e) {
18400
+ if (!otherRec.includes(e)) return false;
18401
+ }, true) !== false;
18402
+ };
18403
+
18404
+
18405
+ /***/ }),
18406
+
18407
+ /***/ 3853:
18408
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
18409
+
18410
+ "use strict";
18411
+
18412
+ var $ = __webpack_require__(6518);
18413
+ var isDisjointFrom = __webpack_require__(4449);
18414
+ var setMethodAcceptSetLike = __webpack_require__(4916);
18415
+
18416
+ var INCORRECT = !setMethodAcceptSetLike('isDisjointFrom', function (result) {
18417
+ return !result;
18418
+ });
18419
+
18420
+ // `Set.prototype.isDisjointFrom` method
18421
+ // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
18422
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
18423
+ isDisjointFrom: isDisjointFrom
18424
+ });
18425
+
18426
+
18208
18427
  /***/ }),
18209
18428
 
18210
18429
  /***/ 4055:
@@ -18288,6 +18507,32 @@ module.exports = function (it) {
18288
18507
  };
18289
18508
 
18290
18509
 
18510
+ /***/ }),
18511
+
18512
+ /***/ 4204:
18513
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18514
+
18515
+ "use strict";
18516
+
18517
+ var aSet = __webpack_require__(7080);
18518
+ var add = (__webpack_require__(4402).add);
18519
+ var clone = __webpack_require__(9286);
18520
+ var getSetRecord = __webpack_require__(3789);
18521
+ var iterateSimple = __webpack_require__(507);
18522
+
18523
+ // `Set.prototype.union` method
18524
+ // https://github.com/tc39/proposal-set-methods
18525
+ module.exports = function union(other) {
18526
+ var O = aSet(this);
18527
+ var keysIter = getSetRecord(other).getIterator();
18528
+ var result = clone(O);
18529
+ iterateSimple(keysIter, function (it) {
18530
+ add(result, it);
18531
+ });
18532
+ return result;
18533
+ };
18534
+
18535
+
18291
18536
  /***/ }),
18292
18537
 
18293
18538
  /***/ 4209:
@@ -18348,6 +18593,58 @@ module.exports = Array.isArray || function isArray(argument) {
18348
18593
  };
18349
18594
 
18350
18595
 
18596
+ /***/ }),
18597
+
18598
+ /***/ 4402:
18599
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18600
+
18601
+ "use strict";
18602
+
18603
+ var uncurryThis = __webpack_require__(9504);
18604
+
18605
+ // eslint-disable-next-line es/no-set -- safe
18606
+ var SetPrototype = Set.prototype;
18607
+
18608
+ module.exports = {
18609
+ // eslint-disable-next-line es/no-set -- safe
18610
+ Set: Set,
18611
+ add: uncurryThis(SetPrototype.add),
18612
+ has: uncurryThis(SetPrototype.has),
18613
+ remove: uncurryThis(SetPrototype['delete']),
18614
+ proto: SetPrototype
18615
+ };
18616
+
18617
+
18618
+ /***/ }),
18619
+
18620
+ /***/ 4449:
18621
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18622
+
18623
+ "use strict";
18624
+
18625
+ var aSet = __webpack_require__(7080);
18626
+ var has = (__webpack_require__(4402).has);
18627
+ var size = __webpack_require__(5170);
18628
+ var getSetRecord = __webpack_require__(3789);
18629
+ var iterateSet = __webpack_require__(8469);
18630
+ var iterateSimple = __webpack_require__(507);
18631
+ var iteratorClose = __webpack_require__(9539);
18632
+
18633
+ // `Set.prototype.isDisjointFrom` method
18634
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
18635
+ module.exports = function isDisjointFrom(other) {
18636
+ var O = aSet(this);
18637
+ var otherRec = getSetRecord(other);
18638
+ if (size(O) <= otherRec.size) return iterateSet(O, function (e) {
18639
+ if (otherRec.includes(e)) return false;
18640
+ }, true) !== false;
18641
+ var iterator = otherRec.getIterator();
18642
+ return iterateSimple(iterator, function (e) {
18643
+ if (has(O, e)) return iteratorClose(iterator, 'normal', false);
18644
+ }) !== false;
18645
+ };
18646
+
18647
+
18351
18648
  /***/ }),
18352
18649
 
18353
18650
  /***/ 4495:
@@ -18523,6 +18820,90 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P
18523
18820
  };
18524
18821
 
18525
18822
 
18823
+ /***/ }),
18824
+
18825
+ /***/ 4916:
18826
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18827
+
18828
+ "use strict";
18829
+
18830
+ var getBuiltIn = __webpack_require__(7751);
18831
+
18832
+ var createSetLike = function (size) {
18833
+ return {
18834
+ size: size,
18835
+ has: function () {
18836
+ return false;
18837
+ },
18838
+ keys: function () {
18839
+ return {
18840
+ next: function () {
18841
+ return { done: true };
18842
+ }
18843
+ };
18844
+ }
18845
+ };
18846
+ };
18847
+
18848
+ var createSetLikeWithInfinitySize = function (size) {
18849
+ return {
18850
+ size: size,
18851
+ has: function () {
18852
+ return true;
18853
+ },
18854
+ keys: function () {
18855
+ throw new Error('e');
18856
+ }
18857
+ };
18858
+ };
18859
+
18860
+ module.exports = function (name, callback) {
18861
+ var Set = getBuiltIn('Set');
18862
+ try {
18863
+ new Set()[name](createSetLike(0));
18864
+ try {
18865
+ // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
18866
+ // https://github.com/tc39/proposal-set-methods/pull/88
18867
+ new Set()[name](createSetLike(-1));
18868
+ return false;
18869
+ } catch (error2) {
18870
+ if (!callback) return true;
18871
+ // early V8 implementation bug
18872
+ // https://issues.chromium.org/issues/351332634
18873
+ try {
18874
+ new Set()[name](createSetLikeWithInfinitySize(-Infinity));
18875
+ return false;
18876
+ } catch (error) {
18877
+ var set = new Set();
18878
+ set.add(1);
18879
+ set.add(2);
18880
+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
18881
+ }
18882
+ }
18883
+ } catch (error) {
18884
+ return false;
18885
+ }
18886
+ };
18887
+
18888
+
18889
+ /***/ }),
18890
+
18891
+ /***/ 5024:
18892
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
18893
+
18894
+ "use strict";
18895
+
18896
+ var $ = __webpack_require__(6518);
18897
+ var symmetricDifference = __webpack_require__(3650);
18898
+ var setMethodAcceptSetLike = __webpack_require__(4916);
18899
+
18900
+ // `Set.prototype.symmetricDifference` method
18901
+ // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
18902
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, {
18903
+ symmetricDifference: symmetricDifference
18904
+ });
18905
+
18906
+
18526
18907
  /***/ }),
18527
18908
 
18528
18909
  /***/ 5031:
@@ -18546,6 +18927,21 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
18546
18927
  };
18547
18928
 
18548
18929
 
18930
+ /***/ }),
18931
+
18932
+ /***/ 5170:
18933
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18934
+
18935
+ "use strict";
18936
+
18937
+ var uncurryThisAccessor = __webpack_require__(6706);
18938
+ var SetHelpers = __webpack_require__(4402);
18939
+
18940
+ module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) {
18941
+ return set.size;
18942
+ };
18943
+
18944
+
18549
18945
  /***/ }),
18550
18946
 
18551
18947
  /***/ 5397:
@@ -18597,6 +18993,28 @@ module.exports = function (key, value) {
18597
18993
  };
18598
18994
 
18599
18995
 
18996
+ /***/ }),
18997
+
18998
+ /***/ 5876:
18999
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19000
+
19001
+ "use strict";
19002
+
19003
+ var $ = __webpack_require__(6518);
19004
+ var isSubsetOf = __webpack_require__(3838);
19005
+ var setMethodAcceptSetLike = __webpack_require__(4916);
19006
+
19007
+ var INCORRECT = !setMethodAcceptSetLike('isSubsetOf', function (result) {
19008
+ return result;
19009
+ });
19010
+
19011
+ // `Set.prototype.isSubsetOf` method
19012
+ // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
19013
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
19014
+ isSubsetOf: isSubsetOf
19015
+ });
19016
+
19017
+
18600
19018
  /***/ }),
18601
19019
 
18602
19020
  /***/ 5917:
@@ -18827,6 +19245,24 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
18827
19245
  };
18828
19246
 
18829
19247
 
19248
+ /***/ }),
19249
+
19250
+ /***/ 6706:
19251
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19252
+
19253
+ "use strict";
19254
+
19255
+ var uncurryThis = __webpack_require__(9504);
19256
+ var aCallable = __webpack_require__(9306);
19257
+
19258
+ module.exports = function (object, key, method) {
19259
+ try {
19260
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
19261
+ return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
19262
+ } catch (error) { /* empty */ }
19263
+ };
19264
+
19265
+
18830
19266
  /***/ }),
18831
19267
 
18832
19268
  /***/ 6801:
@@ -19038,6 +19474,22 @@ module.exports = fails(function () {
19038
19474
  } : $Object;
19039
19475
 
19040
19476
 
19477
+ /***/ }),
19478
+
19479
+ /***/ 7080:
19480
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19481
+
19482
+ "use strict";
19483
+
19484
+ var has = (__webpack_require__(4402).has);
19485
+
19486
+ // Perform ? RequireInternalSlot(M, [[SetData]])
19487
+ module.exports = function (it) {
19488
+ has(it);
19489
+ return it;
19490
+ };
19491
+
19492
+
19041
19493
  /***/ }),
19042
19494
 
19043
19495
  /***/ 7347:
@@ -19138,6 +19590,28 @@ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED,
19138
19590
  });
19139
19591
 
19140
19592
 
19593
+ /***/ }),
19594
+
19595
+ /***/ 7642:
19596
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19597
+
19598
+ "use strict";
19599
+
19600
+ var $ = __webpack_require__(6518);
19601
+ var difference = __webpack_require__(3440);
19602
+ var setMethodAcceptSetLike = __webpack_require__(4916);
19603
+
19604
+ var INCORRECT = !setMethodAcceptSetLike('difference', function (result) {
19605
+ return result.size === 0;
19606
+ });
19607
+
19608
+ // `Set.prototype.difference` method
19609
+ // https://tc39.es/ecma262/#sec-set.prototype.difference
19610
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
19611
+ difference: difference
19612
+ });
19613
+
19614
+
19141
19615
  /***/ }),
19142
19616
 
19143
19617
  /***/ 7657:
@@ -19258,6 +19732,32 @@ module.exports = function (namespace, method) {
19258
19732
  };
19259
19733
 
19260
19734
 
19735
+ /***/ }),
19736
+
19737
+ /***/ 8004:
19738
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19739
+
19740
+ "use strict";
19741
+
19742
+ var $ = __webpack_require__(6518);
19743
+ var fails = __webpack_require__(9039);
19744
+ var intersection = __webpack_require__(8750);
19745
+ var setMethodAcceptSetLike = __webpack_require__(4916);
19746
+
19747
+ var INCORRECT = !setMethodAcceptSetLike('intersection', function (result) {
19748
+ return result.size === 2 && result.has(1) && result.has(2);
19749
+ }) || fails(function () {
19750
+ // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
19751
+ return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
19752
+ });
19753
+
19754
+ // `Set.prototype.intersection` method
19755
+ // https://tc39.es/ecma262/#sec-set.prototype.intersection
19756
+ $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
19757
+ intersection: intersection
19758
+ });
19759
+
19760
+
19261
19761
  /***/ }),
19262
19762
 
19263
19763
  /***/ 8014:
@@ -19377,6 +19877,28 @@ module.exports = function (name) {
19377
19877
  };
19378
19878
 
19379
19879
 
19880
+ /***/ }),
19881
+
19882
+ /***/ 8469:
19883
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19884
+
19885
+ "use strict";
19886
+
19887
+ var uncurryThis = __webpack_require__(9504);
19888
+ var iterateSimple = __webpack_require__(507);
19889
+ var SetHelpers = __webpack_require__(4402);
19890
+
19891
+ var Set = SetHelpers.Set;
19892
+ var SetPrototype = SetHelpers.proto;
19893
+ var forEach = uncurryThis(SetPrototype.forEach);
19894
+ var keys = uncurryThis(SetPrototype.keys);
19895
+ var next = keys(new Set()).next;
19896
+
19897
+ module.exports = function (set, fn, interruptible) {
19898
+ return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
19899
+ };
19900
+
19901
+
19380
19902
  /***/ }),
19381
19903
 
19382
19904
  /***/ 8480:
@@ -19397,6 +19919,33 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
19397
19919
  };
19398
19920
 
19399
19921
 
19922
+ /***/ }),
19923
+
19924
+ /***/ 8527:
19925
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19926
+
19927
+ "use strict";
19928
+
19929
+ var aSet = __webpack_require__(7080);
19930
+ var has = (__webpack_require__(4402).has);
19931
+ var size = __webpack_require__(5170);
19932
+ var getSetRecord = __webpack_require__(3789);
19933
+ var iterateSimple = __webpack_require__(507);
19934
+ var iteratorClose = __webpack_require__(9539);
19935
+
19936
+ // `Set.prototype.isSupersetOf` method
19937
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
19938
+ module.exports = function isSupersetOf(other) {
19939
+ var O = aSet(this);
19940
+ var otherRec = getSetRecord(other);
19941
+ if (size(O) < otherRec.size) return false;
19942
+ var iterator = otherRec.getIterator();
19943
+ return iterateSimple(iterator, function (e) {
19944
+ if (!has(O, e)) return iteratorClose(iterator, 'normal', false);
19945
+ }) !== false;
19946
+ };
19947
+
19948
+
19400
19949
  /***/ }),
19401
19950
 
19402
19951
  /***/ 8551:
@@ -19471,6 +20020,45 @@ module.exports = [
19471
20020
  ];
19472
20021
 
19473
20022
 
20023
+ /***/ }),
20024
+
20025
+ /***/ 8750:
20026
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20027
+
20028
+ "use strict";
20029
+
20030
+ var aSet = __webpack_require__(7080);
20031
+ var SetHelpers = __webpack_require__(4402);
20032
+ var size = __webpack_require__(5170);
20033
+ var getSetRecord = __webpack_require__(3789);
20034
+ var iterateSet = __webpack_require__(8469);
20035
+ var iterateSimple = __webpack_require__(507);
20036
+
20037
+ var Set = SetHelpers.Set;
20038
+ var add = SetHelpers.add;
20039
+ var has = SetHelpers.has;
20040
+
20041
+ // `Set.prototype.intersection` method
20042
+ // https://github.com/tc39/proposal-set-methods
20043
+ module.exports = function intersection(other) {
20044
+ var O = aSet(this);
20045
+ var otherRec = getSetRecord(other);
20046
+ var result = new Set();
20047
+
20048
+ if (size(O) > otherRec.size) {
20049
+ iterateSimple(otherRec.getIterator(), function (e) {
20050
+ if (has(O, e)) add(result, e);
20051
+ });
20052
+ } else {
20053
+ iterateSet(O, function (e) {
20054
+ if (otherRec.includes(e)) add(result, e);
20055
+ });
20056
+ }
20057
+
20058
+ return result;
20059
+ };
20060
+
20061
+
19474
20062
  /***/ }),
19475
20063
 
19476
20064
  /***/ 8773:
@@ -19527,6 +20115,28 @@ module.exports = function (exec) {
19527
20115
  };
19528
20116
 
19529
20117
 
20118
+ /***/ }),
20119
+
20120
+ /***/ 9286:
20121
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20122
+
20123
+ "use strict";
20124
+
20125
+ var SetHelpers = __webpack_require__(4402);
20126
+ var iterate = __webpack_require__(8469);
20127
+
20128
+ var Set = SetHelpers.Set;
20129
+ var add = SetHelpers.add;
20130
+
20131
+ module.exports = function (set) {
20132
+ var result = new Set();
20133
+ iterate(set, function (it) {
20134
+ add(result, it);
20135
+ });
20136
+ return result;
20137
+ };
20138
+
20139
+
19530
20140
  /***/ }),
19531
20141
 
19532
20142
  /***/ 9297:
@@ -19959,7 +20569,7 @@ if (typeof window !== 'undefined') {
19959
20569
  // Indicate to webpack that this file can be concatenated
19960
20570
  /* harmony default export */ var setPublicPath = (null);
19961
20571
 
19962
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=5924d5a8&scoped=true
20572
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
19963
20573
  var render = function render() {
19964
20574
  var _vm = this,
19965
20575
  _c = _vm._self._c;
@@ -20019,7 +20629,50 @@ var render = function render() {
20019
20629
  "value": _vm.getStringValue(option)
20020
20630
  }
20021
20631
  }, [_vm._v(_vm._s(option.name || option.text || option.unit_name || option.label || option.month))]);
20022
- }), 1)] : _vm._e(), item.valueType === 'date' || item.valueType === 'daterange' || item.valueType === 'datetime' || item.valueType === 'datetimerange' || item.valueType == 'year' ? [_c('DatePicker', {
20632
+ }), 1)] : _vm._e(), item.valueType === 'person' ? [_c('Select', {
20633
+ staticClass: "personSelect",
20634
+ staticStyle: {
20635
+ "width": "100%"
20636
+ },
20637
+ attrs: {
20638
+ "transfer": "",
20639
+ "value": _vm.filterForm[_vm.formKey(item)] || item.defaultValue,
20640
+ "filterable": "",
20641
+ "clearable": !item.multiple,
20642
+ "multiple": item.multiple,
20643
+ "placeholder": `请选择${item.filterLable || item.title}`,
20644
+ "max-tag-count": 1
20645
+ },
20646
+ on: {
20647
+ "on-change": function ($event) {
20648
+ _vm.changeSelect($event, _vm.formKey(item), item);
20649
+ }
20650
+ }
20651
+ }, _vm._l(_vm.personList, function (option, indexOption) {
20652
+ return _c('Option', {
20653
+ key: indexOption,
20654
+ attrs: {
20655
+ "value": _vm.getStringValue(option),
20656
+ "label": option.name
20657
+ }
20658
+ }, [_vm._v(_vm._s(option.name || option.text || option.unit_name || option.label || option.month)), _c('span', {
20659
+ staticStyle: {
20660
+ "float": "right",
20661
+ "margin-right": "13px",
20662
+ "color": "#ccc"
20663
+ }
20664
+ }, [_vm._v(_vm._s(option.department_name) + _vm._s(option.department_name ? ' / ' : '') + _vm._s(option.department_item_name))])]);
20665
+ }), 1), _c('img', {
20666
+ staticClass: "person_icon",
20667
+ attrs: {
20668
+ "src": _vm.person_icon
20669
+ },
20670
+ on: {
20671
+ "click": function ($event) {
20672
+ return _vm.choosePerson(item);
20673
+ }
20674
+ }
20675
+ })] : _vm._e(), item.valueType === 'date' || item.valueType === 'daterange' || item.valueType === 'datetime' || item.valueType === 'datetimerange' || item.valueType == 'year' ? [_c('DatePicker', {
20023
20676
  ref: "element",
20024
20677
  refInFor: true,
20025
20678
  staticStyle: {
@@ -20338,7 +20991,17 @@ var render = function render() {
20338
20991
  attrs: {
20339
20992
  "viewList": _vm.viewList
20340
20993
  }
20341
- })], 2);
20994
+ }), _vm.initShow ? _c('org-picker', {
20995
+ ref: "orgPicker",
20996
+ attrs: {
20997
+ "type": "user",
20998
+ "multiple": true,
20999
+ "selected": _vm.all_names
21000
+ },
21001
+ on: {
21002
+ "ok": _vm.selected
21003
+ }
21004
+ }) : _vm._e()], 2);
20342
21005
  };
20343
21006
  var staticRenderFns = [];
20344
21007
 
@@ -20356,6 +21019,20 @@ var es_iterator_for_each = __webpack_require__(7588);
20356
21019
  var es_iterator_map = __webpack_require__(1701);
20357
21020
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
20358
21021
  var es_iterator_some = __webpack_require__(3579);
21022
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
21023
+ var es_set_difference_v2 = __webpack_require__(7642);
21024
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js
21025
+ var es_set_intersection_v2 = __webpack_require__(8004);
21026
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js
21027
+ var es_set_is_disjoint_from_v2 = __webpack_require__(3853);
21028
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js
21029
+ var es_set_is_subset_of_v2 = __webpack_require__(5876);
21030
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js
21031
+ var es_set_is_superset_of_v2 = __webpack_require__(2475);
21032
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js
21033
+ var es_set_symmetric_difference_v2 = __webpack_require__(5024);
21034
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
21035
+ var es_set_union_v2 = __webpack_require__(1698);
20359
21036
  ;// ./src/libs/util.js
20360
21037
  const getToken = () => {
20361
21038
  let token=''
@@ -20366,6 +21043,16 @@ const getToken = () => {
20366
21043
  }
20367
21044
  if (token) return token
20368
21045
  else return false
21046
+ }
21047
+ function getCjosToken(){
21048
+ let result
21049
+ if (localStorage.getItem('is_root') === 'true'||localStorage.getItem('is_root') === 'false'){
21050
+ result=encodeURIComponent(getToken())
21051
+ // console.log('999999',result)
21052
+ }else{
21053
+ result=''
21054
+ }
21055
+ return result
20369
21056
  }
20370
21057
  ;// ./node_modules/axios/lib/helpers/bind.js
20371
21058
 
@@ -24554,8 +25241,46 @@ const getUserQuery = (data) => {
24554
25241
  method: 'post'
24555
25242
  })
24556
25243
  }
24557
-
24558
-
25244
+ const indexPerson = (data) => {
25245
+ return api_request.request({
25246
+ url: config.baseUrl.simp+ 'Person/index',
25247
+ data,
25248
+ method: 'post'
25249
+ })
25250
+ }
25251
+
25252
+
25253
+ function getDepartmentOrganization (param) {
25254
+ return api_request.request({
25255
+ url: config.baseUrl.simp+ `Department/Organization`,
25256
+ method: 'get',
25257
+ params: param
25258
+ })
25259
+ }
25260
+
25261
+ function getDepartmentOrganizationRead (param) {
25262
+ return api_request.request({
25263
+ url: config.baseUrl.simp+ `Department/Organization_read`,
25264
+ method: 'get',
25265
+ params: param
25266
+ })
25267
+ }
25268
+
25269
+ function getDepartmentSearch (param) {
25270
+ return api_request.request({
25271
+ url: config.baseUrl.simp+ `Department/search`,
25272
+ method: 'get',
25273
+ params: param
25274
+ })
25275
+ }
25276
+
25277
+ function getPersonSearch (param) {
25278
+ return api_request.request({
25279
+ url: config.baseUrl.simp+ `Person/search`,
25280
+ method: 'get',
25281
+ params: param
25282
+ })
25283
+ }
24559
25284
  ;// ./src/assets/images/table_no_flod.png
24560
25285
  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=";
24561
25286
  ;// ./src/assets/images/table_flod.png
@@ -26193,6 +26918,730 @@ var view_edit_component = normalizeComponent(
26193
26918
  )
26194
26919
 
26195
26920
  /* harmony default export */ var view_edit = (view_edit_component.exports);
26921
+ ;// ./src/assets/images/person.png
26922
+ var person_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QzkyQkY4M0M2QjExRjA5MjY0OTFGMkQ1MDY4REQ0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA0QzkyQkY5M0M2QjExRjA5MjY0OTFGMkQ1MDY4REQ0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDRDOTJCRjYzQzZCMTFGMDkyNjQ5MUYyRDUwNjhERDQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDRDOTJCRjczQzZCMTFGMDkyNjQ5MUYyRDUwNjhERDQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7dfkw4AAAI7ElEQVR42uxdTW8U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";
26923
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
26924
+ var OrgPickervue_type_template_id_2b17f40f_scoped_true_render = function render() {
26925
+ var _vm = this,
26926
+ _c = _vm._self._c;
26927
+ return _c('Modal', {
26928
+ attrs: {
26929
+ "closeFree": "",
26930
+ "width": "616px",
26931
+ "title": _vm.title
26932
+ },
26933
+ on: {
26934
+ "on-ok": _vm.selectOk,
26935
+ "on-cancel": _vm.cancelModal
26936
+ },
26937
+ model: {
26938
+ value: _vm.visible,
26939
+ callback: function ($$v) {
26940
+ _vm.visible = $$v;
26941
+ },
26942
+ expression: "visible"
26943
+ }
26944
+ }, [_c('div', {
26945
+ staticClass: "picker"
26946
+ }, [_c('div', {
26947
+ staticClass: "candidate"
26948
+ }, [_c('Spin', {
26949
+ directives: [{
26950
+ name: "show",
26951
+ rawName: "v-show",
26952
+ value: _vm.loading,
26953
+ expression: "loading"
26954
+ }],
26955
+ attrs: {
26956
+ "fix": ""
26957
+ }
26958
+ }, [_c('Icon', {
26959
+ staticClass: "demo-spin-icon-load",
26960
+ attrs: {
26961
+ "type": "ios-loading",
26962
+ "size": "18"
26963
+ }
26964
+ }), _c('div', [_vm._v("Loading")])], 1), _c('div', {
26965
+ staticStyle: {
26966
+ "padding": "5px 10px"
26967
+ }
26968
+ }, [_c('Input', {
26969
+ staticStyle: {
26970
+ "width": "95%"
26971
+ },
26972
+ attrs: {
26973
+ "clearable": "",
26974
+ "placeholder": _vm.type == 'dept' ? '搜索部门' : '搜索人员',
26975
+ "icon": "md-search"
26976
+ },
26977
+ on: {
26978
+ "on-change": _vm.searchUser
26979
+ },
26980
+ model: {
26981
+ value: _vm.search,
26982
+ callback: function ($$v) {
26983
+ _vm.search = $$v;
26984
+ },
26985
+ expression: "search"
26986
+ }
26987
+ }), _c('div', {
26988
+ directives: [{
26989
+ name: "show",
26990
+ rawName: "v-show",
26991
+ value: !_vm.showUsers,
26992
+ expression: "!showUsers"
26993
+ }]
26994
+ }, [_c('ellipsis', {
26995
+ staticStyle: {
26996
+ "height": "22px",
26997
+ "color": "#8c8c8c",
26998
+ "padding": "5px 0 0",
26999
+ "font-size": "13px"
27000
+ },
27001
+ attrs: {
27002
+ "hoverTip": "",
27003
+ "row": 1,
27004
+ "content": _vm.deptStackStr
27005
+ }
27006
+ }, [_c('Icon', {
27007
+ staticStyle: {
27008
+ "vertical-align": "text-bottom"
27009
+ },
27010
+ attrs: {
27011
+ "slot": "pre",
27012
+ "type": "ios-home",
27013
+ "size": "18"
27014
+ },
27015
+ slot: "pre"
27016
+ })], 1), _c('div', {
27017
+ staticStyle: {
27018
+ "margin-top": "5px"
27019
+ }
27020
+ }, [_c('Checkbox', {
27021
+ attrs: {
27022
+ "disabled": !_vm.multiple
27023
+ },
27024
+ on: {
27025
+ "on-change": _vm.handleCheckAllChange
27026
+ },
27027
+ model: {
27028
+ value: _vm.checkAll,
27029
+ callback: function ($$v) {
27030
+ _vm.checkAll = $$v;
27031
+ },
27032
+ expression: "checkAll"
27033
+ }
27034
+ }, [_vm._v(_vm._s(_vm.type == 'user' && _vm.multiple ? '全选人员' : '全选'))]), _c('span', {
27035
+ directives: [{
27036
+ name: "show",
27037
+ rawName: "v-show",
27038
+ value: _vm.deptStack.length > 0,
27039
+ expression: "deptStack.length > 0"
27040
+ }],
27041
+ staticClass: "top-dept",
27042
+ on: {
27043
+ "click": _vm.beforeNode
27044
+ }
27045
+ }, [_vm._v("上一级")])], 1)], 1)], 1), _c('div', {
27046
+ staticClass: "org-items"
27047
+ }, [_c('div', {
27048
+ directives: [{
27049
+ name: "show",
27050
+ rawName: "v-show",
27051
+ value: _vm.orgs.length === 0,
27052
+ expression: "orgs.length === 0"
27053
+ }],
27054
+ staticClass: "msgCard",
27055
+ staticStyle: {
27056
+ "text-align": "center"
27057
+ }
27058
+ }, [_c('img', {
27059
+ staticStyle: {
27060
+ "width": "200px",
27061
+ "height": "200px",
27062
+ "margin": "0 auto"
27063
+ },
27064
+ attrs: {
27065
+ "src": _vm.kong_icon
27066
+ }
27067
+ })]), _vm._l(_vm.orgs, function (org, index) {
27068
+ return _c('div', {
27069
+ key: index,
27070
+ class: _vm.orgItemClass(org),
27071
+ on: {
27072
+ "click": function ($event) {
27073
+ return _vm.selectChange(org);
27074
+ }
27075
+ }
27076
+ }, [_c('Checkbox', {
27077
+ attrs: {
27078
+ "disabled": _vm.disableDept(org)
27079
+ },
27080
+ nativeOn: {
27081
+ "click": function ($event) {
27082
+ $event.preventDefault();
27083
+ return _vm.handleClick.apply(null, arguments);
27084
+ }
27085
+ },
27086
+ model: {
27087
+ value: org.selected,
27088
+ callback: function ($$v) {
27089
+ _vm.$set(org, "selected", $$v);
27090
+ },
27091
+ expression: "org.selected"
27092
+ }
27093
+ }), org.type === 'dept' ? _c('div', [_c('Icon', {
27094
+ attrs: {
27095
+ "type": "md-folder-open"
27096
+ }
27097
+ }), _c('span', {
27098
+ staticClass: "name overTetx",
27099
+ staticStyle: {
27100
+ "vertical-align": "bottom"
27101
+ },
27102
+ attrs: {
27103
+ "title": org.name
27104
+ }
27105
+ }, [_vm._v(_vm._s(org.name))]), _c('span', {
27106
+ class: `next-dept${org.selected ? '-disable' : ''}`,
27107
+ on: {
27108
+ "click": function ($event) {
27109
+ $event.stopPropagation();
27110
+ org.selected ? '' : _vm.nextNode(org);
27111
+ }
27112
+ }
27113
+ }, [_c('Icon', {
27114
+ attrs: {
27115
+ "type": "md-git-network"
27116
+ }
27117
+ }), _vm._v("下级 ")], 1)], 1) : org.type === 'user' ? _c('div', {
27118
+ staticStyle: {
27119
+ "display": "flex",
27120
+ "align-items": "center"
27121
+ }
27122
+ }, [_vm.isNotEmpty(org.avatar) ? _c('Avatar', {
27123
+ attrs: {
27124
+ "size": "large",
27125
+ "src": _vm.mapUrl + org.avatar
27126
+ }
27127
+ }) : _c('span', {
27128
+ staticClass: "avatar"
27129
+ }, [_vm._v(_vm._s(_vm.getShortName(org.name)))]), _c('span', {
27130
+ staticClass: "name"
27131
+ }, [_vm._v(_vm._s(org.name))])], 1) : _c('div', {
27132
+ staticStyle: {
27133
+ "display": "inline-block"
27134
+ }
27135
+ }, [_c('i', {
27136
+ staticClass: "iconfont icon-bumen"
27137
+ }), _c('span', {
27138
+ staticClass: "name"
27139
+ }, [_vm._v(_vm._s(org.name))])])], 1);
27140
+ })], 2)], 1), _c('div', {
27141
+ staticClass: "selected"
27142
+ }, [_c('div', {
27143
+ staticClass: "count"
27144
+ }, [_c('span', [_vm._v("已选 " + _vm._s(_vm.select.length) + " 项")]), _c('span', {
27145
+ on: {
27146
+ "click": _vm.clearSelected
27147
+ }
27148
+ }, [_vm._v("清空")])]), _c('div', {
27149
+ staticClass: "org-items",
27150
+ staticStyle: {
27151
+ "height": "350px"
27152
+ }
27153
+ }, [_c('div', {
27154
+ directives: [{
27155
+ name: "show",
27156
+ rawName: "v-show",
27157
+ value: _vm.select.length === 0,
27158
+ expression: "select.length === 0"
27159
+ }],
27160
+ staticClass: "msgCard",
27161
+ staticStyle: {
27162
+ "text-align": "center"
27163
+ }
27164
+ }, [_c('img', {
27165
+ staticStyle: {
27166
+ "width": "200px",
27167
+ "height": "200px",
27168
+ "margin": "0 auto"
27169
+ },
27170
+ attrs: {
27171
+ "src": _vm.kong_icon
27172
+ }
27173
+ })]), _vm._l(_vm.select, function (org, index) {
27174
+ return _c('div', {
27175
+ key: index,
27176
+ class: _vm.orgItemClass(org)
27177
+ }, [org.type === 'dept' ? _c('div', [_c('Icon', {
27178
+ attrs: {
27179
+ "type": "md-folder-open"
27180
+ }
27181
+ }), _c('span', {
27182
+ staticClass: "name",
27183
+ staticStyle: {
27184
+ "position": "static"
27185
+ }
27186
+ }, [_vm._v(_vm._s(org.name))])], 1) : org.type === 'user' ? _c('div', {
27187
+ staticStyle: {
27188
+ "display": "flex",
27189
+ "align-items": "center"
27190
+ }
27191
+ }, [_vm.isNotEmpty(org.avatar) ? _c('Avatar', {
27192
+ attrs: {
27193
+ "size": "large",
27194
+ "src": _vm.mapUrl + org.avatar
27195
+ }
27196
+ }) : _c('span', {
27197
+ staticClass: "avatar"
27198
+ }, [_vm._v(_vm._s(_vm.getShortName(org.name)))]), _c('span', {
27199
+ staticClass: "name"
27200
+ }, [_vm._v(_vm._s(org.name))])], 1) : _c('div', [_c('i', {
27201
+ staticClass: "iconfont icon-bumen"
27202
+ }), _c('span', {
27203
+ staticClass: "name"
27204
+ }, [_vm._v(_vm._s(org.name))])]), _c('Icon', {
27205
+ staticClass: "closeStyle",
27206
+ attrs: {
27207
+ "type": "md-close"
27208
+ },
27209
+ on: {
27210
+ "click": function ($event) {
27211
+ return _vm.noSelected(index);
27212
+ }
27213
+ }
27214
+ })], 1);
27215
+ })], 2)])])]);
27216
+ };
27217
+ var OrgPickervue_type_template_id_2b17f40f_scoped_true_staticRenderFns = [];
27218
+
27219
+ ;// ./src/assets/images/kong_icon.png
27220
+ var kong_icon_namespaceObject = __webpack_require__.p + "img/kong_icon.459aaab5.png";
27221
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
27222
+
27223
+
27224
+
27225
+
27226
+
27227
+
27228
+
27229
+
27230
+
27231
+
27232
+
27233
+
27234
+
27235
+
27236
+ /* harmony default export */ var OrgPickervue_type_script_lang_js = ({
27237
+ name: 'OrgPicker',
27238
+ components: {},
27239
+ props: {
27240
+ title: {
27241
+ default: '请选择',
27242
+ type: String
27243
+ },
27244
+ type: {
27245
+ default: 'org',
27246
+ // org选择部门/人员 user-选人 dept-选部门 role-选角色
27247
+ type: String
27248
+ },
27249
+ multiple: {
27250
+ // 是否多选
27251
+ default: false,
27252
+ type: Boolean
27253
+ },
27254
+ selected: {
27255
+ default: () => {
27256
+ return [];
27257
+ },
27258
+ type: Array
27259
+ }
27260
+ },
27261
+ data() {
27262
+ return {
27263
+ kong_icon: kong_icon_namespaceObject,
27264
+ mapUrl: config.mapUrl,
27265
+ visible: false,
27266
+ loading: false,
27267
+ checkAll: false,
27268
+ nowDeptId: null,
27269
+ isIndeterminate: false,
27270
+ searchUsers: [],
27271
+ nodes: [],
27272
+ select: [],
27273
+ search: '',
27274
+ deptStack: [],
27275
+ curNode: null,
27276
+ initShow: false
27277
+ };
27278
+ },
27279
+ computed: {
27280
+ deptStackStr() {
27281
+ return String(this.deptStack.map(v => v.name)).replaceAll(',', ' > ');
27282
+ },
27283
+ orgs() {
27284
+ return !this.search || this.search.trim() === '' ? this.nodes : this.searchUsers;
27285
+ },
27286
+ showUsers() {
27287
+ return this.search || this.search.trim() !== '';
27288
+ }
27289
+ },
27290
+ methods: {
27291
+ isNotEmpty(obj) {
27292
+ return obj !== undefined && obj !== null && obj !== '' && obj !== 'null';
27293
+ },
27294
+ show() {
27295
+ this.visible = true;
27296
+ this.init();
27297
+ this.getOrgList();
27298
+ },
27299
+ orgItemClass(org) {
27300
+ return {
27301
+ 'org-item': true,
27302
+ 'org-dept-item': org.type === 'dept',
27303
+ 'org-user-item': org.type === 'user',
27304
+ 'org-role-item': org.type === 'role'
27305
+ };
27306
+ },
27307
+ disableDept(node) {
27308
+ return this.type === 'user' && node.type === 'dept';
27309
+ },
27310
+ getOrgList(deptId = 0) {
27311
+ this.loading = true;
27312
+ let data = {
27313
+ id: this.curNode ? this.curNode.id : 0,
27314
+ // simp_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJhZG1pbiIsInB3ZCI6IjJkZjE0OTRiMTY4Mzc1ZDNmYjcwNGZjYjAxMTEwM2U2In0.to8D-j_i5G5R4mbf4vnqdfiHOKMTE8T2ACnoBYN4LAU",
27315
+ // project_id: '3',
27316
+ simp_token: getToken(),
27317
+ cjos_token: getCjosToken(),
27318
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
27319
+ page: 1,
27320
+ rows: 99999
27321
+ };
27322
+ if (!this.curNode) {
27323
+ getDepartmentOrganization(data).then(res => {
27324
+ if (res.data.code == 200) {
27325
+ if (this.type == 'dept') {
27326
+ if (Array.isArray(res.data.data)) {
27327
+ res.data.data = res.data.data.filter((item, index) => {
27328
+ if (item.type == 'dept') {
27329
+ return item;
27330
+ }
27331
+ });
27332
+ this.nodes = res.data.data;
27333
+ }
27334
+ } else {
27335
+ if (Array.isArray(res.data.data)) {
27336
+ this.nodes = res.data.data;
27337
+ }
27338
+ }
27339
+ this.selectToLeft();
27340
+ this.loading = false;
27341
+ }
27342
+ }).catch(res => {});
27343
+ } else {
27344
+ this.clickRead(this.curNode);
27345
+ }
27346
+
27347
+ // getOrgTree({deptId: this.nowDeptId, type: this.type}).then(rsp => {
27348
+ // this.loading = false
27349
+ // this.nodes = rsp.data
27350
+ // this.selectToLeft()
27351
+ // }).catch(err => {
27352
+ // this.loading = false
27353
+ // this.$message.error(err.response.data)
27354
+ // })
27355
+ },
27356
+ clickRead(row) {
27357
+ let data = {
27358
+ type: '1',
27359
+ id: row.id,
27360
+ // simp_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiIxMzY0MTUwMDAzMiIsInB3ZCI6InF3ZTEyMyIsIm5iZiI6MTcxOTYyNzY2NSwiZXhwIjoxNzE5Njg1MjY1fQ.omeeUT4TUqoauTh7R-oO-FIrdMueORuERlANp1mCoPI"
27361
+ simp_token: getToken(),
27362
+ cjos_token: getCjosToken(),
27363
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id
27364
+ };
27365
+ getDepartmentOrganizationRead(data).then(res => {
27366
+ console.log(res.data.data, 'res.data.data');
27367
+ if (this.type == 'dept') {
27368
+ if (Array.isArray(res.data.data)) {
27369
+ res.data.data = res.data.data.filter((item, index) => {
27370
+ if (item.type == 'dept') {
27371
+ return item;
27372
+ }
27373
+ });
27374
+ }
27375
+ this.nodes = res.data.data;
27376
+ } else {
27377
+ this.nodes = res.data.data;
27378
+ }
27379
+ this.selectToLeft();
27380
+ // if (res.data.code == 200) {
27381
+ // if (Array.isArray(res.data.data)) {
27382
+ // res.data = res.data.data.filter((item, index) => {
27383
+ // if (item.type == 'dept') {
27384
+ // return item
27385
+ // }
27386
+ // })
27387
+ // console.log(res,'res.data.data');
27388
+ this.loading = false;
27389
+ // }
27390
+ // }
27391
+ }).catch(res => {});
27392
+ },
27393
+ getShortName(name) {
27394
+ if (name) {
27395
+ return name.length > 2 ? name.substring(1, 3) : name;
27396
+ }
27397
+ return '**';
27398
+ },
27399
+ searchUser() {
27400
+ if (this.type == 'user' || this.type == 'role') {
27401
+ let userName = this.search.trim();
27402
+ this.searchUsers = [];
27403
+ this.loading = true;
27404
+ getPersonSearch({
27405
+ keyword: userName,
27406
+ simp_token: getToken(),
27407
+ cjos_token: getCjosToken(),
27408
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id
27409
+ }).then(rsp => {
27410
+ this.loading = false;
27411
+ this.searchUsers = rsp.data.data;
27412
+ this.selectToLeft();
27413
+ }).catch(err => {
27414
+ this.loading = false;
27415
+ this.$message.error('接口异常');
27416
+ });
27417
+ } else if (this.type == 'dept') {
27418
+ let userName = this.search.trim();
27419
+ this.searchUsers = [];
27420
+ this.loading = true;
27421
+ getDepartmentSearch({
27422
+ keyword: userName,
27423
+ simp_token: getToken(),
27424
+ cjos_token: getCjosToken(),
27425
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id
27426
+ }).then(rsp => {
27427
+ this.loading = false;
27428
+ this.searchUsers = rsp.data.data;
27429
+ this.selectToLeft();
27430
+ }).catch(err => {
27431
+ this.loading = false;
27432
+ this.$message.error('接口异常');
27433
+ });
27434
+ }
27435
+ },
27436
+ selectToLeft() {
27437
+ let checkAllNum = 0;
27438
+ // this.checkAll = false
27439
+ let nodes = this.search.trim() === '' ? this.nodes : this.searchUsers;
27440
+ nodes.forEach(node => {
27441
+ for (let i = 0; i < this.select.length; i++) {
27442
+ if (this.select[i].id === node.id) {
27443
+ checkAllNum++;
27444
+ node.selected = true;
27445
+ break;
27446
+ } else {
27447
+ node.selected = false;
27448
+ }
27449
+ }
27450
+ });
27451
+ if (this.select.length == 0 || this.nodes.length == 0) {
27452
+ this.checkAll = false;
27453
+ } else if (checkAllNum == this.nodes.length) {
27454
+ this.checkAll = true;
27455
+ } else {
27456
+ this.checkAll = false;
27457
+ }
27458
+ },
27459
+ handleClick(event) {
27460
+ // 阻止默认行为,即不切换选中状态
27461
+ event.preventDefault();
27462
+ },
27463
+ selectChange(node) {
27464
+ if (node.selected) {
27465
+ this.checkAll = false;
27466
+ for (let i = 0; i < this.select.length; i++) {
27467
+ if (this.select[i].id === node.id) {
27468
+ this.select.splice(i, 1);
27469
+ break;
27470
+ }
27471
+ }
27472
+ node.selected = false;
27473
+ } else if (!this.disableDept(node)) {
27474
+ node.selected = true;
27475
+ let nodes = this.search.trim() === '' ? this.nodes : this.searchUsers;
27476
+ if (!this.multiple) {
27477
+ nodes.forEach(nd => {
27478
+ if (node.id !== nd.id) {
27479
+ nd.selected = false;
27480
+ }
27481
+ });
27482
+ }
27483
+ if (node.type === 'dept') {
27484
+ if (!this.multiple) {
27485
+ this.select = [node];
27486
+ } else {
27487
+ this.select.unshift(node);
27488
+ }
27489
+ } else {
27490
+ if (!this.multiple) {
27491
+ this.select = [node];
27492
+ } else {
27493
+ this.select.push(node);
27494
+ }
27495
+ }
27496
+ }
27497
+ },
27498
+ boxEvent(org) {
27499
+ // org.selected = !org.selected
27500
+ },
27501
+ noSelected(index) {
27502
+ this.curNode = null;
27503
+ // this.select = []
27504
+ let nodes = this.nodes;
27505
+ for (let f = 0; f < 2; f++) {
27506
+ for (let i = 0; i < nodes.length; i++) {
27507
+ if (nodes[i].id === this.select[index].id) {
27508
+ nodes[i].selected = false;
27509
+ this.checkAll = false;
27510
+ break;
27511
+ }
27512
+ }
27513
+ nodes = this.searchUsers;
27514
+ }
27515
+ this.select.splice(index, 1);
27516
+ },
27517
+ handleCheckAllChange() {
27518
+ this.nodes.forEach(node => {
27519
+ if (this.checkAll) {
27520
+ if (!node.selected && !this.disableDept(node)) {
27521
+ node.selected = true;
27522
+ this.select.push(node);
27523
+ }
27524
+ } else {
27525
+ node.selected = false;
27526
+ for (let i = 0; i < this.select.length; i++) {
27527
+ if (this.select[i].id === node.id) {
27528
+ this.select.splice(i, 1);
27529
+ break;
27530
+ }
27531
+ }
27532
+ }
27533
+ });
27534
+ },
27535
+ nextNode(node) {
27536
+ this.curNode = node;
27537
+ this.nowDeptId = node.id;
27538
+ this.deptStack.push(node);
27539
+ this.getOrgList(this.nowDeptId);
27540
+ },
27541
+ beforeNode() {
27542
+ if (this.deptStack.length === 0) {
27543
+ return;
27544
+ }
27545
+ if (this.deptStack.length < 2) {
27546
+ // this.nowDeptId = null
27547
+ this.curNode = null;
27548
+ } else {
27549
+ // this.nowDeptId = this.deptStack[this.deptStack.length - 2].id
27550
+ this.curNode = this.deptStack[this.deptStack.length - 2];
27551
+ }
27552
+ this.deptStack.splice(this.deptStack.length - 1, 1);
27553
+ this.getOrgList();
27554
+ },
27555
+ recover() {
27556
+ this.curNode = null;
27557
+ this.select = [];
27558
+ this.search = '';
27559
+ this.nodes.forEach(nd => nd.selected = false);
27560
+ },
27561
+ selectOk() {
27562
+ console.log(this.select, 'selectselect');
27563
+ // if(this.select.length > 20){
27564
+ // this.$message.info("人员不能超过20人,请重新选择");
27565
+ // return
27566
+ // }
27567
+ // this.select = []
27568
+ this.$emit('ok', Object.assign([], this.select.map(v => {
27569
+ // v.avatar = undefined
27570
+ return v;
27571
+ })));
27572
+ this.visible = false;
27573
+ this.recover();
27574
+ },
27575
+ cancelModal() {
27576
+ this.curNode = null;
27577
+ this.select = [];
27578
+ this.recover();
27579
+ this.visible = false;
27580
+ },
27581
+ clearSelected() {
27582
+ this.$Modal.confirm({
27583
+ title: '提示',
27584
+ content: '<p>您确定要清空已选中的项?</p>',
27585
+ onOk: () => {
27586
+ this.checkAll = false;
27587
+ this.recover();
27588
+ },
27589
+ onCancel: () => {
27590
+ // this.$Message.info('取消');
27591
+ }
27592
+ });
27593
+ },
27594
+ close() {
27595
+ this.curNode = null;
27596
+ this.select = [];
27597
+ this.$emit('close');
27598
+ this.recover();
27599
+ },
27600
+ init() {
27601
+ this.checkAll = false;
27602
+ this.nowDeptId = null;
27603
+ this.deptStack = [];
27604
+ this.nodes = [];
27605
+ if (this.initShow) {} else {
27606
+ this.selected = [];
27607
+ }
27608
+ setTimeout(() => {
27609
+ this.select = Object.assign([], this.selected);
27610
+ this.selectToLeft();
27611
+ }, 100);
27612
+
27613
+ // this.select = []
27614
+ }
27615
+ }
27616
+ });
27617
+ ;// ./packages/common/OrgPicker.vue?vue&type=script&lang=js
27618
+ /* harmony default export */ var common_OrgPickervue_type_script_lang_js = (OrgPickervue_type_script_lang_js);
27619
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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
27620
+ // extracted by mini-css-extract-plugin
27621
+
27622
+ ;// ./packages/common/OrgPicker.vue?vue&type=style&index=0&id=2b17f40f&prod&lang=less&scoped=true
27623
+
27624
+ ;// ./packages/common/OrgPicker.vue
27625
+
27626
+
27627
+
27628
+ ;
27629
+
27630
+
27631
+ /* normalize component */
27632
+
27633
+ var OrgPicker_component = normalizeComponent(
27634
+ common_OrgPickervue_type_script_lang_js,
27635
+ OrgPickervue_type_template_id_2b17f40f_scoped_true_render,
27636
+ OrgPickervue_type_template_id_2b17f40f_scoped_true_staticRenderFns,
27637
+ false,
27638
+ null,
27639
+ "2b17f40f",
27640
+ null
27641
+
27642
+ )
27643
+
27644
+ /* harmony default export */ var OrgPicker = (OrgPicker_component.exports);
26196
27645
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
26197
27646
 
26198
27647
 
@@ -26213,6 +27662,22 @@ var view_edit_component = normalizeComponent(
26213
27662
 
26214
27663
 
26215
27664
 
27665
+
27666
+
27667
+
27668
+
27669
+
27670
+
27671
+
27672
+
27673
+
27674
+
27675
+
27676
+
27677
+
27678
+
27679
+
27680
+
26216
27681
 
26217
27682
 
26218
27683
 
@@ -26223,7 +27688,8 @@ var view_edit_component = normalizeComponent(
26223
27688
  components: {
26224
27689
  tableSetting: table_setting,
26225
27690
  saveViewModal: save_view_modal,
26226
- viewEdit: view_edit
27691
+ viewEdit: view_edit,
27692
+ OrgPicker: OrgPicker
26227
27693
  },
26228
27694
  props: {
26229
27695
  customPath: {
@@ -26254,7 +27720,7 @@ var view_edit_component = normalizeComponent(
26254
27720
  },
26255
27721
  size: {
26256
27722
  type: String,
26257
- default: ''
27723
+ default: 'default'
26258
27724
  },
26259
27725
  loading: {
26260
27726
  type: Boolean,
@@ -26310,6 +27776,7 @@ var view_edit_component = normalizeComponent(
26310
27776
  },
26311
27777
  data() {
26312
27778
  return {
27779
+ person_icon: person_namespaceObject,
26313
27780
  viewSaveIcon: view_save_icon_namespaceObject,
26314
27781
  viewSettingIcon: view_setting_icon_namespaceObject,
26315
27782
  table_no_flod: table_no_flod_namespaceObject,
@@ -26345,7 +27812,13 @@ var view_edit_component = normalizeComponent(
26345
27812
  current: 1,
26346
27813
  pageSize: 10,
26347
27814
  total: 0
26348
- }
27815
+ },
27816
+ personList: [],
27817
+ initShow: true,
27818
+ all_names: [],
27819
+ personObj: {},
27820
+ person_ids: [],
27821
+ currentFilterItem: null
26349
27822
  };
26350
27823
  },
26351
27824
  computed: {
@@ -26992,6 +28465,10 @@ var view_edit_component = normalizeComponent(
26992
28465
  this.$set(this.filterForm, key, e);
26993
28466
  }
26994
28467
  });
28468
+ // if(item.valueType=='person'){
28469
+ // console.log(e,this.all_names,'888888888888888888888')
28470
+
28471
+ // }
26995
28472
  },
26996
28473
  sortAndFilterColumns(a, b, keepAction = true) {
26997
28474
  // 1. 过滤:只保留 b 数组中存在的 title,以及 "操作" 列(如果 keepAction 为 true)和 type 为 "selection" 的列
@@ -27040,6 +28517,22 @@ var view_edit_component = normalizeComponent(
27040
28517
  }
27041
28518
  });
27042
28519
  },
28520
+ getPerson() {
28521
+ let obj = {
28522
+ project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
28523
+ simp_token: getToken(),
28524
+ rows: 3000,
28525
+ page: 1
28526
+ };
28527
+ indexPerson(obj).then(res => {
28528
+ let datas = res.data;
28529
+ if (datas.code == 200) {
28530
+ this.personList = datas.data.rows;
28531
+ } else {
28532
+ this.$Message.error(datas.msg);
28533
+ }
28534
+ });
28535
+ },
27043
28536
  handleGetUserQuery() {
27044
28537
  let route_path = '';
27045
28538
  if (this.customPath || this.$route && this.$route.path) {
@@ -27102,6 +28595,87 @@ var view_edit_component = normalizeComponent(
27102
28595
  this.$parent.doJlMsg(item, e); //两个select之间的级联方法,需要在父容器定义,多个情况自己定义变量区分
27103
28596
  } else this.$set(this.filterForm, key, e);
27104
28597
  });
28598
+ },
28599
+ choosePerson(item) {
28600
+ // 检查filterForm是否有对应的key,如果没有则初始化为空数组
28601
+ if (!this.filterForm[this.formKey(item)]) {
28602
+ this.$set(this.filterForm, this.formKey(item), []);
28603
+ }
28604
+
28605
+ // 确保all_names已初始化
28606
+ if (!this.all_names) {
28607
+ this.all_names = [];
28608
+ }
28609
+
28610
+ // 将array1转换为Set以便快速查找
28611
+ const idsToKeep = new Set(this.filterForm[this.formKey(item)] || []);
28612
+ // 过滤array2,只保留id在array1中的对象
28613
+ const filteredArray2 = this.all_names.filter(item => idsToKeep.has(item.id));
28614
+ this.all_names = filteredArray2;
28615
+
28616
+ // 1. 获取数组2的所有ID
28617
+ const array2Ids = new Set(this.all_names.map(item => item.id));
28618
+ // 2. 找出数组1中有但数组2中没有的ID
28619
+ const missingIds = (this.filterForm[this.formKey(item)] || []).filter(id => !array2Ids.has(id));
28620
+ if (missingIds.length > 0) {
28621
+ missingIds.forEach((item, index) => {
28622
+ this.personList.forEach((it, idx) => {
28623
+ if (it.id == item) {
28624
+ let obj = {
28625
+ "id": item,
28626
+ "name": it.name,
28627
+ "app_avatar": it.app_avatar,
28628
+ "type": "user",
28629
+ "avatar": it.avatar,
28630
+ "count": 0,
28631
+ "selected": true
28632
+ };
28633
+ this.all_names.push(obj);
28634
+ }
28635
+ });
28636
+ });
28637
+ }
28638
+ console.log(missingIds, 'missingIds');
28639
+ this.initShow = true;
28640
+ this.currentFilterItem = item; // 保存当前操作的筛选项
28641
+ this.$nextTick(() => {
28642
+ this.$refs.orgPicker.initShow = true;
28643
+ this.$refs.orgPicker.show();
28644
+ });
28645
+ },
28646
+ selected(e) {
28647
+ console.log("选择的人", e);
28648
+ this.person_ids = [];
28649
+ this.personObj = [];
28650
+ let names = [];
28651
+ let departs = [];
28652
+ if (e.length > 0) {
28653
+ e.forEach(item => {
28654
+ this.person_ids.push(item.id);
28655
+ names.push(item.name);
28656
+ });
28657
+ }
28658
+ this.names = names.join("、");
28659
+ this.all_names = e;
28660
+
28661
+ // 将选择的人员ID赋值给对应的表单项
28662
+ if (this.currentFilterItem) {
28663
+ this.filterForm[this.formKey(this.currentFilterItem)] = this.person_ids;
28664
+ }
28665
+ if (names.length > 0) {
28666
+ let obj = {
28667
+ departName: "人员",
28668
+ names: names
28669
+ };
28670
+ this.personObj.push(obj);
28671
+ }
28672
+ if (departs.length > 0) {
28673
+ let obj = {
28674
+ departName: "部门",
28675
+ names: departs
28676
+ };
28677
+ this.personObj.push(obj);
28678
+ }
27105
28679
  }
27106
28680
  },
27107
28681
  created() {
@@ -27110,6 +28684,7 @@ var view_edit_component = normalizeComponent(
27110
28684
  mounted() {
27111
28685
  this.handleGetUserQueryView();
27112
28686
  this.handleGetUserQuery();
28687
+ this.getPerson();
27113
28688
  if (window.$wujie) {
27114
28689
  window.$wujie.bus.$on('window-resize', () => {
27115
28690
  this.$nextTick(() => {
@@ -27123,15 +28698,15 @@ var view_edit_component = normalizeComponent(
27123
28698
  });
27124
28699
  ;// ./packages/components/index.vue?vue&type=script&lang=js
27125
28700
  /* harmony default export */ var packages_componentsvue_type_script_lang_js = (componentsvue_type_script_lang_js);
27126
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=5924d5a8&prod&scoped=true&lang=less
28701
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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
27127
28702
  // extracted by mini-css-extract-plugin
27128
28703
 
27129
- ;// ./packages/components/index.vue?vue&type=style&index=0&id=5924d5a8&prod&scoped=true&lang=less
28704
+ ;// ./packages/components/index.vue?vue&type=style&index=0&id=2a98d2a4&prod&scoped=true&lang=less
27130
28705
 
27131
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=5924d5a8&prod&lang=css
28706
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.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
27132
28707
  // extracted by mini-css-extract-plugin
27133
28708
 
27134
- ;// ./packages/components/index.vue?vue&type=style&index=1&id=5924d5a8&prod&lang=css
28709
+ ;// ./packages/components/index.vue?vue&type=style&index=1&id=2a98d2a4&prod&lang=css
27135
28710
 
27136
28711
  ;// ./packages/components/index.vue
27137
28712
 
@@ -27149,7 +28724,7 @@ var components_component = normalizeComponent(
27149
28724
  staticRenderFns,
27150
28725
  false,
27151
28726
  null,
27152
- "5924d5a8",
28727
+ "2a98d2a4",
27153
28728
  null
27154
28729
 
27155
28730
  )