eoss-ui 0.6.84 → 0.6.85

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 (81) hide show
  1. package/lib/button-group.js +105 -93
  2. package/lib/button.js +105 -93
  3. package/lib/calogin.js +105 -93
  4. package/lib/checkbox-group.js +105 -93
  5. package/lib/data-table-form.js +105 -93
  6. package/lib/data-table.js +105 -93
  7. package/lib/date-picker.js +105 -93
  8. package/lib/dialog.js +105 -93
  9. package/lib/eoss-ui.common.js +416 -446
  10. package/lib/flow-group.js +112 -95
  11. package/lib/flow-list.js +105 -93
  12. package/lib/flow.js +185 -137
  13. package/lib/form.js +216 -264
  14. package/lib/handle-user.js +105 -93
  15. package/lib/handler.js +105 -93
  16. package/lib/icon.js +105 -93
  17. package/lib/icons.js +1 -1
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +105 -93
  20. package/lib/input.js +105 -93
  21. package/lib/login.js +112 -97
  22. package/lib/main.js +105 -93
  23. package/lib/nav.js +105 -93
  24. package/lib/page.js +105 -93
  25. package/lib/pagination.js +105 -93
  26. package/lib/player.js +105 -93
  27. package/lib/qr-code.js +105 -93
  28. package/lib/radio-group.js +105 -93
  29. package/lib/retrial-auth.js +105 -93
  30. package/lib/select-ganged.js +105 -93
  31. package/lib/select.js +105 -93
  32. package/lib/selector-panel.js +105 -93
  33. package/lib/selector.js +123 -99
  34. package/lib/sizer.js +105 -93
  35. package/lib/steps.js +105 -93
  36. package/lib/switch.js +105 -93
  37. package/lib/table-form.js +164 -190
  38. package/lib/tabs.js +105 -93
  39. package/lib/theme-chalk/base.css +1 -1
  40. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  41. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  42. package/lib/theme-chalk/icon.css +1 -1
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/main.css +1 -1
  45. package/lib/theme-chalk/menu.css +1 -1
  46. package/lib/theme-chalk/simplicity.css +1 -1
  47. package/lib/theme-chalk/sizer.css +1 -1
  48. package/lib/theme-chalk/upload.css +1 -1
  49. package/lib/tips.js +105 -93
  50. package/lib/tree-group.js +105 -93
  51. package/lib/tree.js +105 -93
  52. package/lib/upload.js +105 -93
  53. package/lib/utils/util.js +105 -93
  54. package/lib/wujie.js +105 -93
  55. package/lib/wxlogin.js +105 -93
  56. package/package.json +1 -1
  57. package/packages/flow/src/component/taskUnionExamine.vue +17 -5
  58. package/packages/flow/src/main.vue +7 -3
  59. package/packages/flow/src/selectUser.vue +22 -8
  60. package/packages/flow/src/supervise.vue +1 -0
  61. package/packages/flow-group/src/main.vue +4 -0
  62. package/packages/form/src/main.vue +84 -72
  63. package/packages/form/src/table.vue +42 -36
  64. package/packages/icons/src/icon.json +1 -1
  65. package/packages/login/src/main.vue +5 -8
  66. package/packages/selector/src/main.vue +20 -4
  67. package/packages/theme-chalk/lib/base.css +1 -1
  68. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  69. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  70. package/packages/theme-chalk/lib/icon.css +1 -1
  71. package/packages/theme-chalk/lib/index.css +1 -1
  72. package/packages/theme-chalk/lib/main.css +1 -1
  73. package/packages/theme-chalk/lib/menu.css +1 -1
  74. package/packages/theme-chalk/lib/simplicity.css +1 -1
  75. package/packages/theme-chalk/lib/sizer.css +1 -1
  76. package/packages/theme-chalk/lib/upload.css +1 -1
  77. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  78. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  79. package/packages/theme-chalk/src/icon.scss +4 -0
  80. package/src/index.js +1 -1
  81. package/src/utils/util.js +141 -129
@@ -16,6 +16,10 @@
16
16
  -moz-osx-font-smoothing: grayscale;
17
17
  }
18
18
 
19
+ .es-icon-daimakuai:before {
20
+ content: '\e6f7';
21
+ }
22
+
19
23
  .es-icon-fensizengchang:before {
20
24
  content: '\e6ed';
21
25
  }
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.6.84',
128
+ version: '0.6.85',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -170,135 +170,7 @@ const ajax = function ({
170
170
  }
171
171
  }
