super-page-runtime 2.2.3 → 2.2.9
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/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
- package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
- package/dist/es/components/runtime/utils/barcode-util.js +1 -2
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
- package/dist/es/components/runtime/utils/common-util.js +7 -14
- package/dist/es/components/runtime/utils/events/event-util.js +97 -115
- package/dist/es/components/runtime/utils/events/print-label.js +20 -21
- package/dist/es/components/runtime/utils/events/standard-event.js +276 -326
- package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
- package/dist/es/components/runtime/utils/global-refs.js +7 -14
- package/dist/es/components/runtime/utils/i18n-util.js +1 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
- package/dist/es/components/runtime/utils/page-init-util.js +30 -37
- package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +4 -8
- package/dist/es/components/runtime/utils/tree-utils.js +13 -15
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -25
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +25 -38
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +74 -74
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
+
import { getAdditionalParamMap as t, standardEvents as i, judgeDataNumber as o, dealAfterOperate as r } from "./standard-event.js";
|
|
3
3
|
import { validateDataModelFunc as u } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef as c, getComponentRefByCode as l } from "../global-refs.js";
|
|
5
5
|
import { ElMessage as a } from "element-plus";
|
|
@@ -14,24 +14,21 @@ function C(e2, n2) {
|
|
|
14
14
|
const t2 = function(e3) {
|
|
15
15
|
const n3 = {};
|
|
16
16
|
return e3.forEach((e4) => {
|
|
17
|
-
if (!e4.isStandard && e4.jsContent)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
t3 += e4.name, n3[t3] = new Function("params", e4.jsContent);
|
|
29
|
-
}
|
|
17
|
+
if (!e4.isStandard && e4.jsContent) if ("customFunc" === e4.name) {
|
|
18
|
+
let t3 = null;
|
|
19
|
+
if (e4.funcParam) {
|
|
20
|
+
const n4 = e4.funcParam.split(",");
|
|
21
|
+
t3 = new Function(n4, e4.jsContent);
|
|
22
|
+
} else t3 = new Function(e4.jsContent);
|
|
23
|
+
n3[e4.eventName] = t3;
|
|
24
|
+
} else {
|
|
25
|
+
let t3 = e4.componentUuid + "_";
|
|
26
|
+
t3 += e4.name, n3[t3] = new Function("params", e4.jsContent);
|
|
27
|
+
}
|
|
30
28
|
}), n3;
|
|
31
29
|
}(e2.customEvents);
|
|
32
30
|
!function(e3, n3) {
|
|
33
|
-
if (!n3)
|
|
34
|
-
return;
|
|
31
|
+
if (!n3) return;
|
|
35
32
|
for (const t3 in n3) {
|
|
36
33
|
x(n3[t3], e3);
|
|
37
34
|
}
|
|
@@ -39,8 +36,7 @@ function C(e2, n2) {
|
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
function v(e2, n2) {
|
|
42
|
-
if (e2.customEvents)
|
|
43
|
-
return e2.customEvents[n2];
|
|
39
|
+
if (e2.customEvents) return e2.customEvents[n2];
|
|
44
40
|
}
|
|
45
41
|
function x(e2, n2) {
|
|
46
42
|
e2.get = function(e3) {
|
|
@@ -81,11 +77,10 @@ function O(e2, n2, t2, i2, o2) {
|
|
|
81
77
|
var _a, _b;
|
|
82
78
|
if (i2 && "change" === i2) {
|
|
83
79
|
const e3 = n2.subTableWatchProps;
|
|
84
|
-
if (e3)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
80
|
+
if (e3) for (const n3 in e3) {
|
|
81
|
+
const i3 = e3[n3], o3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
|
|
82
|
+
i3 && i3.indexOf(o3) >= 0 && m.$emit("_refreshSubTable_" + n3, { propName: o3 });
|
|
83
|
+
}
|
|
89
84
|
}
|
|
90
85
|
return y(e2, n2, t2, i2, true, o2, true);
|
|
91
86
|
}
|
|
@@ -95,45 +90,42 @@ function h(e2, n2, t2, i2) {
|
|
|
95
90
|
function E(e2, n2, t2, i2, o2) {
|
|
96
91
|
return y(e2, n2, t2, i2, false, o2, false);
|
|
97
92
|
}
|
|
98
|
-
function y(
|
|
99
|
-
const s2 =
|
|
93
|
+
function y(e2, t2, i2, r2, u2, l2, a2) {
|
|
94
|
+
const s2 = t2.code, g2 = t2.version, m2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
|
|
100
95
|
let p2;
|
|
101
96
|
if (a2 || !r2 || "click" !== r2) {
|
|
102
|
-
if (p2 = _(
|
|
103
|
-
return I(
|
|
97
|
+
if (p2 = _(t2, m2, r2), u2) {
|
|
98
|
+
return I(t2, i2, p2, N(t2, i2, e2, l2));
|
|
104
99
|
}
|
|
105
100
|
return p2;
|
|
106
101
|
}
|
|
107
102
|
{
|
|
108
|
-
const r3 = w(
|
|
103
|
+
const r3 = w(t2, i2);
|
|
109
104
|
if (r3) {
|
|
110
|
-
const
|
|
105
|
+
const e3 = c(t2, r3), n2 = e3 ? e3.getSelections() : null, i3 = e3 ? e3.getSelectionIds() : null;
|
|
111
106
|
l2 || (l2 = {}), l2.tableUuid = r3, l2.listCode = f(s2, g2, r3);
|
|
112
|
-
T(
|
|
113
|
-
const
|
|
114
|
-
l2.tableConfigure =
|
|
107
|
+
T(t2) && (l2.selections = n2, l2.id = i3 && i3.length > 0 ? i3[0] : null, l2.ids = i3);
|
|
108
|
+
const o2 = e3 ? e3.getTableConfigure() : null;
|
|
109
|
+
l2.tableConfigure = o2;
|
|
115
110
|
}
|
|
116
|
-
!function(
|
|
117
|
-
const r4 =
|
|
118
|
-
if (!r4)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
n3.clickUuid = i3.uuid, n3.canClick = false;
|
|
125
|
-
const t3 = i3.runtime && i3.runtime.events ? i3.runtime.events : [], r5 = _(n3, t3, "beforeValidateForm");
|
|
111
|
+
!function(e3, t3, i3) {
|
|
112
|
+
const r4 = o(t3, i3.ids);
|
|
113
|
+
if (!r4) return;
|
|
114
|
+
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
115
|
+
A(i3).then((o2) => {
|
|
116
|
+
if (true === o2.canExecute) {
|
|
117
|
+
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
118
|
+
const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r5 = _(e3, o3, "beforeValidateForm");
|
|
126
119
|
let u3;
|
|
127
|
-
if (r5 && (u3 = I(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}) : S(n3, i3, o3);
|
|
120
|
+
if (r5 && (u3 = I(e3, t3, r5, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
|
|
121
|
+
n(u3) ? u3.then((n2) => {
|
|
122
|
+
n2 && true === n2 ? S(e3, t3, i3) : e3.canClick = true;
|
|
123
|
+
}).catch((n2) => {
|
|
124
|
+
e3.canClick = true;
|
|
125
|
+
}) : S(e3, t3, i3);
|
|
134
126
|
}
|
|
135
127
|
});
|
|
136
|
-
}(
|
|
128
|
+
}(t2, i2, N(t2, i2, e2, l2));
|
|
137
129
|
}
|
|
138
130
|
}
|
|
139
131
|
function w(e2, n2) {
|
|
@@ -141,33 +133,30 @@ function w(e2, n2) {
|
|
|
141
133
|
}
|
|
142
134
|
function N(e2, n2, t2, i2) {
|
|
143
135
|
const o2 = {};
|
|
144
|
-
if (i2)
|
|
145
|
-
for (const e3 in i2)
|
|
146
|
-
o2[e3] = i2[e3];
|
|
136
|
+
if (i2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
147
137
|
return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
|
|
148
138
|
}
|
|
149
|
-
function S(
|
|
139
|
+
function S(e2, t2, i2) {
|
|
150
140
|
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
151
141
|
let r2 = true;
|
|
152
142
|
(i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
|
|
153
|
-
const c2 = q(
|
|
143
|
+
const c2 = q(e2, o2, "click");
|
|
154
144
|
if (c2) {
|
|
155
|
-
const
|
|
156
|
-
return
|
|
145
|
+
const e3 = function(e4, n2) {
|
|
146
|
+
return e4 && b.includes(n2.eventName);
|
|
157
147
|
}(c2.isStandard, c2.event);
|
|
158
|
-
|
|
148
|
+
e3 && (r2 = false);
|
|
159
149
|
}
|
|
160
|
-
u(
|
|
161
|
-
if (!o3)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
n2.canClick = true;
|
|
150
|
+
u(e2, t2, r2).then((o3) => {
|
|
151
|
+
if (!o3) return void (e2.canClick = true);
|
|
152
|
+
const r3 = R(e2, t2, i2);
|
|
153
|
+
r3 ? n(r3) ? r3.then((n2) => {
|
|
154
|
+
n2 ? D(e2, t2, c2, i2) : e2.canClick = true;
|
|
155
|
+
}).catch((n2) => {
|
|
156
|
+
e2.canClick = true;
|
|
157
|
+
}) : D(e2, t2, c2, i2) : e2.canClick = true;
|
|
158
|
+
}).catch((n2) => {
|
|
159
|
+
e2.canClick = true;
|
|
171
160
|
});
|
|
172
161
|
}
|
|
173
162
|
function R(e2, n2, t2) {
|
|
@@ -182,48 +171,45 @@ function P(e2, n2, t2) {
|
|
|
182
171
|
function T(e2, n2) {
|
|
183
172
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
184
173
|
}
|
|
185
|
-
function F(
|
|
186
|
-
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = _(
|
|
174
|
+
function F(e2, t2, i2) {
|
|
175
|
+
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = _(e2, o2, "afterClick");
|
|
187
176
|
if (r2) {
|
|
188
|
-
const o3 = I(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}) :
|
|
192
|
-
} else
|
|
193
|
-
n2.canClick = true;
|
|
177
|
+
const o3 = I(e2, t2, r2, null, i2);
|
|
178
|
+
n(o3) ? o3.finally(() => {
|
|
179
|
+
e2.canClick = true;
|
|
180
|
+
}) : e2.canClick = true;
|
|
181
|
+
} else e2.canClick = true;
|
|
194
182
|
}
|
|
195
183
|
function U(e2, n2, t2, i2, o2, u2) {
|
|
196
184
|
i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
|
|
197
185
|
const c2 = _(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
198
186
|
c2 && I(e2, n2, c2, t2);
|
|
199
187
|
}
|
|
200
|
-
function D(
|
|
188
|
+
function D(e2, t2, i2, o2) {
|
|
201
189
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
202
190
|
if (u2 && u2 instanceof Array) {
|
|
203
|
-
const
|
|
191
|
+
const n2 = function(e3) {
|
|
204
192
|
let n3 = e3 ? e3.row : null;
|
|
205
193
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
206
194
|
return n3;
|
|
207
|
-
}(o2), i3 = d(
|
|
195
|
+
}(o2), i3 = d(e2, t2, u2, n2);
|
|
208
196
|
let c2, l2 = false;
|
|
209
197
|
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
|
|
210
198
|
}
|
|
211
|
-
u2 && u2.jumpPageUrl ? (
|
|
199
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, P(e2, r2, o2)) : function(e3, t3, i3, o3) {
|
|
212
200
|
const r3 = i3;
|
|
213
201
|
if (r3) {
|
|
214
|
-
const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = I(
|
|
215
|
-
if (function(
|
|
216
|
-
return
|
|
217
|
-
}(u3, c2))
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
n3.canClick = true;
|
|
226
|
-
}(n2, t2, i2, o2);
|
|
202
|
+
const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = I(e3, t3, i4, o3), a2 = T(e3);
|
|
203
|
+
if (function(e4, n2) {
|
|
204
|
+
return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName);
|
|
205
|
+
}(u3, c2)) return void (e3.canClick = true);
|
|
206
|
+
n(l2) ? l2.then((n2) => {
|
|
207
|
+
n2 ? U(e3, t3, o3, u3, n2, a2) : e3.canClick = true;
|
|
208
|
+
}).catch((n2) => {
|
|
209
|
+
e3.canClick = true;
|
|
210
|
+
}) : U(e3, t3, o3, u3, l2, a2);
|
|
211
|
+
} else e3.canClick = true;
|
|
212
|
+
}(e2, t2, i2, o2);
|
|
227
213
|
}
|
|
228
214
|
function L(e2, n2) {
|
|
229
215
|
const t2 = e2.customEvents;
|
|
@@ -260,34 +246,30 @@ function q(e2, n2, t2) {
|
|
|
260
246
|
}
|
|
261
247
|
function I(e2, n2, t2, i2, o2) {
|
|
262
248
|
if (t2) {
|
|
263
|
-
if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2)
|
|
264
|
-
for (const e3 in o2)
|
|
265
|
-
i2[e3] = o2[e3];
|
|
249
|
+
if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
266
250
|
return t2.apply(t2, [i2]);
|
|
267
251
|
}
|
|
268
252
|
}
|
|
269
253
|
function A(e2) {
|
|
270
|
-
const n2 = e2.pageContext,
|
|
254
|
+
const n2 = e2.pageContext, i2 = e2.configureObj, o2 = T(n2);
|
|
271
255
|
let r2 = [];
|
|
272
|
-
if (
|
|
273
|
-
n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
256
|
+
if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
274
257
|
else {
|
|
275
258
|
const e3 = n2.entity.data;
|
|
276
259
|
r2.push(e3);
|
|
277
260
|
}
|
|
278
|
-
const u2 =
|
|
279
|
-
return new Promise((e3,
|
|
280
|
-
if (void 0 === u2 || "" === u2 || void 0 === r2 || 0 === r2.length)
|
|
281
|
-
e3({ canExecute: true });
|
|
261
|
+
const u2 = i2.props.base.condition;
|
|
262
|
+
return new Promise((e3, i3) => {
|
|
263
|
+
if (void 0 === u2 || "" === u2 || void 0 === r2 || 0 === r2.length) e3({ canExecute: true });
|
|
282
264
|
else {
|
|
283
|
-
const
|
|
265
|
+
const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
284
266
|
let f2, g2, m2 = true;
|
|
285
267
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
286
|
-
const
|
|
268
|
+
const t2 = r2[e4];
|
|
287
269
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
288
270
|
const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
|
|
289
|
-
if (!s(p2,
|
|
290
|
-
m2 = false, f2 = a2, g2 =
|
|
271
|
+
if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
|
|
272
|
+
m2 = false, f2 = a2, g2 = t2;
|
|
291
273
|
break;
|
|
292
274
|
}
|
|
293
275
|
}
|
|
@@ -354,13 +336,13 @@ function Q(e2, n2, t2) {
|
|
|
354
336
|
function X(e2) {
|
|
355
337
|
return E(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
356
338
|
}
|
|
357
|
-
function Y(
|
|
339
|
+
function Y(n2) {
|
|
358
340
|
let t2 = true;
|
|
359
|
-
if (!
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
362
|
-
const
|
|
363
|
-
|
|
341
|
+
if (!e()) {
|
|
342
|
+
const e2 = n2 && n2.events ? n2.events : [];
|
|
343
|
+
if (e2) {
|
|
344
|
+
const n3 = e2.filter((e3) => "click" === e3.name && e3.isStandard && e3.eventName && "showSearch" === e3.eventName);
|
|
345
|
+
n3 && n3.length > 0 && (t2 = false);
|
|
364
346
|
}
|
|
365
347
|
}
|
|
366
348
|
return t2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
|
-
import {
|
|
2
|
+
import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
3
3
|
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
|
-
function a(
|
|
4
|
+
function a(n2, a2) {
|
|
5
5
|
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
|
|
6
6
|
const a3 = JSON.parse(e2[0].template), i2 = [];
|
|
7
7
|
a3.panels.forEach((e3) => {
|
|
@@ -9,39 +9,38 @@ function a(t2, a2) {
|
|
|
9
9
|
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
const l = new
|
|
12
|
+
const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
|
|
13
13
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
|
|
14
|
-
|
|
15
|
-
if (
|
|
14
|
+
n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2) {
|
|
15
|
+
if (t2.length > 0) {
|
|
16
16
|
const i3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
|
|
17
|
-
|
|
18
|
-
i3.push(function(e5,
|
|
19
|
-
return new Promise((
|
|
17
|
+
t2.forEach((e4) => {
|
|
18
|
+
i3.push(function(e5, t3) {
|
|
19
|
+
return new Promise((n4, a5) => {
|
|
20
20
|
const s3 = e5.field.split("."), i4 = [];
|
|
21
|
-
s3.length < 2 &&
|
|
21
|
+
s3.length < 2 && n4([]);
|
|
22
22
|
try {
|
|
23
23
|
p(s3[1]).then((e6) => {
|
|
24
|
-
|
|
25
|
-
const a6 = { type: s3[0], name: s3[1], value: null, index:
|
|
26
|
-
a6.value = o(JSON.parse(e6.barcodeModelItems),
|
|
27
|
-
}),
|
|
24
|
+
t3.forEach((t4, n5) => {
|
|
25
|
+
const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
|
|
26
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t4), i4.push(a6);
|
|
27
|
+
}), n4(i4);
|
|
28
28
|
});
|
|
29
29
|
} catch (e6) {
|
|
30
|
-
|
|
30
|
+
n4([]);
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}(e4, l2));
|
|
34
34
|
}), Promise.all(i3).then((e4) => {
|
|
35
35
|
e4.forEach((e5) => {
|
|
36
36
|
e5.forEach((e6) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
const t3 = e6.index, n4 = l2[t3];
|
|
38
|
+
n4[e6.type] || (n4[e6.type] = {}), n4[e6.type][e6.name] = e6.value;
|
|
39
39
|
});
|
|
40
|
-
}),
|
|
40
|
+
}), n3.print(l2, a4, s2);
|
|
41
41
|
});
|
|
42
|
-
} else
|
|
43
|
-
|
|
44
|
-
}(t2, i2, l, c, r) : "form" === t2.pageContext.pageType && s(t2, i2, l, c, r) : s(t2, i2, l, c, r);
|
|
42
|
+
} else n3.print(e3.selections, a4, s2);
|
|
43
|
+
}(n2, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
46
|
function s(e2, t2, n2, a2, s2) {
|
|
@@ -79,7 +78,7 @@ function p(t2) {
|
|
|
79
78
|
const n2 = encodeURIComponent(t2);
|
|
80
79
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
n();
|
|
83
82
|
const i = { printLabel: a };
|
|
84
83
|
export {
|
|
85
84
|
i as default,
|