cnhis-design-vue 3.3.3-release.12 → 3.3.3-release.14
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/README.md +87 -87
- package/es/components/button-print/index.d.ts +60 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +60 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +33 -4
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +30 -4
- package/es/components/button-print/src/utils/print.d.ts +6 -4
- package/es/components/button-print/src/utils/print.js +176 -4
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/classification/index.d.ts +500 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +500 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +500 -5
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +500 -5
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/types/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +41 -50
- package/es/components/iho-chat/src/Index.vue.d.ts +41 -50
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +29 -28
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +239 -94
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -24
- package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +54 -10
- package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +7 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +490 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +238 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +239 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +51 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +477 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +500 -5
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +13 -6
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
- package/es/components/table-filter/src/tool/baseOptions.js +8 -1
- package/es/components/table-filter/src/types/enums.d.ts +4 -0
- package/es/components/table-filter/src/types/enums.js +5 -1
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1,87 +1,87 @@
|
|
1
|
-
# 安装
|
2
|
-
|
3
|
-
```shell
|
4
|
-
npm i cnhis-design-vue@[版本号]
|
5
|
-
# or
|
6
|
-
yarn add cnhis-design-vue@[版本号] #推荐
|
7
|
-
```
|
8
|
-
|
9
|
-
## 1.全局引入
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
// main.ts
|
13
|
-
import { createApp } from 'vue';
|
14
|
-
import App from './App.vue';
|
15
|
-
import 'cnhis-design-vue/es/packages/index.css';
|
16
|
-
import cui from 'cnhis-design-vue';
|
17
|
-
|
18
|
-
const app = createApp(App);
|
19
|
-
app.use(cui).mount('#app');
|
20
|
-
```
|
21
|
-
|
22
|
-
## 2. 按需引入
|
23
|
-
|
24
|
-
组件现在支持了自动按需引入, 但是样式文件需要额外的处理
|
25
|
-
|
26
|
-
### 2.1 样式处理方式1 (按需引入样式)
|
27
|
-
|
28
|
-
```shell
|
29
|
-
# 安装自动导入样式的插件
|
30
|
-
npm i -d vite-plugin-style-import
|
31
|
-
```
|
32
|
-
|
33
|
-
```typescript
|
34
|
-
// vite.config.ts
|
35
|
-
import { defineConfig } from 'vite';
|
36
|
-
import { createStyleImportPlugin } from 'vite-plugin-style-import';
|
37
|
-
|
38
|
-
export default defineConfig({
|
39
|
-
plugins: [
|
40
|
-
// ...otherPlugins
|
41
|
-
createStyleImportPlugin({
|
42
|
-
libs: [
|
43
|
-
{
|
44
|
-
libraryName: 'cnhis-design-vue',
|
45
|
-
esModule: true,
|
46
|
-
ensureStyleFile: true,
|
47
|
-
resolveStyle: name => {
|
48
|
-
return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
]
|
52
|
-
})
|
53
|
-
]
|
54
|
-
});
|
55
|
-
```
|
56
|
-
|
57
|
-
### 2.2 样式处理方式2 (全局引入样式)
|
58
|
-
|
59
|
-
```typescript
|
60
|
-
// main.ts
|
61
|
-
import 'cnhis-design-vue/es/components/index.css';
|
62
|
-
```
|
63
|
-
|
64
|
-
## 3.FAQ
|
65
|
-
|
66
|
-
### 3.1 项目打包后样式丢失
|
67
|
-
|
68
|
-
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
69
|
-
|
70
|
-
```typescript
|
71
|
-
// vite.config.ts
|
72
|
-
import { defineConfig } from 'vite';
|
73
|
-
|
74
|
-
export default defineConfig({
|
75
|
-
build: {
|
76
|
-
rollupOptions: {
|
77
|
-
// ..otherOptions
|
78
|
-
output: {
|
79
|
-
dir: './dist',
|
80
|
-
manualChunks: {
|
81
|
-
'cnhis-vendor': ['cnhis-design-vue']
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
});
|
87
|
-
```
|
1
|
+
# 安装
|
2
|
+
|
3
|
+
```shell
|
4
|
+
npm i cnhis-design-vue@[版本号]
|
5
|
+
# or
|
6
|
+
yarn add cnhis-design-vue@[版本号] #推荐
|
7
|
+
```
|
8
|
+
|
9
|
+
## 1.全局引入
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
// main.ts
|
13
|
+
import { createApp } from 'vue';
|
14
|
+
import App from './App.vue';
|
15
|
+
import 'cnhis-design-vue/es/packages/index.css';
|
16
|
+
import cui from 'cnhis-design-vue';
|
17
|
+
|
18
|
+
const app = createApp(App);
|
19
|
+
app.use(cui).mount('#app');
|
20
|
+
```
|
21
|
+
|
22
|
+
## 2. 按需引入
|
23
|
+
|
24
|
+
组件现在支持了自动按需引入, 但是样式文件需要额外的处理
|
25
|
+
|
26
|
+
### 2.1 样式处理方式1 (按需引入样式)
|
27
|
+
|
28
|
+
```shell
|
29
|
+
# 安装自动导入样式的插件
|
30
|
+
npm i -d vite-plugin-style-import
|
31
|
+
```
|
32
|
+
|
33
|
+
```typescript
|
34
|
+
// vite.config.ts
|
35
|
+
import { defineConfig } from 'vite';
|
36
|
+
import { createStyleImportPlugin } from 'vite-plugin-style-import';
|
37
|
+
|
38
|
+
export default defineConfig({
|
39
|
+
plugins: [
|
40
|
+
// ...otherPlugins
|
41
|
+
createStyleImportPlugin({
|
42
|
+
libs: [
|
43
|
+
{
|
44
|
+
libraryName: 'cnhis-design-vue',
|
45
|
+
esModule: true,
|
46
|
+
ensureStyleFile: true,
|
47
|
+
resolveStyle: name => {
|
48
|
+
return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
]
|
52
|
+
})
|
53
|
+
]
|
54
|
+
});
|
55
|
+
```
|
56
|
+
|
57
|
+
### 2.2 样式处理方式2 (全局引入样式)
|
58
|
+
|
59
|
+
```typescript
|
60
|
+
// main.ts
|
61
|
+
import 'cnhis-design-vue/es/components/index.css';
|
62
|
+
```
|
63
|
+
|
64
|
+
## 3.FAQ
|
65
|
+
|
66
|
+
### 3.1 项目打包后样式丢失
|
67
|
+
|
68
|
+
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
69
|
+
|
70
|
+
```typescript
|
71
|
+
// vite.config.ts
|
72
|
+
import { defineConfig } from 'vite';
|
73
|
+
|
74
|
+
export default defineConfig({
|
75
|
+
build: {
|
76
|
+
rollupOptions: {
|
77
|
+
// ..otherOptions
|
78
|
+
output: {
|
79
|
+
dir: './dist',
|
80
|
+
manualChunks: {
|
81
|
+
'cnhis-vendor': ['cnhis-design-vue']
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
});
|
87
|
+
```
|
@@ -111,6 +111,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
111
111
|
svrUpdateIp: {
|
112
112
|
type: StringConstructor;
|
113
113
|
};
|
114
|
+
apptype: {
|
115
|
+
type: StringConstructor;
|
116
|
+
};
|
117
|
+
uuid: {
|
118
|
+
type: StringConstructor;
|
119
|
+
};
|
114
120
|
hidePreviewBtns: {
|
115
121
|
type: StringConstructor;
|
116
122
|
};
|
@@ -228,6 +234,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
228
234
|
svrUpdateIp: {
|
229
235
|
type: StringConstructor;
|
230
236
|
};
|
237
|
+
apptype: {
|
238
|
+
type: StringConstructor;
|
239
|
+
};
|
240
|
+
uuid: {
|
241
|
+
type: StringConstructor;
|
242
|
+
};
|
231
243
|
hidePreviewBtns: {
|
232
244
|
type: StringConstructor;
|
233
245
|
};
|
@@ -346,6 +358,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
346
358
|
svrUpdateIp: {
|
347
359
|
type: StringConstructor;
|
348
360
|
};
|
361
|
+
apptype: {
|
362
|
+
type: StringConstructor;
|
363
|
+
};
|
364
|
+
uuid: {
|
365
|
+
type: StringConstructor;
|
366
|
+
};
|
349
367
|
hidePreviewBtns: {
|
350
368
|
type: StringConstructor;
|
351
369
|
};
|
@@ -466,6 +484,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
466
484
|
svrUpdateIp: {
|
467
485
|
type: StringConstructor;
|
468
486
|
};
|
487
|
+
apptype: {
|
488
|
+
type: StringConstructor;
|
489
|
+
};
|
490
|
+
uuid: {
|
491
|
+
type: StringConstructor;
|
492
|
+
};
|
469
493
|
hidePreviewBtns: {
|
470
494
|
type: StringConstructor;
|
471
495
|
};
|
@@ -848,6 +872,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
848
872
|
svrUpdateIp: {
|
849
873
|
type: StringConstructor;
|
850
874
|
};
|
875
|
+
apptype: {
|
876
|
+
type: StringConstructor;
|
877
|
+
};
|
878
|
+
uuid: {
|
879
|
+
type: StringConstructor;
|
880
|
+
};
|
851
881
|
hidePreviewBtns: {
|
852
882
|
type: StringConstructor;
|
853
883
|
};
|
@@ -978,6 +1008,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
978
1008
|
svrUpdateIp: {
|
979
1009
|
type: StringConstructor;
|
980
1010
|
};
|
1011
|
+
apptype: {
|
1012
|
+
type: StringConstructor;
|
1013
|
+
};
|
1014
|
+
uuid: {
|
1015
|
+
type: StringConstructor;
|
1016
|
+
};
|
981
1017
|
hidePreviewBtns: {
|
982
1018
|
type: StringConstructor;
|
983
1019
|
};
|
@@ -1095,6 +1131,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1095
1131
|
svrUpdateIp: {
|
1096
1132
|
type: StringConstructor;
|
1097
1133
|
};
|
1134
|
+
apptype: {
|
1135
|
+
type: StringConstructor;
|
1136
|
+
};
|
1137
|
+
uuid: {
|
1138
|
+
type: StringConstructor;
|
1139
|
+
};
|
1098
1140
|
hidePreviewBtns: {
|
1099
1141
|
type: StringConstructor;
|
1100
1142
|
};
|
@@ -1444,6 +1486,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1444
1486
|
svrUpdateIp: {
|
1445
1487
|
type: StringConstructor;
|
1446
1488
|
};
|
1489
|
+
apptype: {
|
1490
|
+
type: StringConstructor;
|
1491
|
+
};
|
1492
|
+
uuid: {
|
1493
|
+
type: StringConstructor;
|
1494
|
+
};
|
1447
1495
|
hidePreviewBtns: {
|
1448
1496
|
type: StringConstructor;
|
1449
1497
|
};
|
@@ -1582,6 +1630,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1582
1630
|
svrUpdateIp: {
|
1583
1631
|
type: StringConstructor;
|
1584
1632
|
};
|
1633
|
+
apptype: {
|
1634
|
+
type: StringConstructor;
|
1635
|
+
};
|
1636
|
+
uuid: {
|
1637
|
+
type: StringConstructor;
|
1638
|
+
};
|
1585
1639
|
hidePreviewBtns: {
|
1586
1640
|
type: StringConstructor;
|
1587
1641
|
};
|
@@ -1708,6 +1762,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1708
1762
|
svrUpdateIp: {
|
1709
1763
|
type: StringConstructor;
|
1710
1764
|
};
|
1765
|
+
apptype: {
|
1766
|
+
type: StringConstructor;
|
1767
|
+
};
|
1768
|
+
uuid: {
|
1769
|
+
type: StringConstructor;
|
1770
|
+
};
|
1711
1771
|
hidePreviewBtns: {
|
1712
1772
|
type: StringConstructor;
|
1713
1773
|
};
|
@@ -114,6 +114,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
114
114
|
svrUpdateIp: {
|
115
115
|
type: StringConstructor;
|
116
116
|
};
|
117
|
+
apptype: {
|
118
|
+
type: StringConstructor;
|
119
|
+
};
|
120
|
+
uuid: {
|
121
|
+
type: StringConstructor;
|
122
|
+
};
|
117
123
|
hidePreviewBtns: {
|
118
124
|
type: StringConstructor;
|
119
125
|
};
|
@@ -234,6 +240,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
234
240
|
svrUpdateIp: {
|
235
241
|
type: StringConstructor;
|
236
242
|
};
|
243
|
+
apptype: {
|
244
|
+
type: StringConstructor;
|
245
|
+
};
|
246
|
+
uuid: {
|
247
|
+
type: StringConstructor;
|
248
|
+
};
|
237
249
|
hidePreviewBtns: {
|
238
250
|
type: StringConstructor;
|
239
251
|
};
|
@@ -352,6 +364,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
352
364
|
svrUpdateIp: {
|
353
365
|
type: StringConstructor;
|
354
366
|
};
|
367
|
+
apptype: {
|
368
|
+
type: StringConstructor;
|
369
|
+
};
|
370
|
+
uuid: {
|
371
|
+
type: StringConstructor;
|
372
|
+
};
|
355
373
|
hidePreviewBtns: {
|
356
374
|
type: StringConstructor;
|
357
375
|
};
|
@@ -472,6 +490,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
472
490
|
svrUpdateIp: {
|
473
491
|
type: StringConstructor;
|
474
492
|
};
|
493
|
+
apptype: {
|
494
|
+
type: StringConstructor;
|
495
|
+
};
|
496
|
+
uuid: {
|
497
|
+
type: StringConstructor;
|
498
|
+
};
|
475
499
|
hidePreviewBtns: {
|
476
500
|
type: StringConstructor;
|
477
501
|
};
|
@@ -854,6 +878,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
854
878
|
svrUpdateIp: {
|
855
879
|
type: StringConstructor;
|
856
880
|
};
|
881
|
+
apptype: {
|
882
|
+
type: StringConstructor;
|
883
|
+
};
|
884
|
+
uuid: {
|
885
|
+
type: StringConstructor;
|
886
|
+
};
|
857
887
|
hidePreviewBtns: {
|
858
888
|
type: StringConstructor;
|
859
889
|
};
|
@@ -984,6 +1014,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
984
1014
|
svrUpdateIp: {
|
985
1015
|
type: StringConstructor;
|
986
1016
|
};
|
1017
|
+
apptype: {
|
1018
|
+
type: StringConstructor;
|
1019
|
+
};
|
1020
|
+
uuid: {
|
1021
|
+
type: StringConstructor;
|
1022
|
+
};
|
987
1023
|
hidePreviewBtns: {
|
988
1024
|
type: StringConstructor;
|
989
1025
|
};
|
@@ -1101,6 +1137,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1101
1137
|
svrUpdateIp: {
|
1102
1138
|
type: StringConstructor;
|
1103
1139
|
};
|
1140
|
+
apptype: {
|
1141
|
+
type: StringConstructor;
|
1142
|
+
};
|
1143
|
+
uuid: {
|
1144
|
+
type: StringConstructor;
|
1145
|
+
};
|
1104
1146
|
hidePreviewBtns: {
|
1105
1147
|
type: StringConstructor;
|
1106
1148
|
};
|
@@ -1450,6 +1492,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1450
1492
|
svrUpdateIp: {
|
1451
1493
|
type: StringConstructor;
|
1452
1494
|
};
|
1495
|
+
apptype: {
|
1496
|
+
type: StringConstructor;
|
1497
|
+
};
|
1498
|
+
uuid: {
|
1499
|
+
type: StringConstructor;
|
1500
|
+
};
|
1453
1501
|
hidePreviewBtns: {
|
1454
1502
|
type: StringConstructor;
|
1455
1503
|
};
|
@@ -1591,6 +1639,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1591
1639
|
svrUpdateIp: {
|
1592
1640
|
type: StringConstructor;
|
1593
1641
|
};
|
1642
|
+
apptype: {
|
1643
|
+
type: StringConstructor;
|
1644
|
+
};
|
1645
|
+
uuid: {
|
1646
|
+
type: StringConstructor;
|
1647
|
+
};
|
1594
1648
|
hidePreviewBtns: {
|
1595
1649
|
type: StringConstructor;
|
1596
1650
|
};
|
@@ -1720,6 +1774,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1720
1774
|
svrUpdateIp: {
|
1721
1775
|
type: StringConstructor;
|
1722
1776
|
};
|
1777
|
+
apptype: {
|
1778
|
+
type: StringConstructor;
|
1779
|
+
};
|
1780
|
+
uuid: {
|
1781
|
+
type: StringConstructor;
|
1782
|
+
};
|
1723
1783
|
hidePreviewBtns: {
|
1724
1784
|
type: StringConstructor;
|
1725
1785
|
};
|
@@ -111,6 +111,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
111
111
|
svrUpdateIp: {
|
112
112
|
type: StringConstructor;
|
113
113
|
};
|
114
|
+
apptype: {
|
115
|
+
type: StringConstructor;
|
116
|
+
};
|
117
|
+
uuid: {
|
118
|
+
type: StringConstructor;
|
119
|
+
};
|
114
120
|
hidePreviewBtns: {
|
115
121
|
type: StringConstructor;
|
116
122
|
};
|
@@ -234,6 +240,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
234
240
|
svrUpdateIp: {
|
235
241
|
type: StringConstructor;
|
236
242
|
};
|
243
|
+
apptype: {
|
244
|
+
type: StringConstructor;
|
245
|
+
};
|
246
|
+
uuid: {
|
247
|
+
type: StringConstructor;
|
248
|
+
};
|
237
249
|
hidePreviewBtns: {
|
238
250
|
type: StringConstructor;
|
239
251
|
};
|
@@ -621,6 +633,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
621
633
|
svrUpdateIp: {
|
622
634
|
type: StringConstructor;
|
623
635
|
};
|
636
|
+
apptype: {
|
637
|
+
type: StringConstructor;
|
638
|
+
};
|
639
|
+
uuid: {
|
640
|
+
type: StringConstructor;
|
641
|
+
};
|
624
642
|
hidePreviewBtns: {
|
625
643
|
type: StringConstructor;
|
626
644
|
};
|
@@ -242,6 +242,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
242
242
|
svrUpdateIp: {
|
243
243
|
type: String
|
244
244
|
},
|
245
|
+
apptype: {
|
246
|
+
type: String
|
247
|
+
},
|
248
|
+
uuid: {
|
249
|
+
type: String
|
250
|
+
},
|
245
251
|
hidePreviewBtns: {
|
246
252
|
type: String
|
247
253
|
}
|
@@ -529,18 +535,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
529
535
|
};
|
530
536
|
const callLocalServicesErrorCb = (res) => {
|
531
537
|
toggleExpandLoading(false);
|
538
|
+
let info = {
|
539
|
+
formatId: state.currentFormatId,
|
540
|
+
templateId: getTemplateIdByFormatId.value,
|
541
|
+
templateCode: getTemplateCodeByFormatId.value
|
542
|
+
};
|
532
543
|
encapBrowserLog({
|
533
544
|
type: "\u8FDB\u5165\u5931\u8D25\u7684\u56DE\u8C03",
|
534
545
|
res
|
535
546
|
}, "PRINT-SDK");
|
536
|
-
emit("error", res);
|
547
|
+
emit("error", res, info);
|
537
548
|
if (isObject(res) && res.type === "notInstalledApp") {
|
538
549
|
$message.error(res.message);
|
539
550
|
}
|
540
551
|
};
|
541
552
|
const callLocalServicesCancelCb = (res) => {
|
542
553
|
toggleExpandLoading(false);
|
543
|
-
|
554
|
+
let info = {
|
555
|
+
formatId: state.currentFormatId,
|
556
|
+
templateId: getTemplateIdByFormatId.value,
|
557
|
+
templateCode: getTemplateCodeByFormatId.value
|
558
|
+
};
|
559
|
+
emit("cancel", res, info);
|
544
560
|
};
|
545
561
|
const prevFnError = (type) => {
|
546
562
|
const error = {
|
@@ -555,7 +571,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
555
571
|
type,
|
556
572
|
preExecution: true
|
557
573
|
};
|
558
|
-
|
574
|
+
let info = {
|
575
|
+
formatId: state.currentFormatId,
|
576
|
+
templateId: getTemplateIdByFormatId.value,
|
577
|
+
templateCode: getTemplateCodeByFormatId.value
|
578
|
+
};
|
579
|
+
emit("error", error, info);
|
559
580
|
};
|
560
581
|
const getPrintParams = () => {
|
561
582
|
return JSON.stringify({
|
@@ -696,6 +717,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
696
717
|
signature: props.signature,
|
697
718
|
copies: props.printCopies,
|
698
719
|
svrUpdateIp: props.svrUpdateIp,
|
720
|
+
apptype: props.apptype,
|
721
|
+
uuid: props.uuid,
|
699
722
|
formatItem: curFormatIdObj
|
700
723
|
};
|
701
724
|
if (props.strategy === "MULTI") {
|
@@ -771,9 +794,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
771
794
|
templateId,
|
772
795
|
params: curPrintParamList
|
773
796
|
}).then(() => {
|
797
|
+
var _a;
|
774
798
|
state.curPrintParamList = curPrintParamList;
|
775
799
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
|
776
800
|
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
|
801
|
+
const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == formatId);
|
777
802
|
const queryParams = {
|
778
803
|
formatId,
|
779
804
|
templateId,
|
@@ -786,7 +811,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
786
811
|
resolution: props == null ? void 0 : props.resolution
|
787
812
|
},
|
788
813
|
params,
|
789
|
-
signature: props.signature
|
814
|
+
signature: props.signature,
|
815
|
+
formatItem: curFormatIdObj
|
790
816
|
};
|
791
817
|
printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "preview"), callLocalServicesErrorCb);
|
792
818
|
}).catch(() => {
|
@@ -1161,6 +1187,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1161
1187
|
state.originParams = formatSomeOriginParams(state.templateParams, props.params);
|
1162
1188
|
};
|
1163
1189
|
const verifiySuccess = (token) => {
|
1190
|
+
var _a;
|
1164
1191
|
state.identityVerification.visible = false;
|
1165
1192
|
if (isIReport(state.currentFormatId))
|
1166
1193
|
return callLocalServicesSuccessCb({
|
@@ -1169,10 +1196,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1169
1196
|
}, "edit");
|
1170
1197
|
const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), state.curPrintParamList[0], printCustomProps.value));
|
1171
1198
|
const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(state.curPrintParamList, getTemplateCodeByFormatId.value);
|
1199
|
+
const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == state.currentFormatId);
|
1172
1200
|
const queryParams = {
|
1173
1201
|
formatId: state.currentFormatId,
|
1174
1202
|
number: state.number,
|
1175
1203
|
templateId: getTemplateIdByFormatId.value,
|
1204
|
+
formatItem: curFormatIdObj,
|
1176
1205
|
params,
|
1177
1206
|
token
|
1178
1207
|
};
|
@@ -110,6 +110,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
110
|
svrUpdateIp: {
|
111
111
|
type: StringConstructor;
|
112
112
|
};
|
113
|
+
apptype: {
|
114
|
+
type: StringConstructor;
|
115
|
+
};
|
116
|
+
uuid: {
|
117
|
+
type: StringConstructor;
|
118
|
+
};
|
113
119
|
hidePreviewBtns: {
|
114
120
|
type: StringConstructor;
|
115
121
|
};
|
@@ -230,6 +236,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
230
236
|
svrUpdateIp: {
|
231
237
|
type: StringConstructor;
|
232
238
|
};
|
239
|
+
apptype: {
|
240
|
+
type: StringConstructor;
|
241
|
+
};
|
242
|
+
uuid: {
|
243
|
+
type: StringConstructor;
|
244
|
+
};
|
233
245
|
hidePreviewBtns: {
|
234
246
|
type: StringConstructor;
|
235
247
|
};
|
@@ -582,6 +594,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
582
594
|
svrUpdateIp: {
|
583
595
|
type: StringConstructor;
|
584
596
|
};
|
597
|
+
apptype: {
|
598
|
+
type: StringConstructor;
|
599
|
+
};
|
600
|
+
uuid: {
|
601
|
+
type: StringConstructor;
|
602
|
+
};
|
585
603
|
hidePreviewBtns: {
|
586
604
|
type: StringConstructor;
|
587
605
|
};
|