super-page-designer 2.1.98 → 2.2.5

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, onUnmounted as i, watch as n, ref as o, computed as r, onMounted as s, resolveComponent as t, openBlock as g, createElementBlock as u, normalizeStyle as p, normalizeClass as c, createBlock as a, resolveDynamicComponent as f, withModifiers as l, withDirectives as d, createElementVNode as m, createVNode as D, withCtx as v, unref as b, vShow as h } from "vue";
1
+ import { defineComponent as e, onUnmounted as i, watch as n, ref as o, computed as r, onMounted as s, resolveComponent as t, openBlock as g, createElementBlock as u, normalizeStyle as p, normalizeClass as a, createBlock as c, resolveDynamicComponent as l, withModifiers as f, withDirectives as d, createElementVNode as m, createVNode as D, withCtx as v, 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
4
  import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
@@ -6,31 +6,32 @@ import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
6
6
  import { PageDimensions as O } from "../../utils/interfaces/page-design-types.js";
7
7
  import { batchUpdatePermissions as k, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
8
8
  import { watchValidate as P, getRefrencePropMap as M, removePropFromRefrencePropMap as w } from "../../utils/form-design-util.js";
9
- import { usePageContextStore as _ } from "../../../../stores/page-store.js";
10
- import { getListCode as B } from "super-page-runtime";
11
- import { getFormPropName as T } from "../../utils/page-helper-util.js";
12
- const U = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
13
- var _a, _b;
14
- const q = _(), z = e2;
9
+ import { usePageContextStore as U } from "../../../../stores/page-store.js";
10
+ import { getListCode as _ } from "super-page-runtime";
11
+ import { getFormPropName as B } from "../../utils/page-helper-util.js";
12
+ import { updateServiceInputs as I } from "../../utils/chart-design-util.js";
13
+ const T = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
14
+ var _a, _b, _c, _d;
15
+ const q = U(), z = e2;
15
16
  if ("table" === z.configure.name && z.pageDesign.tableRuntimes && z.pageDesign.tableRuntimes[z.configure.uuid]) {
16
17
  const e3 = z.pageDesign.tableRuntimes[z.configure.uuid].configure, i2 = JSON.parse(e3);
17
18
  Object.assign(z.configure, i2), delete z.pageDesign.tableRuntimes[z.configure.uuid];
18
19
  }
19
20
  z.indexObj && z.indexObj.index++, null == z.configure.props && (z.configure.props = {}), null == z.configure.style && (z.configure.style = {});
20
- const H = q.getModelField(T((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
21
+ const H = q.getModelField(B((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
21
22
  function A(e3) {
22
23
  z.pageDesign.listCodesMap || (z.pageDesign.listCodesMap = {});
23
- const i2 = B(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
24
+ const i2 = _(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
24
25
  i2 && (z.pageDesign.listCodesMap[i2] = e3 || i2);
25
26
  }
26
27
  z.pageDesign && z.configure && "table" == z.configure.name && (z.configure.uuid && (z.pageDesign.tableUuids || (z.pageDesign.tableUuids = []), setTimeout(() => {
27
- var _a2, _b2, _c, _d;
28
- ((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d = (_c = z.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(z.configure.uuid)), A(z.configure.code);
28
+ var _a2, _b2, _c2, _d2;
29
+ ((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(z.configure.uuid)), A(z.configure.code);
29
30
  }, 500), i(() => {
30
- var _a2, _b2, _c, _d;
31
+ var _a2, _b2, _c2, _d2;
31
32
  const e3 = (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(z.configure.uuid);
32
- null != e3 && e3 > -1 && ((_d = (_c = z.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(e3, 1));
33
- const i2 = B(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
33
+ null != e3 && e3 > -1 && ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(e3, 1));
34
+ const i2 = _(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
34
35
  z.pageDesign.listCodesMap && z.pageDesign.listCodesMap[i2] && delete z.pageDesign.listCodesMap[i2], z.pageDesign.subTableWatchProps && delete z.pageDesign.subTableWatchProps[z.configure.uuid];
35
36
  })), n(() => z.configure.code, (e3) => {
36
37
  A(e3);
@@ -47,13 +48,15 @@ const U = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
47
48
  e3.forEach((e4) => {
48
49
  e4.name && e4.value && (i2[e4.name] = e4.value);
49
50
  }), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.customParams = i2;
51
+ }, { immediate: true }), ((_d = (_c = z.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && z.pageDesign && n(z.configure.props.dataOrigin.serviceInputs, (e3) => {
52
+ I(z.configure, e3);
50
53
  }, { immediate: true }), z.configure.componentIndex = z.indexObj.index;
51
- let I = z.indexObj.index;
52
- const E = R2, N = o({});
53
- N.value = C(z.configure.name);
54
- const F = o(true);
55
- null == N.value && (N.value = j, F.value = false), n(() => z.configure.name, (e3) => {
56
- N.value = C(e3);
54
+ let E = z.indexObj.index;
55
+ const N = R2, F = o({});
56
+ F.value = C(z.configure.name);
57
+ const J = o(true);
58
+ null == F.value && (F.value = j, J.value = false), n(() => z.configure.name, (e3) => {
59
+ F.value = C(e3);
57
60
  }), z.configure.props && z.configure.props.verification && (z.configure.props.base && z.configure.props.base.title && n(() => z.configure.props.base.title, (e3) => {
58
61
  P(z.configure, z.configure.props.verification, H);
59
62
  }), z.configure.props.base && z.configure.props.base.prop && (n(() => z.configure.props.base.prop, (e3, i2) => {
@@ -71,55 +74,58 @@ const U = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
71
74
  }), z.configure.props && z.configure.props.verification && z.configure.props.verification.required && (z.configure.props.verification.required = false);
72
75
  }
73
76
  });
74
- const J = o(null), G = o({}), K = o(""), L = o({});
75
- function Q() {
76
- W(z.configure, G, K), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = K.value, z.configure.runtime.common.style = G.value;
77
+ const G = o(null), K = o({}), L = o(""), Q = o({});
78
+ function V() {
79
+ W(z.configure, K, L), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = L.value, z.configure.runtime.common.style = K.value;
77
80
  }
78
81
  if (z.configure.props && z.configure.props && (n(z.configure.props.size, (e3) => {
79
- Q();
82
+ V();
80
83
  }), n(z.configure.props.position, (e3) => {
81
- Q();
84
+ V();
82
85
  }, { immediate: true })), z.configure.style && z.configure.style && n(z.configure.style, () => {
83
- Q();
86
+ V();
84
87
  }), z.configure.props) {
85
88
  z.configure.props.size || (z.configure.props.size = {});
86
89
  const e3 = z.configure.props.size;
87
90
  let i2 = e3[O.PC];
88
91
  i2 || (i2 = {}, e3[O.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);
89
92
  }
90
- const V = r(() => {
91
- const e3 = G.value;
92
- if (L.value = {}, !e3 || !z.pageDesign)
93
+ const X = r(() => {
94
+ const e3 = K.value;
95
+ if (Q.value = {}, !e3 || !z.pageDesign)
93
96
  return {};
94
97
  const i2 = {};
95
98
  z.configure.design && z.configure.design.style && Object.assign(i2, z.configure.design.style);
96
99
  const n2 = z.pageDesign.dimensions ? z.pageDesign.dimensions : "pc", o2 = e3[n2 + "_style"];
97
- return o2 && (i2.width = o2.width, i2.height = o2.height, L.value = { height: o2.height }), K.value = e3[n2 + "_class"], i2;
100
+ return o2 && (i2.width = o2.width, i2.height = o2.height, Q.value = { height: o2.height }), L.value = e3[n2 + "_class"], i2;
98
101
  });
99
102
  n(z.selectWidget, (e3) => {
100
- e3 && e3.value == I ? X.value = "amb-design-item-selected" : X.value = "";
103
+ e3 && e3.value == E ? Y.value = "amb-design-item-selected" : Y.value = "";
101
104
  });
102
- const X = o("");
103
- function Y(e3) {
104
- e3 && e3.preventDefault(), E("onSelectWidget", I, z.configure);
105
- }
106
- function Z(e3, i2) {
107
- E("onSelectWidget", e3, i2);
105
+ const Y = o("");
106
+ function Z(e3) {
107
+ e3 && e3.preventDefault(), N("onSelectWidget", E, z.configure);
108
108
  }
109
109
  function $(e3, i2) {
110
- E("onCustomAttrWidget", e3, i2);
110
+ N("onSelectWidget", e3, i2);
111
111
  }
112
- function ee(e3) {
113
- e3.preventDefault(), E("onCopy", z.configure);
112
+ function ee(e3, i2) {
113
+ N("onCustomAttrWidget", e3, i2);
114
114
  }
115
115
  function ie(e3) {
116
- e3.preventDefault(), E("onDelete", z.configure);
116
+ e3.preventDefault(), N("onCopy", z.configure);
117
+ }
118
+ function ne(e3) {
119
+ if (e3.preventDefault(), N("onDelete", z.configure), z.pageDesign.allChartUuids) {
120
+ const e4 = z.pageDesign.allChartUuids.findIndex((e5) => e5 === z.configure.uuid);
121
+ e4 >= 0 && z.pageDesign.allChartUuids.splice(e4, 1);
122
+ }
117
123
  }
118
124
  return s(() => {
119
- z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, E("onSelectWidget", I, z.configure));
125
+ z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, N("onSelectWidget", E, z.configure));
120
126
  }), (e3, i2) => {
121
127
  const n2 = t("el-icon");
122
- return g(), u("div", { style: p([{ position: "relative" }, V.value]), class: c(K.value), ref_key: "thisRef", ref: J }, [(g(), a(f(N.value), { style: p([G.value, L.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: l(Y, ["stop"]), onHandleSelect: Y, class: c([[X.value], "amb-design-item"]), onOnSelectWidget: Z, onOnCustomAttrWidget: $ }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), d(m("span", U, [d(D(n2, { onClick: l(ee, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, F.value]]), D(n2, { onClick: l(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, X.value && e3.showSelectedClass]])], 6);
128
+ return g(), u("div", { style: p([{ position: "relative" }, X.value]), class: a(L.value), ref_key: "thisRef", ref: G }, [(g(), c(l(F.value), { style: p([K.value, Q.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: f(Z, ["stop"]), onHandleSelect: Z, class: a([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), d(m("span", T, [d(D(n2, { onClick: f(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: f(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
123
129
  };
124
130
  } });
125
131
  export {
@@ -14,17 +14,17 @@ import { undoRedo as J } from "../../../../stores/undo-redo-store.js";
14
14
  import T from "./page-event/page-event-view.vue.js";
15
15
  import _ from "../../utils/eventBus.js";
16
16
  const B = { class: "amb-page-container" }, N = { class: "amb-page-container-header-page" }, P = { class: "amb-page-container-header" }, R = { class: "amb-page-container-header-type" }, E = { key: 0, class: "amb-page-container-main" }, F = e({ __name: "page-design", props: { pageId: { type: Number, default: null } }, setup(e2) {
17
- const F2 = J(), G = e2, O = l(null), z = l(null), M = l(), $ = h(), q = l("page"), L = l(null), U = l(null), A = l(null), H = l(false), K = l(0);
18
- let Q = l(null);
19
- const X = l(null);
20
- function Y() {
17
+ const F2 = J(), G = e2, O = l(null), z = l(null), M = l(), $ = h(), q = l("page"), L = l(null), U = l(null), A = l(null), H = l(false), K = l(true), Q = l(0);
18
+ let X = l(null);
19
+ const Y = l(null);
20
+ function Z() {
21
21
  q.value = "front", M.value && M.value.resize && M.value.resize();
22
22
  }
23
- function Z(e3) {
23
+ function ee(e3) {
24
24
  const l2 = V();
25
25
  return e3 ? Object.assign(l2, e3) : l2.systemCode || (l2.systemCode = "iqc", l2.systemVersion = 1), l2;
26
26
  }
27
- function ee(e3) {
27
+ function le(e3) {
28
28
  let l2;
29
29
  g(e3);
30
30
  const s2 = e3 == null ? void 0 : e3.tableUuids;
@@ -36,31 +36,31 @@ const B = { class: "amb-page-container" }, N = { class: "amb-page-container-head
36
36
  e3.modelFields = l4, e3.modelFieldsMap = y(e3.modelFieldsMap, l4), $.setPageContext(e3);
37
37
  });
38
38
  }
39
- Q.value = e3.systemVersion, $.setPageContext(e3), o(() => e3, (e4) => {
40
- le();
39
+ X.value = e3.systemVersion, $.setPageContext(e3), o(() => e3, (e4) => {
40
+ oe();
41
41
  }, { deep: true }), o(e3.events, (l3) => {
42
42
  if (e3.runtime || (e3.runtime = {}), e3.events) {
43
43
  const l4 = e3.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
44
44
  e3.runtime.events = l4;
45
45
  }
46
46
  }, { immediate: true }), o(() => e3.label, () => {
47
- te(e3);
47
+ ne(e3);
48
48
  }, { immediate: true }), o(() => e3.pageType, () => {
49
- te(e3);
49
+ ne(e3);
50
50
  }, { immediate: true }), e3.props && o(() => e3.props.activeWorkflow, () => {
51
- te(e3);
51
+ ne(e3);
52
52
  }, { immediate: true }), _.$emit("changePageDesign");
53
53
  }
54
54
  _.$on("editComponentEvent", () => {
55
- Y();
55
+ Z();
56
56
  }), G.pageId ? D(G.pageId).then((e3) => {
57
57
  if (e3 && e3.designJson) {
58
- const l2 = e3.designJson, o2 = Z(JSON.parse(l2));
59
- o2.id = G.pageId, O.value = o2, ee(O.value);
58
+ const l2 = e3.designJson, o2 = ee(JSON.parse(l2));
59
+ o2.id = G.pageId, O.value = o2, le(O.value);
60
60
  } else
61
- O.value = Z(null), ee(O.value);
62
- }) : (O.value = Z(null), ee(O.value));
63
- let le = /* @__PURE__ */ function(e3, l2) {
61
+ O.value = ee(null), le(O.value);
62
+ }) : (O.value = ee(null), le(O.value));
63
+ let oe = /* @__PURE__ */ function(e3, l2) {
64
64
  let o2 = null;
65
65
  return function() {
66
66
  let s2 = arguments;
@@ -73,17 +73,17 @@ const B = { class: "amb-page-container" }, N = { class: "amb-page-container-head
73
73
  }(() => {
74
74
  F2.addSnapshot(O.value);
75
75
  }, 400);
76
- function oe() {
77
- K.value++, F2.undo(O.value);
78
- }
79
76
  function se() {
80
- K.value++, F2.record(O.value);
77
+ Q.value++, F2.undo(O.value);
81
78
  }
82
- function ae(e3) {
83
- const l2 = e3.definitionVersion;
84
- l2 && (O.value.props.workflowSource = "link", O.value.props.linkWorkflowVersion = l2, O.value.workflowVersion = l2, ne(e3));
79
+ function ae() {
80
+ Q.value++, F2.record(O.value);
85
81
  }
86
82
  function te(e3) {
83
+ const l2 = e3.definitionVersion;
84
+ l2 && (O.value.props.workflowSource = "link", O.value.props.linkWorkflowVersion = l2, O.value.workflowVersion = l2, ie(e3));
85
+ }
86
+ function ne(e3) {
87
87
  b(e3, "page", e3.label, "-1");
88
88
  const l2 = ["gets", "workflowGets", "listData", "listSubData"], o2 = [];
89
89
  if (e3.pageType && "form" != e3.pageType)
@@ -95,33 +95,37 @@ const B = { class: "amb-page-container" }, N = { class: "amb-page-container-head
95
95
  for (let s2 of l2)
96
96
  o2.includes(s2) || C(e3, s2, "-1");
97
97
  }
98
- function ne(e3) {
98
+ function ie(e3) {
99
99
  U.value = e3.code, A.value = e3.definitionVersion, L.value = e3.id;
100
100
  }
101
- function ie() {
101
+ function ue() {
102
+ if (!K.value)
103
+ return;
102
104
  let e3, l2;
103
- O.value.props.activeWorkflow && O.value.props.workflowSource && "link" === O.value.props.workflowSource ? (l2 = O.value.props.linkWorkflowCode, e3 = O.value.props.linkWorkflowVersion) : O.value.props.activeWorkflow && O.value.props.workflowSource && "create" === O.value.props.workflowSource && (l2 = O.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !A.value || U.value !== l2 || A.value !== e3 ? (H.value = false, function(e4, l3) {
104
- j(e4, l3, Q.value).then((e5) => {
105
- ne(e5), q.value = "workflow", H.value = true;
105
+ O.value.props.activeWorkflow && O.value.props.workflowSource && "link" === O.value.props.workflowSource ? (l2 = O.value.props.linkWorkflowCode, e3 = O.value.props.linkWorkflowVersion) : O.value.props.activeWorkflow && O.value.props.workflowSource && "create" === O.value.props.workflowSource && (l2 = O.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !A.value || U.value !== l2 || A.value !== e3 ? (H.value = false, K.value = false, function(e4, l3) {
106
+ j(e4, l3, X.value).then((e5) => {
107
+ ie(e5), q.value = "workflow", H.value = true;
108
+ }).finally(() => {
109
+ K.value = true;
106
110
  });
107
111
  }(l2, e3)) : q.value = "workflow" : W({ type: "warning", showClose: true, message: "请在页面设计/属性/工作流中先绑定流程" });
108
112
  }
109
- function ue(e3) {
113
+ function re(e3) {
110
114
  const l2 = I.service({ lock: true, text: "切换中,请稍后..." });
111
115
  D(e3).then((o2) => {
112
- if (K.value++, l2.close(), o2 && o2.designJson) {
113
- const l3 = o2.designJson, s2 = Z(JSON.parse(l3));
114
- s2.id = e3, O.value = s2, O.value.items || (O.value.items = []), O.value.props || (O.value.props = {}), ee(O.value);
116
+ if (Q.value++, l2.close(), o2 && o2.designJson) {
117
+ const l3 = o2.designJson, s2 = ee(JSON.parse(l3));
118
+ s2.id = e3, O.value = s2, O.value.items || (O.value.items = []), O.value.props || (O.value.props = {}), le(O.value);
115
119
  } else
116
- O.value = Z(null), ee(O.value);
120
+ O.value = ee(null), le(O.value);
117
121
  });
118
122
  }
119
- function re(e3) {
120
- e3 && e3.system && (X.value = e3.system), X.value && $.setEnableI18n(X.value.enableI18n);
123
+ function ve(e3) {
124
+ e3 && e3.system && (Y.value = e3.system), Y.value && $.setEnableI18n(Y.value.enableI18n);
121
125
  }
122
126
  return (e3, l2) => {
123
127
  const o2 = s("el-col"), g2 = s("el-row"), w2 = s("workflow-editor");
124
- return a(), t("div", B, [n("div", N, [i(g2, null, { default: u(() => [i(o2, { span: 23, style: {} }, { default: u(() => [O.value && O.value.code ? (a(), r(x, { key: 0, pageDesign: O.value, onChangePage: ue, onInitLoaded: re }, null, 8, ["pageDesign"])) : v("", true)]), _: 1 })]), _: 1 })]), n("div", P, [n("div", R, [n("label", { class: p({ selected: "page" === q.value }), onClick: l2[0] || (l2[0] = (e4) => q.value = "page") }, "页面设计", 2), n("label", { class: p({ selected: "front" === q.value }), onClick: l2[1] || (l2[1] = (e4) => Y()) }, "页面逻辑", 2), n("label", { class: p({ selected: "workflow" === q.value }), onClick: l2[2] || (l2[2] = (e4) => ie()) }, "工作流设计", 2), n("label", { class: p({ selected: "service" === q.value }), onClick: l2[3] || (l2[3] = (e4) => q.value = "service") }, "服务编排", 2)])]), O.value ? (a(), t("div", E, [c((a(), r(m, { ref_key: "ViewDesignRef", ref: z, key: K.value, configure: O.value, system: X.value, onRegain: se, onRevocation: oe }, null, 8, ["configure", "system"])), [[f, "page" === q.value]]), H.value ? c((a(), r(w2, { key: 0, id: L.value, code: O.value.workflowCode, version: O.value.workflowVersion, "system-code": O.value.systemCode, "system-publish-version": O.value.systemVersion, "page-code": O.value.code, onBack: e3.goBack, onChangeDefVersion: ae }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[f, "workflow" === q.value]]) : v("", true), "service" === q.value ? (a(), r(d(S), { key: 1, pageContext: O.value }, null, 8, ["pageContext"])) : v("", true), c(i(T, { ref_key: "pageEventContainerRef", ref: M, configure: O.value }, null, 8, ["configure"]), [[f, "front" === q.value]])])) : v("", true)]);
128
+ return a(), t("div", B, [n("div", N, [i(g2, null, { default: u(() => [i(o2, { span: 23, style: {} }, { default: u(() => [O.value && O.value.code ? (a(), r(x, { key: 0, pageDesign: O.value, onChangePage: re, onInitLoaded: ve }, null, 8, ["pageDesign"])) : v("", true)]), _: 1 })]), _: 1 })]), n("div", P, [n("div", R, [n("label", { class: p({ selected: "page" === q.value }), onClick: l2[0] || (l2[0] = (e4) => q.value = "page") }, "页面设计", 2), n("label", { class: p({ selected: "front" === q.value }), onClick: l2[1] || (l2[1] = (e4) => Z()) }, "页面逻辑", 2), n("label", { class: p({ selected: "workflow" === q.value }), onClick: l2[2] || (l2[2] = (e4) => ue()) }, "工作流设计", 2), n("label", { class: p({ selected: "service" === q.value }), onClick: l2[3] || (l2[3] = (e4) => q.value = "service") }, "服务编排", 2)])]), O.value ? (a(), t("div", E, [c((a(), r(m, { ref_key: "ViewDesignRef", ref: z, key: Q.value, configure: O.value, system: Y.value, onRegain: ae, onRevocation: se }, null, 8, ["configure", "system"])), [[f, "page" === q.value]]), H.value ? c((a(), r(w2, { key: 0, id: L.value, code: O.value.workflowCode, version: O.value.workflowVersion, "system-code": O.value.systemCode, "system-publish-version": O.value.systemVersion, "page-code": O.value.code, onBack: e3.goBack, onChangeDefVersion: te }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[f, "workflow" === q.value]]) : v("", true), "service" === q.value ? (a(), r(d(S), { key: 1, pageContext: O.value }, null, 8, ["pageContext"])) : v("", true), c(i(T, { ref_key: "pageEventContainerRef", ref: M, configure: O.value }, null, 8, ["configure"]), [[f, "front" === q.value]])])) : v("", true)]);
125
129
  };
126
130
  } });
127
131
  export {
@@ -1,7 +1 @@
1
- import o from "./config.vue3.js";
2
- import "./config.vue2.js";
3
- import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(o, [["__scopeId", "data-v-bc0d50cd"]]);
5
- export {
6
- r as default
7
- };
1
+
@@ -1 +1,7 @@
1
-
1
+ import o from "./config.vue3.js";
2
+ import "./config.vue.js";
3
+ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = e(o, [["__scopeId", "data-v-bc0d50cd"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, openBlock as o, createElementBlock as s, createElementVNode as i, createVNode as c, withCtx as r, withDirectives as m, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
- import C from "./config.vue.js";
3
+ import C from "./config.vue2.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as _ } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as k } from "../../../../../stores/page-store.js";
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
16
16
  import "@codemirror/language";
17
17
  import "@codemirror/search";
18
18
  import "js-beautify";
19
- import "../page-event/config.vue2.js";
19
+ import "../page-event/config.vue.js";
20
20
  import "../../../utils/assemblys-config.js";
21
21
  import "../../../../../stores/page-store.js";
22
22
  import "../../../../../stores/event-undo-redo-store.js";