super-page-runtime 2.3.18 → 2.3.19-sit1
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/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +73 -64
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +591 -554
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +5 -7
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +36 -24
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +194 -194
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +37 -37
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -13
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +165 -161
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +134 -86
- package/package.json +2 -2
|
@@ -146,10 +146,10 @@ function T(e2, t2, i2) {
|
|
|
146
146
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
147
147
|
n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
|
|
148
148
|
}).catch((n2) => {
|
|
149
|
-
|
|
149
|
+
e2.canClick = true;
|
|
150
150
|
}) : A(e2, t2, c2, i2) : e2.canClick = true;
|
|
151
151
|
}).catch((n2) => {
|
|
152
|
-
|
|
152
|
+
e2.canClick = true;
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
function F(e2, n2, t2, i2, o2) {
|
|
@@ -214,7 +214,7 @@ function A(e2, t2, i2, o2) {
|
|
|
214
214
|
n(a2) ? a2.then((n2) => {
|
|
215
215
|
n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
216
216
|
}).catch((n2) => {
|
|
217
|
-
|
|
217
|
+
e3.canClick = true;
|
|
218
218
|
}) : q(e3, t3, o3, c2, a2, u3);
|
|
219
219
|
} else q(e3, t3, o3, false, null, u3);
|
|
220
220
|
}(e2, t2, i2, o2);
|
|
@@ -3,27 +3,26 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
|
3
3
|
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
4
|
function a(n2, a2) {
|
|
5
5
|
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
|
|
6
|
-
const a3 = JSON.parse(e2[0].template),
|
|
6
|
+
const a3 = JSON.parse(e2[0].template), i2 = [];
|
|
7
7
|
a3.panels.forEach((e3) => {
|
|
8
8
|
e3.printElements.forEach((e4) => {
|
|
9
|
-
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType ||
|
|
9
|
+
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
const
|
|
12
|
+
const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
|
|
13
13
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
|
|
14
14
|
a3.panels[0].printElements.forEach((e3) => {
|
|
15
15
|
if ("datetime" === e3.options.dataType && e3.options.field) {
|
|
16
16
|
const t2 = e3.options.field.substring(6);
|
|
17
17
|
f[t2] = e3.options.dateFormat;
|
|
18
18
|
}
|
|
19
|
-
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2,
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
19
|
+
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, i3) {
|
|
20
|
+
const l2 = JSON.parse(JSON.stringify(e3.selections));
|
|
21
|
+
if (l2.forEach((e4) => {
|
|
22
22
|
Object.keys(t2).forEach((t3) => {
|
|
23
23
|
if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
|
|
24
24
|
e4[t3] = new Date(e4[t3]);
|
|
25
25
|
} catch (e5) {
|
|
26
|
-
console.error(`日期格式化失败: ${e5}`);
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
}), n3.length > 0) {
|
|
@@ -31,51 +30,51 @@ function a(n2, a2) {
|
|
|
31
30
|
n3.forEach((t3) => {
|
|
32
31
|
e4.push(function(e5, t4) {
|
|
33
32
|
return new Promise((n4, a5) => {
|
|
34
|
-
const s3 = e5.field.split("."),
|
|
33
|
+
const s3 = e5.field.split("."), i4 = [];
|
|
35
34
|
s3.length < 2 && n4([]);
|
|
36
35
|
try {
|
|
37
36
|
p(s3[1]).then((e6) => {
|
|
38
37
|
t4.forEach((t5, n5) => {
|
|
39
38
|
const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
|
|
40
|
-
a6.value = o(JSON.parse(e6.barcodeModelItems), t5),
|
|
41
|
-
}), n4(
|
|
39
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
|
|
40
|
+
}), n4(i4);
|
|
42
41
|
});
|
|
43
42
|
} catch (e6) {
|
|
44
|
-
|
|
43
|
+
n4([]);
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
|
-
}(t3,
|
|
46
|
+
}(t3, l2));
|
|
48
47
|
}), Promise.all(e4).then((e5) => {
|
|
49
48
|
e5.forEach((e6) => {
|
|
50
49
|
e6.forEach((e7) => {
|
|
51
|
-
const t3 = e7.index, n4 =
|
|
50
|
+
const t3 = e7.index, n4 = l2[t3];
|
|
52
51
|
n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
|
|
53
52
|
});
|
|
54
|
-
}), a4.print(
|
|
53
|
+
}), a4.print(l2, s2, i3);
|
|
55
54
|
});
|
|
56
|
-
} else a4.print(
|
|
57
|
-
}(n2, f,
|
|
55
|
+
} else a4.print(l2, s2, i3);
|
|
56
|
+
}(n2, f, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
function s(e2, t2, n2, a2, s2) {
|
|
61
60
|
if (t2.length > 0) {
|
|
62
|
-
const
|
|
61
|
+
const i2 = [];
|
|
63
62
|
t2.forEach((t3) => {
|
|
64
|
-
|
|
63
|
+
i2.push(function(e3, t4) {
|
|
65
64
|
return new Promise((n3, a3) => {
|
|
66
|
-
const s3 = t4.field.split("."),
|
|
67
|
-
s3.length < 2 && n3(
|
|
65
|
+
const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
|
|
66
|
+
s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
|
|
68
67
|
try {
|
|
69
|
-
p(
|
|
68
|
+
p(i3.name).then((t5) => {
|
|
70
69
|
const a4 = JSON.parse(t5.barcodeModelItems);
|
|
71
|
-
|
|
70
|
+
i3.value = o(a4, e3.entity.data), n3(i3);
|
|
72
71
|
});
|
|
73
72
|
} catch (e4) {
|
|
74
|
-
|
|
73
|
+
n3(i3);
|
|
75
74
|
}
|
|
76
75
|
});
|
|
77
76
|
}(e2.pageContext, t3));
|
|
78
|
-
}), Promise.all(
|
|
77
|
+
}), Promise.all(i2).then((t3) => {
|
|
79
78
|
const o2 = {};
|
|
80
79
|
t3.forEach((e3) => {
|
|
81
80
|
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
@@ -93,8 +92,8 @@ function p(t2) {
|
|
|
93
92
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
94
93
|
}
|
|
95
94
|
n();
|
|
96
|
-
const
|
|
95
|
+
const i = { printLabel: a };
|
|
97
96
|
export {
|
|
98
|
-
|
|
97
|
+
i as default,
|
|
99
98
|
a as printLabel
|
|
100
99
|
};
|
|
@@ -39,6 +39,7 @@ export declare const standardEvents: {
|
|
|
39
39
|
removeSigner: (params: any) => void;
|
|
40
40
|
retrieveTask: (params: any) => Promise<unknown>;
|
|
41
41
|
extractWorkflow: (params: any) => Promise<unknown>;
|
|
42
|
+
extractWorkflowEvent: (params: any) => void;
|
|
42
43
|
cancelExtractWorkflow: (params: any) => Promise<unknown>;
|
|
43
44
|
approveExtractWorkflow: (params: any) => Promise<unknown>;
|
|
44
45
|
refuseExtractWorkflow: (params: any) => Promise<unknown>;
|
|
@@ -80,7 +81,8 @@ export declare function getRemoveSigner(params: any): any;
|
|
|
80
81
|
export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
|
|
81
82
|
export declare function getRemoveTransactor(params: any): any;
|
|
82
83
|
export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
|
|
83
|
-
export declare function
|
|
84
|
+
export declare function extractWorkflowFunc(params: any): Promise<unknown>;
|
|
85
|
+
export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
|
|
84
86
|
/**
|
|
85
87
|
* 刷新页面
|
|
86
88
|
* @param pageContext
|