eoss-ui 0.5.74 → 0.5.76

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 (72) hide show
  1. package/lib/button-group.js +125 -23
  2. package/lib/button.js +125 -23
  3. package/lib/checkbox-group.js +125 -23
  4. package/lib/data-table-form.js +125 -23
  5. package/lib/data-table.js +155 -40
  6. package/lib/date-picker.js +125 -23
  7. package/lib/dialog.js +125 -23
  8. package/lib/eoss-ui.common.js +520 -296
  9. package/lib/flow-group.js +125 -23
  10. package/lib/flow-list.js +136 -31
  11. package/lib/flow.js +125 -23
  12. package/lib/form.js +125 -23
  13. package/lib/handle-user.js +125 -23
  14. package/lib/handler.js +125 -23
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +124 -22
  17. package/lib/input.js +141 -29
  18. package/lib/login.js +293 -143
  19. package/lib/main.js +125 -23
  20. package/lib/nav.js +125 -23
  21. package/lib/page.js +125 -23
  22. package/lib/player.js +125 -23
  23. package/lib/qr-code.js +178 -59
  24. package/lib/radio-group.js +125 -23
  25. package/lib/retrial-auth.js +125 -23
  26. package/lib/select-ganged.js +125 -23
  27. package/lib/select.js +140 -28
  28. package/lib/selector-panel.js +125 -23
  29. package/lib/selector.js +125 -23
  30. package/lib/sizer.js +125 -23
  31. package/lib/steps.js +125 -23
  32. package/lib/switch.js +124 -22
  33. package/lib/table-form.js +125 -23
  34. package/lib/tabs.js +125 -23
  35. package/lib/theme-chalk/base.css +1 -1
  36. package/lib/theme-chalk/index.css +1 -1
  37. package/lib/theme-chalk/login.css +1 -1
  38. package/lib/theme-chalk/main.css +1 -1
  39. package/lib/theme-chalk/menu.css +1 -1
  40. package/lib/theme-chalk/sizer.css +1 -1
  41. package/lib/theme-chalk/upload.css +1 -1
  42. package/lib/tips.js +125 -23
  43. package/lib/toolbar.js +3 -2
  44. package/lib/tree-group.js +159 -57
  45. package/lib/tree.js +140 -26
  46. package/lib/upload.js +125 -23
  47. package/lib/utils/util.js +124 -22
  48. package/lib/wujie.js +125 -23
  49. package/lib/wxlogin.js +152 -34
  50. package/package.json +2 -2
  51. package/packages/data-table/src/main.vue +25 -15
  52. package/packages/flow-list/src/main.vue +63 -41
  53. package/packages/input/src/main.vue +7 -6
  54. package/packages/login/src/main.vue +42 -14
  55. package/packages/qr-code/src/main.vue +48 -37
  56. package/packages/select/src/main.vue +6 -5
  57. package/packages/theme-chalk/lib/base.css +1 -1
  58. package/packages/theme-chalk/lib/index.css +1 -1
  59. package/packages/theme-chalk/lib/login.css +1 -1
  60. package/packages/theme-chalk/lib/main.css +1 -1
  61. package/packages/theme-chalk/lib/menu.css +1 -1
  62. package/packages/theme-chalk/lib/sizer.css +1 -1
  63. package/packages/theme-chalk/lib/upload.css +1 -1
  64. package/packages/theme-chalk/src/base.scss +3 -0
  65. package/packages/theme-chalk/src/login.scss +862 -376
  66. package/packages/theme-chalk/src/main.scss +5 -2
  67. package/packages/toolbar/src/main.vue +16 -6
  68. package/packages/tree/src/main.vue +13 -1
  69. package/packages/tree-group/src/main.vue +24 -37
  70. package/packages/wxlogin/src/main.vue +30 -12
  71. package/src/index.js +1 -1
  72. package/src/utils/util.js +138 -23
@@ -620,6 +620,35 @@ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
620
620
  return workdays;
621
621
  };
622
622
 
623
+ /**
624
+ * chunkToChinese
625
+ * @desc 将四位数的整数转换为中文大写
626
+ * @param {number} chunk - 数字
627
+ **/
628
+ function chunkToChinese(chunk) {
629
+ var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
630
+ var capitalDigits = ['', '拾', '佰', '仟'];
631
+
632
+ var result = '';
633
+ var digitIndex = 0;
634
+
635
+ while (chunk > 0) {
636
+ var digit = chunk % 10;
637
+ if (digit > 0) {
638
+ result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
639
+ } else {
640
+ // 当前数字是零,需要判断是否需要添加零
641
+ if (result.charAt(0) !== '零') {
642
+ result = '零' + result;
643
+ }
644
+ }
645
+ chunk = Math.floor(chunk / 10);
646
+ digitIndex++;
647
+ }
648
+
649
+ return result;
650
+ }
651
+
623
652
  /**
624
653
  * concatenate
625
654
  * @desc 指定连接符合并文本
@@ -1815,6 +1844,31 @@ var getWeekday = function getWeekday(date) {
1815
1844
  return adjustedDay === 0 ? 7 : adjustedDay;
1816
1845
  };
1817
1846
 
1847
+ /**
1848
+ * getZoom
1849
+ * @desc 获取缩放比
1850
+ * @param {number} n - 可选参数,表示星期的起始日,0 表示星期天,1 表示星期一,以此类推,默认为 0
1851
+ **/
1852
+ var getZoom = function getZoom() {
1853
+ var ratio = 0;
1854
+ var screen = window.screen;
1855
+ var ua = navigator.userAgent.toLowerCase();
1856
+ if (window.devicePixelRatio !== undefined) {
1857
+ ratio = window.devicePixelRatio;
1858
+ } else if (~ua.indexOf('msie')) {
1859
+ if (screen.deviceXDPI && screen.logicalXDPI) {
1860
+ ratio = screen.deviceXDPI / screen.logicalXDPI;
1861
+ }
1862
+ } else if (window.outerWidth !== undefined && window.innerWidth !== undefined) {
1863
+ ratio = window.outerWidth / window.innerWidth;
1864
+ }
1865
+
1866
+ if (ratio) {
1867
+ ratio = Math.round(ratio * 100);
1868
+ }
1869
+
1870
+ return ratio / 100;
1871
+ };
1818
1872
  /**
1819
1873
  * handlerUrl
1820
1874
  * @desc:更新url参数中的时间戳
@@ -2249,6 +2303,31 @@ var isObject = function isObject(obj) {
2249
2303
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2250
2304
  };
2251
2305
 
2306
+ /**
2307
+ * isObjectEqual
2308
+ * @desc:判断对象是否相等
2309
+ * @author huangbo
2310
+ * @date 2022年5月7日
2311
+ * @param {Object} [obj] - 对象
2312
+ * @param {Object} [_obj] - 对象
2313
+ **/
2314
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2316
+ return false;
2317
+ }
2318
+ var aProps = Object.getOwnPropertyNames(obj);
2319
+ var bProps = Object.getOwnPropertyNames(_obj);
2320
+ if (aProps.length !== bProps.length) {
2321
+ return false;
2322
+ }
2323
+ for (var i in obj) {
2324
+ if (obj[i] !== _obj[i]) {
2325
+ return false;
2326
+ }
2327
+ }
2328
+ return true;
2329
+ };
2330
+
2252
2331
  /**
2253
2332
  * jointUrl
2254
2333
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -2557,32 +2636,53 @@ var rmbToCapital = function rmbToCapital(number) {
2557
2636
 
2558
2637
  return result;
2559
2638
  };
2560
-
2561
- // 辅助函数,将四位数的整数转换为中文大写
2562
- function chunkToChinese(chunk) {
2563
- var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
2564
- var capitalDigits = ['', '拾', '佰', '仟'];
2565
-
2566
- var result = '';
2567
- var digitIndex = 0;
2568
-
2569
- while (chunk > 0) {
2570
- var digit = chunk % 10;
2571
- if (digit > 0) {
2572
- result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
2639
+ /**
2640
+ * setScale
2641
+ * @desc 设置缩放
2642
+ * @param {number} width - 分辨率宽度
2643
+ * @param {number} height - 分辨率高度
2644
+ **/
2645
+ var setScale = function setScale() {
2646
+ var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1920;
2647
+ var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1080;
2648
+
2649
+ var n = 1;
2650
+ var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
2651
+ var zoom = getZoom();
2652
+ if (isMac) {
2653
+ n = 2;
2654
+ } else {
2655
+ n = 1;
2656
+ }
2657
+ if (zoom === 1) {
2658
+ document.body.style.removeProperty('transform');
2659
+ document.body.style.removeProperty('width');
2660
+ document.body.style.removeProperty('height');
2661
+ document.body.style.removeProperty('transform-origin');
2662
+ return;
2663
+ }
2664
+ if (Math.abs(parseInt(width - window.innerWidth * zoom / n, 10)) > 15 && window.innerWidth * zoom / n !== width) {
2665
+ var scale = 'scale(' + window.innerWidth * zoom / width / zoom + ',' + window.innerHeight * zoom / height / zoom + ')';
2666
+ document.body.style.transform = scale;
2667
+ document.body.style.width = width + 'px';
2668
+ document.body.style.height = height + 'px';
2669
+ document.body.style.transformOrigin = '0 0';
2670
+ } else {
2671
+ if (isMac) {
2672
+ var _scale = 'scale(' + 1 * n / zoom + ')';
2673
+ document.body.style.transform = _scale;
2674
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2675
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2676
+ document.body.style.transformOrigin = '0 0';
2573
2677
  } else {
2574
- // 当前数字是零,需要判断是否需要添加零
2575
- if (result.charAt(0) !== '零') {
2576
- result = '零' + result;
2577
- }
2678
+ var _scale2 = 'scale(' + 1 * n / zoom + ')';
2679
+ document.body.style.transform = _scale2;
2680
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2681
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2682
+ document.body.style.transformOrigin = '0 0';
2578
2683
  }
2579
- chunk = Math.floor(chunk / 10);
2580
- digitIndex++;
2581
2684
  }
2582
-
2583
- return result;
2584
- }
2585
-
2685
+ };
2586
2686
  /**
2587
2687
  * sendMessage
2588
2688
  * @desc:向iframe发送信息
@@ -3104,6 +3204,7 @@ var watermark = function watermark(option) {
3104
3204
  isLogged: isLogged,
3105
3205
  isLogined: isLogined,
3106
3206
  isObject: isObject,
3207
+ isObjectEqual: isObjectEqual,
3107
3208
  jointUrl: jointUrl,
3108
3209
  loadJs: loadJs,
3109
3210
  loading: loading,
@@ -3118,6 +3219,7 @@ var watermark = function watermark(option) {
3118
3219
  rmbToCapital: rmbToCapital,
3119
3220
  sendMessage: sendMessage,
3120
3221
  setFavicon: setFavicon,
3222
+ setScale: setScale,
3121
3223
  setStorage: setStorage,
3122
3224
  socket: socket,
3123
3225
  startWith: startWith,
@@ -6707,8 +6809,8 @@ clients_src_main.install = function (Vue) {
6707
6809
  };
6708
6810
 
6709
6811
  /* harmony default export */ var clients = (clients_src_main);
