eoss-ui 0.4.10 → 0.4.15

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 (67) hide show
  1. package/lib/button-group.js +110 -15
  2. package/lib/button.js +112 -17
  3. package/lib/ca-login.js +326 -0
  4. package/lib/card.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/checkbox-group.js +110 -15
  7. package/lib/clients.js +2 -2
  8. package/lib/data-table-form.js +110 -15
  9. package/lib/data-table.js +148 -35
  10. package/lib/date-picker.js +112 -17
  11. package/lib/dialog.js +113 -17
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +289 -53
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +112 -17
  16. package/lib/flow-list.js +110 -15
  17. package/lib/flow.js +110 -15
  18. package/lib/form.js +124 -26
  19. package/lib/handle-user.js +112 -17
  20. package/lib/handler.js +112 -17
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +112 -17
  23. package/lib/input.js +112 -17
  24. package/lib/label.js +2 -2
  25. package/lib/login.js +110 -15
  26. package/lib/main.js +110 -15
  27. package/lib/mainComp.js +110 -15
  28. package/lib/menu.js +2 -2
  29. package/lib/nav.js +112 -17
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +112 -17
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +112 -17
  34. package/lib/qr-code.js +119 -24
  35. package/lib/radio-group.js +112 -17
  36. package/lib/select-ganged.js +112 -17
  37. package/lib/select.js +119 -24
  38. package/lib/selector-panel.js +110 -15
  39. package/lib/selector.js +112 -17
  40. package/lib/sizer.js +112 -17
  41. package/lib/steps.js +112 -17
  42. package/lib/switch.js +112 -17
  43. package/lib/table-form.js +119 -24
  44. package/lib/tabs-panel.js +2 -2
  45. package/lib/tabs.js +112 -17
  46. package/lib/theme-chalk/ca-login.css +1 -0
  47. package/lib/theme-chalk/index.css +1 -1
  48. package/lib/tips.js +112 -17
  49. package/lib/toolbar.js +2 -2
  50. package/lib/tree-group.js +112 -17
  51. package/lib/tree.js +112 -17
  52. package/lib/upload.js +110 -15
  53. package/lib/utils/util.js +110 -15
  54. package/lib/wujie.js +112 -17
  55. package/lib/wxlogin.js +112 -17
  56. package/package.json +4 -4
  57. package/packages/ca-login/index.js +5 -0
  58. package/packages/ca-login/src/main.vue +62 -0
  59. package/packages/data-table/src/column.vue +20 -7
  60. package/packages/data-table/src/main.vue +2 -1
  61. package/packages/form/src/main.vue +17 -7
  62. package/packages/theme-chalk/lib/ca-login.css +1 -0
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/src/ca-login.scss +4 -0
  65. package/packages/theme-chalk/src/index.scss +1 -0
  66. package/src/index.js +4 -1
  67. package/src/utils/util.js +122 -37
