eoss-mobiles 0.2.44 → 0.2.45

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 (53) hide show
  1. package/lib/action-sheet.js +2 -2
  2. package/lib/button-group.js +2 -2
  3. package/lib/button.js +2 -2
  4. package/lib/calendar.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/cell.js +2 -2
  7. package/lib/checkbox.js +5 -5
  8. package/lib/circle.js +2 -2
  9. package/lib/count-down.js +2 -2
  10. package/lib/date.js +2 -2
  11. package/lib/empty.js +2 -2
  12. package/lib/eoss-mobile.common.js +317 -38
  13. package/lib/esign.js +2 -2
  14. package/lib/field.js +2 -2
  15. package/lib/flow-btn.js +5 -5
  16. package/lib/flow-list.js +5 -5
  17. package/lib/flow.js +22 -21
  18. package/lib/form.js +2 -2
  19. package/lib/grid-item.js +2 -2
  20. package/lib/grid.js +288 -8
  21. package/lib/image-preview.js +2 -2
  22. package/lib/image.js +2 -2
  23. package/lib/index.js +1 -1
  24. package/lib/list.js +2 -2
  25. package/lib/loading.js +2 -2
  26. package/lib/nav-bar.js +2 -2
  27. package/lib/notice-bar.js +2 -2
  28. package/lib/pagination.js +2 -2
  29. package/lib/picker.js +6 -5
  30. package/lib/popover.js +2 -2
  31. package/lib/popup.js +2 -2
  32. package/lib/pull-refresh.js +2 -2
  33. package/lib/radio.js +6 -5
  34. package/lib/rate.js +2 -2
  35. package/lib/retrial-auth.js +5 -5
  36. package/lib/search.js +2 -2
  37. package/lib/selector.js +6 -5
  38. package/lib/skeleton.js +2 -2
  39. package/lib/stepper.js +2 -2
  40. package/lib/swipe.js +2 -2
  41. package/lib/switch.js +2 -2
  42. package/lib/tab.js +2 -2
  43. package/lib/table-column.js +6 -5
  44. package/lib/table.js +7 -7
  45. package/lib/tabs.js +2 -2
  46. package/lib/tag.js +2 -2
  47. package/lib/uploader.js +2 -2
  48. package/lib/utils/axios.js +3 -3
  49. package/package.json +3 -1
  50. package/packages/flow/src/components/StartFlow.vue +9 -9
  51. package/packages/grid/src/main.vue +83 -6
  52. package/src/index.js +1 -1
  53. package/src/utils/axios.js +3 -3
package/lib/flow.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 11);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 12);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -1745,14 +1745,14 @@ var axios_ajax = function ajax(url) {
1745
1745
  baseURL: apiUrl,
1746
1746
  timeout: 60000,
1747
1747
  headers: {
1748
- // clientKey: 'csjk'
1748
+ 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
1749
1749
  },
1750
1750
  withCredentials: false
1751
1751
  });
1752
1752
  http.interceptors.request.use(function (config) {
1753
1753
  if ((params.params || params) instanceof FormData === false) {
1754
1754
  if (type === 'post' && !format) {
1755
- config.params = external_qs_default.a.stringify(params.params || params);
1755
+ config.data = external_qs_default.a.stringify(params.params || params);
1756
1756
  if (!config.headers['content-type'] && !headers['Content-Type']) {
1757
1757
  config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1758
1758
  }
@@ -1803,6 +1803,7 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
+
1806
1807
  return config;
1807
1808
  }, function (error) {
1808
1809
  return Promise.error(error);
@@ -1907,7 +1908,6 @@ var base = {
1907
1908
  }, headers, format);
1908
1909
  },
1909
1910
  post: function post(url, params, headers, format) {
1910
- console.log(params, 'params');
1911
1911
  if (params.params) {
1912
1912
  params.params.userId = params.params.userId || util["a" /* default */].getStorage('userId');
1913
1913
  } else {
@@ -2024,7 +2024,8 @@ module.exports = require("sm-crypto");
2024
2024
  /***/ }),
2025
2025
  /* 9 */,
2026
2026
  /* 10 */,
2027
- /* 11 */
2027
+ /* 11 */,
2028
+ /* 12 */
2028
2029
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2029
2030
 
2030
2031
  "use strict";
@@ -2121,8 +2122,8 @@ render._withStripped = true
2121
2122
 
2122
2123
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=7b5917b8&
2123
2124
 
2124
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=template&id=5466db24&
2125
- var StartFlowvue_type_template_id_5466db24_render = function () {
2125
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=template&id=61144ed4&
2126
+ var StartFlowvue_type_template_id_61144ed4_render = function () {
2126
2127
  var _vm = this
2127
2128
  var _h = _vm.$createElement
2128
2129
  var _c = _vm._self._c || _h
@@ -2308,11 +2309,11 @@ var StartFlowvue_type_template_id_5466db24_render = function () {
2308
2309
  ]),
2309
2310
  ])
2310
2311
  }
