eoss-ui 0.5.75 → 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 (58) hide show
  1. package/lib/button-group.js +26 -0
  2. package/lib/button.js +26 -0
  3. package/lib/checkbox-group.js +26 -0
  4. package/lib/data-table-form.js +26 -0
  5. package/lib/data-table.js +46 -16
  6. package/lib/date-picker.js +26 -0
  7. package/lib/dialog.js +26 -0
  8. package/lib/eoss-ui.common.js +369 -263
  9. package/lib/flow-group.js +26 -0
  10. package/lib/flow-list.js +37 -8
  11. package/lib/flow.js +26 -0
  12. package/lib/form.js +26 -0
  13. package/lib/handle-user.js +26 -0
  14. package/lib/handler.js +26 -0
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +26 -0
  17. package/lib/input.js +26 -0
  18. package/lib/login.js +175 -122
  19. package/lib/main.js +26 -0
  20. package/lib/nav.js +26 -0
  21. package/lib/page.js +26 -0
  22. package/lib/player.js +26 -0
  23. package/lib/qr-code.js +79 -36
  24. package/lib/radio-group.js +26 -0
  25. package/lib/retrial-auth.js +26 -0
  26. package/lib/select-ganged.js +26 -0
  27. package/lib/select.js +26 -0
  28. package/lib/selector-panel.js +26 -0
  29. package/lib/selector.js +26 -0
  30. package/lib/sizer.js +26 -0
  31. package/lib/steps.js +26 -0
  32. package/lib/switch.js +26 -0
  33. package/lib/table-form.js +26 -0
  34. package/lib/tabs.js +26 -0
  35. package/lib/theme-chalk/index.css +1 -1
  36. package/lib/theme-chalk/login.css +1 -1
  37. package/lib/tips.js +26 -0
  38. package/lib/toolbar.js +3 -2
  39. package/lib/tree-group.js +60 -34
  40. package/lib/tree.js +41 -3
  41. package/lib/upload.js +26 -0
  42. package/lib/utils/util.js +26 -0
  43. package/lib/wujie.js +26 -0
  44. package/lib/wxlogin.js +54 -12
  45. package/package.json +2 -2
  46. package/packages/data-table/src/main.vue +15 -14
  47. package/packages/flow-list/src/main.vue +63 -41
  48. package/packages/login/src/main.vue +32 -17
  49. package/packages/qr-code/src/main.vue +48 -37
  50. package/packages/theme-chalk/lib/index.css +1 -1
  51. package/packages/theme-chalk/lib/login.css +1 -1
  52. package/packages/theme-chalk/src/login.scss +912 -430
  53. package/packages/toolbar/src/main.vue +16 -6
  54. package/packages/tree/src/main.vue +13 -1
  55. package/packages/tree-group/src/main.vue +24 -37
  56. package/packages/wxlogin/src/main.vue +30 -12
  57. package/src/index.js +1 -1
  58. package/src/utils/util.js +26 -0
@@ -2303,6 +2303,31 @@ var isObject = function isObject(obj) {
2303
2303
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2304
2304
  };
2305
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
+
2306
2331
  /**
2307
2332
  * jointUrl
2308
2333
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3179,6 +3204,7 @@ var watermark = function watermark(option) {
3179
3204
  isLogged: isLogged,
3180
3205
  isLogined: isLogined,
3181
3206
  isObject: isObject,
3207
+ isObjectEqual: isObjectEqual,
3182
3208
  jointUrl: jointUrl,
3183
3209
  loadJs: loadJs,
3184
3210
  loading: loading,
@@ -6783,8 +6809,8 @@ clients_src_main.install = function (Vue) {
6783
6809
  };
6784
6810
 
6785
6811
  /* harmony default export */ var clients = (clients_src_main);
6786
- // 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=202d0a16&
6787
- var mainvue_type_template_id_202d0a16_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 () {
6788
6814
  var _vm = this
6789
6815
  var _h = _vm.$createElement
6790
6816
  var _c = _vm._self._c || _h
@@ -7094,11 +7120,11 @@ var mainvue_type_template_id_202d0a16_render = function () {
7094
7120
  1
7095
7121
  )
7096
7122
  }
7097
- var mainvue_type_template_id_202d0a16_staticRenderFns = []
7098
- mainvue_type_template_id_202d0a16_render._withStripped = true
7123
+ var mainvue_type_template_id_f80417f8_staticRenderFns = []
7124
+ mainvue_type_template_id_f80417f8_render._withStripped = true
7099
7125
 
7100
7126
 
7101
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=202d0a16&
7127
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=f80417f8&
7102
7128
 
7103
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&
7104
7130
  var childrenvue_type_template_id_44b7ff61_render = function () {
@@ -9500,7 +9526,8 @@ var mainvue_type_script_lang_js_components, _watch;
9500
9526
  pageSize: 20,
9501
9527
  totalCount: 0
9502
9528
  },
9503
- wheres: {},
9529
+ searchWhere: {},
9530
+ advanceWhere: {},
9504
9531
  tableHeight: 'auto',
9505
9532
  styles: {},
9506
9533
  selected: null,
@@ -9514,6 +9541,9 @@ var mainvue_type_script_lang_js_components, _watch;
9514
9541
  },
9515
9542
 
9516
9543
  computed: {
9544
+ wheres: function wheres() {
9545
+ return data_table_src_mainvue_type_script_lang_js_extends({}, this.searchWhere, this.advanceWhere);
9546
+ },
9517
9547
  params: function params() {
9518
9548
  return data_table_src_mainvue_type_script_lang_js_extends({}, this.param || {}, this.searchValue || {}, this.advanceValue || {});
9519
9549
  },
@@ -10372,18 +10402,19 @@ var mainvue_type_script_lang_js_components, _watch;
10372
10402
  this.$emit('next', res);
10373
10403
  },
