super-page-runtime 2.3.37-sit2 → 2.3.37-sit4
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +35 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +600 -588
- package/dist/es/components/runtime/utils/events/validator-util.js +154 -150
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +125 -120
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- 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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +26 -25
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
- 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 +67 -67
- 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 +27 -23
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- 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 +63 -63
- 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 +22 -20
- 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 +39 -38
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -35
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +56 -55
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +14 -12
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
- 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 +28 -27
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +25 -23
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +191 -190
- package/dist/es/style.css +71 -71
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as n, nextTick as i, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as P } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
5
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as D } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
|
|
8
8
|
import { CopyDocument as z } from "@element-plus/icons-vue";
|
|
9
9
|
import E from "clipboard";
|
|
10
10
|
import { ElMessage as O } from "element-plus";
|
|
@@ -12,54 +12,54 @@ import { useI18n as W } from "vue-i18n";
|
|
|
12
12
|
const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", display: "flex", "align-items": "center" } }, G = { key: 0, style: { display: "flex", "flex-direction": "column" } }, K = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, L = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, $ = "__amb_select_all__", H = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
13
|
const { t: J } = W(), N = e2, Q = l(null), X = l(false), Y = N.pageContext.entity ? N.pageContext.entity : {};
|
|
14
14
|
let Z = P(N.pageContext, N.configure);
|
|
15
|
-
const ee = N.configure.runtime ? N.configure.runtime : {}, le = ee.style, te = ee.class, oe = ee.headerStyle, ae = ee.titleExceedStyle,
|
|
16
|
-
let
|
|
15
|
+
const ee = N.configure.runtime ? N.configure.runtime : {}, le = ee.style, te = ee.class, oe = ee.headerStyle, ae = ee.titleExceedStyle, ne = l(ee.props ? ee.props : {});
|
|
16
|
+
let ie = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), re = [];
|
|
17
17
|
const ue = "copyBtn_" + N.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function se() {
|
|
19
19
|
let e3 = R(Y, Z);
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
20
|
+
return null != e3 && (e3 = String(e3)), ne.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
22
|
const pe = t({ get: () => se(), set(e3) {
|
|
23
23
|
const l2 = se();
|
|
24
24
|
re = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
|
-
if (
|
|
26
|
+
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes($)) {
|
|
27
27
|
const e4 = (ce.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
28
28
|
t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
31
|
-
t2 = !!
|
|
30
|
+
if (ne.value.multiple) {
|
|
31
|
+
t2 = !!ne.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
|
|
32
32
|
}
|
|
33
33
|
void 0 === t2 && (t2 = null), k(Y, Z, t2), null != t2 && (Q.value = "");
|
|
34
|
-
} }), ce = l(
|
|
34
|
+
} }), ce = l(ne.value.options ? ne.value.options : []), fe = A(N.pageContext, N.configure);
|
|
35
35
|
fe.length > 0 && (ce.value = fe);
|
|
36
36
|
const ve = l(false), ge = N.configure.props && N.configure.props.dataOrigin ? N.configure.props.dataOrigin : {}, me = ge.optionValueSetType;
|
|
37
37
|
let de = [];
|
|
38
|
-
const ye =
|
|
38
|
+
const ye = ne.value.optionconfigInfo ? ne.value.optionconfigInfo : {};
|
|
39
39
|
if ("dynamicData" == me || "dataTable" == me || "service" == me) {
|
|
40
40
|
if ("remote" == ge.filterType) {
|
|
41
41
|
let e3;
|
|
42
|
-
|
|
43
|
-
e3 !== l2 && (e3 = l2, ve.value = true, T(N.pageContext, ye, l2).then((e4) => {
|
|
42
|
+
ne.value.filterable = true, ne.value.remote = true, ne.value.remoteShowSuffix = true, ne.value.remoteMethod = function(l2) {
|
|
43
|
+
e3 !== l2 && (e3 = l2, ve.value = true, console.log("query", l2), T(N.pageContext, ye, l2).then((e4) => {
|
|
44
44
|
ve.value = false;
|
|
45
45
|
}).then((e4) => {
|
|
46
|
-
ve.value = false;
|
|
46
|
+
console.log("查询失败!", e4), ve.value = false;
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
if (ge.autoSets) for (let e3 of ge.autoSets) e3.source && de.push(e3);
|
|
51
51
|
}
|
|
52
|
-
N.configure && N.configure.props && N.configure.props.base && N.configure.props.base.optionProp && de.push({ source: "label", target: N.configure.props.base.optionProp }),
|
|
52
|
+
N.configure && N.configure.props && N.configure.props.base && N.configure.props.base.optionProp && de.push({ source: "label", target: N.configure.props.base.optionProp }), ne.value.changeMethod = function(e3) {
|
|
53
53
|
var _a;
|
|
54
54
|
let l2, t2 = null;
|
|
55
|
-
ce.value && null != e3 && null != e3 && (((_a =
|
|
56
|
-
de.length > 0 && j(N.configure, N.pageContext, de, t2, [
|
|
55
|
+
ce.value && null != e3 && null != e3 && (((_a = ne.value) == null ? void 0 : _a.multiple) && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes($) && (e3 = e3.filter((e4) => e4 !== $)), t2 = ce.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
|
|
56
|
+
de.length > 0 && j(N.configure, N.pageContext, de, t2, [ne.value.prop]);
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
60
|
o2.options = ce.value, o2.oldValue = re, V(e3, N.pageContext, N.configure, "change", o2);
|
|
61
61
|
};
|
|
62
|
-
const he =
|
|
62
|
+
const he = ne.value.monitorFields, be = [];
|
|
63
63
|
if (he) {
|
|
64
64
|
const e3 = [];
|
|
65
65
|
for (let l2 of he) if (l2.startsWith("${")) {
|
|
@@ -80,7 +80,7 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
80
80
|
return e4.join(",");
|
|
81
81
|
}();
|
|
82
82
|
e3 != xe && (xe = e3, ye.watchAttrValue = e3, T(N.pageContext, ye, void 0).then((e4) => {
|
|
83
|
-
ve.value = false;
|
|
83
|
+
console.log("查询失败!", e4), ve.value = false;
|
|
84
84
|
}));
|
|
85
85
|
}, 200);
|
|
86
86
|
}
|
|
@@ -111,14 +111,15 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
111
111
|
O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return n(() => {
|
|
115
115
|
const e3 = new E("#" + ue, { text: function() {
|
|
116
116
|
return Te();
|
|
117
117
|
} });
|
|
118
118
|
e3.on("success", () => {
|
|
119
|
-
O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
119
|
+
console.log("复制成功"), O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
-
|
|
121
|
+
console.error("复制失败", e4);
|
|
122
|
+
}), i(() => {
|
|
122
123
|
const e4 = pe.value;
|
|
123
124
|
M(e4, N.pageContext, N.configure, { formItemRef: Se.value, componentRef: ke.value, titleRef: Ae.value, value: e4, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
124
125
|
});
|
|
@@ -141,13 +142,13 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
141
142
|
}
|
|
142
143
|
we = true;
|
|
143
144
|
}, addRequiredClass: function() {
|
|
144
|
-
Q.value =
|
|
145
|
+
Q.value = I();
|
|
145
146
|
}, getSelectItemsTitle: Te, getOptions: function() {
|
|
146
147
|
return ce.value;
|
|
147
148
|
} }), (e3, l2) => {
|
|
148
|
-
const t2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"),
|
|
149
|
-
return s(), u(
|
|
150
|
-
}, ["stop"]), ["space"])), onChange:
|
|
149
|
+
const t2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), n2 = r("el-popover"), i2 = r("el-form-item");
|
|
150
|
+
return s(), u(i2, { ref_key: "formItemRef", ref: Se, required: !!ne.value.required, class: c(f(te) + (Q.value ? " " + Q.value : "")), "label-width": ne.value.labelWidth, style: p(f(le)) }, v({ default: g(() => [m(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", F, [m(a2, { ref_key: "componentRef", ref: ke, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: ne.value.placeholder, "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ve.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
|
|
151
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => pe.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), u(o2, { key: 0, label: f(J)("superGrid.selectAll"), value: $, disabled: !(ce.value && ce.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ce.value, (l3) => (s(), u(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(V)(l3.value, e3.pageContext, e3.configure, "click", { values: pe.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ie) ? (s(), x("div", G, [d("span", null, w(l3.label), 1), d("span", K, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", L, w(l3.label), 1), d("span", U, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "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", "onClear", "modelValue"])])]), default: g(() => [d("span", B, [m(t2, { id: ue, style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Ae, style: p({ ...f(oe), ...f(ae) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), u(q, { key: 0, pageContext: e3.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(D)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
151
152
|
};
|
|
152
153
|
} });
|
|
153
154
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref as c, createSlots as s, withCtx as f, createVNode as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref as c, createSlots as s, withCtx as f, createVNode as m, createElementVNode as p, toDisplayString as d } from "vue";
|
|
2
2
|
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { $t as
|
|
6
|
-
import { addRequiredClassUtil as
|
|
5
|
+
import { $t as b } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as C } from "../../../../utils/common-util.js";
|
|
7
7
|
const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
|
|
8
8
|
const R = e2, _ = t(null), j = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
9
|
let k = g(R.pageContext, R.configure);
|
|
@@ -25,10 +25,10 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
25
25
|
x(e3, R.pageContext, R.configure, { formItemRef: A.value, componentRef: B.value, titleRef: F.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
|
-
_.value =
|
|
28
|
+
_.value = C();
|
|
29
29
|
} }), (e3, t2) => {
|
|
30
30
|
const l2 = i("el-switch"), a2 = i("el-form-item");
|
|
31
|
-
return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [
|
|
31
|
+
return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [m(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./textarea-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-1e8a62fc"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, createSlots as f, withCtx as g, createElementVNode as c, createBlock as d, Fragment as v, createTextVNode as x, toDisplayString as y } from "vue";
|
|
2
2
|
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { setVariableValue as C, getVariableValue as
|
|
4
|
-
import { handleAfterInitEvent as
|
|
3
|
+
import { setVariableValue as C, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as w, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import R from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t as j } from "../../../../utils/i18n-util.js";
|
|
7
7
|
import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
9
9
|
const I = e2, z = t(null), S = I.pageContext.entity ? I.pageContext.entity : {};
|
|
10
10
|
let V = h(I.pageContext, I.configure);
|
|
11
|
-
const B = l({ get: () =>
|
|
11
|
+
const B = l({ get: () => b(S, V), set(e3) {
|
|
12
12
|
C(S, V, e3), null != e3 && "" !== e3 && (z.value = "");
|
|
13
13
|
} }), D = I.configure.runtime ? I.configure.runtime : {}, E = t(D.props ? D.props : {}), F = D.style, N = D.class, T = D.headerStyle, U = D.titleExceedStyle, W = t(null), A = t(null), G = t(null);
|
|
14
14
|
return a(() => {
|
|
15
15
|
o(() => {
|
|
16
16
|
const e3 = B.value;
|
|
17
|
-
|
|
17
|
+
w(e3, I.pageContext, I.configure, { formItemRef: W.value, componentRef: A.value, titleRef: G.value, value: e3, entity: I.pageContext.entity.data, pageData: I.pageContext.entity.page });
|
|
18
18
|
});
|
|
19
19
|
}), q2({ addRequiredClass: function() {
|
|
20
20
|
z.value = _();
|
|
21
21
|
} }), (e3, t2) => {
|
|
22
22
|
const l2 = n("el-input"), a2 = n("el-form-item");
|
|
23
|
-
return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }) }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
23
|
+
return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as g, resolveDynamicComponent as c, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as C } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { getRuntimeComponentByName as
|
|
2
|
+
import h from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
6
|
+
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
|
|
7
|
+
import { caculateShowCondition as H, getFormPropName as M, getSizeConfig as V } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { isWorkflowPage as A, getPropClassName as S, isNumber as T } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as $, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as B } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -18,7 +18,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
18
18
|
let D = null;
|
|
19
19
|
const E = w(k2.configure, k2.pageContext);
|
|
20
20
|
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = E);
|
|
21
|
-
const J = R(E || "true", k2.pageContext.systemCode), L =
|
|
21
|
+
const J = R(E || "true", k2.pageContext.systemCode), L = B(k2.pageContext, k2.configure), W = J && L;
|
|
22
22
|
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = W), j(k2.pageContext, k2.configure, W);
|
|
23
23
|
let q = o(null), z = o(true), G = o("");
|
|
24
24
|
if (k2.configure && k2.configure.props) {
|
|
@@ -27,7 +27,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
27
27
|
var _a2;
|
|
28
28
|
let o2 = true;
|
|
29
29
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
-
else if (
|
|
30
|
+
else if ($(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = H(k2.pageContext, e3);
|
|
31
31
|
else {
|
|
32
32
|
const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
|
|
33
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -42,7 +42,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
42
42
|
let e4 = N(k2.configure);
|
|
43
43
|
D = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
44
|
}
|
|
45
|
-
n(z, (e4) => {
|
|
45
|
+
console.log("object-render---_selfHiddenCode=", D), n(z, (e4) => {
|
|
46
46
|
e4 ? k2.pageContext.hiddenNotValidatorCodes.delete(D) : k2.pageContext.hiddenNotValidatorCodes.add(D);
|
|
47
47
|
}, { immediate: true });
|
|
48
48
|
}
|
|
@@ -50,28 +50,28 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
50
50
|
const e4 = k2.configure.props.base.editConditions;
|
|
51
51
|
if (e4.length > 0) {
|
|
52
52
|
const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
53
|
-
if (n2.rawSate = n2.state,
|
|
53
|
+
if (n2.rawSate = n2.state, A(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
|
|
54
54
|
const e5 = k2.configure.props.base;
|
|
55
55
|
if (e5 && e5.prop) {
|
|
56
56
|
let o3 = e5.prop;
|
|
57
|
-
o3 =
|
|
57
|
+
o3 = M(o3);
|
|
58
58
|
const t2 = k2.pageContext.fieldPermissionMap.get(o3);
|
|
59
59
|
t2 && false === t2.canEdit && (G.value = "disabled");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
n2.state = t({ get() {
|
|
63
63
|
if ("disabled" === G.value) return G.value;
|
|
64
|
-
return
|
|
64
|
+
return H(k2.pageContext, e4) ? "" : "disabled";
|
|
65
65
|
}, set() {
|
|
66
66
|
} });
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const I = o({});
|
|
71
|
-
I.value = i(
|
|
71
|
+
I.value = i(v(k2.configure.name));
|
|
72
72
|
const K = o(true);
|
|
73
|
-
null == I.value && (I.value =
|
|
74
|
-
const Q = o(null), U = o({}), X = o(""), Y =
|
|
73
|
+
null == I.value && (I.value = h, K.value = false);
|
|
74
|
+
const Q = o(null), U = o({}), X = o(""), Y = S(k2.configure);
|
|
75
75
|
Y && (X.value = Y);
|
|
76
76
|
const Z = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
|
|
77
77
|
if (Z.class && (X.value += " " + Z.class), Z.style) {
|
|
@@ -81,7 +81,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
81
81
|
const t2 = Z.style[e3 + "_class"];
|
|
82
82
|
t2 && (X.value += " " + t2);
|
|
83
83
|
}
|
|
84
|
-
const ee =
|
|
84
|
+
const ee = P();
|
|
85
85
|
function oe(e3) {
|
|
86
86
|
if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
87
87
|
q.value = "show";
|
|
@@ -101,11 +101,11 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
101
101
|
const o2 = k2.configure.props ? k2.configure.props.base : null;
|
|
102
102
|
if (o2 && o2.prop) {
|
|
103
103
|
let e4 = o2.prop;
|
|
104
|
-
e4 =
|
|
104
|
+
e4 = M(e4), _(k2.pageContext, e4), k2.pageContext.propTitleMap = k2.pageContext.propTitleMap || {}, k2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
105
105
|
}
|
|
106
106
|
!function() {
|
|
107
107
|
if (!Q.value) return;
|
|
108
|
-
const e4 =
|
|
108
|
+
const e4 = V(k2.pageContext, k2.configure);
|
|
109
109
|
"table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
110
110
|
var _a2;
|
|
111
111
|
if (!(((_a2 = Q.value) == null ? void 0 : _a2.$el) || Q.value)) return;
|
|
@@ -129,14 +129,16 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
129
129
|
const o2 = e3.parentNode;
|
|
130
130
|
if (!e3 || !o2) return;
|
|
131
131
|
const t2 = e3.getBoundingClientRect();
|
|
132
|
-
let n2 = window.innerHeight - t2.y - 30
|
|
132
|
+
let n2 = window.innerHeight - t2.y - 30;
|
|
133
|
+
console.log("contentHeight=", window.innerHeight, t2.y);
|
|
134
|
+
let i2 = n2 + "";
|
|
133
135
|
if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
|
|
134
136
|
const o3 = e3.closest(".runtime-page-container");
|
|
135
137
|
if (o3) {
|
|
136
138
|
const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
|
|
137
139
|
n2 = e4.height - r2 - 30, i2 = n2 + "px";
|
|
138
140
|
}
|
|
139
|
-
} else
|
|
141
|
+
} else T(n2) && (i2 = n2 + "px");
|
|
140
142
|
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
|
|
141
143
|
}
|
|
142
144
|
r(() => {
|
|
@@ -156,7 +158,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
156
158
|
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
|
|
157
159
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
158
160
|
};
|
|
159
|
-
return (e3, o2) => a(W) && a(
|
|
161
|
+
return (e3, o2) => a(W) && a(O)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: oe, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
160
162
|
} });
|
|
161
163
|
export {
|
|
162
164
|
k as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as
|
|
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
2
|
import { deepCopy as h } from "../utils/common-util.js";
|
|
3
3
|
import g from "./assemblys/home-chart-render.vue.js";
|
|
4
4
|
import c from "agilebuilder-ui/src/utils/request";
|
|
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
|
|
|
7
7
|
import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
|
|
8
8
|
import { useI18n as C } from "vue-i18n";
|
|
9
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),
|
|
10
|
+
const { t: b2 } = C(), I = e2, U = t(true), H = t(false), w = t(null);
|
|
11
11
|
let x, A = t(null);
|
|
12
12
|
return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
if (e3 && e3.designJson) {
|
|
15
|
-
|
|
15
|
+
w.value = {};
|
|
16
16
|
const t2 = JSON.parse(e3.designJson);
|
|
17
17
|
let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
|
|
18
18
|
if (a2) {
|
|
@@ -20,26 +20,26 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
|
|
|
20
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] });
|
|
21
21
|
}
|
|
22
22
|
const i2 = window.frameElement;
|
|
23
|
-
|
|
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");
|
|
24
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 } };
|
|
25
|
-
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) {
|
|
26
26
|
const e4 = n2.entity.page;
|
|
27
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);
|
|
28
28
|
}
|
|
29
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(
|
|
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(() => {
|
|
30
30
|
!function(e4, t3) {
|
|
31
|
-
if (!t3 || 0 == t3.length) return;
|
|
31
|
+
if (!t3 || 0 == t3.length) return void console.log("无需要初始化时统计的统计图数据");
|
|
32
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
33
|
}(A.value, [t2.initChartServiceConfigs]);
|
|
34
34
|
}, 200);
|
|
35
|
-
} else
|
|
35
|
+
} else H.value = true, U.value = false;
|
|
36
36
|
}).finally(() => {
|
|
37
37
|
U.value = false;
|
|
38
38
|
}), a(() => {
|
|
39
39
|
x && clearTimeout(x);
|
|
40
40
|
}), (e3, t2) => {
|
|
41
41
|
const a2 = i("loading");
|
|
42
|
-
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]]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
|
|
2
2
|
import i from "./super-page.vue.js";
|
|
3
|
-
const
|
|
4
|
-
const v = e2, p = g2, m = a(true), c = v.jumpPageSetting ? v.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), b = a(null), C = a(null), j = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), x = a(null),
|
|
3
|
+
const s = ["src"], d = ["src"], g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
|
|
4
|
+
const v = e2, p = g2, m = a(true), c = v.jumpPageSetting ? v.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), b = a(null), C = a(null), j = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), x = a(null), S = a(true), V = a(false), M = a(true), T = a(false);
|
|
5
5
|
if (c) {
|
|
6
|
-
|
|
6
|
+
S.value = (c == null ? void 0 : c.alignCenter) ?? true, V.value = (c == null ? void 0 : c.fullscreen) ?? false, console.log("弹出页面myJumpPageSetting=", c), _.value = !(!c || void 0 === c._isIframe) && c._isIframe, x.value = c && c._path ? c._path : null, C.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === C.value ? "calc(100% - 30px)" : "100%", M.value = c == null ? void 0 : c.showDialogModal, false === M.value ? T.value = c == null ? void 0 : c.dialogModalPenetrable : null !== M.value && void 0 !== M.value || true === (c == null ? void 0 : c.dialogModalPenetrable) && (T.value = true, M.value = false), I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, b.value = c && c.taskId ? c.taskId : null;
|
|
7
7
|
const e3 = !!c.isNeedId;
|
|
8
8
|
if (v.parentPageEventParams) {
|
|
9
9
|
try {
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(v.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(j.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
+
console.error(e4);
|
|
13
14
|
}
|
|
14
15
|
null !== w.value && void 0 !== w.value || (w.value = v.parentPageEventParams.id);
|
|
15
16
|
}
|
|
@@ -17,7 +18,7 @@ const d = ["src"], s = ["src"], g = e({ __name: "super-page-dialog", props: { pa
|
|
|
17
18
|
}
|
|
18
19
|
return (e3, a2) => {
|
|
19
20
|
const g3 = l("el-drawer"), v2 = l("el-dialog");
|
|
20
|
-
return C.value && "drawer" === C.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => p("open")), onOpened: a2[2] || (a2[2] = (e4) => p("opened")), onClose: a2[3] || (a2[3] = (e4) => p("close")), onClosed: a2[4] || (a2[4] = (e4) => p("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: j.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8,
|
|
21
|
+
return C.value && "drawer" === C.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => p("open")), onOpened: a2[2] || (a2[2] = (e4) => p("opened")), onClose: a2[3] || (a2[3] = (e4) => p("close")), onClosed: a2[4] || (a2[4] = (e4) => p("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: j.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(v2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, modal: M.value, "modal-penetrable": T.value, fullscreen: V.value, alignCenter: S.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => p("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, style: { "min-height": "100px" }, pageCode: h.value, pageRequest: j.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, d)) : r("", true)]), _: 1 }, 8, ["title", "width", "modal", "modal-penetrable", "fullscreen", "alignCenter", "draggable", "overflow"]));
|
|
21
22
|
};
|
|
22
23
|
} });
|
|
23
24
|
export {
|