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.
- package/CHANGELOG.md +25 -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 +63 -58
- 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/ellipsis/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 +66 -66
- package/es/index/index.js +468 -463
- 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 +76 -76
- package/es/multi-chat-client/index.js +70 -70
- 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-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- 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/select-tag/index.js +4 -4
- 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 +120 -115
- 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 +8667 -10049
- package/lib/cui.umd.js +8667 -10049
- package/lib/cui.umd.min.js +78 -78
- package/package.json +1 -1
- package/packages/button/src/ButtonPrint/index.vue +14 -13
- package/packages/table-filter/src/quick-search/QuickSearch.vue +1 -1
package/package.json
CHANGED
|
@@ -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]) {
|