eoss-mobiles 0.2.69 → 0.2.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/checkbox.js +0 -2
  2. package/lib/eoss-mobile.common.js +603 -320
  3. package/lib/esign.js +3 -3
  4. package/lib/field.js +7 -3
  5. package/lib/flow-btn.js +3 -7
  6. package/lib/flow-list.js +0 -2
  7. package/lib/flow.js +8 -12
  8. package/lib/form.js +2 -5
  9. package/lib/index.js +1 -1
  10. package/lib/picker.js +127 -41
  11. package/lib/radio.js +0 -2
  12. package/lib/retrial-auth.js +0 -2
  13. package/lib/selector.js +422 -224
  14. package/lib/table-column.js +0 -2
  15. package/lib/table.js +0 -2
  16. package/lib/theme-chalk/flow.css +1 -1
  17. package/lib/theme-chalk/index.css +1 -1
  18. package/lib/theme-chalk/picker.css +1 -1
  19. package/lib/theme-chalk/selector.css +1 -1
  20. package/lib/theme-chalk/tree.css +1 -1
  21. package/lib/utils/http.js +0 -1
  22. package/lib/utils/util.js +0 -1
  23. package/package.json +1 -1
  24. package/packages/esign/src/main.vue +1 -1
  25. package/packages/field/src/main.vue +2 -1
  26. package/packages/flow/src/components/Opinion.vue +1 -2
  27. package/packages/flow/src/flowMix.js +0 -1
  28. package/packages/flow-btn/src/main.vue +0 -1
  29. package/packages/form/src/main.vue +163 -166
  30. package/packages/picker/src/main.vue +48 -2
  31. package/packages/selector/src/main.vue +64 -25
  32. package/packages/selector/src/selector-field.vue +6 -2
  33. package/packages/selector/src/selector-tree.vue +48 -3
  34. package/packages/selector/src/tree.vue +120 -41
  35. package/packages/theme-chalk/lib/flow.css +1 -1
  36. package/packages/theme-chalk/lib/index.css +1 -1
  37. package/packages/theme-chalk/lib/picker.css +1 -1
  38. package/packages/theme-chalk/lib/selector.css +1 -1
  39. package/packages/theme-chalk/lib/tree.css +1 -1
  40. package/packages/theme-chalk/src/picker.scss +15 -11
  41. package/packages/theme-chalk/src/selector.scss +11 -1
  42. package/packages/theme-chalk/src/tree.scss +14 -2
  43. package/src/index.js +1 -1
  44. package/src/utils/http.js +0 -1
  45. package/src/utils/util.js +0 -1
package/lib/selector.js CHANGED
@@ -659,7 +659,6 @@ var formatDate = function formatDate(date, fmt) {
659
659
  'q+': quarter[Math.ceil((obj.getMonth() + 1) / 3) - 1], // 季度
660
660
  S: obj.getMilliseconds() // 毫秒
661
661
  };
662
- console.log(o, 'o');
663
662
  if (/(y+)/.test(fmt)) {
664
663
  fmt = fmt.replace(RegExp.$1, (obj.getFullYear() + '').substr(4 - RegExp.$1.length));
665
664
  }
