super-page-runtime 2.3.39-sit2 → 2.3.40-cdn1
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 +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +157 -149
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/page-store.js +9 -9
- 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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- 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 +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +7 -7
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -17
- 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 +2 -0
- 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 +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- 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 +39 -37
- 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 +33 -33
- 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 +7 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- 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 +43 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
- 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 +10 -8
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.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.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +75 -72
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +102 -102
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
3
|
import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
|
|
4
|
-
import { getI18n as
|
|
5
|
-
import { getAdditionalParamMap as
|
|
4
|
+
import { getI18n as o } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { getAdditionalParamMap as i } from "./standard-event.js";
|
|
6
6
|
import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
8
|
-
import { isWorkflowPage as u, getListCode as
|
|
9
|
-
import { scrollIntoComponentWithCode as
|
|
8
|
+
import { isWorkflowPage as u, getListCode as c } from "../common-util.js";
|
|
9
|
+
import { scrollIntoComponentWithCode as f, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
|
|
10
10
|
const m = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"];
|
|
11
11
|
function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
|
|
12
12
|
if ("function" == typeof structuredClone) try {
|
|
@@ -45,32 +45,32 @@ function g(e2, t2, s2) {
|
|
|
45
45
|
const n2 = {};
|
|
46
46
|
t2 || (t2 = {});
|
|
47
47
|
let r2 = 0;
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
let
|
|
51
|
-
if (r2 ===
|
|
48
|
+
const o2 = e2.split(".");
|
|
49
|
+
return o2.forEach((e3) => {
|
|
50
|
+
let i2;
|
|
51
|
+
if (r2 === o2.length - 1) i2 = function(e4, t3, s3) {
|
|
52
52
|
let n3;
|
|
53
53
|
for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
|
|
54
54
|
if (t3[r3 + 1] === s3) break;
|
|
55
55
|
}
|
|
56
56
|
return n3;
|
|
57
|
-
}(n2,
|
|
57
|
+
}(n2, o2, e3), i2.fields[e3] = s2;
|
|
58
58
|
else {
|
|
59
59
|
let s3;
|
|
60
|
-
0 === r2 ?
|
|
60
|
+
0 === r2 ? i2 = t2 : (s3 = function(e4, t3, s4) {
|
|
61
61
|
let n3;
|
|
62
62
|
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
63
|
-
const
|
|
64
|
-
if (n3 = 0 === r3 ? e4[
|
|
63
|
+
const o3 = t3[r3];
|
|
64
|
+
if (n3 = 0 === r3 ? e4[o3] : n3.fields[t3[r3]], o3 === s4) break;
|
|
65
65
|
}
|
|
66
66
|
return n3;
|
|
67
|
-
}(n2,
|
|
67
|
+
}(n2, o2, o2[r2 - 1]), i2 = s3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = i2[e3] : s3.fields[e3] = i2[e3];
|
|
68
68
|
}
|
|
69
69
|
r2++;
|
|
70
70
|
}), n2;
|
|
71
71
|
}
|
|
72
|
-
function b(e2, t2, s2, n2, r2,
|
|
73
|
-
return w(e2, t2, s2, n2, true, r2,
|
|
72
|
+
function b(e2, t2, s2, n2, r2, o2) {
|
|
73
|
+
return w(e2, t2, s2, n2, true, r2, o2);
|
|
74
74
|
}
|
|
75
75
|
function h(e2) {
|
|
76
76
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
@@ -80,29 +80,30 @@ function h(e2) {
|
|
|
80
80
|
}
|
|
81
81
|
}), e2;
|
|
82
82
|
}
|
|
83
|
-
function w(n2, r2,
|
|
84
|
-
let
|
|
85
|
-
if (r2 && null !== r2 || !
|
|
83
|
+
function w(n2, r2, o2, i2, l2, a2, u2) {
|
|
84
|
+
let c2, d2 = h(r2);
|
|
85
|
+
if (r2 && null !== r2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
|
|
86
86
|
return new e(d2).validate(n2, { first: true }, (e2, d3) => {
|
|
87
87
|
let m2;
|
|
88
88
|
if (e2) {
|
|
89
|
-
|
|
89
|
+
c2 = e2[0].message, m2 = e2[0].field, t({ message: c2, showClose: true, type: "warning", duration: 3e3 });
|
|
90
90
|
const n3 = s(u2, m2);
|
|
91
91
|
if (n3 && n3.addRequiredClass) {
|
|
92
92
|
n3.addRequiredClass();
|
|
93
93
|
try {
|
|
94
|
-
|
|
94
|
+
f(u2, m2);
|
|
95
95
|
} catch (e3) {
|
|
96
|
+
console.error("滚动失败", e3);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
|
-
} else
|
|
99
|
+
} else c2 = true;
|
|
99
100
|
if (m2 && true === l2) {
|
|
100
101
|
if (/[A-Z]+/.test(m2) && void 0 !== n2[m2.toLowerCase()]) {
|
|
101
102
|
const e3 = JSON.parse(JSON.stringify(n2));
|
|
102
|
-
e3[m2.toUpperCase()] = n2[m2.toLowerCase()], delete e3[m2.toLowerCase()],
|
|
103
|
+
e3[m2.toUpperCase()] = n2[m2.toLowerCase()], delete e3[m2.toLowerCase()], c2 = w(e3, r2, o2, i2, false, a2, u2);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
}),
|
|
106
|
+
}), c2;
|
|
106
107
|
}
|
|
107
108
|
function y(e2, n2, r2, l2) {
|
|
108
109
|
if (r2) {
|
|
@@ -110,69 +111,71 @@ function y(e2, n2, r2, l2) {
|
|
|
110
111
|
e3(true);
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
|
-
const
|
|
114
|
+
const c2 = e2.entity.data, d2 = { ...e2.entity.page, ...c2 }, m2 = e2.rules, g2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
114
115
|
return null != g2 && (l2 = g2), null == l2 && (l2 = false), function(e3, n3, r3, l3) {
|
|
115
116
|
if (e3) {
|
|
116
117
|
return u(l3) ? function(e4, n4, r4) {
|
|
117
118
|
return new Promise((l4, u2) => {
|
|
118
|
-
const
|
|
119
|
+
const c3 = i(n4), d3 = n4.entity.context, m3 = n4.entity.task, g3 = true, b2 = n4.subTablePageInfo;
|
|
119
120
|
E(e4, n4, r4).then((r5) => {
|
|
120
121
|
if (r5) {
|
|
121
|
-
let
|
|
122
|
+
let i2, u3, h2, w2, y2 = r5;
|
|
122
123
|
const R2 = n4.workflowRules;
|
|
123
124
|
if (R2) {
|
|
124
125
|
if (!function(e5, n5) {
|
|
125
126
|
var _a, _b, _c, _d;
|
|
126
127
|
if (!e5.actionPermissions) return true;
|
|
127
128
|
const r7 = Object.keys(e5.actionPermissions);
|
|
128
|
-
for (let
|
|
129
|
-
const l5 = r7[
|
|
129
|
+
for (let i3 = 0; i3 < r7.length; i3++) {
|
|
130
|
+
const l5 = r7[i3], u4 = e5.actionPermissions[l5];
|
|
130
131
|
if (u4 && u4.notEmpty) {
|
|
131
132
|
if ((_a = e5.hiddenNotValidatorCodes) == null ? void 0 : _a.has(l5)) continue;
|
|
132
133
|
let r8 = false;
|
|
133
134
|
if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (r8 = true) : r8 = true, r8) {
|
|
134
135
|
const r9 = s(e5, l5);
|
|
135
136
|
if (!r9) return true;
|
|
136
|
-
const
|
|
137
|
+
const i4 = r9.getConfigure();
|
|
137
138
|
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
138
139
|
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
|
|
139
140
|
}
|
|
140
|
-
return t({ showClose: true, message:
|
|
141
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
return true;
|
|
145
146
|
}(n4, e4)) return void l4(false);
|
|
146
|
-
const r6 = true,
|
|
147
|
+
const r6 = true, f2 = p(R2), E2 = n4.hiddenNotValidatorCodes;
|
|
147
148
|
E2 && E2.size > 0 && E2.forEach((e5) => {
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4,
|
|
151
|
-
y2 = v2.msg,
|
|
149
|
+
f2.subRules && delete f2.subRules[e5], f2.rules && delete f2.rules[e5];
|
|
150
|
+
}), f2.subRules && (Object.keys(f2.subRules).length > 0 ? f2.totalSubRules || (f2.totalSubRules = {}) : delete f2.subRules);
|
|
151
|
+
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, f2, g3, c3, m3, d3, b2, r6);
|
|
152
|
+
y2 = v2.msg, i2 = v2.field, u3 = v2.listCode, h2 = v2.rowIndex, w2 = v2.pageNum;
|
|
152
153
|
} else y2 = true;
|
|
153
154
|
if (true !== y2) {
|
|
154
155
|
if (t({ showClose: true, message: y2 + "", type: "warning" }), u3) {
|
|
155
156
|
const e5 = s(n4, u3);
|
|
156
157
|
if (e5 && e5.addRequiredClass) {
|
|
157
|
-
e5.addRequiredClass(
|
|
158
|
+
e5.addRequiredClass(i2, h2, w2);
|
|
158
159
|
try {
|
|
159
|
-
|
|
160
|
+
f(n4, u3), e5.scrollToCell({ fieldName: i2, rowIndex: h2, pageNum: w2 });
|
|
160
161
|
} catch (e6) {
|
|
162
|
+
console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e6);
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
} else {
|
|
164
|
-
const e5 = s(n4,
|
|
166
|
+
const e5 = s(n4, i2);
|
|
165
167
|
if (e5 && e5.addRequiredClass) {
|
|
166
168
|
e5.addRequiredClass();
|
|
167
169
|
try {
|
|
168
|
-
|
|
170
|
+
f(n4, i2);
|
|
169
171
|
} catch (e6) {
|
|
172
|
+
console.error("滚动失败", e6);
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
l4(false);
|
|
174
177
|
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
|
|
175
|
-
} else u2(new Error(
|
|
178
|
+
} else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
176
179
|
}).catch((e5) => {
|
|
177
180
|
u2(e5);
|
|
178
181
|
});
|
|
@@ -197,8 +200,8 @@ function y(e2, n2, r2, l2) {
|
|
|
197
200
|
}
|
|
198
201
|
function R(e2) {
|
|
199
202
|
return new Promise((t2, s2) => {
|
|
200
|
-
const r2 = [],
|
|
201
|
-
|
|
203
|
+
const r2 = [], o2 = e2.customValidatorUuids;
|
|
204
|
+
o2 && o2.forEach((t3) => {
|
|
202
205
|
const s3 = n(e2, t3);
|
|
203
206
|
s3 && s3.validator && r2.push(s3.validator());
|
|
204
207
|
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
@@ -208,11 +211,11 @@ function R(e2) {
|
|
|
208
211
|
}
|
|
209
212
|
function E(e2, t2, s2) {
|
|
210
213
|
return new Promise((n2, r2) => {
|
|
211
|
-
const
|
|
214
|
+
const i2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
|
|
212
215
|
if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
|
|
213
216
|
delete a2[e3];
|
|
214
217
|
}), a2 && 0 !== Object.keys(a2).length) {
|
|
215
|
-
if (true === b(
|
|
218
|
+
if (true === b(i2, a2, null, null, true, t2)) {
|
|
216
219
|
if (true === P(t2)) {
|
|
217
220
|
const e3 = x(t2);
|
|
218
221
|
e3 && l(e3) ? e3.then((e4) => {
|
|
@@ -222,8 +225,8 @@ function E(e2, t2, s2) {
|
|
|
222
225
|
}) : R(t2).then((e4) => {
|
|
223
226
|
n2(e4);
|
|
224
227
|
});
|
|
225
|
-
} else r2(new Error(
|
|
226
|
-
} else r2(new Error(
|
|
228
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
229
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
227
230
|
} else {
|
|
228
231
|
if (true === P(t2)) {
|
|
229
232
|
const e3 = x(t2);
|
|
@@ -234,21 +237,21 @@ function E(e2, t2, s2) {
|
|
|
234
237
|
}) : R(t2).then((e4) => {
|
|
235
238
|
n2(e4);
|
|
236
239
|
});
|
|
237
|
-
} else r2(new Error(
|
|
240
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
238
241
|
}
|
|
239
242
|
});
|
|
240
243
|
}
|
|
241
244
|
function v(e2, t2, s2) {
|
|
242
245
|
if (!t2) return s2;
|
|
243
246
|
s2 || (s2 = {});
|
|
244
|
-
const n2 = u(e2), r2 = Object.keys(t2),
|
|
247
|
+
const n2 = u(e2), r2 = Object.keys(t2), o2 = t2;
|
|
245
248
|
return r2.forEach((e3) => {
|
|
246
249
|
if ("__subRules" === e3) {
|
|
247
|
-
const e4 =
|
|
250
|
+
const e4 = o2.__subRules;
|
|
248
251
|
Object.keys(e4).forEach((t3) => {
|
|
249
252
|
s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
|
|
250
253
|
});
|
|
251
|
-
} else S(
|
|
254
|
+
} else S(o2[e3]), n2 ? (s2.rules[e3] = o2[e3], s2[e3] && (s2[e3] = o2[e3])) : s2[e3] = o2[e3];
|
|
252
255
|
}), h(s2);
|
|
253
256
|
}
|
|
254
257
|
function P(e2) {
|
|
@@ -258,9 +261,9 @@ function P(e2) {
|
|
|
258
261
|
const s2 = e2.tableUuids;
|
|
259
262
|
if (!s2) return true;
|
|
260
263
|
for (let r2 = 0; r2 < s2.length; r2++) {
|
|
261
|
-
const
|
|
262
|
-
if (l2 && l2.size > 0 && l2.has(
|
|
263
|
-
const a2 = n(e2,
|
|
264
|
+
const i2 = s2[r2], l2 = e2.hiddenNotValidatorCodes;
|
|
265
|
+
if (l2 && l2.size > 0 && l2.has(i2)) continue;
|
|
266
|
+
const a2 = n(e2, i2);
|
|
264
267
|
if (a2) {
|
|
265
268
|
if (a2.getConfigure()) {
|
|
266
269
|
const s3 = a2.getConfigure();
|
|
@@ -268,16 +271,16 @@ function P(e2) {
|
|
|
268
271
|
const n2 = a2.getTableData();
|
|
269
272
|
if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
|
|
270
273
|
try {
|
|
271
|
-
d(e2,
|
|
274
|
+
d(e2, i2);
|
|
272
275
|
} catch (e3) {
|
|
273
276
|
}
|
|
274
|
-
return t({ showClose: true, message:
|
|
277
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: s3.title ? s3.title : s3.code }), type: "warning" }), false;
|
|
275
278
|
}
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
281
|
if (false === a2.validatorSunTableListData()) {
|
|
279
282
|
try {
|
|
280
|
-
d(e2,
|
|
283
|
+
d(e2, i2);
|
|
281
284
|
} catch (e3) {
|
|
282
285
|
}
|
|
283
286
|
return false;
|
|
@@ -290,24 +293,24 @@ function k(e2) {
|
|
|
290
293
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
291
294
|
const t2 = {}, s2 = Object.keys(e2);
|
|
292
295
|
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
293
|
-
const r2 = s2[n2],
|
|
294
|
-
C(
|
|
296
|
+
const r2 = s2[n2], o2 = e2[r2];
|
|
297
|
+
C(o2), r2.indexOf(".") > 0 ? g(r2, t2, o2) : o2 && o2.length > 0 && (t2[r2] = [...o2]);
|
|
295
298
|
}
|
|
296
299
|
return t2;
|
|
297
300
|
}
|
|
298
301
|
function C(e2, t2) {
|
|
299
302
|
e2.forEach((e3) => {
|
|
300
303
|
e3.message;
|
|
301
|
-
const t3 = e3.label, s2 =
|
|
302
|
-
e3.required && (e3.message =
|
|
304
|
+
const t3 = e3.label, s2 = o().t(t3);
|
|
305
|
+
e3.required && (e3.message = o().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = o().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = o().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
|
|
303
306
|
});
|
|
304
307
|
}
|
|
305
308
|
function O(e2) {
|
|
306
|
-
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 =
|
|
309
|
+
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = i(e2), r2 = e2.entity.context, o2 = e2.entity.task;
|
|
307
310
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
308
311
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
309
312
|
});
|
|
310
|
-
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2,
|
|
313
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, o2, r2);
|
|
311
314
|
const a2 = e2.customRules;
|
|
312
315
|
return l2 = v(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
313
316
|
}
|
|
@@ -325,7 +328,7 @@ function x(e2) {
|
|
|
325
328
|
}), r2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
326
329
|
t3.includes(false) ? e3(false) : e3(true);
|
|
327
330
|
}).catch((t3) => {
|
|
328
|
-
e3(false);
|
|
331
|
+
console.error(t3), e3(false);
|
|
329
332
|
}) : e3(true);
|
|
330
333
|
}) : null;
|
|
331
334
|
}
|
|
@@ -362,16 +365,16 @@ function M(e2, t2) {
|
|
|
362
365
|
}
|
|
363
366
|
function N(e2, t2, r2) {
|
|
364
367
|
var _a;
|
|
365
|
-
let
|
|
366
|
-
if (r2 ? (
|
|
367
|
-
const l2 = e2.code, a2 = e2.version, u2 =
|
|
368
|
+
let o2, i2;
|
|
369
|
+
if (r2 ? (o2 = s(e2, r2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? n(e2, i2) : null), !o2) return;
|
|
370
|
+
const l2 = e2.code, a2 = e2.version, u2 = c(l2, a2, i2);
|
|
368
371
|
if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[r2] || (e2.workflowRules.subRules[r2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
|
|
369
372
|
const s2 = e2.workflowRules.subRules[r2];
|
|
370
373
|
t2.forEach((e3) => {
|
|
371
374
|
s2[e3.name] = e3;
|
|
372
375
|
});
|
|
373
376
|
}
|
|
374
|
-
|
|
377
|
+
o2.dynamicControlTableEdit(e2, t2, u2);
|
|
375
378
|
}
|
|
376
379
|
function q(e2, t2, s2) {
|
|
377
380
|
var _a, _b, _c;
|
|
@@ -379,8 +382,8 @@ function q(e2, t2, s2) {
|
|
|
379
382
|
const n2 = t2.getConfigure();
|
|
380
383
|
if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== s2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
|
|
381
384
|
t2.changeOperationAddState(false);
|
|
382
|
-
const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version,
|
|
383
|
-
t2.dynamicControlTableEdit(e2,
|
|
385
|
+
const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, o2 = c(n3, r2, s3), i2 = [{ name: "_all_fields", disabled: true }];
|
|
386
|
+
t2.dynamicControlTableEdit(e2, i2, o2);
|
|
384
387
|
}
|
|
385
388
|
}
|
|
386
389
|
}
|
|
@@ -57,6 +57,13 @@ export declare function getComponentOptionDatasFromPage(pageContext: PageContext
|
|
|
57
57
|
* @param configure
|
|
58
58
|
*/
|
|
59
59
|
export declare function getOptionDatasSourceMap(pageContext: PageContext): any;
|
|
60
|
+
/**
|
|
61
|
+
* 将查询到的选项组数据缓存到页面上下文中
|
|
62
|
+
* @param pageContext
|
|
63
|
+
* @param configureUuid
|
|
64
|
+
* @param options
|
|
65
|
+
*/
|
|
66
|
+
export declare function putToOptionSourceMap(pageContext: PageContext, configureUuid: string, options: any): void;
|
|
60
67
|
/**
|
|
61
68
|
* 从页面缓存中获取查询到的统计图数据
|
|
62
69
|
* @param pageContext
|
|
@@ -138,6 +138,9 @@ function getOptionDatasSourceMap(t) {
|
|
|
138
138
|
const e = t.optionSourceMap;
|
|
139
139
|
return e || {};
|
|
140
140
|
}
|
|
141
|
+
function putToOptionSourceMap(t, e, o) {
|
|
142
|
+
t.optionSourceMap || (t.optionSourceMap = {}), t.optionSourceMap[e] = o;
|
|
143
|
+
}
|
|
141
144
|
function getChartDatasFromPage(t, e) {
|
|
142
145
|
if (!t || !t.chartDataSourceMap || !e) return null;
|
|
143
146
|
return t.chartDataSourceMap[e.uuid];
|
|
@@ -377,6 +380,7 @@ export {
|
|
|
377
380
|
isNumberDataType,
|
|
378
381
|
isPromise,
|
|
379
382
|
monitorFieldChange,
|
|
383
|
+
putToOptionSourceMap,
|
|
380
384
|
queryOptionDatasources,
|
|
381
385
|
setValueForVariableName,
|
|
382
386
|
setVariableValue,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
3
|
import { PageDimensions as n } from "./interfaces/page-design-types.js";
|
|
4
|
-
import { getFormPropName as i, getVariableValue as s, formatVariableValue as
|
|
4
|
+
import { getFormPropName as i, getVariableValue as s, formatVariableValue as r, setVariableValue as o } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as l } from "./api/page-expose-util.js";
|
|
7
|
-
import { isWorkflowPage as
|
|
7
|
+
import { isWorkflowPage as u, deepCopy as p } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
9
|
import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
|
|
10
10
|
function f(t2) {
|
|
@@ -91,6 +91,7 @@ function w(e2) {
|
|
|
91
91
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
92
92
|
}), e2.props.judgeHeavyList) : null;
|
|
93
93
|
} catch (e3) {
|
|
94
|
+
console.error("getJudgeHeavyList error:", e3);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
function P(e2) {
|
|
@@ -120,7 +121,7 @@ function E(e2, t2) {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
function v(e2, t2) {
|
|
123
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
124
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
124
125
|
Object.assign(t2, e2.query);
|
|
125
126
|
C(e2.query.paramStoreId, t2);
|
|
126
127
|
}
|
|
@@ -142,27 +143,28 @@ function k(e2, t2) {
|
|
|
142
143
|
}
|
|
143
144
|
function A(e2, t2, n2) {
|
|
144
145
|
var _a, _b;
|
|
145
|
-
const i2 = k(t2, n2),
|
|
146
|
-
if (null ==
|
|
147
|
-
let n3,
|
|
148
|
-
t2 && (n3 = t2.props.base ? t2.props.base : {},
|
|
149
|
-
const l2 = s(
|
|
146
|
+
const i2 = k(t2, n2), r2 = e2.entity;
|
|
147
|
+
if (null == r2.data.ID && null == r2.data.id) {
|
|
148
|
+
let n3, o2, a2 = false;
|
|
149
|
+
t2 && (n3 = t2.props.base ? t2.props.base : {}, o2 = t2.name, a2 = n3.multiple);
|
|
150
|
+
const l2 = s(r2, i2);
|
|
150
151
|
if (null == l2) {
|
|
151
152
|
const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
|
|
152
153
|
if (s2) try {
|
|
153
|
-
const t3 = T(e2, s2,
|
|
154
|
-
if (M(t3)) I(
|
|
154
|
+
const t3 = T(e2, s2, o2, a2);
|
|
155
|
+
if (M(t3)) I(r2, i2, t3, l3);
|
|
155
156
|
else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
156
157
|
const t4 = n3.moreDefaultValue;
|
|
157
158
|
for (let n4 = 0; n4 < t4.length; n4++) {
|
|
158
|
-
const s3 = T(e2, t4[n4],
|
|
159
|
+
const s3 = T(e2, t4[n4], o2, a2);
|
|
159
160
|
if (M(s3)) {
|
|
160
|
-
I(
|
|
161
|
+
I(r2, i2, s3, l3);
|
|
161
162
|
break;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
} catch (e3) {
|
|
167
|
+
console.error("设置默认值出错:", i2, e3);
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
170
|
}
|
|
@@ -172,11 +174,11 @@ function M(e2) {
|
|
|
172
174
|
return null != e2 && "" !== e2;
|
|
173
175
|
}
|
|
174
176
|
function I(e2, t2, n2, i2) {
|
|
175
|
-
!Array.isArray(n2) || i2 ?
|
|
177
|
+
!Array.isArray(n2) || i2 ? o(e2, t2, n2) : o(e2, t2, n2.join(","));
|
|
176
178
|
}
|
|
177
179
|
function T(e2, t2, n2, i2) {
|
|
178
180
|
let s2;
|
|
179
|
-
if (t2 && (s2 =
|
|
181
|
+
if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && n2)) {
|
|
180
182
|
let e3 = false;
|
|
181
183
|
"checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
|
|
182
184
|
}
|
|
@@ -190,12 +192,12 @@ function j(e2, t2) {
|
|
|
190
192
|
if (e2.functionCodes) {
|
|
191
193
|
const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
|
|
192
194
|
for (let e3 = 0; e3 < s2.length; e3++) {
|
|
193
|
-
const
|
|
195
|
+
const r2 = s2[e3], o2 = e3 < i2.length ? i2[e3] : "";
|
|
194
196
|
let a2 = "";
|
|
195
|
-
if ("service" ==
|
|
196
|
-
else if ("standard" ===
|
|
197
|
+
if ("service" == o2) a2 = r2;
|
|
198
|
+
else if ("standard" === o2) a2 = t2.code + "." + r2;
|
|
197
199
|
else {
|
|
198
|
-
a2 = "custom" === O(
|
|
200
|
+
a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
|
|
199
201
|
}
|
|
200
202
|
n2.includes(a2) || n2.push(a2);
|
|
201
203
|
}
|
|
@@ -210,25 +212,25 @@ function O(e2, t2) {
|
|
|
210
212
|
return null;
|
|
211
213
|
}
|
|
212
214
|
function x(n2, i2, s2) {
|
|
213
|
-
const
|
|
215
|
+
const r2 = n2.tableRuntimes, o2 = t(i2);
|
|
214
216
|
let a2;
|
|
215
217
|
const l2 = n2.code;
|
|
216
|
-
return
|
|
218
|
+
return o2 && Object.keys(o2) > 0 && (a2 = JSON.stringify(o2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
|
|
217
219
|
}
|
|
218
220
|
const R = ["button-detail", "print-label"];
|
|
219
221
|
function _(e2, t2, n2) {
|
|
220
222
|
var _a, _b;
|
|
221
|
-
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null,
|
|
222
|
-
let
|
|
223
|
-
if (
|
|
223
|
+
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
|
|
224
|
+
let o2 = false;
|
|
225
|
+
if (r2 && R.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
224
226
|
const n3 = e2.fieldPermissionMap.get("all_fields");
|
|
225
|
-
false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled",
|
|
227
|
+
false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
|
|
226
228
|
}
|
|
227
229
|
if (s2) {
|
|
228
230
|
const a2 = i(s2);
|
|
229
231
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
|
|
230
232
|
d(e3), !n2 && e3 && e3.required && (e3.required = false);
|
|
231
|
-
}), e2.rules[a2] = t2.props.rules),
|
|
233
|
+
}), e2.rules[a2] = t2.props.rules), r2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
232
234
|
const i2 = e2.fieldPermissionMap.get(a2);
|
|
233
235
|
if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
|
|
234
236
|
let t3 = e2.workflowRules[a2];
|
|
@@ -253,7 +255,7 @@ function V(e2, t2) {
|
|
|
253
255
|
if (i2) if ("dynamicControlFormEdit" === n2) {
|
|
254
256
|
let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
255
257
|
if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
|
|
256
|
-
const e3 =
|
|
258
|
+
const e3 = p(n3[0]);
|
|
257
259
|
e3.name = t2, n3 = [e3];
|
|
258
260
|
}
|
|
259
261
|
l.dynamicControlFormEdit(e2, n3, false);
|
|
@@ -4,33 +4,33 @@ import n from "./eventBus.js";
|
|
|
4
4
|
const u = t("pageContextUtil", () => {
|
|
5
5
|
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
|
|
6
6
|
let v = null, c = -1, d = -1, m = 0;
|
|
7
|
-
function
|
|
7
|
+
function p() {
|
|
8
8
|
v && clearTimeout(v), v = setTimeout(() => {
|
|
9
9
|
o(() => {
|
|
10
10
|
!function() {
|
|
11
11
|
const e2 = r.value, o2 = s.value;
|
|
12
|
-
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 &&
|
|
12
|
+
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && f(true));
|
|
13
13
|
if (e2 > 0 && e2 === o2) {
|
|
14
|
-
if (e2 === c && o2 === d && !u2.value) return void
|
|
15
|
-
c = e2, d = o2,
|
|
16
|
-
} else c = -1, d = -1,
|
|
14
|
+
if (e2 === c && o2 === d && !u2.value) return void f(true);
|
|
15
|
+
c = e2, d = o2, p();
|
|
16
|
+
} else c = -1, d = -1, p();
|
|
17
17
|
}();
|
|
18
18
|
});
|
|
19
19
|
}, 30);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function f(e2) {
|
|
22
22
|
u2.value = e2, C();
|
|
23
23
|
}
|
|
24
24
|
function C() {
|
|
25
|
-
u2.value
|
|
25
|
+
!u2.value || !a.value && "list" !== t2.value.pageType || i.value || (n.$emit("pageLoaded"), i.value = true);
|
|
26
26
|
}
|
|
27
27
|
return { pageContext: t2, setPageContext: function(e2) {
|
|
28
28
|
t2.value = e2;
|
|
29
29
|
}, countComponentsTotalNmber: function() {
|
|
30
30
|
r.value++, u2.value = false, i.value = false;
|
|
31
31
|
}, countComponentsLoadedNumber: function() {
|
|
32
|
-
s.value++,
|
|
33
|
-
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded:
|
|
32
|
+
s.value++, p();
|
|
33
|
+
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: f, setFormPageDataLoadState: function(e2) {
|
|
34
34
|
a.value = e2, C();
|
|
35
35
|
}, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
|
|
36
36
|
u2.value = false, a.value = false, i.value = false;
|
|
@@ -18,7 +18,7 @@ function p(t2, e2) {
|
|
|
18
18
|
}
|
|
19
19
|
function l(t2, e2, o2, i2) {
|
|
20
20
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
21
|
-
r2 && u2 && u2.forEach((e3) => {
|
|
21
|
+
e2.btnList, r2 && u2 && u2.forEach((e3) => {
|
|
22
22
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
23
23
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
24
24
|
const o3 = n(e3, t2);
|
|
@@ -19,9 +19,9 @@ const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime"
|
|
|
19
19
|
b.pageContext.exportNoticeInfo && b.pageContext.exportNoticeInfo.noticeInterval && clearInterval(b.pageContext.exportNoticeInfo.noticeInterval);
|
|
20
20
|
}), T2({ click: function() {
|
|
21
21
|
R.value && R.value.$el.click();
|
|
22
|
-
} }), (
|
|
23
|
-
const
|
|
24
|
-
return u(), a("span", V, [z.value.text ? (u(), c(
|
|
22
|
+
} }), (t2, l2) => {
|
|
23
|
+
const i2 = o("el-link"), n2 = o("el-button");
|
|
24
|
+
return u(), a("span", V, [z.value.text ? (u(), c(i2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(n2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: l2[1] || (l2[1] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
|
|
25
25
|
};
|
|
26
26
|
} });
|
|
27
27
|
export {
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -11,9 +11,9 @@ const C = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure
|
|
|
11
11
|
u(() => {
|
|
12
12
|
y(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
|
|
13
13
|
});
|
|
14
|
-
}), (
|
|
15
|
-
const
|
|
16
|
-
return p(), a(
|
|
14
|
+
}), (t2, n2) => {
|
|
15
|
+
const o2 = r("el-button-group");
|
|
16
|
+
return p(), a(o2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e2.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
|
@@ -31,9 +31,9 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
|
|
|
31
31
|
o(() => {
|
|
32
32
|
k(null, h2.pageContext, h2.configure, { componentRef: V.value, entity: h2.pageContext.entity.data, pageData: h2.pageContext.entity.page });
|
|
33
33
|
});
|
|
34
|
-
}), (
|
|
35
|
-
const
|
|
36
|
-
return a(), i(
|
|
34
|
+
}), (t2, l2) => {
|
|
35
|
+
const n2 = u("el-button"), o2 = u("el-icon"), C2 = u("el-text"), k2 = u("el-dropdown-item"), _2 = u("el-dropdown-menu"), h3 = u("el-dropdown");
|
|
36
|
+
return a(), i(h3, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(_2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(k2, { key: t3, onClick: (l4) => s(x)(l4, e2.pageContext, e2.configure, "click", { menuItem: t3 }) }, { default: c(() => [d(m(s(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (a(), g(f, { key: 0 }, [B.value.splitButton ? (a(), g("span", z, m(B.value.title), 1)) : (a(), i(n2, { key: 0, size: B.value.size, type: B.value.buttonType }, { default: c(() => [d(m(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(C2, { key: 1 }, { default: c(() => [d(m(s(w)(B.value.title)) + " ", 1), v(o2, null, { default: c(() => [v(s(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
37
37
|
};
|
|
38
38
|
} });
|
|
39
39
|
export {
|