eoss-ui 0.5.75 → 0.5.77

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 +371 -264
  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 +177 -123
  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 +34 -18
  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 +915 -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=4971af30&
47611
+ var mainvue_type_template_id_4971af30_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_4971af30_staticRenderFns = []
48552
+ mainvue_type_template_id_4971af30_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=4971af30&
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,67 @@ 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
- this.$refs['login'].validate(function (valid) {
50280
+ var ref = 'login' + this.active;
50281
+ this.$refs[ref].validate(function (valid) {
50221
50282
  if (valid) {
50222
- _this5.submit = true;
50283
+ _this6.submit = true;
50223
50284
  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
50285
+ var data = _this6.active == '0' ? {
50286
+ username: _this6.formData.username,
50287
+ password: _this6.secret && _this6.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50288
+ data: _this6.formData.password,
50289
+ key: _this6.secret
50290
+ }) : _this6.formData.password,
50291
+ identifyingCode: _this6.formData.identifyingCode,
50292
+ identifyingId: _this6.identifyingId
50293
+ } : _this6.active == '12' ? {
50294
+ username: _this6.formData.username,
50295
+ password: _this6.secret && _this6.isEncrypt ? utils_util["a" /* default */].esmEncrypt({
50296
+ data: _this6.formData.password,
50297
+ key: _this6.secret
50298
+ }) : _this6.formData.password,
50299
+ targetType: _this6.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
50300
+ verificationCode: _this6.formData.identifyingCode
50240
50301
  } : {
50241
- target: _this5.formData.target,
50242
- verificationCode: _this5.formData.verificationCode,
50243
- targetType: _this5.active == '6' ? 'SMS' : 'EMAIL'
50302
+ target: _this6.formData.target,
50303
+ verificationCode: _this6.formData.verificationCode,
50304
+ targetType: _this6.active == '6' ? 'SMS' : 'EMAIL'
50244
50305
  };
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);
50306
+ if (_this6.onLogin) {
50307
+ if (_this6.active == '0') {
50308
+ _this6.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data), _this6.getImgCode, _this6.handleRemember);
50248
50309
  } else {
50249
- _this5.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data));
50310
+ _this6.onLogin(login_src_mainvue_type_script_lang_js_extends({}, param, data));
50250
50311
  }
50251
50312
  } else {
50252
- _this5.handleUserLogin(login_src_mainvue_type_script_lang_js_extends({}, param, _this5.param, data));
50313
+ _this6.handleUserLogin(login_src_mainvue_type_script_lang_js_extends({}, param, _this6.param, data));
50253
50314
  }
50254
50315
  } else {
50255
- _this5.submit = false;
50316
+ _this6.submit = false;
50256
50317
  return false;
50257
50318
  }
50258
50319
  });
@@ -50268,7 +50329,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50268
50329
  }
50269
50330
  },
