super-page-runtime 2.3.33-sit2 → 2.3.33
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 +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +27 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- 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 +130 -125
- 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/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
- 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/common/common-homepage-search.vue2.js +1 -1
- 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.vue2.js +15 -14
- 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 +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- 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/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- 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 +119 -116
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +46 -45
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -56
- 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 +12 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
- 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.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +18 -16
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +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 +183 -182
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), _2({ addRequiredClass: function() {
|
|
20
20
|
I.value = j();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), u("div", null, [i(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -3,13 +3,13 @@ import C from "./error-render.vue.js";
|
|
|
3
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 h, addComponentRefByCode as x } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as y, packageFormRules as
|
|
6
|
+
import { getPermissionCodes as y, packageFormRules as w, controlObjectRenderState as j } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as M, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
12
|
-
import { checkPermission as
|
|
8
|
+
import { isWorkflowPage as H, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as N, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as S } from "../../utils/table-utils.js";
|
|
12
|
+
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as R } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b;
|
|
@@ -17,8 +17,8 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == F2.configure.style && (F2.configure.style = {});
|
|
18
18
|
const k = y(F2.configure, F2.pageContext);
|
|
19
19
|
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = k);
|
|
20
|
-
const D =
|
|
21
|
-
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J),
|
|
20
|
+
const D = B(k || "true", F2.pageContext.systemCode), E = S(F2.pageContext, F2.configure), J = D && E;
|
|
21
|
+
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), w(F2.pageContext, F2.configure, J);
|
|
22
22
|
let L = o(null), W = o(true), q = o("");
|
|
23
23
|
if (F2.configure && F2.configure.props) {
|
|
24
24
|
let e3 = [];
|
|
@@ -26,7 +26,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (N(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -39,7 +39,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
39
39
|
const e4 = F2.configure.props.base.editConditions;
|
|
40
40
|
if (e4.length > 0) {
|
|
41
41
|
const o2 = F2.configure.runtime ? F2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
42
|
-
if (n2.rawSate = n2.state,
|
|
42
|
+
if (n2.rawSate = n2.state, H(F2.pageContext) && F2.pageContext.fieldPermissionMap) {
|
|
43
43
|
const e5 = F2.configure.props.base;
|
|
44
44
|
if (e5 && e5.prop) {
|
|
45
45
|
let o3 = e5.prop;
|
|
@@ -60,7 +60,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
60
60
|
z.value = n(v(F2.configure.name));
|
|
61
61
|
const G = o(true);
|
|
62
62
|
null == z.value && (z.value = C, G.value = false);
|
|
63
|
-
const I = o(null), K = o({}), Q = o(""), U =
|
|
63
|
+
const I = o(null), K = o({}), Q = o(""), U = T(F2.configure);
|
|
64
64
|
U && (Q.value = U);
|
|
65
65
|
const V = F2.configure.runtime && F2.configure.runtime.common ? F2.configure.runtime.common : {};
|
|
66
66
|
if (V.class && (Q.value += " " + V.class), V.style) {
|
|
@@ -70,7 +70,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
70
70
|
const t2 = V.style[e3 + "_class"];
|
|
71
71
|
t2 && (Q.value += " " + t2);
|
|
72
72
|
}
|
|
73
|
-
const X =
|
|
73
|
+
const X = P();
|
|
74
74
|
function Y(e3) {
|
|
75
75
|
if (I.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
76
76
|
L.value = "show";
|
|
@@ -90,7 +90,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
90
90
|
const o2 = F2.configure.props ? F2.configure.props.base : null;
|
|
91
91
|
if (o2 && o2.prop) {
|
|
92
92
|
let e4 = o2.prop;
|
|
93
|
-
e4 = _(e4),
|
|
93
|
+
e4 = _(e4), j(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
94
94
|
}
|
|
95
95
|
!function() {
|
|
96
96
|
if (!I.value) return;
|
|
@@ -118,14 +118,16 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
118
118
|
const o2 = e3.parentNode;
|
|
119
119
|
if (!e3 || !o2) return;
|
|
120
120
|
const t2 = e3.getBoundingClientRect();
|
|
121
|
-
let n2 = window.innerHeight - t2.y - 30
|
|
121
|
+
let n2 = window.innerHeight - t2.y - 30;
|
|
122
|
+
console.log("contentHeight=", window.innerHeight, t2.y);
|
|
123
|
+
let i2 = n2 + "";
|
|
122
124
|
if ("tabs" === F2.configure.name && F2.pageContext.isDialog && !R()) {
|
|
123
125
|
const o3 = e3.closest(".runtime-page-container");
|
|
124
126
|
if (o3) {
|
|
125
127
|
const e4 = o3.getBoundingClientRect(), s2 = t2.y - e4.y;
|
|
126
128
|
n2 = e4.height - s2 - 30, i2 = n2 + "px";
|
|
127
129
|
}
|
|
128
|
-
} else
|
|
130
|
+
} else $(n2) && (i2 = n2 + "px");
|
|
129
131
|
K.value.height = i2, K.value["overflow-y"] = "auto", K.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
130
132
|
}
|
|
131
133
|
i(() => {
|
|
@@ -144,7 +146,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
144
146
|
const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
|
|
145
147
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
146
148
|
};
|
|
147
|
-
return (
|
|
149
|
+
return (o2, t2) => l(J) && l(O)(e2.configure) ? r((p(), a(c(z.value), { key: 0, ref: Y, style: f(K.value), class: g(Q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
148
150
|
} });
|
|
149
151
|
export {
|
|
150
152
|
F as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as t, openBlock as e } from "vue";
|
|
2
2
|
import p from "./workflow/component/workflow-opinion-box.vue.js";
|
|
3
|
-
const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (
|
|
3
|
+
const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (n2, a) => (e(), t(p, { pageContext: o2.pageContext }, null, 8, ["pageContext"])) });
|
|
4
4
|
export {
|
|
5
5
|
n as default
|
|
6
6
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -10,12 +10,12 @@ const m = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-bo
|
|
|
10
10
|
var _a;
|
|
11
11
|
((_a = C.value) == null ? void 0 : _a.focus) && C.value.focus();
|
|
12
12
|
})) : y.value = "";
|
|
13
|
-
}, { immediate: true }), (
|
|
13
|
+
}, { immediate: true }), (e2, n2) => {
|
|
14
14
|
var _a;
|
|
15
|
-
const
|
|
16
|
-
return ((_a =
|
|
15
|
+
const t2 = i("el-input"), d2 = i("el-affix");
|
|
16
|
+
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(d2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
|
|
17
17
|
var _a2;
|
|
18
|
-
return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 =
|
|
18
|
+
return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o2.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), n2[2] || (n2[2] = f(" 处理意见 ", -1))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(t2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": n2[0] || (n2[0] = (o3) => b2.value = o3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (o3) => {
|
|
19
19
|
O.pageContext.workflowOpinion && (O.pageContext.workflowOpinion.opinion = b2.value.trim(), O.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
20
20
|
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])])];
|
|
21
21
|
}), _: 1 })) : a("", true);
|
|
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
|
|
|
20
20
|
return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
|
|
21
21
|
}), (e3, l2) => {
|
|
22
22
|
const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
|
|
23
|
-
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => l2[6] || (l2[6] = [d("取消")])), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => l2[7] || (l2[7] = [d(" 确定 ")])), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
23
|
+
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => [...l2[6] || (l2[6] = [d("取消", -1)])]), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => [...l2[7] || (l2[7] = [d(" 确定 ", -1)])]), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -37,7 +37,7 @@ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" },
|
|
|
37
37
|
_(l3).then((e6) => {
|
|
38
38
|
e6.canExecute && (j.value = true);
|
|
39
39
|
});
|
|
40
|
-
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
40
|
+
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
41
41
|
};
|
|
42
42
|
} });
|
|
43
43
|
export {
|
|
@@ -17,7 +17,7 @@ const p = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
17
17
|
}(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
18
18
|
return c(l2.pageContext, t2, g, v, e4, x);
|
|
19
19
|
})(e3) && C.value.push(e3);
|
|
20
|
-
}), (
|
|
20
|
+
}), (t2, m2) => (o(), n("span", p, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
|
|
21
21
|
} });
|
|
22
22
|
export {
|
|
23
23
|
l 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 {
|