eoss-ui 0.5.42 → 0.5.44

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 (78) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/README.md +18 -0
  3. package/lib/button-group.js +120 -69
  4. package/lib/button.js +133 -72
  5. package/lib/checkbox-group.js +116 -67
  6. package/lib/data-table-form.js +126 -74
  7. package/lib/data-table.js +211 -106
  8. package/lib/date-picker.js +155 -71
  9. package/lib/dialog.js +132 -71
  10. package/lib/eoss-ui.common.js +744 -417
  11. package/lib/flow-group.js +144 -74
  12. package/lib/flow-list.js +120 -69
  13. package/lib/flow.js +169 -99
  14. package/lib/form.js +125 -69
  15. package/lib/handle-user.js +127 -70
  16. package/lib/handler.js +145 -92
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +116 -67
  19. package/lib/input.js +116 -67
  20. package/lib/login.js +149 -97
  21. package/lib/main.js +234 -152
  22. package/lib/nav.js +116 -67
  23. package/lib/page.js +116 -67
  24. package/lib/player.js +116 -67
  25. package/lib/qr-code.js +116 -67
  26. package/lib/radio-group.js +116 -67
  27. package/lib/retrial-auth.js +130 -71
  28. package/lib/select-ganged.js +116 -67
  29. package/lib/select.js +116 -67
  30. package/lib/selector-panel.js +131 -74
  31. package/lib/selector.js +116 -67
  32. package/lib/sizer.js +116 -67
  33. package/lib/steps.js +116 -67
  34. package/lib/switch.js +116 -67
  35. package/lib/table-form.js +123 -72
  36. package/lib/tabs.js +119 -69
  37. package/lib/theme-chalk/data-table.css +1 -1
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/tips.js +116 -67
  40. package/lib/tree-group.js +151 -71
  41. package/lib/tree.js +116 -67
  42. package/lib/upload.js +136 -78
  43. package/lib/utils/util.js +116 -67
  44. package/lib/wujie.js +116 -67
  45. package/lib/wxlogin.js +116 -67
  46. package/package.json +2 -2
  47. package/packages/button/src/main.vue +17 -5
  48. package/packages/button-group/src/main.vue +2 -0
  49. package/packages/data-table/src/column.vue +4 -0
  50. package/packages/data-table/src/main.vue +67 -28
  51. package/packages/data-table-form/src/tbody.vue +3 -0
  52. package/packages/date-picker/src/main.vue +48 -5
  53. package/packages/dialog/src/main.vue +14 -2
  54. package/packages/flow/src/component/CustomPreset.vue +14 -7
  55. package/packages/flow/src/component/FileList.vue +4 -2
  56. package/packages/flow/src/component/Preset.vue +11 -13
  57. package/packages/flow/src/form.vue +5 -4
  58. package/packages/flow/src/main.vue +7 -7
  59. package/packages/flow/src/table.vue +8 -1
  60. package/packages/flow-group/src/main.vue +26 -5
  61. package/packages/form/src/main.vue +12 -0
  62. package/packages/form/src/table.vue +2 -0
  63. package/packages/handle-user/src/main.vue +9 -1
  64. package/packages/handler/src/main.vue +31 -27
  65. package/packages/login/src/main.vue +35 -31
  66. package/packages/main/src/async-component/index.vue +4 -2
  67. package/packages/main/src/main.vue +62 -30
  68. package/packages/main/src/userinfo.vue +29 -25
  69. package/packages/retrial-auth/src/main.vue +12 -2
  70. package/packages/selector-panel/src/selection.vue +6 -0
  71. package/packages/tabs/src/main.vue +1 -0
  72. package/packages/theme-chalk/lib/data-table.css +1 -1
  73. package/packages/theme-chalk/lib/index.css +1 -1
  74. package/packages/theme-chalk/src/data-table.scss +6 -0
  75. package/packages/tree-group/src/main.vue +36 -2
  76. package/packages/upload/src/main.vue +15 -6
  77. package/src/index.js +1 -1
  78. package/src/utils/util.js +132 -80