2311
- var StartFlowvue_type_template_id_5466db24_staticRenderFns = []
2312
- StartFlowvue_type_template_id_5466db24_render._withStripped = true
2312
+ var StartFlowvue_type_template_id_61144ed4_staticRenderFns = []
2313
+ StartFlowvue_type_template_id_61144ed4_render._withStripped = true
2313
2314
 
2314
2315
 
2315
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=5466db24&
2316
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=61144ed4&
2316
2317
 
2317
2318
  // EXTERNAL MODULE: ./src/config/api.js
2318
2319
  var api = __webpack_require__(2);
@@ -3336,14 +3337,14 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3336
3337
  return;
3337
3338
  }
3338
3339
  var formData = new FormData();
3339
- if (this.form.isImageOpinion == 1) {
3340
- formData.append('file', this.file);
3341
- }
3342
- for (var key in info) {
3343
- if (info[key] !== '' && info[key] !== undefined) {
3344
- formData.append(key, info[key]);
3345
- }
3346
- }
3340
+ // if (this.form.isImageOpinion == 1) {
3341
+ // formData.append('file', this.file);
3342
+ // }
3343
+ // for (let key in info) {
3344
+ // if (info[key] !== '' && info[key] !== undefined) {
3345
+ // formData.append(key, info[key]);
3346
+ // }
3347
+ // }
3347
3348
  this.$toast.loading({
3348
3349
  message: '加载中...',
3349
3350
  forbidClick: true,
@@ -3355,7 +3356,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3355
3356
  Object(http["a" /* default */])({
3356
3357
  url: _that.apiBaseUrl ? _that.apiBaseUrl + api["p" /* registerNew */] : api["p" /* registerNew */],
3357
3358
  type: 'post',
3358
- params: formData,
3359
+ params: info,
3359
3360
  format: false
3360
3361
  }).then(function (res) {
3361
3362
  _this2.$toast.clear();
@@ -3563,8 +3564,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3563
3564
 
3564
3565
  var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3565
3566
  components_StartFlowvue_type_script_lang_js_,
3566
- StartFlowvue_type_template_id_5466db24_render,
3567
- StartFlowvue_type_template_id_5466db24_staticRenderFns,
3567
+ StartFlowvue_type_template_id_61144ed4_render,
3568
+ StartFlowvue_type_template_id_61144ed4_staticRenderFns,
3568
3569
  false,
3569
3570
  null,
3570
3571
  null,
package/lib/form.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 40);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 41);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 40:
195
+ /***/ 41:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/grid-item.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 26);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 27);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 26:
195
+ /***/ 27:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/grid.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 25);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 26);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,14 +192,21 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 25:
195
+ /***/ 10:
196
+ /***/ (function(module, exports) {
197
+
198
+ module.exports = require("vuedraggable");
199
+
200
+ /***/ }),
201
+
202
+ /***/ 26:
196
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
204
 
198
205
  "use strict";
199
206
  // ESM COMPAT FLAG
200
207
  __webpack_require__.r(__webpack_exports__);