10374
10404
  hanleSearch: function hanleSearch(data) {
10375
- this.wheres = this.response !== undefined ? this.response({
10405
+ this.searchWhere = this.response !== undefined ? this.response({
10376
10406
  type: 'search',
10377
10407
  data: JSON.parse(JSON.stringify(data))
10378
10408
  }) : data;
10379
10409
  if (this.url && this.executeSearch) {
10380
10410
  this.getTableData({ where: this.wheres });
10381
10411
  }
10382
- this.$emit('search', this.wheres);
10412
+ this.$emit('search', this.searchWhere);
10383
10413
  },
10384
10414
  hanleReset: function hanleReset() {
10415
+ this.searchWhere = {};
10416
+ this.advanceWhere = {};
10385
10417
  if (this.url) {
10386
- this.wheres = {};
10387
10418
  this.getTableData();
10388
10419
  }
10389
10420
  this.$emit('reset', this.params);
@@ -10392,21 +10423,20 @@ var mainvue_type_script_lang_js_components, _watch;
10392
10423
  var data = _ref.data,
10393
10424
  show = _ref.show;
10394
10425
 
10395
- var where = this.response !== undefined ? this.response({
10426
+ this.advanceWhere = this.response !== undefined ? this.response({
10396
10427
  type: 'filter',
10397
10428
  data: JSON.parse(JSON.stringify(data))
10398
10429
  }) : data;
10399
- this.wheres = data_table_src_mainvue_type_script_lang_js_extends({}, this.wheres, where);
10400
10430
  if (this.url && this.executeFilter) {
10401
10431
  this.getTableData({ where: this.wheres });
10402
10432
  }
10403
- 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
+ });
10404
10438
  },
10405
10439
  hanleCancel: function hanleCancel() {
10406
- // if (this.url && JSON.stringify(this.wheres) !== '{}') {
10407
- // this.wheres = {};
10408
- // this.getTableData();
10409
- // }
10410
10440
  this.$emit('cancel', this.params);
10411
10441
  },
10412
10442
  handleTabs: function handleTabs(_ref2) {
@@ -10540,8 +10570,8 @@ var mainvue_type_script_lang_js_components, _watch;
10540
10570
 
10541
10571
  var data_table_src_main_component = normalizeComponent(
10542
10572
  packages_data_table_src_mainvue_type_script_lang_js_,
10543
- mainvue_type_template_id_202d0a16_render,
10544
- mainvue_type_template_id_202d0a16_staticRenderFns,
10573
+ mainvue_type_template_id_f80417f8_render,
10574
+ mainvue_type_template_id_f80417f8_staticRenderFns,
10545
10575
  false,
10546
10576
  null,
10547
10577
  null,
@@ -44010,8 +44040,8 @@ flow_group_src_main.install = function (Vue) {
44010
44040
  };
44011
44041
 
44012
44042
  /* harmony default export */ var flow_group = (flow_group_src_main);
44013
- // 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&
44014
- 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 () {
44015
44045
  var _vm = this
44016
44046
  var _h = _vm.$createElement
44017
44047
  var _c = _vm._self._c || _h
@@ -44037,7 +44067,7 @@ var mainvue_type_template_id_74518680_render = function () {
44037
44067
  _vm.currentUserHasPresetInfoAuth) ||
44038
44068
  (item.type != "splitReading" && item.type != "preset"),
44039
44069
  expression:
44040
- "\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 ",
44041
44071
  },
44042
44072
  ],
44043
44073
  key: index,
@@ -44207,11 +44237,11 @@ var mainvue_type_template_id_74518680_render = function () {
44207
44237
  2
44208
44238
  )
44209
44239
  }
44210
- var mainvue_type_template_id_74518680_staticRenderFns = []
44211
- 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
44212
44242
 
44213
44243
 
44214
- // 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&
44215
44245
 
44216
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&
44217
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; };
@@ -44304,6 +44334,9 @@ var flow_list_src_mainvue_type_script_lang_js_components;
44304
44334
  //
44305
44335
  //
44306
44336
  //
44337
+ //
44338
+ //
44339
+ //
44307
44340
 
44308
44341
 
44309
44342
 
@@ -44546,7 +44579,7 @@ var flow_list_src_mainvue_type_script_lang_js_components;
44546
44579
  showOverflowTooltip: true,
44547
44580
  key: 'blyj',
44548
44581
  render: function render(h, params) {
44549
- 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 || '')]);
44550
44583
  }
44551
44584
  }, {
44552
44585
  label: '验签',
@@ -44665,7 +44698,7 @@ var flow_list_src_mainvue_type_script_lang_js_components;
44665
44698
  key: 'blyj',
44666
44699
  showOverflowTooltip: true,
44667
44700
  render: function render(h, params) {
44668
- 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 || '')]);
44669
44702
  }
