eoss-ui 0.5.63 → 0.5.65

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 (82) hide show
  1. package/lib/button-group.js +43 -23
  2. package/lib/button.js +65 -39
  3. package/lib/calendar.js +13 -5
  4. package/lib/checkbox-group.js +4 -2
  5. package/lib/data-table-form.js +4 -2
  6. package/lib/data-table.js +112 -25
  7. package/lib/date-picker.js +4 -2
  8. package/lib/dialog.js +4 -2
  9. package/lib/eoss-ui.common.js +635 -393
  10. package/lib/flow-group.js +4 -2
  11. package/lib/flow-list.js +4 -2
  12. package/lib/flow.js +153 -123
  13. package/lib/form.js +9 -4
  14. package/lib/handle-user.js +4 -2
  15. package/lib/handler.js +4 -2
  16. package/lib/icon.js +4 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +4 -2
  19. package/lib/input.js +4 -2
  20. package/lib/login.js +23 -6
  21. package/lib/main.js +189 -128
  22. package/lib/nav.js +4 -2
  23. package/lib/page.js +4 -2
  24. package/lib/player.js +4 -2
  25. package/lib/qr-code.js +13 -13
  26. package/lib/radio-group.js +4 -2
  27. package/lib/retrial-auth.js +4 -2
  28. package/lib/select-ganged.js +4 -2
  29. package/lib/select.js +4 -2
  30. package/lib/selector-panel.js +4 -2
  31. package/lib/selector.js +4 -2
  32. package/lib/sizer.js +4 -2
  33. package/lib/steps.js +4 -2
  34. package/lib/switch.js +4 -2
  35. package/lib/table-form.js +4 -2
  36. package/lib/tabs.js +4 -2
  37. package/lib/theme-chalk/base.css +1 -1
  38. package/lib/theme-chalk/button-group.css +1 -1
  39. package/lib/theme-chalk/button.css +1 -1
  40. package/lib/theme-chalk/calendar.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/menu.css +1 -1
  44. package/lib/theme-chalk/qr-code.css +1 -1
  45. package/lib/theme-chalk/sizer.css +1 -1
  46. package/lib/theme-chalk/upload.css +1 -1
  47. package/lib/tips.js +4 -2
  48. package/lib/tree-group.js +4 -2
  49. package/lib/tree.js +4 -2
  50. package/lib/upload.js +12 -8
  51. package/lib/utils/util.js +4 -2
  52. package/lib/wujie.js +4 -2
  53. package/lib/wxlogin.js +4 -2
  54. package/package.json +2 -2
  55. package/packages/button/src/main.vue +92 -56
  56. package/packages/button-group/src/main.vue +10 -1
  57. package/packages/calendar/src/main.vue +11 -4
  58. package/packages/data-table/src/children.vue +3 -1
  59. package/packages/data-table/src/main.vue +55 -10
  60. package/packages/flow/src/processForm.vue +32 -4
  61. package/packages/form/src/main.vue +3 -0
  62. package/packages/login/src/main.vue +12 -1
  63. package/packages/main/src/main.vue +147 -101
  64. package/packages/qr-code/src/main.vue +10 -5
  65. package/packages/theme-chalk/lib/base.css +1 -1
  66. package/packages/theme-chalk/lib/button-group.css +1 -1
  67. package/packages/theme-chalk/lib/button.css +1 -1
  68. package/packages/theme-chalk/lib/calendar.css +1 -1
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/main.css +1 -1
  71. package/packages/theme-chalk/lib/menu.css +1 -1
  72. package/packages/theme-chalk/lib/qr-code.css +1 -1
  73. package/packages/theme-chalk/lib/sizer.css +1 -1
  74. package/packages/theme-chalk/lib/upload.css +1 -1
  75. package/packages/theme-chalk/src/base.scss +3 -0
  76. package/packages/theme-chalk/src/button-group.scss +110 -0
  77. package/packages/theme-chalk/src/button.scss +6 -0
  78. package/packages/theme-chalk/src/calendar.scss +3 -0
  79. package/packages/theme-chalk/src/qr-code.scss +1 -1
  80. package/packages/upload/src/main.vue +3 -1
  81. package/src/index.js +1 -1
  82. package/src/utils/util.js +4 -1
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
2200
2200
  });
2201
2201
  }
2202
2202
  }).catch(function (e) {});
2203
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2203
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
2204
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2205
2205
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2206
2206
  } else {
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
2890
2890
  * @param {string} [$color] - 颜色值
2891
2891
  **/
2892
2892
  var updateTheme = function updateTheme(color, send) {
2893
- color = color && startWith(color, '#') ? color : '#409eff';
2893
+ if (!color) {
2894
+ return false;
2895
+ }
2894
2896
 
2895
2897
  if (send === undefined) {
2896
2898
  send = true;
@@ -3813,7 +3815,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3813
3815
  text: String,
3814
3816
  onClick: Function,
3815
3817
  badge: [Object, Number],
3816
- float: String
3818
+ float: String,
3819
+ selector: Boolean,
3820
+ upload: Boolean
3817
3821
  },
3818
3822
  computed: {
3819
3823
  _type: function _type() {
@@ -3999,52 +4003,74 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3999
4003
  }
4000
4004
  var tag = 'el-button';
4001
4005
  var clas = ['es-button'];
4002
- var props = { type: this._type, size: this.size };
4006
+ var props = {};
4003
4007
  var attrs = {};
4004
- if (this.link && !this.open) {
4005
- var link = this.param ? utils_util["a" /* default */].urlJoinParams({ url: this.link, param: this.param }) : this.link;
4006
- attrs = { href: link };
4007
- tag = 'a';
4008
- clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '', this.float ? 'es-button--' + this.float : '']);
4009
- }
4010
- if (this.badge) {
4011
- var config = {};
4012
- if (typeof this.badge === 'number') {
4013
- config = { class: 'es-button-badge', props: { value: this.badge } };
4014
- } else {
4015
- var _badge = this.badge,
4016
- value = _badge.value,
4017
- max = _badge.max,
4018
- isDot = _badge.isDot,
4019
- hidden = _badge.hidden,
4020
- type = _badge.type;
4021
-
4022
- config = {
4023
- class: this.badge.class ? this.badge.class + ' es-button-badge' : 'es-button-badge',
4024
- props: { value: value, max: max, isDot: isDot, hidden: hidden, type: type }
4025
- };
4008
+ var listeners = {};
4009
+ var config = {};
4010
+ if (this.selector) {
4011
+ tag = 'es-selector';
4012
+ props = _extends({}, this.$attrs, { button: { type: this._type, size: this.size } });
4013
+ listeners = this.$listeners;
4014
+ } else if (this.upload) {
4015
+ tag = 'es-upload';
4016
+ props = _extends({}, this.$attrs, { showFileList: false });
4017
+ listeners = this.$listeners;
4018
+ config = {
4019
+ type: this._type,
4020
+ size: this.size
4021
+ };
4022
+ } else {
4023
+ props = _extends({}, this.$attrs, { type: this._type, size: this.size });
4024
+ listeners = _extends({}, this.$listeners, { click: this.handleClick });
4025
+ if (this.link && !this.open) {
4026
+ var link = this.param ? utils_util["a" /* default */].urlJoinParams({ url: this.link, param: this.param }) : this.link;
4027
+ attrs = { href: link };
4028
+ tag = 'a';
4029
+ clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '', this.float ? 'es-button--' + this.float : '']);
4030
+ }
4031
+ if (this.badge) {
4032
+ var _config = {};
4033
+ if (typeof this.badge === 'number') {
4034
+ _config = { class: 'es-button-badge', props: { value: this.badge } };
4035
+ } else {
4036
+ var _badge = this.badge,
4037
+ value = _badge.value,
4038
+ max = _badge.max,
4039
+ isDot = _badge.isDot,
4040
+ hidden = _badge.hidden,
4041
+ type = _badge.type;
4042
+
4043
+ _config = {
4044
+ class: this.badge.class ? this.badge.class + ' es-button-badge' : 'es-button-badge',
4045
+ props: { value: value, max: max, isDot: isDot, hidden: hidden, type: type }
4046
+ };
4047
+ }
4048
+ return h('el-badge', _config, [h(tag, {
4049
+ class: clas,
4050
+ props: _extends({}, this.$attrs, props),
4051
+ attrs: attrs,
4052
+ on: _extends({}, this.$listeners, { click: this.handleClick }),
4053
+ directives: [{
4054
+ name: 'show',
4055
+ value: !this.hide
4056
+ }]
4057
+ }, this.iconPlacement === 'start' ? [this.icon ? h('i', { class: this.icon }) : '', this.$slots.default || this.text] : [this.$slots.default || this.text, this.icon ? h('i', { class: this.icon }) : ''])]);
4026
4058
  }
4027
- return h('el-badge', config, [h(tag, {
4028
- class: clas,
4029
- props: _extends({}, this.$attrs, props),
4030
- attrs: attrs,
4031
- on: _extends({}, this.$listeners, { click: this.handleClick }),
4032
- directives: [{
4033
- name: 'show',
4034
- value: !this.hide
4035
- }]
4036
- }, this.iconPlacement === 'start' ? [this.icon ? h('i', { class: this.icon }) : '', this.$slots.default || this.text] : [this.$slots.default || this.text, this.icon ? h('i', { class: this.icon }) : ''])]);
4037
4059
  }
4038
4060
  return h(tag, {
4039
4061
  class: clas,
4040
- props: _extends({}, this.$attrs, props),
4062
+ props: props,
4041
4063
  attrs: attrs,
4042
- on: _extends({}, this.$listeners, { click: this.handleClick }),
4064
+ on: listeners,
4043
4065
  directives: [{
4044
4066
  name: 'show',
4045
4067
  value: !this.hide
4046
4068
  }]
4047
- }, this.iconPlacement === 'start' ? [this.icon ? h('i', { class: this.icon }) : '', this.$slots.default || this.text] : [this.$slots.default || this.text, this.icon ? h('i', { class: this.icon }) : '']);
4069
+ }, this.iconPlacement === 'start' ? [this.icon ? h('i', { class: this.icon }) : '', this.upload ? h('el-button', {
4070
+ props: config
4071
+ }, [this.$slots.default || this.text]) : this.$slots.default || this.text] : [this.upload ? h('el-button', {
4072
+ props: config
4073
+ }, [this.$slots.default || this.text]) : this.$slots.default || this.text, this.icon ? h('i', { class: this.icon }) : '']);
4048
4074
  }
4049
4075
  });
4050
4076
  // CONCATENATED MODULE: ./packages/button/src/main.vue?vue&type=script&lang=js&
@@ -4175,8 +4201,8 @@ main.install = function (Vue) {
4175
4201
  };
4176
4202
 
4177
4203
  /* harmony default export */ var packages_button = (main);
