cnhis-design-vue 2.1.90 → 2.1.92

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 (97) hide show
  1. package/CHANGELOG.md +25 -8
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +68 -68
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +63 -58
  14. package/es/button/style.css +1 -1
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/carousel/index.js +8 -8
  19. package/es/cascader/index.js +8 -8
  20. package/es/checkbox/index.js +9 -9
  21. package/es/col/index.js +8 -8
  22. package/es/collapse/index.js +8 -8
  23. package/es/color-picker/index.js +1 -1
  24. package/es/comment/index.js +8 -8
  25. package/es/config-provider/index.js +8 -8
  26. package/es/date-picker/index.js +8 -8
  27. package/es/descriptions/index.js +8 -8
  28. package/es/divider/index.js +8 -8
  29. package/es/drag-layout/index.js +3 -3
  30. package/es/drawer/index.js +8 -8
  31. package/es/dropdown/index.js +8 -8
  32. package/es/editor/index.js +1 -1
  33. package/es/ellipsis/index.js +1 -1
  34. package/es/empty/index.js +8 -8
  35. package/es/fabric-chart/index.js +9 -9
  36. package/es/form/index.js +8 -8
  37. package/es/form-model/index.js +8 -8
  38. package/es/form-table/index.js +66 -66
  39. package/es/index/index.js +468 -463
  40. package/es/index/style.css +1 -1
  41. package/es/input/index.js +9 -9
  42. package/es/input-number/index.js +8 -8
  43. package/es/layout/index.js +8 -8
  44. package/es/list/index.js +8 -8
  45. package/es/locale-provider/index.js +8 -8
  46. package/es/map/index.js +9 -9
  47. package/es/mentions/index.js +8 -8
  48. package/es/menu/index.js +8 -8
  49. package/es/message/index.js +8 -8
  50. package/es/multi-chat/index.js +76 -76
  51. package/es/multi-chat-client/index.js +70 -70
  52. package/es/multi-chat-history/index.js +4 -4
  53. package/es/multi-chat-record/index.js +14 -14
  54. package/es/multi-chat-setting/index.js +22 -22
  55. package/es/multi-chat-sip/index.js +1 -1
  56. package/es/notification/index.js +8 -8
  57. package/es/page-header/index.js +8 -8
  58. package/es/pagination/index.js +8 -8
  59. package/es/popconfirm/index.js +8 -8
  60. package/es/popover/index.js +8 -8
  61. package/es/progress/index.js +8 -8
  62. package/es/radio/index.js +9 -9
  63. package/es/rate/index.js +8 -8
  64. package/es/result/index.js +8 -8
  65. package/es/row/index.js +8 -8
  66. package/es/scale-container/index.js +1 -1
  67. package/es/scale-view/index.js +27 -27
  68. package/es/select/index.js +12 -12
  69. package/es/select-label/index.js +11 -11
  70. package/es/select-person/index.js +2 -2
  71. package/es/select-tag/index.js +4 -4
  72. package/es/shortcut-setter/index.js +10 -10
  73. package/es/skeleton/index.js +8 -8
  74. package/es/slider/index.js +8 -8
  75. package/es/space/index.js +8 -8
  76. package/es/spin/index.js +8 -8
  77. package/es/statistic/index.js +8 -8
  78. package/es/steps/index.js +8 -8
  79. package/es/switch/index.js +8 -8
  80. package/es/table-filter/index.js +120 -115
  81. package/es/table-filter/style.css +1 -1
  82. package/es/tabs/index.js +8 -8
  83. package/es/tag/index.js +9 -9
  84. package/es/time-picker/index.js +8 -8
  85. package/es/timeline/index.js +8 -8
  86. package/es/tooltip/index.js +8 -8
  87. package/es/transfer/index.js +8 -8
  88. package/es/tree/index.js +8 -8
  89. package/es/tree-select/index.js +8 -8
  90. package/es/upload/index.js +8 -8
  91. package/es/verification-code/index.js +2 -2
  92. package/lib/cui.common.js +8667 -10049
  93. package/lib/cui.umd.js +8667 -10049
  94. package/lib/cui.umd.min.js +78 -78
  95. package/package.json +1 -1
  96. package/packages/button/src/ButtonPrint/index.vue +14 -13
  97. package/packages/table-filter/src/quick-search/QuickSearch.vue +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.90",
3
+ "version": "2.1.92",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -45,7 +45,6 @@
45
45
  * @time 2021-06-08
46
46
  */
47
47
 
48
- let printInstance = null;
49
48
  let httpFn = null;
50
49
  import Print from './js/print.es.min';
51
50
  import IdentityVerification from './components/IdentityVerification';