@@ -1936,7 +1935,6 @@ var base = {
1936
1935
 
1937
1936
  var http_request = function request(options) {
1938
1937
  var fn = void 0;
1939
- console.log(options, 'sss');
1940
1938
  switch (options.type) {
1941
1939
  case 'post':
1942
1940
  fn = axios.post(options.url, options.params, options.headers, options.format, options.isData, options.isParams);
@@ -2048,7 +2046,7 @@ module.exports = require("sm-crypto");
2048
2046
  // ESM COMPAT FLAG
2049
2047
  __webpack_require__.r(__webpack_exports__);
2050
2048
 
2051
- // 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&
2049
+ // 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=76152aac&
2052
2050
  var render = function () {
2053
2051
  var _vm = this
2054
2052
  var _h = _vm.$createElement
@@ -2062,7 +2060,7 @@ var render = function () {
2062
2060
  "selector-field",
2063
2061
  _vm._b(
2064
2062
  {
2065
- attrs: { data: _vm.selectList },
2063
+ attrs: { "input-value": _vm.inputValue, data: _vm.selectList },
2066
2064
  on: { change: _vm.handleChangeSel, click: _vm.handleSelector },
2067
2065
  },
2068
2066
  "selector-field",
@@ -2182,10 +2180,10 @@ var staticRenderFns = []
2182
2180
  render._withStripped = true
2183
2181
 
2184
2182
 
2185
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=3fb4f01a&
2183
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=76152aac&
2186
2184
 
2187
- // 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=a75e86e2&
2188
- var selector_treevue_type_template_id_a75e86e2_render = function () {
2185
+ // 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=03f31afd&
2186
+ var selector_treevue_type_template_id_03f31afd_render = function () {
2189
2187
  var _vm = this
2190
2188
  var _h = _vm.$createElement
2191
2189
  var _c = _vm._self._c || _h
@@ -2276,6 +2274,14 @@ var selector_treevue_type_template_id_a75e86e2_render = function () {
2276
2274
  departmentLabelKey: _vm.departmentLabelKey,
2277
2275
  departmentValueKey: _vm.departmentValueKey,
2278
2276
  nodeKey: _vm.nodeKey,
2277
+ showCount: _vm.showCount,
2278
+ countKey: _vm.countKey,
2279
+ showNameIcon: _vm.showNameIcon,
2280
+ nameColor: _vm.nameColor,
2281
+ nameBgColor: _vm.nameBgColor,
2282
+ countPosition: _vm.countPosition,
2283
+ nameSize: _vm.nameSize,
2284
+ unit: _vm.unit,
2279
2285
  isAllCheck: _vm.isAllCheck,
2280
2286
  isTreeIcon: _vm.isTreeIcon,
2281
2287
  showMore: _vm.showMore,
@@ -2352,14 +2358,14 @@ var selector_treevue_type_template_id_a75e86e2_render = function () {
2352
2358
  1
2353
2359
  )
2354
2360
  }
2355
- var selector_treevue_type_template_id_a75e86e2_staticRenderFns = []
2356
- selector_treevue_type_template_id_a75e86e2_render._withStripped = true
2361
+ var selector_treevue_type_template_id_03f31afd_staticRenderFns = []
2362
+ selector_treevue_type_template_id_03f31afd_render._withStripped = true
2357
2363
 
2358
2364
 
2359
- // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=a75e86e2&
2365
+ // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=03f31afd&
2360
2366
 
2361
- // 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=33f22d0d&
2362
- var treevue_type_template_id_33f22d0d_render = function () {
2367
+ // 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=238091c2&
2368
+ var treevue_type_template_id_238091c2_render = function () {
2363
2369
  var _vm = this
2364
2370
  var _h = _vm.$createElement
2365
2371
  var _c = _vm._self._c || _h
@@ -2396,10 +2402,32 @@ var treevue_type_template_id_33f22d0d_render = function () {
2396
2402
  _c("div", { staticClass: "text" }, [
2397
2403
  (item.parentshowid === "" ||
2398
2404
  item.parentshowid === "root") &&
2399
- !_vm.isTreeIcon
2405
+ !_vm.isTreeIcon &&
2406
+ !_vm.showNameIcon
2400
2407
  ? _c("div", { staticClass: "label" })
2401
2408
  : _vm._e(),
2402
- _vm.isTreeIcon
2409
+ _vm.showNameIcon
2410
+ ? _c(
2411
+ "div",
2412
+ {
2413
+ staticClass: "label-name-icon",
2414
+ style: {
2415
+ width: _vm.nameSize + "px",
2416
+ height: _vm.nameSize + "px",
2417
+ color: item.color || _vm.nameColor,
2418
+ backgroundColor:
2419
+ item.bgColor || _vm.nameBgColor,
2420
+ },
2421
+ },
2422
+ [
2423
+ _vm._v(
2424
+ "\n " +
2425
+ _vm._s(item[_vm.labelKey].substring(0, 1)) +
2426
+ "\n "
2427
+ ),
2428
+ ]
2429
+ )
2430
+ : _vm.isTreeIcon
2403
2431
  ? _c(
2404
2432
  "div",
2405
2433
  {
@@ -2433,80 +2461,116 @@ var treevue_type_template_id_33f22d0d_render = function () {
2433
2461
  modifiers: { stop: true },
2434
2462
  },
2435
2463
  ],
2464
+ staticClass: "label-name-text",
2465
+ style: {
2466
+ display:
2467
+ _vm.countPosition === "right"
2468
+ ? "flex"
2469
+ : "unset",
2470
+ flex:
2471
+ _vm.countPosition === "right" ? "1" : "unset",
2472
+ },
2436
2473
  },
2437
2474
  [_vm._v(_vm._s(item[_vm.labelKey]))]
2438
2475
  ),
2476
+ _vm.showCount &&
2477
+ _vm.countPosition === "left" &&
2478
+ item[_vm.countKey]
2479
+ ? _c("span", { staticClass: "selector-left-count" }, [
2480
+ _vm._v(_vm._s(item[_vm.countKey] + _vm.unit)),
2481
+ ])
2482
+ : _vm._e(),
2439
2483
  ]),
2440
- _vm.showMore
2441
- ? _c("van-icon", {
2442
- directives: [
2443
- {
2444
- name: "tap",
2445
- rawName: "v-tap.stop",
2446
- value: {
2447
- methods: _vm.handleClickIcon,
2448
- obj: item,
2484
+ _c(
2485
+ "div",
2486
+ { staticClass: "selector-right" },
2487
+ [
2488
+ _vm.showCount &&
2489
+ _vm.countPosition === "right" &&
2490
+ item[_vm.countKey]
2491
+ ? _c(
2492
+ "span",
2493
+ { staticClass: "selector-right-count" },
2494
+ [_vm._v(_vm._s(item[_vm.countKey] + _vm.unit))]
2495
+ )
2496
+ : _vm._e(),
2497
+ _vm.showMore
2498
+ ? _c("van-icon", {
2499
+ directives: [
2500
+ {
2501
+ name: "tap",
2502
+ rawName: "v-tap.stop",
2503
+ value: {
2504
+ methods: _vm.handleClickIcon,
2505
+ obj: item,
2506
+ },
2507
+ expression:
2508
+ "{ methods: handleClickIcon, obj: item }",
2509
+ modifiers: { stop: true },
2510
+ },
2511
+ ],
2512
+ staticClass: "right",
2513
+ style: {
2514
+ transform: item.open ? "rotate(90deg)" : "",
2449
2515
  },
2450
- expression:
2451
- "{ methods: handleClickIcon, obj: item }",
2452
- modifiers: { stop: true },
2453
- },
2454
- ],
2455
- staticClass: "right",
2456
- attrs: { name: "arrow" },
2457
- })
2458
- : _vm._e(),
2459
- item.checked
2460
- ? _c("i", {
2461
- directives: [
2462
- {
2463
- name: "show",
2464
- rawName: "v-show",
2465
- value:
2466
- (_vm.enterprise ||
2467
- (_vm.department &&
2468
- item[_vm.departmentLabelKey] ==
2469
- _vm.departmentValueKey)) &&
2470
- !_vm.showTree,
2471
- expression:
2472
- "\n (enterprise ||\n (department &&\n item[departmentLabelKey] == departmentValueKey)) &&\n !showTree\n ",
2473
- },
2474
- {
2475
- name: "tap",
2476
- rawName: "v-tap.stop",
2477
- value: { methods: _vm.checke, obj: item },
2478
- expression: "{ methods: checke, obj: item }",
2479
- modifiers: { stop: true },
2480
- },
2481
- ],
2482
- staticClass: "iconfont icon-gou select-icon",
2483
- })
2484
- : _c("i", {
2485
- directives: [
2486
- {
2487
- name: "show",
2488
- rawName: "v-show",
2489
- value:
2490
- (_vm.enterprise ||
2491
- (_vm.department &&
2492
- item[_vm.departmentLabelKey] ==
2493
- _vm.departmentValueKey)) &&
2494
- !_vm.showTree,
2495
- expression:
2496
- "\n (enterprise ||\n (department &&\n item[departmentLabelKey] == departmentValueKey)) &&\n !showTree\n ",
2497
- },
2498
- {
2499
- name: "tap",
2500
- rawName: "v-tap.stop",
2501
- value: { methods: _vm.checke, obj: item },
2502
- expression: "{ methods: checke, obj: item }",
2503
- modifiers: { stop: true },
2504
- },
2505
- ],
2506
- staticClass: "iconfont icon-quan select-icon",
2507
- }),
2508
- ],
2509
- 1
2516
+ attrs: { name: "arrow" },
2517
+ })
2518
+ : _vm._e(),
2519
+ item.checked
2520
+ ? _c("i", {
2521
+ directives: [
2522
+ {
2523
+ name: "show",
2524
+ rawName: "v-show",
2525
+ value:
2526
+ (_vm.enterprise ||
2527
+ (_vm.department &&
2528
+ item[_vm.departmentLabelKey] ==
2529
+ _vm.departmentValueKey)) &&
2530
+ !_vm.showTree,
2531
+ expression:
2532
+ "\n (enterprise ||\n (department &&\n item[departmentLabelKey] == departmentValueKey)) &&\n !showTree\n ",
2533
+ },
2534
+ {
2535
+ name: "tap",
2536
+ rawName: "v-tap.stop",
2537
+ value: { methods: _vm.checke, obj: item },
2538
+ expression:
2539
+ "{ methods: checke, obj: item }",
2540
+ modifiers: { stop: true },
2541
+ },
2542
+ ],
2543
+ staticClass: "iconfont icon-gou select-icon",
2544
+ })
2545
+ : _c("i", {
2546
+ directives: [
2547
+ {
2548
+ name: "show",
2549
+ rawName: "v-show",
2550
+ value:
2551
+ (_vm.enterprise ||
2552
+ (_vm.department &&
2553
+ item[_vm.departmentLabelKey] ==
2554
+ _vm.departmentValueKey)) &&
2555
+ !_vm.showTree,
2556
+ expression:
2557
+ "\n (enterprise ||\n (department &&\n item[departmentLabelKey] == departmentValueKey)) &&\n !showTree\n ",
2558
+ },
2559
+ {
2560
+ name: "tap",
2561
+ rawName: "v-tap.stop",
2562
+ value: { methods: _vm.checke, obj: item },
2563
+ expression:
2564
+ "{ methods: checke, obj: item }",
2565
+ modifiers: { stop: true },
2566
+ },
2567
+ ],
2568
+ staticClass: "iconfont icon-quan select-icon",
2569
+ }),
2570
+ ],
2571
+ 1
2572
+ ),
2573
+ ]
2510
2574
  ),
2511
2575
  item.children && item.children.length > 0
2512
2576
  ? [
@@ -2525,6 +2589,14 @@ var treevue_type_template_id_33f22d0d_render = function () {
2525
2589
  "label-key": _vm.labelKey,
2526
2590
  "value-key": _vm.valueKey,
2527
2591
  showTree: _vm.showTree,
2592
+ showCount: _vm.showCount,
2593
+ countKey: _vm.countKey,
2594
+ showNameIcon: _vm.showNameIcon,
2595
+ nameBgColor: _vm.nameBgColor,
2596
+ countPosition: _vm.countPosition,
2597
+ nameColor: _vm.nameColor,
2598
+ nameSize: _vm.nameSize,
2599
+ unit: _vm.unit,
2528
2600
  showMore: _vm.showMore,
2529
2601
  enterprise: _vm.enterprise,
2530
2602
  isTreeIcon: _vm.isTreeIcon,
@@ -2589,7 +2661,7 @@ var treevue_type_template_id_33f22d0d_render = function () {
2589
2661
  item.sex ||
2590
2662
  item.avatarUrl) &&
2591
2663
  !_vm.isTreeIcon
2592
- ? _c("div", { staticClass: "head" }, [
2664
+ ? _c("div", { staticClass: "em-show-tree-head" }, [
2593
2665
  (item.attr &&
2594
2666
  JSON.parse(item.attr).sex === "0") ||
2595
2667
  item.sex == 0
@@ -2661,11 +2733,11 @@ var treevue_type_template_id_33f22d0d_render = function () {
2661
2733
  0
2662
2734
  )
2663
2735
  }
2664
- var treevue_type_template_id_33f22d0d_staticRenderFns = []
2665
- treevue_type_template_id_33f22d0d_render._withStripped = true
2736
+ var treevue_type_template_id_238091c2_staticRenderFns = []
2737
+ treevue_type_template_id_238091c2_render._withStripped = true
2666
2738
 
2667
2739
 
2668
- // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=33f22d0d&
2740
+ // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=238091c2&
2669
2741
 
2670
2742
  // 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&
2671
2743
  //
@@ -2826,12 +2898,91 @@ treevue_type_template_id_33f22d0d_render._withStripped = true
2826
2898
  //
2827
2899
  //
2828
2900
  //
2901
+ //
2902
+ //
2903
+ //
2904
+ //
2905
+ //
2906
+ //
2907
+ //
2908
+ //
2909
+ //
2910
+ //
2911
+ //
2912
+ //
2913
+ //
2914
+ //
2915
+ //
2916
+ //
2917
+ //
2918
+ //
2919
+ //
2920
+ //
2921
+ //
2922
+ //
2923
+ //
2924
+ //
2925
+ //
2926
+ //
2927
+ //
2928
+ //
2929
+ //
2930
+ //
2931
+ //
2932
+ //
2933
+ //
2934
+ //
2935
+ //
2936
+ //
2937
+ //
2938
+ //
2939
+ //
2940
+ //
2941
+ //
2942
+ //
2943
+ //
2944
+ //
2945
+ //
2946
+ //
2947
+ //
2829
2948
 
2830
2949
  /* harmony default export */ var treevue_type_script_lang_js_ = ({
2831
2950
  name: 'em-tree',
2832
2951
  inheritAttrs: false,
2833
2952
  props: {
2834
2953
  model: Array,
2954
+ nameSize: {
2955
+ type: [String, Number],
2956
+ default: 38
2957
+ },
2958
+ showNameIcon: {
2959
+ type: Boolean,
2960
+ default: false
2961
+ },
2962
+ nameBgColor: {
2963
+ tpe: String,
2964
+ default: ''
2965
+ },
2966
+ countPosition: {
2967
+ type: String,
2968
+ default: 'right'
2969
+ },
2970
+ nameColor: {
2971
+ type: String,
2972
+ default: '#fff'
2973
+ },
2974
+ countKey: {
2975
+ type: String,
2976
+ default: 'count'
2977
+ },
2978
+ showCount: {
2979
+ type: Boolean,
2980
+ default: false
2981
+ },
2982
+ unit: {
2983
+ type: String,
2984
+ default: '人'
2985
+ },
2835
2986
  enterprise: {
2836
2987
  type: Boolean,
2837
2988
  default: false
@@ -2956,8 +3107,8 @@ var componentNormalizer = __webpack_require__(1);
2956
3107
 
2957
3108
  var component = Object(componentNormalizer["a" /* default */])(
2958
3109
  src_treevue_type_script_lang_js_,
2959
- treevue_type_template_id_33f22d0d_render,
2960
- treevue_type_template_id_33f22d0d_staticRenderFns,
3110
+ treevue_type_template_id_238091c2_render,
3111
+ treevue_type_template_id_238091c2_staticRenderFns,
2961
3112
  false,
2962
3113
  null,
2963
3114
  null,
@@ -2976,10 +3127,18 @@ var util = __webpack_require__(0);
2976
3127
  var http = __webpack_require__(3);
2977
3128
 
2978
3129
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=script&lang=js&
2979
- var _methods;
2980
-
2981
3130
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
2982
3131
 
3132
+ var _props, _methods;
3133
+
3134
+ //
3135
+ //
3136
+ //
3137
+ //
3138
+ //
3139
+ //
3140
+ //
3141
+ //
2983
3142
  //
2984
3143
  //
2985
3144
  //
@@ -3077,139 +3236,133 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3077
3236
  components: { EmTree: tree },
3078
3237
  name: 'EmSelectorTree',
3079
3238
  inheritAttrs: false,
3080
- props: {
3239
+ props: (_props = {
3081
3240
  isSelectAll: {
3082
3241
  type: Boolean,
3083
3242
  default: false
3084
3243
  },
3085
- showSearch: {
3086
- type: Boolean,
3087
- default: true
3088
- },
3089
- multiple: {
3090
- type: Boolean, // 判断是否多选
3091
- default: true
3092
- },
3093
- selectList: {
3094
- type: [Array, String], //传入选中数组
3095
- default: function _default() {
3096
- return [];
3097
- }
3098
- },
3099
- isAllCheck: {
3100
- type: Boolean,
3101
- default: false
3244
+ nameSize: {
3245
+ type: [String, Number],
3246
+ default: 38
3102
3247
  },
3103
- // pid: {
3104
- // type: String, // 父id或者是空
3105
- // default: 'root'
3106
- // },
3107
- url: {
3108
- type: String,
3248
+ nameBgColor: {
3249
+ tpe: String,
3109
3250
  default: ''
3110
3251
  },
3111
- param: {
3112
- type: Object,
3113
- default: function _default() {
3114
- return { pid: 'root' };
3115
- }
3116
- },
3117
- // depId:{
3118
- // type: String, //
3119
- // default:''
3120
- // },
3121
- isEnterprise: {
3122
- type: Boolean,
3123
- default: false
3124
- },
3125
- isDepartment: {
3126
- type: Boolean,
3127
- default: false
3128
- },
3129
- departmentLabelKey: {
3130
- type: String,
3131
- default: 'objType'
3132
- },
3133
- departmentValueKey: {
3134
- type: String,
3135
- default: 'department'
3136
- },
3137
- nodeKey: {
3138
- type: String,
3139
- default: 'subNode'
3140
- },
3141
- tabs: {
3142
- type: [String, Object], //enterprise:单位,department:部门,employee:用户
3143
- default: 'employee'
3144
- },
3145
- objType: {
3146
- type: String, // 点击对象类型(enterprise:单位,department:部门,employee:用户,person:人员,persongroup:群组)
3147
- default: 'enterprise'
3148
- },
3149
- isOtherUnit: {
3150
- //是否是其它单位
3151
- type: Boolean,
3152
- default: false
3153
- },
3154
- filid: {
3155
- type: String, // 指定企业
3156
- default: undefined
3157
- },
3158
- type: {
3159
- type: String, // 组件类型
3160
- default: 'components'
3161
- },
3162
- navTitle: {
3252
+ countPosition: {
3163
3253
  type: String,
3164
- default: '请选择'
3165
- },
3166
- showNavBar: {
3167
- type: Boolean,
3168
- default: true
3169
- },
3170
- showTree: {
3171
- type: Boolean,
3172
- default: true
3173
- },
3174
- showMore: {
3175
- type: Boolean,
3176
- default: true
3254
+ default: 'right'
3177
3255
  },
3178
- isTreeIcon: {
3256
+ showNameIcon: {
3179
3257
  type: Boolean,
3180
3258
  default: false
3181
3259
  },
3182
- isBgColor: {
3183
- type: Boolean,
3184
- default: true
3185
- },
3186
- promptText: {
3260
+ nameColor: {
3187
3261
  type: String,
3188
- default: '只能选择一个'
3189
- },
3190
- listKey: {
3191
- type: String,
3192
- default: ''
3193
- },
3194
- valueKey: {
3195
- type: String,
3196
- default: 'showid'
3197
- },
3198
- labelKey: {
3199
- type: String,
3200
- default: 'showshortname'
3201
- },
3202
- paddingTop: {
3203
- type: [String, Number],
3204
- default: 0
3205
- },
3206
- isDefaultNode: {
3207
- type: Boolean,
3208
- default: true
3209
- },
3210
- nodeList: Array,
3211
- baseUrl: String
3212
- },
3262
+ default: '#fff'
3263
+ }
3264
+ }, _props['showNameIcon'] = {
3265
+ type: Boolean,
3266
+ default: false
3267
+ }, _props.countKey = {
3268
+ type: String,
3269
+ default: 'count'
3270
+ }, _props.showCount = {
3271
+ type: Boolean,
3272
+ default: false
3273
+ }, _props.unit = {
3274
+ type: String,
3275
+ default: '人'
3276
+ }, _props.showSearch = {
3277
+ type: Boolean,
3278
+ default: true
3279
+ }, _props.multiple = {
3280
+ type: Boolean, // 判断是否多选
3281
+ default: true
3282
+ }, _props.selectList = {
3283
+ type: [Array, String], //传入选中数组
3284
+ default: function _default() {
3285
+ return [];
3286
+ }
3287
+ }, _props.isAllCheck = {
3288
+ type: Boolean,
3289
+ default: false
3290
+ }, _props.url = {
3291
+ type: String,
3292
+ default: ''
3293
+ }, _props.param = {
3294
+ type: Object,
3295
+ default: function _default() {
3296
+ return { pid: 'root' };
3297
+ }
3298
+ }, _props.isEnterprise = {
3299
+ type: Boolean,
3300
+ default: false
3301
+ }, _props.isDepartment = {
3302
+ type: Boolean,
3303
+ default: false
3304
+ }, _props.departmentLabelKey = {
3305
+ type: String,
3306
+ default: 'objType'
3307
+ }, _props.departmentValueKey = {
3308
+ type: String,
3309
+ default: 'department'
3310
+ }, _props.nodeKey = {
3311
+ type: String,
3312
+ default: 'subNode'
3313
+ }, _props.tabs = {
3314
+ type: [String, Object], //enterprise:单位,department:部门,employee:用户
3315
+ default: 'employee'
3316
+ }, _props.objType = {
3317
+ type: String, // 点击对象类型(enterprise:单位,department:部门,employee:用户,person:人员,persongroup:群组)
3318
+ default: 'enterprise'
3319
+ }, _props.isOtherUnit = {
3320
+ //是否是其它单位
3321
+ type: Boolean,
3322
+ default: false
3323
+ }, _props.filid = {
3324
+ type: String, // 指定企业
3325
+ default: undefined
3326
+ }, _props.type = {
3327
+ type: String, // 组件类型
3328
+ default: 'components'
3329
+ }, _props.navTitle = {
3330
+ type: String,
3331
+ default: '请选择'
3332
+ }, _props.showNavBar = {
3333
+ type: Boolean,
3334
+ default: true
3335
+ }, _props.showTree = {
3336
+ type: Boolean,
3337
+ default: true
3338
+ }, _props.showMore = {
3339
+ type: Boolean,
3340
+ default: true
3341
+ }, _props.isTreeIcon = {
3342
+ type: Boolean,
3343
+ default: false
3344
+ }, _props.isBgColor = {
3345
+ type: Boolean,
3346
+ default: true
3347
+ }, _props.promptText = {
3348
+ type: String,
3349
+ default: '只能选择一个'
3350
+ }, _props.listKey = {
3351
+ type: String,
3352
+ default: ''
3353
+ }, _props.valueKey = {
3354
+ type: String,
3355
+ default: 'showid'
3356
+ }, _props.labelKey = {
3357
+ type: String,
3358
+ default: 'showshortname'
3359
+ }, _props.paddingTop = {
3360
+ type: [String, Number],
3361
+ default: 0
3362
+ }, _props.isDefaultNode = {
3363
+ type: Boolean,
3364
+ default: true
3365
+ }, _props.nodeList = Array, _props.baseUrl = String, _props),
3213
3366
  data: function data() {
3214
3367
  return {
3215
3368
  genre: '',
@@ -3803,7 +3956,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3803
3956
  }
3804
3957
  }
3805
3958
  var newData = res.obj;
3806
- if (!newData.children && !isStart) {
3959
+ if ((!newData.children || newData.children.length == 0) && !isStart) {
3807
3960
  if (this.nodeList && this.nodeList.length > 0) {
3808
3961
  this.$toast.loading({
3809
3962
  message: '加载中...',
@@ -3856,7 +4009,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3856
4009
  this.$toast.clear();
3857
4010
  }
3858
4011
  } else {
3859
- if (!res.obj.children) {
4012
+ if (!res.obj.children || res.obj.children.length == 0) {
3860
4013
  this.getData(res.obj);
3861
4014
  }
3862
4015
  }
@@ -3990,8 +4143,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3990
4143
 
3991
4144
  var selector_tree_component = Object(componentNormalizer["a" /* default */])(
3992
4145
  src_selector_treevue_type_script_lang_js_,
3993
- selector_treevue_type_template_id_a75e86e2_render,
3994
- selector_treevue_type_template_id_a75e86e2_staticRenderFns,
4146
+ selector_treevue_type_template_id_03f31afd_render,
4147
+ selector_treevue_type_template_id_03f31afd_staticRenderFns,
3995
4148
  false,
3996
4149
  null,
3997
4150
  null,
@@ -4000,8 +4153,8 @@ var selector_tree_component = Object(componentNormalizer["a" /* default */])(
4000
4153
  )
4001
4154
 
4002
4155
  /* harmony default export */ var selector_tree = (selector_tree_component.exports);
4003
- // 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-field.vue?vue&type=template&id=eed3d698&
4004
- var selector_fieldvue_type_template_id_eed3d698_render = function () {
4156
+ // 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-field.vue?vue&type=template&id=b340cbe8&
4157
+ var selector_fieldvue_type_template_id_b340cbe8_render = function () {
4005
4158
  var _vm = this
4006
4159
  var _h = _vm.$createElement
4007
4160
  var _c = _vm._self._c || _h
@@ -4024,6 +4177,13 @@ var selector_fieldvue_type_template_id_eed3d698_render = function () {
4024
4177
  _vm.clickTree()
4025
4178
  },
4026
4179
  },
4180
+ model: {
4181
+ value: _vm.inputValue,
4182
+ callback: function ($$v) {
4183
+ _vm.inputValue = $$v
4184
+ },
4185
+ expression: "inputValue",
4186
+ },
4027
4187
  },
4028
4188
  "em-input",
4029
4189
  _vm.$attrs,
@@ -4164,11 +4324,11 @@ var selector_fieldvue_type_template_id_eed3d698_render = function () {
4164
4324
  1
4165
4325
  )
4166
4326
  }
4167
- var selector_fieldvue_type_template_id_eed3d698_staticRenderFns = []
4168
- selector_fieldvue_type_template_id_eed3d698_render._withStripped = true
4327
+ var selector_fieldvue_type_template_id_b340cbe8_staticRenderFns = []
4328
+ selector_fieldvue_type_template_id_b340cbe8_render._withStripped = true
4169
4329
 
4170
4330
 
4171
- // CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=eed3d698&
4331
+ // CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=b340cbe8&
4172
4332
 
4173
4333
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=script&lang=js&
4174
4334
  //
@@ -4245,6 +4405,7 @@ selector_fieldvue_type_template_id_eed3d698_render._withStripped = true
4245
4405
  //
4246
4406
  //
4247
4407
  //
4408
+ //
4248
4409
 
4249
4410
  /* harmony default export */ var selector_fieldvue_type_script_lang_js_ = ({
4250
4411
  name: 'selectorField',
@@ -4265,6 +4426,10 @@ selector_fieldvue_type_template_id_eed3d698_render._withStripped = true
4265
4426
  type: Boolean,
4266
4427
  default: false
4267
4428
  },
4429
+ inputValue: {
4430
+ type: String,
4431
+ default: ''
4432
+ },
4268
4433
  readonly: { type: Boolean, default: false },
4269
4434
  selectDisabled: {
4270
4435
  type: Boolean,
@@ -4355,7 +4520,6 @@ selector_fieldvue_type_template_id_eed3d698_render._withStripped = true
4355
4520
  }, []);
4356
4521
  },
4357
4522
  handleChange: function handleChange(val, info) {
4358
- console.log('点击了');
4359
4523
  var _this = this;
4360
4524
  if (_this.multiple) {
4361
4525
  if (info.checked) {
@@ -4429,8 +4593,8 @@ selector_fieldvue_type_template_id_eed3d698_render._withStripped = true
4429
4593
 
4430
4594
  var selector_field_component = Object(componentNormalizer["a" /* default */])(
4431
4595
  src_selector_fieldvue_type_script_lang_js_,
4432
- selector_fieldvue_type_template_id_eed3d698_render,
4433
- selector_fieldvue_type_template_id_eed3d698_staticRenderFns,
4596
+ selector_fieldvue_type_template_id_b340cbe8_render,
4597
+ selector_fieldvue_type_template_id_b340cbe8_staticRenderFns,
4434
4598
  false,
4435
4599
  null,
4436
4600
  null,
@@ -4485,6 +4649,23 @@ var selector_field_component = Object(componentNormalizer["a" /* default */])(
4485
4649
  //
4486
4650
  //
4487
4651
  //
4652
+ //
4653
+ //
4654
+ //
4655
+ //
4656
+ //
4657
+ //
4658
+ //
4659
+ //
4660
+ //
4661
+ //
4662
+ //
4663
+ //
4664
+ //
4665
+ //
4666
+ //
4667
+ //
4668
+ //
4488
4669
 
4489
4670
 
4490
4671
 
@@ -4503,7 +4684,8 @@ var selector_field_component = Object(componentNormalizer["a" /* default */])(
4503
4684
  },
4504
4685
  data: function data() {
4505
4686
  return {
4506
- showSelectorTree: false
4687
+ showSelectorTree: false,
4688
+ inputValue: ''
4507
4689
  // newSelectList:[]
4508
4690
  };
4509
4691
  },
@@ -4547,10 +4729,16 @@ var selector_field_component = Object(componentNormalizer["a" /* default */])(
4547
4729
  * @param {Object} val 选中的人员/单位
4548
4730
  */
4549
4731
  handleDispose: function handleDispose(val) {
4732
+ this.inputValue = '';
4550
4733
  if (val) {
4551
4734
  var list = val.list;
4552
4735
 
4553
4736
  this.selectList = list;
4737
+ if (val.list.length > 0) {
4738
+ this.inputValue = list[0][this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'];
4739
+ } else {
4740
+ this.inputValue = '';
4741
+ }
4554
4742
  }
4555
4743
  this.showSelectorTree = false;
4556
4744
  },
@@ -4563,6 +4751,16 @@ var selector_field_component = Object(componentNormalizer["a" /* default */])(
4563
4751
  * @param {Array} val 变化后的选中数据
4564
4752
  */
4565
4753
  handleChangeSel: function handleChangeSel(val) {
4754
+ if (val) {
4755
+ var list = val.list;
4756
+
4757
+ this.selectList = list;
4758
+ if (val.list.length > 0) {
4759
+ this.inputValue = list[0][this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'];
4760
+ } else {
4761
+ this.inputValue = '';
4762
+ }
4763
+ }
4566
4764
  this.$emit('input', val.list);
4567
4765
  }
4568
4766
  }