eoss-ui 0.4.31 → 0.4.33

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 (60) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +33 -61
  3. package/lib/button.js +33 -61
  4. package/lib/checkbox-group.js +33 -61
  5. package/lib/data-table-form.js +33 -61
  6. package/lib/data-table.js +47 -67
  7. package/lib/date-picker.js +33 -61
  8. package/lib/dialog.js +33 -61
  9. package/lib/eoss-ui.common.js +197 -174
  10. package/lib/flow-group.js +43 -67
  11. package/lib/flow-list.js +33 -61
  12. package/lib/flow.js +33 -61
  13. package/lib/form.js +38 -65
  14. package/lib/handle-user.js +33 -61
  15. package/lib/handler.js +33 -61
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +33 -61
  18. package/lib/input.js +33 -61
  19. package/lib/login.js +47 -72
  20. package/lib/main.js +58 -75
  21. package/lib/mainComp.js +36 -68
  22. package/lib/nav.js +33 -61
  23. package/lib/page.js +33 -61
  24. package/lib/player.js +33 -61
  25. package/lib/qr-code.js +33 -61
  26. package/lib/radio-group.js +33 -61
  27. package/lib/select-ganged.js +33 -61
  28. package/lib/select.js +33 -61
  29. package/lib/selector-panel.js +33 -61
  30. package/lib/selector.js +33 -61
  31. package/lib/sizer.js +33 -61
  32. package/lib/steps.js +33 -61
  33. package/lib/switch.js +33 -61
  34. package/lib/table-form.js +33 -61
  35. package/lib/tabs.js +33 -61
  36. package/lib/theme-chalk/form.css +1 -1
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/tips.js +33 -61
  39. package/lib/tree-group.js +43 -63
  40. package/lib/tree.js +48 -63
  41. package/lib/upload.js +61 -82
  42. package/lib/utils/util.js +33 -61
  43. package/lib/wujie.js +33 -61
  44. package/lib/wxlogin.js +33 -61
  45. package/package.json +2 -2
  46. package/packages/data-table/src/main.vue +9 -2
  47. package/packages/flow-group/src/main.vue +5 -4
  48. package/packages/form/src/main.vue +4 -2
  49. package/packages/login/src/main.vue +12 -9
  50. package/packages/main/src/main.vue +13 -3
  51. package/packages/main/src/userinfo.vue +21 -24
  52. package/packages/mainComp/src/main.vue +1 -5
  53. package/packages/theme-chalk/lib/form.css +1 -1
  54. package/packages/theme-chalk/lib/index.css +1 -1
  55. package/packages/theme-chalk/src/form.scss +1 -1
  56. package/packages/tree/src/main.vue +12 -0
  57. package/packages/tree-group/src/main.vue +6 -0
  58. package/packages/upload/src/main.vue +25 -25
  59. package/src/index.js +1 -1
  60. package/src/utils/util.js +50 -77
@@ -125,6 +125,7 @@ var $brightnessStep2 = 0.15;
125
125
  var $lightColorCount = 5;
126
126
  var $darkColorCount = 4;
127
127
  var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
128
+ var loginMsg = void 0;
128
129
 
129
130
  var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
130
131
 
@@ -146,7 +147,6 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
146
147
  * @param {Object} [loading] - loading加载对象
147
148
  **/
148
149
  // 请求
149
- var _timer = null;
150
150
  var pendingRequest = new Map();
151
151
  function getRequestKey(config) {
152
152
  var method = config.method,
@@ -245,44 +245,36 @@ var ajax = function ajax(_ref) {
245
245
  if (response.status === 200) {
246
246
  if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
247
247
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig']);
248
-
249
- var timer = getStorage('timer') || 0;
250
- timer = parseInt(timer, 10);
251
- if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1 && !timer) {
252
- sessionStorage.setItem('timer', 1);
253
- eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
- confirmButtonText: '确定',
255
- closeOnClickModal: false,
256
- type: 'warning'
257
- } : {
258
- confirmButtonText: '确定',
259
- cancelButtonText: '取消',
260
- closeOnClickModal: false,
261
- type: 'warning'
262
- }).then(function () {
263
- var loginPage = getStorage('login') || getStorage('loginPage');
264
- if (loginPage) {
265
- win.top.location.href = loginPage;
266
- } else if (win.top.location.href.indexOf('main.html') > -1) {
267
- win.top.location.href = './login.html';
268
- } else {
269
- var hash = win.top.location.hash;
270
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
271
- var len = win.top.location.href.indexOf(hash);
272
- var href = win.top.location.href.slice(0, len) + '#/login';
273
- win.top.location.href = href;
248
+ if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
249
+ clearTimeout(loginMsg);
250
+ loginMsg = setTimeout(function () {
251
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
252
+ confirmButtonText: '确定',
253
+ closeOnClickModal: false,
254
+ type: 'warning'
255
+ } : {
256
+ confirmButtonText: '确定',
257
+ cancelButtonText: '取消',
258
+ closeOnClickModal: false,
259
+ type: 'warning'
260
+ }).then(function () {
261
+ var loginPage = getStorage('login') || getStorage('loginPage');
262
+ if (loginPage) {
263
+ win.top.location.href = loginPage;
264
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
265
+ win.top.location.href = './login.html';
274
266
  } else {
275
- win.top.location.href = '/login.html';
267
+ var hash = win.top.location.hash;
268
+ if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
269
+ var len = win.top.location.href.indexOf(hash);
270
+ var href = win.top.location.href.slice(0, len) + '#/login';
271
+ win.top.location.href = href;
272
+ } else {
273
+ win.top.location.href = '/login.html';
274
+ }
276
275
  }
277
- }
278
- }).catch(function (e) {
279
- _timer && clearTimeout(_timer);
280
- _timer = setTimeout(function () {
281
- removeStorage('timer');
282
- clearTimeout(_timer);
283
- _timer = null;
284
- }, 1000);
285
- });
276
+ }).catch(function (e) {});
277
+ }, 1000);
286
278
  }
