super-page-designer 2.3.16-sit3-design1 → 2.3.17-sit2-design1
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/assets/images/data/file.png.js +4 -0
- package/dist/es/assets/images/data/folder.png.js +4 -0
- package/dist/es/components/design/utils/assemblys-config.js +1 -1
- package/dist/es/components/design/utils/form-design-util.js +4 -1
- package/dist/es/components/design/utils/page-table-util.js +1 -1
- package/dist/es/components/design/utils/ucr-element-filter.d.ts +2 -0
- package/dist/es/components/design/utils/ucr-element-filter.js +11 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +20 -20
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +66 -66
- package/dist/es/components/design/views/design/page-design.vue.d.ts +9 -0
- package/dist/es/components/design/views/design/page-design.vue2.js +42 -42
- package/dist/es/components/design/views/design/page-event/completion-data.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +52 -45
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +11 -10
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +8 -8
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.js +23 -20
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +11 -12
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.d.ts +38 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.js +7 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue2.js +111 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.d.ts +6 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.js +27 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +34 -30
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +13 -13
- package/dist/es/style.css +186 -65
- package/package.json +5 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import { caculateDetailComponentStyle as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, resolveComponent as u, createElementBlock as a, createBlock as i, openBlock as n, normalizeStyle as o, normalizeClass as r, createElementVNode as s, toDisplayString as p, withCtx as c, createCommentVNode as f, createTextVNode as v, unref as y } from "vue";
|
|
2
|
+
import { caculateDetailComponentStyle as m, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
4
|
-
const g = { style: { display: "flex", width: "100%", "justify-content": "space-between" } },
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
}, { immediate: true }),
|
|
11
|
-
|
|
12
|
-
let e3 =
|
|
13
|
-
const
|
|
14
|
-
|
|
4
|
+
const g = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, x = { style: { display: "flex", width: "100%", "justify-content": "space-between" } }, h = ["title"], w = { key: 2, style: { display: "flex", "justify-content": "space-between" } }, I = { style: { overflow: "hidden", "white-space": "nowrap" } }, b = { key: 0 }, V = e({ __name: "label-design", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
5
|
+
const V2 = e2;
|
|
6
|
+
V2.configure.runtime || (V2.configure.runtime = {});
|
|
7
|
+
const S = t({}), _ = t(""), k = t({}), F = t({}), j = t({});
|
|
8
|
+
return l(V2.configure.style, () => {
|
|
9
|
+
m(V2.configure, S, _, k), V2.configure.runtime.style = S.value, V2.configure.runtime.class = _.value, V2.configure.runtime.headerStyle = k.value;
|
|
10
|
+
}, { immediate: true }), l(V2.configure.props, () => {
|
|
11
|
+
d(V2.configure, F, j), function() {
|
|
12
|
+
let e3 = V2.configure.props ? V2.configure.props : {};
|
|
13
|
+
const t2 = e3.base ? e3.base : {}, l2 = e3.dataOrigin ? e3.dataOrigin : {}, u2 = {};
|
|
14
|
+
t2.labelText && (u2.labelText = t2.labelText), t2.whetherTittle ? u2.whetherTittle = t2.whetherTittle : (u2.whetherTittle = false, u2.showType = t2.showType, u2.contentAlign = t2.contentAlign);
|
|
15
15
|
const a2 = e3.preSuffix ? e3.preSuffix : {};
|
|
16
|
-
(a2.preIconType || a2.preText || a2.sufIconType || a2.sufText) && (
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
}(),
|
|
21
|
-
}, { immediate: true }), (e3,
|
|
22
|
-
const
|
|
23
|
-
return
|
|
16
|
+
(a2.preIconType || a2.preText || a2.sufIconType || a2.sufText) && (u2.preIconType = a2.preIconType, u2.preIconValue = a2.preIconValue, u2.preText = a2.preText, u2.sufIconType = a2.sufIconType, u2.sufIconValue = a2.sufIconValue, u2.sufText = a2.sufText, u2.iconPosition = a2.position);
|
|
17
|
+
const i2 = l2.optionValueSetType;
|
|
18
|
+
let n2 = false;
|
|
19
|
+
i2 && (F.value.formatType = i2, "static" != i2 && "optionGroup" != i2 && "dynamicData" != i2 && "dataTable" != i2 || (n2 = true), F.value.hasOptions = n2, F.value.decimalDigit = l2.decimalDigit, F.value.thousandsSeparator = l2.thousandsSeparator, F.value.symbol = l2.symbol, F.value.dateFormat = l2.dateFormat, F.value.timeFormat = l2.timeFormat, F.value.formatFunc = l2.formatFunc), Object.assign(F.value, u2);
|
|
20
|
+
}(), V2.configure.runtime.props = F.value, V2.configure.runtime.titleExceedStyle = j.value;
|
|
21
|
+
}, { immediate: true }), (e3, t2) => {
|
|
22
|
+
const l2 = u("el-form-item");
|
|
23
|
+
return F.value.whetherTittle ? (n(), a("div", { key: 0, ref: "titleRef", class: r(e3.runtimeClass), style: o(e3.runtimeStyle) }, [s("div", g, p(F.value.title), 1)], 6)) : F.value.tittleShow ? (n(), i(l2, { key: 1, required: !!F.value.required, class: r([_.value, F.value.contentAlign ? "form-item-align-" + F.value.contentAlign : "formNo" === F.value.showType ? "form-item-align-right" : ""]), "label-width": F.value.labelWidth, style: o(S.value) }, { label: c(() => [F.value.tittleShow ? (n(), a("div", { key: 0, style: o({ ...k.value, ...j.value }) }, p(F.value.title), 5)) : f("", true)]), default: c(() => [s("div", x, [s("span", { style: { overflow: "hidden" }, title: F.value.value }, [F.value.preIconValue || F.value.preText ? (n(), a("span", { key: 0, class: r({ "el-input__suffix": "outer" != F.value.iconPosition, "el-input-group__append": "outer" == F.value.iconPosition }), style: o(e3.appendStyle) }, [F.value.preIconType && F.value.preIconValue ? (n(), i(y(T), { key: 0, iconType: F.value.preIconType, iconValue: F.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : f("", true), v(" " + p(F.value.preText), 1)], 6)) : f("", true), v(" " + p(F.value.value) + " " + p("formNo" === F.value.showType ? "(表单编号xxxx)" : ""), 1)], 8, h), F.value.sufIconValue || F.value.sufText ? (n(), a("span", { key: 0, class: r({ "el-input__suffix": "outer" != F.value.iconPosition, "el-input-group__append": "outer" == F.value.iconPosition }) }, [F.value.sufIconType && F.value.sufIconValue ? (n(), i(y(T), { key: 0, style: {}, iconType: F.value.sufIconType, iconValue: F.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : f("", true), s("span", null, " " + p(F.value.sufText), 1)], 2)) : f("", true)])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (n(), a("span", w, [s("span", I, p(F.value.prefixIcon) + " " + p(), 1), F.value.suffixTxt ? (n(), a("span", b, p(F.value.suffixTxt), 1)) : f("", true)]));
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
V as default
|
|
28
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./object-design.vue3.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = o(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = o(e, [["__scopeId", "data-v-c2d9c8d5"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, onUnmounted as i, watch as n, ref as r, computed as o, onMounted as t, resolveComponent as s, createElementBlock as u, openBlock as g, normalizeStyle as a, normalizeClass as p, createBlock as c, withDirectives as l, resolveDynamicComponent as f, withModifiers as
|
|
1
|
+
import { defineComponent as e, onUnmounted as i, watch as n, ref as r, computed as o, onMounted as t, resolveComponent as s, createElementBlock as u, openBlock as g, normalizeStyle as a, normalizeClass as p, createBlock as c, withDirectives as l, resolveDynamicComponent as f, withModifiers as m, createElementVNode as d, createVNode as v, withCtx as D, unref as b, vShow as h } from "vue";
|
|
2
2
|
import { CopyDocument as x, Delete as y } from "@element-plus/icons";
|
|
3
3
|
import j from "./error-design.vue.js";
|
|
4
|
-
import { getDesignComponentByName as
|
|
5
|
-
import { caculateCommonStyle as
|
|
4
|
+
import { getDesignComponentByName as W } from "../../utils/assemblys-config.js";
|
|
5
|
+
import { caculateCommonStyle as C } from "../../utils/container-design-util.js";
|
|
6
6
|
import { PageDimensions as k } from "../../utils/interfaces/page-design-types.js";
|
|
7
7
|
import { batchUpdatePermissions as O, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
|
|
8
8
|
import { watchValidate as P, getRefrencePropMap as B, removePropFromRefrencePropMap as T } from "../../utils/form-design-util.js";
|
|
@@ -10,123 +10,123 @@ import { usePageContextStore as w } from "../../../../stores/page-store.js";
|
|
|
10
10
|
import { getListCode as I } from "super-page-runtime";
|
|
11
11
|
import { getFormPropName as U } from "../../utils/page-helper-util.js";
|
|
12
12
|
import { updateServiceInputs as _ } from "../../utils/chart-design-util.js";
|
|
13
|
-
const
|
|
13
|
+
const N = { class: "amb-widget-item-tool" }, M = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false }, isTableBtnLink: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: M2 }) {
|
|
14
14
|
var _a, _b;
|
|
15
|
-
const
|
|
16
|
-
if ("table" ===
|
|
17
|
-
const e3 =
|
|
18
|
-
Object.assign(
|
|
15
|
+
const R = w(), q = e2;
|
|
16
|
+
if ("table" === q.configure.name && q.pageDesign.tableRuntimes && q.pageDesign.tableRuntimes[q.configure.uuid]) {
|
|
17
|
+
const e3 = q.pageDesign.tableRuntimes[q.configure.uuid].configure, i2 = JSON.parse(e3);
|
|
18
|
+
Object.assign(q.configure, i2), delete q.pageDesign.tableRuntimes[q.configure.uuid];
|
|
19
19
|
}
|
|
20
|
-
if (
|
|
21
|
-
|
|
20
|
+
if (q.indexObj && q.indexObj.index++, null == q.configure.props && (q.configure.props = {}), null == q.configure.style && (q.configure.style = {}), q.pageDesign && q.configure && "table" == q.configure.name && q.configure.uuid) {
|
|
21
|
+
q.pageDesign.tableUuids || (q.pageDesign.tableUuids = []);
|
|
22
22
|
const e3 = setTimeout(() => {
|
|
23
23
|
var _a2, _b2, _c, _d;
|
|
24
|
-
((_b2 = (_a2 =
|
|
24
|
+
((_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(q.configure.uuid)) || ((_d = (_c = q.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(q.configure.uuid));
|
|
25
25
|
}, 500);
|
|
26
26
|
i(() => {
|
|
27
27
|
var _a2, _b2, _c, _d;
|
|
28
|
-
const i2 = (_b2 = (_a2 =
|
|
29
|
-
null != i2 && i2 > -1 && ((_d = (_c =
|
|
30
|
-
const n2 = I(
|
|
31
|
-
|
|
28
|
+
const i2 = (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(q.configure.uuid);
|
|
29
|
+
null != i2 && i2 > -1 && ((_d = (_c = q.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(i2, 1));
|
|
30
|
+
const n2 = I(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
|
|
31
|
+
q.pageDesign.listCodesInitSearchForm && q.pageDesign.listCodesInitSearchForm[n2] && delete q.pageDesign.listCodesInitSearchForm[n2], q.pageDesign.subTableWatchProps && delete q.pageDesign.subTableWatchProps[q.configure.uuid], e3 && clearTimeout(e3);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
O(
|
|
36
|
-
const i2 =
|
|
37
|
-
|
|
34
|
+
q.configure.events && q.pageDesign && (n(q.configure.events, (e3) => {
|
|
35
|
+
O(q.configure, q.pageDesign);
|
|
36
|
+
const i2 = q.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
|
|
37
|
+
q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.events = i2;
|
|
38
38
|
}, { immediate: true }), i(() => {
|
|
39
|
-
S(
|
|
40
|
-
})),
|
|
41
|
-
|
|
42
|
-
}, { immediate: true }),
|
|
39
|
+
S(q.pageDesign, q.configure.uuid);
|
|
40
|
+
})), q.configure.props.linkPage && q.pageDesign && n(q.configure.props.linkPage, (e3) => {
|
|
41
|
+
q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.linkPage = q.configure.props.linkPage;
|
|
42
|
+
}, { immediate: true }), q.configure.props.parameter && q.pageDesign && n(q.configure.props.parameter, (e3) => {
|
|
43
43
|
let i2 = {};
|
|
44
44
|
e3.forEach((e4) => {
|
|
45
45
|
void 0 !== e4.paramName && "" !== e4.paramName && null !== e4.paramName && void 0 !== e4.paramValue && "" !== e4.paramValue && null !== e4.paramValue && (i2[e4.paramName] = e4.paramValue);
|
|
46
|
-
}),
|
|
47
|
-
}, { immediate: true }), ((_b = (_a =
|
|
48
|
-
_(
|
|
49
|
-
}, { immediate: true }),
|
|
50
|
-
let
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
null ==
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
P(
|
|
58
|
-
}),
|
|
59
|
-
P(
|
|
46
|
+
}), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.customParams = i2;
|
|
47
|
+
}, { immediate: true }), ((_b = (_a = q.configure.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.serviceInputs) && q.pageDesign && n(q.configure.props.dataOrigin.serviceInputs, (e3) => {
|
|
48
|
+
_(q.configure, e3);
|
|
49
|
+
}, { immediate: true }), q.configure.componentIndex = q.indexObj.index;
|
|
50
|
+
let z = q.indexObj.index;
|
|
51
|
+
const F = M2, H = r({});
|
|
52
|
+
H.value = W(q.configure.name);
|
|
53
|
+
const L = r(true);
|
|
54
|
+
null == H.value && (H.value = j, L.value = false), n(() => q.configure.name, (e3) => {
|
|
55
|
+
H.value = W(e3);
|
|
56
|
+
}), q.configure.props && q.configure.props.verification && (q.configure.props.base && q.configure.props.base.title && n(() => q.configure.props.base.title, (e3) => {
|
|
57
|
+
P(q.configure, q.configure.props.verification, ie());
|
|
58
|
+
}), q.configure.props.base && q.configure.props.base.prop && (n(() => q.configure.props.base.prop, (e3, i2) => {
|
|
59
|
+
P(q.configure, q.configure.props.verification, ie()), q.pageDesign.runtime || (q.pageDesign.runtime = {}), q.pageDesign.runtime.refercePropMap || (q.pageDesign.runtime.refercePropMap = {}), B(e3, i2, q.pageDesign.runtime.refercePropMap);
|
|
60
60
|
}), i(() => {
|
|
61
61
|
var _a2, _b2;
|
|
62
|
-
T(
|
|
63
|
-
})), n(
|
|
64
|
-
P(
|
|
65
|
-
})),
|
|
62
|
+
T(q.configure.props.base.prop, (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
|
|
63
|
+
})), n(q.configure.props.verification, (e3, i2) => {
|
|
64
|
+
P(q.configure, e3, ie());
|
|
65
|
+
})), q.pageDesign.props && n(() => q.pageDesign.props.activeWorkflow, (e3, i2) => {
|
|
66
66
|
if (e3) {
|
|
67
|
-
const e4 =
|
|
67
|
+
const e4 = q.configure.props && q.configure.props.rules ? q.configure.props.rules.filter((e5) => e5.required) : null;
|
|
68
68
|
e4 && e4.length > 0 && e4.forEach((e5) => {
|
|
69
69
|
e5.required = false;
|
|
70
|
-
}),
|
|
70
|
+
}), q.configure.props && q.configure.props.verification && q.configure.props.verification.required && (q.configure.props.verification.required = false);
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
const V = r(null), A = r({}), E = r(""), J = r({});
|
|
74
74
|
function G() {
|
|
75
|
-
|
|
75
|
+
C(q.configure, A, E), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.common || (q.configure.runtime.common = {}), q.configure.runtime.common.class = E.value, q.configure.runtime.common.style = A.value;
|
|
76
76
|
}
|
|
77
|
-
if (
|
|
77
|
+
if (q.configure.props && q.configure.props && (n(q.configure.props.size, (e3) => {
|
|
78
78
|
G();
|
|
79
|
-
}), n(() =>
|
|
79
|
+
}), n(() => q.configure.props.position, (e3) => {
|
|
80
80
|
G();
|
|
81
|
-
}, { immediate: true })),
|
|
81
|
+
}, { immediate: true })), q.configure.style && q.configure.style && n(q.configure.style, () => {
|
|
82
82
|
G();
|
|
83
|
-
}),
|
|
84
|
-
|
|
85
|
-
const e3 =
|
|
83
|
+
}), q.configure.props) {
|
|
84
|
+
q.configure.props.size || (q.configure.props.size = {});
|
|
85
|
+
const e3 = q.configure.props.size;
|
|
86
86
|
let i2 = e3[k.PC];
|
|
87
87
|
i2 || (i2 = {}, e3[k.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
|
|
88
88
|
}
|
|
89
89
|
const K = o(() => {
|
|
90
90
|
const e3 = A.value;
|
|
91
|
-
if (J.value = {}, !e3 || !
|
|
91
|
+
if (J.value = {}, !e3 || !q.pageDesign) return {};
|
|
92
92
|
const i2 = {};
|
|
93
|
-
|
|
94
|
-
const n2 =
|
|
93
|
+
q.configure.design && q.configure.design.style && Object.assign(i2, q.configure.design.style);
|
|
94
|
+
const n2 = q.pageDesign.dimensions ? q.pageDesign.dimensions : "pc", r2 = e3[n2 + "_style"];
|
|
95
95
|
return r2 && (i2.width = r2.width, i2.height = r2.height, J.value = { height: r2.height }), E.value = e3[n2 + "_class"], i2;
|
|
96
96
|
});
|
|
97
|
-
|
|
98
|
-
e3 && e3.value ==
|
|
97
|
+
q.selectWidget && n(q.selectWidget, (e3) => {
|
|
98
|
+
e3 && e3.value == z ? Q.value = "amb-design-item-selected" : Q.value = "";
|
|
99
99
|
});
|
|
100
100
|
const Q = r("");
|
|
101
101
|
function X(e3) {
|
|
102
|
-
e3 && e3.preventDefault(),
|
|
102
|
+
e3 && e3.preventDefault(), F("onSelectWidget", z, q.configure);
|
|
103
103
|
}
|
|
104
104
|
function Y(e3, i2) {
|
|
105
|
-
|
|
105
|
+
F("onSelectWidget", e3, i2);
|
|
106
106
|
}
|
|
107
107
|
function Z(e3, i2) {
|
|
108
|
-
|
|
108
|
+
F("onCustomAttrWidget", e3, i2);
|
|
109
109
|
}
|
|
110
110
|
function $(e3) {
|
|
111
|
-
e3.preventDefault(),
|
|
111
|
+
e3.preventDefault(), F("onCopy", q.configure);
|
|
112
112
|
}
|
|
113
113
|
function ee(e3) {
|
|
114
|
-
if (e3.preventDefault(),
|
|
115
|
-
const e4 =
|
|
116
|
-
e4 >= 0 &&
|
|
114
|
+
if (e3.preventDefault(), F("onDelete", q.configure), q.pageDesign.allChartUuids) {
|
|
115
|
+
const e4 = q.pageDesign.allChartUuids.findIndex((e5) => e5 === q.configure.uuid);
|
|
116
|
+
e4 >= 0 && q.pageDesign.allChartUuids.splice(e4, 1);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function ie() {
|
|
120
120
|
var _a2, _b2;
|
|
121
|
-
return
|
|
121
|
+
return R.getModelField(U((_b2 = (_a2 = q.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop));
|
|
122
122
|
}
|
|
123
123
|
return t(() => {
|
|
124
|
-
|
|
124
|
+
q.configure.props && q.configure.props.isInit && (delete q.configure.props.isInit, F("onSelectWidget", z, q.configure));
|
|
125
125
|
}), (e3, i2) => {
|
|
126
126
|
const n2 = s("el-icon");
|
|
127
|
-
return g(), u("div", { class: p(["amb-object-design-ref", E.value]), style: a([{ position: "relative" }, K.value]), ref_key: "thisRef", ref: V }, [(g(), c(f(
|
|
127
|
+
return g(), u("div", { class: p(["amb-object-design-ref", E.value]), style: a([{ position: "relative" }, K.value]), ref_key: "thisRef", ref: V }, [(g(), c(f(H.value), { style: a([A.value, J.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: m(X, ["stop"]), onHandleSelect: X, class: p([[Q.value], "amb-design-item"]), isTableBtnLink: q.isTableBtnLink, onOnSelectWidget: Y, onOnCustomAttrWidget: Z }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class", "isTableBtnLink"])), l(d("span", N, [l(v(n2, { onClick: m($, ["stop"]), style: { "margin-left": "6px" } }, { default: D(() => [v(b(x))]), _: 1 }, 512), [[h, L.value]]), v(n2, { onClick: m(ee, ["stop"]), style: { "margin-left": "6px" } }, { default: D(() => [v(b(y))]), _: 1 })], 512), [[h, Q.value && e3.showSelectedClass]])], 6);
|
|
128
128
|
};
|
|
129
129
|
} });
|
|
130
130
|
export {
|
|
131
|
-
|
|
131
|
+
M as default
|
|
132
132
|
};
|
|
@@ -3,12 +3,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
default: any;
|
|
5
5
|
};
|
|
6
|
+
ucrDesign: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
11
|
pageId: {
|
|
8
12
|
type: NumberConstructor;
|
|
9
13
|
default: any;
|
|
10
14
|
};
|
|
15
|
+
ucrDesign: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
11
19
|
}>> & Readonly<{}>, {
|
|
20
|
+
ucrDesign: boolean;
|
|
12
21
|
pageId: number;
|
|
13
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
23
|
export default _default;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as o, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as o, resolveComponent as s, createElementBlock as a, openBlock as t, createElementVNode as i, createCommentVNode as n, createVNode as u, withCtx as r, createBlock as v, normalizeClass as p, withDirectives as c, vShow as d, unref as f } from "vue";
|
|
2
2
|
import m from "./view/view-design.vue.js";
|
|
3
3
|
import { initComponentRefState as g } from "../../utils/page-helper-util.js";
|
|
4
4
|
import { getTableNameByTableUuid as w, queryTableFields as k, changeFeieldToMap as y } from "../../utils/page-table-util.js";
|
|
5
5
|
import { addPermission as b, delPermission as h } from "../../utils/page-permission-util.js";
|
|
6
6
|
import { usePageContextStore as C } from "../../../../stores/page-store.js";
|
|
7
|
-
import
|
|
8
|
-
import { getHighestVersionDefinition as
|
|
9
|
-
import { getPageConf as
|
|
10
|
-
import { fetchPageDesignData as
|
|
11
|
-
import { ElMessage as
|
|
12
|
-
import
|
|
13
|
-
import { undoRedo as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
7
|
+
import D from "service-flow-designer";
|
|
8
|
+
import { getHighestVersionDefinition as S } from "../../utils/page-design-util.js";
|
|
9
|
+
import { getPageConf as V } from "../../utils/assemblys-config.js";
|
|
10
|
+
import { fetchPageDesignData as j } from "../../utils/page-service-util.js";
|
|
11
|
+
import { ElMessage as _, ElLoading as I } from "element-plus";
|
|
12
|
+
import M from "./view/page-switch.vue.js";
|
|
13
|
+
import { undoRedo as W } from "../../../../stores/undo-redo-store.js";
|
|
14
|
+
import B from "./page-event/page-event-view.vue.js";
|
|
15
|
+
import x from "../../utils/eventBus.js";
|
|
16
16
|
import { v4 as J } from "uuid";
|
|
17
|
-
const P = { class: "amb-page-container" }, T = { class: "amb-page-container-header-page" }, $ = { class: "amb-page-container-header" }, N = { class: "amb-page-container-header-type" }, R = { key: 0, class: "amb-page-container-main" }, A = e({ __name: "page-design", props: { pageId: { type: Number, default: null } }, setup(e2) {
|
|
18
|
-
const A2 =
|
|
17
|
+
const P = { class: "amb-page-container" }, T = { class: "amb-page-container-header-page" }, $ = { class: "amb-page-container-header" }, N = { class: "amb-page-container-header-type" }, R = { key: 0, class: "amb-page-container-main" }, A = e({ __name: "page-design", props: { pageId: { type: Number, default: null }, ucrDesign: { type: Boolean, default: false } }, setup(e2) {
|
|
18
|
+
const A2 = W(), E = e2, F = l(null), G = l(null), O = l(), z = C(), q = l("page"), L = l(null), U = l(null), H = l(null), K = l(false), Q = l(true), X = l(0);
|
|
19
19
|
let Y = l(null);
|
|
20
20
|
const Z = l(null);
|
|
21
21
|
function ee() {
|
|
22
22
|
q.value = "front", O.value && O.value.resize && O.value.resize();
|
|
23
23
|
}
|
|
24
24
|
function le(e3) {
|
|
25
|
-
const l2 =
|
|
25
|
+
const l2 = V();
|
|
26
26
|
return e3 ? Object.assign(l2, e3) : l2.systemCode || (l2.systemCode = "iqc", l2.systemVersion = 1), l2;
|
|
27
27
|
}
|
|
28
28
|
function oe(e3) {
|
|
29
29
|
let l2;
|
|
30
|
-
g(e3);
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
30
|
+
e3.ucrDesign = E.ucrDesign, g(e3);
|
|
31
|
+
const s2 = e3 == null ? void 0 : e3.tableUuids;
|
|
32
|
+
s2 && s2.length > 0 && (l2 = s2[0]);
|
|
33
|
+
const a2 = w(e3, l2);
|
|
34
|
+
if (a2) {
|
|
35
35
|
const l3 = e3.tableSysCode ? e3.tableSysCode : e3.systemCode, o2 = e3.tableSysVersion ? e3.tableSysVersion : e3.systemVersion;
|
|
36
|
-
k(l3, o2,
|
|
36
|
+
k(l3, o2, a2).then((l4) => {
|
|
37
37
|
e3.modelFields = l4, e3.modelFieldsMap = y(e3.modelFieldsMap, l4), z.setPageContext(e3);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
Y.value = e3.systemVersion, z.setPageContext(e3), o(() => e3, (e4) => {
|
|
41
|
-
|
|
41
|
+
ae();
|
|
42
42
|
}, { deep: true }), o(e3.events, (l3) => {
|
|
43
43
|
if (e3.runtime || (e3.runtime = {}), e3.events) {
|
|
44
44
|
const l4 = e3.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
|
|
@@ -50,34 +50,34 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
|
|
|
50
50
|
ue(e3);
|
|
51
51
|
}, { immediate: true }), e3.props && o(() => e3.props.activeWorkflow, () => {
|
|
52
52
|
ue(e3);
|
|
53
|
-
}, { immediate: true }),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
}, { immediate: true }), x.$emit("changePageDesign"), function() {
|
|
54
|
+
se("_isMobile", { level: 0, code: J(), name: "_isMobile", alias: "是否是移动端", type: "string", defaultValue: "", items: [], $editing: false });
|
|
55
|
+
se("_isMobileApp", { level: 0, code: J(), name: "_isMobileApp", alias: "是否是移动端APP", type: "string", defaultValue: "", items: [], $editing: false });
|
|
56
|
+
se("_isMobileBrowser", { level: 0, code: J(), name: "_isMobileBrowser", alias: "是否是移动端浏览器", type: "string", defaultValue: "", items: [], $editing: false });
|
|
57
57
|
}();
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function se(e3, l2) {
|
|
60
60
|
var _a;
|
|
61
61
|
const o2 = (_a = F.value.variables) == null ? void 0 : _a.filter((l3) => l3.name && l3.name === e3);
|
|
62
62
|
o2 && 0 !== o2.length || (F.value.variables || (F.value.variables = []), F.value.variables.push(l2));
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
x.$on("editComponentEvent", () => {
|
|
65
65
|
ee();
|
|
66
|
-
}), E.pageId ?
|
|
66
|
+
}), E.pageId ? j(E.pageId).then((e3) => {
|
|
67
67
|
if (e3 && e3.designJson) {
|
|
68
68
|
const l2 = e3.designJson, o2 = le(JSON.parse(l2));
|
|
69
69
|
o2.id = E.pageId, F.value = o2, oe(F.value);
|
|
70
70
|
} else F.value = le(null), oe(F.value);
|
|
71
|
-
}) : (F.value = le(null), oe(F.value));
|
|
72
|
-
let
|
|
71
|
+
}) : E.ucrDesign || (F.value = le(null), oe(F.value));
|
|
72
|
+
let ae = /* @__PURE__ */ function(e3, l2) {
|
|
73
73
|
let o2 = null;
|
|
74
74
|
return function() {
|
|
75
|
-
let
|
|
75
|
+
let s2 = arguments;
|
|
76
76
|
o2 && clearTimeout(o2);
|
|
77
|
-
let
|
|
77
|
+
let a2 = !o2;
|
|
78
78
|
o2 = setTimeout(() => {
|
|
79
79
|
o2 = null;
|
|
80
|
-
}, l2),
|
|
80
|
+
}, l2), a2 && e3.apply(this, s2);
|
|
81
81
|
};
|
|
82
82
|
}(() => {
|
|
83
83
|
A2.addSnapshot(F.value);
|
|
@@ -100,7 +100,7 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
|
|
|
100
100
|
b(e3, "gets", "", "-1"), o2.push("gets");
|
|
101
101
|
(e3.props ? e3.props : {}).activeWorkflow && (b(e3, "workflowGets", "", "-1"), o2.push("workflowGets"));
|
|
102
102
|
}
|
|
103
|
-
for (let
|
|
103
|
+
for (let s2 of l2) o2.includes(s2) || h(e3, s2, "-1");
|
|
104
104
|
}
|
|
105
105
|
function re(e3) {
|
|
106
106
|
U.value = e3.code, H.value = e3.definitionVersion, L.value = e3.id;
|
|
@@ -109,28 +109,28 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
|
|
|
109
109
|
if (!Q.value) return;
|
|
110
110
|
let e3, l2;
|
|
111
111
|
F.value.props.activeWorkflow && F.value.props.workflowSource && "link" === F.value.props.workflowSource ? (l2 = F.value.props.linkWorkflowCode, e3 = F.value.props.linkWorkflowVersion) : F.value.props.activeWorkflow && F.value.props.workflowSource && "create" === F.value.props.workflowSource && (l2 = F.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !H.value || U.value !== l2 || H.value !== e3 ? (K.value = false, Q.value = false, function(e4, l3) {
|
|
112
|
-
|
|
112
|
+
S(e4, l3, Y.value).then((e5) => {
|
|
113
113
|
re(e5), q.value = "workflow", K.value = true;
|
|
114
114
|
}).finally(() => {
|
|
115
115
|
Q.value = true;
|
|
116
116
|
});
|
|
117
|
-
}(l2, e3)) : q.value = "workflow" :
|
|
117
|
+
}(l2, e3)) : q.value = "workflow" : _({ type: "warning", showClose: true, message: "请在页面设计/属性/工作流中先绑定流程" });
|
|
118
118
|
}
|
|
119
119
|
function pe(e3) {
|
|
120
|
-
const l2 =
|
|
121
|
-
|
|
120
|
+
const l2 = I.service({ lock: true, text: "加载中,请稍后..." });
|
|
121
|
+
j(e3).then((o2) => {
|
|
122
122
|
if (X.value++, l2.close(), o2 && o2.designJson) {
|
|
123
|
-
const l3 = o2.designJson,
|
|
124
|
-
|
|
123
|
+
const l3 = o2.designJson, s2 = le(JSON.parse(l3));
|
|
124
|
+
s2.id = e3, F.value = s2, F.value.items || (F.value.items = []), F.value.props || (F.value.props = {}), oe(F.value);
|
|
125
125
|
} else F.value = le(null), oe(F.value);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
function ce(e3) {
|
|
129
129
|
e3 && e3.system && (Z.value = e3.system), Z.value && z.setEnableI18n(Z.value.enableI18n);
|
|
130
130
|
}
|
|
131
|
-
return (
|
|
132
|
-
const
|
|
133
|
-
return t(),
|
|
131
|
+
return (l2, o2) => {
|
|
132
|
+
const g2 = s("el-col"), w2 = s("el-row"), k2 = s("workflow-editor");
|
|
133
|
+
return t(), a("div", P, [i("div", T, [u(w2, null, { default: r(() => [u(g2, { span: 23 }, { default: r(() => [F.value && F.value.code || e2.ucrDesign ? (t(), v(M, { key: 0, pageId: e2.pageId, pageDesign: F.value, ucrDesign: e2.ucrDesign, onChangePage: pe, onInitLoaded: ce }, null, 8, ["pageId", "pageDesign", "ucrDesign"])) : n("", true)]), _: 1 })]), _: 1 })]), i("div", $, [i("div", N, [i("label", { class: p({ selected: "page" === q.value }), onClick: o2[0] || (o2[0] = (e3) => q.value = "page") }, "页面设计", 2), i("label", { class: p({ selected: "front" === q.value }), onClick: o2[1] || (o2[1] = (e3) => ee()) }, "页面逻辑", 2), e2.ucrDesign ? n("", true) : (t(), a("label", { key: 0, class: p({ selected: "workflow" === q.value }), onClick: o2[2] || (o2[2] = (e3) => ve()) }, " 工作流设计 ", 2)), i("label", { class: p({ selected: "service" === q.value }), onClick: o2[3] || (o2[3] = (e3) => q.value = "service") }, "服务编排", 2)])]), F.value ? (t(), a("div", R, [c((t(), v(m, { ref_key: "ViewDesignRef", ref: G, key: X.value, configure: F.value, system: Z.value, onRegain: ie, onRevocation: te }, null, 8, ["configure", "system"])), [[d, "page" === q.value]]), K.value ? c((t(), v(k2, { key: 0, id: L.value, code: F.value.workflowCode, version: F.value.workflowVersion, "system-code": F.value.systemCode, "system-publish-version": F.value.systemVersion, "page-code": F.value.code, onBack: l2.goBack, onChangeDefVersion: ne }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[d, "workflow" === q.value]]) : n("", true), "service" === q.value ? (t(), v(f(D), { key: 1, pageContext: F.value }, null, 8, ["pageContext"])) : n("", true), c(u(B, { ref_key: "pageEventContainerRef", ref: O, configure: F.value }, null, 8, ["configure"]), [[d, "front" === q.value]])])) : n("", true)]);
|
|
134
134
|
};
|
|
135
135
|
} });
|
|
136
136
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { "window.": [{ label: "window.$PageUtil", type: "property", info: "页面工具方法" }, { label: "window.$message", type: "property", info: "提示信息" }, { label: "window.$http", type: "property", info: "接口调用" }], "window.$http.": [{ label: "window.$http.get(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.post(url,{}).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.delete(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.put(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.patch(url).then(result => {\n\n})", type: "function", info: "" }], "window.$message.": [{ label: "window.$message.info()", type: "function", info: "提示消息" }, { label: "window.$message.success()", type: "function", info: "成功消息" }, { label: "window.$message.warning()", type: "function", info: "警告消息" }, { label: "window.$message.error()", type: "function", info: "错误消息" }], "window.$PageUtil.": [{ label: "window.$PageUtil.standardEvents", type: "function", info: "标准事件" }, { label: 'window.$PageUtil.getCustomFunc(params.pageContext, "xxxx")', type: "function", info: "获取自定义方法" }, { label: 'window.$PageUtil.getComponentRefByProp(params.pageContext, "xxxx")', type: "function", info: "根据属性获取组件引用对象" }, { label: 'window.$PageUtil.getComponentRefByCode(params.pageContext, "12c216ce9d424259974a56436c5af4cc")', type: "function", info: "根据组件唯一编码获取组件引用对象" }, { label: "window.$PageUtil.getEntity(params.pageContext)", type: "function", info: "获得实体" }, { label: 'window.$PageUtil.getEntityValue(params.pageContext, "xxxx")', type: "function", info: "获得实体属性值" }, { label: "window.$PageUtil.getPageData(params.pageContext)", type: "function", info: "获得页面变量" }, { label: 'window.$PageUtil.getPageDataValue(params.pageContext,"xxxx")', type: "function", info: "获得页面变量属性值" }, { label: "window.$PageUtil.getAdditionalParams(params.pageContext)", type: "function", info: "获得附加参数对象" }, { label: 'window.$PageUtil.getAdditionalParamValue(params.pageContext,"xxxx")', type: "function", info: "获得某附加参数值" }, { label: "window.$PageUtil.getFormViewData(params.pageContext)", type: "function", info: "获得表单数据查看信息" }, { label: "window.$PageUtil.getFormData(params.pageContext,id)", type: "function", info: "重新请求获得表单数据" }, { label: 'window.$PageUtil.setEntityDataValue(params.pageContext, {"name":"xxx",age:1})', type: "function", info: "设置Data值" }, { label: 'window.$PageUtil.setEntityPageValue(params.pageContext, {"name":"xxx",age:1})', type: "function", info: "设置页面变量值" }, { label: 'window.$PageUtil.setEntityValueByType(params.pageContext,"page",{"name":"xxx",age:1})', type: "function", info: "根据类型设置值" }, { label: 'window.$PageUtil.showElement(params.pageContext,["NAME","AGE"])', type: "function", info: "显示页面中的某个组件元素" }, { label: 'window.$PageUtil.hideElement(params.pageContext,["NAME","AGE"])', type: "function", info: "隐藏页面中的某个组件元素" }, { label: 'window.$PageUtil.enableElement(params.pageContext,["NAME","AGE"])', type: "function", info: "设置组件元素可用状态" }, { label: 'window.$PageUtil.disableElement(params.pageContext,["NAME","AGE"])', type: "function", info: "禁用页面中的某个组件元素" }, { label: "window.$PageUtil.disabledAllFields(params.pageContext)", type: "function", info: "禁用所有字段" }, { label: "window.$PageUtil.dynamicControlFormEdit(params.pageContext,[])", type: "function", info: "表单编辑权限动态控制" }, { label: "window.$PageUtil.dynamicControlTableEdit(params.pageContext,[],tableCode?)", type: "function", info: "控制表格编辑权限" }, { label: "window.$PageUtil.openPage(params.pageContext,openParam)", type: "function", info: "打开页面" }, { label: "window.$PageUtil.refreshPage(params.pageContext,id)", type: "function", info: "刷新页面" }, { label: "window.$PageUtil.refreshSubTableHandle(params.pageContext,tableCode)", type: "function", info: "刷新表单中子表内容" }, { label: "window.$PageUtil.refreshChildData(params.pageContextt, tableCode, data)", type: "function", info: "更新子表集合" }, { label: "window.$PageUtil.isMobile()", type: "function", info: "是否是移动端" }, { label: "window.$PageUtil.getServerConfigValue(key)", type: "function", info: "根据key获得配置信息" }, { label: "window.$PageUtil.getBackendUrl(params.pageContext)", type: "function", info: "获得当前系统后端访问路径" }, { label: "window.$PageUtil.getPlateBackendUrl()", type: "function", info: "获得平台后端访问路径" }], "logicContext.": [{ label: "logicContext.page", type: "property", info: "页面变量" }, { label: "logicContext.logic", type: "property", info: "页面逻辑" }, { label: "logicContext.task", type: "property", info: "任务变量" }, { label: "logicContext.context", type: "property", info: "上下文变量" }, { label: "logicContext.system", type: "property", info: "系统变量" }, { label: "logicContext.data", type: "property", info: "数据模型变量" }] };
|
|
1
|
+
const e = { de: [{ label: "debugger", type: "property" }], "params.": [{ label: "params.pageContext", type: "property", info: "页面工具上下文" }, { label: "params.configureObj", type: "property", info: "组件配置信息" }], "params.pageContext.": [{ label: "params.pageContext.entity.data", type: "property", info: "" }, { label: "params.pageContext.entity.context", type: "property", info: "" }, { label: "params.pageContext.entity.page", type: "property", info: "" }, { label: "params.pageContext.entity.request", type: "property", info: "" }, { label: "params.pageContext.entity.system", type: "property", info: "" }, { label: "params.pageContext.entity.task", type: "property", info: "" }], "window.": [{ label: "window.$PageUtil", type: "property", info: "页面工具方法" }, { label: "window.$message", type: "property", info: "提示信息" }, { label: "window.$http", type: "property", info: "接口调用" }], "window.$http.": [{ label: "window.$http.get(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.post(url,{}).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.delete(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.put(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.patch(url).then(result => {\n\n})", type: "function", info: "" }], "window.$message.": [{ label: "window.$message.info()", type: "function", info: "提示消息" }, { label: "window.$message.success()", type: "function", info: "成功消息" }, { label: "window.$message.warning()", type: "function", info: "警告消息" }, { label: "window.$message.error()", type: "function", info: "错误消息" }], "window.$PageUtil.": [{ label: "window.$PageUtil.standardEvents", type: "function", info: "标准事件" }, { label: 'window.$PageUtil.getCustomFunc(params.pageContext, "xxxx")', type: "function", info: "获取自定义方法" }, { label: 'window.$PageUtil.getComponentRefByProp(params.pageContext, "xxxx")', type: "function", info: "根据属性获取组件引用对象" }, { label: 'window.$PageUtil.getComponentRefByCode(params.pageContext, "12c216ce9d424259974a56436c5af4cc")', type: "function", info: "根据组件唯一编码获取组件引用对象" }, { label: "window.$PageUtil.getEntity(params.pageContext)", type: "function", info: "获得实体" }, { label: 'window.$PageUtil.getEntityValue(params.pageContext, "xxxx")', type: "function", info: "获得实体属性值" }, { label: "window.$PageUtil.getPageData(params.pageContext)", type: "function", info: "获得页面变量" }, { label: 'window.$PageUtil.getPageDataValue(params.pageContext,"xxxx")', type: "function", info: "获得页面变量属性值" }, { label: "window.$PageUtil.getAdditionalParams(params.pageContext)", type: "function", info: "获得附加参数对象" }, { label: 'window.$PageUtil.getAdditionalParamValue(params.pageContext,"xxxx")', type: "function", info: "获得某附加参数值" }, { label: "window.$PageUtil.getFormViewData(params.pageContext)", type: "function", info: "获得表单数据查看信息" }, { label: "window.$PageUtil.getFormData(params.pageContext,id)", type: "function", info: "重新请求获得表单数据" }, { label: 'window.$PageUtil.setEntityDataValue(params.pageContext, {"name":"xxx",age:1})', type: "function", info: "设置Data值" }, { label: 'window.$PageUtil.setEntityPageValue(params.pageContext, {"name":"xxx",age:1})', type: "function", info: "设置页面变量值" }, { label: 'window.$PageUtil.setEntityValueByType(params.pageContext,"page",{"name":"xxx",age:1})', type: "function", info: "根据类型设置值" }, { label: 'window.$PageUtil.showElement(params.pageContext,["NAME","AGE"])', type: "function", info: "显示页面中的某个组件元素" }, { label: 'window.$PageUtil.hideElement(params.pageContext,["NAME","AGE"])', type: "function", info: "隐藏页面中的某个组件元素" }, { label: 'window.$PageUtil.enableElement(params.pageContext,["NAME","AGE"])', type: "function", info: "设置组件元素可用状态" }, { label: 'window.$PageUtil.disableElement(params.pageContext,["NAME","AGE"])', type: "function", info: "禁用页面中的某个组件元素" }, { label: "window.$PageUtil.disabledAllFields(params.pageContext)", type: "function", info: "禁用所有字段" }, { label: "window.$PageUtil.dynamicControlFormEdit(params.pageContext,[])", type: "function", info: "表单编辑权限动态控制" }, { label: "window.$PageUtil.dynamicControlTableEdit(params.pageContext,[],tableCode?)", type: "function", info: "控制表格编辑权限" }, { label: "window.$PageUtil.openPage(params.pageContext,openParam)", type: "function", info: "打开页面" }, { label: "window.$PageUtil.refreshPage(params.pageContext,id)", type: "function", info: "刷新页面" }, { label: "window.$PageUtil.refreshSubTableHandle(params.pageContext,tableCode)", type: "function", info: "刷新表单中子表内容" }, { label: "window.$PageUtil.refreshChildData(params.pageContextt, tableCode, data)", type: "function", info: "更新子表集合" }, { label: "window.$PageUtil.isMobile()", type: "function", info: "是否是移动端" }, { label: "window.$PageUtil.getServerConfigValue(key)", type: "function", info: "根据key获得配置信息" }, { label: "window.$PageUtil.getBackendUrl(params.pageContext)", type: "function", info: "获得当前系统后端访问路径" }, { label: "window.$PageUtil.getPlateBackendUrl()", type: "function", info: "获得平台后端访问路径" }], "logicContext.": [{ label: "logicContext.page", type: "property", info: "页面变量" }, { label: "logicContext.logic", type: "property", info: "页面逻辑" }, { label: "logicContext.task", type: "property", info: "任务变量" }, { label: "logicContext.context", type: "property", info: "上下文变量" }, { label: "logicContext.system", type: "property", info: "系统变量" }, { label: "logicContext.data", type: "property", info: "数据模型变量" }] };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|