172
172
  if (response.status === 200) {
173
- if (
174
- response.data.rCode === 64 ||
175
- response.data.rCode === 65 ||
176
- response.data.rCode === 67 ||
177
- response.data.rCode === 69
178
- ) {
179
- removeStorage([
180
- 'Authorization',
181
- 'token',
182
- 'ssId',
183
- 'userId',
184
- 'userName',
185
- 'deviceUnique',
186
- 'menus',
187
- 'useCaseCodes',
188
- 'mainConfig',
189
- 'jump',
190
- 'showLaunch'
191
- ]);
192
- let href = '';
193
- try {
194
- href = win.top.location.href;
195
- } catch (error) {
196
- href = win.location.href;
197
- }
198
- if (
199
- href.indexOf('#/login') === -1 &&
200
- href.indexOf('/login.html') === -1
201
- ) {
202
- let remind = sessionStorage.getItem('remind');
203
- if (!remind) {
204
- clearTimeout(loginMsg);
205
- loginMsg = setTimeout(() => {
206
- sessionStorage.setItem('remind', 1);
207
- MessageBox.confirm(
208
- response.data.rCode === 69
209
- ? '该账号在其他地方已登陆!'
210
- : '登录已过期,请重新登录!',
211
- '提示',
212
- response.data.rCode === 69
213
- ? {
214
- confirmButtonText: '确定',
215
- closeOnClickModal: false,
216
- type: 'warning'
217
- }
218
- : {
219
- confirmButtonText: '确定',
220
- cancelButtonText: '取消',
221
- closeOnClickModal: false,
222
- type: 'warning'
223
- }
224
- )
225
- .then(() => {
226
- try {
227
- const loginPage =
228
- getStorage('login') || getStorage('loginPage');
229
- if (loginPage) {
230
- let src;
231
- if (!startWith(loginPage, ['http', '/'], true)) {
232
- let pathname = win.top.location.pathname;
233
- if (pathname !== '/') {
234
- pathname = pathname.split('/');
235
- pathname.splice(pathname.length - 1);
236
- pathname = pathname.join('/');
237
- src = pathname + '/' + loginPage.replace('./', '');
238
- } else {
239
- src = pathname + loginPage.replace('./', '');
240
- }
241
- } else {
242
- src = loginPage;
243
- }
244
- win.top.location.href = src;
245
- } else if (
246
- win.top.location.href.indexOf('main.html') > -1
247
- ) {
248
- win.top.location.href = './login.html';
249
- } else {
250
- const hash = win.top.location.hash;
251
- if (hash) {
252
- const len = win.top.location.href.indexOf(hash);
253
- win.top.location.href =
254
- win.location.href.slice(0, len) + '#/login';
255
- } else {
256
- win.top.location.href = '/login.html';
257
- }
258
- }
259
- } catch (error) {
260
- win.postMessage({ type: 1 }, '*');
261
- }
262
- })
263
- .catch((e) => {
264
- sessionStorage.removeItem('remind');
265
- });
266
- }, 2000);
267
- }
268
- }
269
- } else if (response.data.rCode === 61) {
270
- clearTimeout(initAuth);
271
- initAuth = setTimeout(() => {
272
- MessageBox({
273
- title: '请进行二次鉴权',
274
- closeOnClickModal: false,
275
- closeOnPressEscape: false,
276
- showConfirmButton: false,
277
- dangerouslyUseHTMLString: true,
278
- scroll: false,
279
- customClass: 'es-retrial-auth-msg',
280
- render: (h, msgBox) => {
281
- return h('es-retrial-auth', {
282
- ref: 'auth',
283
- props: {
284
- reload:
285
- response.data.results.reload ||
286
- response.data.results.refresh,
287
- group: response.data.results.retrialAuthGroupIds,
288
- type: response.data.results.retrialAuthType,
289
- msgBox: msgBox
290
- }
291
- });
292
- },
293
- callback: (res, obj) => {
294
- obj.$children.forEach((item) => {
295
- item.clearTimeouts && item.clearTimeouts();
296
- return;
297
- });
298
- }
299
- });
300
- }, 1000);
301
- }
173
+ responses(response.data);
302
174
  // eslint-disable-next-line no-undef
303
175
  return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
304
176
  }
@@ -2897,6 +2769,145 @@ const replenish = function ({ data, precision }) {
2897
2769
  return data;
2898
2770
  };
2899
2771
 