287
279
  return Promise.reject(response.data);
288
280
  } else {
@@ -426,31 +418,11 @@ var browser = function browser() {
426
418
  * @param {Boolean} [immediate] - 是否首次触发执行
427
419
  **/
428
420
 
429
- var debounce = function debounce(fn, wait, immediate) {
430
- var timeout = void 0;
421
+ var debounce = function debounce(callback, delay) {
422
+ var timeout = null;
431
423
  return function () {
432
- var self = this;
433
- var args = arguments;
434
-
435
- if (timeout) clearTimeout(timeout);
436
- // 是否在某一批事件中首次执行
437
- if (immediate) {
438
- var callNow = !timeout;
439
- timeout = setTimeout(function () {
440
- timeout = null;
441
- fn.apply(self, args);
442
- immediate = true;
443
- }, wait);
444
- if (callNow) {
445
- fn.apply(self, args);
446
- }
447
- immediate = false;
448
- } else {
449
- timeout = setTimeout(function () {
450
- fn.apply(self, args);
451
- immediate = true;
452
- }, wait);
453
- }
424
+ clearTimeout(timeout);
425
+ timeout = setTimeout(callback, delay ? delay : 500);
454
426
  };
455
427
  };
456
428
  /**
@@ -4482,8 +4454,8 @@ clients_src_main.install = function (Vue) {
4482
4454
  };
4483
4455
 
4484
4456
  /* harmony default export */ var clients = (clients_src_main);
4485
- // 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=ac61a5d4&
4486
- var mainvue_type_template_id_ac61a5d4_render = function () {
4457
+ // 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=263306e3&
4458
+ var mainvue_type_template_id_263306e3_render = function () {
4487
4459
  var _vm = this
4488
4460
  var _h = _vm.$createElement
4489
4461
  var _c = _vm._self._c || _h
@@ -4580,6 +4552,7 @@ var mainvue_type_template_id_ac61a5d4_render = function () {
4580
4552
  "row-click": _vm.rowClick,
4581
4553
  "selection-change": _vm.selectionChange,
4582
4554
  "filter-column": _vm.handleFilterColumn,
4555
+ "sort-change": _vm.handleSortChange,
4583
4556
  })
4584
4557
  ),
4585
4558
  [
@@ -4816,11 +4789,11 @@ var mainvue_type_template_id_ac61a5d4_render = function () {
4816
4789
  1
4817
4790
  )
4818
4791
  }
4819
- var mainvue_type_template_id_ac61a5d4_staticRenderFns = []
4820
- mainvue_type_template_id_ac61a5d4_render._withStripped = true
4792
+ var mainvue_type_template_id_263306e3_staticRenderFns = []
4793
+ mainvue_type_template_id_263306e3_render._withStripped = true
4821
4794
 
4822
4795
 
4823
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=ac61a5d4&
4796
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=263306e3&
4824
4797
 
4825
4798
  // 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=796433ee&
4826
4799
  var childrenvue_type_template_id_796433ee_render = function () {
@@ -7248,6 +7221,7 @@ var mainvue_type_script_lang_js_components;
7248
7221
  //
7249
7222
  //
7250
7223
  //
7224
+ //
7251
7225
 
7252
7226
 
7253
7227
 
@@ -7704,7 +7678,7 @@ var mainvue_type_script_lang_js_components;
7704
7678
  event: 'deleteRow',
7705
7679
  row: data,
7706
7680
  index: index,
7707
- data: data
7681
+ data: this.datas
7708
7682
  });
7709
7683
  },
7710
7684
  checkSelect: function checkSelect(newVal) {
@@ -8219,6 +8193,12 @@ var mainvue_type_script_lang_js_components;
8219
8193
  handleFilterColumn: function handleFilterColumn() {
8220
8194
  this.$refs.sizer.show();
8221
8195
  },
8196
+ handleSortChange: function handleSortChange(res) {
8197
+ if (res.data && res.data.length) {
8198
+ this.list = res.data;
8199
+ }
8200
+ this.$emit('sort-change', res);
8201
+ },
8222
8202
  mergeThead: function mergeThead(res) {
8223
8203
  var _this10 = this;
8224
8204
 
@@ -8242,8 +8222,8 @@ var mainvue_type_script_lang_js_components;
8242
8222
 
8243
8223
  var data_table_src_main_component = normalizeComponent(
8244
8224
  packages_data_table_src_mainvue_type_script_lang_js_,
8245
- mainvue_type_template_id_ac61a5d4_render,
8246
- mainvue_type_template_id_ac61a5d4_staticRenderFns,
8225
+ mainvue_type_template_id_263306e3_render,
8226
+ mainvue_type_template_id_263306e3_staticRenderFns,
8247
8227
  false,
8248
8228
  null,
8249
8229
  null,
@@ -11655,8 +11635,8 @@ error_page_src_main.install = function (Vue) {
11655
11635
  };
11656
11636
 
11657
11637
  /* harmony default export */ var error_page = (error_page_src_main);
11658
- // 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=094c1062&
11659
- var mainvue_type_template_id_094c1062_render = function () {
11638
+ // 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=18ebec8a&
11639
+ var mainvue_type_template_id_18ebec8a_render = function () {
11660
11640
  var _vm = this
11661
11641
  var _h = _vm.$createElement
11662
11642
  var _c = _vm._self._c || _h
@@ -21022,11 +21002,11 @@ var mainvue_type_template_id_094c1062_render = function () {
21022
21002
  2
21023
21003
  )
21024
21004
  }
21025
- var mainvue_type_template_id_094c1062_staticRenderFns = []
21026
- mainvue_type_template_id_094c1062_render._withStripped = true
21005
+ var mainvue_type_template_id_18ebec8a_staticRenderFns = []
21006
+ mainvue_type_template_id_18ebec8a_render._withStripped = true
21027
21007
 
21028
21008
 
21029
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=094c1062&
21009
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=18ebec8a&
21030
21010
 
21031
21011
  // CONCATENATED MODULE: ./src/utils/rules.js
21032
21012
  // 手机号
@@ -24755,7 +24735,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
24755
24735
  type: Number,
24756
24736
  default: 3
24757
24737
  },
24758
- zoom: false
24738
+ zoom: false,
24739
+ showMsg: true
24759
24740
  },
24760
24741
  data: function data() {
24761
24742
  return {
@@ -25574,7 +25555,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
25574
25555
  }).then(function (res) {
25575
25556
  loading && loading.close();
25576
25557
  if (res.rCode === 0) {
25577
- _this10.$message.success(res.msg || res.message || '成功!');
25558
+ _this10.showMsg && _this10.$message.success(res.msg || res.message || '成功!');
25578
25559
  _this10.$emit('success', res, models);
25579
25560
  _this10.models = {};
25580
25561
  if (_this10.esTabs) {
@@ -25771,8 +25752,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
25771
25752
 
25772
25753
  var form_src_main_component = normalizeComponent(
25773
25754
  packages_form_src_mainvue_type_script_lang_js_,
25774
- mainvue_type_template_id_094c1062_render,
25775
- mainvue_type_template_id_094c1062_staticRenderFns,
25755
+ mainvue_type_template_id_18ebec8a_render,
25756
+ mainvue_type_template_id_18ebec8a_staticRenderFns,
25776
25757
  false,
25777
25758
  null,
25778
25759
  null,
@@ -36052,8 +36033,8 @@ flow_src_main.install = function (Vue) {
36052
36033
  };
36053
36034
 
36054
36035
  /* harmony default export */ var packages_flow = (flow_src_main);
36055
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=template&id=3516ea74&
36056
- var mainvue_type_template_id_3516ea74_render = function () {
36036
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=template&id=51640a6b&
36037
+ var mainvue_type_template_id_51640a6b_render = function () {
36057
36038
  var _vm = this
36058
36039
  var _h = _vm.$createElement
36059
36040
  var _c = _vm._self._c || _h
@@ -36422,6 +36403,8 @@ var mainvue_type_template_id_3516ea74_render = function () {
36422
36403
  ref: "esFlowForm",
36423
36404
  refInFor: true,
36424
36405
  attrs: {
36406
+ showMsg:
36407
+ _vm.showMsg,
36425
36408
  full: "",
36426
36409
  autoId: true,
36427
36410
  "show-button": false,
@@ -36767,6 +36750,7 @@ var mainvue_type_template_id_3516ea74_render = function () {
36767
36750
  refInFor: true,
36768
36751
  attrs: {
36769
36752
  "show-button": false,
36753
+ showMsg: _vm.showMsg,
36770
36754
  full: "",
36771
36755
  zoom: _vm.zoom,
36772
36756
  autoId: true,
@@ -37072,11 +37056,11 @@ var mainvue_type_template_id_3516ea74_render = function () {
37072
37056
  1
37073
37057
  )
37074
37058
  }
37075
- var mainvue_type_template_id_3516ea74_staticRenderFns = []
37076
- mainvue_type_template_id_3516ea74_render._withStripped = true
37059
+ var mainvue_type_template_id_51640a6b_staticRenderFns = []
37060
+ mainvue_type_template_id_51640a6b_render._withStripped = true
37077
37061
 
37078
37062
 
37079
- // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=3516ea74&
37063
+ // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=51640a6b&
37080
37064
 
37081
37065
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=script&lang=js&
37082
37066
  //
@@ -37456,6 +37440,8 @@ mainvue_type_template_id_3516ea74_render._withStripped = true
37456
37440
  //
37457
37441
  //
37458
37442
  //
37443
+ //
37444
+ //
37459
37445
 
37460
37446
 
37461
37447
  /* harmony default export */ var flow_group_src_mainvue_type_script_lang_js_ = ({
@@ -37503,7 +37489,8 @@ mainvue_type_template_id_3516ea74_render._withStripped = true
37503
37489
  return {
37504
37490
  activeName: this.active,
37505
37491
  businessId: undefined,
37506
- taskExamineAppId: this.appId
37492
+ taskExamineAppId: this.appId,
37493
+ showMsg: true
37507
37494
  };
37508
37495
  },
37509
37496
 
@@ -37584,6 +37571,7 @@ mainvue_type_template_id_3516ea74_render._withStripped = true
37584
37571
  if (Array.isArray(esFlowForm)) {
37585
37572
  esFlowForm = esFlowForm[0];
37586
37573
  }
37574
+ this.showMsg = res == 1 ? false : true;
37587
37575
  return esFlowForm.submitData(undefined, false, {}, res);
37588
37576
  },
37589
37577
  handleTaskRead: function handleTaskRead(res) {
@@ -37593,7 +37581,6 @@ mainvue_type_template_id_3516ea74_render._withStripped = true
37593
37581
  }
37594
37582
  },
37595
37583
  handleSuccess: function handleSuccess() {
37596
- console.log(132);
37597
37584
  if (this.closeDialog && this.esDialog) {
37598
37585
  this.esDialog.handleClose();
37599
37586
  }
@@ -37606,8 +37593,6 @@ mainvue_type_template_id_3516ea74_render._withStripped = true
37606
37593
  this.$emit('success');
37607
37594
  },
37608
37595
  handleSave: function handleSave(id, event) {
37609
- console.log(13222);
37610
-
37611
37596
  if (this.closeDialog && this.esDialog) {
37612
37597
  this.esDialog.handleClose();
37613
37598
  }
@@ -37634,8 +37619,8 @@ mainvue_type_template_id_3516ea74_render._withStripped = true
37634
37619
 
37635
37620
  var flow_group_src_main_component = normalizeComponent(
37636
37621
  packages_flow_group_src_mainvue_type_script_lang_js_,
37637
- mainvue_type_template_id_3516ea74_render,
37638
- mainvue_type_template_id_3516ea74_staticRenderFns,
37622
+ mainvue_type_template_id_51640a6b_render,
37623
+ mainvue_type_template_id_51640a6b_staticRenderFns,
37639
37624
  false,
37640
37625
  null,
37641
37626
  null,
@@ -40754,8 +40739,8 @@ label_src_main.install = function (Vue) {
40754
40739
  };
40755
40740
 
40756
40741
  /* harmony default export */ var packages_label = (label_src_main);
40757
- // 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=f634d8fc&
40758
- var mainvue_type_template_id_f634d8fc_render = function () {
40742
+ // 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=4aa8315b&
40743
+ var mainvue_type_template_id_4aa8315b_render = function () {
40759
40744
  var _vm = this
40760
40745
  var _h = _vm.$createElement
40761
40746
  var _c = _vm._self._c || _h
@@ -41551,11 +41536,11 @@ var mainvue_type_template_id_f634d8fc_render = function () {
41551
41536
  )
41552
41537
  : _vm._e()
41553
41538
  }
41554
- var mainvue_type_template_id_f634d8fc_staticRenderFns = []
41555
- mainvue_type_template_id_f634d8fc_render._withStripped = true
41539
+ var mainvue_type_template_id_4aa8315b_staticRenderFns = []
41540
+ mainvue_type_template_id_4aa8315b_render._withStripped = true
41556
41541
 
41557
41542
 
41558
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=f634d8fc&
41543
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=4aa8315b&
41559
41544
 
41560
41545
  // 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=669156c6&
41561
41546
  var resetPasswordvue_type_template_id_669156c6_render = function () {
@@ -42680,15 +42665,19 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
42680
42665
  var values = localStorage.getItem('unpd');
42681
42666
  var value = {};
42682
42667
  if (values) {
42683
- values = JSON.parse(values);
42684
- for (var i in values) {
42685
- value[utils_util["a" /* default */].esDecode(i)] = utils_util["a" /* default */].esDecode(values[i]);
42686
- }
42687
- if (value[user]) {
42688
- this.checked = true;
42668
+ try {
42669
+ values = JSON.parse(values);
42670
+ for (var i in values) {
42671
+ value[utils_util["a" /* default */].esDecode(i)] = utils_util["a" /* default */].esDecode(values[i]);
42672
+ }
42673
+ if (value[user]) {
42674
+ this.checked = true;
42675
+ }
42676
+ this.$set(this.formData, 'username', user);
42677
+ this.$set(this.formData, 'password', value[user]);
42678
+ } catch (error) {
42679
+ localStorage.removeItem('unpd');
42689
42680
  }
42690
- this.$set(this.formData, 'username', user);
42691
- this.$set(this.formData, 'password', value[user]);
42692
42681
  }
42693
42682
  },
42694
42683
  handleBlur: function handleBlur() {
@@ -43087,7 +43076,6 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
43087
43076
  _this10.$router.push({ name: 'main' });
43088
43077
  }
43089
43078
  }
43090
- utils_util["a" /* default */].removeStorage('timer');
43091
43079
  }
43092
43080
  });
43093
43081
  break;
@@ -43167,8 +43155,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
43167
43155
 
43168
43156
  var login_src_main_component = normalizeComponent(
43169
43157
  packages_login_src_mainvue_type_script_lang_js_,
43170
- mainvue_type_template_id_f634d8fc_render,
43171
- mainvue_type_template_id_f634d8fc_staticRenderFns,
43158
+ mainvue_type_template_id_4aa8315b_render,
43159
+ mainvue_type_template_id_4aa8315b_staticRenderFns,
43172
43160
  false,
43173
43161
  null,
43174
43162
  null,
@@ -43185,8 +43173,8 @@ login_src_main.install = function (Vue) {
43185
43173
  };
43186
43174
 
43187
43175
  /* harmony default export */ var login = (login_src_main);
43188
- // 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=60ce43f9&
43189
- var mainvue_type_template_id_60ce43f9_render = function () {
43176
+ // 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=66d4b490&
43177
+ var mainvue_type_template_id_66d4b490_render = function () {
43190
43178
  var _vm = this
43191
43179
  var _h = _vm.$createElement
43192
43180
  var _c = _vm._self._c || _h
@@ -43311,7 +43299,7 @@ var mainvue_type_template_id_60ce43f9_render = function () {
43311
43299
  : _vm._e(),
43312
43300
  _vm.reset
43313
43301
  ? _c("div", { staticClass: "es-main-box" }, [
43314
- _vm.modal !== "topnav"
43302
+ _vm.modal !== "topnav" && _vm.showSide
43315
43303
  ? _c(
43316
43304
  "div",
43317
43305
  { staticClass: "es-main-left" },
@@ -43600,14 +43588,14 @@ var mainvue_type_template_id_60ce43f9_render = function () {
43600
43588
  1
43601
43589
  )
43602
43590
  }
43603
- var mainvue_type_template_id_60ce43f9_staticRenderFns = []
43604
- mainvue_type_template_id_60ce43f9_render._withStripped = true
43591
+ var mainvue_type_template_id_66d4b490_staticRenderFns = []
43592
+ mainvue_type_template_id_66d4b490_render._withStripped = true
43605
43593
 
43606
43594
 
43607
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=60ce43f9&
43595
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=66d4b490&
43608
43596
 
43609
- // 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=d575fa30&
43610
- var userinfovue_type_template_id_d575fa30_render = function () {
43597
+ // 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=1965153d&
43598
+ var userinfovue_type_template_id_1965153d_render = function () {
43611
43599
  var _vm = this
43612
43600
  var _h = _vm.$createElement
43613
43601
  var _c = _vm._self._c || _h
@@ -43623,11 +43611,11 @@ var userinfovue_type_template_id_d575fa30_render = function () {
43623
43611
  2
43624
43612
  )
43625
43613
  }
43626
- var userinfovue_type_template_id_d575fa30_staticRenderFns = []
43627
- userinfovue_type_template_id_d575fa30_render._withStripped = true
43614
+ var userinfovue_type_template_id_1965153d_staticRenderFns = []
43615
+ userinfovue_type_template_id_1965153d_render._withStripped = true
43628
43616
 
43629
43617
 
43630
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=d575fa30&
43618
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=1965153d&
43631
43619
 
43632
43620
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=script&lang=js&
43633
43621
  //
@@ -43692,13 +43680,14 @@ userinfovue_type_template_id_d575fa30_render._withStripped = true
43692
43680
  ownId: utils_store.get('userModel').personId,
43693
43681
  onSuccess: this.handleUploadSuccess,
43694
43682
  col: 12,
43695
- inline: {
43683
+ class: 'es-flex-none',
43684
+ inline: this.qrcode ? {
43696
43685
  range: false,
43697
43686
  class: 'weixinQrcode',
43698
43687
  type: 'image',
43699
43688
  url: this.qrcode,
43700
43689
  event: this.getQrcode
43701
- }
43690
+ } : ''
43702
43691
  },
43703
43692
  // {
43704
43693
  // type: 'upload',
@@ -43732,7 +43721,7 @@ userinfovue_type_template_id_d575fa30_render._withStripped = true
43732
43721
  disabled: true,
43733
43722
  col: 6
43734
43723
  }, {
43735
- name: 'idcard',
43724
+ name: 'idCard',
43736
43725
  label: '身份证号',
43737
43726
  type: 'text',
43738
43727
  disabled: true,
@@ -44015,8 +44004,8 @@ userinfovue_type_template_id_d575fa30_render._withStripped = true
44015
44004
 
44016
44005
  var userinfo_component = normalizeComponent(
44017
44006
  src_userinfovue_type_script_lang_js_,
44018
- userinfovue_type_template_id_d575fa30_render,
44019
- userinfovue_type_template_id_d575fa30_staticRenderFns,
44007
+ userinfovue_type_template_id_1965153d_render,
44008
+ userinfovue_type_template_id_1965153d_staticRenderFns,
44020
44009
  false,
44021
44010
  null,
44022
44011
  null,
@@ -45376,6 +45365,7 @@ var main_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
45376
45365
  //
45377
45366
  //
45378
45367
  //
45368
+ //
45379
45369
 
45380
45370
 
45381
45371
 
@@ -45424,6 +45414,10 @@ var log = utils_util["a" /* default */].getParams('console');
45424
45414
  type: Boolean,
45425
45415
  default: true
45426
45416
  },
45417
+ sideNav: {
45418
+ type: Boolean,
45419
+ default: true
45420
+ },
45427
45421
  //操作栏配置
45428
45422
  handleData: Array,
45429
45423
  //本地导航
@@ -45515,6 +45509,9 @@ var log = utils_util["a" /* default */].getParams('console');
45515
45509
  showHeader: function showHeader() {
45516
45510
  return this.isHeader == 0 ? false : this.header;
45517
45511
  },
45512
+ showSide: function showSide() {
45513
+ return this.isSide !== null ? this.isSide : this.sideNav;
45514
+ },
45518
45515
  isHomePage: function isHomePage() {
45519
45516
  if (utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId')) {
45520
45517
  return false;
@@ -45709,7 +45706,8 @@ var log = utils_util["a" /* default */].getParams('console');
45709
45706
  routerKey: '',
45710
45707
  defaultwjprops: {},
45711
45708
  isTabs: false,
45712
- isHeader: ''
45709
+ isHeader: '',
45710
+ isSide: null
45713
45711
  };
45714
45712
  },
45715
45713
  created: function created() {
@@ -46380,6 +46378,7 @@ var log = utils_util["a" /* default */].getParams('console');
46380
46378
  this.menu = node.children;
46381
46379
  this.title = node.text;
46382
46380
  this.active = this.getFirst(node.children[0]);
46381
+ this.isSide = true;
46383
46382
  break;
46384
46383
  case 'sub':
46385
46384
  if (node.url) {
@@ -46792,8 +46791,8 @@ var log = utils_util["a" /* default */].getParams('console');
46792
46791
 
46793
46792
  var main_src_main_component = normalizeComponent(
46794
46793
  packages_main_src_mainvue_type_script_lang_js_,
46795
- mainvue_type_template_id_60ce43f9_render,
46796
- mainvue_type_template_id_60ce43f9_staticRenderFns,
46794
+ mainvue_type_template_id_66d4b490_render,
46795
+ mainvue_type_template_id_66d4b490_staticRenderFns,
46797
46796
  false,
46798
46797
  null,
46799
46798
  null,
@@ -46810,8 +46809,8 @@ main_src_main.install = function (Vue) {
46810
46809
  };
46811
46810
 
46812
46811
  /* harmony default export */ var packages_main = (main_src_main);
46813
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/mainComp/src/main.vue?vue&type=template&id=1b76299b&
46814
- var mainvue_type_template_id_1b76299b_render = function () {
46812
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/mainComp/src/main.vue?vue&type=template&id=2ca6e522&
46813
+ var mainvue_type_template_id_2ca6e522_render = function () {
46815
46814
  var _vm = this
46816
46815
  var _h = _vm.$createElement
46817
46816
  var _c = _vm._self._c || _h
@@ -47220,11 +47219,11 @@ var mainvue_type_template_id_1b76299b_render = function () {
47220
47219
  1
47221
47220
  )
47222
47221
  }
47223
- var mainvue_type_template_id_1b76299b_staticRenderFns = []
47224
- mainvue_type_template_id_1b76299b_render._withStripped = true
47222
+ var mainvue_type_template_id_2ca6e522_staticRenderFns = []
47223
+ mainvue_type_template_id_2ca6e522_render._withStripped = true
47225
47224
 
47226
47225
 
47227
- // CONCATENATED MODULE: ./packages/mainComp/src/main.vue?vue&type=template&id=1b76299b&
47226
+ // CONCATENATED MODULE: ./packages/mainComp/src/main.vue?vue&type=template&id=2ca6e522&
47228
47227
 
47229
47228
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/mainComp/src/userinfo.vue?vue&type=template&id=5902ef8f&
47230
47229
  var userinfovue_type_template_id_5902ef8f_render = function () {
@@ -50508,11 +50507,7 @@ var mainvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') != -1
50508
50507
  });
50509
50508
  }, function (error) {
50510
50509
  console.log('webSocket连接失败');
50511
- if (_this11.connect < 10 && !utils_util["a" /* default */].getStorage('timer')) {
50512
- _this11.handleConnect(client);
50513
- } else {
50514
- client.disconnect();
50515
- }
50510
+ client.disconnect();
50516
50511
  });
50517
50512
  },
50518
50513
  handleOpened: function handleOpened(res) {
@@ -50623,8 +50618,8 @@ var mainvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') != -1
50623
50618
 
50624
50619
  var mainComp_src_main_component = normalizeComponent(
50625
50620
  packages_mainComp_src_mainvue_type_script_lang_js_,
50626
- mainvue_type_template_id_1b76299b_render,
50627
- mainvue_type_template_id_1b76299b_staticRenderFns,
50621
+ mainvue_type_template_id_2ca6e522_render,
50622
+ mainvue_type_template_id_2ca6e522_staticRenderFns,
50628
50623
  false,
50629
50624
  null,
50630
50625
  null,
@@ -61106,8 +61101,8 @@ tips_src_main.install = function (Vue) {
61106
61101
  };
61107
61102
 
61108
61103
  /* harmony default export */ var tips = (tips_src_main);
61109
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=8b6f2062&
61110
- var mainvue_type_template_id_8b6f2062_render = function () {
61104
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=6e8d7069&
61105
+ var mainvue_type_template_id_6e8d7069_render = function () {
61111
61106
  var _vm = this
61112
61107
  var _h = _vm.$createElement
61113
61108
  var _c = _vm._self._c || _h
@@ -61254,6 +61249,7 @@ var mainvue_type_template_id_8b6f2062_render = function () {
61254
61249
  "expand-on-click-node": false,
61255
61250
  "highlight-current": true,
61256
61251
  "show-checkbox": _vm.showCheckbox,
61252
+ "current-node-key": _vm.currentNodeKey,
61257
61253
  },
61258
61254
  scopedSlots: _vm._u([
61259
61255
  {
@@ -61294,11 +61290,11 @@ var mainvue_type_template_id_8b6f2062_render = function () {
61294
61290
  )
61295
61291
  : _vm._e()
61296
61292
  }
61297
- var mainvue_type_template_id_8b6f2062_staticRenderFns = []
61298
- mainvue_type_template_id_8b6f2062_render._withStripped = true
61293
+ var mainvue_type_template_id_6e8d7069_staticRenderFns = []
61294
+ mainvue_type_template_id_6e8d7069_render._withStripped = true
61299
61295
 
61300
61296
 
61301
- // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=8b6f2062&
61297
+ // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=6e8d7069&
61302
61298
 
61303
61299
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=script&lang=js&
61304
61300
  //
@@ -61384,6 +61380,7 @@ mainvue_type_template_id_8b6f2062_render._withStripped = true
61384
61380
  //
61385
61381
  //
61386
61382
  //
61383
+ //
61387
61384
 
61388
61385
 
61389
61386
 
@@ -61444,6 +61441,8 @@ mainvue_type_template_id_8b6f2062_render._withStripped = true
61444
61441
  },
61445
61442
  // 选择项本地数据
61446
61443
  data: Array,
61444
+ currentFirst: Boolean,
61445
+ currentNodeKey: [String, Number],
61447
61446
  icon: {
61448
61447
  type: Boolean,
61449
61448
  default: true
@@ -61669,6 +61668,15 @@ mainvue_type_template_id_8b6f2062_render._withStripped = true
61669
61668
  _this.loading = false;
61670
61669
  if (res.rCode === 0) {
61671
61670
  _this.treeList = JSON.parse(JSON.stringify(res.results));
61671
+ if (_this.currentFirst) {
61672
+ var currentNode = _this.treeList[0].children[0].id;
61673
+ _this.$emit('current-first', _this.treeList[0]);
61674
+ if (!_this.currentNodeKey) {
61675
+ _this.$nextTick(function () {
61676
+ _this.$refs.oaTree.setCurrentKey(currentNode);
61677
+ });
61678
+ }
61679
+ }
61672
61680
  _this.expandedKeys = _this.treeList.filter(function (item) {
61673
61681
  if (item.open) {
61674
61682
  return item.id;
@@ -61951,8 +61959,8 @@ mainvue_type_template_id_8b6f2062_render._withStripped = true
61951
61959
 
61952
61960
  var tree_src_main_component = normalizeComponent(
61953
61961
  packages_tree_src_mainvue_type_script_lang_js_,
61954
- mainvue_type_template_id_8b6f2062_render,
61955
- mainvue_type_template_id_8b6f2062_staticRenderFns,
61962
+ mainvue_type_template_id_6e8d7069_render,
61963
+ mainvue_type_template_id_6e8d7069_staticRenderFns,
61956
61964
  false,
61957
61965
  null,
61958
61966
  null,
@@ -61969,8 +61977,8 @@ tree_src_main.install = function (Vue) {
61969
61977
  };
61970
61978
 
61971
61979
  /* harmony default export */ var packages_tree = (tree_src_main);
61972
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=3a8a2abe&
61973
- var mainvue_type_template_id_3a8a2abe_render = function () {
61980
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=67920e49&
61981
+ var mainvue_type_template_id_67920e49_render = function () {
61974
61982
  var _vm = this
61975
61983
  var _h = _vm.$createElement
61976
61984
  var _c = _vm._self._c || _h
@@ -62029,6 +62037,7 @@ var mainvue_type_template_id_3a8a2abe_render = function () {
62029
62037
  on: {
62030
62038
  "node-click": _vm.handleNodeClick,
62031
62039
  "check-change": _vm.handleCheckChange,
62040
+ "current-first": _vm.handleCurrentFirst,
62032
62041
  },
62033
62042
  },
62034
62043
  "es-tree",
@@ -62084,6 +62093,7 @@ var mainvue_type_template_id_3a8a2abe_render = function () {
62084
62093
  on: {
62085
62094
  "node-click": _vm.handleNodeClick,
62086
62095
  "check-change": _vm.handleCheckChange,
62096
+ "current-first": _vm.handleCurrentFirst,
62087
62097
  },
62088
62098
  },
62089
62099
  "es-tree",
@@ -62282,11 +62292,11 @@ var mainvue_type_template_id_3a8a2abe_render = function () {
62282
62292
  2
62283
62293
  )
62284
62294
  }
62285
- var mainvue_type_template_id_3a8a2abe_staticRenderFns = []
62286
- mainvue_type_template_id_3a8a2abe_render._withStripped = true
62295
+ var mainvue_type_template_id_67920e49_staticRenderFns = []
62296
+ mainvue_type_template_id_67920e49_render._withStripped = true
62287
62297
 
62288
62298
 
62289
- // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=3a8a2abe&
62299
+ // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=67920e49&
62290
62300
 
62291
62301
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=script&lang=js&
62292
62302
  //
@@ -62438,6 +62448,8 @@ mainvue_type_template_id_3a8a2abe_render._withStripped = true
62438
62448
  //
62439
62449
  //
62440
62450
  //
62451
+ //
62452
+ //
62441
62453
 
62442
62454
 
62443
62455
  /* harmony default export */ var tree_group_src_mainvue_type_script_lang_js_ = ({
@@ -62693,6 +62705,10 @@ mainvue_type_template_id_3a8a2abe_render._withStripped = true
62693
62705
  handleConfirm: function handleConfirm(res) {
62694
62706
  this.checkeds = res;
62695
62707
  this.$emit('enterprise-confirm', res);
62708
+ },
62709
+ handleCurrentFirst: function handleCurrentFirst(res) {
62710
+ this.checkeds = res.children[0];
62711
+ this.$emit('current-first', res);
62696
62712
  }
62697
62713
  }
62698
62714
  });
@@ -62708,8 +62724,8 @@ mainvue_type_template_id_3a8a2abe_render._withStripped = true
62708
62724
 
62709
62725
  var tree_group_src_main_component = normalizeComponent(
62710
62726
  packages_tree_group_src_mainvue_type_script_lang_js_,
62711
- mainvue_type_template_id_3a8a2abe_render,
62712
- mainvue_type_template_id_3a8a2abe_staticRenderFns,
62727
+ mainvue_type_template_id_67920e49_render,
62728
+ mainvue_type_template_id_67920e49_staticRenderFns,
62713
62729
  false,
62714
62730
  null,
62715
62731
  null,
@@ -66861,8 +66877,8 @@ form_src_table.install = function (Vue) {
66861
66877
  };
66862
66878
 
66863
66879
  /* harmony default export */ var table_form = (form_src_table);
66864
- // 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=0f78a687&
66865
- var mainvue_type_template_id_0f78a687_render = function () {
66880
+ // 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=4c9c8dba&
66881
+ var mainvue_type_template_id_4c9c8dba_render = function () {
66866
66882
  var _vm = this
66867
66883
  var _h = _vm.$createElement
66868
66884
  var _c = _vm._self._c || _h
@@ -67195,11 +67211,11 @@ var mainvue_type_template_id_0f78a687_render = function () {
67195
67211
  2
67196
67212
  )
67197
67213
  }
67198
- var mainvue_type_template_id_0f78a687_staticRenderFns = []
67199
- mainvue_type_template_id_0f78a687_render._withStripped = true
67214
+ var mainvue_type_template_id_4c9c8dba_staticRenderFns = []
67215
+ mainvue_type_template_id_4c9c8dba_render._withStripped = true
67200
67216
 
67201
67217
 
67202
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=0f78a687&
67218
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=4c9c8dba&
67203
67219
 
67204
67220
  // CONCATENATED MODULE: ./packages/upload/src/picture.js
67205
67221
  /* harmony default export */ var picture = ({
@@ -67723,35 +67739,42 @@ var mainvue_type_script_lang_js_props;
67723
67739
  if (typeof this.image === 'string') {
67724
67740
  return this.image;
67725
67741
  }
67726
- return this.host + api["bb" /* previewAdjunct */] + '?adjunctId=' + this.image.adjunctId;
67742
+ return this.host + this.previewAdjunct + '?adjunctId=' + this.image.adjunctId;
67727
67743
  }
67728
67744
  if (this.value) {
67729
67745
  if (typeof this.value === 'string') {
67730
- if (this.value.indexOf('data:image/') === -1) {
67746
+ if (this.value.indexOf('data:image/') === 0) {
67747
+ return this.value;
67748
+ } else if (this.value.indexOf(this.previewAdjunct) > -1) {
67731
67749
  var val = this.host + utils_util["a" /* default */].jointUrl({
67732
67750
  url: this.value,
67733
67751
  reg: '/main2'
67734
67752
  });
67735
67753
  return val;
67736
- }
67737
- if (this.value.indexOf(api["bb" /* previewAdjunct */]) === -1 || this.value.indexOf('/') === -1) {
67738
- return this.host + api["bb" /* previewAdjunct */] + '?adjunctId=' + this.value;
67754
+ } else if (this.value.indexOf('/') === -1) {
67755
+ return this.host + this.previewAdjunct + '?adjunctId=' + this.value;
67739
67756
  }
67740
67757
  return this.value;
67741
67758
  } else if (Array.isArray(this.value)) {
67742
67759
  var adjunctId = this.value[0].response ? this.value[0].response.adjunctId : this.value[0].adjunctId;
67743
- return this.host + api["bb" /* previewAdjunct */] + '?adjunctId=' + adjunctId;
67760
+ return this.host + this.previewAdjunct + '?adjunctId=' + adjunctId;
67744
67761
  } else {
67745
67762
  var _adjunctId = this.value.response ? this.value.response.adjunctId : this.value.adjunctId;
67746
- return this.host + api["bb" /* previewAdjunct */] + '?adjunctId=' + _adjunctId;
67763
+ return this.host + this.previewAdjunct + '?adjunctId=' + _adjunctId;
67747
67764
  }
67748
67765
  }
67749
- if (this.photo && typeof this.photo === 'string' && this.photo.indexOf('data:image/') === -1) {
67750
- var _val = this.host + utils_util["a" /* default */].jointUrl({
67751
- url: this.photo,
67752
- reg: '/main2'
67753
- });
67754
- return _val;
67766
+ if (this.photo && typeof this.photo === 'string') {
67767
+ if (this.photo.indexOf('data:image/') === 0) {
67768
+ return this.photo;
67769
+ } else if (this.photo.indexOf(this.previewAdjunct) > -1) {
67770
+ var _val = this.host + utils_util["a" /* default */].jointUrl({
67771
+ url: this.value,
67772
+ reg: '/main2'
67773
+ });
67774
+ return _val;
67775
+ } else if (this.photo.indexOf('/') === -1) {
67776
+ return this.host + this.previewAdjunct + '?adjunctId=' + this.photo;
67777
+ }
67755
67778
  }
67756
67779
  return this.photo;
67757
67780
  }
@@ -67904,7 +67927,7 @@ var mainvue_type_script_lang_js_props;
67904
67927
  } else if (suffix.includes('pdf')) {
67905
67928
  utils_util["a" /* default */].win.open(this.host + (url ? url : api["cb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
67906
67929
  } else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
67907
- this.imgUrl = this.host + (url ? url : api["bb" /* previewAdjunct */]) + '?adjunctId=' + file.adjunctId;
67930
+ this.imgUrl = this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
67908
67931
  this.title = file.originalName;
67909
67932
  this.showImg = true;
67910
67933
  this.$nextTick(function () {
@@ -67912,12 +67935,12 @@ var mainvue_type_script_lang_js_props;
67912
67935
  });
67913
67936
  } else if (suffix.includes('mp4')) {
67914
67937
  this.source = {
67915
- src: this.host + (url ? url : api["bb" /* previewAdjunct */]) + '?adjunctId=' + file.adjunctId
67938
+ src: this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId
67916
67939
  };
67917
67940
  this.title = file.originalName;
67918
67941
  this.showVideo = true;
67919
67942
  } else {
67920
- utils_util["a" /* default */].win.open(this.host + (url ? url : api["bb" /* previewAdjunct */]) + '?adjunctId=' + file.adjunctId);
67943
+ utils_util["a" /* default */].win.open(this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId);
67921
67944
  }
67922
67945
  } else {
67923
67946
  utils_util["a" /* default */].win.open(URL.createObjectURL(file.raw));
@@ -68181,8 +68204,8 @@ var mainvue_type_script_lang_js_props;
68181
68204
 
68182
68205
  var upload_src_main_component = normalizeComponent(
68183
68206
  packages_upload_src_mainvue_type_script_lang_js_,
68184
- mainvue_type_template_id_0f78a687_render,
68185
- mainvue_type_template_id_0f78a687_staticRenderFns,
68207
+ mainvue_type_template_id_4c9c8dba_render,
68208
+ mainvue_type_template_id_4c9c8dba_staticRenderFns,
68186
68209
  false,
68187
68210
  null,
68188
68211
  null,
@@ -68660,7 +68683,7 @@ if (typeof window !== 'undefined' && window.Vue) {
68660
68683
  }
68661
68684
 
68662
68685
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
68663
- version: '0.4.31',
68686
+ version: '0.4.33',
68664
68687
  install: install,
68665
68688
  Button: packages_button,
68666
68689
  ButtonGroup: button_group,