package/lib/flow.js CHANGED
@@ -257,7 +257,13 @@ var ajax = function ajax(_ref) {
257
257
  if (response.status === 200) {
258
258
  if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
259
259
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
260
- if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
260
+ var href = '';
261
+ try {
262
+ href = win.top.location.href;
263
+ } catch (error) {
264
+ href = win.location.href;
265
+ }
266
+ if (href.indexOf('#/login') === -1 && href.indexOf('/login.html') === -1) {
261
267
  var remind = sessionStorage.getItem('remind');
262
268
  if (!remind) {
263
269
  clearTimeout(loginMsg);
@@ -273,33 +279,37 @@ var ajax = function ajax(_ref) {
273
279
  closeOnClickModal: false,
274
280
  type: 'warning'
275
281
  }).then(function () {
276
- var loginPage = getStorage('login') || getStorage('loginPage');
277
- if (loginPage) {
278
- var src = void 0;
279
- if (!startWith(loginPage, ['http', '/'], true)) {
280
- var pathname = win.top.location.pathname;
281
- if (pathname !== '/') {
282
- pathname = pathname.split('/');
283
- pathname.splice(pathname.length - 1);
284
- pathname = pathname.join('/');
285
- src = pathname + '/' + loginPage.replace('./', '');
282
+ try {
283
+ var loginPage = getStorage('login') || getStorage('loginPage');
284
+ if (loginPage) {
285
+ var src = void 0;
286
+ if (!startWith(loginPage, ['http', '/'], true)) {
287
+ var pathname = win.top.location.pathname;
288
+ if (pathname !== '/') {
289
+ pathname = pathname.split('/');
290
+ pathname.splice(pathname.length - 1);
291
+ pathname = pathname.join('/');
292
+ src = pathname + '/' + loginPage.replace('./', '');
293
+ } else {
294
+ src = pathname + loginPage.replace('./', '');
295
+ }
286
296
  } else {
287
- src = pathname + loginPage.replace('./', '');
297
+ src = loginPage;
288
298
  }
299
+ win.top.location.href = src;
300
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
301
+ win.top.location.href = './login.html';
289
302
  } else {
290
- src = loginPage;
291
- }
292
- win.top.location.href = src;
293
- } else if (win.top.location.href.indexOf('main.html') > -1) {
294
- win.top.location.href = './login.html';
295
- } else {
296
- var hash = win.top.location.hash;
297
- if (hash) {
298
- var len = win.top.location.href.indexOf(hash);
299
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
300
- } else {
301
- win.top.location.href = '/login.html';
303
+ var hash = win.top.location.hash;
304
+ if (hash) {
305
+ var len = win.top.location.href.indexOf(hash);
306
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
307
+ } else {
308
+ win.top.location.href = '/login.html';
309
+ }
302
310
  }
311
+ } catch (error) {
312
+ win.postMessage({ type: 1 }, '*');
303
313
  }
304
314
  }).catch(function (e) {
305
315
  sessionStorage.removeItem('remind');
@@ -737,7 +747,13 @@ var delUrlParam = function delUrlParam(_ref2) {
737
747
  var url = _ref2.url,
738
748
  key = _ref2.key;
739
749
 
740
- var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
750
+ var pUrl = '';
751
+ try {
752
+ pUrl = win.top.location.href;
753
+ } catch (error) {
754
+ pUrl = win.location.href;
755
+ }
756
+ var src = url ? decodeURI(url) : decodeURI(pUrl);
741
757
  var param = getParams({ url: src });
742
758
  if (param && key.length) {
743
759
  if (Array.isArray(key)) {
@@ -1987,7 +2003,12 @@ var isLogined = function isLogined(_ref8) {
1987
2003
  }).catch(function () {});
1988
2004
  return;
1989
2005
  }
1990
- var pathname = win.top.location.pathname;
2006
+ var pathname = '';
2007
+ try {
2008
+ pathname = win.top.location.pathname;
2009
+ } catch (error) {
2010
+ pathname = win.location.pathname;
2011
+ }
1991
2012
  if (loginPage) {
1992
2013
  sessionStorage.setItem('loginPage', loginPage);
1993
2014
  if (!startWith(loginPage, ['http', '/'], true)) {
@@ -2028,22 +2049,38 @@ var isLogined = function isLogined(_ref8) {
2028
2049
  deviceUnique: results.deviceUnique
2029
2050
  }
2030
2051
  });
2031
- var url = delUrlParam({
2032
- url: win.top.location.href,
2033
- key: ['serverId', 'authType', 'code', 'sessionId']
2034
- });
2035
- win.top.location.href = url;
2036
- setTimeout(function () {
2037
- win.top.location.reload();
2038
- }, 200);
2052
+ try {
2053
+ var url = delUrlParam({
2054
+ url: win.top.location.href,
2055
+ key: ['serverId', 'authType', 'code', 'sessionId']
2056
+ });
2057
+ win.top.location.href = url;
2058
+ setTimeout(function () {
2059
+ win.top.location.reload();
2060
+ }, 200);
2061
+ } catch (error) {
2062
+ var _url2 = delUrlParam({
2063
+ url: win.location.href,
2064
+ key: ['serverId', 'authType', 'code', 'sessionId']
2065
+ });
2066
+ win.location.href = _url2;
2067
+ setTimeout(function () {
2068
+ win.location.reload();
2069
+ }, 200);
2070
+ }
2039
2071
  break;
2040
2072
  case 1:
2041
2073
  break;
2042
2074
  case 2:
2043
2075
  break;
2044
2076
  case 3:
2045
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2046
- win.top.location.href = href;
2077
+ try {
2078
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2079
+ win.top.location.href = href;
2080
+ } catch (error) {
2081
+ var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2082
+ win.location.href = _href;
2083
+ }
2047
2084
  break;
2048
2085
  case 4:
2049
2086
  eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
@@ -2051,14 +2088,18 @@ var isLogined = function isLogined(_ref8) {
2051
2088
  type: 'error',
2052
2089
  callback: function callback() {
2053
2090
  sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2054
- if (loginPage) {
2055
- win.top.location.replace(loginPage);
2056
- } else if (document.referrer) {
2057
- win.top.location.replace(document.referrer);
2058
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2059
- win.top.location.href = './login.html';
2060
- } else {
2061
- next('/login');
2091
+ try {
2092
+ if (loginPage) {
2093
+ win.top.location.replace(loginPage);
2094
+ } else if (document.referrer) {
2095
+ win.top.location.replace(document.referrer);
2096
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2097
+ win.top.location.href = './login.html';
2098
+ } else {
2099
+ next('/login');
2100
+ }
2101
+ } catch (error) {
2102
+ win.postMessage({ type: 1 }, '*');
2062
2103
  }
2063
2104
  }
2064
2105
  });
@@ -2070,14 +2111,18 @@ var isLogined = function isLogined(_ref8) {
2070
2111
  confirmButtonText: '确定',
2071
2112
  type: 'error',
2072
2113
  callback: function callback() {
2073
- if (loginPage) {
2074
- win.top.location.replace(loginPage);
2075
- } else if (document.referrer) {
2076
- win.top.location.replace(document.referrer);
2077
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2078
- win.top.location.href = './login.html';
2079
- } else {
2080
- next('/login');
2114
+ try {
2115
+ if (loginPage) {
2116
+ win.top.location.replace(loginPage);
2117
+ } else if (document.referrer) {
2118
+ win.top.location.replace(document.referrer);
2119
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2120
+ win.top.location.href = './login.html';
2121
+ } else {
2122
+ next('/login');
2123
+ }
2124
+ } catch (error) {
2125
+ win.postMessage({ type: 1 }, '*');
2081
2126
  }
2082
2127
  }
2083
2128
  });
@@ -2090,14 +2135,18 @@ var isLogined = function isLogined(_ref8) {
2090
2135
  next();
2091
2136
  }
2092
2137
  } else {
2093
- if (loginPage) {
2094
- win.top.location.replace(loginPage);
2095
- } else if (document.referrer) {
2096
- win.top.location.replace(document.referrer);
2097
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2098
- win.top.location.href = './login.html';
2099
- } else {
2100
- next('/login');
2138
+ try {
2139
+ if (loginPage) {
2140
+ win.top.location.replace(loginPage);
2141
+ } else if (document.referrer) {
2142
+ win.top.location.replace(document.referrer);
2143
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2144
+ win.top.location.href = './login.html';
2145
+ } else {
2146
+ next('/login');
2147
+ }
2148
+ } catch (error) {
2149
+ win.postMessage({ type: 1 }, '*');
2101
2150
  }
2102
2151
  }
2103
2152
  }
@@ -2527,30 +2576,30 @@ var setStorage = function setStorage(_ref14) {
2527
2576
  if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
2528
2577
  value = JSON.stringify(value);
2529
2578
  }
2530
- if (type === undefined || type === 'sessionStorage') {
2579
+ if (type === 'localStorage') {
2531
2580
  if (typeof key === 'string') {
2532
- sessionStorage.setItem(key, value);
2581
+ localStorage.setItem(key, value);
2533
2582
  } else if (Array.isArray(key)) {
2534
2583
  for (var i in key) {
2535
- sessionStorage.setItem(key[i], value);
2584
+ localStorage.setItem(key[i], value);
2536
2585
  }
2537
2586
  } else {
2538
2587
  for (var _i6 in key) {
2539
2588
  var val = _typeof(key[_i6]) === 'object' ? JSON.stringify(key[_i6]) : key[_i6];
2540
- sessionStorage.setItem(_i6, val);
2589
+ localStorage.setItem(_i6, val);
2541
2590
  }
2542
2591
  }
2543
2592
  } else {
2544
2593
  if (typeof key === 'string') {
2545
- localStorage.setItem(key, value);
2594
+ sessionStorage.setItem(key, value);
2546
2595
  } else if (Array.isArray(key)) {
2547
2596
  for (var _i7 in key) {
2548
- localStorage.setItem(key[_i7], value);
2597
+ sessionStorage.setItem(key[_i7], value);
2549
2598
  }
2550
2599
  } else {
2551
2600
  for (var _i8 in key) {
2552
2601
  var _val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2553
- localStorage.setItem(_i8, _val);
2602
+ sessionStorage.setItem(_i8, _val);
2554
2603
  }
2555
2604
  }
2556
2605
  }
@@ -3651,7 +3700,7 @@ module.exports = require("babel-runtime/regenerator");
3651
3700
 
3652
3701
  "use strict";
3653
3702
 
3654
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/FileList.vue?vue&type=template&id=8bcb1480&
3703
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/FileList.vue?vue&type=template&id=1258a45c&
3655
3704
  var render = function () {
3656
3705
  var _vm = this
3657
3706
  var _h = _vm.$createElement
@@ -3689,7 +3738,7 @@ var staticRenderFns = []
3689
3738
  render._withStripped = true
3690
3739
 
3691
3740
 
3692
- // CONCATENATED MODULE: ./packages/flow/src/component/FileList.vue?vue&type=template&id=8bcb1480&
3741
+ // CONCATENATED MODULE: ./packages/flow/src/component/FileList.vue?vue&type=template&id=1258a45c&
3693
3742
 
3694
3743
  // EXTERNAL MODULE: ./src/config/api.js
3695
3744
  var api = __webpack_require__(1);
@@ -3764,6 +3813,7 @@ var util = __webpack_require__(0);
3764
3813
  methods: {
3765
3814
  successFile: function successFile(response, file, fileList) {
3766
3815
  this.$emit('changeFileNum', fileList.length);
3816
+ this.$emit('change-file-num', fileList.length);
3767
3817
  },
3768
3818
 
3769
3819
  //删除附件
@@ -3782,6 +3832,7 @@ var util = __webpack_require__(0);
3782
3832
  if (rCode == 0) {
3783
3833
  _this.$message.success('删除成功');
3784
3834
  _this.$emit('changeFileNum', fileList.length);
3835
+ _this.$emit('change-fFile-num', fileList.length);
3785
3836
  } else {
3786
3837
  _this.$message.error(msg || '系统错误,请联系管理员!');
3787
3838
  }
@@ -3838,7 +3889,7 @@ var component = Object(componentNormalizer["a" /* default */])(
3838
3889
  // ESM COMPAT FLAG
3839
3890
  __webpack_require__.r(__webpack_exports__);
3840
3891
 
3841
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=650e1054&
3892
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=53041718&
3842
3893
  var render = function () {
3843
3894
  var _vm = this
3844
3895
  var _h = _vm.$createElement
@@ -5562,7 +5613,7 @@ var staticRenderFns = []
5562
5613
  render._withStripped = true
5563
5614
 
5564
5615
 
5565
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=650e1054&
5616
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=53041718&
5566
5617
 
5567
5618
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5568
5619
  var regenerator_ = __webpack_require__(12);
@@ -5747,8 +5798,8 @@ CommonOpinionsvue_type_template_id_4e1f4030_render._withStripped = true
5747
5798
  // EXTERNAL MODULE: ./src/config/api.js
5748
5799
  var api = __webpack_require__(1);
5749
5800
 
5750
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/table.vue?vue&type=template&id=508feae4&
5751
- var tablevue_type_template_id_508feae4_render = function () {
5801
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/table.vue?vue&type=template&id=67f38db6&
5802
+ var tablevue_type_template_id_67f38db6_render = function () {
5752
5803
  var _vm = this
5753
5804
  var _h = _vm.$createElement
5754
5805
  var _c = _vm._self._c || _h
@@ -5820,11 +5871,11 @@ var tablevue_type_template_id_508feae4_render = function () {
5820
5871
  2
5821
5872
  )
5822
5873
  }
5823
- var tablevue_type_template_id_508feae4_staticRenderFns = []
5824
- tablevue_type_template_id_508feae4_render._withStripped = true
5874
+ var tablevue_type_template_id_67f38db6_staticRenderFns = []
5875
+ tablevue_type_template_id_67f38db6_render._withStripped = true
5825
5876
 
5826
5877
 
5827
- // CONCATENATED MODULE: ./packages/flow/src/table.vue?vue&type=template&id=508feae4&
5878
+ // CONCATENATED MODULE: ./packages/flow/src/table.vue?vue&type=template&id=67f38db6&
5828
5879
 
5829
5880
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/table.vue?vue&type=script&lang=js&
5830
5881
  //
@@ -5851,6 +5902,11 @@ tablevue_type_template_id_508feae4_render._withStripped = true
5851
5902
  //
5852
5903
  //
5853
5904
  //
5905
+ //
5906
+ //
5907
+ //
5908
+ //
5909
+ //
5854
5910
 
5855
5911
  /* harmony default export */ var tablevue_type_script_lang_js_ = ({
5856
5912
  name: 'Table',
@@ -5872,9 +5928,11 @@ tablevue_type_template_id_508feae4_render._withStripped = true
5872
5928
  methods: {
5873
5929
  handleClick: function handleClick(val) {
5874
5930
  this.$emit('upDateClick', val);
5931
+ this.$emit('up-date-click', val);
5875
5932
  },
5876
5933
  delClick: function delClick(val) {
5877
5934
  this.$emit('delClick', val);
5935
+ this.$emit('del-click', val);
5878
5936
  }
5879
5937
  }
5880
5938
  });
@@ -5893,8 +5951,8 @@ var componentNormalizer = __webpack_require__(3);
5893
5951
 
5894
5952
  var component = Object(componentNormalizer["a" /* default */])(
5895
5953
  src_tablevue_type_script_lang_js_,
5896
- tablevue_type_template_id_508feae4_render,
5897
- tablevue_type_template_id_508feae4_staticRenderFns,
5954
+ tablevue_type_template_id_67f38db6_render,
5955
+ tablevue_type_template_id_67f38db6_staticRenderFns,
5898
5956
  false,
5899
5957
  null,
5900
5958
  null,
@@ -5903,8 +5961,8 @@ var component = Object(componentNormalizer["a" /* default */])(
5903
5961
  )
5904
5962
 
5905
5963
  /* harmony default export */ var table = (component.exports);
5906
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/form.vue?vue&type=template&id=c3a13696&
5907
- var formvue_type_template_id_c3a13696_render = function () {
5964
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/form.vue?vue&type=template&id=55fae080&
5965
+ var formvue_type_template_id_55fae080_render = function () {
5908
5966
  var _vm = this
5909
5967
  var _h = _vm.$createElement
5910
5968
  var _c = _vm._self._c || _h
@@ -6018,11 +6076,11 @@ var formvue_type_template_id_c3a13696_render = function () {
6018
6076
  1
6019
6077
  )
6020
6078
  }
6021
- var formvue_type_template_id_c3a13696_staticRenderFns = []
6022
- formvue_type_template_id_c3a13696_render._withStripped = true
6079
+ var formvue_type_template_id_55fae080_staticRenderFns = []
6080
+ formvue_type_template_id_55fae080_render._withStripped = true
6023
6081
 
6024
6082
 
6025
- // CONCATENATED MODULE: ./packages/flow/src/form.vue?vue&type=template&id=c3a13696&
6083
+ // CONCATENATED MODULE: ./packages/flow/src/form.vue?vue&type=template&id=55fae080&
6026
6084
 
6027
6085
  // EXTERNAL MODULE: ./src/utils/util.js
6028
6086
  var util = __webpack_require__(0);
@@ -6147,6 +6205,7 @@ var util = __webpack_require__(0);
6147
6205
  this.$refs[formName].validate(function (valid) {
6148
6206
  if (valid) {
6149
6207
  _this2.$emit('subMit', { addVisible: false, data: _this2.newData });
6208
+ _this2.$emit('sub-mit', { addVisible: false, data: _this2.newData });
6150
6209
  } else {
6151
6210
  return false;
6152
6211
  }
@@ -6166,8 +6225,8 @@ var util = __webpack_require__(0);
6166
6225
 
6167
6226
  var form_component = Object(componentNormalizer["a" /* default */])(
6168
6227
  src_formvue_type_script_lang_js_,
6169
- formvue_type_template_id_c3a13696_render,
6170
- formvue_type_template_id_c3a13696_staticRenderFns,
6228
+ formvue_type_template_id_55fae080_render,
6229
+ formvue_type_template_id_55fae080_staticRenderFns,
6171
6230
  false,
6172
6231
  null,
6173
6232
  null,
@@ -7614,8 +7673,8 @@ var selectUser_component = Object(componentNormalizer["a" /* default */])(
7614
7673
  )
7615
7674
 
7616
7675
  /* harmony default export */ var selectUser = (selectUser_component.exports);
7617
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CustomPreset.vue?vue&type=template&id=7a0fdf16&
7618
- var CustomPresetvue_type_template_id_7a0fdf16_render = function () {
7676
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CustomPreset.vue?vue&type=template&id=1f648b95&
7677
+ var CustomPresetvue_type_template_id_1f648b95_render = function () {
7619
7678
  var _vm = this
7620
7679
  var _h = _vm.$createElement
7621
7680
  var _c = _vm._self._c || _h
@@ -7717,11 +7776,11 @@ var CustomPresetvue_type_template_id_7a0fdf16_render = function () {
7717
7776
  1
7718
7777
  )
7719
7778
  }
7720
- var CustomPresetvue_type_template_id_7a0fdf16_staticRenderFns = []
7721
- CustomPresetvue_type_template_id_7a0fdf16_render._withStripped = true
7779
+ var CustomPresetvue_type_template_id_1f648b95_staticRenderFns = []
7780
+ CustomPresetvue_type_template_id_1f648b95_render._withStripped = true
7722
7781
 
7723
7782
 
7724
- // CONCATENATED MODULE: ./packages/flow/src/component/CustomPreset.vue?vue&type=template&id=7a0fdf16&
7783
+ // CONCATENATED MODULE: ./packages/flow/src/component/CustomPreset.vue?vue&type=template&id=1f648b95&
7725
7784
 
7726
7785
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CustomPreset.vue?vue&type=script&lang=js&
7727
7786
  var CustomPresetvue_type_script_lang_js_components;
@@ -7764,6 +7823,9 @@ var CustomPresetvue_type_script_lang_js_components;
7764
7823
  //
7765
7824
  //
7766
7825
  //
7826
+ //
7827
+ //
7828
+ //
7767
7829
 
7768
7830
 
7769
7831
 
@@ -7806,6 +7868,7 @@ var CustomPresetvue_type_script_lang_js_components;
7806
7868
  watch: {
7807
7869
  activeNames: function activeNames(val) {
7808
7870
  this.$emit('changeActiveNames', val);
7871
+ this.$emit('change-active-names', val);
7809
7872
  },
7810
7873
 
7811
7874
  processDefinitionId: {
@@ -7830,6 +7893,7 @@ var CustomPresetvue_type_script_lang_js_components;
7830
7893
  return;
7831
7894
  }
7832
7895
  this.$emit('loadingStart');
7896
+ this.$emit('loading-start');
7833
7897
  this.show = false;
7834
7898
  this.getPresetFlowInfo(nodeId, processDefinitionId);
7835
7899
  // return
@@ -7895,6 +7959,7 @@ var CustomPresetvue_type_script_lang_js_components;
7895
7959
  _this.$message.error(message || '系统错误,请联系管理员!');
7896
7960
  }
7897
7961
  _this.$emit('loadingEnd');
7962
+ _this.$emit('loading-end');
7898
7963
  nodeId && setTimeout(function () {
7899
7964
  _this.$refs.selectUser[index].changeInfo(_this.newPresetList[index]);
7900
7965
  }, 500);
@@ -8020,6 +8085,7 @@ var CustomPresetvue_type_script_lang_js_components;
8020
8085
  });
8021
8086
  });
8022
8087
  this.$emit('changeCustom', customPresetUserJson);
8088
+ this.$emit('change-custom', customPresetUserJson);
8023
8089
  }
8024
8090
  }
8025
8091
  });
@@ -8035,8 +8101,8 @@ var CustomPresetvue_type_script_lang_js_components;
8035
8101
 
8036
8102
  var CustomPreset_component = Object(componentNormalizer["a" /* default */])(
8037
8103
  component_CustomPresetvue_type_script_lang_js_,
8038
- CustomPresetvue_type_template_id_7a0fdf16_render,
8039
- CustomPresetvue_type_template_id_7a0fdf16_staticRenderFns,
8104
+ CustomPresetvue_type_template_id_1f648b95_render,
8105
+ CustomPresetvue_type_template_id_1f648b95_staticRenderFns,
8040
8106
  false,
8041
8107
  null,
8042
8108
  null,
@@ -8045,8 +8111,8 @@ var CustomPreset_component = Object(componentNormalizer["a" /* default */])(
8045
8111
  )
8046
8112
 
8047
8113
  /* harmony default export */ var CustomPreset = (CustomPreset_component.exports);
8048
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/Preset.vue?vue&type=template&id=62657536&
8049
- var Presetvue_type_template_id_62657536_render = function () {
8114
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/Preset.vue?vue&type=template&id=23d1e880&
8115
+ var Presetvue_type_template_id_23d1e880_render = function () {
8050
8116
  var _vm = this
8051
8117
  var _h = _vm.$createElement
8052
8118
  var _c = _vm._self._c || _h
@@ -8142,11 +8208,11 @@ var Presetvue_type_template_id_62657536_render = function () {
8142
8208
  1
8143
8209
  )
8144
8210
  }
8145
- var Presetvue_type_template_id_62657536_staticRenderFns = []
8146
- Presetvue_type_template_id_62657536_render._withStripped = true
8211
+ var Presetvue_type_template_id_23d1e880_staticRenderFns = []
8212
+ Presetvue_type_template_id_23d1e880_render._withStripped = true
8147
8213
 
8148
8214
 
8149
- // CONCATENATED MODULE: ./packages/flow/src/component/Preset.vue?vue&type=template&id=62657536&
8215
+ // CONCATENATED MODULE: ./packages/flow/src/component/Preset.vue?vue&type=template&id=23d1e880&
8150
8216
 
8151
8217
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/Preset.vue?vue&type=script&lang=js&
8152
8218
  var Presetvue_type_script_lang_js_components;
@@ -8264,6 +8330,7 @@ var Presetvue_type_script_lang_js_components;
8264
8330
  });
8265
8331
  });
8266
8332
  this.$emit('changePreset', presetUserJson);
8333
+ this.$emit('change-preset', presetUserJson);
8267
8334
  },
8268
8335
  changePresetUser: function changePresetUser(val, index) {
8269
8336
  var nextUser = val.nextUser;
@@ -8284,6 +8351,7 @@ var Presetvue_type_script_lang_js_components;
8284
8351
  var _this = this;
8285
8352
 
8286
8353
  this.$emit('loadingStart');
8354
+ this.$emit('loading-start');
8287
8355
  var nextNodeId = this.nextNodeId,
8288
8356
  processDefinitionId = this.processDefinitionId,
8289
8357
  businessId = this.businessId,
@@ -8371,6 +8439,7 @@ var Presetvue_type_script_lang_js_components;
8371
8439
  });
8372
8440
  this.changeSelectData();
8373
8441
  this.$emit('loadingEnd');
8442
+ this.$emit('loading-end');
8374
8443
  },
8375
8444
  isMultiple: function isMultiple(val, choiceOrgId, choiceDeptId, pOrgId) {
8376
8445
  var multiple = false;
@@ -8417,8 +8486,8 @@ var Presetvue_type_script_lang_js_components;
8417
8486
 
8418
8487
  var Preset_component = Object(componentNormalizer["a" /* default */])(
8419
8488
  component_Presetvue_type_script_lang_js_,
8420
- Presetvue_type_template_id_62657536_render,
8421
- Presetvue_type_template_id_62657536_staticRenderFns,
8489
+ Presetvue_type_template_id_23d1e880_render,
8490
+ Presetvue_type_template_id_23d1e880_staticRenderFns,
8422
8491
  false,
8423
8492
  null,
8424
8493
  null,
@@ -14275,6 +14344,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14275
14344
  taskButtonList = _res$data2.taskButtonList;
14276
14345
 
14277
14346
  _this23.$emit('startTaskRead', res);
14347
+ _this23.$emit('start-task-read', res);
14278
14348
  _this23.currentOrgName = currentOrgName;
14279
14349
  _this23.otherOrgName = otherOrgName;
14280
14350
  _this23.endFlowInfo.choiceOrgId = choiceOrgId;