@@ -533,7 +533,7 @@ var esEncode = function esEncode(value) {
533
533
  **/
534
534
  var esDecode = function esDecode(value) {
535
535
  var kleng = publicKey.length;
536
- var result;
536
+ var result = void 0;
537
537
  var cat1 = void 0;
538
538
  var cat2 = void 0;
539
539
  var cat3 = void 0;
@@ -638,11 +638,13 @@ var exportXls = function exportXls(_ref6) {
638
638
  _ref6$data = _ref6.data,
639
639
  data = _ref6$data === undefined ? [] : _ref6$data,
640
640
  name = _ref6.name,
641
- numbers = _ref6.numbers;
641
+ numbers = _ref6.numbers,
642
+ option = _ref6.option;
642
643
 
643
644
  var tbody = '';
644
645
  var aligns = [];
645
646
  var fields = [];
647
+ var keys = {};
646
648
  var others = {};
647
649
  var alink = document.createElement('a');
648
650
  for (var i = 0; i < thead.length; i++) {
@@ -652,12 +654,15 @@ var exportXls = function exportXls(_ref6) {
652
654
  }
653
655
  var tr = thead[i];
654
656
  var col = 0;
655
- for (var _x = 0; _x < tr.length; _x++) {
656
- var td = tr[_x];
657
+ for (var x = 0; x < tr.length; x++) {
658
+ var td = tr[x];
657
659
  if (td.property) {
658
- if (col === _x) {
660
+ if (col === x) {
659
661
  fields.push(td.property);
660
662
  aligns.push(td.align);
663
+ if (td.labelKey && td.valueKey) {
664
+ keys[td.property] = { labelKey: td.labelKey, valueKey: td.valueKey, multiple: !!(td.valueToString || td['value-to-string']) };
665
+ }
661
666
  } else {
662
667
  others[String(col)] = [td.property, td.align];
663
668
  }
@@ -675,12 +680,72 @@ var exportXls = function exportXls(_ref6) {
675
680
  fields.splice(_i2, 0, others[_i2][0]);
676
681
  aligns.splice(_i2, 0, others[_i2][1]);
677
682
  }
678
- for (var _i3 = 0; _i3 < data.length; _i3++) {
683
+
684
+ var _loop = function _loop(_i3) {
679
685
  tbody += '<tr>';
680
- for (var x in fields) {
681
- tbody += '<td align="' + aligns[x] + '">' + data[_i3][fields[x]] + '</td>';
686
+
687
+ var _loop2 = function _loop2(_x) {
688
+ var field = '';
689
+ var valueKey = keys[fields[_x]] && keys[fields[_x]].valueKey ? keys[fields[_x]].valueKey : 'value';
690
+ var labelKey = keys[fields[_x]] && keys[fields[_x]].labelKey ? keys[fields[_x]].labelKey : 'name';
691
+ if (option[fields[_x]]) {
692
+ if (Array.isArray(data[_i3][fields[_x]])) {
693
+ field = [];
694
+ data[_i3][fields[_x]].forEach(function (ele) {
695
+ option[fields[_x]].forEach(function (item) {
696
+ // eslint-disable-next-line eqeqeq
697
+ if (item[valueKey] == ele) {
698
+ field.push(item[labelKey]);
699
+ return;
700
+ }
701
+ });
702
+ });
703
+ field = field.join(' ');
704
+ } else if (typeof data[_i3][fields[_x]] === 'string' && keys[fields[_x]] && keys[fields[_x]].multiple) {
705
+ field = [];
706
+ data[_i3][fields[_x]].split(',').forEach(function (ele) {
707
+ option[fields[_x]].forEach(function (item) {
708
+ // eslint-disable-next-line eqeqeq
709
+ if (item[valueKey] == ele) {
710
+ field.push(item[labelKey]);
711
+ return;
712
+ }
713
+ });
714
+ });
715
+ field = field.join(' ');
716
+ } else {
717
+ option[fields[_x]].forEach(function (item) {
718
+ // eslint-disable-next-line eqeqeq
719
+ if (item[valueKey] == data[_i3][fields[_x]]) {
720
+ field = item[labelKey];
721
+ return;
722
+ }
723
+ });
724
+ }
725
+ } else if (_typeof(data[_i3][fields[_x]]) === 'object' && keys[fields[_x]]) {
726
+ if (Array.isArray(data[_i3][fields[_x]])) {
727
+ data[_i3][fields[_x]].forEach(function (item) {
728
+ field = [];
729
+ field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
730
+ });
731
+ field = field.join(' ');
732
+ } else {
733
+ field = data[_i3][fields[_x]][labelKey];
734
+ }
735
+ } else {
736
+ field = data[_i3][fields[_x]];
737
+ }
738
+ tbody += '<td align="' + aligns[_x] + '">' + field + '</td>';
739
+ };
740
+
741
+ for (var _x in fields) {
742
+ _loop2(_x);
682
743
  }
683
744
  tbody += '</tr>';
745
+ };
746
+
747
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
748
+ _loop(_i3);
684
749
  }
685
750
  if (!name) {
686
751
  name = 'table_' + new Date().getTime();
@@ -1401,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1401
1466
  next();
1402
1467
  } else {
1403
1468
  var token = getStorage('token') || getStorage('Authorization');
1404
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1405
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1406
1484
  ajax({
1407
1485
  method: 'post',
1408
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -1429,10 +1507,27 @@ var isLogged = function isLogged(_ref8) {
1429
1507
  break;
1430
1508
  case 3:
1431
1509
  var href = res.results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
1432
- if (open) {
1433
- win.open(href);
1510
+ if (to.query.openType) {
1511
+ switch (to.query.openType) {
1512
+ case 'self':
1513
+ win.location.href = href;
1514
+ break;
1515
+ case 'blank':
1516
+ win.open(href);
1517
+ break;
1518
+ case 'top':
1519
+ win.top.location.href = href;
1520
+ break;
1521
+ case 'parent':
1522
+ win.parent.location.href = href;
1523
+ break;
1524
+ }
1434
1525
  } else {
1435
- win.top.location.href = href;
1526
+ if (open) {
1527
+ win.open(href);
1528
+ } else {
1529
+ win.top.location.href = href;
1530
+ }
1436
1531
  }
1437
1532
  break;
1438
1533
  }
@@ -1444,9 +1539,9 @@ var isLogged = function isLogged(_ref8) {
1444
1539
  }
1445
1540
  }
1446
1541
  }).catch(function (e) {});
1447
- } else if (token || to.path === '/' || to.path === '/login' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1) {
1448
- if (redirect && to.name && (to.name === 'login' || to.name === 'main')) {
1449
- window.location.replace(urlJoinParams({ url: './' + to.name + '.html', param: to.query }));
1542
+ } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
1543
+ if (redirect && (to.path === '/main' || to.path === '/login')) {
1544
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1450
1545
  } else {
1451
1546
  next();
1452
1547
  }
@@ -3638,6 +3733,124 @@ checkbox_group_src_main.install = function (Vue) {
3638
3733
  };
3639
3734
 
3640
3735
  /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
3736
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/ca-login/src/main.vue?vue&type=template&id=27153275&
3737
+ var mainvue_type_template_id_27153275_render = function () {
3738
+ var _vm = this
3739
+ var _h = _vm.$createElement
3740
+ var _c = _vm._self._c || _h
3741
+ return _c(
3742
+ "span",
3743
+ {
3744
+ staticClass: "es-ca-login",
3745
+ on: {
3746
+ click: function ($event) {
3747
+ $event.stopPropagation()
3748
+ return _vm.handleClick($event)
3749
+ },
3750
+ },
3751
+ },
3752
+ [_vm._t("default", [_c("i", { staticClass: "es-icon-ca" })])],
3753
+ 2
3754
+ )
3755
+ }
3756
+ var mainvue_type_template_id_27153275_staticRenderFns = []
3757
+ mainvue_type_template_id_27153275_render._withStripped = true
3758
+
3759
+
3760
+ // CONCATENATED MODULE: ./packages/ca-login/src/main.vue?vue&type=template&id=27153275&
3761
+
3762
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/ca-login/src/main.vue?vue&type=script&lang=js&
3763
+ //
3764
+ //
3765
+ //
3766
+ //
3767
+ //
3768
+ //
3769
+ //
3770
+ //
3771
+ //
3772
+ //
3773
+ //
3774
+ //
3775
+ //
3776
+ //
3777
+ //
3778
+
3779
+ //import util from 'eoss-ui/src/utils/util';
3780
+ /* harmony default export */ var ca_login_src_mainvue_type_script_lang_js_ = ({
3781
+ name: 'EsCaLogin',
3782
+ props: {
3783
+ type: String,
3784
+ javaScript: Array,
3785
+ exePath: String,
3786
+ license: {
3787
+ type: String,
3788
+ default: 'MIIMRwYJKoZIhvcNAQcCoIIMODCCDDQCAQExDjAMBggqgRzPVQGDEQUAMIIHjAYJKoZIhvcNAQcBoIIHfQSCB3l7Iklzc3VlciI6IigoKC4qQ0495oiQ6YO95biC5Yqz5Yqo5L+d6Zqc5L+h5oGv5Lit5b+DQ0EuKil8KC4qT1U9Q2xhc3MgMiBFbnRlcnByaXNlIEluZGl2aWR1YWwgU3Vic2NyaWJlciBDQS4qKXwoLipPVT1UZXJtcyBvZiB1c2UgYXQgaHR0cHM6Ly93d3cuaXRydXMuY29tLmNuL2N0bnJwYSBcXChjXFwpMjAwOC4qKXwoLipPVT1DaGluYSBUcnVzdCBOZXR3b3JrLiopfCguKk895Zub5bed55yB5pWw5a2X6K+B5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1/h4KGh6ASkrEu5gAl2LURADAMBggqgRzPVQGDdQUAA0cAMEQCIL201xfMjR+Y7Gxuq+1y+SxLqSXfJfMfWpM/K4TuV2GCAiDoPocZ+ReODefsGqhvtQ27OpvcYiA/N1ZB55qbXTKEezGCAUUwggFBAgEBMG0wVTEmMCQGA1UEAwwd5aSp6K+a5a6J5L+h5rWL6K+VU00y55So5oi3Q0ExDjAMBgNVBAsMBVRPUENBMQ4wDAYDVQQKDAVUT1BDQTELMAkGA1UEBhMCQ04CFF8lnNrMgrt+8wWzAHuLjsm9+bXyMAwGCCqBHM9VAYMRBQCgaTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNTA1MDExNzIwNTJaMC8GCSqGSIb3DQEJBDEiBCDs2pV1a3ksLnX9zKPnhTuhyReuILoHJ71xo6Thv8PQ4zAMBggqgRzPVQGCLQUABEYwRAIgZ5y2C6hiI4RdMtcVEWcVh0qPhp0rBpdTYIGqBfZlvIwCIFQD0G7u4dK0k0UAnTs3WVNrVfRKE7JLcLprZ+787v91'
3789
+ }
3790
+ },
3791
+ computed: {
3792
+ path: function path() {
3793
+ if (this.exePath) {
3794
+ return this.exePath;
3795
+ }
3796
+ if (this.type === 'SICHUAN' || this.type === 'sichuan') {
3797
+ return 'https://cdn.scca.com.cn/Files/证书助手(i信).rar';
3798
+ }
3799
+ }
3800
+ },
3801
+ watch: {},
3802
+ data: function data() {
3803
+ return {};
3804
+ },
3805
+ created: function created() {
3806
+ // if (this.type === 'SICHUAN' || this.type === 'sichuan') {
3807
+ // loadJs();
3808
+ // }
3809
+ },
3810
+ mounted: function mounted() {},
3811
+
3812
+ methods: {
3813
+ handleClick: function handleClick() {
3814
+ if (this.type === 'SICHUAN' || this.type === 'sichuan') {
3815
+ var config = {
3816
+ license: this.license,
3817
+ exepath: this.path,
3818
+ disableExeUrl: true
3819
+ };
3820
+ }
3821
+ }
3822
+ }
3823
+ });
3824
+ // CONCATENATED MODULE: ./packages/ca-login/src/main.vue?vue&type=script&lang=js&
3825
+ /* harmony default export */ var packages_ca_login_src_mainvue_type_script_lang_js_ = (ca_login_src_mainvue_type_script_lang_js_);
3826
+ // CONCATENATED MODULE: ./packages/ca-login/src/main.vue
3827
+
3828
+
3829
+
3830
+
3831
+
3832
+ /* normalize component */
3833
+
3834
+ var ca_login_src_main_component = normalizeComponent(
3835
+ packages_ca_login_src_mainvue_type_script_lang_js_,
3836
+ mainvue_type_template_id_27153275_render,
3837
+ mainvue_type_template_id_27153275_staticRenderFns,
3838
+ false,
3839
+ null,
3840
+ null,
3841
+ null
3842
+
3843
+ )
3844
+
3845
+ /* harmony default export */ var ca_login_src_main = (ca_login_src_main_component.exports);
3846
+ // CONCATENATED MODULE: ./packages/ca-login/index.js
3847
+
3848
+
3849
+ ca_login_src_main.install = function (Vue) {
3850
+ return Vue.component(ca_login_src_main.name, ca_login_src_main);
3851
+ };
3852
+
3853
+ /* harmony default export */ var ca_login = (ca_login_src_main);
3641
3854
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=template&id=46ef4fcd&
3642
3855
  var mainvue_type_template_id_46ef4fcd_render = function () {
3643
3856
  var _vm = this
@@ -4365,8 +4578,8 @@ clients_src_main.install = function (Vue) {
4365
4578
  };
4366
4579
 
4367
4580
  /* harmony default export */ var clients = (clients_src_main);
4368
- // 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=97c4c582&
4369
- var mainvue_type_template_id_97c4c582_render = function () {
4581
+ // 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=154b78e2&
4582
+ var mainvue_type_template_id_154b78e2_render = function () {
4370
4583
  var _vm = this
4371
4584
  var _h = _vm.$createElement
4372
4585
  var _c = _vm._self._c || _h
@@ -4698,11 +4911,11 @@ var mainvue_type_template_id_97c4c582_render = function () {
4698
4911
  1
4699
4912
  )
4700
4913
  }
4701
- var mainvue_type_template_id_97c4c582_staticRenderFns = []
4702
- mainvue_type_template_id_97c4c582_render._withStripped = true
4914
+ var mainvue_type_template_id_154b78e2_staticRenderFns = []
4915
+ mainvue_type_template_id_154b78e2_render._withStripped = true
4703
4916
 
4704
4917
 
4705
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=97c4c582&
4918
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=154b78e2&
4706
4919
 
4707
4920
  // 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&
4708
4921
  var childrenvue_type_template_id_796433ee_render = function () {
@@ -4752,8 +4965,8 @@ childrenvue_type_template_id_796433ee_render._withStripped = true
4752
4965
 
4753
4966
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
4754
4967
 
4755
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=177bef1c&
4756
- var columnvue_type_template_id_177bef1c_render = function () {
4968
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=1f31fcc6&
4969
+ var columnvue_type_template_id_1f31fcc6_render = function () {
4757
4970
  var _vm = this
4758
4971
  var _h = _vm.$createElement
4759
4972
  var _c = _vm._self._c || _h
@@ -4770,6 +4983,8 @@ var columnvue_type_template_id_177bef1c_render = function () {
4770
4983
  attrs: {
4771
4984
  "filter-icon": _vm.filterIcon,
4772
4985
  label: _vm.item.title || _vm.item.label,
4986
+ "label-key": _vm.item.labelKey,
4987
+ "value-key": _vm.item.valueKey,
4773
4988
  prop: _vm.item.field || _vm.item.prop,
4774
4989
  fixed: _vm.item.fixed,
4775
4990
  sortable: _vm.item.sortable || _vm.item.sort,
@@ -5645,6 +5860,8 @@ var columnvue_type_template_id_177bef1c_render = function () {
5645
5860
  attrs: {
5646
5861
  "filter-icon": _vm.filterIcon,
5647
5862
  label: _vm.item.title || _vm.item.label,
5863
+ "label-key": _vm.item.labelKey,
5864
+ "value-key": _vm.item.valueKey,
5648
5865
  prop: _vm.item.field || _vm.item.prop,
5649
5866
  fixed: _vm.item.fixed,
5650
5867
  sortable: _vm.item.sortable || _vm.item.sort,
@@ -5709,11 +5926,11 @@ var columnvue_type_template_id_177bef1c_render = function () {
5709
5926
  2
5710
5927
  )
5711
5928
  }
5712
- var columnvue_type_template_id_177bef1c_staticRenderFns = []
5713
- columnvue_type_template_id_177bef1c_render._withStripped = true
5929
+ var columnvue_type_template_id_1f31fcc6_staticRenderFns = []
5930
+ columnvue_type_template_id_1f31fcc6_render._withStripped = true
5714
5931
 
5715
5932
 
5716
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=177bef1c&
5933
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=1f31fcc6&
5717
5934
 
5718
5935
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5719
5936
  var regenerator_ = __webpack_require__(2);
@@ -6274,6 +6491,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6274
6491
  //
6275
6492
  //
6276
6493
  //
6494
+ //
6495
+ //
6496
+ //
6497
+ //
6277
6498
 
6278
6499
 
6279
6500
 
@@ -6474,8 +6695,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6474
6695
  var data = col.data ? col.data : col.optionData ? rows[col.optionData] : this.optionDatas[field];
6475
6696
  if (utils_util["a" /* default */].isObject(rows[field])) {
6476
6697
  return rows[field][col.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
6477
- }
6478
- if (Array.isArray(rows[field])) {
6698
+ } else if (Array.isArray(rows[field])) {
6479
6699
  var vals = rows[field].map(function (item) {
6480
6700
  if (utils_util["a" /* default */].isObject(item)) {
6481
6701
  return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
@@ -6487,12 +6707,22 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6487
6707
  }
6488
6708
  });
6489
6709
  return vals.join(col.symbol ? col.symbol : '-');
6710
+ } else {
6711
+ if (col.valueToString || col['value-to-string']) {
6712
+ var _vals = rows[field].split(',').map(function (item) {
6713
+ if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
6714
+ return _this2.getLabel(data, item, col);
6715
+ }
6716
+ return item;
6717
+ });
6718
+ return _vals.join(col.symbol ? col.symbol : '-');
6719
+ } else {
6720
+ if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
6721
+ return this.getLabel(data, rows[field], col);
6722
+ }
6723
+ return rows[field];
6724
+ }
6490
6725
  }
6491
-
6492
- if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
6493
- return this.getLabel(data, rows[field], col);
6494
- }
6495
- return rows[field];
6496
6726
  },
6497
6727
  getLabel: function getLabel(obj, val, col) {
6498
6728
  for (var i = 0; i < obj.length; i++) {
@@ -6596,8 +6826,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6596
6826
 
6597
6827
  var column_component = normalizeComponent(
6598
6828
  src_columnvue_type_script_lang_js_,
6599
- columnvue_type_template_id_177bef1c_render,
6600
- columnvue_type_template_id_177bef1c_staticRenderFns,
6829
+ columnvue_type_template_id_1f31fcc6_render,
6830
+ columnvue_type_template_id_1f31fcc6_staticRenderFns,
6601
6831
  false,
6602
6832
  null,
6603
6833
  null,
@@ -7932,7 +8162,8 @@ var mainvue_type_script_lang_js_components;
7932
8162
  utils_util["a" /* default */].exportXls({
7933
8163
  thead: thead,
7934
8164
  data: this.datas,
7935
- name: this.fileName
8165
+ name: this.fileName,
8166
+ option: this.optionDatas
7936
8167
  });
7937
8168
  }
7938
8169
  this.$emit('btnClick', res, this.datas, thead, rows);
@@ -8100,8 +8331,8 @@ var mainvue_type_script_lang_js_components;
8100
8331
 
8101
8332
  var data_table_src_main_component = normalizeComponent(
8102
8333
  packages_data_table_src_mainvue_type_script_lang_js_,
8103
- mainvue_type_template_id_97c4c582_render,
8104
- mainvue_type_template_id_97c4c582_staticRenderFns,
8334
+ mainvue_type_template_id_154b78e2_render,
8335
+ mainvue_type_template_id_154b78e2_staticRenderFns,
8105
8336
  false,
8106
8337
  null,
8107
8338
  null,
@@ -10796,8 +11027,8 @@ error_page_src_main.install = function (Vue) {
10796
11027
  };
10797
11028
 
10798
11029
  /* harmony default export */ var error_page = (error_page_src_main);
10799
- // 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=7542ec09&
10800
- var mainvue_type_template_id_7542ec09_render = function () {
11030
+ // 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=79406044&
11031
+ var mainvue_type_template_id_79406044_render = function () {
10801
11032
  var _vm = this
10802
11033
  var _h = _vm.$createElement
10803
11034
  var _c = _vm._self._c || _h
@@ -19341,11 +19572,11 @@ var mainvue_type_template_id_7542ec09_render = function () {
19341
19572
  2
19342
19573
  )
19343
19574
  }
19344
- var mainvue_type_template_id_7542ec09_staticRenderFns = []
19345
- mainvue_type_template_id_7542ec09_render._withStripped = true
19575
+ var mainvue_type_template_id_79406044_staticRenderFns = []
19576
+ mainvue_type_template_id_79406044_render._withStripped = true
19346
19577
 
19347
19578
 
19348
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=7542ec09&
19579
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=79406044&
19349
19580
 
19350
19581
  // CONCATENATED MODULE: ./src/utils/rules.js
19351
19582
  // 手机号
@@ -22700,10 +22931,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
22700
22931
  },
22701
22932
  props: {
22702
22933
  model: {
22703
- type: [Object, String],
22704
- default: function _default() {
22705
- return {};
22706
- }
22934
+ type: [Object, String]
22707
22935
  },
22708
22936
  steps: Object,
22709
22937
  param: {
@@ -22855,6 +23083,14 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
22855
23083
  models: {
22856
23084
  get: function get() {
22857
23085
  if (this.model && typeof this.model !== 'string') {
23086
+ if (this.autoId && !this.businessId) {
23087
+ if (this.model[typeof this.autoId === 'string' ? this.autoId : 'id']) {
23088
+ this.$emit('update:businessId', this.model[typeof this.autoId === 'string' ? this.autoId : 'id']);
23089
+ } else {
23090
+ this.$emit('update:businessId', this.uuid);
23091
+ this.$emit('getId', this.uuid);
23092
+ }
23093
+ }
22858
23094
  return this.model;
22859
23095
  }
22860
23096
  return this.values;
@@ -22866,14 +23102,12 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
22866
23102
  _value: function _value() {
22867
23103
  var data = {};
22868
23104
  if (this.businessId !== undefined) {
22869
- data = { id: this.businessId };
23105
+ data[typeof this.autoId === 'string' ? this.autoId : 'id'] = this.businessId;
22870
23106
  } else if (typeof this.model !== 'string' && this.autoId) {
22871
23107
  if (typeof this.autoId === 'boolean' && !this.model.id) {
22872
23108
  data = { id: this.uuid };
22873
- this.$emit('update:businessId', this.uuid);
22874
23109
  } else if (!this.model[this.autoId]) {
22875
23110
  data[this.autoId] = this.uuid;
22876
- this.$emit('update:businessId', this.uuid);
22877
23111
  }
22878
23112
  }
22879
23113
  return utils_util["a" /* default */].extend({}, data, this.value);
@@ -23764,8 +23998,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
23764
23998
 
23765
23999
  var form_src_main_component = normalizeComponent(
23766
24000
  packages_form_src_mainvue_type_script_lang_js_,
23767
- mainvue_type_template_id_7542ec09_render,
23768
- mainvue_type_template_id_7542ec09_staticRenderFns,
24001
+ mainvue_type_template_id_79406044_render,
24002
+ mainvue_type_template_id_79406044_staticRenderFns,
23769
24003
  false,
23770
24004
  null,
23771
24005
  null,
@@ -65428,7 +65662,8 @@ wxlogin_src_main.install = function (Vue) {
65428
65662
 
65429
65663
 
65430
65664
 
65431
- var components = [packages_button, button_group, checkbox_group, card, cascader, clients, data_table, data_table_form, date_picker, packages_dialog, enterprise, error_page, packages_form, packages_flow, flow_group, flow_list, handle_user, packages_handler, packages_input, input_number, packages_label, login, packages_main, mainComp, menu, nav, packages_notify, pagination, packages_page, player, qr_code, radio_group, packages_select, select_ganged, selector, selector_panel, packages_sizer, steps, packages_switch, packages_tabs, tabs_panel, tips, packages_tree, tree_group, packages_toolbar, table_form, upload, wujie, wxlogin];
65665
+
65666
+ var components = [packages_button, button_group, checkbox_group, ca_login, card, cascader, clients, data_table, data_table_form, date_picker, packages_dialog, enterprise, error_page, packages_form, packages_flow, flow_group, flow_list, handle_user, packages_handler, packages_input, input_number, packages_label, login, packages_main, mainComp, menu, nav, packages_notify, pagination, packages_page, player, qr_code, radio_group, packages_select, select_ganged, selector, selector_panel, packages_sizer, steps, packages_switch, packages_tabs, tabs_panel, tips, packages_tree, tree_group, packages_toolbar, table_form, upload, wujie, wxlogin];
65432
65667
 
65433
65668
  var install = function install(Vue) {
65434
65669
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -65443,11 +65678,12 @@ if (typeof window !== 'undefined' && window.Vue) {
65443
65678
  }
65444
65679
 
65445
65680
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
65446
- version: '0.4.10',
65681
+ version: '0.4.15',
65447
65682
  install: install,
65448
65683
  Button: packages_button,
65449
65684
  ButtonGroup: button_group,
65450
65685
  CheckboxGroup: checkbox_group,
65686
+ CaLogin: ca_login,
65451
65687
  Card: card,
65452
65688
  Cascader: cascader,
65453
65689
  Clients: clients,
package/lib/error-page.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 = 39);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 40);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 39:
195
+ /***/ 40:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";