6710
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=7b641b60&
6711
- var mainvue_type_template_id_7b641b60_render = function () {
6812
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=f80417f8&
6813
+ var mainvue_type_template_id_f80417f8_render = function () {
6712
6814
  var _vm = this
6713
6815
  var _h = _vm.$createElement
6714
6816
  var _c = _vm._self._c || _h
@@ -7018,11 +7120,11 @@ var mainvue_type_template_id_7b641b60_render = function () {
7018
7120
  1
7019
7121
  )
7020
7122
  }
7021
- var mainvue_type_template_id_7b641b60_staticRenderFns = []
7022
- mainvue_type_template_id_7b641b60_render._withStripped = true
7123
+ var mainvue_type_template_id_f80417f8_staticRenderFns = []
7124
+ mainvue_type_template_id_f80417f8_render._withStripped = true
7023
7125
 
7024
7126
 
7025
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=7b641b60&
7127
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=f80417f8&
7026
7128
 
7027
7129
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
7028
7130
  var childrenvue_type_template_id_44b7ff61_render = function () {
@@ -9424,7 +9526,8 @@ var mainvue_type_script_lang_js_components, _watch;
9424
9526
  pageSize: 20,
9425
9527
  totalCount: 0
9426
9528
  },
9427
- wheres: {},
9529
+ searchWhere: {},
9530
+ advanceWhere: {},
9428
9531
  tableHeight: 'auto',
9429
9532
  styles: {},
9430
9533
  selected: null,
@@ -9438,6 +9541,9 @@ var mainvue_type_script_lang_js_components, _watch;
9438
9541
  },
9439
9542
 
