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.
- package/CHANGELOG.md +15 -8
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +68 -68
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +64 -79
- package/es/button/style.css +1 -1
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +9 -9
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +442 -457
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +75 -75
- package/es/multi-chat-client/index.js +69 -69
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +33 -33
- package/es/select/index.js +12 -12
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +89 -104
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +394 -408
- package/lib/cui.umd.js +394 -408
- package/lib/cui.umd.min.js +12 -12
- package/package.json +1 -1
- package/packages/button/src/ButtonPrint/index.vue +48 -59
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/scale-view/scaleView.vue +2010 -2010
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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
|
-
|
|
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
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
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
|
-
|
|
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;
|