cnhis-design-vue 3.1.18-beta.7 → 3.1.18
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/es/components/annotation-edit/style/index.css +1 -15
- package/es/components/big-table/index.d.ts +11 -3331
- package/es/components/big-table/src/BigTable.vue.d.ts +11 -3347
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +12 -4
- package/es/components/big-table/src/components/edit-form/edit-date.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +4 -1
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +2 -2
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +2 -1138
- package/es/components/big-table/src/components/edit-form/edit-time.d.ts +1 -1
- package/es/components/big-table/src/components/input-button.vue.d.ts +2 -2239
- package/es/components/big-table/src/hooks/useEdit.d.ts +7 -1143
- package/es/components/big-table/src/hooks/useEvent2.js +22 -7
- package/es/components/big-table/style/index.css +1 -634
- package/es/components/bpmn-workflow/style/index.css +1 -29
- package/es/components/button-print/index.d.ts +28 -6724
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +28 -6724
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/components/button-print/src/components/IdentityVerification.js +14 -6
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +22 -4393
- package/es/components/button-print/src/utils/dialog.d.ts +3 -1
- package/es/components/button-print/src/utils/dialog.js +35 -23
- package/es/components/button-print/src/utils/print.d.ts +5 -0
- package/es/components/button-print/src/utils/print2.js +16 -0
- package/es/components/button-print/style/index.css +1 -24
- package/es/components/chunk-upload/index.d.ts +2 -1466
- package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +3 -1736
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +2 -1466
- package/es/components/chunk-upload/style/index.css +1 -365
- package/es/components/drag-layout/index.d.ts +165 -19494
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +5 -7919
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +4 -3074
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +166 -19495
- package/es/components/drag-layout/style/index.css +1 -175
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter2.js +58 -38
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw2.js +30 -1
- package/es/components/fabric-chart/src/hooks/useLeft2.js +8 -1
- package/es/components/fabric-chart/style/index.css +1 -43
- package/es/components/field-set/index.d.ts +8 -6749
- package/es/components/field-set/src/FieldSet.vue.d.ts +8 -6749
- package/es/components/field-set/style/index.css +1 -139
- package/es/components/form-config/index.d.ts +21 -8798
- package/es/components/form-config/src/FormConfig.vue.d.ts +21 -8798
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -4425
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +9 -2981
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +2 -1466
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -1466
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +4 -3182
- package/es/components/form-config/src/utils/index2.js +1 -1
- package/es/components/form-config/style/index.css +1 -158
- package/es/components/form-render/index.d.ts +8 -1104
- package/es/components/form-render/src/FormRender.vue.d.ts +9 -1105
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/linebar.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/select.js +9 -6
- package/es/components/form-render/src/hooks/useCommonLog2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +1 -1
- package/es/components/form-render/src/utils/business.d.ts +1 -1
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +2 -2
- package/es/components/form-render/style/index.css +1 -146
- package/es/components/form-table/index.d.ts +58 -31817
- package/es/components/form-table/src/FormTable.vue.d.ts +58 -31817
- package/es/components/form-table/src/components/index.d.ts +59 -31818
- package/es/components/form-table/src/components/table-age.vue.d.ts +5 -3957
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +3 -5035
- package/es/components/form-table/src/components/table-digital.vue.d.ts +4 -2642
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +4 -1320
- package/es/components/form-table/src/components/table-input.vue.d.ts +4 -1320
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +2 -5034
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +2 -1395
- package/es/components/form-table/src/components/table-search.vue.d.ts +3 -2710
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +2 -1316
- package/es/components/form-table/src/components/table-select.vue.d.ts +2 -1316
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +5 -1321
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +2 -2426
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +2 -1535
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +2 -474
- package/es/components/form-table/style/index.css +1 -214
- package/es/components/grid/src/hooks2.js +1 -0
- package/es/components/grid/style/index.css +1 -10
- package/es/components/index.css +1 -3346
- package/es/components/info-header/index.d.ts +16 -2386
- package/es/components/info-header/src/HiddenContent.vue.d.ts +4 -797
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +3 -796
- package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -2385
- package/es/components/info-header/style/index.css +1 -121
- package/es/components/map/index.d.ts +2 -2239
- package/es/components/map/src/Map.vue.d.ts +2 -2239
- package/es/components/map/style/index.css +1 -61
- package/es/components/scale-view/index.d.ts +23 -3069
- package/es/components/scale-view/src/ScaleView.vue.d.ts +19 -3066
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +1 -1394
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-collection.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +2 -474
- package/es/components/scale-view/src/hooks/use-component.d.ts +41 -8043
- package/es/components/scale-view/style/index.css +1 -738
- package/es/components/select-label/index.d.ts +28 -10574
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +12 -4022
- package/es/components/select-label/src/SelectLabel.vue.d.ts +16 -6559
- package/es/components/select-label/src/components/label-classify.vue.d.ts +5 -3291
- package/es/components/select-label/style/index.css +1 -164
- package/es/components/select-person/index.d.ts +9 -5270
- package/es/components/select-person/src/SearchTree.vue.d.ts +3 -1302
- package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -5270
- package/es/components/select-person/style/index.css +1 -193
- package/es/components/shortcut-provider/style/index.css +1 -3
- package/es/components/shortcut-setter/index.d.ts +8 -1104
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -1104
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1 -845
- package/es/components/shortcut-setter/style/index.css +1 -8
- package/es/components/steps-wheel/index.d.ts +1 -473
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -473
- package/es/components/steps-wheel/style/index.css +1 -161
- package/es/components/time-line/index.d.ts +7 -1647
- package/es/components/time-line/src/TimeLine.vue.d.ts +6 -1646
- package/es/components/time-line/style/index.css +1 -37
- package/es/env.d.ts +0 -18
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1394
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +2 -474
- package/package.json +4 -4
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Func } from '../../../../../es/shared/types';
|
|
2
2
|
import { ComponentInternalInstance } from 'vue';
|
|
3
3
|
export declare class IdentityVerificationDialog {
|
|
4
|
+
rendered: boolean;
|
|
5
|
+
static createMsg(message: string): string;
|
|
4
6
|
show(instance: ComponentInternalInstance, title: string, api: Func): Promise<string>;
|
|
5
|
-
private
|
|
7
|
+
private createProviderWrapper;
|
|
6
8
|
}
|
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
import { ref,
|
|
2
|
-
import { isFunction } from 'lodash-es';
|
|
1
|
+
import { ref, render, createVNode, withCtx, nextTick, defineComponent, provide } from 'vue';
|
|
3
2
|
import IdentityVerification from '../components/IdentityVerification.js';
|
|
4
3
|
|
|
5
4
|
class IdentityVerificationDialog {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.rendered = false;
|
|
7
|
+
}
|
|
8
|
+
static createMsg(message) {
|
|
9
|
+
return `[IdentityVerificationDialog] ${message}`;
|
|
10
|
+
}
|
|
6
11
|
show(instance, title, api) {
|
|
12
|
+
if (this.rendered)
|
|
13
|
+
return Promise.reject(IdentityVerificationDialog.createMsg("\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
|
|
7
14
|
return new Promise((resolve, reject) => {
|
|
8
|
-
|
|
9
|
-
return reject({
|
|
10
|
-
message: "\u9700\u8981\u63D0\u4F9B\u6B63\u786E\u7684api"
|
|
11
|
-
});
|
|
12
|
-
}
|
|
15
|
+
this.rendered = true;
|
|
13
16
|
const container = document.createElement("div");
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
if (container.parentElement) {
|
|
18
|
-
container.parentElement.removeChild(container);
|
|
19
|
-
reject("\u5F39\u7A97\u5173\u95ED");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function onSuccess(token) {
|
|
23
|
-
resolve(token);
|
|
24
|
-
onClose();
|
|
25
|
-
}
|
|
26
|
-
const vnodes = h(this.createContainer(instance), null, {
|
|
17
|
+
const visible = ref(false);
|
|
18
|
+
const ProviderWrapper = this.createProviderWrapper(instance);
|
|
19
|
+
render(createVNode(ProviderWrapper, null, {
|
|
27
20
|
default: withCtx(() => createVNode(IdentityVerification, {
|
|
28
21
|
"to": container,
|
|
29
22
|
"verifyUser": api,
|
|
@@ -31,13 +24,32 @@ class IdentityVerificationDialog {
|
|
|
31
24
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
32
25
|
"identityVerificationTitle": title,
|
|
33
26
|
"onClose": onClose,
|
|
27
|
+
"onAfterLeave": () => unmount(container),
|
|
34
28
|
"onSuccess": onSuccess
|
|
35
29
|
}, null), instance)
|
|
36
|
-
});
|
|
37
|
-
|
|
30
|
+
}), container);
|
|
31
|
+
mount(container);
|
|
32
|
+
nextTick(() => visible.value = true);
|
|
33
|
+
function onClose() {
|
|
34
|
+
reject(IdentityVerificationDialog.createMsg("\u5F39\u7A97\u5173\u95ED"));
|
|
35
|
+
}
|
|
36
|
+
function onSuccess(token) {
|
|
37
|
+
resolve(token);
|
|
38
|
+
visible.value = false;
|
|
39
|
+
}
|
|
40
|
+
function mount(target) {
|
|
41
|
+
document.body.appendChild(target);
|
|
42
|
+
}
|
|
43
|
+
const that = this;
|
|
44
|
+
function unmount(target) {
|
|
45
|
+
if (!target.parentElement)
|
|
46
|
+
return;
|
|
47
|
+
that.rendered = false;
|
|
48
|
+
target.parentElement.removeChild(target);
|
|
49
|
+
}
|
|
38
50
|
});
|
|
39
51
|
}
|
|
40
|
-
|
|
52
|
+
createProviderWrapper(instance) {
|
|
41
53
|
return defineComponent({
|
|
42
54
|
setup(_, {
|
|
43
55
|
slots
|
|
@@ -34,6 +34,11 @@ export declare class Print {
|
|
|
34
34
|
_handleEventEditFormat({ templateId, formatId, params, token }: AnyObject): Promise<any>;
|
|
35
35
|
preview({ templateId, formatId, params }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<false | undefined>;
|
|
36
36
|
printDirect({ templateId, formatId, params, print, printdlgshow, nobillnode }: AnyObject, successCallbackFn: Func, errorCallbackFn: Func): Promise<false | undefined>;
|
|
37
|
+
private _downloadPDF;
|
|
38
|
+
/**
|
|
39
|
+
* 下载pdf
|
|
40
|
+
*/
|
|
41
|
+
downloadPDF(params: AnyObject, onResolve: Func, onReject: Func): void;
|
|
37
42
|
print({ templateId, formatId, params }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<false | undefined>;
|
|
38
43
|
queryPrintData({ templateId, formatId, params }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<false | {
|
|
39
44
|
file: any;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
+
import { isArray } from 'lodash-es';
|
|
2
3
|
import { IdentityVerificationDialog } from './dialog.js';
|
|
3
4
|
|
|
4
5
|
const PRINT_ORIGIN = "http://127.0.0.1:11111";
|
|
5
6
|
const EDIT_LOCAL_URL = `${PRINT_ORIGIN}/services/print`;
|
|
6
7
|
const PRINT_URL = `${PRINT_ORIGIN}/PrintLocal`;
|
|
8
|
+
const PDF_URL = `${PRINT_ORIGIN}/download`;
|
|
7
9
|
const PRINT_CMD_ID = "7";
|
|
8
10
|
const PREVIEW_CMD_ID = "8";
|
|
9
11
|
const PRINTER_NAME_DEFAULT = "Default";
|
|
@@ -255,6 +257,20 @@ class Print {
|
|
|
255
257
|
return false;
|
|
256
258
|
successCallbackFn && successCallbackFn(handledResult);
|
|
257
259
|
}
|
|
260
|
+
_downloadPDF(inputData) {
|
|
261
|
+
return httpFn.get(PDF_URL, { params: { inputData } }).then(({ data }) => data);
|
|
262
|
+
}
|
|
263
|
+
downloadPDF(params, onResolve, onReject) {
|
|
264
|
+
this.printDirect(params, async (res) => {
|
|
265
|
+
if (!res)
|
|
266
|
+
onReject(null);
|
|
267
|
+
onResolve(await this._downloadPDF(getFiledir(res.filedir)));
|
|
268
|
+
function getFiledir(filedir) {
|
|
269
|
+
const result = JSON.parse(filedir);
|
|
270
|
+
return isArray(result) ? result[0] || "" : "";
|
|
271
|
+
}
|
|
272
|
+
}, (err) => onReject(err));
|
|
273
|
+
}
|
|
258
274
|
async print({ templateId, formatId, params = "" }, successCallbackFn, errorCallbackFn) {
|
|
259
275
|
const testResult = await this._testConnection();
|
|
260
276
|
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
.dropdown-button {
|
|
2
|
-
color: #212121;
|
|
3
|
-
border-color: #d5d5d5 !important;
|
|
4
|
-
}
|
|
5
|
-
.c-dropdown .n-dropdown-menu-wrapper span.active {
|
|
6
|
-
color: #5585f5;
|
|
7
|
-
}
|
|
8
|
-
.login-form-button {
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 50px;
|
|
11
|
-
border-radius: 24px;
|
|
12
|
-
font-size: 16px;
|
|
13
|
-
color: #ffffff;
|
|
14
|
-
}
|
|
15
|
-
.login-form-button-print {
|
|
16
|
-
padding-top: 15px;
|
|
17
|
-
}
|
|
18
|
-
.login-form-button-print .n-input {
|
|
19
|
-
height: 50px;
|
|
20
|
-
line-height: 50px;
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
color: #757575;
|
|
23
|
-
border-radius: 6px;
|
|
24
|
-
}
|
|
1
|
+
.dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}
|