9440
9543
  computed: {
9544
+ wheres: function wheres() {
9545
+ return data_table_src_mainvue_type_script_lang_js_extends({}, this.searchWhere, this.advanceWhere);
9546
+ },
9441
9547
  params: function params() {
9442
9548
  return data_table_src_mainvue_type_script_lang_js_extends({}, this.param || {}, this.searchValue || {}, this.advanceValue || {});
9443
9549
  },
@@ -9451,12 +9557,14 @@ var mainvue_type_script_lang_js_components, _watch;
9451
9557
  theads: {
9452
9558
  get: function get() {
9453
9559
  var thead = [];
9560
+ var addfilter = false;
9454
9561
  var types = this.theadData.filter(function (item) {
9455
9562
  return item.type == 'selection' || item.type == 'index' || item.type == 'sort';
9456
9563
  }).map(function (item) {
9457
9564
  return item.type;
9458
9565
  });
9459
9566
  if (this.dragSort && !types.includes('sort')) {
9567
+ addfilter = true;
9460
9568
  thead.push({
9461
9569
  type: 'sort',
9462
9570
  key: 'es-sort'
@@ -9470,8 +9578,12 @@ var mainvue_type_script_lang_js_components, _watch;
9470
9578
  fixed: 'left',
9471
9579
  selectable: this.selectable,
9472
9580
  reserveSelection: this.reserveSelection,
9581
+ filterIcon: this.filter && !addfilter ? 'es-icon-biao' : undefined,
9473
9582
  key: 'es-checkbox'
9474
9583
  });
9584
+ if (!addfilter) {
9585
+ addfilter = true;
9586
+ }
9475
9587
  }
9476
9588
  if (this.numbers && !types.includes('index')) {
9477
9589
  var index = 1;
@@ -9487,9 +9599,12 @@ var mainvue_type_script_lang_js_components, _watch;
9487
9599
  align: 'center',
9488
9600
  fixed: 'left',
9489
9601
  index: index,
9490
- filterIcon: this.filter ? 'es-icon-biao' : undefined,
9602
+ filterIcon: this.filter && !addfilter ? 'es-icon-biao' : undefined,
9491
9603
  key: 'es-index'
9492
9604
  });
9605
+ if (!addfilter) {
9606
+ addfilter = true;
9607
+ }
9493
9608
  }
9494
9609
  if (this.theadData.length) {
9495
9610
  thead = [].concat(thead, this.theadData);
@@ -10287,18 +10402,19 @@ var mainvue_type_script_lang_js_components, _watch;
10287
10402
  this.$emit('next', res);
10288
10403
  },
10289
10404
  hanleSearch: function hanleSearch(data) {
10290
- this.wheres = this.response !== undefined ? this.response({
10405
+ this.searchWhere = this.response !== undefined ? this.response({
10291
10406
  type: 'search',
10292
10407
  data: JSON.parse(JSON.stringify(data))
10293
10408
  }) : data;
10294
10409
  if (this.url && this.executeSearch) {
10295
10410
  this.getTableData({ where: this.wheres });
10296
10411
  }
10297
- this.$emit('search', this.wheres);
10412
+ this.$emit('search', this.searchWhere);
10298
10413
  },
10299
10414
  hanleReset: function hanleReset() {
10415
+ this.searchWhere = {};
10416
+ this.advanceWhere = {};
10300
10417
  if (this.url) {
10301
- this.wheres = {};
10302
10418
  this.getTableData();
10303
10419
  }
10304
10420
  this.$emit('reset', this.params);
@@ -10307,21 +10423,20 @@ var mainvue_type_script_lang_js_components, _watch;
10307
10423
  var data = _ref.data,
10308
10424
  show = _ref.show;
10309
10425
 
10310
- var where = this.response !== undefined ? this.response({
10426
+ this.advanceWhere = this.response !== undefined ? this.response({
10311
10427
  type: 'filter',
10312
10428
  data: JSON.parse(JSON.stringify(data))
10313
10429
  }) : data;
10314
- this.wheres = data_table_src_mainvue_type_script_lang_js_extends({}, this.wheres, where);
10315
10430
  if (this.url && this.executeFilter) {
10316
10431
  this.getTableData({ where: this.wheres });
10317
10432
  }
10318
- this.$emit('submit', { data: where, where: this.wheres, show: show });
10433
+ this.$emit('submit', {
10434
+ data: this.advanceWhere,
10435
+ where: this.wheres,
10436
+ show: show
10437
+ });
10319
10438
  },
10320
10439
  hanleCancel: function hanleCancel() {
10321
- // if (this.url && JSON.stringify(this.wheres) !== '{}') {
10322
- // this.wheres = {};
10323
- // this.getTableData();
10324
- // }
10325
10440
  this.$emit('cancel', this.params);
10326
10441
  },
10327
10442
  handleTabs: function handleTabs(_ref2) {
@@ -10455,8 +10570,8 @@ var mainvue_type_script_lang_js_components, _watch;
10455
10570
 
10456
10571
  var data_table_src_main_component = normalizeComponent(
10457
10572
  packages_data_table_src_mainvue_type_script_lang_js_,
10458
- mainvue_type_template_id_7b641b60_render,
10459
- mainvue_type_template_id_7b641b60_staticRenderFns,
10573
+ mainvue_type_template_id_f80417f8_render,
10574
+ mainvue_type_template_id_f80417f8_staticRenderFns,
10460
10575
  false,
10461
10576
  null,
10462
10577
  null,
@@ -43925,8 +44040,8 @@ flow_group_src_main.install = function (Vue) {
43925
44040
  };
43926
44041
 
43927
44042
  /* harmony default export */ var flow_group = (flow_group_src_main);
43928
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-list/src/main.vue?vue&type=template&id=74518680&
43929
- var mainvue_type_template_id_74518680_render = function () {
44043
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-list/src/main.vue?vue&type=template&id=644e2900&
44044
+ var mainvue_type_template_id_644e2900_render = function () {
43930
44045
  var _vm = this
43931
44046
  var _h = _vm.$createElement
43932
44047
  var _c = _vm._self._c || _h
@@ -43952,7 +44067,7 @@ var mainvue_type_template_id_74518680_render = function () {
43952
44067
  _vm.currentUserHasPresetInfoAuth) ||
43953
44068
  (item.type != "splitReading" && item.type != "preset"),
43954
44069
  expression:
43955
- "\n (item.type == 'splitReading' &&\n splitReadingData &&\n splitReadingData.length > 0) ||\n (item.type == 'preset' && presetData && presetData.length > 0 && currentUserHasPresetInfoAuth) ||\n (item.type != 'splitReading' && item.type != 'preset')\n ",
44070
+ "\n (item.type == 'splitReading' &&\n splitReadingData &&\n splitReadingData.length > 0) ||\n (item.type == 'preset' &&\n presetData &&\n presetData.length > 0 &&\n currentUserHasPresetInfoAuth) ||\n (item.type != 'splitReading' && item.type != 'preset')\n ",
43956
44071
  },
43957
44072
  ],
43958
44073
  key: index,
@@ -44122,11 +44237,11 @@ var mainvue_type_template_id_74518680_render = function () {
44122
44237
  2
44123
44238
  )
44124
44239
  }
44125
- var mainvue_type_template_id_74518680_staticRenderFns = []
44126
- mainvue_type_template_id_74518680_render._withStripped = true
44240
+ var mainvue_type_template_id_644e2900_staticRenderFns = []
44241
+ mainvue_type_template_id_644e2900_render._withStripped = true
44127
44242
 
44128
44243
 
44129
- // CONCATENATED MODULE: ./packages/flow-list/src/main.vue?vue&type=template&id=74518680&
44244
+ // CONCATENATED MODULE: ./packages/flow-list/src/main.vue?vue&type=template&id=644e2900&
44130
44245
 
44131
44246
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-list/src/main.vue?vue&type=script&lang=js&
44132
44247
  var flow_list_src_mainvue_type_script_lang_js_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; };
@@ -44219,6 +44334,9 @@ var flow_list_src_mainvue_type_script_lang_js_components;
44219
44334
  //
44220
44335
  //
44221
44336
  //
44337
+ //
44338
+ //
44339
+ //
44222
44340
 
44223
44341
 
44224
44342
 
@@ -44461,7 +44579,7 @@ var flow_list_src_mainvue_type_script_lang_js_components;
44461
44579
  showOverflowTooltip: true,
44462
44580
  key: 'blyj',
44463
44581
  render: function render(h, params) {
44464
- return h('span', {}, params.row.doresult || params.row.handleInfo);
44582
+ return h('span', {}, [params.row.doresult ? params.row.doresult + (params.row.handleInfo ? '&' : '') : '', h('span', { style: { color: '#A5A5A5', marginLeft: '2px' } }, params.row.handleInfo || '')]);
44465
44583
  }
44466
44584
  }, {
44467
44585
  label: '验签',
@@ -44580,7 +44698,7 @@ var flow_list_src_mainvue_type_script_lang_js_components;
44580
44698
  key: 'blyj',
44581
44699
  showOverflowTooltip: true,
44582
44700
  render: function render(h, params) {
44583
- return h('span', {}, params.row.doresult || params.row.handleInfo);
44701
+ return h('span', {}, [params.row.doresult ? params.row.doresult + (params.row.handleInfo ? '&' : '') : '', h('span', { style: { color: '#A5A5A5', marginLeft: '2px' } }, params.row.handleInfo || '')]);
44584
44702
  }
44585
44703
  }, {
44586
44704
  label: '验签',
@@ -45171,8 +45289,8 @@ var flow_list_src_mainvue_type_script_lang_js_components;
45171
45289
 
45172
45290
  var flow_list_src_main_component = normalizeComponent(
45173
45291
  packages_flow_list_src_mainvue_type_script_lang_js_,
45174
- mainvue_type_template_id_74518680_render,
45175
- mainvue_type_template_id_74518680_staticRenderFns,
45292
+ mainvue_type_template_id_644e2900_render,
45293
+ mainvue_type_template_id_644e2900_staticRenderFns,
45176
45294
  false,
45177
45295
  null,
45178
45296
  null,
@@ -46340,6 +46458,8 @@ var input_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
46340
46458
 
46341
46459
  var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
46342
46460
 
46461
+ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
46462
+
46343
46463
 
46344
46464
 
46345
46465
 
@@ -46572,26 +46692,34 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
46572
46692
  }, [content]);
46573
46693
  }
46574
46694
  }
46695
+
46696
+ var _$attrs = this.$attrs,
46697
+ prefix = _$attrs.prefix,
46698
+ suffix = _$attrs.suffix,
46699
+ prepend = _$attrs.prepend,
46700
+ append = _$attrs.append,
46701
+ attrs = mainvue_type_script_lang_js_objectWithoutProperties(_$attrs, ['prefix', 'suffix', 'prepend', 'append']);
46702
+
46575
46703
  if (this.$slots.prefix) {
46576
46704
  doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
46577
- } else if (this.$attrs.prefix) {
46705
+ } else if (prefix) {
46578
46706
  this.renderd(doms, h, 'prefix');
46579
46707
  cls.push('es-input-button-prefix');
46580
46708
  }
46581
46709
  if (this.$slots.suffix) {
46582
46710
  doms.push(h('template', { slot: 'suffix' }, this.$slots.suffix));
46583
- } else if (this.$attrs.suffix) {
46711
+ } else if (suffix) {
46584
46712
  this.renderd(doms, h, 'suffix');
46585
46713
  cls.push('es-input-button-suffix');
46586
46714
  }
46587
46715
  if (this.$slots.prepend) {
46588
46716
  doms.push(h('template', { slot: 'prepend' }, this.$slots.prepend));
46589
- } else if (this.$attrs.prepend) {
46717
+ } else if (prepend) {
46590
46718
  this.renderd(doms, h, 'prepend');
46591
46719
  }
46592
46720
  if (this.$slots.append) {
46593
46721
  doms.push(h('template', { slot: 'append' }, this.$slots.append));
46594
- } else if (this.$attrs.append) {
46722
+ } else if (append) {
46595
46723
  this.renderd(doms, h, 'append');
46596
46724
  }
46597
46725
  if (this.fetchSuggestions || this.url || this.data.length > 0) {
@@ -46600,7 +46728,7 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
46600
46728
  props: {
46601
46729
  rules: this.rule
46602
46730
  },
46603
- attrs: input_src_mainvue_type_script_lang_js_extends({}, this.$attrs, {
46731
+ attrs: input_src_mainvue_type_script_lang_js_extends({}, attrs, {
46604
46732
  fetchSuggestions: this.fetchSuggestions ? this.fetchSuggestions : this.getData,
46605
46733
  triggerOnFocus: this.focusShow,
46606
46734
  value: this.model
@@ -46618,7 +46746,7 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
46618
46746
  domProps: {
46619
46747
  value: this.model
46620
46748
  },
46621
- attrs: input_src_mainvue_type_script_lang_js_extends({}, this.$attrs),
46749
+ attrs: input_src_mainvue_type_script_lang_js_extends({}, attrs),
46622
46750
  on: input_src_mainvue_type_script_lang_js_extends({}, this.$listeners),
46623
46751
  directives: [{
46624
46752
  name: 'show',
@@ -47479,8 +47607,8 @@ layout_src_main.install = function (Vue) {
47479
47607
  };
47480
47608
 
47481
47609
  /* harmony default export */ var layout = (layout_src_main);
47482
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=249fae96&
47483
- var mainvue_type_template_id_249fae96_render = function () {
47610
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=0b26efc4&
47611
+ var mainvue_type_template_id_0b26efc4_render = function () {
47484
47612
  var _vm = this
47485
47613
  var _h = _vm.$createElement
47486
47614
  var _c = _vm._self._c || _h
@@ -47512,7 +47640,10 @@ var mainvue_type_template_id_249fae96_render = function () {
47512
47640
  },
47513
47641
  ],
47514
47642
  staticClass: "es-login",
47515
- class: { "es-simple": _vm.mode == "simple" },
47643
+ class: {
47644
+ "es-simple": _vm.mode == "simple",
47645
+ "es-adaptive": !_vm.isScale,
47646
+ },
47516
47647
  style: _vm.transform,
47517
47648
  attrs: {
47518
47649
  "element-loading-text": "登录中...",
@@ -47531,24 +47662,21 @@ var mainvue_type_template_id_249fae96_render = function () {
47531
47662
  "div",
47532
47663
  {
47533
47664
  staticClass: "es-login-main",
47665
+ class: {
47666
+ "es-switchs": _vm.switchs > 2,
47667
+ },
47534
47668
  style: _vm.getBackground(_vm.loginMainImg),
47535
47669
  },
47536
47670
  [
47537
- _vm.loginTitleImg
47538
- ? _c("div", { staticClass: "es-login-title-image" }, [
47539
- _c("img", {
47540
- staticClass: "es-login-title-img",
47541
- attrs: { src: _vm.loginTitleImg },
47542
- }),
47543
- ])
47544
- : _vm._e(),
47545
47671
  _vm.switchs > 1
47546
47672
  ? _c(
47547
47673
  "div",
47548
47674
  {
47549
47675
  class: {
47550
47676
  "es-login-switch": _vm.switchs == 2,
47551
- "es-login-switchs": _vm.switchs > 2,
47677
+ "es-login-switchs":
47678
+ _vm.switchs > 2 ||
47679
+ (_vm.switchs == 2 && _vm.loginTitleImg),
47552
47680
  },
47553
47681
  },
47554
47682
  _vm._l(_vm.icons, function (item, index) {
@@ -47580,6 +47708,14 @@ var mainvue_type_template_id_249fae96_render = function () {
47580
47708
  0
47581
47709
  )
47582
47710
  : _vm._e(),
47711
+ _vm.loginTitleImg
47712
+ ? _c("div", { staticClass: "es-login-title-image" }, [
47713
+ _c("img", {
47714
+ staticClass: "es-login-title-img",
47715
+ attrs: { src: _vm.loginTitleImg },
47716
+ }),
47717
+ ])
47718
+ : _vm._e(),
47583
47719
  _c(
47584
47720
  "div",
47585
47721
  { staticClass: "es-login-form-box" },
@@ -47590,7 +47726,7 @@ var mainvue_type_template_id_249fae96_render = function () {
47590
47726
  _c(
47591
47727
  "el-form",
47592
47728
  {
47593
- ref: "login",
47729
+ ref: "login" + _vm.active,
47594
47730
  staticClass: "es-login-form",
47595
47731
  attrs: { model: _vm.formData },
47596
47732
  },
@@ -47807,9 +47943,10 @@ var mainvue_type_template_id_249fae96_render = function () {
47807
47943
  rawName: "v-show",
47808
47944
  value:
47809
47945
  _vm.imgCode &&
47810
- _vm.active == 0,
47946
+ (_vm.active == "0" ||
47947
+ _vm.active == "12"),
47811
47948
  expression:
47812
- "imgCode && active == 0",
47949
+ "imgCode && (active == '0' || active == '12')",
47813
47950
  },
47814
47951
  ],
47815
47952
  staticClass: "es-img-code",
@@ -48007,6 +48144,7 @@ var mainvue_type_template_id_249fae96_render = function () {
48007
48144
  attrs: {
48008
48145
  content: _vm.identifyingId,
48009
48146
  logo: _vm.qrimg,
48147
+ auto: "",
48010
48148
  },
48011
48149
  })
48012
48150
  : _vm._e(),
@@ -48018,7 +48156,7 @@ var mainvue_type_template_id_249fae96_render = function () {
48018
48156
  _c("es-wxlogin", {
48019
48157
  attrs: {
48020
48158
  href: "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7CiAgICB3aWR0aDogMTAwJSAhaW1wb3J0YW50OwogICAgYm94LXNpemluZzogYm9yZGVyLWJveCAhaW1wb3J0YW50OwogICAgbWFyZ2luOiAwICFpbXBvcnRhbnQ7Cn0KCi5pbXBvd2VyQm94IC5pbmZvLAouaW1wb3dlckJveCAudGl0bGUgewogICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50Owp9",
48021
- height: "300px",
48159
+ auto: "",
48022
48160
  appid: _vm.wechatAppid,
48023
48161
  scope: _vm.wechatScope,
48024
48162
  redirect_uri: _vm.redirectUri,
@@ -48039,7 +48177,7 @@ var mainvue_type_template_id_249fae96_render = function () {
48039
48177
  _c(
48040
48178
  "el-form",
48041
48179
  {
48042
- ref: "login",
48180
+ ref: "login" + _vm.active,
48043
48181
  staticClass: "es-login-form es-login-verify",
48044
48182
  attrs: { model: _vm.formData },
48045
48183
  },
@@ -48410,11 +48548,11 @@ var mainvue_type_template_id_249fae96_render = function () {
48410
48548
  )
48411
48549
  : _vm._e()
48412
48550
  }
48413
- var mainvue_type_template_id_249fae96_staticRenderFns = []
48414
- mainvue_type_template_id_249fae96_render._withStripped = true
48551
+ var mainvue_type_template_id_0b26efc4_staticRenderFns = []
48552
+ mainvue_type_template_id_0b26efc4_render._withStripped = true
48415
48553
 
48416
48554
 
48417
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=249fae96&
48555
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=0b26efc4&
48418
48556
 
48419
48557
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=579bc87d&
48420
48558
  var resetPasswordvue_type_template_id_579bc87d_render = function () {
@@ -49327,6 +49465,21 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49327
49465
  //
49328
49466
  //
49329
49467
  //
49468
+ //
49469
+ //
49470
+ //
49471
+ //
49472
+ //
49473
+ //
49474
+ //
49475
+ //
49476
+ //
49477
+ //
49478
+ //
49479
+ //
49480
+ //
49481
+ //
49482
+
49330
49483
 
49331
49484
 
49332
49485
 
@@ -49521,7 +49674,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49521
49674
  scanIntervalTime: {
49522
49675
  type: Number,
49523
49676
  default: 1500
49524
- }
49677
+ },
49678
+ isScale: Boolean
49525
49679
  },
49526
49680
  computed: {
49527
49681
  transform: function transform() {
@@ -49714,9 +49868,16 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49714
49868
  };
49715
49869
  },
49716
49870
  beforeCreate: function beforeCreate() {
49871
+ this.setScale = Object(external_throttle_debounce_["debounce"])(300, function () {
49872
+ utils_util["a" /* default */].setScale();
49873
+ });
49717
49874
  utils_util["a" /* default */].removeStorage(['remind', 'ssId', 'token', 'Authorization', 'deviceUnique', 'userId', 'userName', 'useCaseCodes']);
49718
49875
  },
49719
49876
  created: function created() {
49877
+ if (this.isScale) {
49878
+ utils_util["a" /* default */].setScale();
49879
+ window.addEventListener('resize', this.setScale);
49880
+ }
49720
49881
  this.code = utils_util["a" /* default */].getParams('code');
49721
49882
  if (this.code) {
49722
49883
  this.doWechatLogin(this.code);
@@ -49886,8 +50047,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49886
50047
  }
49887
50048
  },
49888
50049
  switchLogin: function switchLogin(res) {
49889
- //this.$refs.login && this.$refs.login.resetFields();
49890
- this.$refs.login && this.$refs.login.clearValidate();
50050
+ var _this3 = this;
50051
+
49891
50052
  if (res != 1) {
49892
50053
  this.active = res.type;
49893
50054
  this.title = res.name;
@@ -49895,12 +50056,16 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49895
50056
  }
49896
50057
  this.countdown = 0;
49897
50058
  this.$emit('change-type', res, this.identifyingId);
50059
+ this.$nextTick(function () {
50060
+ var ref = 'login' + _this3.active;
50061
+ _this3.$refs[ref] && _this3.$refs[ref].clearValidate();
50062
+ });
49898
50063
  },
49899
50064
  isShow: function isShow(res) {
49900
50065
  return this.loginModel.indexOf(res) > -1;
49901
50066
  },
49902
50067
  getLogin: function getLogin() {
49903
- var _this3 = this;
50068
+ var _this4 = this;
49904
50069
 
49905
50070
  var config = utils_util["a" /* default */].getStorage('initLogin');
49906
50071
  if (config) {
@@ -49914,9 +50079,9 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49914
50079
  key: 'initLogin',
49915
50080
  value: JSON.stringify(res.results)
49916
50081
  });
49917
- _this3.setConfig(res.results);
50082
+ _this4.setConfig(res.results);
49918
50083
  } else {
49919
- _this3.$message({
50084
+ _this4.$message({
49920
50085
  message: res.msg || '系统错误,请联系管理员!',
49921
50086
  type: 'error',
49922
50087
  duration: 2000
@@ -49924,7 +50089,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49924
50089
  }
49925
50090
  }).catch(function (err) {
49926
50091
  if (err.message && err.message !== 'canceled') {
49927
- _this3.$message.error(err.message);
50092
+ _this4.$message.error(err.message);
49928
50093
  }
49929
50094
  });
49930
50095
  },
@@ -49954,7 +50119,9 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49954
50119
  this.setup = res.setup;
49955
50120
  this.sysName = res.subsystemName;
49956
50121
  this.downloadSetup = res.downloadSetup;
49957
- document.title = res.subsystemName;
50122
+ if (res.subsystemName) {
50123
+ document.title = res.subsystemName;
50124
+ }
49958
50125
  this.app = res.appName || res.subsystemName;
49959
50126
  if (res.qrimg || res.qrImg) {
49960
50127
  this.qrimg = res.qrimg || res.qrImg;
@@ -50030,7 +50197,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50030
50197
  return this.imageCode;
50031
50198
  },
50032
50199
  getCode: function getCode() {
50033
- var _this4 = this;
50200
+ var _this5 = this;
50034
50201
 
50035
50202
  if (this.countdown) {
50036
50203
  return false;
@@ -50071,14 +50238,14 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50071
50238
  }
50072
50239
  this.countdown = 60;
50073
50240
  this.timer = setInterval(function () {
50074
- if (_this4.countdown > 0) {
50075
- _this4.countdown--;
50076
- _this4.disabled = true;
50077
- _this4.btnText = '重新获取' + _this4.countdown + 's';
50241
+ if (_this5.countdown > 0) {
50242
+ _this5.countdown--;
50243
+ _this5.disabled = true;
50244
+ _this5.btnText = '重新获取' + _this5.countdown + 's';
50078
50245
  } else {
50079
- _this4.btnText = '重新获取';
50080
- _this4.disabled = false;
50081
- _this4.submit = false;
50246
+ _this5.btnText = '重新获取';
50247
+ _this5.disabled = false;
50248
+ _this5.submit = false;
50082
50249
  }
50083
50250
  }, 1000);
50084
50251
  utils_util["a" /* default */].ajax({
@@ -50086,66 +50253,66 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50086
50253
  url: this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
50087
50254
  data: data
50088
50255
  }).then(function (res) {
50089
- _this4.$message({
50256
+ _this5.$message({
50090
50257
  message: res.msg,
50091
50258
  duration: 2000,
50092
50259
  type: res.rCode == 0 ? 'success' : 'error'
50093
50260
  });
50094
50261
 
50095
50262
  if (res.rCode === 2) {
50096
- _this4.btnText = '获取验证码';
50097
- _this4.disabled = false;
50098
- _this4.countdown = 0;
50099
- clearInterval(_this4.timer);
50263
+ _this5.btnText = '获取验证码';
50264
+ _this5.disabled = false;
50265
+ _this5.countdown = 0;
50266
+ clearInterval(_this5.timer);
50100
50267
  }
50101
50268
  }).catch(function (err) {
50102
50269
  if (err.message && err.message !== 'canceled') {
50103
- _this4.$message.error(err.message);
50270
+ _this5.$message.error(err.message);
50104
50271
  }
50105
50272
  });
50106
50273
  },
50107
50274
  handleLogin: function handleLogin() {
50108
- var _this5 = this;
50275
+ var _this6 = this;
50109
50276
 
50110
50277
  if (this.submit) {
50111
50278
  return false;
50112
50279
  }
50113
50280
  this.$refs['login'].validate(function (valid) {
50114
50281
  if (valid) {
50115
- _this5.submit = true;
50282
+ _this6.submit = true;
50116
50283
  var param = utils_util["a" /* default */].getParams() || {};
50117
- var data = _this5.active == '0' ? {
50118
- username: _this5.formData.username,
50119
- password: _this5.secret && _this5.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50120
- data: _this5.formData.password,
50121
- key: _this5.secret
50122
- }) : _this5.formData.password,
50123
- identifyingCode: _this5.formData.identifyingCode,
50124
- identifyingId: _this5.identifyingId
50125
- } : _this5.active == '12' ? {
50126
- username: _this5.formData.username,
50127
- password: _this5.secret && _this5.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50128
- data: _this5.formData.password,
50129
- key: _this5.secret
50130
- }) : _this5.formData.password,
50131
- targetType: _this5.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
50132
- verificationCode: _this5.formData.identifyingCode
50284
+ var data = _this6.active == '0' ? {
50285
+ username: _this6.formData.username,
50286
+ password: _this6.secret && _this6.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50287
+ data: _this6.formData.password,
50288
+ key: _this6.secret
50289
+ }) : _this6.formData.password,
50290
+ identifyingCode: _this6.formData.identifyingCode,
50291
+ identifyingId: _this6.identifyingId
50292
+ } : _this6.active == '12' ? {
50293
+ username: _this6.formData.username,
50294
+ password: _this6.secret && _this6.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50295
+ data: _this6.formData.password,
50296
+ key: _this6.secret
50297
+ }) : _this6.formData.password,
50298
+ targetType: _this6.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
50299
+ verificationCode: _this6.formData.identifyingCode
50133
50300
  } : {
50134
- target: _this5.formData.target,
50135
- verificationCode: _this5.formData.verificationCode,
50136
- targetType: _this5.active == '6' ? 'SMS' : 'EMAIL'
50301
+ target: _this6.formData.target,
50302
+ verificationCode: _this6.formData.verificationCode,
50303
+ targetType: _this6.active == '6' ? 'SMS' : 'EMAIL'
50137
50304
  };
50138
- if (_this5.onLogin) {
50139
- if (_this5.active == '0') {
50140
- _this5.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data), _this5.getImgCode, _this5.handleRemember);
50305
+ if (_this6.onLogin) {
50306
+ if (_this6.active == '0') {
50307
+ _this6.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data), _this6.getImgCode, _this6.handleRemember);
50141
50308
  } else {
50142
- _this5.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data));
50309
+ _this6.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data));
50143
50310
  }
50144
50311
  } else {
50145
- _this5.handleUserLogin(login_src_mainvue_type_script_lang_js_extends({}, param, _this5.param, data));
50312
+ _this6.handleUserLogin(login_src_mainvue_type_script_lang_js_extends({}, param, _this6.param, data));
50146
50313
  }
50147
50314
  } else {
50148
- _this5.submit = false;
50315
+ _this6.submit = false;
50149
50316
  return false;
50150
50317
  }
50151
50318
  });
@@ -50161,7 +50328,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50161
50328
  }
50162
50329
  },
50163
50330
  handleUserLogin: function handleUserLogin(data) {
50164
- var _this6 = this;
50331
+ var _this7 = this;
50165
50332
 
50166
50333
  var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
50167
50334
  utils_util["a" /* default */].ajax({
@@ -50169,68 +50336,68 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50169
50336
  url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
50170
50337
  data: extUserBindHandleId ? login_src_mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
50171
50338
  }).then(function (res) {
50172
- _this6.submit = false;
50339
+ _this7.submit = false;
50173
50340
  if (res.rCode == 0) {
50174
50341
  utils_util["a" /* default */].removeStorage('extUserBindHandleId');
50175
- _this6.handleRemember();
50342
+ _this7.handleRemember();
50176
50343
  var results = res.results;
50177
- _this6.handleResults(results);
50178
- if (_this6.onSuccess) {
50179
- _this6.onSuccess(res);
50344
+ _this7.handleResults(results);
50345
+ if (_this7.onSuccess) {
50346
+ _this7.onSuccess(res);
50180
50347
  }
50181
50348
  } else {
50182
50349
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
50183
- _this6.$message({
50350
+ _this7.$message({
50184
50351
  message: msg || '系统错误,请联系管理员!',
50185
50352
  type: 'error',
50186
50353
  duration: 1500,
50187
50354
  onClose: function onClose() {
50188
- _this6.btnText = '获取验证码';
50189
- _this6.disabled = false;
50190
- _this6.countdown = 0;
50191
- clearInterval(_this6.timer);
50192
- _this6.getImgCode();
50355
+ _this7.btnText = '获取验证码';
50356
+ _this7.disabled = false;
50357
+ _this7.countdown = 0;
50358
+ clearInterval(_this7.timer);
50359
+ _this7.getImgCode();
50193
50360
  }
50194
50361
  });
50195
- _this6.onError(res);
50362
+ _this7.onError(res);
50196
50363
  }
50197
50364
  }).catch(function (err) {
50198
- _this6.submit = false;
50365
+ _this7.submit = false;
50199
50366
  if (err.message && err.message !== 'canceled') {
50200
- _this6.$message.error(err.message);
50367
+ _this7.$message.error(err.message);
50201
50368
  }
50202
50369
  });
50203
50370
  },
50204
50371
  caLogin: function caLogin(signedData) {
50205
- var _this7 = this;
50372
+ var _this8 = this;
50206
50373
 
50207
50374
  utils_util["a" /* default */].ajax({
50208
50375
  method: 'post',
50209
50376
  url: this.caAction,
50210
50377
  data: { identifyingId: this.identifyingId, signedData: signedData }
50211
50378
  }).then(function (res) {
50212
- _this7.submit = false;
50379
+ _this8.submit = false;
50213
50380
  if (res.rCode == 0) {
50214
50381
  var results = res.results;
50215
- _this7.handleResults(results);
50216
- if (_this7.onSuccess) {
50217
- _this7.onSuccess(res);
50382
+ _this8.handleResults(results);
50383
+ if (_this8.onSuccess) {
50384
+ _this8.onSuccess(res);
50218
50385
  }
50219
50386
  } else {
50220
50387
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
50221
- _this7.$message({
50388
+ _this8.$message({
50222
50389
  message: msg || '系统错误,请联系管理员!',
50223
50390
  type: 'error',
50224
50391
  duration: 1500,
50225
50392
  onClose: function onClose() {
50226
- _this7.getImgCode();
50393
+ _this8.getImgCode();
50227
50394
  }
50228
50395
  });
50229
- _this7.onError(res);
50396
+ _this8.onError(res);
50230
50397
  }
50231
50398
  }).catch(function (err) {
50232
50399
  if (err.message && err.message !== 'canceled') {
50233
- _this7.$message.error(err.message);
50400
+ _this8.$message.error(err.message);
50234
50401
  }
50235
50402
  });
50236
50403
  },
@@ -50247,17 +50414,17 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50247
50414
 
50248
50415
  //获取app登录信息
50249
50416
  loginInfo: function loginInfo(res) {
50250
- var _this8 = this;
50417
+ var _this9 = this;
50251
50418
 
50252
50419
  clearTimeout(this.interval);
50253
50420
  if (res) {
50254
50421
  this.interval = setTimeout(function () {
50255
- _this8.initRequestLoginInfo();
50422
+ _this9.initRequestLoginInfo();
50256
50423
  }, this.scanIntervalTime);
50257
50424
  }
50258
50425
  },
50259
50426
  initRequestLoginInfo: function initRequestLoginInfo() {
50260
- var _this9 = this;
50427
+ var _this10 = this;
50261
50428
 
50262
50429
  if (this.identifyingId == '') {
50263
50430
  return false;
@@ -50272,21 +50439,21 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50272
50439
  if (res.rCode === 0) {
50273
50440
  var results = res.results;
50274
50441
  if (results.statusCode === 0) {
50275
- clearTimeout(_this9.interval);
50276
- _this9.handleResults(results, 3);
50442
+ clearTimeout(_this10.interval);
50443
+ _this10.handleResults(results, 3);
50277
50444
  } else {
50278
- _this9.loginInfo(true);
50445
+ _this10.loginInfo(true);
50279
50446
  }
50280
50447
  }
50281
50448
  }).catch(function (err) {
50282
- clearTimeout(_this9.interval);
50449
+ clearTimeout(_this10.interval);
50283
50450
  if (err.message && err.message !== 'canceled') {
50284
- _this9.$message.error(err.message);
50451
+ _this10.$message.error(err.message);
50285
50452
  }
50286
50453
  });
50287
50454
  },
50288
50455
  handleResults: function handleResults(results, type) {
50289
- var _this10 = this;
50456
+ var _this11 = this;
50290
50457
 
50291
50458
  switch (results.statusCode) {
50292
50459
  case 0:
@@ -50307,15 +50474,15 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50307
50474
  type: 'success',
50308
50475
  duration: 1500,
50309
50476
  onClose: function onClose() {
50310
- if (_this10.toUrl) {
50311
- window.location.href = _this10.toUrl;
50312
- } else if (results.doorIndex && _this10.doorIndex) {
50477
+ if (_this11.toUrl) {
50478
+ window.location.href = _this11.toUrl;
50479
+ } else if (results.doorIndex && _this11.doorIndex) {
50313
50480
  window.location.href = results.doorIndex;
50314
50481
  } else {
50315
50482
  if (window.location.href.indexOf('login.html') > -1) {
50316
50483
  window.location.href = './main.html';
50317
50484
  } else {
50318
- _this10.$router.push({ name: 'main' });
50485
+ _this11.$router.push({ name: 'main' });
50319
50486
  }
50320
50487
  }
50321
50488
  }
@@ -50327,11 +50494,11 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50327
50494
  //cancelButtonText: '取消',
50328
50495
  type: 'warning'
50329
50496
  }).then(function () {
50330
- _this10.operationCheckCode = results.checkCode;
50331
- if (typeof _this10.forget === 'string') {
50332
- utils_util["a" /* default */].win.open(_this10.forgetUrl);
50497
+ _this11.operationCheckCode = results.checkCode;
50498
+ if (typeof _this11.forget === 'string') {
50499
+ utils_util["a" /* default */].win.open(_this11.forgetUrl);
50333
50500
  } else {
50334
- _this10.showResetPassword = true;
50501
+ _this11.showResetPassword = true;
50335
50502
  }
50336
50503
  }).catch(function (e) {});
50337
50504
  break;
@@ -50372,13 +50539,13 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50372
50539
  type: 'error',
50373
50540
  duration: 1500,
50374
50541
  onClose: function onClose() {
50375
- if (_this10.code) {
50542
+ if (_this11.code) {
50376
50543
  window.location.href = utils_util["a" /* default */].delUrlParam({ key: 'code' });
50377
50544
  if (window.location.hash) {
50378
50545
  location.reload();
50379
50546
  }
50380
50547
  } else {
50381
- _this10.getImgCode();
50548
+ _this11.getImgCode();
50382
50549
  }
50383
50550
  }
50384
50551
  });
@@ -50388,15 +50555,15 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50388
50555
  }
50389
50556
  },
50390
50557
  handleAssistance: function handleAssistance(data) {
50391
- var _this11 = this;
50558
+ var _this12 = this;
50392
50559
 
50393
50560
  clearTimeout(this.doAssistance);
50394
50561
  this.doAssistance = setTimeout(function () {
50395
- _this11.doAssistanceLogin(data);
50562
+ _this12.doAssistanceLogin(data);
50396
50563
  }, this.scanIntervalTime);
50397
50564
  },
50398
50565
  doAssistanceLogin: function doAssistanceLogin(data) {
50399
- var _this12 = this;
50566
+ var _this13 = this;
50400
50567
 
50401
50568
  utils_util["a" /* default */].ajax({
50402
50569
  method: 'post',
@@ -50406,19 +50573,19 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50406
50573
  if (res.rCode === 0) {
50407
50574
  var results = res.results;
50408
50575
  if (results.statusCode === 0) {
50409
- clearTimeout(_this12.doAssistance);
50410
- _this12.handleResults(results, 3);
50576
+ clearTimeout(_this13.doAssistance);
50577
+ _this13.handleResults(results, 3);
50411
50578
  } else {
50412
- _this12.handleAssistance(data);
50579
+ _this13.handleAssistance(data);
50413
50580
  }
50414
50581
  } else {
50415
- clearTimeout(_this12.doAssistance);
50416
- _this12.$message.error(res.msg);
50582
+ clearTimeout(_this13.doAssistance);
50583
+ _this13.$message.error(res.msg);
50417
50584
  }
50418
50585
  }).catch(function (err) {
50419
- clearTimeout(_this12.doAssistance);
50586
+ clearTimeout(_this13.doAssistance);
50420
50587
  if (err.message && err.message !== 'canceled') {
50421
- _this12.$message.error(err.message);
50588
+ _this13.$message.error(err.message);
50422
50589
  }
50423
50590
  });
50424
50591
  },
@@ -50435,6 +50602,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50435
50602
  }
50436
50603
  },
50437
50604
  beforeDestroy: function beforeDestroy() {
50605
+ window.removeEventListener('resize', this.setScale);
50438
50606
  document.removeEventListener('keyup', this.doLogin);
50439
50607
  document.removeEventListener('keydown', this.forbiddenTab);
50440
50608
  }
@@ -50451,8 +50619,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50451
50619
 
50452
50620
  var login_src_main_component = normalizeComponent(
50453
50621
  packages_login_src_mainvue_type_script_lang_js_,
50454
- mainvue_type_template_id_249fae96_render,
50455
- mainvue_type_template_id_249fae96_staticRenderFns,
50622
+ mainvue_type_template_id_0b26efc4_render,
50623
+ mainvue_type_template_id_0b26efc4_staticRenderFns,
50456
50624
  false,
50457
50625
  null,
50458
50626
  null,
@@ -57393,8 +57561,8 @@ player_src_main.install = function (Vue) {
57393
57561
  };
57394
57562
 
57395
57563
  /* harmony default export */ var player = (player_src_main);
57396
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/qr-code/src/main.vue?vue&type=template&id=28375a46&
57397
- var mainvue_type_template_id_28375a46_render = function () {
57564
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/qr-code/src/main.vue?vue&type=template&id=338a3a1e&
57565
+ var mainvue_type_template_id_338a3a1e_render = function () {
57398
57566
  var _vm = this
57399
57567
  var _h = _vm.$createElement
57400
57568
  var _c = _vm._self._c || _h
@@ -57402,24 +57570,33 @@ var mainvue_type_template_id_28375a46_render = function () {
57402
57570
  "div",
57403
57571
  { ref: "qrcode", staticClass: "es-qrcode-box", attrs: { id: "qrcode" } },
57404
57572
  [
57405
- _c("img", {
57406
- ref: "qrcodeImg",
57407
- staticClass: "es-qrcode-img",
57408
- attrs: { width: _vm._width, height: _vm._height, alt: "二维码图片" },
57409
- }),
57410
- _c("canvas", {
57411
- ref: "canvas",
57412
- staticClass: "canvas",
57413
- attrs: { width: _vm._width, height: _vm._height },
57414
- }),
57415
- ]
57573
+ _vm.mwidth && _vm.mheight
57574
+ ? [
57575
+ _c("img", {
57576
+ ref: "qrcodeImg",
57577
+ staticClass: "es-qrcode-img",
57578
+ attrs: {
57579
+ width: _vm.mwidth,
57580
+ height: _vm.mheight,
57581
+ alt: "二维码图片",
57582
+ },
57583
+ }),
57584
+ _c("canvas", {
57585
+ ref: "canvas",
57586
+ staticClass: "canvas",
57587
+ attrs: { width: _vm.mwidth, height: _vm.mheight },
57588
+ }),
57589
+ ]
57590
+ : _vm._e(),
57591
+ ],
57592
+ 2
57416
57593
  )
57417
57594
  }
57418
- var mainvue_type_template_id_28375a46_staticRenderFns = []
57419
- mainvue_type_template_id_28375a46_render._withStripped = true
57595
+ var mainvue_type_template_id_338a3a1e_staticRenderFns = []
57596
+ mainvue_type_template_id_338a3a1e_render._withStripped = true
57420
57597
 
57421
57598
 
57422
- // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=28375a46&
57599
+ // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=338a3a1e&
57423
57600
 
57424
57601
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/qr-code/src/main.vue?vue&type=script&lang=js&
57425
57602
  //
@@ -57447,6 +57624,8 @@ mainvue_type_template_id_28375a46_render._withStripped = true
57447
57624
  //
57448
57625
  //
57449
57626
  //
57627
+ //
57628
+ //
57450
57629
 
57451
57630
 
57452
57631
  var QRCode = __webpack_require__(24);
@@ -57459,8 +57638,14 @@ var QRCode = __webpack_require__(24);
57459
57638
  },
57460
57639
  logo: String,
57461
57640
  text: String,
57462
- width: Number,
57463
- height: Number,
57641
+ width: {
57642
+ type: Number,
57643
+ default: 300
57644
+ },
57645
+ height: {
57646
+ type: Number,
57647
+ default: 300
57648
+ },
57464
57649
  auto: Boolean,
57465
57650
  option: {
57466
57651
  type: Object,
@@ -57475,22 +57660,12 @@ var QRCode = __webpack_require__(24);
57475
57660
  }
57476
57661
  }
57477
57662
  },
57478
- computed: {
57479
- _width: function _width() {
57480
- if (this.auto) {
57481
- return this.$refs.qrcode.offsetWidth;
57482
- }
57483
- return this.width ? this.width : 300;
57484
- },
57485
- _height: function _height() {
57486
- if (this.auto) {
57487
- return this.$refs.qrcode.offsetHeight;
57488
- }
57489
- return this.height ? this.height : 300;
57490
- }
57491
- },
57663
+ computed: {},
57492
57664
  data: function data() {
57493
- return {};
57665
+ return {
57666
+ mwidth: 0,
57667
+ mheight: 0
57668
+ };
57494
57669
  },
57495
57670
 
57496
57671
  watch: {
@@ -57514,6 +57689,16 @@ var QRCode = __webpack_require__(24);
57514
57689
  mounted: function mounted() {
57515
57690
  var _this2 = this;
57516
57691
 
57692
+ if (this.auto) {
57693
+ var h = this.$refs.qrcode.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(this.$refs.qrcode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(this.$refs.qrcode, 'padding-bottom'), 10);
57694
+ if (h > 0) {
57695
+ this.mwidth = h;
57696
+ this.mheight = h;
57697
+ }
57698
+ } else {
57699
+ this.mwidth = this.width;
57700
+ this.mheight = this.height;
57701
+ }
57517
57702
  this.$nextTick(function () {
57518
57703
  _this2.createQRCode();
57519
57704
  });
@@ -57527,8 +57712,8 @@ var QRCode = __webpack_require__(24);
57527
57712
  //let qrcodeLogo = this.$refs.qrcodeLogo;
57528
57713
  var canvas = this.$refs.canvas;
57529
57714
  var option = utils_util["a" /* default */].extend({}, this.option, {
57530
- width: this._width,
57531
- height: this._height
57715
+ width: this.mwidth,
57716
+ height: this.mheight
57532
57717
  });
57533
57718
  if (!qrcodeImg) {
57534
57719
  return false;
@@ -57540,12 +57725,12 @@ var QRCode = __webpack_require__(24);
57540
57725
  var ctx = canvas.getContext('2d');
57541
57726
  setTimeout(function () {
57542
57727
  //获取图片
57543
- ctx.drawImage(qrcodeImg, 0, 0, _this3._width, _this3._height);
57728
+ ctx.drawImage(qrcodeImg, 0, 0, _this3.mwidth, _this3.mheight);
57544
57729
  if (_this3.logo && _this3.logo.indexOf('.') > -1) {
57545
57730
  var logo = new Image();
57546
57731
  logo.src = _this3.logo;
57547
57732
  //设置logo大小
57548
- var logoPosition = (_this3._width - 46) / 2; //logo相对于canvas居中定位
57733
+ var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
57549
57734
  //设置获取的logo将其变为圆角以及添加白色背景
57550
57735
  /* ctx.fillStyle = "#fff";
57551
57736
  ctx.beginPath();
@@ -57570,8 +57755,8 @@ var QRCode = __webpack_require__(24);
57570
57755
  var fpadd = 10; //规定内间距
57571
57756
  ctx.font = 'bold 16px Arial';
57572
57757
  var tw = ctx.measureText(_this3.text).width; //文字真实宽度
57573
- var ftop = (_this3._height - 16) / 2; //根据字体大小计算文字top
57574
- var fleft = (_this3._width - tw) / 2; //根据字体大小计算文字left
57758
+ var ftop = (_this3.mheight - 16) / 2; //根据字体大小计算文字top
57759
+ var fleft = (_this3.mwidth - tw) / 2; //根据字体大小计算文字left
57575
57760
  var tp = 16 / 2; //字体边距为字体大小的一半可以自己设置
57576
57761
  ctx.fillStyle = '#fff';
57577
57762
  ctx.fillRect(fleft - tp / 2, ftop - tp / 2, tw + tp, 16 + tp);
@@ -57600,8 +57785,8 @@ var QRCode = __webpack_require__(24);
57600
57785
 
57601
57786
  var qr_code_src_main_component = normalizeComponent(
57602
57787
  packages_qr_code_src_mainvue_type_script_lang_js_,
57603
- mainvue_type_template_id_28375a46_render,
57604
- mainvue_type_template_id_28375a46_staticRenderFns,
57788
+ mainvue_type_template_id_338a3a1e_render,
57789
+ mainvue_type_template_id_338a3a1e_staticRenderFns,
57605
57790
  false,
57606
57791
  null,
57607
57792
  null,
@@ -58567,6 +58752,8 @@ var select_src_mainvue_type_script_lang_js_extends = Object.assign || function (
58567
58752
 
58568
58753
  var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
58569
58754
 
58755
+ function src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
58756
+
58570
58757
 
58571
58758
 
58572
58759
 
@@ -59158,26 +59345,34 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
59158
59345
  });
59159
59346
  }
59160
59347
  }
59348
+
59349
+ var _$attrs = this.$attrs,
59350
+ prefix = _$attrs.prefix,
59351
+ suffix = _$attrs.suffix,
59352
+ prepend = _$attrs.prepend,
59353
+ append = _$attrs.append,
59354
+ attrs = src_mainvue_type_script_lang_js_objectWithoutProperties(_$attrs, ['prefix', 'suffix', 'prepend', 'append']);
59355
+
59161
59356
  if (this.$slots.prefix) {
59162
59357
  doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
59163
- } else if (this.$attrs.prefix) {
59358
+ } else if (prefix) {
59164
59359
  this.renderd(doms, h, 'prefix');
59165
59360
  cls.push('es-select-button-prefix');
59166
59361
  }
59167
59362
  if (this.$slots.suffix) {
59168
59363
  doms.push(h('template', { slot: 'suffix' }, this.$slots.suffix));
59169
- } else if (this.$attrs.suffix) {
59364
+ } else if (suffix) {
59170
59365
  this.renderd(doms, h, 'suffix');
59171
59366
  cls.push('es-select-button-suffix');
59172
59367
  }
59173
59368
  if (this.$slots.prepend) {
59174
59369
  doms.push(h('template', { slot: 'prepend' }, this.$slots.prepend));
59175
- } else if (this.$attrs.prepend) {
59370
+ } else if (prepend) {
59176
59371
  this.renderd(doms, h, 'prepend');
59177
59372
  }
59178
59373
  if (this.$slots.append) {
59179
59374
  doms.push(h('template', { slot: 'append' }, this.$slots.append));
59180
- } else if (this.$attrs.append) {
59375
+ } else if (append) {
59181
59376
  this.renderd(doms, h, 'append');
59182
59377
  }
59183
59378
  if (!this.models && this.results.length && this.defaultValue) {
@@ -59197,7 +59392,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
59197
59392
  name: 'show',
59198
59393
  value: this.display
59199
59394
  }],
59200
- props: select_src_mainvue_type_script_lang_js_extends({}, this.$attrs, {
59395
+ props: select_src_mainvue_type_script_lang_js_extends({}, attrs, {
59201
59396
  multiple: this.multiple,
59202
59397
  valueType: this.valueType,
59203
59398
  valueKey: this.valKey,
@@ -66670,8 +66865,8 @@ tips_src_main.install = function (Vue) {
66670
66865
  };
66671
66866
 
66672
66867
  /* harmony default export */ var tips = (tips_src_main);
66673
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=4df0cd89&
66674
- var mainvue_type_template_id_4df0cd89_render = function () {
66868
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=49d73969&
66869
+ var mainvue_type_template_id_49d73969_render = function () {
66675
66870
  var _vm = this
66676
66871
  var _h = _vm.$createElement
66677
66872
  var _c = _vm._self._c || _h
@@ -66867,11 +67062,11 @@ var mainvue_type_template_id_4df0cd89_render = function () {
66867
67062
  )
66868
67063
  : _vm._e()
66869
67064
  }
66870
- var mainvue_type_template_id_4df0cd89_staticRenderFns = []
66871
- mainvue_type_template_id_4df0cd89_render._withStripped = true
67065
+ var mainvue_type_template_id_49d73969_staticRenderFns = []
67066
+ mainvue_type_template_id_49d73969_render._withStripped = true
66872
67067
 
66873
67068
 
66874
- // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=4df0cd89&
67069
+ // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=49d73969&
66875
67070
 
66876
67071
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=script&lang=js&
66877
67072
  //
@@ -67224,6 +67419,18 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67224
67419
  this.$refs.oaTree.filter(val);
67225
67420
  }
67226
67421
  }
67422
+ },
67423
+ param: {
67424
+ deep: true,
67425
+ handler: function handler() {
67426
+ this.getTreeData();
67427
+ }
67428
+ },
67429
+ where: {
67430
+ deep: true,
67431
+ handler: function handler() {
67432
+ this.getTreeData();
67433
+ }
67227
67434
  }
67228
67435
  },
67229
67436
  beforeCreate: function beforeCreate() {
@@ -67258,7 +67465,7 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67258
67465
  getTreeDatas: function getTreeDatas(param) {
67259
67466
  var _this2 = this;
67260
67467
 
67261
- var params = utils_util["a" /* default */].extend({}, this.param, this.where, param);
67468
+ var params = utils_util["a" /* default */].extend({}, this.param, this.where, param || {});
67262
67469
  if (!this.url || !this.isRemote) return;
67263
67470
  this.loading = true;
67264
67471
  utils_util["a" /* default */].ajax({
@@ -67572,8 +67779,8 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67572
67779
 
67573
67780
  var tree_src_main_component = normalizeComponent(
67574
67781
  packages_tree_src_mainvue_type_script_lang_js_,
67575
- mainvue_type_template_id_4df0cd89_render,
67576
- mainvue_type_template_id_4df0cd89_staticRenderFns,
67782
+ mainvue_type_template_id_49d73969_render,
67783
+ mainvue_type_template_id_49d73969_staticRenderFns,
67577
67784
  false,
67578
67785
  null,
67579
67786
  null,
@@ -67590,8 +67797,8 @@ tree_src_main.install = function (Vue) {
67590
67797
  };
67591
67798
 
67592
67799
  /* harmony default export */ var packages_tree = (tree_src_main);
67593
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=3f239eaa&
67594
- var mainvue_type_template_id_3f239eaa_render = function () {
67800
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=6ec7befa&
67801
+ var mainvue_type_template_id_6ec7befa_render = function () {
67595
67802
  var _vm = this
67596
67803
  var _h = _vm.$createElement
67597
67804
  var _c = _vm._self._c || _h
@@ -67772,7 +67979,10 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67772
67979
  "es-button",
67773
67980
  _vm._g(
67774
67981
  _vm._b(
67775
- { key: index, attrs: { size: "small" } },
67982
+ {
67983
+ key: item.id || index,
67984
+ attrs: { size: "small" },
67985
+ },
67776
67986
  "es-button",
67777
67987
  item,
67778
67988
  false
@@ -67814,12 +68024,14 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67814
68024
  _vm._g(
67815
68025
  _vm._b(
67816
68026
  {
67817
- key: _vm.count,
67818
68027
  ref: _vm.table.ref ? _vm.table.ref : "esDataTable",
67819
- attrs: { size: "mini", param: _vm.param },
68028
+ attrs: { size: "mini", param: _vm.params },
67820
68029
  },
67821
68030
  "es-data-table",
67822
- Object.assign({}, { close: true }, _vm.table),
68031
+ _vm.handleExclAttribute({
68032
+ data: Object.assign({}, { close: true }, _vm.table),
68033
+ attrs: ["param"],
68034
+ }),
67823
68035
  false
67824
68036
  ),
67825
68037
  Object.assign({}, _vm.$listeners, _vm.table.events)
@@ -67941,11 +68153,11 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67941
68153
  2
67942
68154
  )
67943
68155
  }
67944
- var mainvue_type_template_id_3f239eaa_staticRenderFns = []
67945
- mainvue_type_template_id_3f239eaa_render._withStripped = true
68156
+ var mainvue_type_template_id_6ec7befa_staticRenderFns = []
68157
+ mainvue_type_template_id_6ec7befa_render._withStripped = true
67946
68158
 
67947
68159
 
67948
- // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=3f239eaa&
68160
+ // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=6ec7befa&
67949
68161
 
67950
68162
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=script&lang=js&
67951
68163
  var tree_group_src_mainvue_type_script_lang_js_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; };
@@ -68133,6 +68345,10 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68133
68345
  //
68134
68346
  //
68135
68347
  //
68348
+ //
68349
+ //
68350
+ //
68351
+ //
68136
68352
 
68137
68353
 
68138
68354
  /* harmony default export */ var tree_group_src_mainvue_type_script_lang_js_ = ({
@@ -68224,14 +68440,6 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68224
68440
  return 'wujie';
68225
68441
  }
68226
68442
  }
68227
- },
68228
- param: function param() {
68229
- if (this.params) {
68230
- return this.params;
68231
- } else if (this.table && Object.prototype.hasOwnProperty.call(this.table, 'param')) {
68232
- return this.table.param;
68233
- }
68234
- return undefined;
68235
68443
  }
68236
68444
  },
68237
68445
  watch: {
@@ -68251,32 +68459,23 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68251
68459
  }
68252
68460
  }
68253
68461
  },
68462
+ 'table.param': {
68463
+ immediate: true,
68464
+ deep: true,
68465
+ handler: function handler(val, old) {
68466
+ if (!utils_util["a" /* default */].isObjectEqual(val, old)) {
68467
+ this.params = JSON.parse(JSON.stringify(val || {}));
68468
+ }
68469
+ }
68470
+ },
68254
68471
  checkeds: {
68255
68472
  deep: true,
68256
68473
  handler: function handler() {
68257
68474
  var params = this.setParams();
68258
68475
  if (params) {
68259
- if (this.table && Object.prototype.hasOwnProperty.call(this.table, 'param')) {
68260
- this.params = utils_util["a" /* default */].extend(true, this.table.param, params);
68261
- } else {
68262
- this.params = params;
68263
- }
68476
+ this.params = tree_group_src_mainvue_type_script_lang_js_extends({}, this.params, params);
68264
68477
  }
68265
68478
  }
68266
- },
68267
- //监听table,变化后重新加载,解决点击树节点后改变table对象导致的样式错乱问题
68268
- table: {
68269
- handler: function handler(val, oldVal) {
68270
- if (val && val.param) {
68271
- this.params = tree_group_src_mainvue_type_script_lang_js_extends({}, this.params, val.param);
68272
- }
68273
- if (oldVal && val && val.url !== oldVal.url) {
68274
- this.count++;
68275
- }
68276
- },
68277
-
68278
- deep: true,
68279
- immediate: true
68280
68479
  }
68281
68480
  },
68282
68481
  data: function data() {
@@ -68284,7 +68483,6 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68284
68483
  active: '0',
68285
68484
  checkeds: null,
68286
68485
  params: null,
68287
- count: 0,
68288
68486
  wjprops: {}
68289
68487
  };
68290
68488
  },
@@ -68292,6 +68490,15 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68292
68490
  mounted: function mounted() {},
68293
68491
 
68294
68492
  methods: {
68493
+ handleExclAttribute: function handleExclAttribute(_ref) {
68494
+ var data = _ref.data,
68495
+ attrs = _ref.attrs;
68496
+
68497
+ return utils_util["a" /* default */].exclAttribute({
68498
+ data: data,
68499
+ attrs: attrs
68500
+ });
68501
+ },
68295
68502
  getUrl: function getUrl(url, param, res) {
68296
68503
  var urls = url.split('?');
68297
68504
  if (urls[0].indexOf('.js') > 0) {
@@ -68501,8 +68708,8 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68501
68708
 
68502
68709
  var tree_group_src_main_component = normalizeComponent(
68503
68710
  packages_tree_group_src_mainvue_type_script_lang_js_,
68504
- mainvue_type_template_id_3f239eaa_render,
68505
- mainvue_type_template_id_3f239eaa_staticRenderFns,
68711
+ mainvue_type_template_id_6ec7befa_render,
68712
+ mainvue_type_template_id_6ec7befa_staticRenderFns,
68506
68713
  false,
68507
68714
  null,
68508
68715
  null,
@@ -68522,7 +68729,7 @@ tree_group_src_main.install = function (Vue) {
68522
68729
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/toolbar/src/main.vue?vue&type=script&lang=js&
68523
68730
  var toolbar_src_mainvue_type_script_lang_js_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; };
68524
68731
 
68525
- function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
68732
+ function toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
68526
68733
 
68527
68734
  /* harmony default export */ var toolbar_src_mainvue_type_script_lang_js_ = ({
68528
68735
  name: 'EsToolbar',
@@ -68673,7 +68880,8 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
68673
68880
  multiCondition = items.multiCondition,
68674
68881
  contents = items.contents,
68675
68882
  group = items.group,
68676
- other = mainvue_type_script_lang_js_objectWithoutProperties(items, ['config', 'type', 'reset', 'multiCondition', 'contents', 'group']);
68883
+ events = items.events,
68884
+ other = toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(items, ['config', 'type', 'reset', 'multiCondition', 'contents', 'group', 'events']);
68677
68885
 
68678
68886
  if (type === 'text') {
68679
68887
  text = [h('div', { class: 'es-toolbar-text' }, Array.isArray(contents) ? contents.map(function (item) {
@@ -68824,7 +69032,7 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
68824
69032
  model: _this2.advancedData,
68825
69033
  contents: contents
68826
69034
  }),
68827
- on: {
69035
+ on: events ? events : {
68828
69036
  submit: _this2.hanleSubmit,
68829
69037
  reset: _this2.hanleCancel
68830
69038
  }
@@ -74832,27 +75040,28 @@ wujie_src_main.install = function (Vue) {
74832
75040
  };
74833
75041
 
74834
75042
  /* harmony default export */ var wujie = (wujie_src_main);
74835
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/wxlogin/src/main.vue?vue&type=template&id=6da39de6&
74836
- var mainvue_type_template_id_6da39de6_render = function () {
75043
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/wxlogin/src/main.vue?vue&type=template&id=18c0a641&
75044
+ var mainvue_type_template_id_18c0a641_render = function () {
74837
75045
  var _vm = this
74838
75046
  var _h = _vm.$createElement
74839
75047
  var _c = _vm._self._c || _h
74840
75048
  return _c(
74841
75049
  "div",
74842
75050
  {
75051
+ ref: "wxqrcode",
74843
75052
  staticClass: "es-wx-qrcode",
74844
- style: { width: _vm.width, height: _vm.height },
75053
+ style: { width: _vm.mwidth, height: _vm.mheight },
74845
75054
  attrs: { id: "wxqrcode" },
74846
75055
  },
74847
75056
  [
74848
- _vm.src
75057
+ _vm.src && _vm.mwidth && _vm.mheight
74849
75058
  ? _c("iframe", {
74850
75059
  attrs: {
74851
75060
  frameborder: "0",
74852
75061
  allowTransparency: "true",
74853
75062
  scrolling: "no",
74854
- width: _vm.width,
74855
- height: _vm.height,
75063
+ width: _vm.mwidth,
75064
+ height: _vm.mheight,
74856
75065
  src: _vm.src,
74857
75066
  },
74858
75067
  })
@@ -74860,11 +75069,11 @@ var mainvue_type_template_id_6da39de6_render = function () {
74860
75069
  ]
74861
75070
  )
74862
75071
  }
74863
- var mainvue_type_template_id_6da39de6_staticRenderFns = []
74864
- mainvue_type_template_id_6da39de6_render._withStripped = true
75072
+ var mainvue_type_template_id_18c0a641_staticRenderFns = []
75073
+ mainvue_type_template_id_18c0a641_render._withStripped = true
74865
75074
 
74866
75075
 
74867
- // CONCATENATED MODULE: ./packages/wxlogin/src/main.vue?vue&type=template&id=6da39de6&
75076
+ // CONCATENATED MODULE: ./packages/wxlogin/src/main.vue?vue&type=template&id=18c0a641&
74868
75077
 
74869
75078
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/wxlogin/src/main.vue?vue&type=script&lang=js&
74870
75079
  //
@@ -74884,6 +75093,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
74884
75093
  //
74885
75094
  //
74886
75095
  //
75096
+ //
74887
75097
 
74888
75098
 
74889
75099
 
@@ -74897,7 +75107,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
74897
75107
  default: false
74898
75108
  },
74899
75109
  appid: {
74900
- required: true,
75110
+ //required: true,
74901
75111
  type: String
74902
75112
  },
74903
75113
  scope: {
@@ -74905,7 +75115,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
74905
75115
  type: [String, Array]
74906
75116
  },
74907
75117
  redirect_uri: {
74908
- required: true,
75118
+ //required: true,
74909
75119
  type: String
74910
75120
  },
74911
75121
  state: String,
@@ -74928,8 +75138,9 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
74928
75138
  },
74929
75139
  height: {
74930
75140
  type: String,
74931
- default: '400px'
75141
+ default: '300px'
74932
75142
  },
75143
+ auto: Boolean,
74933
75144
  param: {
74934
75145
  type: Object,
74935
75146
  default: function _default() {
@@ -74939,16 +75150,29 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
74939
75150
  },
74940
75151
  data: function data() {
74941
75152
  return {
74942
- src: ''
75153
+ src: '',
75154
+ mwidth: 0,
75155
+ mheight: 0
74943
75156
  };
74944
75157
  },
74945
75158
 
74946
75159
  computed: {},
74947
75160
  watch: {},
74948
- created: function created() {
75161
+ created: function created() {},
75162
+ mounted: function mounted() {
75163
+ if (this.auto) {
75164
+ var parent = this.$refs.wxqrcode.parentNode;
75165
+ var h = parent.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(parent, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(parent, 'padding-bottom'), 10);
75166
+ if (h > 0) {
75167
+ this.mwidth = h + 'px';
75168
+ this.mheight = h + 'px';
75169
+ }
75170
+ } else {
75171
+ this.mwidth = this.width;
75172
+ this.mheight = this.height;
75173
+ }
74949
75174
  this.wxLogin();
74950
75175
  },
74951
- mounted: function mounted() {},
74952
75176
 
74953
75177
  methods: {
74954
75178
  wxLogin: function wxLogin() {
@@ -74983,8 +75207,8 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
74983
75207
 
74984
75208
  var wxlogin_src_main_component = normalizeComponent(
74985
75209
  packages_wxlogin_src_mainvue_type_script_lang_js_,
74986
- mainvue_type_template_id_6da39de6_render,
74987
- mainvue_type_template_id_6da39de6_staticRenderFns,
75210
+ mainvue_type_template_id_18c0a641_render,
75211
+ mainvue_type_template_id_18c0a641_staticRenderFns,
74988
75212
  false,
74989
75213
  null,
74990
75214
  null,
@@ -75073,7 +75297,7 @@ if (typeof window !== 'undefined' && window.Vue) {
75073
75297
  }
75074
75298
 
75075
75299
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
75076
- version: '0.5.74',
75300
+ version: '0.5.76',
75077
75301
  install: install,
75078
75302
  Button: packages_button,
75079
75303
  ButtonGroup: button_group,