201
208
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=template&id=b1bd9a9e&
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=template&id=3fb10550&
203
210
  var render = function () {
204
211
  var _vm = this
205
212
  var _h = _vm.$createElement
@@ -227,6 +234,189 @@ var render = function () {
227
234
  _vm.$listeners
228
235
  ),
229
236
  [
237
+ _vm.draggable
238
+ ? _c(
239
+ "draggable",
240
+ {
241
+ staticClass: "menu-list-draggable",
242
+ staticStyle: { width: "100%" },
243
+ model: {
244
+ value: _vm.newData,
245
+ callback: function ($$v) {
246
+ _vm.newData = $$v
247
+ },
248
+ expression: "newData",
249
+ },
250
+ },
251
+ [
252
+ _c(
253
+ "transition-group",
254
+ {
255
+ staticClass: "menu-list-draggable-item",
256
+ staticStyle: { width: "100%" },
257
+ },
258
+ _vm._l(_vm.newData, function (item, index) {
259
+ return _c(
260
+ "div",
261
+ {
262
+ key: item.id,
263
+ staticClass: "van-grid-item",
264
+ style:
265
+ "display: inline-block;width:" +
266
+ 100 / _vm.columnNum +
267
+ "%",
268
+ on: {
269
+ click: function ($event) {
270
+ $event.stopPropagation()
271
+ _vm.goView($event, item)
272
+ },
273
+ },
274
+ },
275
+ [
276
+ _c(
277
+ "div",
278
+ {
279
+ staticClass:
280
+ "van-grid-item__content van-grid-item__content--center van-hairline",
281
+ },
282
+ [
283
+ _c(
284
+ "i",
285
+ {
286
+ staticClass: "van-icon van-grid-item__icon",
287
+ class:
288
+ item.icon.startsWith("http") &&
289
+ item.icon.indexOf("/") != -1
290
+ ? ""
291
+ : "van-icon-" + item.icon,
292
+ style: {
293
+ fontSize:
294
+ item.iconSize || _vm.$attrs["icon-size"]
295
+ ? item.iconSize ||
296
+ _vm.$attrs["icon-size"]
297
+ : "",
298
+ },
299
+ on: {
300
+ touchstart: function ($event) {
301
+ _vm.touchstart(item, index)
302
+ },
303
+ touchend: function ($event) {
304
+ _vm.touchend(item, index)
305
+ },
306
+ },
307
+ },
308
+ [
309
+ item.icon.startsWith("http") ||
310
+ item.icon.indexOf("/") != -1
311
+ ? _c("img", {
312
+ staticClass: "van-icon__image",
313
+ style: {
314
+ width:
315
+ item.iconSize ||
316
+ _vm.$attrs["icon-size"]
317
+ ? item.iconSize ||
318
+ _vm.$attrs["icon-size"]
319
+ : "",
320
+ height:
321
+ item.iconSize ||
322
+ _vm.$attrs["icon-size"]
323
+ ? item.iconSize ||
324
+ _vm.$attrs["icon-size"]
325
+ : "",
326
+ },
327
+ attrs: { src: item.icon },
328
+ })
329
+ : _vm._e(),
330
+ _c("div", {
331
+ directives: [
332
+ {
333
+ name: "show",
334
+ rawName: "v-show",
335
+ value: item.dot,
336
+ expression: "item.dot",
337
+ },
338
+ ],
339
+ staticClass: "van-info van-info--dot",
340
+ style: { background: item.dotColor || "" },
341
+ }),
342
+ _c(
343
+ "div",
344
+ {
345
+ directives: [
346
+ {
347
+ name: "show",
348
+ rawName: "v-show",
349
+ value: item.badge,
350
+ expression: "item.badge",
351
+ },
352
+ ],
353
+ staticClass: "van-info",
354
+ style: {
355
+ background: _vm.badgeColor || "",
356
+ },
357
+ },
358
+ [
359
+ _vm._v(
360
+ "\n " +
361
+ _vm._s(
362
+ _vm.maxBadge &&
363
+ !isNaN(item.badge) &&
364
+ Number(_vm.maxBadge) <
365
+ Number(item.badge)
366
+ ? _vm.maxBadge + "+"
367
+ : item.badge
368
+ ) +
369
+ "\n "
370
+ ),
371
+ ]
372
+ ),
373
+ ]
374
+ ),
375
+ _c(
376
+ "span",
377
+ { staticClass: "van-grid-item__text" },
378
+ [_vm._v(_vm._s(item.text))]
379
+ ),
380
+ _vm.showHide && item.menuType != "add"
381
+ ? _c("van-icon", {
382
+ staticClass: "em-grid-del",
383
+ attrs: { name: "clear", size: "20px" },
384
+ on: {
385
+ click: function ($event) {
386
+ $event.stopPropagation()
387
+ _vm.handleHide(item)
388
+ },
389
+ },
390
+ })
391
+ : _vm._e(),
392
+ item.showMenu
393
+ ? _c(
394
+ "div",
395
+ { staticClass: "em-grid-select-box" },
396
+ [
397
+ _c("van-icon", {
398
+ attrs: {
399
+ size: "30px",
400
+ color: "#fff",
401
+ name: "success",
402
+ },
403
+ }),
404
+ ],
405
+ 1
406
+ )
407
+ : _vm._e(),
408
+ ],
409
+ 1
410
+ ),
411
+ ]
412
+ )
413
+ }),
414
+ 0
415
+ ),
416
+ ],
417
+ 1
418
+ )
419
+ : _vm._e(),
230
420
  _vm._l(_vm.newData, function (item, index) {
231
421
  return _c(
232
422
  "van-grid-item",
@@ -236,8 +426,9 @@ var render = function () {
236
426
  {
237
427
  name: "show",
238
428
  rawName: "v-show",
239
- value: _vm.newData && _vm.newData.length > 0,
240
- expression: "newData && newData.length > 0",
429
+ value:
430
+ _vm.newData && _vm.newData.length > 0 && !_vm.draggable,
431
+ expression: "newData && newData.length > 0 && !draggable",
241
432
  },
242
433
  ],
243
434
  key: index,
@@ -270,6 +461,14 @@ var render = function () {
270
461
  ? item.iconSize || _vm.$attrs["icon-size"]
271
462
  : "",
272
463
  },
464
+ on: {
465
+ touchstart: function ($event) {
466
+ _vm.touchstart(item, index)
467
+ },
468
+ touchend: function ($event) {
469
+ _vm.touchend(item, index)
470
+ },
471
+ },
273
472
  },
274
473
  [
275
474
  item.icon.startsWith("http") || item.icon.indexOf("/") != -1
@@ -450,7 +649,11 @@ var staticRenderFns = []
450
649
  render._withStripped = true
451
650
 
452
651
 
453
- // CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=b1bd9a9e&
652
+ // CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=3fb10550&
653
+
654
+ // EXTERNAL MODULE: external "vuedraggable"
655
+ var external_vuedraggable_ = __webpack_require__(10);
656
+ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_vuedraggable_);
454
657
 
455
658
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=script&lang=js&
456
659
  //
@@ -544,10 +747,75 @@ render._withStripped = true
544
747
  //
545
748
  //
546
749
  //
750
+ //
751
+ //
752
+ //
753
+ //
754
+ //
755
+ //
756
+ //
757
+ //
758
+ //
759
+ //
760
+ //
761
+ //
762
+ //
763
+ //
764
+ //
765
+ //
766
+ //
767
+ //
768
+ //
769
+ //
770
+ //
771
+ //
772
+ //
773
+ //
774
+ //
775
+ //
776
+ //
777
+ //
778
+ //
779
+ //
780
+ //
781
+ //
782
+ //
783
+ //
784
+ //
785
+ //
786
+ //
787
+ //
788
+ //
789
+ //
790
+ //
791
+ //
792
+ //
793
+ //
794
+ //
795
+ //
796
+ //
797
+ //
798
+ //
799
+ //
800
+ //
801
+ //
802
+ //
803
+ //
804
+ //
805
+ //
806
+ //
807
+ //
808
+ //
809
+ //
810
+ //
811
+ //
812
+ //
813
+
547
814
 
548
815
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
549
816
  name: 'EmGrid',
550
817
  inheritAttrs: false,
818
+ components: { draggable: external_vuedraggable_default.a },
551
819
  props: {
552
820
  data: {
553
821
  type: Array,
@@ -596,6 +864,10 @@ render._withStripped = true
596
864
  addMenuIconSize: {
597
865
  type: String,
598
866
  default: '40px'
867
+ },
868
+ draggable: {
869
+ type: Boolean,
870
+ default: false
599
871
  }
600
872
  },
601
873
  data: function data() {
@@ -630,13 +902,20 @@ render._withStripped = true
630
902
  }
631
903
  },
632
904
  methods: {
905
+ touchstart: function touchstart(val, inexd) {
906
+ console.log('点击了了');
907
+ },
908
+ touchend: function touchend(val, a) {
909
+ console.log('松开了');
910
+ },
633
911
  hideDelIcon: function hideDelIcon() {
634
912
  this.showHide = false;
635
913
  },
636
914
  handleShowMenu: function handleShowMenu() {
637
915
  var _this = this;
638
916
 
639
- var str = this.selectMenuArr.join(',');
917
+ var str = this.selectMenuArr;
918
+ // let str = this.selectMenuArr.join(',');
640
919
  if (Array.isArray(this.hideMenu)) {
641
920
  var hideArr = this.hideMenuList.filter(function (x) {
642
921
  return str.indexOf(x[_this.hideMenuKey]) == -1;
@@ -673,7 +952,8 @@ render._withStripped = true
673
952
  if (Array.isArray(val)) {
674
953
  var menuKey = val.map(function (x) {
675
954
  return x.id;
676
- }).join(',');
955
+ });
956
+ // let menuKey = val.map(x => x.id).join(',');
677
957
  this.newData = this.data.filter(function (x) {
678
958
  return menuKey.indexOf(x[_this3.hideMenuKey]) == -1;
679
959
  });
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 44);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 45);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 44:
195
+ /***/ 45:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/image.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 43);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 44);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 43:
195
+ /***/ 44:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";