cnhis-design-vue 2.1.51 → 2.1.52

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 (95) hide show
  1. package/CHANGELOG.md +15 -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 +64 -79
  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/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +9 -9
  35. package/es/form/index.js +8 -8
  36. package/es/form-model/index.js +8 -8
  37. package/es/form-table/index.js +62 -62
  38. package/es/index/index.js +442 -457
  39. package/es/index/style.css +1 -1
  40. package/es/input/index.js +9 -9
  41. package/es/input-number/index.js +8 -8
  42. package/es/layout/index.js +8 -8
  43. package/es/list/index.js +8 -8
  44. package/es/locale-provider/index.js +8 -8
  45. package/es/map/index.js +9 -9
  46. package/es/mentions/index.js +8 -8
  47. package/es/menu/index.js +8 -8
  48. package/es/message/index.js +8 -8
  49. package/es/multi-chat/index.js +75 -75
  50. package/es/multi-chat-client/index.js +69 -69
  51. package/es/multi-chat-history/index.js +4 -4
  52. package/es/multi-chat-record/index.js +14 -14
  53. package/es/multi-chat-setting/index.js +22 -22
  54. package/es/multi-chat-sip/index.js +1 -1
  55. package/es/notification/index.js +8 -8
  56. package/es/page-header/index.js +8 -8
  57. package/es/pagination/index.js +8 -8
  58. package/es/popconfirm/index.js +8 -8
  59. package/es/popover/index.js +8 -8
  60. package/es/progress/index.js +8 -8
  61. package/es/radio/index.js +9 -9
  62. package/es/rate/index.js +8 -8
  63. package/es/result/index.js +8 -8
  64. package/es/row/index.js +8 -8
  65. package/es/scale-view/index.js +33 -33
  66. package/es/select/index.js +12 -12
  67. package/es/select-label/index.js +11 -11
  68. package/es/select-person/index.js +2 -2
  69. package/es/shortcut-setter/index.js +10 -10
  70. package/es/skeleton/index.js +8 -8
  71. package/es/slider/index.js +8 -8
  72. package/es/space/index.js +8 -8
  73. package/es/spin/index.js +8 -8
  74. package/es/statistic/index.js +8 -8
  75. package/es/steps/index.js +8 -8
  76. package/es/switch/index.js +8 -8
  77. package/es/table-filter/index.js +89 -104
  78. package/es/table-filter/style.css +1 -1
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +394 -408
  90. package/lib/cui.umd.js +394 -408
  91. package/lib/cui.umd.min.js +12 -12
  92. package/package.json +1 -1
  93. package/packages/button/src/ButtonPrint/index.vue +48 -59
  94. package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
  95. package/packages/scale-view/scaleView.vue +2010 -2010
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.51",
3
+ "version": "2.1.52",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -148,16 +148,16 @@ export default create({
148
148
  default: '0'
149
149
  },
150
150
  // 没有模板提示
151
- noformatTips:{
151
+ noformatTips: {
152
152
  type: String,
153
153
  default: ''
154
154
  },
155
155
 
156
- getOnceParamsAfter:{
156
+ getOnceParamsAfter: {
157
157
  type: Function
158
158
  },
159
159
 
160
- getPrintParamsAfter:{
160
+ getPrintParamsAfter: {
161
161
  type: Function
162
162
  }
163
163
  },
@@ -170,8 +170,14 @@ export default create({
170
170
  formatTitle() {
171
171
  return this.currentFormatItem?.name || '格式选择';
172
172
  },
173
- printExtraParams(){
174
- return this?.printConfig?.printExtraParams || {};
173
+ printExtraParams() {
174
+ return this?.printConfig?.printExtraParams || {};
175
+ },
176
+ queryParams() {
177
+ return {
178
+ formatId: this.currentFormatId,
179
+ templateId: this.getTemplateIdByFormatId(this.currentFormatId)
180
+ };
175
181
  }
176
182
  },
177
183
  data() {
@@ -278,7 +284,7 @@ export default create({
278
284
  this.currentFormatId = this.getDefaultFormatId(this.formatList, 'defaultFlag');
279
285
 
280
286
  if (!this.currentFormatId) {
281
- this.$message.error(this.noformatTips ||'获取打印格式失败,请联系管理员!');
287
+ this.$message.error(this.noformatTips || '获取打印格式失败,请联系管理员!');
282
288
  return this.requestError();
283
289
  }
284
290
  if (!this.currentFormatId) {
@@ -384,8 +390,8 @@ export default create({
384
390
  if (i.type === 'DATETIME') {
385
391
  tVal = tableVal ? moment(tableVal).format('YYYY-MM-DD HH:mm:ss') : '';
386
392
  }
387
- if(i.type === 'TEXT'){
388
- tVal = String(tableVal) || ''
393
+ if (i.type === 'TEXT') {
394
+ tVal = String(tableVal) || '';
389
395
  }
390
396
 
391
397
  return val ? val : tVal;
@@ -446,8 +452,8 @@ export default create({
446
452
  ...(params || {}),
447
453
  ...(this.token ? { token: this.token } : {}),
448
454
  ...extraParams
449
- }
450
- if(typeof this.getPrintParamsAfter === 'function'){
455
+ };
456
+ if (typeof this.getPrintParamsAfter === 'function') {
451
457
  let t = this.getPrintParamsAfter(res);
452
458
  return t || res;
453
459
  }
@@ -461,7 +467,7 @@ export default create({
461
467
  // 聚合一条
462
468
  let params = {};
463
469
  let obj = {};
464
- let cur = this.printParams?.[0] || {}
470
+ let cur = this.printParams?.[0] || {};
465
471
  if (this.templateParams?.customizeDataset?.length) {
466
472
  // 有模板数据
467
473
  const key = Object.keys(cur?.datasetData || {})?.[0] || '';
@@ -481,8 +487,8 @@ export default create({
481
487
  });
482
488
  }
483
489
  params = Object.assign({}, JSON.parse(this.getPrintParams(0)), obj);
484
- if(typeof this.getOnceParamsAfter === 'function'){
485
- let res = this.getOnceParamsAfter(params,obj);
490
+ if (typeof this.getOnceParamsAfter === 'function') {
491
+ let res = this.getOnceParamsAfter(params, obj);
486
492
  return res || params;
487
493
  }
488
494
  return JSON.stringify(params);
@@ -530,27 +536,30 @@ export default create({
530
536
  });
531
537
  }
532
538
  } else {
539
+ const queryParams = {
540
+ ...this.queryParams,
541
+ printdlgshow: this.printdlgshow
542
+ };
533
543
  if (this.strategy === 'MULTI') {
534
544
  // 循环多条
535
545
  for (let i = 0; i < this.printParams.length; i++) {
536
- const queryParams = {
537
- formatId: this.currentFormatId,
538
- templateId: this.getTemplateIdByFormatId(this.currentFormatId),
539
- params: this.getPrintParams(i),
540
- printdlgshow: this.printdlgshow
541
- };
542
- printInstance.printDirect(queryParams, callLocalServicesSuccessCb, this.callLocalServicesErrorCb);
546
+ if (i > 0) queryParams.printdlgshow = '0';
547
+ printInstance.printDirect(
548
+ {
549
+ ...queryParams,
550
+ params: this.getPrintParams(i)
551
+ },
552
+ callLocalServicesSuccessCb,
553
+ this.callLocalServicesErrorCb
554
+ );
543
555
  }
544
556
  } else {
545
557
  // 聚合一条
546
- const queryParams = {
547
- formatId: this.currentFormatId,
548
- templateId: this.getTemplateIdByFormatId(this.currentFormatId),
549
- params: this.getOnceParams(),
550
- printdlgshow: this.printdlgshow
551
- };
552
558
  printInstance.printDirect(
553
- queryParams,
559
+ {
560
+ ...queryParams,
561
+ params: this.getOnceParams()
562
+ },
554
563
  res => {
555
564
  this.callLocalServicesSuccessCb(res, 'print');
556
565
  },
@@ -614,36 +623,17 @@ export default create({
614
623
  });
615
624
  } else {
616
625
  const IS_MULTI = this.strategy === 'MULTI';
617
- if (IS_MULTI) {
618
- // 循环多条
619
- for (let i = 0; i < this.printParams.length; i++) {
620
- const queryParams = {
621
- formatId: this.currentFormatId,
622
- templateId: this.getTemplateIdByFormatId(this.currentFormatId),
623
- params: this.getPrintParams(i)
624
- };
625
- printInstance.preview(
626
- queryParams,
627
- res => {
628
- this.callLocalServicesSuccessCb(res, 'preview');
629
- },
630
- this.callLocalServicesErrorCb
631
- );
632
- }
633
- } else {
634
- const queryParams = {
635
- formatId: this.currentFormatId,
636
- templateId: this.getTemplateIdByFormatId(this.currentFormatId),
637
- params: this.getOnceParams()
638
- };
639
- printInstance.preview(
640
- queryParams,
641
- res => {
642
- this.callLocalServicesSuccessCb(res, 'preview');
643
- },
644
- this.callLocalServicesErrorCb
645
- );
646
- }
626
+
627
+ printInstance.preview(
628
+ {
629
+ ...this.queryParams,
630
+ params: IS_MULTI ? this.getPrintParams() : this.getOnceParams()
631
+ },
632
+ res => {
633
+ this.callLocalServicesSuccessCb(res, 'preview');
634
+ },
635
+ this.callLocalServicesErrorCb
636
+ );
647
637
  }
648
638
  })
649
639
  .finally(() => {
@@ -681,8 +671,7 @@ export default create({
681
671
  this.identityVerification.visible = false;
682
672
 
683
673
  const queryParams = {
684
- formatId: this.currentFormatId,
685
- templateId: this.getTemplateIdByFormatId(this.currentFormatId),
674
+ ...this.queryParams,
686
675
  params: this.getPrintParams(),
687
676
  token
688
677
  };
@@ -1,59 +1,59 @@
1
- const data = {
2
- style: {
3
- evented: false,
4
- selectable: false
5
- },
6
- rectStyle: {
7
- fill: 'transparent',
8
- stroke: '#999',
9
- strokeWidth: 1
10
- },
11
- textStyle: {
12
- fontFamily: '微软雅黑',
13
- fontSize: 12,
14
- fill: '#000',
15
- lineHeight: 1
16
- },
17
- borderStyle: {
18
- stroke: '#999',
19
- strokeWidth: 1,
20
- selectable: false,
21
- evented: false
22
- },
23
- // 折线图中的点
24
- pointStyle: {
25
- fill: '#ffffff', // 填充色
26
- stroke: '#000000', // 描边色
27
- originX: 'center',
28
- originY: 'center'
29
- },
30
- // 折线图中的线
31
- lineStyle: {
32
- stroke: '#000', // 描边色
33
- strokeWidth: 1, // 描边宽度
34
- originX: 'center',
35
- originY: 'center'
36
- },
37
- topSpaceHeight: 10, // templateData.top.spaceHeight
38
- topSpaceGridNumber: 3, // templateData.top.xScalevalue.spaceGridNumber
39
- leftSpaceGridNumber: 2, // templateData.left.leftYScalevalue.spaceGridNumber
40
- rightSpaceGridNumber: 2, // templateData.right.rightYScalevalue.spaceGridNumber
41
- topTotal: {
42
- title: '总量',
43
- width: 0,
44
- style: {
45
- fontFamily: '微软雅黑',
46
- fontSize: 12,
47
- fill: '#000',
48
- lineHeight: 1
49
- }
50
- },
51
- criticalStyle: { // 危急值样式
52
- stroke: 'purple', // 颜色 默认 #999
53
- strokeWidth: 1, // 线宽 默认 1
54
- strokeDashArray: [0, 0] // 实线设置 默认[0, 0]
55
- },
56
- bottomNumberLeftSpace: 10 // 底部标记的序号与标记之间的距离
57
- };
58
-
59
- export default data;
1
+ const data = {
2
+ style: {
3
+ evented: false,
4
+ selectable: false
5
+ },
6
+ rectStyle: {
7
+ fill: 'transparent',
8
+ stroke: '#999',
9
+ strokeWidth: 1
10
+ },
11
+ textStyle: {
12
+ fontFamily: '微软雅黑',
13
+ fontSize: 12,
14
+ fill: '#000',
15
+ lineHeight: 1
16
+ },
17
+ borderStyle: {
18
+ stroke: '#999',
19
+ strokeWidth: 1,
20
+ selectable: false,
21
+ evented: false
22
+ },
23
+ // 折线图中的点
24
+ pointStyle: {
25
+ fill: '#ffffff', // 填充色
26
+ stroke: '#000000', // 描边色
27
+ originX: 'center',
28
+ originY: 'center'
29
+ },
30
+ // 折线图中的线
31
+ lineStyle: {
32
+ stroke: '#000', // 描边色
33
+ strokeWidth: 1, // 描边宽度
34
+ originX: 'center',
35
+ originY: 'center'
36
+ },
37
+ topSpaceHeight: 10, // templateData.top.spaceHeight
38
+ topSpaceGridNumber: 3, // templateData.top.xScalevalue.spaceGridNumber
39
+ leftSpaceGridNumber: 2, // templateData.left.leftYScalevalue.spaceGridNumber
40
+ rightSpaceGridNumber: 2, // templateData.right.rightYScalevalue.spaceGridNumber
41
+ topTotal: {
42
+ title: '总量',
43
+ width: 0,
44
+ style: {
45
+ fontFamily: '微软雅黑',
46
+ fontSize: 12,
47
+ fill: '#000',
48
+ lineHeight: 1
49
+ }
50
+ },
51
+ criticalStyle: { // 危急值样式
52
+ stroke: 'purple', // 颜色 默认 #999
53
+ strokeWidth: 1, // 线宽 默认 1
54
+ strokeDashArray: [0, 0] // 实线设置 默认[0, 0]
55
+ },
56
+ bottomNumberLeftSpace: 10 // 底部标记的序号与标记之间的距离
57
+ };
58
+
59
+ export default data;