50270
50331
  handleUserLogin: function handleUserLogin(data) {
50271
- var _this6 = this;
50332
+ var _this7 = this;
50272
50333
 
50273
50334
  var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
50274
50335
  utils_util["a" /* default */].ajax({
@@ -50276,68 +50337,68 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50276
50337
  url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
50277
50338
  data: extUserBindHandleId ? login_src_mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
50278
50339
  }).then(function (res) {
50279
- _this6.submit = false;
50340
+ _this7.submit = false;
50280
50341
  if (res.rCode == 0) {
50281
50342
  utils_util["a" /* default */].removeStorage('extUserBindHandleId');
50282
- _this6.handleRemember();
50343
+ _this7.handleRemember();
50283
50344
  var results = res.results;
50284
- _this6.handleResults(results);
50285
- if (_this6.onSuccess) {
50286
- _this6.onSuccess(res);
50345
+ _this7.handleResults(results);
50346
+ if (_this7.onSuccess) {
50347
+ _this7.onSuccess(res);
50287
50348
  }
50288
50349
  } else {
50289
50350
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
50290
- _this6.$message({
50351
+ _this7.$message({
50291
50352
  message: msg || '系统错误,请联系管理员!',
50292
50353
  type: 'error',
50293
50354
  duration: 1500,
50294
50355
  onClose: function onClose() {
50295
- _this6.btnText = '获取验证码';
50296
- _this6.disabled = false;
50297
- _this6.countdown = 0;
50298
- clearInterval(_this6.timer);
50299
- _this6.getImgCode();
50356
+ _this7.btnText = '获取验证码';
50357
+ _this7.disabled = false;
50358
+ _this7.countdown = 0;
50359
+ clearInterval(_this7.timer);
50360
+ _this7.getImgCode();
50300
50361
  }
50301
50362
  });
50302
- _this6.onError(res);
50363
+ _this7.onError(res);
50303
50364
  }
50304
50365
  }).catch(function (err) {
50305
- _this6.submit = false;
50366
+ _this7.submit = false;
50306
50367
  if (err.message && err.message !== 'canceled') {
50307
- _this6.$message.error(err.message);
50368
+ _this7.$message.error(err.message);
50308
50369
  }
50309
50370
  });
50310
50371
  },
50311
50372
  caLogin: function caLogin(signedData) {
50312
- var _this7 = this;
50373
+ var _this8 = this;
50313
50374
 
50314
50375
  utils_util["a" /* default */].ajax({
50315
50376
  method: 'post',
50316
50377
  url: this.caAction,
50317
50378
  data: { identifyingId: this.identifyingId, signedData: signedData }
50318
50379
  }).then(function (res) {
50319
- _this7.submit = false;
50380
+ _this8.submit = false;
50320
50381
  if (res.rCode == 0) {
50321
50382
  var results = res.results;
50322
- _this7.handleResults(results);
50323
- if (_this7.onSuccess) {
50324
- _this7.onSuccess(res);
50383
+ _this8.handleResults(results);
50384
+ if (_this8.onSuccess) {
50385
+ _this8.onSuccess(res);
50325
50386
  }
50326
50387
  } else {
50327
50388
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
50328
- _this7.$message({
50389
+ _this8.$message({
50329
50390
  message: msg || '系统错误,请联系管理员!',
50330
50391
  type: 'error',
50331
50392
  duration: 1500,
50332
50393
  onClose: function onClose() {
50333
- _this7.getImgCode();
50394
+ _this8.getImgCode();
50334
50395
  }
50335
50396
  });
50336
- _this7.onError(res);
50397
+ _this8.onError(res);
50337
50398
  }
50338
50399
  }).catch(function (err) {
50339
50400
  if (err.message && err.message !== 'canceled') {
50340
- _this7.$message.error(err.message);
50401
+ _this8.$message.error(err.message);
50341
50402
  }
50342
50403
  });
50343
50404
  },
@@ -50354,17 +50415,17 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50354
50415
 
50355
50416
  //获取app登录信息
50356
50417
  loginInfo: function loginInfo(res) {
50357
- var _this8 = this;
50418
+ var _this9 = this;
50358
50419
 
50359
50420
  clearTimeout(this.interval);
50360
50421
  if (res) {
50361
50422
  this.interval = setTimeout(function () {
50362
- _this8.initRequestLoginInfo();
50423
+ _this9.initRequestLoginInfo();
50363
50424
  }, this.scanIntervalTime);
50364
50425
  }
50365
50426
  },
50366
50427
  initRequestLoginInfo: function initRequestLoginInfo() {
50367
- var _this9 = this;
50428
+ var _this10 = this;
50368
50429
 
50369
50430
  if (this.identifyingId == '') {
50370
50431
  return false;
@@ -50379,21 +50440,21 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50379
50440
  if (res.rCode === 0) {
50380
50441
  var results = res.results;
50381
50442
  if (results.statusCode === 0) {
50382
- clearTimeout(_this9.interval);
50383
- _this9.handleResults(results, 3);
50443
+ clearTimeout(_this10.interval);
50444
+ _this10.handleResults(results, 3);
50384
50445
  } else {
50385
- _this9.loginInfo(true);
50446
+ _this10.loginInfo(true);
50386
50447
  }
50387
50448
  }
50388
50449
  }).catch(function (err) {
50389
- clearTimeout(_this9.interval);
50450
+ clearTimeout(_this10.interval);
50390
50451
  if (err.message && err.message !== 'canceled') {
50391
- _this9.$message.error(err.message);
50452
+ _this10.$message.error(err.message);
50392
50453
  }
50393
50454
  });
50394
50455
  },
50395
50456
  handleResults: function handleResults(results, type) {
50396
- var _this10 = this;
50457
+ var _this11 = this;
50397
50458
 
50398
50459
  switch (results.statusCode) {
50399
50460
  case 0:
@@ -50414,15 +50475,15 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50414
50475
  type: 'success',
50415
50476
  duration: 1500,
50416
50477
  onClose: function onClose() {
50417
- if (_this10.toUrl) {
50418
- window.location.href = _this10.toUrl;
50419
- } else if (results.doorIndex && _this10.doorIndex) {
50478
+ if (_this11.toUrl) {
50479
+ window.location.href = _this11.toUrl;
50480
+ } else if (results.doorIndex && _this11.doorIndex) {
50420
50481
  window.location.href = results.doorIndex;
50421
50482
  } else {
50422
50483
  if (window.location.href.indexOf('login.html') > -1) {
50423
50484
  window.location.href = './main.html';
50424
50485
  } else {
50425
- _this10.$router.push({ name: 'main' });
50486
+ _this11.$router.push({ name: 'main' });
50426
50487
  }
50427
50488
  }
50428
50489
  }
@@ -50434,11 +50495,11 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50434
50495
  //cancelButtonText: '取消',
50435
50496
  type: 'warning'
50436
50497
  }).then(function () {
50437
- _this10.operationCheckCode = results.checkCode;
50438
- if (typeof _this10.forget === 'string') {
50439
- utils_util["a" /* default */].win.open(_this10.forgetUrl);
50498
+ _this11.operationCheckCode = results.checkCode;
50499
+ if (typeof _this11.forget === 'string') {
50500
+ utils_util["a" /* default */].win.open(_this11.forgetUrl);
50440
50501
  } else {
50441
- _this10.showResetPassword = true;
50502
+ _this11.showResetPassword = true;
50442
50503
  }
50443
50504
  }).catch(function (e) {});
50444
50505
  break;
@@ -50479,13 +50540,13 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50479
50540
  type: 'error',
50480
50541
  duration: 1500,
50481
50542
  onClose: function onClose() {
50482
- if (_this10.code) {
50543
+ if (_this11.code) {
50483
50544
  window.location.href = utils_util["a" /* default */].delUrlParam({ key: 'code' });
50484
50545
  if (window.location.hash) {
50485
50546
  location.reload();
50486
50547
  }
50487
50548
  } else {
50488
- _this10.getImgCode();
50549
+ _this11.getImgCode();
50489
50550
  }
50490
50551
  }
50491
50552
  });
@@ -50495,15 +50556,15 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50495
50556
  }
50496
50557
  },
50497
50558
  handleAssistance: function handleAssistance(data) {
50498
- var _this11 = this;
50559
+ var _this12 = this;
50499
50560
 
50500
50561
  clearTimeout(this.doAssistance);
50501
50562
  this.doAssistance = setTimeout(function () {
50502
- _this11.doAssistanceLogin(data);
50563
+ _this12.doAssistanceLogin(data);
50503
50564
  }, this.scanIntervalTime);
50504
50565
  },
50505
50566
  doAssistanceLogin: function doAssistanceLogin(data) {
50506
- var _this12 = this;
50567
+ var _this13 = this;
50507
50568
 
50508
50569
  utils_util["a" /* default */].ajax({
50509
50570
  method: 'post',
@@ -50513,19 +50574,19 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50513
50574
  if (res.rCode === 0) {
50514
50575
  var results = res.results;
50515
50576
  if (results.statusCode === 0) {
50516
- clearTimeout(_this12.doAssistance);
50517
- _this12.handleResults(results, 3);
50577
+ clearTimeout(_this13.doAssistance);
50578
+ _this13.handleResults(results, 3);
50518
50579
  } else {
50519
- _this12.handleAssistance(data);
50580
+ _this13.handleAssistance(data);
50520
50581
  }
50521
50582
  } else {
50522
- clearTimeout(_this12.doAssistance);
50523
- _this12.$message.error(res.msg);
50583
+ clearTimeout(_this13.doAssistance);
50584
+ _this13.$message.error(res.msg);
50524
50585
  }
50525
50586
  }).catch(function (err) {
50526
- clearTimeout(_this12.doAssistance);
50587
+ clearTimeout(_this13.doAssistance);
50527
50588
  if (err.message && err.message !== 'canceled') {
50528
- _this12.$message.error(err.message);
50589
+ _this13.$message.error(err.message);
50529
50590
  }
50530
50591
  });
50531
50592
  },
@@ -50559,8 +50620,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50559
50620
 
50560
50621
  var login_src_main_component = normalizeComponent(
50561
50622
  packages_login_src_mainvue_type_script_lang_js_,
50562
- mainvue_type_template_id_5f60346a_render,
50563
- mainvue_type_template_id_5f60346a_staticRenderFns,
50623
+ mainvue_type_template_id_4971af30_render,
50624
+ mainvue_type_template_id_4971af30_staticRenderFns,
50564
50625
  false,
50565
50626
  null,
50566
50627
  null,
@@ -57501,8 +57562,8 @@ player_src_main.install = function (Vue) {
57501
57562
  };
57502
57563
 
57503
57564
  /* 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 () {
57565
+ // 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&
57566
+ var mainvue_type_template_id_338a3a1e_render = function () {
57506
57567
  var _vm = this
57507
57568
  var _h = _vm.$createElement
57508
57569
  var _c = _vm._self._c || _h
@@ -57510,24 +57571,33 @@ var mainvue_type_template_id_28375a46_render = function () {
57510
57571
  "div",
57511
57572
  { ref: "qrcode", staticClass: "es-qrcode-box", attrs: { id: "qrcode" } },
57512
57573
  [
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
- ]
57574
+ _vm.mwidth && _vm.mheight
57575
+ ? [
57576
+ _c("img", {
57577
+ ref: "qrcodeImg",
57578
+ staticClass: "es-qrcode-img",
57579
+ attrs: {
57580
+ width: _vm.mwidth,
57581
+ height: _vm.mheight,
57582
+ alt: "二维码图片",
57583
+ },
57584
+ }),
57585
+ _c("canvas", {
57586
+ ref: "canvas",
57587
+ staticClass: "canvas",
57588
+ attrs: { width: _vm.mwidth, height: _vm.mheight },
57589
+ }),
57590
+ ]
57591
+ : _vm._e(),
57592
+ ],
57593
+ 2
57524
57594
  )
57525
57595
  }
57526
- var mainvue_type_template_id_28375a46_staticRenderFns = []
57527
- mainvue_type_template_id_28375a46_render._withStripped = true
57596
+ var mainvue_type_template_id_338a3a1e_staticRenderFns = []
57597
+ mainvue_type_template_id_338a3a1e_render._withStripped = true
57528
57598
 
57529
57599
 
57530
- // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=28375a46&
57600
+ // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=338a3a1e&
57531
57601
 
57532
57602
  // 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
57603
  //
@@ -57555,6 +57625,8 @@ mainvue_type_template_id_28375a46_render._withStripped = true
57555
57625
  //
57556
57626
  //
57557
57627
  //
57628
+ //
57629
+ //
57558
57630
 
57559
57631
 
57560
57632
  var QRCode = __webpack_require__(24);
@@ -57567,8 +57639,14 @@ var QRCode = __webpack_require__(24);
57567
57639
  },
57568
57640
  logo: String,
57569
57641
  text: String,
57570
- width: Number,
57571
- height: Number,
57642
+ width: {
57643
+ type: Number,
57644
+ default: 300
57645
+ },
57646
+ height: {
57647
+ type: Number,
57648
+ default: 300
57649
+ },
57572
57650
  auto: Boolean,
57573
57651
  option: {
57574
57652
  type: Object,
@@ -57583,22 +57661,12 @@ var QRCode = __webpack_require__(24);
57583
57661
  }
57584
57662
  }
57585
57663
  },
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
- },
57664
+ computed: {},
57600
57665
  data: function data() {
57601
- return {};
57666
+ return {
57667
+ mwidth: 0,
57668
+ mheight: 0
57669
+ };
57602
57670
  },
57603
57671
 
57604
57672
  watch: {
@@ -57622,6 +57690,16 @@ var QRCode = __webpack_require__(24);
57622
57690
  mounted: function mounted() {
57623
57691
  var _this2 = this;
57624
57692
 
57693
+ if (this.auto) {
57694
+ 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);
57695
+ if (h > 0) {
57696
+ this.mwidth = h;
57697
+ this.mheight = h;
57698
+ }
57699
+ } else {
57700
+ this.mwidth = this.width;
57701
+ this.mheight = this.height;
57702
+ }
57625
57703
  this.$nextTick(function () {
57626
57704
  _this2.createQRCode();
57627
57705
  });
@@ -57635,8 +57713,8 @@ var QRCode = __webpack_require__(24);
57635
57713
  //let qrcodeLogo = this.$refs.qrcodeLogo;
57636
57714
  var canvas = this.$refs.canvas;
57637
57715
  var option = utils_util["a" /* default */].extend({}, this.option, {
57638
- width: this._width,
57639
- height: this._height
57716
+ width: this.mwidth,
57717
+ height: this.mheight
57640
57718
  });
57641
57719
  if (!qrcodeImg) {
57642
57720
  return false;
@@ -57648,12 +57726,12 @@ var QRCode = __webpack_require__(24);
57648
57726
  var ctx = canvas.getContext('2d');
57649
57727
  setTimeout(function () {
57650
57728
  //获取图片
57651
- ctx.drawImage(qrcodeImg, 0, 0, _this3._width, _this3._height);
57729
+ ctx.drawImage(qrcodeImg, 0, 0, _this3.mwidth, _this3.mheight);
57652
57730
  if (_this3.logo && _this3.logo.indexOf('.') > -1) {
57653
57731
  var logo = new Image();
57654
57732
  logo.src = _this3.logo;
57655
57733
  //设置logo大小
57656
- var logoPosition = (_this3._width - 46) / 2; //logo相对于canvas居中定位
57734
+ var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
57657
57735
  //设置获取的logo将其变为圆角以及添加白色背景
57658
57736
  /* ctx.fillStyle = "#fff";
57659
57737
  ctx.beginPath();
@@ -57678,8 +57756,8 @@ var QRCode = __webpack_require__(24);
57678
57756
  var fpadd = 10; //规定内间距
57679
57757
  ctx.font = 'bold 16px Arial';
57680
57758
  var tw = ctx.measureText(_this3.text).width; //文字真实宽度
57681
- var ftop = (_this3._height - 16) / 2; //根据字体大小计算文字top
57682
- var fleft = (_this3._width - tw) / 2; //根据字体大小计算文字left
57759
+ var ftop = (_this3.mheight - 16) / 2; //根据字体大小计算文字top
57760
+ var fleft = (_this3.mwidth - tw) / 2; //根据字体大小计算文字left
57683
57761
  var tp = 16 / 2; //字体边距为字体大小的一半可以自己设置
57684
57762
  ctx.fillStyle = '#fff';
57685
57763
  ctx.fillRect(fleft - tp / 2, ftop - tp / 2, tw + tp, 16 + tp);
@@ -57708,8 +57786,8 @@ var QRCode = __webpack_require__(24);
57708
57786
 
57709
57787
  var qr_code_src_main_component = normalizeComponent(
57710
57788
  packages_qr_code_src_mainvue_type_script_lang_js_,
57711
- mainvue_type_template_id_28375a46_render,
57712
- mainvue_type_template_id_28375a46_staticRenderFns,
57789
+ mainvue_type_template_id_338a3a1e_render,
57790
+ mainvue_type_template_id_338a3a1e_staticRenderFns,
57713
57791
  false,
57714
57792
  null,
57715
57793
  null,
@@ -66788,8 +66866,8 @@ tips_src_main.install = function (Vue) {
66788
66866
  };
66789
66867
 
66790
66868
  /* 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 () {
66869
+ // 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&
66870
+ var mainvue_type_template_id_49d73969_render = function () {
66793
66871
  var _vm = this
66794
66872
  var _h = _vm.$createElement
66795
66873
  var _c = _vm._self._c || _h
@@ -66985,11 +67063,11 @@ var mainvue_type_template_id_4df0cd89_render = function () {
66985
67063
  )
66986
67064
  : _vm._e()
66987
67065
  }
66988
- var mainvue_type_template_id_4df0cd89_staticRenderFns = []
66989
- mainvue_type_template_id_4df0cd89_render._withStripped = true
67066
+ var mainvue_type_template_id_49d73969_staticRenderFns = []
67067
+ mainvue_type_template_id_49d73969_render._withStripped = true
66990
67068
 
66991
67069
 
66992
- // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=4df0cd89&
67070
+ // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=49d73969&
66993
67071
 
66994
67072
  // 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
67073
  //
@@ -67342,6 +67420,18 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67342
67420
  this.$refs.oaTree.filter(val);
67343
67421
  }
67344
67422
  }
67423
+ },
67424
+ param: {
67425
+ deep: true,
67426
+ handler: function handler() {
67427
+ this.getTreeData();
67428
+ }
67429
+ },
67430
+ where: {
67431
+ deep: true,
67432
+ handler: function handler() {
67433
+ this.getTreeData();
67434
+ }
67345
67435
  }
67346
67436
  },
67347
67437
  beforeCreate: function beforeCreate() {
@@ -67376,7 +67466,7 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67376
67466
  getTreeDatas: function getTreeDatas(param) {
67377
67467
  var _this2 = this;
67378
67468
 
67379
- var params = utils_util["a" /* default */].extend({}, this.param, this.where, param);
67469
+ var params = utils_util["a" /* default */].extend({}, this.param, this.where, param || {});
67380
67470
  if (!this.url || !this.isRemote) return;
67381
67471
  this.loading = true;
67382
67472
  utils_util["a" /* default */].ajax({
@@ -67690,8 +67780,8 @@ mainvue_type_template_id_4df0cd89_render._withStripped = true
67690
67780
 
67691
67781
  var tree_src_main_component = normalizeComponent(
67692
67782
  packages_tree_src_mainvue_type_script_lang_js_,
67693
- mainvue_type_template_id_4df0cd89_render,
67694
- mainvue_type_template_id_4df0cd89_staticRenderFns,
67783
+ mainvue_type_template_id_49d73969_render,
67784
+ mainvue_type_template_id_49d73969_staticRenderFns,
67695
67785
  false,
67696
67786
  null,
67697
67787
  null,
@@ -67708,8 +67798,8 @@ tree_src_main.install = function (Vue) {
67708
67798
  };
67709
67799
 
67710
67800
  /* 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 () {
67801
+ // 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&
67802
+ var mainvue_type_template_id_6ec7befa_render = function () {
67713
67803
  var _vm = this
67714
67804
  var _h = _vm.$createElement
67715
67805
  var _c = _vm._self._c || _h
@@ -67890,7 +67980,10 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67890
67980
  "es-button",
67891
67981
  _vm._g(
67892
67982
  _vm._b(
67893
- { key: index, attrs: { size: "small" } },
67983
+ {
67984
+ key: item.id || index,
67985
+ attrs: { size: "small" },
67986
+ },
67894
67987
  "es-button",
67895
67988
  item,
67896
67989
  false
@@ -67932,12 +68025,14 @@ var mainvue_type_template_id_3f239eaa_render = function () {
67932
68025
  _vm._g(
67933
68026
  _vm._b(
67934
68027
  {
67935
- key: _vm.count,
67936
68028
  ref: _vm.table.ref ? _vm.table.ref : "esDataTable",
67937
- attrs: { size: "mini", param: _vm.param },
68029
+ attrs: { size: "mini", param: _vm.params },
67938
68030
  },
67939
68031
  "es-data-table",
67940
- Object.assign({}, { close: true }, _vm.table),
68032
+ _vm.handleExclAttribute({
68033
+ data: Object.assign({}, { close: true }, _vm.table),
68034
+ attrs: ["param"],
68035
+ }),
67941
68036
  false
67942
68037
  ),
67943
68038
  Object.assign({}, _vm.$listeners, _vm.table.events)
@@ -68059,11 +68154,11 @@ var mainvue_type_template_id_3f239eaa_render = function () {
68059
68154
  2
68060
68155
  )
68061
68156
  }
68062
- var mainvue_type_template_id_3f239eaa_staticRenderFns = []
68063
- mainvue_type_template_id_3f239eaa_render._withStripped = true
68157
+ var mainvue_type_template_id_6ec7befa_staticRenderFns = []
68158
+ mainvue_type_template_id_6ec7befa_render._withStripped = true
68064
68159
 
68065
68160
 
68066
- // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=3f239eaa&
68161
+ // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=6ec7befa&
68067
68162
 
68068
68163
  // 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
68164
  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 +68346,10 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68251
68346
  //
68252
68347
  //
68253
68348
  //
68349
+ //
68350
+ //
68351
+ //
68352
+ //
68254
68353
 
68255
68354
 
68256
68355
  /* harmony default export */ var tree_group_src_mainvue_type_script_lang_js_ = ({
@@ -68342,14 +68441,6 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68342
68441
  return 'wujie';
68343
68442
  }
68344
68443
  }
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
68444
  }
68354
68445
  },
68355
68446
  watch: {
@@ -68369,32 +68460,23 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68369
68460
  }
68370
68461
  }
68371
68462
  },
68463
+ 'table.param': {
68464
+ immediate: true,
68465
+ deep: true,
68466
+ handler: function handler(val, old) {
68467
+ if (!utils_util["a" /* default */].isObjectEqual(val, old)) {
68468
+ this.params = JSON.parse(JSON.stringify(val || {}));
68469
+ }
68470
+ }
68471
+ },
68372
68472
  checkeds: {
68373
68473
  deep: true,
68374
68474
  handler: function handler() {
68375
68475
  var params = this.setParams();
68376
68476
  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
- }
68477
+ this.params = tree_group_src_mainvue_type_script_lang_js_extends({}, this.params, params);
68382
68478
  }
68383
68479
  }
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
68480
  }
68399
68481
  },
68400
68482
  data: function data() {
@@ -68402,7 +68484,6 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68402
68484
  active: '0',
68403
68485
  checkeds: null,
68404
68486
  params: null,
68405
- count: 0,
68406
68487
  wjprops: {}
68407
68488
  };
68408
68489
  },
@@ -68410,6 +68491,15 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68410
68491
  mounted: function mounted() {},
68411
68492
 
68412
68493
  methods: {
68494
+ handleExclAttribute: function handleExclAttribute(_ref) {
68495
+ var data = _ref.data,
68496
+ attrs = _ref.attrs;
68497
+
68498
+ return utils_util["a" /* default */].exclAttribute({
68499
+ data: data,
68500
+ attrs: attrs
68501
+ });
68502
+ },
68413
68503
  getUrl: function getUrl(url, param, res) {
68414
68504
  var urls = url.split('?');
68415
68505
  if (urls[0].indexOf('.js') > 0) {
@@ -68619,8 +68709,8 @@ var tree_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
68619
68709
 
68620
68710
  var tree_group_src_main_component = normalizeComponent(
68621
68711
  packages_tree_group_src_mainvue_type_script_lang_js_,
68622
- mainvue_type_template_id_3f239eaa_render,
68623
- mainvue_type_template_id_3f239eaa_staticRenderFns,
68712
+ mainvue_type_template_id_6ec7befa_render,
68713
+ mainvue_type_template_id_6ec7befa_staticRenderFns,
68624
68714
  false,
68625
68715
  null,
68626
68716
  null,
@@ -68791,7 +68881,8 @@ function toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, ke
68791
68881
  multiCondition = items.multiCondition,
68792
68882
  contents = items.contents,
68793
68883
  group = items.group,
68794
- other = toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(items, ['config', 'type', 'reset', 'multiCondition', 'contents', 'group']);
68884
+ events = items.events,
68885
+ other = toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(items, ['config', 'type', 'reset', 'multiCondition', 'contents', 'group', 'events']);
68795
68886
 
68796
68887
  if (type === 'text') {
68797
68888
  text = [h('div', { class: 'es-toolbar-text' }, Array.isArray(contents) ? contents.map(function (item) {
@@ -68942,7 +69033,7 @@ function toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, ke
68942
69033
  model: _this2.advancedData,
68943
69034
  contents: contents
68944
69035
  }),
68945
- on: {
69036
+ on: events ? events : {
68946
69037
  submit: _this2.hanleSubmit,
68947
69038
  reset: _this2.hanleCancel
68948
69039
  }
@@ -74950,27 +75041,28 @@ wujie_src_main.install = function (Vue) {
74950
75041
  };
74951
75042
 
74952
75043
  /* 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 () {
75044
+ // 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&
75045
+ var mainvue_type_template_id_18c0a641_render = function () {
74955
75046
  var _vm = this
74956
75047
  var _h = _vm.$createElement
74957
75048
  var _c = _vm._self._c || _h
74958
75049
  return _c(
74959
75050
  "div",
74960
75051
  {
75052
+ ref: "wxqrcode",
74961
75053
  staticClass: "es-wx-qrcode",
74962
- style: { width: _vm.width, height: _vm.height },
75054
+ style: { width: _vm.mwidth, height: _vm.mheight },
74963
75055
  attrs: { id: "wxqrcode" },
74964
75056
  },
74965
75057
  [
74966
- _vm.src
75058
+ _vm.src && _vm.mwidth && _vm.mheight
74967
75059
  ? _c("iframe", {
74968
75060
  attrs: {
74969
75061
  frameborder: "0",
74970
75062
  allowTransparency: "true",
74971
75063
  scrolling: "no",
74972
- width: _vm.width,
74973
- height: _vm.height,
75064
+ width: _vm.mwidth,
75065
+ height: _vm.mheight,
74974
75066
  src: _vm.src,
74975
75067
  },
74976
75068
  })
@@ -74978,11 +75070,11 @@ var mainvue_type_template_id_6da39de6_render = function () {
74978
75070
  ]
74979
75071
  )
74980
75072
  }
74981
- var mainvue_type_template_id_6da39de6_staticRenderFns = []
74982
- mainvue_type_template_id_6da39de6_render._withStripped = true
75073
+ var mainvue_type_template_id_18c0a641_staticRenderFns = []
75074
+ mainvue_type_template_id_18c0a641_render._withStripped = true
74983
75075
 
74984
75076
 
74985
- // CONCATENATED MODULE: ./packages/wxlogin/src/main.vue?vue&type=template&id=6da39de6&
75077
+ // CONCATENATED MODULE: ./packages/wxlogin/src/main.vue?vue&type=template&id=18c0a641&
74986
75078
 
74987
75079
  // 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
75080
  //
@@ -75002,6 +75094,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75002
75094
  //
75003
75095
  //
75004
75096
  //
75097
+ //
75005
75098
 
75006
75099
 
75007
75100
 
@@ -75015,7 +75108,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75015
75108
  default: false
75016
75109
  },
75017
75110
  appid: {
75018
- required: true,
75111
+ //required: true,
75019
75112
  type: String
75020
75113
  },
75021
75114
  scope: {
@@ -75023,7 +75116,7 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75023
75116
  type: [String, Array]
75024
75117
  },
75025
75118
  redirect_uri: {
75026
- required: true,
75119
+ //required: true,
75027
75120
  type: String
75028
75121
  },
75029
75122
  state: String,
@@ -75046,8 +75139,9 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75046
75139
  },
75047
75140
  height: {
75048
75141
  type: String,
75049
- default: '400px'
75142
+ default: '300px'
75050
75143
  },
75144
+ auto: Boolean,
75051
75145
  param: {
75052
75146
  type: Object,
75053
75147
  default: function _default() {
@@ -75057,16 +75151,29 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75057
75151
  },
75058
75152
  data: function data() {
75059
75153
  return {
75060
- src: ''
75154
+ src: '',
75155
+ mwidth: 0,
75156
+ mheight: 0
75061
75157
  };
75062
75158
  },
75063
75159
 
75064
75160
  computed: {},
75065
75161
  watch: {},
75066
- created: function created() {
75162
+ created: function created() {},
75163
+ mounted: function mounted() {
75164
+ if (this.auto) {
75165
+ var parent = this.$refs.wxqrcode.parentNode;
75166
+ var h = parent.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(parent, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(parent, 'padding-bottom'), 10);
75167
+ if (h > 0) {
75168
+ this.mwidth = h + 'px';
75169
+ this.mheight = h + 'px';
75170
+ }
75171
+ } else {
75172
+ this.mwidth = this.width;
75173
+ this.mheight = this.height;
75174
+ }
75067
75175
  this.wxLogin();
75068
75176
  },
75069
- mounted: function mounted() {},
75070
75177
 
75071
75178
  methods: {
75072
75179
  wxLogin: function wxLogin() {
@@ -75101,8 +75208,8 @@ mainvue_type_template_id_6da39de6_render._withStripped = true
75101
75208
 
75102
75209
  var wxlogin_src_main_component = normalizeComponent(
75103
75210
  packages_wxlogin_src_mainvue_type_script_lang_js_,
75104
- mainvue_type_template_id_6da39de6_render,
75105
- mainvue_type_template_id_6da39de6_staticRenderFns,
75211
+ mainvue_type_template_id_18c0a641_render,
75212
+ mainvue_type_template_id_18c0a641_staticRenderFns,
75106
75213
  false,
75107
75214
  null,
75108
75215
  null,
@@ -75191,7 +75298,7 @@ if (typeof window !== 'undefined' && window.Vue) {
75191
75298
  }
75192
75299
 
75193
75300
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
75194
- version: '0.5.75',
75301
+ version: '0.5.77',
75195
75302
  install: install,
75196
75303
  Button: packages_button,
75197
75304
  ButtonGroup: button_group,