super-page-runtime 2.3.3 → 2.3.4
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
- package/dist/es/components/runtime/utils/charts/chart-util.js +26 -24
- package/dist/es/components/runtime/utils/events/event-util.js +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +475 -463
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +47 -44
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +12 -11
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -17
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +21 -19
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +55 -55
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +37 -35
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +58 -57
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/home-chart.vue.js +25 -23
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +131 -130
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -27,6 +27,7 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
27
27
|
const J = F.value.monitorFields;
|
|
28
28
|
C(q.pageContext, J, function() {
|
|
29
29
|
_(q.pageContext, H, void 0).then((e3) => {
|
|
30
|
+
console.log("动态查询结果", e3);
|
|
30
31
|
});
|
|
31
32
|
});
|
|
32
33
|
const K = l(null), L = l(null), N = l(null);
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as l, createBlock as u, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as g, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
import { updateFormItemEditState as
|
|
6
|
-
import { getListCode as
|
|
7
|
-
import { getComponentRef as
|
|
4
|
+
import { handleAfterInitEvent as k, handleEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { updateFormItemEditState as D } from "../../../../utils/events/validator-util.js";
|
|
6
|
+
import { getListCode as V } from "../../../../utils/common-util.js";
|
|
7
|
+
import { getComponentRef as _ } from "../../../../utils/global-refs.js";
|
|
8
8
|
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import S from "../../../../utils/eventBus.js";
|
|
11
|
-
const U = { key: 0, style: { width: "100%", height: "100%" } },
|
|
12
|
-
const
|
|
13
|
-
x(
|
|
14
|
-
} }),
|
|
11
|
+
const U = { key: 0, style: { width: "100%", height: "100%" } }, F = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, O = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
|
|
12
|
+
const P = e2, $ = P.pageContext.entity ? P.pageContext.entity : {}, q = C(P.pageContext, P.configure), z = t({ get: () => y($, q), set(e3) {
|
|
13
|
+
x($, q, e3);
|
|
14
|
+
} }), G = P.configure.runtime ? P.configure.runtime : {}, I = G.style, H = G.class, B = G.headerStyle, N = o(G.props ? G.props : {}), W = function(e3) {
|
|
15
15
|
let t2 = {};
|
|
16
16
|
if (e3) for (let o2 in e3) {
|
|
17
17
|
const a2 = e3[o2];
|
|
18
|
-
t2[o2] = b(
|
|
18
|
+
t2[o2] = b(P.pageContext, a2);
|
|
19
19
|
}
|
|
20
20
|
return t2;
|
|
21
|
-
}(
|
|
22
|
-
function
|
|
23
|
-
j(
|
|
21
|
+
}(G.customParams ? G.customParams : {}), A = E(P.pageContext), J = o(P.configure.props && P.configure.props.base ? P.configure.props.base.name : null);
|
|
22
|
+
function K(e3, t2) {
|
|
23
|
+
j($, e3, t2);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function L(e3) {
|
|
26
|
+
D(P.pageContext, e3);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const e3 =
|
|
28
|
+
function M() {
|
|
29
|
+
const e3 = P.pageContext.tableUuids;
|
|
30
30
|
e3 && e3.forEach((e4) => {
|
|
31
|
-
const t2 =
|
|
31
|
+
const t2 = V(P.pageContext.code, P.pageContext.version, P.configure.uuid), o2 = _(P.pageContext, e4);
|
|
32
32
|
o2 && o2.restoreGridEdit(t2);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
const Q =
|
|
35
|
+
console.log("自定义控件----componentName=", J, "designProperty=", N), P.configure.props.verification.custom && P.configure.props.verification.custom.enabled && (P.pageContext.customValidatorUuids || (P.pageContext.customValidatorUuids = []), P.pageContext.customValidatorUuids.push(P.configure.uuid));
|
|
36
|
+
const Q = P.pageContext.code, T = o(q && q.length > 0 ? Q + "__" + q.join("__") : null), X = o(null), Y = o(null), Z = o(null);
|
|
37
37
|
function ee(e3) {
|
|
38
|
-
|
|
38
|
+
R(z.value, P.pageContext, P.configure, e3);
|
|
39
39
|
}
|
|
40
40
|
return a(() => {
|
|
41
41
|
S.$on(T.value + "-scanDone", (e3) => {
|
|
42
42
|
const t2 = e3.result;
|
|
43
|
-
x(
|
|
43
|
+
x($, q, t2);
|
|
44
44
|
}), S.$on(T.value + "-pickFileDone", (e3) => {
|
|
45
|
-
T.value, X.value.pickFileDone(e3);
|
|
45
|
+
console.log("superPage4444---pickFileDone--componentId.value=", T.value, "data=", e3), X.value.pickFileDone(e3);
|
|
46
46
|
}), n(() => {
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
47
|
+
const e3 = z.value;
|
|
48
|
+
k(e3, P.pageContext, P.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
|
|
49
49
|
});
|
|
50
50
|
}), i(() => {
|
|
51
51
|
S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
|
|
52
|
-
}),
|
|
52
|
+
}), O2({ getCustomRef: function() {
|
|
53
53
|
return X.value;
|
|
54
54
|
} }), (e3, t2) => {
|
|
55
|
-
const o2 =
|
|
56
|
-
return
|
|
55
|
+
const o2 = l("el-form-item");
|
|
56
|
+
return N.value.tittleShow ? (p(), u(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: N.value.required, class: g(m(H)), "label-width": N.value.labelWidth, style: c(m(I)) }, { label: d(() => [N.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: c({ ...m(B) }) }, v(m(w)(N.value.title)), 5)) : s("", true)]), default: d(() => [J.value ? (p(), r("div", U, [(p(), u(f(J.value), { ref_key: "customRef", ref: X, size: N.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(W), modelValue: z.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => z.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(A), "component-id": T.value, onSetEntityValue: K, onSetCustomRules: L, onRestoreGridEdit: M, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(R)(z.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : J.value ? (p(), r("div", F, [(p(), u(f(J.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(W), modelValue: z.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => z.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(A), "component-id": T.value, onSetEntityValue: K, onSetCustomRules: L, onRestoreGridEdit: M, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(R)(z.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
57
57
|
};
|
|
58
58
|
} });
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
O as default
|
|
61
61
|
};
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as u, createBlock as s, createCommentVNode as n, openBlock as p, normalizeStyle as r, normalizeClass as v, unref as m, withCtx as d, createElementBlock as f, toDisplayString as c } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { handleAfterInitEvent as g, fileUploadBeforeUpload as
|
|
4
|
-
import
|
|
5
|
-
import { FsUploadNew as
|
|
6
|
-
import
|
|
7
|
-
import { $t as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
A(h(
|
|
3
|
+
import { handleAfterInitEvent as g, fileUploadBeforeUpload as b } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import C from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsUploadNew as w } from "agilebuilder-ui";
|
|
6
|
+
import x from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as k } from "../../../../utils/i18n-util.js";
|
|
8
|
+
const P = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
|
+
const P2 = e2, _ = P2.configure.runtime ? P2.configure.runtime : {}, j = l(_.props ? _.props : {}), D = _.style, I = _.class, R = _.headerStyle, T = _.titleExceedStyle, z = P2.pageContext.entity ? P2.pageContext.entity : {}, F = P2.configure.props.base ? P2.configure.props.base : {}, O = G(F.prop), S = G(F.propName);
|
|
10
|
+
O && O.length > 1 && t(() => P2.pageContext.entity[O[0]][O[1]], (e3) => {
|
|
11
|
+
A(h(z, O));
|
|
12
12
|
});
|
|
13
|
-
const
|
|
13
|
+
const N = P2.pageContext.code, q = l(O ? N + "__" + O.join("__") : null), U = h(z, O), $ = l(null), W = l(false), B = l([]), E = l({});
|
|
14
14
|
function A(e3) {
|
|
15
15
|
if (e3) {
|
|
16
16
|
const l2 = e3.split(",");
|
|
17
17
|
if (l2.length > 0) {
|
|
18
|
-
const e4 =
|
|
19
|
-
|
|
18
|
+
const e4 = P2.pageContext.backendUrl;
|
|
19
|
+
C.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
|
|
20
20
|
B.value = [];
|
|
21
21
|
const t2 = [];
|
|
22
|
-
for (let
|
|
23
|
-
const o2 = l2[
|
|
22
|
+
for (let a2 = 0; a2 < l2.length; a2++) {
|
|
23
|
+
const o2 = l2[a2];
|
|
24
24
|
t2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
|
|
25
25
|
}
|
|
26
26
|
"input" === j.value.displayType && (E.value.showName = t2.join(","), E.value.serverPath = l2.join(","));
|
|
@@ -34,7 +34,7 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
34
34
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
35
35
|
}
|
|
36
36
|
function H(e3) {
|
|
37
|
-
return
|
|
37
|
+
return b(e3);
|
|
38
38
|
}
|
|
39
39
|
A(U);
|
|
40
40
|
const J = (e3, l2, t2) => {
|
|
@@ -48,22 +48,22 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
48
48
|
for (let l3 = 0; l3 < e4; l3++) B.value.shift();
|
|
49
49
|
}
|
|
50
50
|
for (let t2 = 0; t2 < B.value.length; t2++) e3.push(B.value[t2].showName), l2.push(B.value[t2].serverPath);
|
|
51
|
-
y(
|
|
51
|
+
y(P2.pageContext.entity, O, l2.join(",")), y(P2.pageContext.entity, S, e3.join(","));
|
|
52
52
|
}, M = l(null), Q = l(null);
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
return a(() => {
|
|
54
|
+
x.$on(q.value + "-pickFileDone", (e3) => {
|
|
55
|
+
console.log("superPage4444---pickFileDone--componentId.value=", q.value, "data=", e3), $.value.pickFileDone(e3);
|
|
56
56
|
}), o(() => {
|
|
57
|
-
const e3 = h(
|
|
58
|
-
g(l2,
|
|
57
|
+
const e3 = h(z, O), l2 = { showName: h(z, S), serverPath: e3 };
|
|
58
|
+
g(l2, P2.pageContext, P2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: l2, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
|
|
59
59
|
});
|
|
60
|
-
}),
|
|
61
|
-
|
|
60
|
+
}), i(() => {
|
|
61
|
+
x.$off(q.value + "-pickFileDone");
|
|
62
62
|
}), (e3, l2) => {
|
|
63
|
-
const t2 =
|
|
64
|
-
return j.value.tittleShow ? (p(),
|
|
63
|
+
const t2 = u("el-form-item");
|
|
64
|
+
return j.value.tittleShow ? (p(), s(t2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: v(m(I)), "label-width": j.value.labelWidth, style: r(m(D)) }, { label: d(() => [j.value.tittleShow ? (p(), f("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...m(R), ...m(T) }) }, c(m(k)(j.value.title)), 5)) : n("", true)]), default: d(() => [W.value ? (p(), s(m(w), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, "absolute-preview": j.value.absolutePreview, "absolute-downloadable": j.value.absoluteDownloadable, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "absolute-preview", "absolute-downloadable", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : n("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), s(m(w), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, "absolute-preview": j.value.absolutePreview, "absolute-downloadable": j.value.absoluteDownloadable, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "absolute-preview", "absolute-downloadable", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : n("", true);
|
|
65
65
|
};
|
|
66
66
|
} });
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
P as default
|
|
69
69
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as l, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as v, withCtx as f, createVNode as
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { getModelFieldFromPageContext as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as l, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as d, createTextVNode as m, toDisplayString as x, createElementBlock as C, Fragment as w } from "vue";
|
|
2
|
+
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { getModelFieldFromPageContext as T, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets as O, analysisScanValue as R, setScanAnalysisValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
6
|
+
import { formatScanRuleSets as O, analysisScanValue as R, setScanAnalysisValue as D } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import N from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as P } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import J from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as M } from "../../../../utils/i18n-util.js";
|
|
11
11
|
const q = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
12
12
|
var _a, _b, _c;
|
|
13
|
-
const z = e2, L = z.pageContext.entity ? z.pageContext.entity : {},
|
|
14
|
-
let
|
|
13
|
+
const z = e2, L = z.pageContext.entity ? z.pageContext.entity : {}, A = t("text");
|
|
14
|
+
let B = I(z.pageContext, z.configure);
|
|
15
15
|
if (z.pageContext.modelFieldsMap) {
|
|
16
|
-
const e3 =
|
|
17
|
-
e3 && (
|
|
16
|
+
const e3 = T(B, z.pageContext);
|
|
17
|
+
e3 && (A.value = V(e3.dataType) ? "number" : "text");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
e3 = e3.trim(), h(L,
|
|
19
|
+
const F = t(P()), $ = z.pageContext.code, E = t(B && B.length > 0 ? $ + "__" + B.join("__") : null), U = n({ get: () => b(L, B), set(e3) {
|
|
20
|
+
e3 = e3.trim(), h(L, B, e3);
|
|
21
21
|
} }), W = t(null), G = t(null), H = t(null), K = z.configure.runtime ? z.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
|
|
22
22
|
let Y = false;
|
|
23
23
|
const Z = window.localStorage.getItem("auth_source");
|
|
@@ -25,36 +25,36 @@ const q = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
25
25
|
let ee = "";
|
|
26
26
|
const te = navigator.userAgent;
|
|
27
27
|
ee = te.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
28
|
-
const ne = !(
|
|
28
|
+
const ne = !(!F.value || !ee || "app" !== ee), oe = t(!!((ne || Y) && X.value || F.value && X.value && "https:" === window.location.protocol));
|
|
29
29
|
let le = {};
|
|
30
30
|
((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(Q.value.scan.ruleList).then((e3) => {
|
|
31
31
|
le = e3;
|
|
32
32
|
}), u(() => U.value, (e3) => {
|
|
33
33
|
e3 = e3.trim();
|
|
34
34
|
const t2 = R(e3, le);
|
|
35
|
-
t2 &&
|
|
35
|
+
t2 && D(z.pageContext, t2.scanSet, t2.params);
|
|
36
36
|
}));
|
|
37
37
|
const ae = K.style, ue = K.class, ie = K.headerStyle, re = K.titleExceedStyle;
|
|
38
38
|
function pe(e3) {
|
|
39
|
-
return h(L,
|
|
39
|
+
return h(L, B, e3);
|
|
40
40
|
}
|
|
41
41
|
o(() => {
|
|
42
|
-
|
|
43
|
-
E.value, JSON.stringify(e3), pe(e3.result), _(e3.result, z.pageContext, z.configure, "afterScanDone");
|
|
42
|
+
J.$on(E.value + "-scanDone", (e3) => {
|
|
43
|
+
console.log("superPage4444---scanDone--componentId.value=", E.value, "data=", JSON.stringify(e3)), pe(e3.result), _(e3.result, z.pageContext, z.configure, "afterScanDone");
|
|
44
44
|
}), l(() => {
|
|
45
45
|
var _a2;
|
|
46
46
|
const e3 = U.value;
|
|
47
47
|
S(e3, z.pageContext, z.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page }), oe.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && ce();
|
|
48
|
-
});
|
|
48
|
+
}), console.log("input-text");
|
|
49
49
|
}), a(() => {
|
|
50
|
-
|
|
50
|
+
J.$off(E.value + "-scanDone");
|
|
51
51
|
});
|
|
52
52
|
const se = t(false);
|
|
53
53
|
function ce() {
|
|
54
|
-
if (ne || Y) {
|
|
54
|
+
if (console.log("scanClick----userAgent=", ee), ne || Y) {
|
|
55
55
|
const e3 = { type: "scan", componentId: E.value, systemCode: z.pageContext.systemCode };
|
|
56
|
-
Y && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
57
|
-
} else if (
|
|
56
|
+
Y && (e3.type = "dingTalkScan"), window.parent.parent ? (console.log("scanClick----window.parent.parent", window.parent.parent), window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (console.log("scanClick----window.parent", window.parent), window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
57
|
+
} else if (F.value) if ("https:" === window.location.protocol) se.value = true;
|
|
58
58
|
else {
|
|
59
59
|
const e3 = { type: "scan", componentId: E.value, systemCode: z.pageContext.systemCode };
|
|
60
60
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
@@ -65,10 +65,10 @@ const q = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
65
65
|
se.value = false, pe(e3);
|
|
66
66
|
}
|
|
67
67
|
return q2({ getValue: function() {
|
|
68
|
-
return b(L,
|
|
68
|
+
return b(L, B);
|
|
69
69
|
}, setValue: pe, scanClick: ce }), (e3, t2) => {
|
|
70
70
|
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), l2 = i("el-form-item");
|
|
71
|
-
return p(), r(l2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: c(v(ue)), "label-width": Q.value.labelWidth, style: s(v(ae)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...v(ie), ...v(re) }) }, [Q.value.prefixType ? (p(), r(
|
|
71
|
+
return p(), r(l2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: c(v(ue)), "label-width": Q.value.labelWidth, style: s(v(ae)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...v(ie), ...v(re) }) }, [Q.value.prefixType ? (p(), r(N, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(w, { key: 1 }, [m(x(v(M)(Q.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(n2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: A.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, d({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + x(v(M)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + x(v(M)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + x(v(M)(Q.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (p(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : y("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + x(v(M)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), se.value ? (p(), r(o2, { key: 0, onClose: ve })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
72
72
|
};
|
|
73
73
|
} });
|
|
74
74
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as c, createElementVNode as f, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
|
|
2
2
|
import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
5
|
import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
|
-
const R = e2,
|
|
9
|
-
let
|
|
8
|
+
const R = e2, P = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
|
+
let S = d(R.pageContext, R.configure);
|
|
10
10
|
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType;
|
|
11
|
-
A.value;
|
|
11
|
+
console.log("designProperty.value", A.value);
|
|
12
12
|
const H = l(() => {
|
|
13
|
-
let e3 = m(
|
|
13
|
+
let e3 = m(P, S);
|
|
14
14
|
if (G) if (A.value.hasOptions) {
|
|
15
15
|
let t2 = null;
|
|
16
16
|
B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
@@ -29,7 +29,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
29
29
|
B.value = e3 || [];
|
|
30
30
|
} }), (e3, t2) => {
|
|
31
31
|
const l2 = n("el-form-item");
|
|
32
|
-
return A.value.whetherTittle ? (s(),
|
|
32
|
+
return A.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(c(z)), style: p(c(O)) }, [f("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), i(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(c(z)), "label-width": A.value.labelWidth, style: p(c(O)) }, { label: y(() => [A.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...c(D), ...c(W) }) }, v(c(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", b, [A.value.preIconValue || A.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(c(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), i(c(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(c(_)(A.value.preText)), 1)], 6)) : g("", true), x(" " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), i(c(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + v(c(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), o("span", { key: 0, class: r(c(E)), style: p(c(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
|
|
33
33
|
};
|
|
34
34
|
} });
|
|
35
35
|
export {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as g, createElementBlock as m, createCommentVNode as v } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
-
S.value;
|
|
8
|
+
console.log("designProperty", S.value);
|
|
9
9
|
let $ = S.value.formatting;
|
|
10
|
-
const D = _2.pageContext.entity ? _2.pageContext.entity : {},
|
|
10
|
+
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, P = l(() => {
|
|
11
11
|
let e3 = b(D, h);
|
|
12
12
|
return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
|
|
13
13
|
});
|
|
14
|
-
let
|
|
15
|
-
|
|
14
|
+
let V = S.value.tooltip, W = null;
|
|
15
|
+
V && (W = l(() => {
|
|
16
16
|
let e3 = b(D, h);
|
|
17
|
-
return e3 = null == e3 || null == e3 ? "" : e3,
|
|
17
|
+
return e3 = null == e3 || null == e3 ? "" : e3, V.replace(/\${value}/g, e3);
|
|
18
18
|
}));
|
|
19
|
-
const
|
|
19
|
+
const q = t(null), z = t(null), A = t(null);
|
|
20
20
|
return n(() => {
|
|
21
21
|
a(() => {
|
|
22
|
-
const e3 =
|
|
23
|
-
k(e3, _2.pageContext, _2.configure, { formItemRef:
|
|
22
|
+
const e3 = P.value;
|
|
23
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: q.value, componentRef: z.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
24
24
|
});
|
|
25
25
|
}), (e3, t2) => {
|
|
26
26
|
const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
|
|
27
|
-
return o(), u(a2, { ref_key: "formItemRef", ref:
|
|
27
|
+
return o(), u(a2, { ref_key: "formItemRef", ref: q, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...p(I) }) }, g(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(W), content: p(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: z, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(g(P.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
28
28
|
};
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
@@ -46,6 +46,7 @@ const q = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
46
46
|
Q && clearTimeout(Q), Q = setTimeout(function() {
|
|
47
47
|
const e3 = L();
|
|
48
48
|
e3 != N && (N = e3, S(w.pageContext, X, void 0).then((e4) => {
|
|
49
|
+
console.log("查询失败!", e4);
|
|
49
50
|
}));
|
|
50
51
|
}, 200);
|
|
51
52
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as g, createVNode as v, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
|
|
2
2
|
import { setVariableValue as k, getVariableValue as w, getOptionDatasFromPage as _, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as R, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
const
|
|
5
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as z } from "../../../../utils/i18n-util.js";
|
|
7
|
+
const I = { style: { float: "left" } }, M = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, A = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
8
8
|
const O = e2, P = O.pageContext.entity ? O.pageContext.entity : {};
|
|
9
9
|
let D = j(O.pageContext, O.configure);
|
|
10
10
|
const W = O.configure.runtime ? O.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
|
|
@@ -21,10 +21,10 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
|
|
|
21
21
|
if ("remote" == L.filterType) {
|
|
22
22
|
let e3;
|
|
23
23
|
B.value.filterable = true, B.value.remote = true, B.value.remoteShowSuffix = true, B.value.remoteMethod = function(t2) {
|
|
24
|
-
e3 !== t2 && (e3 = t2, K.value = true, S(O.pageContext, X, t2).then((e4) => {
|
|
24
|
+
e3 !== t2 && (e3 = t2, K.value = true, console.log("query", t2), S(O.pageContext, X, t2).then((e4) => {
|
|
25
25
|
K.value = false;
|
|
26
26
|
}).then((e4) => {
|
|
27
|
-
K.value = false;
|
|
27
|
+
console.log("查询失败!", e4), K.value = false;
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -61,7 +61,7 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
|
|
|
61
61
|
le && clearTimeout(le), le = setTimeout(function() {
|
|
62
62
|
const e3 = ee();
|
|
63
63
|
e3 != te && (te = e3, X.watchAttrValue = e3, S(O.pageContext, X, void 0).then((e4) => {
|
|
64
|
-
K.value = false;
|
|
64
|
+
console.log("查询失败!", e4), K.value = false;
|
|
65
65
|
}));
|
|
66
66
|
}, 200);
|
|
67
67
|
}
|
|
@@ -78,7 +78,7 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
|
|
|
78
78
|
H.value = e3 || [];
|
|
79
79
|
} }), (e3, t2) => {
|
|
80
80
|
const l2 = i("el-option"), o2 = i("el-select"), a2 = i("el-form-item");
|
|
81
|
-
return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label:
|
|
81
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: g(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(z)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: g(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: g(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", I, b(t3.label), 1), x("span", M, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
82
82
|
};
|
|
83
83
|
} });
|
|
84
84
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
|
|
2
|
+
chartUuid: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
10
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
|
|
11
|
+
chartUuid: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
default: number;
|
|
18
18
|
};
|
|
19
19
|
}>> & Readonly<{}>, {
|
|
20
|
-
|
|
20
|
+
chartUuid: string;
|
|
21
21
|
homeChartSettingUserId: number;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
23
|
export default _default;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as
|
|
2
|
-
import { deepCopy as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { updateOptionDatasources as
|
|
6
|
-
import { initPageEvents as
|
|
7
|
-
import { setHomeChartInitConfigValue as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as o, openBlock as r, createBlock as s, createCommentVNode as l, unref as u, toDisplayString as m } from "vue";
|
|
2
|
+
import { deepCopy as h } from "../utils/common-util.js";
|
|
3
|
+
import g from "./assemblys/home-chart-render.vue.js";
|
|
4
|
+
import c from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { updateOptionDatasources as d, updateChartDatasources as p } from "../utils/page-helper-util.js";
|
|
6
|
+
import { initPageEvents as f } from "../utils/events/event-util.js";
|
|
7
|
+
import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
|
|
8
|
+
import { useI18n as C } from "vue-i18n";
|
|
9
|
+
const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
10
|
+
const { t: b2 } = C(), I = e2, U = t(true), H = t(false), w = t(null);
|
|
11
|
+
let x, A = t(null);
|
|
12
|
+
return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
|
|
12
13
|
var _a, _b;
|
|
13
14
|
if (e3 && e3.designJson) {
|
|
15
|
+
w.value = {};
|
|
14
16
|
const t2 = JSON.parse(e3.designJson);
|
|
15
17
|
let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
|
|
16
18
|
if (a2) {
|
|
17
19
|
const e4 = JSON.parse(a2);
|
|
18
|
-
e4[
|
|
20
|
+
e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
|
|
19
21
|
}
|
|
20
22
|
const i2 = window.frameElement;
|
|
21
|
-
|
|
23
|
+
w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (console.log(i2.clientHeight + "iframeElement.clientHeight"), w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
22
24
|
const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
23
|
-
if (((_a =
|
|
25
|
+
if (((_a = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
|
|
24
26
|
const e4 = n2.entity.page;
|
|
25
27
|
for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
|
|
26
28
|
}
|
|
27
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 &&
|
|
29
|
+
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(w.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
|
|
28
30
|
!function(e4, t3) {
|
|
29
|
-
if (!t3 || 0 == t3.length) return;
|
|
30
|
-
e4.initChartData = {}, e4.initChartData.data =
|
|
31
|
-
}(
|
|
31
|
+
if (!t3 || 0 == t3.length) return void console.log("无需要初始化时统计的统计图数据");
|
|
32
|
+
e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
|
|
33
|
+
}(A.value, [t2.initChartServiceConfigs]);
|
|
32
34
|
}, 200);
|
|
33
|
-
} else
|
|
35
|
+
} else H.value = true, U.value = false;
|
|
34
36
|
}).finally(() => {
|
|
35
|
-
|
|
37
|
+
U.value = false;
|
|
36
38
|
}), a(() => {
|
|
37
|
-
|
|
39
|
+
x && clearTimeout(x);
|
|
38
40
|
}), (e3, t2) => {
|
|
39
41
|
const a2 = i("loading");
|
|
40
|
-
return n((
|
|
42
|
+
return n((r(), o("div", y, [!U.value && w.value ? (r(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (r(), o("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
|
|
41
43
|
};
|
|
42
44
|
} });
|
|
43
45
|
export {
|
|
44
|
-
|
|
46
|
+
b as default
|
|
45
47
|
};
|