2772
+ /**
2773
+ * responses
2774
+ * @desc:状态码响应
2775
+ * @author huangbo
2776
+ * @date 2022年5月7日
2777
+ * @param {object} [data] - 数字或字符串型数字
2778
+ **/
2779
+ const responses = function (data) {
2780
+ if (
2781
+ data.rCode === 64 ||
2782
+ data.rCode === 65 ||
2783
+ data.rCode === 67 ||
2784
+ data.rCode === 69
2785
+ ) {
2786
+ removeStorage([
2787
+ 'Authorization',
2788
+ 'token',
2789
+ 'ssId',
2790
+ 'userId',
2791
+ 'userName',
2792
+ 'deviceUnique',
2793
+ 'menus',
2794
+ 'useCaseCodes',
2795
+ 'mainConfig',
2796
+ 'jump',
2797
+ 'showLaunch'
2798
+ ]);
2799
+ let href = '';
2800
+ try {
2801
+ href = win.top.location.href;
2802
+ } catch (error) {
2803
+ href = win.location.href;
2804
+ }
2805
+ if (
2806
+ href.indexOf('#/login') === -1 &&
2807
+ href.indexOf('/login.html') === -1
2808
+ ) {
2809
+ let remind = sessionStorage.getItem('remind');
2810
+ if (!remind) {
2811
+ clearTimeout(loginMsg);
2812
+ loginMsg = setTimeout(() => {
2813
+ sessionStorage.setItem('remind', 1);
2814
+ MessageBox.confirm(
2815
+ data.rCode === 69
2816
+ ? '该账号在其他地方已登陆!'
2817
+ : '登录已过期,请重新登录!',
2818
+ '提示',
2819
+ data.rCode === 69
2820
+ ? {
2821
+ confirmButtonText: '确定',
2822
+ closeOnClickModal: false,
2823
+ type: 'warning'
2824
+ }
2825
+ : {
2826
+ confirmButtonText: '确定',
2827
+ cancelButtonText: '取消',
2828
+ closeOnClickModal: false,
2829
+ type: 'warning'
2830
+ }
2831
+ )
2832
+ .then(() => {
2833
+ try {
2834
+ const loginPage =
2835
+ getStorage('login') || getStorage('loginPage');
2836
+ if (loginPage) {
2837
+ let src;
2838
+ if (!startWith(loginPage, ['http', '/'], true)) {
2839
+ let pathname = win.top.location.pathname;
2840
+ if (pathname !== '/') {
2841
+ pathname = pathname.split('/');
2842
+ pathname.splice(pathname.length - 1);
2843
+ pathname = pathname.join('/');
2844
+ src = pathname + '/' + loginPage.replace('./', '');
2845
+ } else {
2846
+ src = pathname + loginPage.replace('./', '');
2847
+ }
2848
+ } else {
2849
+ src = loginPage;
2850
+ }
2851
+ win.top.location.href = src;
2852
+ } else if (
2853
+ win.top.location.href.indexOf('main.html') > -1
2854
+ ) {
2855
+ win.top.location.href = './login.html';
2856
+ } else {
2857
+ const hash = win.top.location.hash;
2858
+ if (hash) {
2859
+ const len = win.top.location.href.indexOf(hash);
2860
+ win.top.location.href =
2861
+ win.location.href.slice(0, len) + '#/login';
2862
+ } else {
2863
+ win.top.location.href = '/login.html';
2864
+ }
2865
+ }
2866
+ } catch (error) {
2867
+ win.postMessage({ type: 1 }, '*');
2868
+ }
2869
+ })
2870
+ .catch((e) => {
2871
+ sessionStorage.removeItem('remind');
2872
+ });
2873
+ }, 2000);
2874
+ }
2875
+ }
2876
+ } else if (data.rCode === 61) {
2877
+ clearTimeout(initAuth);
2878
+ initAuth = setTimeout(() => {
2879
+ MessageBox({
2880
+ title: '请进行二次鉴权',
2881
+ closeOnClickModal: false,
2882
+ closeOnPressEscape: false,
2883
+ showConfirmButton: false,
2884
+ dangerouslyUseHTMLString: true,
2885
+ scroll: false,
2886
+ customClass: 'es-retrial-auth-msg',
2887
+ render: (h, msgBox) => {
2888
+ return h('es-retrial-auth', {
2889
+ ref: 'auth',
2890
+ props: {
2891
+ reload:
2892
+ data.results.reload ||
2893
+ data.results.refresh,
2894
+ group: data.results.retrialAuthGroupIds,
2895
+ type: data.results.retrialAuthType,
2896
+ msgBox: msgBox
2897
+ }
2898
+ });
2899
+ },
2900
+ callback: (res, obj) => {
2901
+ obj.$children.forEach((item) => {
2902
+ item.clearTimeouts && item.clearTimeouts();
2903
+ return;
2904
+ });
2905
+ }
2906
+ });
2907
+ }, 1000);
2908
+ }
2909
+ };
2910
+
2900
2911
  /**
2901
2912
  * rgbToHsv
2902
2913
  * @desc:rgb转化成hsv
@@ -3611,6 +3622,7 @@ export default {
3611
3622
  receiveMessage,
3612
3623
  removeStorage,
3613
3624
  replenish,
3625
+ responses,
3614
3626
  rgbToHsv,
3615
3627
  rmbToCapital,
3616
3628
  sendMessage,