44670
44703
  }, {
44671
44704
  label: '验签',
@@ -45256,8 +45289,8 @@ var flow_list_src_mainvue_type_script_lang_js_components;
45256
45289
 
45257
45290
  var flow_list_src_main_component = normalizeComponent(
45258
45291
  packages_flow_list_src_mainvue_type_script_lang_js_,
45259
- mainvue_type_template_id_74518680_render,
45260
- mainvue_type_template_id_74518680_staticRenderFns,
45292
+ mainvue_type_template_id_644e2900_render,
45293
+ mainvue_type_template_id_644e2900_staticRenderFns,
45261
45294
  false,
45262
45295
  null,
45263
45296
  null,
@@ -47574,8 +47607,8 @@ layout_src_main.install = function (Vue) {
47574
47607
  };
47575
47608
 
47576
47609
  /* harmony default export */ var layout = (layout_src_main);
47577
- // 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=5f60346a&
47578
- var mainvue_type_template_id_5f60346a_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 () {
47579
47612
  var _vm = this
47580
47613
  var _h = _vm.$createElement
47581
47614
  var _c = _vm._self._c || _h
@@ -47607,7 +47640,10 @@ var mainvue_type_template_id_5f60346a_render = function () {
47607
47640
  },
47608
47641
  ],
47609
47642
  staticClass: "es-login",
47610
- class: { "es-simple": _vm.mode == "simple" },
47643
+ class: {
47644
+ "es-simple": _vm.mode == "simple",
47645
+ "es-adaptive": !_vm.isScale,
47646
+ },
47611
47647
  style: _vm.transform,
47612
47648
  attrs: {
47613
47649
  "element-loading-text": "登录中...",
@@ -47626,24 +47662,21 @@ var mainvue_type_template_id_5f60346a_render = function () {
47626
47662
  "div",
47627
47663
  {
47628
47664
  staticClass: "es-login-main",
47665
+ class: {
47666
+ "es-switchs": _vm.switchs > 2,
47667
+ },
47629
47668
  style: _vm.getBackground(_vm.loginMainImg),
47630
47669
  },
47631
47670
  [
47632
- _vm.loginTitleImg
47633
- ? _c("div", { staticClass: "es-login-title-image" }, [
47634
- _c("img", {
47635
- staticClass: "es-login-title-img",
47636
- attrs: { src: _vm.loginTitleImg },
47637
- }),
47638
- ])
47639
- : _vm._e(),
47640
47671
  _vm.switchs > 1
47641
47672
  ? _c(
47642
47673
  "div",
47643
47674
  {
47644
47675
  class: {
47645
47676
  "es-login-switch": _vm.switchs == 2,
47646
- "es-login-switchs": _vm.switchs > 2,
47677
+ "es-login-switchs":
47678
+ _vm.switchs > 2 ||
47679
+ (_vm.switchs == 2 && _vm.loginTitleImg),
47647
47680
  },
47648
47681
  },
47649
47682
  _vm._l(_vm.icons, function (item, index) {
@@ -47675,6 +47708,14 @@ var mainvue_type_template_id_5f60346a_render = function () {
47675
47708
  0
47676
47709
  )
47677
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(),
47678
47719
  _c(
47679
47720
  "div",
47680
47721
  { staticClass: "es-login-form-box" },
@@ -47685,7 +47726,7 @@ var mainvue_type_template_id_5f60346a_render = function () {
47685
47726
  _c(
47686
47727
  "el-form",
47687
47728
  {
47688
- ref: "login",
47729
+ ref: "login" + _vm.active,
47689
47730
  staticClass: "es-login-form",
47690
47731
  attrs: { model: _vm.formData },
47691
47732
  },
@@ -47902,9 +47943,10 @@ var mainvue_type_template_id_5f60346a_render = function () {
47902
47943
  rawName: "v-show",
47903
47944
  value:
47904
47945
  _vm.imgCode &&
47905
- _vm.active == 0,
47946
+ (_vm.active == "0" ||
47947
+ _vm.active == "12"),
47906
47948
  expression:
47907
- "imgCode && active == 0",
47949
+ "imgCode && (active == '0' || active == '12')",
47908
47950
  },
47909
47951
  ],
47910
47952
  staticClass: "es-img-code",
@@ -48102,6 +48144,7 @@ var mainvue_type_template_id_5f60346a_render = function () {
48102
48144
  attrs: {
48103
48145
  content: _vm.identifyingId,
48104
48146
  logo: _vm.qrimg,
48147
+ auto: "",
48105
48148
  },
48106
48149
  })
48107
48150
  : _vm._e(),
@@ -48113,7 +48156,7 @@ var mainvue_type_template_id_5f60346a_render = function () {
48113
48156
  _c("es-wxlogin", {
48114
48157
  attrs: {
48115
48158
  href: "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7CiAgICB3aWR0aDogMTAwJSAhaW1wb3J0YW50OwogICAgYm94LXNpemluZzogYm9yZGVyLWJveCAhaW1wb3J0YW50OwogICAgbWFyZ2luOiAwICFpbXBvcnRhbnQ7Cn0KCi5pbXBvd2VyQm94IC5pbmZvLAouaW1wb3dlckJveCAudGl0bGUgewogICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50Owp9",
48116
- height: "300px",
48159
+ auto: "",
48117
48160
  appid: _vm.wechatAppid,
48118
48161
  scope: _vm.wechatScope,
48119
48162
  redirect_uri: _vm.redirectUri,
@@ -48134,7 +48177,7 @@ var mainvue_type_template_id_5f60346a_render = function () {
48134
48177
  _c(
48135
48178
  "el-form",
48136
48179
  {
48137
- ref: "login",
48180
+ ref: "login" + _vm.active,
48138
48181
  staticClass: "es-login-form es-login-verify",
48139
48182
  attrs: { model: _vm.formData },
48140
48183
  },
@@ -48505,11 +48548,11 @@ var mainvue_type_template_id_5f60346a_render = function () {
48505
48548
  )
48506
48549
  : _vm._e()
48507
48550
  }
48508
- var mainvue_type_template_id_5f60346a_staticRenderFns = []
48509
- mainvue_type_template_id_5f60346a_render._withStripped = true
48551
+ var mainvue_type_template_id_0b26efc4_staticRenderFns = []
48552
+ mainvue_type_template_id_0b26efc4_render._withStripped = true
48510
48553
 
48511
48554
 
48512
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=5f60346a&
48555
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=0b26efc4&
48513
48556
 
48514
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&
48515
48558
  var resetPasswordvue_type_template_id_579bc87d_render = function () {
@@ -49422,6 +49465,20 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49422
49465
  //
49423
49466
  //
49424
49467
  //
49468
+ //
49469
+ //
49470
+ //
49471
+ //
49472
+ //
49473
+ //
49474
+ //
49475
+ //
49476
+ //
49477
+ //
49478
+ //
49479
+ //
49480
+ //
49481
+ //
49425
49482
 
49426
49483
 
49427
49484
 
@@ -49618,10 +49675,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49618
49675
  type: Number,
49619
49676
  default: 1500
49620
49677
  },
49621
- isScale: {
49622
- type: Boolean,
49623
- default: true
49624
- }
49678
+ isScale: Boolean
49625
49679
  },
49626
49680
  computed: {
49627
49681
  transform: function transform() {
@@ -49993,8 +50047,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49993
50047
  }
49994
50048
  },
49995
50049
  switchLogin: function switchLogin(res) {
49996
- //this.$refs.login && this.$refs.login.resetFields();
49997
- this.$refs.login && this.$refs.login.clearValidate();
50050
+ var _this3 = this;
50051
+
49998
50052
  if (res != 1) {
49999
50053
  this.active = res.type;
50000
50054
  this.title = res.name;
@@ -50002,12 +50056,16 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50002
50056
  }
50003
50057
  this.countdown = 0;
50004
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
+ });
50005
50063
  },
50006
50064
  isShow: function isShow(res) {
50007
50065
  return this.loginModel.indexOf(res) > -1;
50008
50066
  },
50009
50067
  getLogin: function getLogin() {
50010
- var _this3 = this;
50068
+ var _this4 = this;
50011
50069
 
50012
50070
  var config = utils_util["a" /* default */].getStorage('initLogin');
50013
50071
  if (config) {
@@ -50021,9 +50079,9 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50021
50079
  key: 'initLogin',
50022
50080
  value: JSON.stringify(res.results)
50023
50081
  });
50024
- _this3.setConfig(res.results);
50082
+ _this4.setConfig(res.results);
50025
50083
  } else {
50026
- _this3.$message({
50084
+ _this4.$message({
50027
50085
  message: res.msg || '系统错误,请联系管理员!',
50028
50086
  type: 'error',
50029
50087
  duration: 2000
@@ -50031,7 +50089,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50031
50089
  }
50032
50090
  }).catch(function (err) {
50033
50091
  if (err.message && err.message !== 'canceled') {
50034
- _this3.$message.error(err.message);
50092
+ _this4.$message.error(err.message);
50035
50093
  }
50036
50094
  });
50037
50095
  },
@@ -50061,7 +50119,9 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50061
50119
  this.setup = res.setup;
50062
50120
  this.sysName = res.subsystemName;
50063
50121
  this.downloadSetup = res.downloadSetup;
50064
- document.title = res.subsystemName;
50122
+ if (res.subsystemName) {
50123
+ document.title = res.subsystemName;
50124
+ }
50065
50125
  this.app = res.appName || res.subsystemName;
50066
50126
  if (res.qrimg || res.qrImg) {
50067
50127
  this.qrimg = res.qrimg || res.qrImg;
@@ -50137,7 +50197,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50137
50197
  return this.imageCode;
50138
50198
  },
50139
50199
  getCode: function getCode() {
50140
- var _this4 = this;
50200
+ var _this5 = this;
50141
50201
 
50142
50202
  if (this.countdown) {
50143
50203
  return false;
@@ -50178,14 +50238,14 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50178
50238
  }
50179
50239
  this.countdown = 60;
50180
50240
  this.timer = setInterval(function () {
50181
- if (_this4.countdown > 0) {
50182
- _this4.countdown--;
50183
- _this4.disabled = true;
50184
- _this4.btnText = '重新获取' + _this4.countdown + 's';
50241
+ if (_this5.countdown > 0) {
50242
+ _this5.countdown--;
50243
+ _this5.disabled = true;
50244
+ _this5.btnText = '重新获取' + _this5.countdown + 's';
50185
50245
  } else {
50186
- _this4.btnText = '重新获取';
50187
- _this4.disabled = false;
50188
- _this4.submit = false;
50246
+ _this5.btnText = '重新获取';
50247
+ _this5.disabled = false;
50248
+ _this5.submit = false;
50189
50249
  }
50190
50250
  }, 1000);
50191
50251
  utils_util["a" /* default */].ajax({
@@ -50193,66 +50253,66 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50193
50253
  url: this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
50194
50254
  data: data
50195
50255
  }).then(function (res) {
50196
- _this4.$message({
50256
+ _this5.$message({
50197
50257
  message: res.msg,
50198
50258
  duration: 2000,
50199
50259
  type: res.rCode == 0 ? 'success' : 'error'
50200
50260
  });
50201
50261
 
50202
50262
  if (res.rCode === 2) {
50203
- _this4.btnText = '获取验证码';
50204
- _this4.disabled = false;
50205
- _this4.countdown = 0;
50206
- clearInterval(_this4.timer);
50263
+ _this5.btnText = '获取验证码';
50264
+ _this5.disabled = false;
50265
+ _this5.countdown = 0;
50266
+ clearInterval(_this5.timer);
50207
50267
  }
50208
50268
  }).catch(function (err) {
50209
50269
  if (err.message && err.message !== 'canceled') {
50210
- _this4.$message.error(err.message);
50270
+ _this5.$message.error(err.message);
50211
50271
  }
50212
50272
  });
50213
50273
  },
50214
50274
  handleLogin: function handleLogin() {
50215
- var _this5 = this;
50275
+ var _this6 = this;
50216
50276
 
50217
50277
  if (this.submit) {
50218
50278
  return false;
50219
50279
  }
50220
50280
  this.$refs['login'].validate(function (valid) {
50221
50281
  if (valid) {
50222
- _this5.submit = true;
50282
+ _this6.submit = true;
50223
50283
  var param = utils_util["a" /* default */].getParams() || {};
50224
- var data = _this5.active == '0' ? {
50225
- username: _this5.formData.username,
50226
- password: _this5.secret && _this5.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50227
- data: _this5.formData.password,
50228
- key: _this5.secret
50229
- }) : _this5.formData.password,
50230
- identifyingCode: _this5.formData.identifyingCode,
50231
- identifyingId: _this5.identifyingId
50232
- } : _this5.active == '12' ? {
50233
- username: _this5.formData.username,
50234
- password: _this5.secret && _this5.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50235
- data: _this5.formData.password,
50236
- key: _this5.secret
50237
- }) : _this5.formData.password,
50238
- targetType: _this5.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
50239
- 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
50240
50300
  } : {
50241
- target: _this5.formData.target,
50242
- verificationCode: _this5.formData.verificationCode,
50243
- targetType: _this5.active == '6' ? 'SMS' : 'EMAIL'
50301
+ target: _this6.formData.target,
50302
+ verificationCode: _this6.formData.verificationCode,
50303
+ targetType: _this6.active == '6' ? 'SMS' : 'EMAIL'
50244
50304
  };
50245
- if (_this5.onLogin) {
50246
- if (_this5.active == '0') {
50247
- _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);
50248
50308
  } else {
50249
- _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));
50250
50310
  }
50251
50311
  } else {
50252
- _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));
50253
50313
  }
50254
50314
  } else {
50255
- _this5.submit = false;
50315
+ _this6.submit = false;
50256
50316
  return false;
50257
50317
  }
50258
50318
  });
@@ -50268,7 +50328,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50268
50328
  }
50269
50329
  },
50270
50330
  handleUserLogin: function handleUserLogin(data) {
50271
- var _this6 = this;
50331
+ var _this7 = this;
50272
50332
 
50273
50333
  var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
50274
50334
  utils_util["a" /* default */].ajax({
@@ -50276,68 +50336,68 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50276
50336
  url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
50277
50337
  data: extUserBindHandleId ? login_src_mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
50278
50338
  }).then(function (res) {
50279
- _this6.submit = false;
50339
+ _this7.submit = false;
50280
50340
  if (res.rCode == 0) {
50281
50341
  utils_util["a" /* default */].removeStorage('extUserBindHandleId');
50282
- _this6.handleRemember();
50342
+ _this7.handleRemember();
50283
50343
  var results = res.results;
50284
- _this6.handleResults(results);
50285
- if (_this6.onSuccess) {
50286
- _this6.onSuccess(res);
50344
+ _this7.handleResults(results);
50345
+ if (_this7.onSuccess) {
50346
+ _this7.onSuccess(res);
50287
50347
  }
50288
50348
  } else {
50289
50349
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
50290
- _this6.$message({
50350
+ _this7.$message({
50291
50351
  message: msg || '系统错误,请联系管理员!',
50292
50352
  type: 'error',
50293
50353
  duration: 1500,
50294
50354
  onClose: function onClose() {
50295
- _this6.btnText = '获取验证码';
50296
- _this6.disabled = false;
50297
- _this6.countdown = 0;
50298
- clearInterval(_this6.timer);
50299
- _this6.getImgCode();
50355
+ _this7.btnText = '获取验证码';
50356
+ _this7.disabled = false;
50357
+ _this7.countdown = 0;
50358
+ clearInterval(_this7.timer);
50359
+ _this7.getImgCode();
50300
50360
  }
50301
50361
  });
50302
- _this6.onError(res);
50362
+ _this7.onError(res);
50303
50363
  }
50304
50364
  }).catch(function (err) {
50305
- _this6.submit = false;
50365
+ _this7.submit = false;
50306
50366
  if (err.message && err.message !== 'canceled') {
50307
- _this6.$message.error(err.message);
50367
+ _this7.$message.error(err.message);
50308
50368
  }
50309
50369
  });
50310
50370
  },
50311
50371
  caLogin: function caLogin(signedData) {
50312
- var _this7 = this;
50372
+ var _this8 = this;
50313
50373
 
50314
50374
  utils_util["a" /* default */].ajax({
50315
50375
  method: 'post',
50316
50376
  url: this.caAction,
50317
50377
  data: { identifyingId: this.identifyingId, signedData: signedData }
50318
50378
  }).then(function (res) {
50319
- _this7.submit = false;
50379
+ _this8.submit = false;
50320
50380
  if (res.rCode == 0) {
50321
50381
  var results = res.results;
50322
- _this7.handleResults(results);
50323
- if (_this7.onSuccess) {
50324
- _this7.onSuccess(res);
50382
+ _this8.handleResults(results);
50383
+ if (_this8.onSuccess) {
50384
+ _this8.onSuccess(res);
50325
50385
  }
50326
50386
  } else {
50327
50387
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
50328
- _this7.$message({
50388
+ _this8.$message({
50329
50389
  message: msg || '系统错误,请联系管理员!',
50330
50390
  type: 'error',
50331
50391
  duration: 1500,
50332
50392
  onClose: function onClose() {
50333
- _this7.getImgCode();
50393
+ _this8.getImgCode();
50334
50394
  }
50335
50395
  });
50336
- _this7.onError(res);
50396
+ _this8.onError(res);
50337
50397
  }
50338
50398
  }).catch(function (err) {
50339
50399
  if (err.message && err.message !== 'canceled') {
50340
- _this7.$message.error(err.message);
50400
+ _this8.$message.error(err.message);
50341
50401
  }
50342
50402
  });
50343
50403
  },
@@ -50354,17 +50414,17 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50354
50414
 
50355
50415
  //获取app登录信息
50356
50416
  loginInfo: function loginInfo(res) {
50357
- var _this8 = this;
50417
+ var _this9 = this;
50358
50418
 
50359
50419
  clearTimeout(this.interval);
50360
50420
  if (res) {
50361
50421
  this.interval = setTimeout(function () {
50362
- _this8.initRequestLoginInfo();
50422
+ _this9.initRequestLoginInfo();
50363
50423
  }, this.scanIntervalTime);
50364
50424
  }
50365
50425
  },
50366
50426
  initRequestLoginInfo: function initRequestLoginInfo() {
50367
- var _this9 = this;
50427
+ var _this10 = this;
50368
50428
 
50369
50429
  if (this.identifyingId == '') {
50370
50430
  return false;
@@ -50379,21 +50439,21 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50379
50439
  if (res.rCode === 0) {
50380
50440
  var results = res.results;
50381
50441
  if (results.statusCode === 0) {
50382
- clearTimeout(_this9.interval);
50383
- _this9.handleResults(results, 3);
50442
+ clearTimeout(_this10.interval);
50443
+ _this10.handleResults(results, 3);
50384
50444
  } else {
50385
- _this9.loginInfo(true);
50445
+ _this10.loginInfo(true);
50386
50446
  }
50387
50447
  }
50388
50448
  }).catch(function (err) {
50389
- clearTimeout(_this9.interval);
50449
+ clearTimeout(_this10.interval);
50390
50450
  if (err.message && err.message !== 'canceled') {
50391
- _this9.$message.error(err.message);
50451
+ _this10.$message.error(err.message);
50392
50452
  }
50393
50453
  });
50394
50454
  },
50395
50455
  handleResults: function handleResults(results, type) {
50396
- var _this10 = this;
50456
+ var _this11 = this;
50397
50457
 
50398
50458
  switch (results.statusCode) {
50399
50459
  case 0:
@@ -50414,15 +50474,15 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50414
50474
  type: 'success',
50415
50475
  duration: 1500,
50416
50476
  onClose: function onClose() {
50417
- if (_this10.toUrl) {
50418
- window.location.href = _this10.toUrl;
50419
- } else if (results.doorIndex && _this10.doorIndex) {
50477
+ if (_this11.toUrl) {
50478
+ window.location.href = _this11.toUrl;
50479
+ } else if (results.doorIndex && _this11.doorIndex) {
50420
50480
  window.location.href = results.doorIndex;
50421
50481
  } else {
50422
50482
  if (window.location.href.indexOf('login.html') > -1) {
50423
50483
  window.location.href = './main.html';
50424
50484
  } else {
50425
- _this10.$router.push({ name: 'main' });
50485
+ _this11.$router.push({ name: 'main' });
50426
50486
  }
50427
50487
  }
50428
50488
  }
@@ -50434,11 +50494,11 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50434
50494
  //cancelButtonText: '取消',
50435
50495
  type: 'warning'
50436
50496
  }).then(function () {
50437
- _this10.operationCheckCode = results.checkCode;
50438
- if (typeof _this10.forget === 'string') {
50439
- 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);
50440
50500
  } else {
50441
- _this10.showResetPassword = true;
50501
+ _this11.showResetPassword = true;
50442
50502
  }
50443
50503
  }).catch(function (e) {});
50444
50504
  break;
@@ -50479,13 +50539,13 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50479
50539
  type: 'error',
50480
50540
  duration: 1500,
50481
50541
  onClose: function onClose() {
50482
- if (_this10.code) {
50542
+ if (_this11.code) {
50483
50543
  window.location.href = utils_util["a" /* default */].delUrlParam({ key: 'code' });
50484
50544
  if (window.location.hash) {
50485
50545
  location.reload();
50486
50546
  }
50487
50547
  } else {
50488
- _this10.getImgCode();
50548
+ _this11.getImgCode();
50489
50549
  }
50490
50550
  }
50491
50551
  });
@@ -50495,15 +50555,15 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50495
50555
  }
50496
50556
  },
50497
50557
  handleAssistance: function handleAssistance(data) {
50498
- var _this11 = this;
50558
+ var _this12 = this;
50499
50559
 
50500
50560
  clearTimeout(this.doAssistance);
50501
50561
  this.doAssistance = setTimeout(function () {
50502
- _this11.doAssistanceLogin(data);
50562
+ _this12.doAssistanceLogin(data);
50503
50563
  }, this.scanIntervalTime);
50504
50564
  },
50505
50565
  doAssistanceLogin: function doAssistanceLogin(data) {
50506
- var _this12 = this;
50566
+ var _this13 = this;
50507
50567
 
50508
50568
  utils_util["a" /* default */].ajax({
50509
50569
  method: 'post',
@@ -50513,19 +50573,19 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50513
50573
  if (res.rCode === 0) {
50514
50574
  var results = res.results;
50515
50575
  if (results.statusCode === 0) {
50516
- clearTimeout(_this12.doAssistance);
50517
- _this12.handleResults(results, 3);
50576
+ clearTimeout(_this13.doAssistance);
50577
+ _this13.handleResults(results, 3);
50518
50578
  } else {
50519
- _this12.handleAssistance(data);
50579
+ _this13.handleAssistance(data);
50520
50580
  }
50521
50581
  } else {
50522
- clearTimeout(_this12.doAssistance);
50523
- _this12.$message.error(res.msg);
50582
+ clearTimeout(_this13.doAssistance);
50583
+ _this13.$message.error(res.msg);
50524
50584
  }
50525
50585
  }).catch(function (err) {
50526
- clearTimeout(_this12.doAssistance);
50586
+ clearTimeout(_this13.doAssistance);
50527
50587
  if (err.message && err.message !== 'canceled') {
50528
- _this12.$message.error(err.message);
50588
+ _this13.$message.error(err.message);
50529
50589
  }
50530
50590
  });
50531
50591
  },
@@ -50559,8 +50619,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50559
50619
 
50560
50620
  var login_src_main_component = normalizeComponent(
50561
50621
  packages_login_src_mainvue_type_script_lang_js_,
50562
- mainvue_type_template_id_5f60346a_render,
50563
- mainvue_type_template_id_5f60346a_staticRenderFns,
50622
+ mainvue_type_template_id_0b26efc4_render,
50623
+ mainvue_type_template_id_0b26efc4_staticRenderFns,
50564
50624
  false,
50565
50625
  null,
50566
50626
  null,
@@ -57501,8 +57561,8 @@ player_src_main.install = function (Vue) {
57501
57561
  };
57502
57562
 
57503
57563
  /* harmony default export */ var player = (player_src_main);
57504
- // 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&
57505
- 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 () {
57506
57566
  var _vm = this
57507
57567
  var _h = _vm.$createElement
57508
57568
  var _c = _vm._self._c || _h
@@ -57510,24 +57570,33 @@ var mainvue_type_template_id_28375a46_render = function () {
57510
57570
  "div",
57511
57571
  { ref: "qrcode", staticClass: "es-qrcode-box", attrs: { id: "qrcode" } },
57512
57572
  [
57513
- _c("img", {
57514
- ref: "qrcodeImg",
57515
- staticClass: "es-qrcode-img",
57516
- attrs: { width: _vm._width, height: _vm._height, alt: "二维码图片" },
57517
- }),
57518
- _c("canvas", {
57519
- ref: "canvas",
57520
- staticClass: "canvas",
57521
- attrs: { width: _vm._width, height: _vm._height },
57522
- }),
57523
- ]
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
57524
57593
  )
57525
57594
  }
57526
- var mainvue_type_template_id_28375a46_staticRenderFns = []
57527
- 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
57528
57597
 
57529
57598
 
57530
- // 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&
57531
57600
 
57532
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&
57533
57602
  //
@@ -57555,6 +57624,8 @@ mainvue_type_template_id_28375a46_render._withStripped = true
57555
57624
  //
57556
57625
  //
57557
57626
  //
57627
+ //
57628
+ //
57558
57629
 
57559
57630
 
57560
57631
  var QRCode = __webpack_require__(24);
@@ -57567,8 +57638,14 @@ var QRCode = __webpack_require__(24);
57567
57638
  },
57568
57639
  logo: String,
57569
57640
  text: String,
57570
- width: Number,
57571
- height: Number,
57641
+ width: {
57642
+ type: Number,
57643
+ default: 300
57644
+ },
57645
+ height: {
57646
+ type: Number,
57647
+ default: 300
57648
+ },
57572
57649
  auto: Boolean,
57573
57650
  option: {
57574
57651
  type: Object,
@@ -57583,22 +57660,12 @@ var QRCode = __webpack_require__(24);
57583
57660
  }
57584
57661
  }
57585
57662
  },
57586
- computed: {
57587
- _width: function _width() {
57588
- if (this.auto) {
57589
- return this.$refs.qrcode.offsetWidth;
57590
- }
57591
- return this.width ? this.width : 300;
57592
- },
57593
- _height: function _height() {
57594
- if (this.auto) {
57595
- return this.$refs.qrcode.offsetHeight;
57596
- }
57597
- return this.height ? this.height : 300;
57598
- }
57599
- },
57663
+ computed: {},
57600
57664
  data: function data() {
57601
- return {};
57665
+ return {
57666
+ mwidth: 0,
57667
+ mheight: 0
57668
+ };
57602
57669
  },
57603
57670
 
57604
57671
  watch: {
@@ -57622,6 +57689,16 @@ var QRCode = __webpack_require__(24);
57622
57689
  mounted: function mounted() {
57623
57690
  var _this2 = this;
57624
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
+ }
57625
57702
  this.$nextTick(function () {
57626
57703
  _this2.createQRCode();
57627
57704
  });
@@ -57635,8 +57712,8 @@ var QRCode = __webpack_require__(24);
57635
57712
  //let qrcodeLogo = this.$refs.qrcodeLogo;
57636
57713
  var canvas = this.$refs.canvas;
57637
57714
  var option = utils_util["a" /* default */].extend({}, this.option, {
57638
- width: this._width,
57639
- height: this._height
57715
+ width: this.mwidth,
57716
+ height: this.mheight
57640
57717
  });
57641
57718
  if (!qrcodeImg) {
57642
57719
  return false;
@@ -57648,12 +57725,12 @@ var QRCode = __webpack_require__(24);
57648
57725
  var ctx = canvas.getContext('2d');
57649
57726
  setTimeout(function () {
57650
57727
  //获取图片
57651
- ctx.drawImage(qrcodeImg, 0, 0, _this3._width, _this3._height);
57728
+ ctx.drawImage(qrcodeImg, 0, 0, _this3.mwidth, _this3.mheight);
57652
57729
  if (_this3.logo && _this3.logo.indexOf('.') > -1) {
57653
57730
  var logo = new Image();
57654
57731
  logo.src = _this3.logo;
57655
57732
  //设置logo大小
57656
- var logoPosition = (_this3._width - 46) / 2; //logo相对于canvas居中定位
57733
+ var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
57657
57734
  //设置获取的logo将其变为圆角以及添加白色背景
57658
57735
  /* ctx.fillStyle = "#fff";
57659
57736
  ctx.beginPath();
@@ -57678,8 +57755,8 @@ var QRCode = __webpack_require__(24);
57678
57755
  var fpadd = 10; //规定内间距
57679
57756
  ctx.font = 'bold 16px Arial';
57680
57757
  var tw = ctx.measureText(_this3.text).width; //文字真实宽度
57681
- var ftop = (_this3._height - 16) / 2; //根据字体大小计算文字top
57682
- var fleft = (_this3._width - tw) / 2; //根据字体大小计算文字left
57758
+ var ftop = (_this3.mheight - 16) / 2; //根据字体大小计算文字top
57759
+ var fleft = (_this3.mwidth - tw) / 2; //根据字体大小计算文字left
57683
57760
  var tp = 16 / 2; //字体边距为字体大小的一半可以自己设置
57684
57761
  ctx.fillStyle = '#fff';
57685
57762
  ctx.fillRect(fleft - tp / 2, ftop - tp / 2, tw + tp, 16 + tp);
@@ -57708,8 +57785,8 @@ var QRCode = __webpack_require__(24);
57708
57785
 
57709
57786
  var qr_code_src_main_component = normalizeComponent(
57710
57787
  packages_qr_code_src_mainvue_type_script_lang_js_,
57711
- mainvue_type_template_id_28375a46_render,
57712
- mainvue_type_template_id_28375a46_staticRenderFns,
57788
+ mainvue_type_template_id_338a3a1e_render,
57789
+ mainvue_type_template_id_338a3a1e_staticRenderFns,
57713
57790
  false,
57714
57791
  null,
57715
57792
  null,
@@ -66788,8 +66865,8 @@ tips_src_main.install = function (Vue) {
66788
66865
  };
66789
66866
 
66790
66867
  /* harmony default export */ var tips = (tips_src_main);
66791
- // 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&
66792
- 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 () {
66793
66870
  var _vm = this
66794
66871
  var _h = _vm.$createElement
66795
66872
  var _c = _vm._self._c || _h
@@ -66985,11 +67062,11 @@ var mainvue_type_template_id_4df0cd89_render = function () {
66985
67062
  )
66986
67063
  : _vm._e()
66987
67064
  }
66988
- var mainvue_type_template_id_4df0cd89_staticRenderFns = []
66989
- 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
66990
67067
 
66991
67068
 
66992
- // 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&
66993
67070
 
66994
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&
66995
67072
  //
@@ -67342,6 +67419,18 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67342
67419
  this.$refs.oaTree.filter(val);
67343
67420
  }
67344
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
+ }
67345
67434
  }
67346
67435
  },
67347
67436
  beforeCreate: function beforeCreate() {
@@ -67376,7 +67465,7 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67376
67465
  getTreeDatas: function getTreeDatas(param) {
67377
67466
  var _this2 = this;
67378
67467
 
67379
- 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 || {});
67380
67469
  if (!this.url || !this.isRemote) return;
67381
67470
  this.loading = true;
67382
67471
  utils_util["a" /* default */].ajax({
@@ -67690,8 +67779,8 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67690
67779
 
67691
67780
  var tree_src_main_component = normalizeComponent(
67692
67781
  packages_tree_src_mainvue_type_script_lang_js_,
67693
- mainvue_type_template_id_4df0cd89_render,
67694
- mainvue_type_template_id_4df0cd89_staticRenderFns,
67782
+ mainvue_type_template_id_49d73969_render,
67783
+ mainvue_type_template_id_49d73969_staticRenderFns,
67695
67784
  false,
67696
67785
  null,
67697
67786
  null,
@@ -67708,8 +67797,8 @@ tree_src_main.install = function (Vue) {
67708
67797
  };
67709
67798
 
67710
67799
  /* harmony default export */ var packages_tree = (tree_src_main);
67711
- // 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&
67712
- 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 () {
67713
67802
  var _vm = this
67714
67803
  var _h = _vm.$createElement
67715
67804
  var _c = _vm._self._c || _h
@@ -67890,7 +67979,10 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67890
67979
  "es-button",
67891
67980
  _vm._g(
67892
67981
  _vm._b(
67893
- { key: index, attrs: { size: "small" } },
67982
+ {
67983
+ key: item.id || index,
67984
+ attrs: { size: "small" },
67985
+ },
67894
67986
  "es-button",
67895
67987
  item,
67896
67988
  false
@@ -67932,12 +68024,14 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67932
68024
  _vm._g(
67933
68025
  _vm._b(
67934
68026
  {
67935
- key: _vm.count,
67936
68027
  ref: _vm.table.ref ? _vm.table.ref : "esDataTable",
67937
- attrs: { size: "mini", param: _vm.param },
68028
+ attrs: { size: "mini", param: _vm.params },
67938
68029
  },
67939
68030
  "es-data-table",
67940
- Object.assign({}, { close: true }, _vm.table),
68031
+ _vm.handleExclAttribute({
68032
+ data: Object.assign({}, { close: true }, _vm.table),
68033
+ attrs: ["param"],
68034
+ }),
67941
68035
  false
67942
68036
  ),
67943
68037
  Object.assign({}, _vm.$listeners, _vm.table.events)
@@ -68059,11 +68153,11 @@ var mainvue_type_template_id_3f239eaa_render = function () {
68059
68153
  2
68060
68154
  )
68061
68155
  }
68062
- var mainvue_type_template_id_3f239eaa_staticRenderFns = []
68063
- 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
68064
68158
 
68065
68159
 
68066
- // 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&
68067
68161
 
68068
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&
68069
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; };
@@ -68251,6 +68345,10 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68251
68345
  //
68252
68346
  //
68253
68347
  //
68348
+ //
68349
+ //
68350
+ //
68351
+ //
68254
68352
 
68255
68353
 
68256
68354
  /* harmony default export */ var tree_group_src_mainvue_type_script_lang_js_ = ({
@@ -68342,14 +68440,6 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68342
68440
  return 'wujie';
68343
68441
  }
68344
68442
  }
68345
- },
68346
- param: function param() {
68347
- if (this.params) {
68348
- return this.params;
68349
- } else if (this.table && Object.prototype.hasOwnProperty.call(this.table, 'param')) {
68350
- return this.table.param;
68351
- }
68352
- return undefined;
68353
68443
  }
68354
68444
  },
68355
68445
  watch: {
@@ -68369,32 +68459,23 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68369
68459
  }
68370
68460
  }
68371
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
+ },
68372
68471
  checkeds: {
68373
68472
  deep: true,
68374
68473
  handler: function handler() {
68375
68474
  var params = this.setParams();
68376
68475
  if (params) {
68377
- if (this.table && Object.prototype.hasOwnProperty.call(this.table, 'param')) {
68378
- this.params = utils_util["a" /* default */].extend(true, this.table.param, params);
68379
- } else {
68380
- this.params = params;
68381
- }
68476
+ this.params = tree_group_src_mainvue_type_script_lang_js_extends({}, this.params, params);
68382
68477
  }
68383
68478
  }
68384
- },
68385
- //监听table,变化后重新加载,解决点击树节点后改变table对象导致的样式错乱问题
68386
- table: {
68387
- handler: function handler(val, oldVal) {
68388
- if (val && val.param) {
68389
- this.params = tree_group_src_mainvue_type_script_lang_js_extends({}, this.params, val.param);
68390
- }
68391
- if (oldVal && val && val.url !== oldVal.url) {
68392
- this.count++;
68393
- }
68394
- },
68395
-
68396
- deep: true,
68397
- immediate: true
68398
68479
  }
68399
68480
  },
68400
68481
  data: function data() {
@@ -68402,7 +68483,6 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68402
68483
  active: '0',
68403
68484
  checkeds: null,
68404
68485
  params: null,
68405
- count: 0,
68406
68486
  wjprops: {}
68407
68487
  };
68408
68488
  },
@@ -68410,6 +68490,15 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68410
68490
  mounted: function mounted() {},
68411
68491
 
68412
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
+ },
68413
68502
  getUrl: function getUrl(url, param, res) {
68414
68503
  var urls = url.split('?');
68415
68504
  if (urls[0].indexOf('.js') > 0) {
@@ -68619,8 +68708,8 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68619
68708
 
68620
68709
  var tree_group_src_main_component = normalizeComponent(
68621
68710
  packages_tree_group_src_mainvue_type_script_lang_js_,
68622
- mainvue_type_template_id_3f239eaa_render,
68623
- mainvue_type_template_id_3f239eaa_staticRenderFns,
68711
+ mainvue_type_template_id_6ec7befa_render,
68712
+ mainvue_type_template_id_6ec7befa_staticRenderFns,
68624
68713
  false,
68625
68714
  null,
68626
68715
  null,
@@ -68791,7 +68880,8 @@ function toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, ke
68791
68880
  multiCondition = items.multiCondition,
68792
68881
  contents = items.contents,
68793
68882
  group = items.group,
68794
- other = toolbar_src_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']);
68795
68885
 
68796
68886
  if (type === 'text') {
68797
68887
  text = [h('div', { class: 'es-toolbar-text' }, Array.isArray(contents) ? contents.map(function (item) {
@@ -68942,7 +69032,7 @@ function toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, ke
68942
69032
  model: _this2.advancedData,
68943
69033
  contents: contents
68944
69034
  }),
68945
- on: {
69035
+ on: events ? events : {
68946
69036
  submit: _this2.hanleSubmit,
68947
69037
  reset: _this2.hanleCancel
68948
69038
  }
@@ -74950,27 +75040,28 @@ wujie_src_main.install = function (Vue) {
74950
75040
  };
74951
75041
 
74952
75042
  /* harmony default export */ var wujie = (wujie_src_main);
74953
- // 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&
74954
- 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 () {
74955
75045
  var _vm = this
74956
75046
  var _h = _vm.$createElement
74957
75047
  var _c = _vm._self._c || _h
74958
75048
  return _c(
74959
75049
  "div",
74960
75050
  {
75051
+ ref: "wxqrcode",
74961
75052
  staticClass: "es-wx-qrcode",
74962
- style: { width: _vm.width, height: _vm.height },
75053
+ style: { width: _vm.mwidth, height: _vm.mheight },
74963
75054
  attrs: { id: "wxqrcode" },
74964
75055
  },
74965
75056
  [
74966
- _vm.src
75057
+ _vm.src && _vm.mwidth && _vm.mheight
74967
75058
  ? _c("iframe", {
74968
75059
  attrs: {
74969
75060
  frameborder: "0",
74970
75061
  allowTransparency: "true",
74971
75062
  scrolling: "no",
74972
- width: _vm.width,
74973
- height: _vm.height,
75063
+ width: _vm.mwidth,
75064
+ height: _vm.mheight,
74974
75065
  src: _vm.src,
74975
75066
  },
74976
75067
  })
@@ -74978,11 +75069,11 @@ var mainvue_type_template_id_6da39de6_render = function () {
74978
75069
  ]
74979
75070
  )
74980
75071
  }
74981
- var mainvue_type_template_id_6da39de6_staticRenderFns = []
74982
- 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
74983
75074
 
74984
75075
 
74985
- // 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&
74986
75077
 
74987
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&
74988
75079
  //
@@ -75002,6 +75093,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75002
75093
  //
75003
75094
  //
75004
75095
  //
75096
+ //
75005
75097
 
75006
75098
 
75007
75099
 
@@ -75015,7 +75107,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75015
75107
  default: false
75016
75108
  },
75017
75109
  appid: {
75018
- required: true,
75110
+ //required: true,
75019
75111
  type: String
75020
75112
  },
75021
75113
  scope: {
@@ -75023,7 +75115,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75023
75115
  type: [String, Array]
75024
75116
  },
75025
75117
  redirect_uri: {
75026
- required: true,
75118
+ //required: true,
75027
75119
  type: String
75028
75120
  },
75029
75121
  state: String,
@@ -75046,8 +75138,9 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75046
75138
  },
75047
75139
  height: {
75048
75140
  type: String,
75049
- default: '400px'
75141
+ default: '300px'
75050
75142
  },
75143
+ auto: Boolean,
75051
75144
  param: {
75052
75145
  type: Object,
75053
75146
  default: function _default() {
@@ -75057,16 +75150,29 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75057
75150
  },
75058
75151
  data: function data() {
75059
75152
  return {
75060
- src: ''
75153
+ src: '',
75154
+ mwidth: 0,
75155
+ mheight: 0
75061
75156
  };
75062
75157
  },
75063
75158
 
75064
75159
  computed: {},
75065
75160
  watch: {},
75066
- 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
+ }
75067
75174
  this.wxLogin();
75068
75175
  },
75069
- mounted: function mounted() {},
75070
75176
 
75071
75177
  methods: {
75072
75178
  wxLogin: function wxLogin() {
@@ -75101,8 +75207,8 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75101
75207
 
75102
75208
  var wxlogin_src_main_component = normalizeComponent(
75103
75209
  packages_wxlogin_src_mainvue_type_script_lang_js_,
75104
- mainvue_type_template_id_6da39de6_render,
75105
- mainvue_type_template_id_6da39de6_staticRenderFns,
75210
+ mainvue_type_template_id_18c0a641_render,
75211
+ mainvue_type_template_id_18c0a641_staticRenderFns,
75106
75212
  false,
75107
75213
  null,
75108
75214
  null,
@@ -75191,7 +75297,7 @@ if (typeof window !== 'undefined' && window.Vue) {
75191
75297
  }
75192
75298
 
75193
75299
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
75194
- version: '0.5.75',
75300
+ version: '0.5.76',
75195
75301
  install: install,
75196
75302
  Button: packages_button,
75197
75303
  ButtonGroup: button_group,