4178
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
4179
- var mainvue_type_template_id_a336a590_render = function () {
4204
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=1080b7f0&
4205
+ var mainvue_type_template_id_1080b7f0_render = function () {
4180
4206
  var _vm = this
4181
4207
  var _h = _vm.$createElement
4182
4208
  var _c = _vm._self._c || _h
@@ -4207,27 +4233,33 @@ var mainvue_type_template_id_a336a590_render = function () {
4207
4233
  )
4208
4234
  : _c(
4209
4235
  "es-button",
4210
- _vm._b(
4211
- {
4212
- key: index,
4213
- attrs: {
4214
- stop: _vm.stop,
4215
- size: _vm.size,
4216
- type: item.type,
4217
- },
4218
- on: {
4219
- click: function ($event) {
4220
- _vm.handleClick(
4221
- Object.assign({}, _vm.data, {
4222
- handle: item,
4223
- })
4224
- )
4236
+ _vm._g(
4237
+ _vm._b(
4238
+ {
4239
+ key: index,
4240
+ attrs: {
4241
+ stop: _vm.stop,
4242
+ size: _vm.size,
4243
+ type: item.type,
4244
+ },
4245
+ on: {
4246
+ click: function ($event) {
4247
+ _vm.handleClick(
4248
+ Object.assign({}, _vm.data, {
4249
+ handle: item,
4250
+ })
4251
+ )
4252
+ },
4225
4253
  },
4226
4254
  },
4227
- },
4228
- "es-button",
4229
- item,
4230
- false
4255
+ "es-button",
4256
+ _vm.exclAttribute({
4257
+ data: item,
4258
+ attrs: ["events"],
4259
+ }),
4260
+ false
4261
+ ),
4262
+ item.events
4231
4263
  ),
4232
4264
  [
4233
4265
  _vm._v(
@@ -4313,11 +4345,11 @@ var mainvue_type_template_id_a336a590_render = function () {
4313
4345
  2
4314
4346
  )
4315
4347
  }
4316
- var mainvue_type_template_id_a336a590_staticRenderFns = []
4317
- mainvue_type_template_id_a336a590_render._withStripped = true
4348
+ var mainvue_type_template_id_1080b7f0_staticRenderFns = []
4349
+ mainvue_type_template_id_1080b7f0_render._withStripped = true
4318
4350
 
4319
4351
 
4320
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
4352
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=1080b7f0&
4321
4353
 
4322
4354
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=script&lang=js&
4323
4355
  var 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; };
@@ -4389,6 +4421,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4389
4421
  //
4390
4422
  //
4391
4423
  //
4424
+ //
4425
+ //
4426
+ //
4427
+ //
4428
+ //
4429
+ //
4392
4430
 
4393
4431
 
4394
4432
  /* harmony default export */ var button_group_src_mainvue_type_script_lang_js_ = ({
@@ -4447,6 +4485,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4447
4485
  },
4448
4486
 
4449
4487
  methods: {
4488
+ exclAttribute: function exclAttribute(_ref) {
4489
+ var data = _ref.data,
4490
+ attrs = _ref.attrs;
4491
+
4492
+ return utils_util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
4493
+ },
4450
4494
  getBtns: function getBtns() {
4451
4495
  var _this = this;
4452
4496
 
@@ -4514,8 +4558,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4514
4558
 
4515
4559
  var src_main_component = normalizeComponent(
4516
4560
  packages_button_group_src_mainvue_type_script_lang_js_,
4517
- mainvue_type_template_id_a336a590_render,
4518
- mainvue_type_template_id_a336a590_staticRenderFns,
4561
+ mainvue_type_template_id_1080b7f0_render,
4562
+ mainvue_type_template_id_1080b7f0_staticRenderFns,
4519
4563
  false,
4520
4564
  null,
4521
4565
  null,
@@ -4532,8 +4576,8 @@ src_main.install = function (Vue) {
4532
4576
  };
4533
4577
 
4534
4578
  /* harmony default export */ var button_group = (src_main);
4535
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=31c0856e&
4536
- var mainvue_type_template_id_31c0856e_render = function () {
4579
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=aa9b4086&
4580
+ var mainvue_type_template_id_aa9b4086_render = function () {
4537
4581
  var _vm = this
4538
4582
  var _h = _vm.$createElement
4539
4583
  var _c = _vm._self._c || _h
@@ -4625,6 +4669,7 @@ var mainvue_type_template_id_31c0856e_render = function () {
4625
4669
  "es-disabled-day": item.type == 0,
4626
4670
  "es-today": _vm.isSelect(item, _vm.today) && _vm.mark,
4627
4671
  "es-select": _vm.isSelect(item, _vm.select),
4672
+ "es-disabled": item.disabled,
4628
4673
  },
4629
4674
  },
4630
4675
  [
@@ -4681,11 +4726,11 @@ var mainvue_type_template_id_31c0856e_render = function () {
4681
4726
  ),
4682
4727
  ])
4683
4728
  }
4684
- var mainvue_type_template_id_31c0856e_staticRenderFns = []
4685
- mainvue_type_template_id_31c0856e_render._withStripped = true
4729
+ var mainvue_type_template_id_aa9b4086_staticRenderFns = []
4730
+ mainvue_type_template_id_aa9b4086_render._withStripped = true
4686
4731
 
4687
4732
 
4688
- // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=31c0856e&
4733
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=aa9b4086&
4689
4734
 
4690
4735
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=script&lang=js&
4691
4736
  //
@@ -4748,6 +4793,7 @@ mainvue_type_template_id_31c0856e_render._withStripped = true
4748
4793
  //
4749
4794
  //
4750
4795
  //
4796
+ //
4751
4797
 
4752
4798
  /* harmony default export */ var calendar_src_mainvue_type_script_lang_js_ = ({
4753
4799
  name: 'EsCalendar',
@@ -4768,7 +4814,8 @@ mainvue_type_template_id_31c0856e_render._withStripped = true
4768
4814
  type: Boolean,
4769
4815
  default: true
4770
4816
  },
4771
- mark: Boolean
4817
+ mark: Boolean,
4818
+ disabled: Boolean
4772
4819
  },
4773
4820
  watch: {
4774
4821
  date: {
@@ -4878,6 +4925,9 @@ mainvue_type_template_id_31c0856e_render._withStripped = true
4878
4925
  return target == year + '/' + month + '/' + date;
4879
4926
  },
4880
4927
  handleClick: function handleClick(res) {
4928
+ if (res.disabled) {
4929
+ return false;
4930
+ }
4881
4931
  var year = res.year,
4882
4932
  month = res.month,
4883
4933
  date = res.date;
@@ -5006,7 +5056,8 @@ mainvue_type_template_id_31c0856e_render._withStripped = true
5006
5056
  date: _i3,
5007
5057
  type: 0,
5008
5058
  year: month == 0 ? year - 1 : year,
5009
- month: month == 0 ? 12 : month
5059
+ month: month == 0 ? 12 : month,
5060
+ disabled: this.disabled
5010
5061
  });
5011
5062
  }
5012
5063
  }
@@ -5027,7 +5078,8 @@ mainvue_type_template_id_31c0856e_render._withStripped = true
5027
5078
  date: i,
5028
5079
  type: 0,
5029
5080
  year: month == 11 ? year + 1 : year,
5030
- month: month == 11 ? 1 : month + 2
5081
+ month: month == 11 ? 1 : month + 2,
5082
+ disabled: this.disabled
5031
5083
  });
5032
5084
  }
5033
5085
  }
@@ -5103,8 +5155,8 @@ mainvue_type_template_id_31c0856e_render._withStripped = true
5103
5155
 
5104
5156
  var calendar_src_main_component = normalizeComponent(
5105
5157
  packages_calendar_src_mainvue_type_script_lang_js_,
5106
- mainvue_type_template_id_31c0856e_render,
5107
- mainvue_type_template_id_31c0856e_staticRenderFns,
5158
+ mainvue_type_template_id_aa9b4086_render,
5159
+ mainvue_type_template_id_aa9b4086_staticRenderFns,
5108
5160
  false,
5109
5161
  null,
5110
5162
  null,
@@ -6453,8 +6505,8 @@ clients_src_main.install = function (Vue) {
6453
6505
  };
6454
6506
 
6455
6507
  /* harmony default export */ var clients = (clients_src_main);
6456
- // 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=c40e40b8&
6457
- var mainvue_type_template_id_c40e40b8_render = function () {
6508
+ // 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=5d38af04&
6509
+ var mainvue_type_template_id_5d38af04_render = function () {
6458
6510
  var _vm = this
6459
6511
  var _h = _vm.$createElement
6460
6512
  var _c = _vm._self._c || _h
@@ -6541,10 +6593,15 @@ var mainvue_type_template_id_c40e40b8_render = function () {
6541
6593
  (_vm.theadBorder && _vm.border != "none"
6542
6594
  ? " es-thead-border"
6543
6595
  : ""),
6596
+ attrs: { data: _vm.datas },
6597
+ on: {
6598
+ "update:data": function ($event) {
6599
+ _vm.datas = $event
6600
+ },
6601
+ },
6544
6602
  },
6545
6603
  "el-table",
6546
6604
  Object.assign({}, _vm.$attrs, {
6547
- data: _vm.datas,
6548
6605
  emptyText: _vm.emptyText,
6549
6606
  showSummary: _vm.showTotal,
6550
6607
  sumText: _vm.sumText || _vm.totalText,
@@ -6556,6 +6613,8 @@ var mainvue_type_template_id_c40e40b8_render = function () {
6556
6613
  border: _vm._border,
6557
6614
  infiniteScroll: _vm.getTableData,
6558
6615
  infiniteScrollDisabled: _vm.infiniteDisabled,
6616
+ dragSort: _vm.dragSort,
6617
+ dragSortClass: _vm.dragSortIcon,
6559
6618
  }),
6560
6619
  false
6561
6620
  ),
@@ -6564,6 +6623,7 @@ var mainvue_type_template_id_c40e40b8_render = function () {
6564
6623
  "selection-change": _vm.selectionChange,
6565
6624
  "filter-column": _vm.handleFilterColumn,
6566
6625
  "sort-change": _vm.handleSortChange,
6626
+ "update-drag-sort": _vm.handleUpdateDragSort,
6567
6627
  })
6568
6628
  ),
6569
6629
  [
@@ -6573,13 +6633,38 @@ var mainvue_type_template_id_c40e40b8_render = function () {
6573
6633
  return [
6574
6634
  item.hide !== true
6575
6635
  ? [
6576
- item.type === "index" || item.type === "selection"
6636
+ item.type === "sort"
6637
+ ? _c("el-table-column", {
6638
+ key: index,
6639
+ attrs: { width: "32" },
6640
+ scopedSlots: _vm._u([
6641
+ {
6642
+ key: "default",
6643
+ fn: function (scope) {
6644
+ return [
6645
+ _c("es-icon", {
6646
+ staticClass: "es-move",
6647
+ attrs: {
6648
+ contents: _vm.dragSortIcon,
6649
+ },
6650
+ }),
6651
+ ]
6652
+ },
6653
+ },
6654
+ ]),
6655
+ })
6656
+ : item.type === "index" ||
6657
+ item.type === "selection"
6577
6658
  ? _c(
6578
6659
  "el-table-column",
6579
6660
  _vm._b(
6580
6661
  { key: index },
6581
6662
  "el-table-column",
6582
- item,
6663
+ _vm.dragSort
6664
+ ? Object.assign({}, item, {
6665
+ fixed: false,
6666
+ })
6667
+ : item,
6583
6668
  false
6584
6669
  )
6585
6670
  )
@@ -6597,8 +6682,13 @@ var mainvue_type_template_id_c40e40b8_render = function () {
6597
6682
  form: _vm.form,
6598
6683
  readonly: _vm.readonly,
6599
6684
  optionData: _vm.optionDatas,
6685
+ dragSort: _vm.dragSort,
6600
6686
  },
6601
- item
6687
+ _vm.dragSort
6688
+ ? Object.assign({}, item, {
6689
+ fixed: false,
6690
+ })
6691
+ : item
6602
6692
  ),
6603
6693
  false
6604
6694
  ),
@@ -6722,17 +6812,17 @@ var mainvue_type_template_id_c40e40b8_render = function () {
6722
6812
  1
6723
6813
  )
6724
6814
  }
6725
- var mainvue_type_template_id_c40e40b8_staticRenderFns = []
6726
- mainvue_type_template_id_c40e40b8_render._withStripped = true
6815
+ var mainvue_type_template_id_5d38af04_staticRenderFns = []
6816
+ mainvue_type_template_id_5d38af04_render._withStripped = true
6727
6817
 
6728
6818
 
6729
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=c40e40b8&
6819
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=5d38af04&
6730
6820
 
6731
6821
  // EXTERNAL MODULE: external "throttle-debounce"
6732
6822
  var external_throttle_debounce_ = __webpack_require__(13);
6733
6823
 
6734
- // 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=29bcbc72&
6735
- var childrenvue_type_template_id_29bcbc72_render = function () {
6824
+ // 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&
6825
+ var childrenvue_type_template_id_44b7ff61_render = function () {
6736
6826
  var _vm = this
6737
6827
  var _h = _vm.$createElement
6738
6828
  var _c = _vm._self._c || _h
@@ -6751,9 +6841,15 @@ var childrenvue_type_template_id_29bcbc72_render = function () {
6751
6841
  _vm._b(
6752
6842
  { key: index },
6753
6843
  "children",
6754
- Object.assign({}, _vm.$attrs, item, {
6755
- indexs: index,
6756
- }),
6844
+ Object.assign(
6845
+ {},
6846
+ _vm.$attrs,
6847
+ item,
6848
+ { indexs: index },
6849
+ _vm.dragSort
6850
+ ? Object.assign({}, item, { fixed: false })
6851
+ : item
6852
+ ),
6757
6853
  false
6758
6854
  ),
6759
6855
  _vm.$listeners
@@ -6768,11 +6864,11 @@ var childrenvue_type_template_id_29bcbc72_render = function () {
6768
6864
  2
6769
6865
  )
6770
6866
  }
6771
- var childrenvue_type_template_id_29bcbc72_staticRenderFns = []
6772
- childrenvue_type_template_id_29bcbc72_render._withStripped = true
6867
+ var childrenvue_type_template_id_44b7ff61_staticRenderFns = []
6868
+ childrenvue_type_template_id_44b7ff61_render._withStripped = true
6773
6869
 
6774
6870
 
6775
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
6871
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
6776
6872
 
6777
6873
  // 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/column.vue?vue&type=template&id=449ae3d7&
6778
6874
  var columnvue_type_template_id_449ae3d7_render = function () {
@@ -8392,12 +8488,14 @@ var _components;
8392
8488
  //
8393
8489
  //
8394
8490
  //
8491
+ //
8395
8492
 
8396
8493
 
8397
8494
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
8398
8495
  name: 'Children',
8399
8496
  components: (_components = {}, _components[column.name] = column, _components),
8400
8497
  props: {
8498
+ dragSort: Boolean,
8401
8499
  children: Array,
8402
8500
  childHead: Array
8403
8501
  },
@@ -8419,8 +8517,8 @@ var _components;
8419
8517
 
8420
8518
  var children_component = normalizeComponent(
8421
8519
  src_childrenvue_type_script_lang_js_,
8422
- childrenvue_type_template_id_29bcbc72_render,
8423
- childrenvue_type_template_id_29bcbc72_staticRenderFns,
8520
+ childrenvue_type_template_id_44b7ff61_render,
8521
+ childrenvue_type_template_id_44b7ff61_staticRenderFns,
8424
8522
  false,
8425
8523
  null,
8426
8524
  null,
@@ -8827,6 +8925,24 @@ var mainvue_type_script_lang_js_components, _watch;
8827
8925
  //
8828
8926
  //
8829
8927
  //
8928
+ //
8929
+ //
8930
+ //
8931
+ //
8932
+ //
8933
+ //
8934
+ //
8935
+ //
8936
+ //
8937
+ //
8938
+ //
8939
+ //
8940
+ //
8941
+ //
8942
+ //
8943
+ //
8944
+ //
8945
+ //
8830
8946
 
8831
8947
 
8832
8948
 
@@ -9078,6 +9194,11 @@ var mainvue_type_script_lang_js_components, _watch;
9078
9194
  default: function _default() {
9079
9195
  return {};
9080
9196
  }
9197
+ },
9198
+ dragSort: Boolean,
9199
+ dragSortIcon: {
9200
+ type: String,
9201
+ default: 'es-icon-caidan'
9081
9202
  }
9082
9203
  },
9083
9204
  data: function data() {
@@ -9106,7 +9227,8 @@ var mainvue_type_script_lang_js_components, _watch;
9106
9227
  icon: true,
9107
9228
  show: true,
9108
9229
  sysCodes: [],
9109
- infiniteDisabled: this.infiniteScroll
9230
+ infiniteDisabled: this.infiniteScroll,
9231
+ isUpadeData: false
9110
9232
  };
9111
9233
  },
9112
9234
 
@@ -9124,7 +9246,17 @@ var mainvue_type_script_lang_js_components, _watch;
9124
9246
  theads: {
9125
9247
  get: function get() {
9126
9248
  var thead = [];
9127
- if (this.checkbox) {
9249
+ var types = this.theadData.filter(function (item) {
9250
+ return item.type == 'selection' || item.type == 'index' || item.type == 'sort';
9251
+ }).map(function (item) {
9252
+ return item.type;
9253
+ });
9254
+ if (this.dragSort && !types.includes('sort')) {
9255
+ thead.push({
9256
+ type: 'sort'
9257
+ });
9258
+ }
9259
+ if (this.checkbox && !types.includes('selection')) {
9128
9260
  thead.push({
9129
9261
  type: 'selection',
9130
9262
  width: '55',
@@ -9134,7 +9266,7 @@ var mainvue_type_script_lang_js_components, _watch;
9134
9266
  reserveSelection: this.reserveSelection
9135
9267
  });
9136
9268
  }
9137
- if (this.numbers) {
9269
+ if (this.numbers && !types.includes('index')) {
9138
9270
  var index = 1;
9139
9271
  if (this.infiniteScroll) {
9140
9272
  index = typeof this.index == 'boolean' ? 1 : this.index;
@@ -9147,7 +9279,8 @@ var mainvue_type_script_lang_js_components, _watch;
9147
9279
  width: '70',
9148
9280
  align: 'center',
9149
9281
  fixed: 'left',
9150
- index: index
9282
+ index: index,
9283
+ filterIcon: this.filter ? 'es-icon-biao' : undefined
9151
9284
  });
9152
9285
  }
9153
9286
  if (this.theadData.length) {
@@ -9177,6 +9310,7 @@ var mainvue_type_script_lang_js_components, _watch;
9177
9310
  return this.data;
9178
9311
  },
9179
9312
  set: function set(val) {
9313
+ this.$emit('update:data', val);
9180
9314
  return val;
9181
9315
  }
9182
9316
  },
@@ -10048,6 +10182,9 @@ var mainvue_type_script_lang_js_components, _watch;
10048
10182
  }
10049
10183
  this.$emit('sort-change', res);
10050
10184
  },
10185
+ handleUpdateDragSort: function handleUpdateDragSort(data, event) {
10186
+ this.$emit('update-drag-sort', data, event);
10187
+ },
10051
10188
  mergeThead: function mergeThead(res) {
10052
10189
  var _this12 = this;
10053
10190
 
@@ -10093,8 +10230,8 @@ var mainvue_type_script_lang_js_components, _watch;
10093
10230
 
10094
10231
  var data_table_src_main_component = normalizeComponent(
10095
10232
  packages_data_table_src_mainvue_type_script_lang_js_,
10096
- mainvue_type_template_id_c40e40b8_render,
10097
- mainvue_type_template_id_c40e40b8_staticRenderFns,
10233
+ mainvue_type_template_id_5d38af04_render,
10234
+ mainvue_type_template_id_5d38af04_staticRenderFns,
10098
10235
  false,
10099
10236
  null,
10100
10237
  null,
@@ -13569,8 +13706,8 @@ error_page_src_main.install = function (Vue) {
13569
13706
  };
13570
13707
 
13571
13708
  /* harmony default export */ var error_page = (error_page_src_main);
13572
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=6983cacd&
13573
- var mainvue_type_template_id_6983cacd_render = function () {
13709
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=55faec94&
13710
+ var mainvue_type_template_id_55faec94_render = function () {
13574
13711
  var _vm = this
13575
13712
  var _h = _vm.$createElement
13576
13713
  var _c = _vm._self._c || _h
@@ -25026,11 +25163,11 @@ var mainvue_type_template_id_6983cacd_render = function () {
25026
25163
  )
25027
25164
  : _vm._e()
25028
25165
  }
25029
- var mainvue_type_template_id_6983cacd_staticRenderFns = []
25030
- mainvue_type_template_id_6983cacd_render._withStripped = true
25166
+ var mainvue_type_template_id_55faec94_staticRenderFns = []
25167
+ mainvue_type_template_id_55faec94_render._withStripped = true
25031
25168
 
25032
25169
 
25033
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=6983cacd&
25170
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=55faec94&
25034
25171
 
25035
25172
  // CONCATENATED MODULE: ./src/utils/rules.js
25036
25173
  // 手机号
@@ -29985,6 +30122,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29985
30122
  var type = arguments[2];
29986
30123
  var validate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
29987
30124
 
30125
+ if (this.readonly) {
30126
+ return Promise.resolve();
30127
+ }
29988
30128
  if (!handle) {
29989
30129
  handle = this.handles || {};
29990
30130
  }
@@ -30325,8 +30465,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
30325
30465
 
30326
30466
  var form_src_main_component = normalizeComponent(
30327
30467
  packages_form_src_mainvue_type_script_lang_js_,
30328
- mainvue_type_template_id_6983cacd_render,
30329
- mainvue_type_template_id_6983cacd_staticRenderFns,
30468
+ mainvue_type_template_id_55faec94_render,
30469
+ mainvue_type_template_id_55faec94_staticRenderFns,
30330
30470
  false,
30331
30471
  null,
30332
30472
  null,
@@ -33060,8 +33200,8 @@ var CommonOpinions_component = normalizeComponent(
33060
33200
  )
33061
33201
 
33062
33202
  /* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
33063
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=aaac09fe&
33064
- var processFormvue_type_template_id_aaac09fe_render = function () {
33203
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=38d27a4e&
33204
+ var processFormvue_type_template_id_38d27a4e_render = function () {
33065
33205
  var _vm = this
33066
33206
  var _h = _vm.$createElement
33067
33207
  var _c = _vm._self._c || _h
@@ -33527,11 +33667,11 @@ var processFormvue_type_template_id_aaac09fe_render = function () {
33527
33667
  1
33528
33668
  )
33529
33669
  }
33530
- var processFormvue_type_template_id_aaac09fe_staticRenderFns = []
33531
- processFormvue_type_template_id_aaac09fe_render._withStripped = true
33670
+ var processFormvue_type_template_id_38d27a4e_staticRenderFns = []
33671
+ processFormvue_type_template_id_38d27a4e_render._withStripped = true
33532
33672
 
33533
33673
 
33534
- // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=aaac09fe&
33674
+ // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=38d27a4e&
33535
33675
 
33536
33676
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=db651118&
33537
33677
  var selectUservue_type_template_id_db651118_render = function () {
@@ -35314,6 +35454,7 @@ var processFormvue_type_script_lang_js_components;
35314
35454
  }
35315
35455
  }
35316
35456
  },
35457
+ userModel: {},
35317
35458
  nextUserTabs: {},
35318
35459
  selectPresetUserList: [],
35319
35460
  presetOptions: [],
@@ -35358,12 +35499,39 @@ var processFormvue_type_script_lang_js_components;
35358
35499
  }
35359
35500
  }
35360
35501
  },
35502
+ created: function created() {
35503
+ this.getUserInfo();
35504
+ },
35361
35505
  mounted: function mounted() {
35362
35506
  this.getStartFlow(this.processDefinitionId);
35363
35507
  this.newOpinion = this.opinion;
35364
35508
  },
35365
35509
 
35366
35510
  methods: {
35511
+ getUserInfo: function getUserInfo() {
35512
+ var _this = this;
35513
+
35514
+ var mainConfig = utils_util["a" /* default */].getStorage('mainConfig');
35515
+ if (mainConfig) {
35516
+ this.userModel = JSON.parse(mainConfig).userModel;
35517
+ } else {
35518
+ utils_util["a" /* default */].ajax({ url: api["cb" /* loginUserInfo */] }).then(function (res) {
35519
+ var status = res.status,
35520
+ data = res.data;
35521
+
35522
+ if (status == 'success') {
35523
+ _this.userModel = data;
35524
+ } else {
35525
+ var msg = res.msg || '系统错误,请联系管理员!';
35526
+ _this.$message.error(msg);
35527
+ }
35528
+ }).catch(function (err) {
35529
+ if (err.message && err.message !== 'canceled') {
35530
+ _this.$message.error(err.message);
35531
+ }
35532
+ });
35533
+ }
35534
+ },
35367
35535
  getIsShowNextUser: function getIsShowNextUser(val) {
35368
35536
  if (val == 7 || val == 8 || val == 9 || val == 10 || val == 11 || val == 12) {
35369
35537
  this.isShowNextUser = false;
@@ -35449,7 +35617,7 @@ var processFormvue_type_script_lang_js_components;
35449
35617
  this.mixOrgIdList = mixList;
35450
35618
  },
35451
35619
  getNodeType: function getNodeType() {
35452
- var _this = this;
35620
+ var _this2 = this;
35453
35621
 
35454
35622
  utils_util["a" /* default */].ajax({
35455
35623
  url: api["u" /* findCodeValues */],
@@ -35462,19 +35630,19 @@ var processFormvue_type_script_lang_js_components;
35462
35630
  data = res.data;
35463
35631
 
35464
35632
  if (status === 'success') {
35465
- _this.nextNode.noticeList = data;
35633
+ _this2.nextNode.noticeList = data;
35466
35634
  }
35467
35635
  }).catch(function (err) {
35468
- _this.loading = false;
35636
+ _this2.loading = false;
35469
35637
  if (err.message && err.message !== 'canceled') {
35470
- _this.$message.error(err.message);
35638
+ _this2.$message.error(err.message);
35471
35639
  }
35472
35640
  });
35473
35641
  },
35474
35642
 
35475
35643
  //获取通知信息
35476
35644
  getMessage: function getMessage() {
35477
- var _this2 = this;
35645
+ var _this3 = this;
35478
35646
 
35479
35647
  var params = {
35480
35648
  processDefinitionId: this.processDefinitionId,
@@ -35483,12 +35651,12 @@ var processFormvue_type_script_lang_js_components;
35483
35651
  };
35484
35652
  utils_util["a" /* default */].ajax({ url: api["I" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
35485
35653
  if (res.status === 'success') {
35486
- _this2.nextNode.noticeInfo = res.message;
35654
+ _this3.nextNode.noticeInfo = res.message;
35487
35655
  }
35488
35656
  }).catch(function (err) {
35489
- _this2.loading = false;
35657
+ _this3.loading = false;
35490
35658
  if (err.message && err.message !== 'canceled') {
35491
- _this2.$message.error(err.message);
35659
+ _this3.$message.error(err.message);
35492
35660
  }
35493
35661
  });
35494
35662
  },
@@ -35498,11 +35666,11 @@ var processFormvue_type_script_lang_js_components;
35498
35666
  this.saveProcess(formName);
35499
35667
  },
35500
35668
  saveProcess: function saveProcess(formName) {
35501
- var _this3 = this;
35669
+ var _this4 = this;
35502
35670
 
35503
35671
  this.$refs[formName].validate(function (valid) {
35504
35672
  if (valid) {
35505
- var _nextNode = _this3.nextNode,
35673
+ var _nextNode = _this4.nextNode,
35506
35674
  nextNode = _nextNode.nextNode,
35507
35675
  nextUser = _nextNode.nextUser,
35508
35676
  noticeInfo = _nextNode.noticeInfo,
@@ -35514,20 +35682,20 @@ var processFormvue_type_script_lang_js_components;
35514
35682
  newOpinion = _nextNode.newOpinion;
35515
35683
 
35516
35684
  if (noticeType.length === 0) {
35517
- return _this3.$message.warning('请选择通知方式');
35685
+ return _this4.$message.warning('请选择通知方式');
35518
35686
  }
35519
- if (_this3.isShowNextUser) {
35520
- if (nextUser == '' || _this3.multiple && nextUser.length == 0) {
35521
- return _this3.$message.warning('请选择下步办理人');
35687
+ if (_this4.isShowNextUser) {
35688
+ if (nextUser == '' || _this4.multiple && nextUser.length == 0) {
35689
+ return _this4.$message.warning('请选择下步办理人');
35522
35690
  }
35523
35691
  } else {
35524
- if (nextOrgId == '' || _this3.multiple && nextOrgId.length == 0) {
35525
- return _this3.$message.warning('请选择办理对象');
35692
+ if (nextOrgId == '' || _this4.multiple && nextOrgId.length == 0) {
35693
+ return _this4.$message.warning('请选择办理对象');
35526
35694
  }
35527
35695
  }
35528
- _this3.loading = true;
35696
+ _this4.loading = true;
35529
35697
  var newNextUser = [];
35530
- if (_this3.multiple) {
35698
+ if (_this4.multiple) {
35531
35699
  nextUser && nextUser.map(function (item) {
35532
35700
  return newNextUser.push(item);
35533
35701
  });
@@ -35537,37 +35705,37 @@ var processFormvue_type_script_lang_js_components;
35537
35705
  newNoticeType = noticeType.join(',');
35538
35706
  }
35539
35707
  var params = {
35540
- processDefinitionId: _this3.processDefinitionId,
35541
- nextUserId: _this3.multiple ? newNextUser.join(',') : nextUser,
35708
+ processDefinitionId: _this4.processDefinitionId,
35709
+ nextUserId: _this4.multiple ? newNextUser.join(',') : nextUser,
35542
35710
  nextNodeId: nextNode,
35543
- businessId: _this3.businessId,
35711
+ businessId: _this4.businessId,
35544
35712
  notificationType: newNoticeType,
35545
35713
  userId: utils_util["a" /* default */].getStorage('userId'),
35546
35714
  notificationMsg: noticeInfo,
35547
- customPresetUserJson: JSON.stringify(_this3.presetList),
35548
- presetUserJson: JSON.stringify(_this3.presetUserJson),
35549
- nextReadUserId: _this3.readMultiple ? _this3.mixReadList && _this3.mixReadList.join('|') : nextReadUserId,
35550
- nextOrgId: !_this3.isShowNextUser ? _this3.multiple ? _this3.mixOrgIdList && _this3.mixOrgIdList.join('|') : nextOrgId : '',
35715
+ customPresetUserJson: JSON.stringify(_this4.presetList),
35716
+ presetUserJson: JSON.stringify(_this4.presetUserJson),
35717
+ nextReadUserId: _this4.readMultiple ? _this4.mixReadList && _this4.mixReadList.join('|') : nextReadUserId,
35718
+ nextOrgId: !_this4.isShowNextUser ? _this4.multiple ? _this4.mixOrgIdList && _this4.mixOrgIdList.join('|') : nextOrgId : '',
35551
35719
  handleExplain: handleExplain,
35552
- presetReadUserId: _this3.mixPresetList && _this3.mixPresetList.length > 0 ? _this3.mixPresetList.join('|') : presetReadUserId.join(','),
35553
- opinion: _this3.newOpinion || newOpinion
35720
+ presetReadUserId: _this4.mixPresetList && _this4.mixPresetList.length > 0 ? _this4.mixPresetList.join('|') : presetReadUserId.join(','),
35721
+ opinion: _this4.newOpinion || newOpinion
35554
35722
  };
35555
- if (_this3.activeNames != '1') delete params.customPresetUserJson;
35723
+ if (_this4.activeNames != '1') delete params.customPresetUserJson;
35556
35724
  utils_util["a" /* default */].ajax({ url: api["mb" /* register */], method: 'post', data: params }).then(function (res) {
35557
35725
  var status = res.status,
35558
35726
  message = res.message;
35559
35727
 
35560
- _this3.loading = false;
35728
+ _this4.loading = false;
35561
35729
  if (status === 'success') {
35562
- _this3.quit(true);
35563
- _this3.$message.success('操作成功');
35730
+ _this4.quit(true);
35731
+ _this4.$message.success('操作成功');
35564
35732
  } else {
35565
- _this3.$message.error(message || '系统错误,请联系管理员!');
35733
+ _this4.$message.error(message || '系统错误,请联系管理员!');
35566
35734
  }
35567
35735
  }).catch(function (err) {
35568
- _this3.loading = false;
35736
+ _this4.loading = false;
35569
35737
  if (err.message && err.message !== 'canceled') {
35570
- _this3.$message.error(err.message);
35738
+ _this4.$message.error(err.message);
35571
35739
  }
35572
35740
  });
35573
35741
  } else {
@@ -35576,7 +35744,7 @@ var processFormvue_type_script_lang_js_components;
35576
35744
  });
35577
35745
  },
35578
35746
  getNodeInfos: function getNodeInfos(nodeId, index) {
35579
- var _this4 = this;
35747
+ var _this5 = this;
35580
35748
 
35581
35749
  var params = {
35582
35750
  processDefinitionId: this.processDefinitionId,
@@ -35592,63 +35760,63 @@ var processFormvue_type_script_lang_js_components;
35592
35760
  countersignaturetypeText = _res$data.countersignaturetypeText,
35593
35761
  countersignaturetypeCode = _res$data.countersignaturetypeCode;
35594
35762
 
35595
- _this4.loading = false;
35763
+ _this5.loading = false;
35596
35764
  if (status === 'success') {
35597
- _this4.nextNode.userInfo = nextUserList;
35598
- _this4.countersignaturetypeCode = countersignaturetypeCode;
35599
- _this4.nextNode.countersignaturetypeText = countersignaturetypeText;
35600
- _this4.isTaskread = nodeExtAttr.isTaskread;
35601
- _this4.isHandleExplain = nodeExtAttr.isHandleExplain;
35602
- _this4.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
35603
- _this4.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
35604
- _this4.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
35765
+ _this5.nextNode.userInfo = nextUserList;
35766
+ _this5.countersignaturetypeCode = countersignaturetypeCode;
35767
+ _this5.nextNode.countersignaturetypeText = countersignaturetypeText;
35768
+ _this5.isTaskread = nodeExtAttr.isTaskread;
35769
+ _this5.isHandleExplain = nodeExtAttr.isHandleExplain;
35770
+ _this5.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
35771
+ _this5.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
35772
+ _this5.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
35605
35773
  if (nodeExtAttr.userSelectionType == 7 || nodeExtAttr.userSelectionType == 8 || nodeExtAttr.userSelectionType == 9 || nodeExtAttr.userSelectionType == 10 || nodeExtAttr.userSelectionType == 11 || nodeExtAttr.userSelectionType == 12) {
35606
- _this4.getIsShowNextUser(nodeExtAttr && nodeExtAttr.userSelectionType);
35774
+ _this5.getIsShowNextUser(nodeExtAttr && nodeExtAttr.userSelectionType);
35607
35775
  } else {
35608
- var _isMultiple = _this4.isMultiple(nodeExtAttr.userSelectionType),
35776
+ var _isMultiple = _this5.isMultiple(nodeExtAttr.userSelectionType),
35609
35777
  multiple = _isMultiple.multiple,
35610
35778
  _params = _isMultiple.params;
35611
35779
 
35612
- _this4.multiple = multiple;
35613
- _this4.params = _params;
35780
+ _this5.multiple = multiple;
35781
+ _this5.params = _params;
35614
35782
  }
35615
35783
  // this.isReadMultiple(nodeExtAttr.userSelectionType);
35616
35784
 
35617
35785
  nextUserList.map(function (item) {
35618
- if (_this4.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
35619
- _this4.nextNode.nextUser.push(item.userId);
35620
- _this4.selectUserList.push({
35786
+ if (_this5.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
35787
+ _this5.nextNode.nextUser.push(item.userId);
35788
+ _this5.selectUserList.push({
35621
35789
  showname: item.username,
35622
35790
  showid: item.userId
35623
35791
  });
35624
35792
  }
35625
35793
 
35626
- _this4.options.push({
35794
+ _this5.options.push({
35627
35795
  showname: item.username,
35628
35796
  showid: item.userId
35629
35797
  });
35630
35798
  });
35631
- if (_this4.multiple) {
35632
- _this4.nextNode.nextReadUserId = [];
35799
+ if (_this5.multiple) {
35800
+ _this5.nextNode.nextReadUserId = [];
35633
35801
  } else {
35634
- _this4.nextNode.nextReadUserId = '';
35802
+ _this5.nextNode.nextReadUserId = '';
35635
35803
  }
35636
- if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !_this4.multiple) {
35637
- _this4.nextNode.nextUser = nextUserList[0].userId;
35638
- _this4.selectUserList.push({
35804
+ if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !_this5.multiple) {
35805
+ _this5.nextNode.nextUser = nextUserList[0].userId;
35806
+ _this5.selectUserList.push({
35639
35807
  showname: nextUserList[0].username,
35640
35808
  showid: nextUserList[0].userId
35641
35809
  });
35642
35810
  }
35643
- _this4.radioList = _this4.options;
35811
+ _this5.radioList = _this5.options;
35644
35812
  } else {
35645
- _this4.$message.error(message || '系统错误,请联系管理员!');
35813
+ _this5.$message.error(message || '系统错误,请联系管理员!');
35646
35814
  }
35647
- nodeId && _this4.$refs.selectUser[index].changeInfo();
35815
+ nodeId && _this5.$refs.selectUser[index].changeInfo();
35648
35816
  }).catch(function (err) {
35649
- _this4.loading = false;
35817
+ _this5.loading = false;
35650
35818
  if (err.message && err.message !== 'canceled') {
35651
- _this4.$message.error(err.message);
35819
+ _this5.$message.error(err.message);
35652
35820
  }
35653
35821
  });
35654
35822
  },
@@ -35667,7 +35835,7 @@ var processFormvue_type_script_lang_js_components;
35667
35835
  this.$emit('cancel', false);
35668
35836
  },
35669
35837
  getFind: function getFind() {
35670
- var _this5 = this;
35838
+ var _this6 = this;
35671
35839
 
35672
35840
  utils_util["a" /* default */].ajax({
35673
35841
  url: api["w" /* findSysCodes */]
@@ -35676,14 +35844,14 @@ var processFormvue_type_script_lang_js_components;
35676
35844
  message = res.message;
35677
35845
 
35678
35846
  if (status === 'success') {
35679
- _this5.nextNode.noticeType = message.split(',');
35847
+ _this6.nextNode.noticeType = message.split(',');
35680
35848
  } else {
35681
- _this5.$message.error(message || '系统错误,请联系管理员!');
35849
+ _this6.$message.error(message || '系统错误,请联系管理员!');
35682
35850
  }
35683
35851
  }).catch(function (err) {
35684
- _this5.loading = false;
35852
+ _this6.loading = false;
35685
35853
  if (err.message && err.message !== 'canceled') {
35686
- _this5.$message.error(err.message);
35854
+ _this6.$message.error(err.message);
35687
35855
  }
35688
35856
  });
35689
35857
  },
@@ -35701,15 +35869,15 @@ var processFormvue_type_script_lang_js_components;
35701
35869
  multiple = true;
35702
35870
  }
35703
35871
  if (val == 1 || val == 2 || val == 5) {
35704
- params.filid = utils_util["a" /* default */].getStorage('orgId');
35872
+ params.filid = this.userModel.orgId;
35705
35873
  params.only_filid = true;
35706
35874
  if (choiceOrgId) {
35707
35875
  params.filid = choiceOrgId;
35708
35876
  }
35709
35877
  }
35710
35878
  if (val == 5 || val == 6) {
35711
- params.filid = utils_util["a" /* default */].getStorage('orgId');
35712
- params.deptid = utils_util["a" /* default */].getStorage('orgId');
35879
+ params.filid = this.userModel.orgId;
35880
+ params.deptid = this.userModel.orgId;
35713
35881
  if (choiceDeptId) {
35714
35882
  params.deptid = choiceDeptId;
35715
35883
  }
@@ -35718,7 +35886,7 @@ var processFormvue_type_script_lang_js_components;
35718
35886
  }
35719
35887
  }
35720
35888
  if (val == 15 || val == 16) {
35721
- params.filid = utils_util["a" /* default */].getStorage('orgId');
35889
+ params.filid = this.userModel.orgId;
35722
35890
  if (pOrgId) {
35723
35891
  params.filid = pOrgId;
35724
35892
  }
@@ -35726,7 +35894,7 @@ var processFormvue_type_script_lang_js_components;
35726
35894
  return { multiple: multiple, params: params };
35727
35895
  },
35728
35896
  getStartFlow: function getStartFlow(processId) {
35729
- var _this6 = this;
35897
+ var _this7 = this;
35730
35898
 
35731
35899
  if (!processId) {
35732
35900
  return false;
@@ -35746,80 +35914,80 @@ var processFormvue_type_script_lang_js_components;
35746
35914
  data = res.data;
35747
35915
 
35748
35916
  if (status == 'success') {
35749
- data.nodeInfoMap.nodeExtAttr.submitTipsMsg && _this6.$confirm(data.nodeInfoMap.nodeExtAttr.submitTipsMsg, '提示', {
35917
+ data.nodeInfoMap.nodeExtAttr.submitTipsMsg && _this7.$confirm(data.nodeInfoMap.nodeExtAttr.submitTipsMsg, '提示', {
35750
35918
  confirmButtonText: '确定',
35751
35919
  cancelButtonText: '取消',
35752
35920
  type: 'warning'
35753
35921
  }).then(function () {}).catch(function () {
35754
- _this6.quit();
35922
+ _this7.quit();
35755
35923
  });
35756
- _this6.customPresetHintMessage = data.customPresetHintMessage;
35757
- _this6.nextNode.nodeInfo = data.nextNodeList;
35758
- _this6.nextNode.nextNode = data.nextNodeList[0].nodeId;
35759
- _this6.isPreset = data.isPreset;
35760
- _this6.isHideDefaultOperation = data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
35761
- _this6.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
35762
- _this6.isChooseNextNode = data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
35763
- _this6.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
35764
- if (_this6.isChooseNextNode == 1) {
35765
- _this6.operationList = [{ key: 0, value: '默认', list: [] }, { key: 1, value: '自定义', list: [] }];
35924
+ _this7.customPresetHintMessage = data.customPresetHintMessage;
35925
+ _this7.nextNode.nodeInfo = data.nextNodeList;
35926
+ _this7.nextNode.nextNode = data.nextNodeList[0].nodeId;
35927
+ _this7.isPreset = data.isPreset;
35928
+ _this7.isHideDefaultOperation = data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
35929
+ _this7.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
35930
+ _this7.isChooseNextNode = data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
35931
+ _this7.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
35932
+ if (_this7.isChooseNextNode == 1) {
35933
+ _this7.operationList = [{ key: 0, value: '默认', list: [] }, { key: 1, value: '自定义', list: [] }];
35766
35934
  var arr = [];
35767
35935
  for (var key in data.taskNodeMap) {
35768
35936
  arr.push({ nodeName: data.taskNodeMap[key], nodeId: key });
35769
35937
  }
35770
- _this6.operationList[0].list = data.nextNodeList;
35771
- _this6.operationList[1].list = arr;
35772
- if (_this6.isHideDefaultOperation != 1) {
35773
- _this6.nextNode.nextOperate = 0;
35774
- _this6.nextNode.nodeInfo = _this6.operationList[0].list;
35775
- if (_this6.nextNode.nodeInfo.length > 0) {
35776
- _this6.nextNode.nextNode = _this6.defaultNextNode || data.nextNodeList[0].nodeId;
35938
+ _this7.operationList[0].list = data.nextNodeList;
35939
+ _this7.operationList[1].list = arr;
35940
+ if (_this7.isHideDefaultOperation != 1) {
35941
+ _this7.nextNode.nextOperate = 0;
35942
+ _this7.nextNode.nodeInfo = _this7.operationList[0].list;
35943
+ if (_this7.nextNode.nodeInfo.length > 0) {
35944
+ _this7.nextNode.nextNode = _this7.defaultNextNode || data.nextNodeList[0].nodeId;
35777
35945
  }
35778
35946
  } else if (data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 || data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1) {
35779
35947
  // this.nextNode.nodeInfo = data.nextNodeList
35780
- _this6.nextNode.nextOperate = 1;
35781
- _this6.nextNode.nodeInfo = _this6.operationList[1].list;
35782
- if (_this6.nextNode.nodeInfo.length > 0) {
35783
- _this6.nextNode.nextNode = _this6.defaultNextNode || data.nextNodeList[0].nodeId;
35948
+ _this7.nextNode.nextOperate = 1;
35949
+ _this7.nextNode.nodeInfo = _this7.operationList[1].list;
35950
+ if (_this7.nextNode.nodeInfo.length > 0) {
35951
+ _this7.nextNode.nextNode = _this7.defaultNextNode || data.nextNodeList[0].nodeId;
35784
35952
  }
35785
35953
  }
35786
35954
  }
35787
- _this6.isCustomPreset = data.isCustomPreset;
35788
- _this6.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
35789
- _this6.presetTaskNodeMap = data.presetTaskNodeMap;
35790
- _this6.isSinglePage = data.taskExamine.isSinglePage;
35791
- _this6.isSinglePage && (_this6.nextNode.opinion = data.taskExamine.opinion);
35955
+ _this7.isCustomPreset = data.isCustomPreset;
35956
+ _this7.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
35957
+ _this7.presetTaskNodeMap = data.presetTaskNodeMap;
35958
+ _this7.isSinglePage = data.taskExamine.isSinglePage;
35959
+ _this7.isSinglePage && (_this7.nextNode.opinion = data.taskExamine.opinion);
35792
35960
  // this.nextNode.noticeInfo = data.taskExamine.notificationMsg;
35793
- _this6.nextNode.nodeName = data.taskExamine.nodeName;
35794
- _this6.canPresetRead = data.canPresetRead;
35961
+ _this7.nextNode.nodeName = data.taskExamine.nodeName;
35962
+ _this7.canPresetRead = data.canPresetRead;
35795
35963
  if (data.canPresetRead) {
35796
35964
  var ids = data.nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
35797
35965
  var names = data.nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(',');
35798
35966
  ids.map(function (item, index) {
35799
- _this6.presetReadUserId.push({
35967
+ _this7.presetReadUserId.push({
35800
35968
  showid: item,
35801
35969
  showname: names[index]
35802
35970
  });
35803
- _this6.selectPresetUserList.push({
35971
+ _this7.selectPresetUserList.push({
35804
35972
  showid: item,
35805
35973
  showname: names[index]
35806
35974
  });
35807
- _this6.nextNode.presetReadUserId.push(item);
35975
+ _this7.nextNode.presetReadUserId.push(item);
35808
35976
  });
35809
35977
  }
35810
- _this6.getNodeInfos();
35978
+ _this7.getNodeInfos();
35811
35979
  // this.getPresetFlowInfo();
35812
- _this6.isCustomPreset && _this6.$refs.customPreset.getPresetFlowInfo(_this6.nextNode.nextNode);
35813
- _this6.getFind();
35814
- _this6.getMessage();
35815
- _this6.getNodeType();
35980
+ _this7.isCustomPreset && _this7.$refs.customPreset.getPresetFlowInfo(_this7.nextNode.nextNode);
35981
+ _this7.getFind();
35982
+ _this7.getMessage();
35983
+ _this7.getNodeType();
35816
35984
  } else {
35817
- _this6.$message.error(message || '系统错误,请联系管理员!');
35985
+ _this7.$message.error(message || '系统错误,请联系管理员!');
35818
35986
  }
35819
35987
  }).catch(function (err) {
35820
- _this6.loading = false;
35988
+ _this7.loading = false;
35821
35989
  if (err.message && err.message !== 'canceled') {
35822
- _this6.$message.error(err.message);
35990
+ _this7.$message.error(err.message);
35823
35991
  }
35824
35992
  });
35825
35993
  }
@@ -35837,8 +36005,8 @@ var processFormvue_type_script_lang_js_components;
35837
36005
 
35838
36006
  var processForm_component = normalizeComponent(
35839
36007
  src_processFormvue_type_script_lang_js_,
35840
- processFormvue_type_template_id_aaac09fe_render,
35841
- processFormvue_type_template_id_aaac09fe_staticRenderFns,
36008
+ processFormvue_type_template_id_38d27a4e_render,
36009
+ processFormvue_type_template_id_38d27a4e_staticRenderFns,
35842
36010
  false,
35843
36011
  null,
35844
36012
  null,
@@ -47039,8 +47207,8 @@ layout_src_main.install = function (Vue) {
47039
47207
  };
47040
47208
 
47041
47209
  /* harmony default export */ var layout = (layout_src_main);
47042
- // 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=e5e62fc8&
47043
- var mainvue_type_template_id_e5e62fc8_render = function () {
47210
+ // 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=b795be2e&
47211
+ var mainvue_type_template_id_b795be2e_render = function () {
47044
47212
  var _vm = this
47045
47213
  var _h = _vm.$createElement
47046
47214
  var _c = _vm._self._c || _h
@@ -47557,7 +47725,10 @@ var mainvue_type_template_id_e5e62fc8_render = function () {
47557
47725
  ),
47558
47726
  _vm.active == 3 && _vm.identifyingId
47559
47727
  ? _c("es-qr-code", {
47560
- attrs: { content: _vm.identifyingId },
47728
+ attrs: {
47729
+ content: _vm.identifyingId,
47730
+ logo: _vm.qrimg,
47731
+ },
47561
47732
  })
47562
47733
  : _vm._e(),
47563
47734
  _vm.active == 9
@@ -47956,11 +48127,11 @@ var mainvue_type_template_id_e5e62fc8_render = function () {
47956
48127
  )
47957
48128
  : _vm._e()
47958
48129
  }
47959
- var mainvue_type_template_id_e5e62fc8_staticRenderFns = []
47960
- mainvue_type_template_id_e5e62fc8_render._withStripped = true
48130
+ var mainvue_type_template_id_b795be2e_staticRenderFns = []
48131
+ mainvue_type_template_id_b795be2e_render._withStripped = true
47961
48132
 
47962
48133
 
47963
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=e5e62fc8&
48134
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=b795be2e&
47964
48135
 
47965
48136
  // 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=28f463b9&
47966
48137
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -48866,6 +49037,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
48866
49037
  //
48867
49038
  //
48868
49039
  //
49040
+ //
48869
49041
 
48870
49042
 
48871
49043
 
@@ -49182,6 +49354,12 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49182
49354
  this.loginInfo(val == 3);
49183
49355
  }
49184
49356
  },
49357
+ identifyingId: function identifyingId(val) {
49358
+ if (val) {
49359
+ this.loginInfo(this.active == 3);
49360
+ }
49361
+ },
49362
+
49185
49363
  appName: {
49186
49364
  immediate: true,
49187
49365
  handler: function handler(val) {
@@ -49487,7 +49665,9 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49487
49665
  this.downloadSetup = res.downloadSetup;
49488
49666
  document.title = res.subsystemName;
49489
49667
  this.app = res.appName || res.subsystemName;
49490
- this.qrimg = res.qrimg || res.qrImg;
49668
+ if (res.qrimg || res.qrImg) {
49669
+ this.qrimg = res.qrimg || res.qrImg;
49670
+ }
49491
49671
  if (res.loginModel) {
49492
49672
  this.loginModel = res.loginModel;
49493
49673
  }
@@ -49783,6 +49963,9 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49783
49963
  initRequestLoginInfo: function initRequestLoginInfo() {
49784
49964
  var _this9 = this;
49785
49965
 
49966
+ if (this.identifyingId == '') {
49967
+ return false;
49968
+ }
49786
49969
  utils_util["a" /* default */].ajax({
49787
49970
  method: 'post',
49788
49971
  url: this.scanAction,
@@ -49972,8 +50155,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49972
50155
 
49973
50156
  var login_src_main_component = normalizeComponent(
49974
50157
  packages_login_src_mainvue_type_script_lang_js_,
49975
- mainvue_type_template_id_e5e62fc8_render,
49976
- mainvue_type_template_id_e5e62fc8_staticRenderFns,
50158
+ mainvue_type_template_id_b795be2e_render,
50159
+ mainvue_type_template_id_b795be2e_staticRenderFns,
49977
50160
  false,
49978
50161
  null,
49979
50162
  null,
@@ -49990,8 +50173,8 @@ login_src_main.install = function (Vue) {
49990
50173
  };
49991
50174
 
49992
50175
  /* harmony default export */ var login = (login_src_main);
49993
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=8fa53c9e&
49994
- var mainvue_type_template_id_8fa53c9e_render = function () {
50176
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=3910f883&
50177
+ var mainvue_type_template_id_3910f883_render = function () {
49995
50178
  var _vm = this
49996
50179
  var _h = _vm.$createElement
49997
50180
  var _c = _vm._self._c || _h
@@ -50418,11 +50601,11 @@ var mainvue_type_template_id_8fa53c9e_render = function () {
50418
50601
  1
50419
50602
  )
50420
50603
  }
50421
- var mainvue_type_template_id_8fa53c9e_staticRenderFns = []
50422
- mainvue_type_template_id_8fa53c9e_render._withStripped = true
50604
+ var mainvue_type_template_id_3910f883_staticRenderFns = []
50605
+ mainvue_type_template_id_3910f883_render._withStripped = true
50423
50606
 
50424
50607
 
50425
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=8fa53c9e&
50608
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=3910f883&
50426
50609
 
50427
50610
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=75d533de&
50428
50611
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -52530,10 +52713,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
52530
52713
  //菜单展开关闭
52531
52714
  icons: Object,
52532
52715
  //logo
52533
- logo: {
52534
- type: String,
52535
- default: 'errorlogo'
52536
- },
52716
+ logo: String,
52537
52717
  //菜单显示类型
52538
52718
  scene: {
52539
52719
  type: String,
@@ -52896,7 +53076,9 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
52896
53076
  },
52897
53077
  created: function created() {
52898
53078
  var params = utils_util["a" /* default */].getParams() || {};
52899
- this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
53079
+ if (typeof this.loadHomePage === 'string') {
53080
+ this.homePage = this.loadHomePage;
53081
+ }
52900
53082
  this.isHeader = params.header;
52901
53083
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
52902
53084
  sysLogoIco && utils_util["a" /* default */].setFavicon(sysLogoIco);
@@ -53016,7 +53198,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53016
53198
  this.setTitle(ids[0]);
53017
53199
  }
53018
53200
  } else if (sessionStorage.getItem('jump') && this.isHistory) {
53019
- var _ids = this.getId(this.menus, sessionStorage.getItem('jump'), true);
53201
+ var _ids = this.getId(this.menus, sessionStorage.getItem('jump'));
53020
53202
  if (_ids) {
53021
53203
  this.defaultActive = _ids;
53022
53204
  this.navIds = _ids;
@@ -53028,14 +53210,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53028
53210
  hash = hash.split('?')[0];
53029
53211
  }
53030
53212
  if (hash !== '#/' && hash !== '#/main') {
53031
- var _ids2 = this.getId(this.menus, utils_util["a" /* default */].win.location.hash, true);
53213
+ var _ids2 = this.getId(this.menus, utils_util["a" /* default */].win.location.hash);
53032
53214
  if (_ids2) {
53033
53215
  this.defaultActive = _ids2;
53034
53216
  this.navIds = _ids2;
53035
53217
  this.setTitle(_ids2[0]);
53036
53218
  }
53037
53219
  } else if (sessionStorage.getItem('jump') && this.isHistory) {
53038
- var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
53220
+ var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'));
53039
53221
  if (_ids3) {
53040
53222
  this.defaultActive = _ids3;
53041
53223
  this.navIds = _ids3;
@@ -53118,7 +53300,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53118
53300
  hash = hash.split('?')[0];
53119
53301
  }
53120
53302
  var jump = sessionStorage.getItem('jump');
53121
- if (!applicationid && (!jump || !this.isHistory) && hash === '#/' && hash === '#/main') {
53303
+ if (!applicationid && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
53122
53304
  this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
53123
53305
  if (this.isHomePage && this.homePage) {
53124
53306
  if (this.menus && this.menus.length) {
@@ -53230,17 +53412,65 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53230
53412
  }
53231
53413
  });
53232
53414
  },
53233
- jumpMenu: function jumpMenu(res, flag, param) {
53234
- var option = { url: res, flag: flag, param: param };
53415
+
53416
+ /**
53417
+ * @desc 跳转菜单
53418
+ * @param {Object/String} [res] - 菜单id(多个用,隔开)或url地址或系统菜单数据对象
53419
+ * @param {Boolean} [isUrl] - res是否是url地址
53420
+ * @param {Object} [param] - 拼接地址后的参数
53421
+ */
53422
+ jumpMenu: function jumpMenu(res, isUrl, path) {
53423
+ var _this5 = this;
53424
+
53425
+ var option = { url: res, isUrl: isUrl, path: path };
53235
53426
  if (utils_util["a" /* default */].isObject(res)) {
53236
- option = main_src_mainvue_type_script_lang_js_extends({}, option, res);
53427
+ if (res.urlopenmode == 1) {
53428
+ utils_util["a" /* default */].win.open(res.url);
53429
+ return;
53430
+ } else if (res.urlopenmode == 2) {
53431
+ location.href = res.url;
53432
+ return;
53433
+ } else {
53434
+ option = main_src_mainvue_type_script_lang_js_extends({}, option, res);
53435
+ }
53237
53436
  }
53238
53437
  var ids = void 0;
53239
53438
  if (typeof option.url === 'string') {
53240
- if (option.flag) {
53241
- ids = this.getId(this.menus, option.url, true);
53439
+ if (option.isUrl || option.url.indexOf('.html') > -1 || option.url.indexOf('.dhtml') > -1 || option.url.indexOf('/#/') > -1 || option.url.indexOf('#/') > -1) {
53440
+ option.isUrlc = true;
53441
+ ids = this.getId(this.menus, option.url);
53242
53442
  if (!ids) {
53243
- this.$message.error('未在菜单栏中找到此地址');
53443
+ if (option.url.indexOf('.html') === -1 && option.url.indexOf('#/') === -1) {
53444
+ this.method = 'iframe';
53445
+ this.refresh = false;
53446
+ this.page = option.url;
53447
+ } else {
53448
+ this.method = 'router';
53449
+ var routes = this.$router.options.routes;
53450
+ if (routes) {
53451
+ var _path = this.hasRouter(routes, option.url);
53452
+ if (_path) {
53453
+ var params = utils_util["a" /* default */].getParams({ url: option.url });
53454
+ this.$router.push({
53455
+ path: _path,
53456
+ query: params
53457
+ });
53458
+ } else {
53459
+ if (this.loadWujie === false || this.downgrade && isIE) {
53460
+ this.method = 'iframe';
53461
+ this.refresh = false;
53462
+ this.page = option.url;
53463
+ } else {
53464
+ this.method = 'wujie';
53465
+ this.wjName = 'application' + Date.now();
53466
+ this.page = this.host + option.url;
53467
+ }
53468
+ }
53469
+ }
53470
+ }
53471
+ this.$nextTick(function () {
53472
+ _this5.refresh = true;
53473
+ });
53244
53474
  return;
53245
53475
  }
53246
53476
  } else {
@@ -53251,14 +53481,20 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53251
53481
  }
53252
53482
  this.setDefault(this.menus, ids, option.param);
53253
53483
  },
53254
- getId: function getId(arry, res, path) {
53255
- if (!res) {
53484
+
53485
+ /**
53486
+ * @desc 获取菜单层级id
53487
+ * @param {Array} [menus] - 系统菜单数据对象
53488
+ * @param {String} [url] - 菜单id或url地址
53489
+ */
53490
+ getId: function getId(menus, url) {
53491
+ if (!url) {
53256
53492
  return false;
53257
53493
  }
53258
- for (var i = 0; i < arry.length; i++) {
53259
- var item = arry[i];
53494
+ for (var i = 0; i < menus.length; i++) {
53495
+ var item = menus[i];
53260
53496
  if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
53261
- var id = this.getId(item.children, res, path);
53497
+ var id = this.getId(item.children, url);
53262
53498
  if (id) {
53263
53499
  if (typeof id === 'string') {
53264
53500
  this.isTabs = false;
@@ -53271,7 +53507,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53271
53507
  return id;
53272
53508
  }
53273
53509
  } else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
53274
- var _id = this.getId(item.fourthTabs, res, path);
53510
+ var _id = this.getId(item.fourthTabs, url);
53275
53511
  if (_id) {
53276
53512
  if (typeof _id === 'string') {
53277
53513
  this.isTabs = true;
@@ -53283,12 +53519,12 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53283
53519
  }
53284
53520
  return _id;
53285
53521
  }
53286
- } else if (item.id === res || item.url == res) {
53522
+ } else if (item.id === url || item.url == url) {
53287
53523
  return item.id;
53288
53524
  } else {
53289
- if (path && item.url) {
53290
- var url = new URL(item.url, window.location.origin);
53291
- if (url.hash == res) {
53525
+ if (item.url) {
53526
+ var _url2 = new URL(item.url, window.location.origin);
53527
+ if (_url2.hash == _url2) {
53292
53528
  return item.id;
53293
53529
  }
53294
53530
  }
@@ -53299,67 +53535,60 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53299
53535
 
53300
53536
  //获取应用导航菜单
53301
53537
  getMenu: function getMenu() {
53302
- var _this5 = this;
53538
+ var _this6 = this;
53303
53539
 
53304
53540
  var param = this.menuCode ? { menuCode: this.menuCode } : {};
53305
53541
  var params = main_src_mainvue_type_script_lang_js_extends({}, this.param, param);
53306
53542
  utils_util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
53307
53543
  if (res.rCode === 0) {
53308
53544
  if (res.results && res.results.length) {
53309
- _this5.menus = JSON.parse(JSON.stringify(res.results));
53310
- var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
53311
- if (applicationid) {
53312
- var ids = _this5.getId(_this5.menus, applicationid);
53313
- if (ids) {
53314
- _this5.defaultActive = ids;
53315
- }
53316
- } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
53317
- var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
53318
- if (_ids4) {
53319
- _this5.defaultActive = _ids4;
53320
- _this5.navIds = _ids4;
53321
- _this5.setTitle(_ids4[0]);
53322
- }
53323
- } else if (utils_util["a" /* default */].win.location.hash) {
53324
- var hash = utils_util["a" /* default */].win.location.hash;
53325
- if (hash) {
53326
- hash = hash.split('?')[0];
53327
- }
53328
- if (hash !== '#/' && hash !== '#/main') {
53329
- var _ids5 = _this5.getId(_this5.menus, utils_util["a" /* default */].win.location.hash, true);
53330
- if (_ids5) {
53331
- _this5.defaultActive = _ids5;
53332
- _this5.navIds = _ids5;
53333
- _this5.setTitle(_ids5[0]);
53334
- }
53335
- } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
53336
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
53337
- if (_ids6) {
53338
- _this5.defaultActive = _ids6;
53339
- _this5.navIds = _ids6;
53340
- _this5.setTitle(_ids6[0]);
53341
- }
53342
- }
53343
- }
53344
- _this5.setTips(_this5.menus);
53345
- utils_store.set('nav', _this5.menus);
53346
- _this5.setMenu(_this5.menus);
53545
+ _this6.menus = JSON.parse(JSON.stringify(res.results));
53546
+ _this6.setTips(_this6.menus);
53547
+ utils_store.set('nav', _this6.menus);
53548
+ _this6.setMenu(_this6.menus);
53347
53549
  } else {
53348
- _this5.$message.error('未分配菜单权限,请联系管理员!');
53550
+ _this6.$message.error('未分配菜单权限,请联系管理员!');
53349
53551
  }
53350
53552
  } else {
53351
53553
  var msg = res.msg || '系统错误,请联系管理员!';
53352
- _this5.$message.error(msg);
53554
+ _this6.$message.error(msg);
53353
53555
  }
53354
53556
  }).catch(function (err) {
53355
53557
  if (err.message && err.message !== 'canceled') {
53356
- _this5.$message.error(err.message);
53558
+ _this6.$message.error(err.message);
53357
53559
  }
53358
53560
  });
53359
53561
  },
53360
53562
 
53361
53563
  //设置默认左侧导航
53362
53564
  setMenu: function setMenu(res) {
53565
+ var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
53566
+ if (applicationid) {
53567
+ var ids = this.getId(this.menus, applicationid);
53568
+ if (ids) {
53569
+ this.defaultActive = ids;
53570
+ }
53571
+ } else if (utils_util["a" /* default */].win.location.hash) {
53572
+ var hash = utils_util["a" /* default */].win.location.hash;
53573
+ if (hash) {
53574
+ hash = hash.split('?')[0];
53575
+ }
53576
+ if (hash !== '#/' && hash !== '#/main') {
53577
+ var _ids4 = this.getId(this.menus, utils_util["a" /* default */].win.location.hash);
53578
+ if (_ids4) {
53579
+ this.defaultActive = _ids4;
53580
+ this.navIds = _ids4;
53581
+ this.setTitle(_ids4[0]);
53582
+ }
53583
+ }
53584
+ } else if (sessionStorage.getItem('jump') && this.isHistory) {
53585
+ var _ids5 = this.getId(this.menus, sessionStorage.getItem('jump'));
53586
+ if (_ids5) {
53587
+ this.defaultActive = _ids5;
53588
+ this.navIds = _ids5;
53589
+ this.setTitle(_ids5[0]);
53590
+ }
53591
+ }
53363
53592
  if (this.defaultActive && this.defaultActive.length) {
53364
53593
  this.isDefault = false;
53365
53594
  this.setDefault(res, this.defaultActive);
@@ -53367,9 +53596,9 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53367
53596
  if (this.homePage || !utils_util["a" /* default */].getStorage('mainConfig')) {
53368
53597
  this.isDefault = true;
53369
53598
  if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
53370
- var ids = this.getId(this.menus, this.homePage);
53371
- if (ids) {
53372
- this.defaultActive = ids;
53599
+ var _ids6 = this.getId(this.menus, this.homePage);
53600
+ if (_ids6) {
53601
+ this.defaultActive = _ids6;
53373
53602
  this.isDefault = false;
53374
53603
  this.setDefault(res, this.defaultActive);
53375
53604
  return false;
@@ -53431,7 +53660,20 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53431
53660
  if (id && this.menu[0].id !== id) {
53432
53661
  this.active.push(id);
53433
53662
  } else {
53434
- this.handleJump(this.menu[0].url, this.menu[0].urlopenmode, this.menu[0]);
53663
+ var _hash = utils_util["a" /* default */].win.location.hash;
53664
+ if (_hash) {
53665
+ _hash = _hash.split('?')[0];
53666
+ if (_hash !== '#/' && _hash !== '#/main') {
53667
+ this.handleJump(_hash);
53668
+ return;
53669
+ }
53670
+ }
53671
+ var jump = sessionStorage.getItem('jump');
53672
+ if (jump) {
53673
+ this.handleJump(jump);
53674
+ } else {
53675
+ this.handleJump(this.menu[0].url, this.menu[0].urlopenmode, this.menu[0]);
53676
+ }
53435
53677
  }
53436
53678
  }
53437
53679
  }
@@ -53475,11 +53717,11 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53475
53717
 
53476
53718
  //遍历设置菜单气泡提醒
53477
53719
  setTips: function setTips(obj) {
53478
- var _this6 = this;
53720
+ var _this7 = this;
53479
53721
 
53480
53722
  if (Array.isArray(obj)) {
53481
53723
  obj.forEach(function (item) {
53482
- _this6.setTips(item);
53724
+ _this7.setTips(item);
53483
53725
  });
53484
53726
  } else {
53485
53727
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -53489,7 +53731,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53489
53731
  var flag = false;
53490
53732
  if (obj.children && obj.children.length) {
53491
53733
  obj.children.forEach(function (item) {
53492
- if (_this6.setTips(item)) {
53734
+ if (_this7.setTips(item)) {
53493
53735
  flag = true;
53494
53736
  }
53495
53737
  });
@@ -53499,7 +53741,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53499
53741
  }
53500
53742
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
53501
53743
  obj.fourthTabs.forEach(function (item) {
53502
- if (_this6.setTips(item)) {
53744
+ if (_this7.setTips(item)) {
53503
53745
  flag = true;
53504
53746
  }
53505
53747
  });
@@ -53557,7 +53799,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53557
53799
  break;
53558
53800
  }
53559
53801
  }
53560
- } else {
53802
+ } else if (active && active.length) {
53561
53803
  this.navs = [];
53562
53804
  this.subsystem = [];
53563
53805
  this.menu = res;
@@ -53591,11 +53833,11 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53591
53833
  }
53592
53834
  if (item.fourthTabs && item.fourthTabs.length) {
53593
53835
  index++;
53594
- var _url2 = this.getUrl(item.fourthTabs, active, index, param);
53595
- if (_url2) {
53836
+ var _url3 = this.getUrl(item.fourthTabs, active, index, param);
53837
+ if (_url3) {
53596
53838
  this.$set(this, 'tabs', item.fourthTabs);
53597
53839
  }
53598
- return _url2;
53840
+ return _url3;
53599
53841
  }
53600
53842
  }
53601
53843
  } else if (item.children && item.children.length) {
@@ -53646,11 +53888,11 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53646
53888
  var subNode = this.getFirst(node);
53647
53889
  if (subNode) {
53648
53890
  this.active = subNode.id;
53649
- this.navIds = [node.id].concat(this.getId(node.children, subNode.url, true));
53891
+ this.navIds = [node.id].concat(this.getId(node.children, subNode.url));
53650
53892
  }
53651
53893
  }
53652
53894
  } else {
53653
- this.navIds = this.getId(this.menus, node.url, true);
53895
+ this.navIds = this.getId(this.menus, node.url);
53654
53896
  this.setTitle(this.navIds[0]);
53655
53897
  this.tabsId = fourthTabs ? node.id : '';
53656
53898
  }
@@ -53668,7 +53910,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53668
53910
  var _subNode = this.getFirst(node);
53669
53911
  if (_subNode) {
53670
53912
  this.active = _subNode.id;
53671
- this.navIds = [node.id].concat(this.getId(node.children, _subNode.url, true));
53913
+ this.navIds = [node.id].concat(this.getId(node.children, _subNode.url));
53672
53914
  }
53673
53915
  }
53674
53916
  this.isSide = true;
@@ -53687,7 +53929,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53687
53929
  var _subNode2 = this.getFirst(node);
53688
53930
  this.active = [node.id];
53689
53931
  if (_subNode2 && node.id !== _subNode2.id) {
53690
- this.navIds = this.getId(this.menus, _subNode2.url, true);
53932
+ this.navIds = this.getId(this.menus, _subNode2.url);
53691
53933
  this.$set(this.active, 1, _subNode2.id);
53692
53934
  }
53693
53935
  }
@@ -53711,7 +53953,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53711
53953
  } else {
53712
53954
  this.active = tab.id;
53713
53955
  }
53714
- this.navIds = this.getId(this.menus, tab.url, true);
53956
+ this.navIds = this.getId(this.menus, tab.url);
53715
53957
  }
53716
53958
  } else {
53717
53959
  var _tab = (node.fourthTabs || []).filter(function (item) {
@@ -53720,9 +53962,9 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53720
53962
  if (_tab) {
53721
53963
  this.tabs = node.fourthTabs;
53722
53964
  this.tabsId = _tab.id;
53723
- this.navIds = this.getId(this.menus, _tab.url, true);
53965
+ this.navIds = this.getId(this.menus, _tab.url);
53724
53966
  } else {
53725
- this.navIds = this.getId(this.menus, node.url, true);
53967
+ this.navIds = this.getId(this.menus, node.url);
53726
53968
  }
53727
53969
  }
53728
53970
  } else {
@@ -53730,7 +53972,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53730
53972
  this.tabs = node.fourthTabs;
53731
53973
  this.tabsId = this.tabs[0].id;
53732
53974
  this.handleJump(this.tabs[0].url, this.tabs[0].urlopenmode, this.tabs[0]);
53733
- this.navIds = this.getId(this.menus, this.tabs[0].url, true);
53975
+ this.navIds = this.getId(this.menus, this.tabs[0].url);
53734
53976
  }
53735
53977
  }
53736
53978
  } else {
@@ -53743,14 +53985,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53743
53985
  } else {
53744
53986
  this.active = _subNode3.id;
53745
53987
  }
53746
- this.navIds = this.getId(this.menus, _subNode3.url, true);
53988
+ this.navIds = this.getId(this.menus, _subNode3.url);
53747
53989
  }
53748
53990
  }
53749
53991
  }
53750
53992
  break;
53751
53993
  case 'tabs':
53752
53994
  this.tabsId = node.id;
53753
- this.navIds = this.getId(this.menus, node.url, true);
53995
+ this.navIds = this.getId(this.menus, node.url);
53754
53996
  break;
53755
53997
  }
53756
53998
  if (node.url) {
@@ -53771,19 +54013,19 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53771
54013
  }
53772
54014
  }
53773
54015
  } else {
53774
- var _path = res.path;
53775
- if (_path !== '/' && _path !== '/404') {
53776
- _path = _path.replace(_path[1], _path[1].toLowerCase());
54016
+ var _path2 = res.path;
54017
+ if (_path2 !== '/' && _path2 !== '/404') {
54018
+ _path2 = _path2.replace(_path2[1], _path2[1].toLowerCase());
53777
54019
  }
53778
54020
  var pathname = url.substring(url.indexOf('#/') + 1);
53779
54021
  pathname = pathname.replace(pathname[1], pathname[1].toLowerCase()).split('?')[0];
53780
- if (res.path !== '/' && pathname == _path) {
54022
+ if (res.path !== '/' && pathname == _path2) {
53781
54023
  return pathname;
53782
54024
  }
53783
54025
  if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
53784
- var _path2 = this.hasRouter(res.children, url);
53785
- if (_path2) {
53786
- return _path2;
54026
+ var _path3 = this.hasRouter(res.children, url);
54027
+ if (_path3) {
54028
+ return _path3;
53787
54029
  }
53788
54030
  }
53789
54031
  }
@@ -53793,7 +54035,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53793
54035
 
53794
54036
  //头部工具交互事件
53795
54037
  handleClick: function handleClick(res) {
53796
- var _this7 = this;
54038
+ var _this8 = this;
53797
54039
 
53798
54040
  var type = res.type;
53799
54041
 
@@ -53814,7 +54056,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53814
54056
  this.setMenu(this.menus);
53815
54057
  }
53816
54058
  this.$nextTick(function () {
53817
- _this7.reset = true;
54059
+ _this8.reset = true;
53818
54060
  });
53819
54061
  break;
53820
54062
  case 'user':
@@ -53842,21 +54084,21 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53842
54084
 
53843
54085
  //刷新子页面、子路由
53844
54086
  handleRefresh: function handleRefresh() {
53845
- var _this8 = this;
54087
+ var _this9 = this;
53846
54088
 
53847
54089
  if (this.method === 'iframe') {
53848
54090
  this.page = utils_util["a" /* default */].handlerUrl(this.page);
53849
54091
  } else {
53850
54092
  this.refresh = false;
53851
54093
  this.$nextTick(function () {
53852
- _this8.refresh = true;
54094
+ _this9.refresh = true;
53853
54095
  });
53854
54096
  }
53855
54097
  },
53856
54098
 
53857
54099
  //跳转页面
53858
54100
  handleJump: function handleJump(page, type, res, param) {
53859
- var _this9 = this;
54101
+ var _this10 = this;
53860
54102
 
53861
54103
  console.log(page);
53862
54104
  var prevPage = sessionStorage.getItem('jump');
@@ -53876,7 +54118,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53876
54118
  utils_util["a" /* default */].win.open(page);
53877
54119
  } else if (type == 2) {
53878
54120
  location.href = page;
53879
- } else if (type == 3) {
54121
+ } else if (type == 3 || this.loadWujie === false || this.downgrade && isIE) {
53880
54122
  this.method = 'iframe';
53881
54123
  this.refresh = false;
53882
54124
  this.page = utils_util["a" /* default */].handlerUrl(page, param);
@@ -53887,7 +54129,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53887
54129
  this.wjName = 'singlespa';
53888
54130
  this.page = this.host + page;
53889
54131
  this.$nextTick(function () {
53890
- _this9.refresh = true;
54132
+ _this10.refresh = true;
53891
54133
  });
53892
54134
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
53893
54135
  this.method = 'iframe';
@@ -53919,7 +54161,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53919
54161
  query: params
53920
54162
  });
53921
54163
  this.$nextTick(function () {
53922
- _this9.refresh = true;
54164
+ _this10.refresh = true;
53923
54165
  });
53924
54166
  } else {
53925
54167
  var urlopenmode = utils_util["a" /* default */].getParams({
@@ -53935,7 +54177,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53935
54177
  this.wjName = res && res.appCode ? res.appCode : 'application';
53936
54178
  this.page = this.host + page;
53937
54179
  this.$nextTick(function () {
53938
- _this9.refresh = true;
54180
+ _this10.refresh = true;
53939
54181
  });
53940
54182
  }
53941
54183
  }
@@ -53947,7 +54189,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53947
54189
  }
53948
54190
  }
53949
54191
  this.$nextTick(function () {
53950
- _this9.showPage = true;
54192
+ _this10.showPage = true;
53951
54193
  });
53952
54194
  },
53953
54195
 
@@ -54059,7 +54301,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54059
54301
 
54060
54302
  //监听改变菜单
54061
54303
  handleListener: function handleListener() {
54062
- var _this10 = this;
54304
+ var _this11 = this;
54063
54305
 
54064
54306
  utils_util["a" /* default */].win.addEventListener('message', function (e) {
54065
54307
  var msg = e.data;
@@ -54068,14 +54310,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54068
54310
  if (typeof res === 'string') {
54069
54311
  res = res.split(',');
54070
54312
  }
54071
- _this10.setDefault(_this10.menus, res);
54313
+ _this11.setDefault(_this11.menus, res);
54072
54314
  }
54073
54315
  }, false);
54074
54316
  },
54075
54317
 
54076
54318
  //开启weosocket
54077
54319
  initWebSocket: function initWebSocket() {
54078
- var _this11 = this;
54320
+ var _this12 = this;
54079
54321
 
54080
54322
  this.webSocket = utils_util["a" /* default */].socket({
54081
54323
  url: api["cc" /* wss */],
@@ -54085,32 +54327,32 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54085
54327
  for (var i in data) {
54086
54328
  if (data[i] !== null && data[i] !== undefined) {
54087
54329
  if (i === 'onlineUserNums' && data[i] > 0) {
54088
- _this11.online = data[i];
54330
+ _this12.online = data[i];
54089
54331
  }
54090
54332
  if (i === 'sysMsgNums') {
54091
- _this11.notice = data[i];
54092
- if (_this11.showMsg) {
54093
- _this11.$refs.message.getMsg(true);
54333
+ _this12.notice = data[i];
54334
+ if (_this12.showMsg) {
54335
+ _this12.$refs.message.getMsg(true);
54094
54336
  }
54095
54337
  }
54096
54338
  if (i === 'menuTipsMap') {
54097
- _this11.menuTips = data[i];
54339
+ _this12.menuTips = data[i];
54098
54340
  }
54099
54341
  if (i === 'sysMsgList') {
54100
- _this11.sysMsg = data[i];
54342
+ _this12.sysMsg = data[i];
54101
54343
  }
54102
54344
  if (i === 'extraData') {
54103
- _this11.extraData = data[i];
54345
+ _this12.extraData = data[i];
54104
54346
  }
54105
54347
  }
54106
54348
  }
54107
- if (_this11.$store) {
54349
+ if (_this12.$store) {
54108
54350
  try {
54109
- _this11.$store.commit('websocket', data);
54351
+ _this12.$store.commit('websocket', data);
54110
54352
  } catch (error) {}
54111
54353
  }
54112
- if (_this11.$eventBus) {
54113
- _this11.$eventBus.$emit('websocket', data);
54354
+ if (_this12.$eventBus) {
54355
+ _this12.$eventBus.$emit('websocket', data);
54114
54356
  }
54115
54357
  if (utils_util["a" /* default */].win.eventBus) {
54116
54358
  utils_util["a" /* default */].win.eventBus.$emit('websocket', data);
@@ -54119,13 +54361,13 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54119
54361
  });
54120
54362
  },
54121
54363
  handleOpened: function handleOpened(res) {
54122
- var _this12 = this;
54364
+ var _this13 = this;
54123
54365
 
54124
54366
  if (res === undefined) {
54125
54367
  this.sysMsg = [];
54126
54368
  } else if (res == false && this.sysMsg.length) {
54127
54369
  this.sysMsgOut = setTimeout(function () {
54128
- _this12.sysMsg = [];
54370
+ _this13.sysMsg = [];
54129
54371
  }, 3000);
54130
54372
  } else if (this.sysMsgOut) {
54131
54373
  clearTimeout(this.sysMsgOut);
@@ -54147,7 +54389,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54147
54389
  }
54148
54390
  },
54149
54391
  handleReLogin: function handleReLogin(res) {
54150
- var _this13 = this;
54392
+ var _this14 = this;
54151
54393
 
54152
54394
  if (res && typeof res == 'string') {
54153
54395
  res = JSON.parse(res);
@@ -54178,7 +54420,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54178
54420
  this.timer = setTimeout(function () {
54179
54421
  console.log('handleReLogin');
54180
54422
  sessionStorage.setItem('remind', 1);
54181
- _this13.$confirm(msg, btn).then(function () {
54423
+ _this14.$confirm(msg, btn).then(function () {
54182
54424
  utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
54183
54425
  var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
54184
54426
  try {
@@ -54265,8 +54507,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54265
54507
 
54266
54508
  var main_src_main_component = normalizeComponent(
54267
54509
  packages_main_src_mainvue_type_script_lang_js_,
54268
- mainvue_type_template_id_8fa53c9e_render,
54269
- mainvue_type_template_id_8fa53c9e_staticRenderFns,
54510
+ mainvue_type_template_id_3910f883_render,
54511
+ mainvue_type_template_id_3910f883_staticRenderFns,
54270
54512
  false,
54271
54513
  null,
54272
54514
  null,
@@ -56459,8 +56701,8 @@ player_src_main.install = function (Vue) {
56459
56701
  };
56460
56702
 
56461
56703
  /* harmony default export */ var player = (player_src_main);
56462
- // 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=31151606&
56463
- var mainvue_type_template_id_31151606_render = function () {
56704
+ // 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&
56705
+ var mainvue_type_template_id_28375a46_render = function () {
56464
56706
  var _vm = this
56465
56707
  var _h = _vm.$createElement
56466
56708
  var _c = _vm._self._c || _h
@@ -56473,13 +56715,6 @@ var mainvue_type_template_id_31151606_render = function () {
56473
56715
  staticClass: "es-qrcode-img",
56474
56716
  attrs: { width: _vm._width, height: _vm._height, alt: "二维码图片" },
56475
56717
  }),
56476
- _vm.logo
56477
- ? _c("img", {
56478
- ref: "qrcodeLogo",
56479
- staticClass: "es-qrcode-logo",
56480
- attrs: { src: _vm.logo, alt: "二维码logo" },
56481
- })
56482
- : _vm._e(),
56483
56718
  _c("canvas", {
56484
56719
  ref: "canvas",
56485
56720
  staticClass: "canvas",
@@ -56488,11 +56723,11 @@ var mainvue_type_template_id_31151606_render = function () {
56488
56723
  ]
56489
56724
  )
56490
56725
  }
56491
- var mainvue_type_template_id_31151606_staticRenderFns = []
56492
- mainvue_type_template_id_31151606_render._withStripped = true
56726
+ var mainvue_type_template_id_28375a46_staticRenderFns = []
56727
+ mainvue_type_template_id_28375a46_render._withStripped = true
56493
56728
 
56494
56729
 
56495
- // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=31151606&
56730
+ // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=28375a46&
56496
56731
 
56497
56732
  // 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&
56498
56733
  //
@@ -56597,7 +56832,7 @@ var QRCode = __webpack_require__(24);
56597
56832
  var _this3 = this;
56598
56833
 
56599
56834
  var qrcodeImg = this.$refs.qrcodeImg;
56600
- var qrcodeLogo = this.$refs.qrcodeLogo;
56835
+ //let qrcodeLogo = this.$refs.qrcodeLogo;
56601
56836
  var canvas = this.$refs.canvas;
56602
56837
  var option = utils_util["a" /* default */].extend({}, this.option, {
56603
56838
  width: this._width,
@@ -56615,6 +56850,8 @@ var QRCode = __webpack_require__(24);
56615
56850
  //获取图片
56616
56851
  ctx.drawImage(qrcodeImg, 0, 0, _this3._width, _this3._height);
56617
56852
  if (_this3.logo && _this3.logo.indexOf('.') > -1) {
56853
+ var logo = new Image();
56854
+ logo.src = _this3.logo;
56618
56855
  //设置logo大小
56619
56856
  var logoPosition = (_this3._width - 46) / 2; //logo相对于canvas居中定位
56620
56857
  //设置获取的logo将其变为圆角以及添加白色背景
@@ -56632,7 +56869,10 @@ var QRCode = __webpack_require__(24);
56632
56869
  ctx.arcTo(x, y, x + w, y, r);
56633
56870
  ctx.closePath();
56634
56871
  ctx.fill(); */
56635
- ctx.drawImage(qrcodeLogo, logoPosition, logoPosition, 46, 46);
56872
+ logo.onload = function () {
56873
+ ctx.drawImage(logo, logoPosition, logoPosition, 46, 46);
56874
+ qrcodeImg.src = canvas.toDataURL();
56875
+ };
56636
56876
  } else if (_this3.text) {
56637
56877
  //设置字体
56638
56878
  var fpadd = 10; //规定内间距
@@ -56668,8 +56908,8 @@ var QRCode = __webpack_require__(24);
56668
56908
 
56669
56909
  var qr_code_src_main_component = normalizeComponent(
56670
56910
  packages_qr_code_src_mainvue_type_script_lang_js_,
56671
- mainvue_type_template_id_31151606_render,
56672
- mainvue_type_template_id_31151606_staticRenderFns,
56911
+ mainvue_type_template_id_28375a46_render,
56912
+ mainvue_type_template_id_28375a46_staticRenderFns,
56673
56913
  false,
56674
56914
  null,
56675
56915
  null,
@@ -72081,8 +72321,8 @@ form_src_table.install = function (Vue) {
72081
72321
  };
72082
72322
 
72083
72323
  /* harmony default export */ var table_form = (form_src_table);
72084
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=789e2154&
72085
- var mainvue_type_template_id_789e2154_render = function () {
72324
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=031cebad&
72325
+ var mainvue_type_template_id_031cebad_render = function () {
72086
72326
  var _vm = this
72087
72327
  var _h = _vm.$createElement
72088
72328
  var _c = _vm._self._c || _h
@@ -72462,11 +72702,11 @@ var mainvue_type_template_id_789e2154_render = function () {
72462
72702
  )
72463
72703
  : _vm._e()
72464
72704
  }
72465
- var mainvue_type_template_id_789e2154_staticRenderFns = []
72466
- mainvue_type_template_id_789e2154_render._withStripped = true
72705
+ var mainvue_type_template_id_031cebad_staticRenderFns = []
72706
+ mainvue_type_template_id_031cebad_render._withStripped = true
72467
72707
 
72468
72708
 
72469
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=789e2154&
72709
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=031cebad&
72470
72710
 
72471
72711
  // CONCATENATED MODULE: ./packages/upload/src/picture.js
72472
72712
  /* harmony default export */ var picture = ({
@@ -73204,7 +73444,9 @@ var mainvue_type_script_lang_js_props;
73204
73444
  }
73205
73445
  });
73206
73446
  _this3.filesTotalSize = filesTotalSize;
73207
- _this3.$emit('input', _this3.lists.length ? _this3.lists : '');
73447
+ if (_this3.lists.length) {
73448
+ _this3.$emit('input', _this3.lists);
73449
+ }
73208
73450
  }
73209
73451
  } else {
73210
73452
  var msg = res.msg || '系统错误,请联系管理员!';
@@ -73554,8 +73796,8 @@ var mainvue_type_script_lang_js_props;
73554
73796
 
73555
73797
  var upload_src_main_component = normalizeComponent(
73556
73798
  packages_upload_src_mainvue_type_script_lang_js_,
73557
- mainvue_type_template_id_789e2154_render,
73558
- mainvue_type_template_id_789e2154_staticRenderFns,
73799
+ mainvue_type_template_id_031cebad_render,
73800
+ mainvue_type_template_id_031cebad_staticRenderFns,
73559
73801
  false,
73560
73802
  null,
73561
73803
  null,
@@ -74032,7 +74274,7 @@ if (typeof window !== 'undefined' && window.Vue) {
74032
74274
  }
74033
74275
 
74034
74276
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
74035
- version: '0.5.63',
74277
+ version: '0.5.65',
74036
74278
  install: install,
74037
74279
  Button: packages_button,
74038
74280
  ButtonGroup: button_group,