eoss-mobiles 0.2.25 → 0.2.26

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.
package/lib/picker.js CHANGED
@@ -1910,7 +1910,6 @@ var base = {
1910
1910
  // CONCATENATED MODULE: ./src/utils/http.js
1911
1911
 
1912
1912
  var http_request = function request(options) {
1913
- console.log(options, 'options');
1914
1913
  var fn = void 0;
1915
1914
  switch (options.type) {
1916
1915
  case 'post':
package/lib/radio.js CHANGED
@@ -1910,7 +1910,6 @@ var base = {
1910
1910
  // CONCATENATED MODULE: ./src/utils/http.js
1911
1911
 
1912
1912
  var http_request = function request(options) {
1913
- console.log(options, 'options');
1914
1913
  var fn = void 0;
1915
1914
  switch (options.type) {
1916
1915
  case 'post':
@@ -1914,7 +1914,6 @@ var base = {
1914
1914
  // CONCATENATED MODULE: ./src/utils/http.js
1915
1915
 
1916
1916
  var http_request = function request(options) {
1917
- console.log(options, 'options');
1918
1917
  var fn = void 0;
1919
1918
  switch (options.type) {
1920
1919
  case 'post':
package/lib/selector.js CHANGED
@@ -1910,7 +1910,6 @@ var base = {
1910
1910
  // CONCATENATED MODULE: ./src/utils/http.js
1911
1911
 
1912
1912
  var http_request = function request(options) {
1913
- console.log(options, 'options');
1914
1913
  var fn = void 0;
1915
1914
  switch (options.type) {
1916
1915
  case 'post':
@@ -2022,7 +2021,7 @@ module.exports = require("sm-crypto");
2022
2021
  // ESM COMPAT FLAG
2023
2022
  __webpack_require__.r(__webpack_exports__);
2024
2023
 
2025
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=73ff2f1c&
2024
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=3fb4f01a&
2026
2025
  var render = function () {
2027
2026
  var _vm = this
2028
2027
  var _h = _vm.$createElement
@@ -2053,6 +2052,7 @@ var render = function () {
2053
2052
  {
2054
2053
  attrs: {
2055
2054
  showTree: _vm.showTree,
2055
+ showMore: _vm.$listeners["left-icon"] == undefined,
2056
2056
  isTreeIcon: _vm.$scopedSlots["tree-icon"] != undefined,
2057
2057
  selectList: _vm.selectList,
2058
2058
  },
@@ -2105,6 +2105,7 @@ var render = function () {
2105
2105
  ],
2106
2106
  attrs: {
2107
2107
  showTree: _vm.showTree,
2108
+ showMore: _vm.$listeners["left-icon"] == undefined,
2108
2109
  isTreeIcon: _vm.$scopedSlots["tree-icon"] != undefined,
2109
2110
  selectList: _vm.selectList,
2110
2111
  },
@@ -2154,10 +2155,10 @@ var staticRenderFns = []
2154
2155
  render._withStripped = true
2155
2156
 
2156
2157
 
2157
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=73ff2f1c&
2158
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=3fb4f01a&
2158
2159
 
2159
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=389241ee&
2160
- var selector_treevue_type_template_id_389241ee_render = function () {
2160
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=f38968a6&
2161
+ var selector_treevue_type_template_id_f38968a6_render = function () {
2161
2162
  var _vm = this
2162
2163
  var _h = _vm.$createElement
2163
2164
  var _c = _vm._self._c || _h
@@ -2238,6 +2239,7 @@ var selector_treevue_type_template_id_389241ee_render = function () {
2238
2239
  "em-tree",
2239
2240
  _vm._g(
2240
2241
  {
2242
+ ref: "emTree",
2241
2243
  attrs: {
2242
2244
  model: _vm.personnel,
2243
2245
  "value-key": _vm.valueKey,
@@ -2247,7 +2249,9 @@ var selector_treevue_type_template_id_389241ee_render = function () {
2247
2249
  departmentLabelKey: _vm.departmentLabelKey,
2248
2250
  departmentValueKey: _vm.departmentValueKey,
2249
2251
  nodeKey: _vm.nodeKey,
2252
+ isAllCheck: _vm.isAllCheck,
2250
2253
  isTreeIcon: _vm.isTreeIcon,
2254
+ showMore: _vm.showMore,
2251
2255
  showTree: _vm.showTree,
2252
2256
  oldIsSearch: _vm.oldIsSearch,
2253
2257
  isSearch: _vm.isSearch,
@@ -2321,14 +2325,14 @@ var selector_treevue_type_template_id_389241ee_render = function () {
2321
2325
  1
2322
2326
  )
2323
2327
  }
2324
- var selector_treevue_type_template_id_389241ee_staticRenderFns = []
2325
- selector_treevue_type_template_id_389241ee_render._withStripped = true
2328
+ var selector_treevue_type_template_id_f38968a6_staticRenderFns = []
2329
+ selector_treevue_type_template_id_f38968a6_render._withStripped = true
2326
2330
 
2327
2331
 
2328
- // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=389241ee&
2332
+ // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=f38968a6&
2329
2333
 
2330
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=491fd81b&
2331
- var treevue_type_template_id_491fd81b_render = function () {
2334
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=62cbe65e&
2335
+ var treevue_type_template_id_62cbe65e_render = function () {
2332
2336
  var _vm = this
2333
2337
  var _h = _vm.$createElement
2334
2338
  var _c = _vm._self._c || _h
@@ -2395,8 +2399,20 @@ var treevue_type_template_id_491fd81b_render = function () {
2395
2399
  "\n "
2396
2400
  ),
2397
2401
  ]),
2398
- !_vm.isTreeIcon
2402
+ _vm.showMore
2399
2403
  ? _c("van-icon", {
2404
+ directives: [
2405
+ {
2406
+ name: "tap",
2407
+ rawName: "v-tap",
2408
+ value: {
2409
+ methods: _vm.handleClickIcon,
2410
+ obj: item,
2411
+ },
2412
+ expression:
2413
+ "{ methods: handleClickIcon, obj: item }",
2414
+ },
2415
+ ],
2400
2416
  staticClass: "right",
2401
2417
  attrs: { name: "arrow" },
2402
2418
  })
@@ -2466,9 +2482,11 @@ var treevue_type_template_id_491fd81b_render = function () {
2466
2482
  nodeKey: _vm.nodeKey,
2467
2483
  oldIsSearch: _vm.oldIsSearch,
2468
2484
  isSearch: _vm.isSearch,
2485
+ isAllCheck: _vm.isAllCheck,
2469
2486
  "label-key": _vm.labelKey,
2470
2487
  "value-key": _vm.valueKey,
2471
2488
  showTree: _vm.showTree,
2489
+ showMore: _vm.showMore,
2472
2490
  enterprise: _vm.enterprise,
2473
2491
  isTreeIcon: _vm.isTreeIcon,
2474
2492
  department: _vm.department,
@@ -2604,11 +2622,11 @@ var treevue_type_template_id_491fd81b_render = function () {
2604
2622
  0
2605
2623
  )
2606
2624
  }
2607
- var treevue_type_template_id_491fd81b_staticRenderFns = []
2608
- treevue_type_template_id_491fd81b_render._withStripped = true
2625
+ var treevue_type_template_id_62cbe65e_staticRenderFns = []
2626
+ treevue_type_template_id_62cbe65e_render._withStripped = true
2609
2627
 
2610
2628
 
2611
- // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=491fd81b&
2629
+ // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=62cbe65e&
2612
2630
 
2613
2631
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=script&lang=js&
2614
2632
  //
@@ -2764,6 +2782,11 @@ treevue_type_template_id_491fd81b_render._withStripped = true
2764
2782
  //
2765
2783
  //
2766
2784
  //
2785
+ //
2786
+ //
2787
+ //
2788
+ //
2789
+ //
2767
2790
 
2768
2791
  /* harmony default export */ var treevue_type_script_lang_js_ = ({
2769
2792
  name: 'em-tree',
@@ -2815,6 +2838,14 @@ treevue_type_template_id_491fd81b_render._withStripped = true
2815
2838
  type: String,
2816
2839
  default: 'showshortname'
2817
2840
  },
2841
+ isAllCheck: {
2842
+ type: Boolean,
2843
+ default: false
2844
+ },
2845
+ showMore: {
2846
+ type: Boolean,
2847
+ default: true
2848
+ },
2818
2849
  oldIsSearch: Boolean,
2819
2850
  isSearch: Boolean
2820
2851
  },
@@ -2851,14 +2882,16 @@ treevue_type_template_id_491fd81b_render._withStripped = true
2851
2882
 
2852
2883
  methods: {
2853
2884
  handleClickIcon: function handleClickIcon(res, isStart) {
2854
- if (!this.$listeners['left-icon']) return;
2885
+ if (!this.$listeners['left-icon'] && !this.showMore) return;
2855
2886
  this.$emit('popen', res, res.isStart || isStart);
2856
2887
  },
2857
2888
  opened: function opened(res, isStart) {
2858
2889
  this.$emit('popen', res, res.isStart || isStart, true);
2859
2890
  },
2860
2891
  checke: function checke(res) {
2861
- this.$emit('checke', res);
2892
+ var model = undefined;
2893
+ if (this.isAllCheck) model = this.model;
2894
+ this.$emit('checke', res, model);
2862
2895
  },
2863
2896
  isShowNode: function isShowNode(id) {
2864
2897
  var isShow = true;
@@ -2884,8 +2917,8 @@ var componentNormalizer = __webpack_require__(1);
2884
2917
 
2885
2918
  var component = Object(componentNormalizer["a" /* default */])(
2886
2919
  src_treevue_type_script_lang_js_,
2887
- treevue_type_template_id_491fd81b_render,
2888
- treevue_type_template_id_491fd81b_staticRenderFns,
2920
+ treevue_type_template_id_62cbe65e_render,
2921
+ treevue_type_template_id_62cbe65e_staticRenderFns,
2889
2922
  false,
2890
2923
  null,
2891
2924
  null,
@@ -2991,6 +3024,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2991
3024
  //
2992
3025
  //
2993
3026
  //
3027
+ //
3028
+ //
3029
+ //
2994
3030
 
2995
3031
 
2996
3032
 
@@ -3019,6 +3055,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3019
3055
  return [];
3020
3056
  }
3021
3057
  },
3058
+ isAllCheck: {
3059
+ type: Boolean,
3060
+ default: false
3061
+ },
3022
3062
  // pid: {
3023
3063
  // type: String, // 父id或者是空
3024
3064
  // default: 'root'
@@ -3090,6 +3130,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3090
3130
  type: Boolean,
3091
3131
  default: true
3092
3132
  },
3133
+ showMore: {
3134
+ type: Boolean,
3135
+ default: true
3136
+ },
3093
3137
  isTreeIcon: {
3094
3138
  type: Boolean,
3095
3139
  default: false
@@ -3118,6 +3162,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3118
3162
  type: [String, Number],
3119
3163
  default: 0
3120
3164
  },
3165
+ isDefaultNode: {
3166
+ type: Boolean,
3167
+ default: true
3168
+ },
3121
3169
  nodeList: Array,
3122
3170
  baseUrl: String
3123
3171
  },
@@ -3134,6 +3182,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3134
3182
  newParam: {},
3135
3183
  oldIsSearch: false,
3136
3184
  selectIndex: 0,
3185
+ checkObj: {},
3137
3186
  first: true
3138
3187
  };
3139
3188
  },
@@ -3440,17 +3489,15 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3440
3489
  }
3441
3490
  },
3442
3491
  mounted: function mounted() {
3443
- var _this2 = this;
3444
-
3445
3492
  typeof this.selectList != 'string' && (this.list = util["a" /* default */].deepClone(this.selectList));
3446
3493
 
3447
- this.$nextTick(function () {
3448
- if (_this2.nodeList) {
3449
- _this2.getNodeList();
3450
- } else {
3451
- _this2.getContent();
3452
- }
3453
- });
3494
+ // this.$nextTick(() => {
3495
+ // if (this.nodeList) {
3496
+ // this.getNodeList();
3497
+ // } else {
3498
+ // this.getContent();
3499
+ // }
3500
+ // });
3454
3501
  },
3455
3502
 
3456
3503
  methods: {
@@ -3459,7 +3506,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3459
3506
  this.getContent();
3460
3507
  },
3461
3508
  getNodeList: function getNodeList(isSearch) {
3462
- var _this3 = this;
3509
+ var _this2 = this;
3463
3510
 
3464
3511
  this.personnel = this.nodeList;
3465
3512
 
@@ -3480,7 +3527,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3480
3527
  } else {
3481
3528
  _this.personnel.map(function (x) {
3482
3529
  if (x.children && x.children.length > 0) {
3483
- _this3.setChecked(x.children);
3530
+ _this2.setChecked(x.children);
3484
3531
  } else {
3485
3532
  _this.$set(x, 'checked', false);
3486
3533
  }
@@ -3500,13 +3547,13 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3500
3547
  });
3501
3548
  },
3502
3549
  setChecked: function setChecked(list) {
3503
- var _this4 = this;
3550
+ var _this3 = this;
3504
3551
 
3505
3552
  list.map(function (x) {
3506
3553
  if (x.children && x.children.length > 0) {
3507
- _this4.setChecked(x.children);
3554
+ _this3.setChecked(x.children);
3508
3555
  } else {
3509
- _this4.$set(x, 'checked', false);
3556
+ _this3.$set(x, 'checked', false);
3510
3557
  }
3511
3558
  });
3512
3559
  },
@@ -3546,18 +3593,18 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3546
3593
  * @author liufan
3547
3594
  */
3548
3595
  onSearch: function onSearch() {
3549
- var _this5 = this;
3596
+ var _this4 = this;
3550
3597
 
3551
3598
  if (this.timer != null) {
3552
3599
  clearTimeout(this.timer);
3553
3600
  }
3554
3601
  this.timer = setTimeout(function () {
3555
- if (_this5.$listeners.search) {
3556
- _this5.oldIsSearch = _this5.isSearch;
3557
- _this5.isSearch = !_this5.isSearch;
3558
- _this5.$emit('search', _this5.namelike);
3602
+ if (_this4.$listeners.search) {
3603
+ _this4.oldIsSearch = _this4.isSearch;
3604
+ _this4.isSearch = !_this4.isSearch;
3605
+ _this4.$emit('search', _this4.namelike);
3559
3606
  } else {
3560
- _this5.getContent();
3607
+ _this4.getContent();
3561
3608
  }
3562
3609
  }, 1000);
3563
3610
  },
@@ -3569,7 +3616,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3569
3616
  * @author liufan
3570
3617
  */
3571
3618
  getContent: function getContent(name) {
3572
- var _this6 = this;
3619
+ var _this5 = this;
3573
3620
 
3574
3621
  if (name) {
3575
3622
  this.label = name;
@@ -3598,40 +3645,40 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3598
3645
  filid: this.filid
3599
3646
  }, this.newParam)
3600
3647
  }).then(function (res) {
3601
- _this6.$toast.clear();
3648
+ _this5.$toast.clear();
3602
3649
  var rCode = res.rCode,
3603
3650
  msg = res.msg;
3604
3651
 
3605
3652
  if (rCode == 0) {
3606
- if (typeof _this6.selectList == 'string') {
3607
- _this6.selectData = [];
3608
- _this6.list = _this6.getSelectData(res.results);
3609
- _this6.$emit('update:selectList', _this6.list);
3653
+ if (typeof _this5.selectList == 'string') {
3654
+ _this5.selectData = [];
3655
+ _this5.list = _this5.getSelectData(res.results);
3656
+ _this5.$emit('update:selectList', _this5.list);
3610
3657
  }
3611
- _this6.personnel = res.results;
3612
- var _this = _this6;
3613
- _this6.list.filter(function (r) {
3658
+ _this5.personnel = res.results;
3659
+ var _this = _this5;
3660
+ _this5.list.filter(function (r) {
3614
3661
  _this.personnel.find(function (i) {
3615
3662
  if (i[_this.valueKey] === r[_this.valueKey]) {
3616
3663
  _this.$set(i, 'checked', true);
3617
3664
  }
3618
3665
  });
3619
3666
  });
3620
- _this6.genre = res.results;
3667
+ _this5.genre = res.results;
3621
3668
  } else {
3622
- _this6.$toast(msg);
3669
+ _this5.$toast(msg);
3623
3670
  }
3624
3671
  });
3625
3672
  },
3626
3673
  getSelectData: function getSelectData(data) {
3627
- var _this7 = this;
3674
+ var _this6 = this;
3628
3675
 
3629
3676
  var _this = this;
3630
3677
  var user = this.selectList.split(',');
3631
3678
  user.map(function (x) {
3632
3679
  data.map(function (i) {
3633
3680
  if (i[_this.valueKey] == x) {
3634
- _this7.selectData.push(i);
3681
+ _this6.selectData.push(i);
3635
3682
  } else if (i.children) {
3636
3683
  _this.getSelectData(i.children);
3637
3684
  }
@@ -3640,7 +3687,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3640
3687
  return this.selectData;
3641
3688
  },
3642
3689
  getData: function getData(obj) {
3643
- var _this8 = this;
3690
+ var _this7 = this;
3644
3691
 
3645
3692
  var params = _extends({}, this.newParam, {
3646
3693
  pid: obj[this.valueKey],
@@ -3659,24 +3706,41 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3659
3706
  params: params
3660
3707
  }).then(function (res) {
3661
3708
  if (res.rCode == 0) {
3662
- _this8.$set(obj, 'children', res.results);
3663
- var _this = _this8;
3664
- _this8.selectList.filter(function (r) {
3709
+ if (res.results.length > 0 && res.results[0].nocheck == false && _this7.isAllCheck) {
3710
+ res.results.unshift({
3711
+ showshortname: '全选',
3712
+ checked: false,
3713
+ isAllCheck: true,
3714
+ id: util["a" /* default */].generateUUID(),
3715
+ parentshowid: res.results[0].parentshowid
3716
+ });
3717
+ }
3718
+ _this7.$set(obj, 'children', res.results);
3719
+ var _this = _this7;
3720
+ _this7.selectList.filter(function (r) {
3665
3721
  obj.children.find(function (i) {
3666
3722
  if (i[_this.valueKey] === r[_this.valueKey]) {
3667
3723
  _this.$set(i, 'checked', true);
3668
3724
  }
3669
3725
  });
3670
3726
  });
3727
+ if (_this7.isAllCheck) {
3728
+ var checkList = obj.children.slice(1, obj.children.length).filter(function (x) {
3729
+ return x.checked;
3730
+ });
3731
+ if (checkList.length === obj.children.slice(1, obj.children.length).length) {
3732
+ _this.$set(obj.children[0], 'checked', true);
3733
+ }
3734
+ }
3671
3735
  }
3672
- _this8.$toast.clear();
3736
+ _this7.$toast.clear();
3673
3737
  });
3674
3738
  },
3675
3739
  getChiled: function getChiled(res, isStart, key) {
3676
- var _this9 = this;
3740
+ var _this8 = this;
3677
3741
 
3678
3742
  var _that = this;
3679
- var data = _that.$listeners[key](res.obj, !!res.obj.children);
3743
+ var data = _that.$listeners[key] ? _that.$listeners[key](res.obj, !!res.obj.children) : undefined;
3680
3744
  if (!isStart) {
3681
3745
  if (res.obj.open) {
3682
3746
  this.$set(res.obj, 'open', false);
@@ -3713,9 +3777,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3713
3777
  _that.$set(i, 'checked', false);
3714
3778
  });
3715
3779
  }
3716
- _this9.$toast.clear();
3780
+ _this8.$toast.clear();
3717
3781
  }).catch(function (err) {
3718
- _this9.$toast('数据返回错误');
3782
+ _this8.$toast('数据返回错误');
3719
3783
  });
3720
3784
  } else {
3721
3785
  data.map(function (x) {
@@ -3748,14 +3812,17 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3748
3812
  var _that = this;
3749
3813
  _that.oldIsSearch = _that.isSearch;
3750
3814
  // debugger
3751
- if (this.$listeners['node-click'] && this.$listeners['left-icon']) {
3815
+ if (this.$listeners['node-click'] && (this.$listeners['left-icon'] || this.showMore && !this.isDefaultNode)) {
3752
3816
  if (this.$listeners['left-icon'] && !isNode) {
3753
3817
  this.getChiled(res, isStart, 'left-icon');
3818
+ } else if (this.showMore && !isNode) {
3819
+ this.getChiled(res, isStart, 'right-icon');
3754
3820
  }
3755
3821
  isNode && _that.$listeners['node-click'](res.obj, !!res.obj.children);
3756
- } else if (this.$listeners['node-click'] || this.$listeners['left-icon']) {
3822
+ } else if (this.$listeners['node-click'] || this.$listeners['left-icon'] || this.showMore && !this.isDefaultNode) {
3757
3823
  isNode && this.$listeners['node-click'] && this.getChiled(res, isStart, 'node-click');
3758
3824
  this.$listeners['left-icon'] && !isNode && this.getChiled(res, isStart, 'left-icon');
3825
+ this.showMore && !this.isDefaultNode && !isNode && this.getChiled(res, isStart, 'right-icon');
3759
3826
  } else {
3760
3827
  if (!isStart) {
3761
3828
  if (res.obj.open) {
@@ -3769,23 +3836,59 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3769
3836
  }
3770
3837
  }
3771
3838
  },
3772
- checked: function checked(res) {
3839
+ checked: function checked(res, model) {
3840
+ var _this9 = this;
3841
+
3773
3842
  this.oldIsSearch = this.isSearch;
3774
3843
  if (res.obj.checked) {
3775
- for (var i in this.list) {
3776
- if (this.list[i][this.valueKey] == res.obj[this.valueKey]) {
3777
- this.list.splice(i, 1);
3844
+ if (res.obj.isAllCheck) {
3845
+ model.map(function (x) {
3846
+ for (var i in _this9.list) {
3847
+ if (_this9.list[i][_this9.valueKey] == x[_this9.valueKey]) {
3848
+ _this9.list.splice(i, 1);
3849
+ }
3850
+ }
3851
+ _this9.$set(x, 'checked', false);
3852
+ });
3853
+ } else {
3854
+ for (var i in this.list) {
3855
+ if (this.list[i][this.valueKey] == res.obj[this.valueKey]) {
3856
+ this.list.splice(i, 1);
3857
+ }
3778
3858
  }
3859
+ this.$set(res.obj, 'checked', false);
3779
3860
  }
3780
-
3781
- this.$set(res.obj, 'checked', false);
3782
3861
  } else {
3783
3862
  if (!this.multiple && this.list.length >= 1) {
3784
3863
  this.$toast(this.promptText);
3785
3864
  return;
3786
3865
  }
3787
- this.$set(res.obj, 'checked', true);
3788
- this.list.unshift(res.obj);
3866
+ if (res.obj.isAllCheck) {
3867
+ var _list;
3868
+
3869
+ model.map(function (x) {
3870
+ _this9.$set(x, 'checked', true);
3871
+ });
3872
+ (_list = this.list).unshift.apply(_list, model.slice(1, model.length));
3873
+ } else {
3874
+ this.$set(res.obj, 'checked', true);
3875
+ this.list.unshift(res.obj);
3876
+ }
3877
+ }
3878
+ if (this.isAllCheck) {
3879
+ var checkList = model.slice(1, model.length).filter(function (x) {
3880
+ return x.checked;
3881
+ });
3882
+ var obj = {};
3883
+ this.list = this.list.reduce(function (item, next) {
3884
+ obj[next.showid] ? '' : obj[next.showid] = true && item.push(next);
3885
+ return item;
3886
+ }, []);
3887
+ if (this.isAllCheck && model.length - 1 === checkList.length) {
3888
+ this.$set(model[0], 'checked', true);
3889
+ } else if (this.isAllCheck) {
3890
+ this.$set(model[0], 'checked', false);
3891
+ }
3789
3892
  }
3790
3893
  },
3791
3894
  dispose: function dispose() {
@@ -3814,8 +3917,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3814
3917
 
3815
3918
  var selector_tree_component = Object(componentNormalizer["a" /* default */])(
3816
3919
  src_selector_treevue_type_script_lang_js_,
3817
- selector_treevue_type_template_id_389241ee_render,
3818
- selector_treevue_type_template_id_389241ee_staticRenderFns,
3920
+ selector_treevue_type_template_id_f38968a6_render,
3921
+ selector_treevue_type_template_id_f38968a6_staticRenderFns,
3819
3922
  false,
3820
3923
  null,
3821
3924
  null,
@@ -4295,6 +4398,8 @@ var selector_field_component = Object(componentNormalizer["a" /* default */])(
4295
4398
  //
4296
4399
  //
4297
4400
  //
4401
+ //
4402
+ //
4298
4403
 
4299
4404
 
4300
4405
 
@@ -4340,6 +4445,7 @@ var selector_field_component = Object(componentNormalizer["a" /* default */])(
4340
4445
  },
4341
4446
  mounted: function mounted() {
4342
4447
  // this.selectList = this.value
4448
+ // console.log(this)
4343
4449
  },
4344
4450
 
4345
4451
  methods: {
@@ -1910,7 +1910,6 @@ var base = {
1910
1910
  // CONCATENATED MODULE: ./src/utils/http.js
1911
1911
 
1912
1912
  var http_request = function request(options) {
1913
- console.log(options, 'options');
1914
1913
  var fn = void 0;
1915
1914
  switch (options.type) {
1916
1915
  case 'post':
package/lib/table.js CHANGED
@@ -1798,7 +1798,6 @@ var base = {
1798
1798
  // CONCATENATED MODULE: ./src/utils/http.js
1799
1799
 
1800
1800
  var http_request = function request(options) {
1801
- console.log(options, 'options');
1802
1801
  var fn = void 0;
1803
1802
  switch (options.type) {
1804
1803
  case 'post':
package/lib/utils/http.js CHANGED
@@ -9,7 +9,6 @@ var _axios2 = _interopRequireDefault(_axios);
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
 
11
11
  var request = function request(options) {
12
- console.log(options, 'options');
13
12
  var fn = void 0;
14
13
  switch (options.type) {
15
14
  case 'post':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -13,6 +13,7 @@
13
13
  v-bind="$attrs"
14
14
  v-on="$listeners"
15
15
  :showTree="showTree"
16
+ :showMore="$listeners['left-icon'] == undefined"
16
17
  :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
17
18
  :selectList="selectList"
18
19
  @dispose="handleDispose"
@@ -28,7 +29,8 @@
28
29
  v-bind="$attrs"
29
30
  v-on="$listeners"
30
31
  :showTree="showTree"
31
- :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
32
+ :showMore="$listeners['left-icon'] == undefined"
33
+ :isTreeIcon=" $scopedSlots['tree-icon'] != undefined"
32
34
  :selectList.sync="selectList"
33
35
  @dispose="handleDispose"
34
36
  @close="handleDispose()"
@@ -82,6 +84,7 @@ export default {
82
84
  },
83
85
  mounted() {
84
86
  // this.selectList = this.value
87
+ // console.log(this)
85
88
  },
86
89
  methods: {
87
90
  handleSelector() {