@@ -194,7 +193,8 @@ export default create({
194
193
  },
195
194
  isInited: false,
196
195
  watchPrintParamsReformatFn: null,
197
- spinTimer: null
196
+ spinTimer: null,
197
+ printInstance: null
198
198
  };
199
199
  },
200
200
  beforeCreate() {
@@ -208,7 +208,8 @@ export default create({
208
208
  },
209
209
  beforeDestroy() {
210
210
  // 创建Print实例的时候会在webview中注册一个事件, 需要调用printInstance.destroy()手动清除
211
- printInstance?.destroy?.();
211
+ this.printInstance?.destroy?.();
212
+ this.printInstance = null;
212
213
  },
213
214
  watch: {
214
215
  // 监听变化, 重新格式化printParams
@@ -328,8 +329,8 @@ export default create({
328
329
  },
329
330
  /* */
330
331
  instantiatePrintSDK() {
331
- if (printInstance) return false;
332
- printInstance = new Print();
332
+ if (this.printInstance) return false;
333
+ this.printInstance = new Print();
333
334
  },
334
335
  /* */
335
336
  queryFormatList() {
@@ -514,7 +515,7 @@ export default create({
514
515
  if (this.strategy === 'MULTI') {
515
516
  for (let i = 0; i < this.params.length; i++) {
516
517
  const params = this.getHisParams(i);
517
- printInstance[printFn](7, params)
518
+ this.printInstance[printFn](7, params)
518
519
  .then(res => {
519
520
  console.log(res, '777777777777');
520
521
  })
@@ -524,7 +525,7 @@ export default create({
524
525
  }
525
526
  } else {
526
527
  const params = this.getOnceHisParams();
527
- printInstance[printFn](7, params)
528
+ this.printInstance[printFn](7, params)
528
529
  .then(res => {
529
530
  console.log(res, '777777777777');
530
531
  })
@@ -541,7 +542,7 @@ export default create({
541
542
  // 循环多条
542
543
  for (let i = 0; i < this.printParams.length; i++) {
543
544
  if (i > 0) queryParams.printdlgshow = '0';
544
- printInstance.printDirect(
545
+ this.printInstance.printDirect(
545
546
  {
546
547
  ...queryParams,
547
548
  params: this.getPrintParams(i)
@@ -552,7 +553,7 @@ export default create({
552
553
  }
553
554
  } else {
554
555
  // 聚合一条
555
- printInstance.printDirect(
556
+ this.printInstance.printDirect(
556
557
  {
557
558
  ...queryParams,
558
559
  params: this.getOnceParams()
@@ -611,7 +612,7 @@ export default create({
611
612
  if (this.versionType == 1 || this.versionType == 3) {
612
613
  const params = this.strategy === 'MULTI' ? this.getHisParams() : this.getOnceHisParams();
613
614
  const printFn = this.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
614
- printInstance[printFn](8, params)
615
+ this.printInstance[printFn](8, params)
615
616
  .then(res => {
616
617
  console.log(res, 88888888);
617
618
  })
@@ -621,7 +622,7 @@ export default create({
621
622
  } else {
622
623
  const IS_MULTI = this.strategy === 'MULTI';
623
624
 
624
- printInstance.preview(
625
+ this.printInstance.preview(
625
626
  {
626
627
  ...this.queryParams,
627
628
  params: IS_MULTI ? this.getPrintParams() : this.getOnceParams()
@@ -649,7 +650,7 @@ export default create({
649
650
  if (this.versionType == 1 || this.versionType == 3) {
650
651
  const params = this.strategy === 'MULTI' ? this.getHisParams() : this.getOnceHisParams();
651
652
  const printFn = this.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
652
- printInstance[printFn](9, params)
653
+ this.printInstance[printFn](9, params)
653
654
  .then(res => {
654
655
  console.log(res, 999999);
655
656
  })
@@ -672,7 +673,7 @@ export default create({
672
673
  params: this.getPrintParams(),
673
674
  token
674
675
  };
675
- printInstance.editPrintFormat(
676
+ this.printInstance.editPrintFormat(
676
677
  queryParams,
677
678
  res => {
678
679
  this.callLocalServicesSuccessCb(res, 'edit');
@@ -1796,7 +1796,7 @@ export default create({
1796
1796
  async handleSetLabelOptions(labelType, el) {
1797
1797
  let labelObj = {};
1798
1798
  let res = (await this.handleRequestedLabel(labelType)) || {};
1799
- let labelList = res?.data?.map?.rows ||[]
1799
+ let labelList = res && Array.isArray(res) ? res : res?.data?.map?.rows || []
1800
1800
  labelList.forEach(n => {
1801
1801
  this.$set(n, 'isSelect', false);
1802
1802
  if (labelObj[n.typeName]) {