@opentiny/tiny-engine-plugin-page 2.3.1 → 2.4.0
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/index.js +1079 -1036
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { ref as K, watchEffect as
|
|
3
|
-
import { getMetaApi as G, META_SERVICE as
|
|
4
|
-
import { BlockHistoryList as
|
|
5
|
-
import { isEqual as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { constants as
|
|
8
|
-
import { isVsCodeEnv as
|
|
9
|
-
import { handlePageUpdate as
|
|
10
|
-
import { generatePage as
|
|
11
|
-
import { previewPage as
|
|
12
|
-
import
|
|
13
|
-
import { IconSearch as
|
|
14
|
-
import { getCanvasStatus as
|
|
15
|
-
import { REGEXP_ROUTE as
|
|
16
|
-
const
|
|
17
|
-
fetchPageList:
|
|
18
|
-
fetchPageDetail:
|
|
19
|
-
requestDeletePage:
|
|
20
|
-
requestCreatePage:
|
|
21
|
-
requestCopyPage:
|
|
22
|
-
fetchPageHistory:
|
|
23
|
-
fetchHistoryDetail:
|
|
24
|
-
handleRouteHomeUpdate:
|
|
25
|
-
requestRestorePageHistory:
|
|
26
|
-
requestUpdatePage:
|
|
27
|
-
},
|
|
28
|
-
const n = a.__vccOpts || a;
|
|
29
|
-
for (const [e, s] of t)
|
|
30
|
-
n[e] = s;
|
|
31
|
-
return n;
|
|
32
|
-
}, Mt = {
|
|
2
|
+
import { ref as K, watchEffect as Se, resolveComponent as D, createBlock as H, openBlock as v, computed as z, createElementBlock as U, createVNode as p, createElementVNode as A, withCtx as C, reactive as ee, createCommentVNode as j, resolveDynamicComponent as ze, createTextVNode as _e, defineComponent as Qe, Fragment as ie, renderList as De, normalizeClass as he, renderSlot as ct, toDisplayString as ae, onMounted as ut, onUnmounted as Le, provide as He } from "vue";
|
|
3
|
+
import { getMetaApi as G, META_SERVICE as V, usePage as Y, useBlock as gt, useModal as oe, getMergeMeta as Ue, useNotify as M, useCanvas as se, getMergeRegistry as Ye, useLayout as ne, useMessage as Ne, useHelp as dt, useBreadcrumb as pt, getOptions as qe, HOOK_NAME as ft } from "@opentiny/tiny-engine-meta-register";
|
|
4
|
+
import { BlockHistoryList as mt, MetaCodeEditor as Pt, ButtonGroup as Ze, SvgButton as ve, PluginSetting as $e, LifeCycles as yt, PluginPanel as _t } from "@opentiny/tiny-engine-common";
|
|
5
|
+
import { isEqual as ge, extend as de } from "@opentiny/vue-renderless/common/object";
|
|
6
|
+
import { Checkbox as Dt, CollapseItem as Ie, Collapse as Ee, Button as et, Input as tt, Popover as ht, Search as St, Radio as vt, Select as Ct, FormItem as bt, Form as Ft } from "@opentiny/vue";
|
|
7
|
+
import { constants as we } from "@opentiny/tiny-engine-utils";
|
|
8
|
+
import { isVsCodeEnv as Nt } from "@opentiny/tiny-engine-common/js/environments";
|
|
9
|
+
import { handlePageUpdate as at } from "@opentiny/tiny-engine-common/js/http";
|
|
10
|
+
import { generatePage as It } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
|
|
11
|
+
import { previewPage as Et } from "@opentiny/tiny-engine-common/js/preview";
|
|
12
|
+
import wt from "@opentiny/vue-renderless/common/deps/throttle";
|
|
13
|
+
import { IconSearch as Tt, IconFolderClosed as kt, IconFolderOpened as Bt, iconFile as Ot } from "@opentiny/vue-icon";
|
|
14
|
+
import { getCanvasStatus as nt } from "@opentiny/tiny-engine-common/js/canvas";
|
|
15
|
+
import { REGEXP_ROUTE as je, REGEXP_FOLDER_NAME as xt, REGEXP_PAGE_NAME as At } from "@opentiny/tiny-engine-common/js/verification";
|
|
16
|
+
const Gt = (t) => G(V.Http).get(`/app-center/api/pages/list/${t}`), Te = (t) => G(V.Http).get(`/app-center/api/pages/detail/${t}`), Vt = (t) => G(V.Http).get(`/app-center/api/pages/delete/${t}`), Rt = (t) => G(V.Http).post("/app-center/api/pages/create", t), ot = (t, a) => G(V.Http).post(`/app-center/api/pages/update/${t}`, a), Mt = (t) => G(V.Http).post("/app-center/api/pages/copy", t), st = (t) => G(V.Http).get(`/app-center/api/pages/histories?page=${t}`), Lt = (t) => G(V.Http).post("/app-center/api/pageHistory/restore", t), Ht = (t) => G(V.Http).get(`/app-center/api/pages/histories/${t}`), Ut = (t, a) => G(V.Http).post(`/app-center/api/pages/update/${t}`, a), ce = {
|
|
17
|
+
fetchPageList: Gt,
|
|
18
|
+
fetchPageDetail: Te,
|
|
19
|
+
requestDeletePage: Vt,
|
|
20
|
+
requestCreatePage: Rt,
|
|
21
|
+
requestCopyPage: Mt,
|
|
22
|
+
fetchPageHistory: st,
|
|
23
|
+
fetchHistoryDetail: Ht,
|
|
24
|
+
handleRouteHomeUpdate: ot,
|
|
25
|
+
requestRestorePageHistory: Lt,
|
|
26
|
+
requestUpdatePage: Ut
|
|
27
|
+
}, qt = {
|
|
33
28
|
components: {
|
|
34
|
-
BlockHistoryList:
|
|
29
|
+
BlockHistoryList: mt
|
|
35
30
|
},
|
|
36
31
|
props: {
|
|
37
32
|
curPageData: {
|
|
@@ -40,91 +35,96 @@ const Ot = (a) => G(B.Http).get(`/app-center/api/pages/list/${a}`), Ee = (a) =>
|
|
|
40
35
|
}
|
|
41
36
|
},
|
|
42
37
|
emits: ["restorePage"],
|
|
43
|
-
setup(
|
|
44
|
-
const { pageSettingState: n, getFamily: e } =
|
|
45
|
-
const { id:
|
|
46
|
-
y ?
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}), r.value =
|
|
38
|
+
setup(t, { emit: a }) {
|
|
39
|
+
const { pageSettingState: n, getFamily: e } = Y(), { getDateFromNow: o } = gt(), { confirm: s } = oe(), r = K([]), c = (y) => {
|
|
40
|
+
const { id: m, version: h } = G(V.GlobalService).getBaseInfo(), f = h ? `&app=${m}&version=${h}` : "";
|
|
41
|
+
y ? st(y + f).then((b) => {
|
|
42
|
+
b && (b.forEach((w) => {
|
|
43
|
+
w.backupTitle = w.message, w.backupTime = o(new Date(w.time));
|
|
44
|
+
}), r.value = b.reverse());
|
|
50
45
|
}) : r.value = [];
|
|
51
46
|
};
|
|
52
|
-
return
|
|
53
|
-
var
|
|
54
|
-
const y = ((
|
|
47
|
+
return Se(() => {
|
|
48
|
+
var m;
|
|
49
|
+
const y = ((m = n.currentPageData) == null ? void 0 : m.id) || "";
|
|
55
50
|
c(y);
|
|
56
51
|
}), {
|
|
57
52
|
list: r,
|
|
58
53
|
previewHistory: async (y) => {
|
|
59
|
-
var
|
|
54
|
+
var m, h, f, b;
|
|
60
55
|
if (y) {
|
|
61
|
-
const
|
|
56
|
+
const w = (h = (m = G(V.ThemeSwitch)) == null ? void 0 : m.getThemeState()) == null ? void 0 : h.theme, O = {
|
|
62
57
|
id: Number(y.page),
|
|
63
58
|
history: y.id,
|
|
64
|
-
framework: (
|
|
65
|
-
platform: (
|
|
59
|
+
framework: (f = Ue("engine.config")) == null ? void 0 : f.dslMode,
|
|
60
|
+
platform: (b = Ue("engine.config")) == null ? void 0 : b.platformId,
|
|
66
61
|
pageInfo: {
|
|
67
62
|
name: y.name,
|
|
68
63
|
schema: y.page_content
|
|
69
64
|
},
|
|
70
|
-
theme:
|
|
65
|
+
theme: w
|
|
71
66
|
};
|
|
72
|
-
|
|
67
|
+
O.ancestors = await e(O), Et(O);
|
|
73
68
|
}
|
|
74
69
|
},
|
|
75
70
|
restoreHistory: (y) => {
|
|
76
|
-
|
|
71
|
+
s({
|
|
77
72
|
title: "提示",
|
|
78
73
|
message: "您即将还原历史页面,是否继续还原?",
|
|
79
74
|
exec: () => {
|
|
80
|
-
|
|
75
|
+
a("restorePage", y);
|
|
81
76
|
}
|
|
82
77
|
});
|
|
83
78
|
}
|
|
84
79
|
};
|
|
85
80
|
}
|
|
81
|
+
}, Z = (t, a) => {
|
|
82
|
+
const n = t.__vccOpts || t;
|
|
83
|
+
for (const [e, o] of a)
|
|
84
|
+
n[e] = o;
|
|
85
|
+
return n;
|
|
86
86
|
};
|
|
87
|
-
function
|
|
88
|
-
const r =
|
|
87
|
+
function jt(t, a, n, e, o, s) {
|
|
88
|
+
const r = D("block-history-list");
|
|
89
89
|
return v(), H(r, {
|
|
90
90
|
history: e.list,
|
|
91
91
|
onPreview: e.previewHistory,
|
|
92
92
|
onRestore: e.restoreHistory
|
|
93
93
|
}, null, 8, ["history", "onPreview", "onRestore"]);
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const Jt = /* @__PURE__ */ Z(qt, [["render", jt]]), Kt = {
|
|
96
96
|
components: {
|
|
97
|
-
MetaCodeEditor:
|
|
98
|
-
TinyCheckbox:
|
|
97
|
+
MetaCodeEditor: Pt,
|
|
98
|
+
TinyCheckbox: Dt
|
|
99
99
|
},
|
|
100
100
|
setup() {
|
|
101
|
-
const
|
|
102
|
-
return
|
|
103
|
-
var c,
|
|
104
|
-
|
|
101
|
+
const t = K(""), a = K(""), { pageSettingState: n } = Y(), e = z(() => n.currentPageData);
|
|
102
|
+
return Se(() => {
|
|
103
|
+
var c, g;
|
|
104
|
+
t.value = ((c = n.currentPageData.page_content) == null ? void 0 : c.inputs) || "", a.value = ((g = n.currentPageData.page_content) == null ? void 0 : g.outputs) || "";
|
|
105
105
|
}), {
|
|
106
|
-
inputValue:
|
|
107
|
-
outputValue:
|
|
106
|
+
inputValue: t,
|
|
107
|
+
outputValue: a,
|
|
108
108
|
saveInputValue: (c) => {
|
|
109
109
|
try {
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
} catch (
|
|
110
|
+
const g = JSON.parse(c.content);
|
|
111
|
+
t.value = c.content, e.value.page_content.inputs = g;
|
|
112
|
+
} catch (g) {
|
|
113
113
|
M({
|
|
114
114
|
title: "输入配置保存失败(必须符合JSON格式)",
|
|
115
|
-
message: `${(
|
|
115
|
+
message: `${(g == null ? void 0 : g.message) || g}`,
|
|
116
116
|
type: "error"
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
saveOutputValue: (c) => {
|
|
121
121
|
try {
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
} catch (
|
|
122
|
+
const g = JSON.parse(c.content);
|
|
123
|
+
a.value = c.content, e.value.page_content.outputs = g;
|
|
124
|
+
} catch (g) {
|
|
125
125
|
M({
|
|
126
126
|
title: "输出配置保存失败(必须符合JSON格式)",
|
|
127
|
-
message: `${(
|
|
127
|
+
message: `${(g == null ? void 0 : g.message) || g}`,
|
|
128
128
|
type: "error"
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -133,11 +133,11 @@ const Ut = /* @__PURE__ */ te(Mt, [["render", Ht]]), Lt = {
|
|
|
133
133
|
hasContent: (c) => Array.isArray(c) && c.length > 0 || typeof c == "object" && Object.keys(c).length > 0
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
},
|
|
137
|
-
function
|
|
138
|
-
const r =
|
|
139
|
-
return v(), U("div",
|
|
140
|
-
|
|
136
|
+
}, Wt = { class: "input-or-output" };
|
|
137
|
+
function Xt(t, a, n, e, o, s) {
|
|
138
|
+
const r = D("svg-icon"), c = D("meta-code-editor"), g = D("tiny-checkbox");
|
|
139
|
+
return v(), U("div", Wt, [
|
|
140
|
+
p(c, {
|
|
141
141
|
modelValue: e.inputValue,
|
|
142
142
|
title: "输入配置",
|
|
143
143
|
"button-text": "输入配置",
|
|
@@ -146,16 +146,16 @@ function jt(a, t, n, e, s, o) {
|
|
|
146
146
|
single: "",
|
|
147
147
|
onSave: e.saveInputValue
|
|
148
148
|
}, {
|
|
149
|
-
icon:
|
|
150
|
-
|
|
149
|
+
icon: C(() => [
|
|
150
|
+
p(r, {
|
|
151
151
|
class: "edit-btn-icon",
|
|
152
152
|
name: "to-edit"
|
|
153
153
|
})
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
156
|
}, 8, ["modelValue", "buttonShowContent", "onSave"]),
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
a[2] || (a[2] = A("div", { class: "input-output-tips" }, "传递给页面的参数(类似组件的输入属性)", -1)),
|
|
158
|
+
p(c, {
|
|
159
159
|
modelValue: e.outputValue,
|
|
160
160
|
title: "输出配置",
|
|
161
161
|
"button-text": "输出配置",
|
|
@@ -164,60 +164,60 @@ function jt(a, t, n, e, s, o) {
|
|
|
164
164
|
single: "",
|
|
165
165
|
onSave: e.saveOutputValue
|
|
166
166
|
}, {
|
|
167
|
-
icon:
|
|
168
|
-
|
|
167
|
+
icon: C(() => [
|
|
168
|
+
p(r, {
|
|
169
169
|
class: "edit-btn-icon",
|
|
170
170
|
name: "to-edit"
|
|
171
171
|
})
|
|
172
172
|
]),
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["modelValue", "buttonShowContent", "onSave"]),
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
a[3] || (a[3] = A("div", { class: "input-output-div" }, "页面传递出的事件(类似组件触发的输出事件)", -1)),
|
|
176
|
+
p(g, {
|
|
177
177
|
class: "selectHome",
|
|
178
178
|
modelValue: e.pageSettingState.currentPageData.isBody,
|
|
179
|
-
"onUpdate:modelValue":
|
|
179
|
+
"onUpdate:modelValue": a[0] || (a[0] = (I) => e.pageSettingState.currentPageData.isBody = I)
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
182
|
-
|
|
181
|
+
default: C(() => a[1] || (a[1] = [
|
|
182
|
+
A("span", null, "设为根元素为Body", -1)
|
|
183
183
|
])),
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["modelValue"]),
|
|
186
|
-
|
|
186
|
+
a[4] || (a[4] = A("div", { class: "input-output-div" }, "默认为div", -1))
|
|
187
187
|
]);
|
|
188
188
|
}
|
|
189
|
-
const
|
|
189
|
+
const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b"]]), pe = {
|
|
190
190
|
id: "engine.plugins.appmanage",
|
|
191
191
|
title: "页面",
|
|
192
192
|
type: "plugins",
|
|
193
193
|
icon: "plugin-icon-page",
|
|
194
|
-
align: "
|
|
194
|
+
align: "leftTop"
|
|
195
195
|
}, {
|
|
196
|
-
COMPONENT_NAME:
|
|
197
|
-
} =
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
|
|
196
|
+
COMPONENT_NAME: Qt
|
|
197
|
+
} = we, ke = K(!1), ye = () => {
|
|
198
|
+
ke.value = !0;
|
|
199
|
+
}, Q = () => {
|
|
200
|
+
ke.value = !1;
|
|
201
201
|
const {
|
|
202
|
-
resetPageData:
|
|
203
|
-
} =
|
|
204
|
-
|
|
205
|
-
},
|
|
202
|
+
resetPageData: t
|
|
203
|
+
} = Y();
|
|
204
|
+
t();
|
|
205
|
+
}, Je = {
|
|
206
206
|
general: "general",
|
|
207
207
|
inputOutput: "inputOutput",
|
|
208
208
|
lifeCycles: "lifeCycles",
|
|
209
209
|
history: "history"
|
|
210
|
-
},
|
|
210
|
+
}, Yt = {
|
|
211
211
|
components: {
|
|
212
|
-
TinyButton:
|
|
213
|
-
TinyCollapse:
|
|
214
|
-
TinyCollapseItem:
|
|
215
|
-
PageInputOutput:
|
|
216
|
-
LifeCycles:
|
|
217
|
-
PageHistory:
|
|
218
|
-
PluginSetting:
|
|
219
|
-
SvgButton:
|
|
220
|
-
ButtonGroup:
|
|
212
|
+
TinyButton: et,
|
|
213
|
+
TinyCollapse: Ee,
|
|
214
|
+
TinyCollapseItem: Ie,
|
|
215
|
+
PageInputOutput: zt,
|
|
216
|
+
LifeCycles: yt,
|
|
217
|
+
PageHistory: Jt,
|
|
218
|
+
PluginSetting: $e,
|
|
219
|
+
SvgButton: ve,
|
|
220
|
+
ButtonGroup: Ze
|
|
221
221
|
},
|
|
222
222
|
props: {
|
|
223
223
|
isFolder: {
|
|
@@ -226,179 +226,200 @@ const Jt = /* @__PURE__ */ te(Lt, [["render", jt], ["__scopeId", "data-v-093962c
|
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
emits: ["openNewPage"],
|
|
229
|
-
setup(
|
|
230
|
-
emit:
|
|
229
|
+
setup(t, {
|
|
230
|
+
emit: a
|
|
231
231
|
}) {
|
|
232
|
-
var
|
|
232
|
+
var me;
|
|
233
233
|
const {
|
|
234
234
|
requestCreatePage: n,
|
|
235
235
|
requestDeletePage: e
|
|
236
236
|
} = ce, {
|
|
237
|
-
getDefaultPage:
|
|
238
|
-
pageSettingState:
|
|
237
|
+
getDefaultPage: o,
|
|
238
|
+
pageSettingState: s,
|
|
239
239
|
changeTreeData: r,
|
|
240
240
|
isCurrentDataSame: c,
|
|
241
|
-
initCurrentPageData:
|
|
242
|
-
isTemporaryPage:
|
|
241
|
+
initCurrentPageData: g,
|
|
242
|
+
isTemporaryPage: I,
|
|
243
243
|
STATIC_PAGE_GROUP_ID: y
|
|
244
|
-
} =
|
|
245
|
-
pageState:
|
|
246
|
-
initData:
|
|
247
|
-
} =
|
|
248
|
-
confirm:
|
|
249
|
-
} =
|
|
250
|
-
|
|
244
|
+
} = Y(), {
|
|
245
|
+
pageState: m,
|
|
246
|
+
initData: h
|
|
247
|
+
} = se(), {
|
|
248
|
+
confirm: f
|
|
249
|
+
} = oe(), b = Ye(pe.type, pe.id), w = b.components.PageGeneral, O = (me = b == null ? void 0 : b.options) == null ? void 0 : me.beforeCreatePage, R = K(null), {
|
|
250
|
+
PLUGIN_NAME: J,
|
|
251
|
+
getPluginByLayout: d
|
|
252
|
+
} = ne(), P = z(() => d(J.AppManage)), l = ee({
|
|
253
|
+
activeName: Object.values(Je),
|
|
251
254
|
title: "页面设置",
|
|
252
255
|
historyMessage: ""
|
|
253
|
-
}),
|
|
254
|
-
|
|
256
|
+
}), u = () => {
|
|
257
|
+
ge(s.currentPageData, s.currentPageDataCopy) ? Q() : f({
|
|
255
258
|
title: "提示",
|
|
256
259
|
message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
|
|
257
260
|
exec: () => {
|
|
258
|
-
|
|
261
|
+
s.isNew || (r(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy)), Q();
|
|
259
262
|
}
|
|
260
263
|
});
|
|
261
|
-
},
|
|
264
|
+
}, N = async () => {
|
|
262
265
|
const {
|
|
263
|
-
page_content:
|
|
264
|
-
...
|
|
265
|
-
} =
|
|
266
|
-
page_content:
|
|
267
|
-
...
|
|
268
|
-
} =
|
|
269
|
-
...
|
|
270
|
-
...
|
|
266
|
+
page_content: k,
|
|
267
|
+
...T
|
|
268
|
+
} = o(), {
|
|
269
|
+
page_content: B,
|
|
270
|
+
...i
|
|
271
|
+
} = s.currentPageData, _ = {
|
|
272
|
+
...T,
|
|
273
|
+
...i,
|
|
271
274
|
page_content: {
|
|
272
|
-
...
|
|
273
|
-
...
|
|
274
|
-
fileName:
|
|
275
|
+
...k,
|
|
276
|
+
...B,
|
|
277
|
+
fileName: s.currentPageData.name
|
|
275
278
|
},
|
|
276
|
-
app: G(
|
|
279
|
+
app: G(V.GlobalService).getBaseInfo().id,
|
|
277
280
|
isPage: !0
|
|
278
281
|
};
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
_.id && (delete _.id, delete _._id), O && await O(_), n(_).then((S) => {
|
|
283
|
+
s.updateTreeData(), s.isNew = !1, I.saved = !1, a("openNewPage", S), Q(), ne().closePlugin(), M({
|
|
281
284
|
type: "success",
|
|
282
285
|
message: "新建页面成功!"
|
|
283
|
-
}),
|
|
284
|
-
}).catch((
|
|
286
|
+
}), Nt && It(S);
|
|
287
|
+
}).catch((S) => {
|
|
285
288
|
M({
|
|
286
289
|
type: "error",
|
|
287
290
|
title: "新建页面失败",
|
|
288
|
-
message: JSON.stringify((
|
|
291
|
+
message: JSON.stringify((S == null ? void 0 : S.message) || S)
|
|
289
292
|
});
|
|
290
293
|
});
|
|
291
|
-
},
|
|
294
|
+
}, F = (k, T, B = !0) => {
|
|
292
295
|
var L;
|
|
293
|
-
const
|
|
294
|
-
return
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
296
|
+
const i = s.currentPageDataCopy.route !== s.currentPageData.route, _ = ((L = m == null ? void 0 : m.currentPage) == null ? void 0 : L.id) === k;
|
|
297
|
+
return at({
|
|
298
|
+
id: k,
|
|
299
|
+
params: T,
|
|
300
|
+
routerChange: i,
|
|
301
|
+
isCurEditPage: _,
|
|
302
|
+
isUpdateTree: B
|
|
303
|
+
});
|
|
304
|
+
}, q = (k) => {
|
|
305
|
+
k.id = k.page, ["page", "backupTime", "backupTitle", "time"].forEach((i) => delete k[i]);
|
|
306
|
+
const B = {
|
|
307
|
+
...s.currentPageData,
|
|
308
|
+
...k,
|
|
300
309
|
message: "还原页面"
|
|
301
310
|
};
|
|
302
|
-
|
|
303
|
-
var
|
|
304
|
-
((
|
|
311
|
+
F(k.id, B).then((i) => {
|
|
312
|
+
var _;
|
|
313
|
+
((_ = m == null ? void 0 : m.currentPage) == null ? void 0 : _.id) === (i == null ? void 0 : i.id) && h(i.page_content, i);
|
|
305
314
|
});
|
|
306
|
-
},
|
|
315
|
+
}, x = async () => {
|
|
307
316
|
const {
|
|
308
|
-
id:
|
|
309
|
-
name:
|
|
310
|
-
page_content:
|
|
311
|
-
} =
|
|
312
|
-
...
|
|
317
|
+
id: k,
|
|
318
|
+
name: T,
|
|
319
|
+
page_content: B
|
|
320
|
+
} = s.currentPageData, i = {
|
|
321
|
+
...s.currentPageData,
|
|
313
322
|
page_content: {
|
|
314
|
-
...
|
|
315
|
-
fileName:
|
|
323
|
+
...B,
|
|
324
|
+
fileName: T
|
|
316
325
|
}
|
|
317
|
-
},
|
|
318
|
-
|
|
319
|
-
},
|
|
320
|
-
if (!
|
|
326
|
+
}, _ = await F(k, i);
|
|
327
|
+
g(_);
|
|
328
|
+
}, re = (k) => {
|
|
329
|
+
if (!k)
|
|
321
330
|
return;
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
...
|
|
325
|
-
...
|
|
331
|
+
const T = s.currentPageData.page_content;
|
|
332
|
+
T.lifeCycles = {
|
|
333
|
+
...T.lifeCycles || {},
|
|
334
|
+
...k
|
|
326
335
|
};
|
|
327
|
-
},
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
},
|
|
331
|
-
c() ?
|
|
336
|
+
}, $ = () => {
|
|
337
|
+
const k = s.currentPageData, T = de(!0, {}, k);
|
|
338
|
+
s.isNew = !0, T.name = `${T.name}Copy`, T.route = `${T.route}Copy`, s.currentPageData = T, s.currentPageDataCopy = de(!0, {}, T), s.defaultPage = null;
|
|
339
|
+
}, te = () => {
|
|
340
|
+
c() ? $() : f({
|
|
332
341
|
title: "提示",
|
|
333
342
|
message: "您即将复制的页面有更改未保存,是否确定跳过更改直接复制?",
|
|
334
343
|
exec: () => {
|
|
335
|
-
r(
|
|
344
|
+
r(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy), $();
|
|
336
345
|
}
|
|
337
346
|
});
|
|
338
|
-
},
|
|
339
|
-
|
|
347
|
+
}, fe = async () => {
|
|
348
|
+
var T;
|
|
349
|
+
const k = {
|
|
350
|
+
...s.defaultPage,
|
|
351
|
+
isDefault: !0
|
|
352
|
+
};
|
|
353
|
+
F((T = s.defaultPage) == null ? void 0 : T.id, k, !1).then((B) => {
|
|
354
|
+
B && x();
|
|
355
|
+
});
|
|
356
|
+
}, Ae = () => {
|
|
357
|
+
s.isNew ? (s.currentPageData.message = "Page auto save", N()) : f({
|
|
340
358
|
title: "创建历史备份信息",
|
|
341
359
|
message: {
|
|
342
|
-
render: () =>
|
|
360
|
+
render: () => p(tt, {
|
|
343
361
|
placeholder: "历史备份信息",
|
|
344
|
-
modelValue:
|
|
345
|
-
"onUpdate:modelValue": (
|
|
362
|
+
modelValue: l.historyMessage,
|
|
363
|
+
"onUpdate:modelValue": (i) => l.historyMessage = i
|
|
346
364
|
}, null)
|
|
347
365
|
},
|
|
348
366
|
exec: () => {
|
|
349
|
-
|
|
367
|
+
var i;
|
|
368
|
+
s.currentPageData.message = l.historyMessage.trim() || "Page auto save", (i = s.defaultPage) != null && i.id ? fe() : x(), l.historyMessage = "";
|
|
350
369
|
}
|
|
351
370
|
});
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
if (!Array.isArray(
|
|
371
|
+
}, Ge = () => {
|
|
372
|
+
R.value.validGeneralForm().then(Ae);
|
|
373
|
+
}, le = (k = []) => {
|
|
374
|
+
if (!Array.isArray(k))
|
|
356
375
|
return [];
|
|
357
|
-
const
|
|
358
|
-
return
|
|
359
|
-
var
|
|
360
|
-
if (
|
|
361
|
-
|
|
376
|
+
const T = [];
|
|
377
|
+
return k.forEach((B) => {
|
|
378
|
+
var i;
|
|
379
|
+
if (B != null && B.isPage) {
|
|
380
|
+
T.push(B);
|
|
362
381
|
return;
|
|
363
382
|
}
|
|
364
|
-
!(
|
|
365
|
-
}),
|
|
383
|
+
!(B != null && B.isPage) && ((i = B == null ? void 0 : B.children) != null && i.length) && T.push(...le(B.children));
|
|
384
|
+
}), T;
|
|
366
385
|
};
|
|
367
386
|
return {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
387
|
+
align: P,
|
|
388
|
+
PLUGIN_NAME: J,
|
|
389
|
+
state: l,
|
|
390
|
+
isShow: ke,
|
|
391
|
+
savePageSetting: Ge,
|
|
392
|
+
copyPage: te,
|
|
393
|
+
pageSettingState: s,
|
|
394
|
+
pageGeneral: w,
|
|
395
|
+
pageGeneralRef: R,
|
|
375
396
|
deletePage: () => {
|
|
376
|
-
var
|
|
377
|
-
if ((
|
|
397
|
+
var k, T;
|
|
398
|
+
if ((T = (k = s.treeDataMapping[s.currentPageData.id]) == null ? void 0 : k.children) != null && T.length) {
|
|
378
399
|
M({
|
|
379
400
|
type: "error",
|
|
380
401
|
message: "此页面存在子页面或子文件夹,不能删除!"
|
|
381
402
|
});
|
|
382
403
|
return;
|
|
383
404
|
}
|
|
384
|
-
|
|
405
|
+
f({
|
|
385
406
|
title: "提示",
|
|
386
407
|
message: "您是否要删除页面?",
|
|
387
408
|
exec: () => {
|
|
388
|
-
var
|
|
389
|
-
const
|
|
390
|
-
e(
|
|
391
|
-
|
|
392
|
-
var
|
|
393
|
-
if (((
|
|
409
|
+
var i;
|
|
410
|
+
const B = ((i = s.currentPageData) == null ? void 0 : i.id) || "";
|
|
411
|
+
e(B).then(() => {
|
|
412
|
+
s.updateTreeData().then((_) => {
|
|
413
|
+
var ue, Me;
|
|
414
|
+
if (((ue = m == null ? void 0 : m.currentPage) == null ? void 0 : ue.id) !== B)
|
|
394
415
|
return;
|
|
395
|
-
const
|
|
396
|
-
groupId:
|
|
397
|
-
}) =>
|
|
398
|
-
componentName:
|
|
416
|
+
const S = ((Me = (_ || []).find(({
|
|
417
|
+
groupId: Fe
|
|
418
|
+
}) => Fe === y)) == null ? void 0 : Me.data) || [], L = le(S), W = L.find((Fe) => Fe.isHome), be = L == null ? void 0 : L[0], Re = {
|
|
419
|
+
componentName: Qt.Page
|
|
399
420
|
};
|
|
400
|
-
|
|
401
|
-
}),
|
|
421
|
+
a("openNewPage", W || be || Re);
|
|
422
|
+
}), Q(), M({
|
|
402
423
|
message: "删除页面成功!",
|
|
403
424
|
type: "success"
|
|
404
425
|
});
|
|
@@ -411,30 +432,32 @@ const Jt = /* @__PURE__ */ te(Lt, [["render", jt], ["__scopeId", "data-v-093962c
|
|
|
411
432
|
}
|
|
412
433
|
});
|
|
413
434
|
},
|
|
414
|
-
cancelPageSetting:
|
|
415
|
-
closePageSettingPanel:
|
|
416
|
-
updatePageLifeCycles:
|
|
417
|
-
restorePage:
|
|
418
|
-
PAGE_SETTING_SESSION:
|
|
435
|
+
cancelPageSetting: u,
|
|
436
|
+
closePageSettingPanel: Q,
|
|
437
|
+
updatePageLifeCycles: re,
|
|
438
|
+
restorePage: q,
|
|
439
|
+
PAGE_SETTING_SESSION: Je
|
|
419
440
|
};
|
|
420
441
|
}
|
|
421
|
-
},
|
|
422
|
-
function
|
|
423
|
-
const r =
|
|
424
|
-
return e.isShow ? (v(), H(
|
|
442
|
+
}, Zt = { class: "page-setting-content" }, $t = { class: "life-cycles-container" };
|
|
443
|
+
function ea(t, a, n, e, o, s) {
|
|
444
|
+
const r = D("tiny-button"), c = D("svg-button"), g = D("button-group"), I = D("tiny-collapse-item"), y = D("page-input-output"), m = D("life-cycles"), h = D("page-history"), f = D("tiny-collapse"), b = D("plugin-setting");
|
|
445
|
+
return e.isShow ? (v(), H(b, {
|
|
425
446
|
key: 0,
|
|
447
|
+
"fixed-name": e.PLUGIN_NAME.AppManage,
|
|
448
|
+
align: e.align,
|
|
426
449
|
title: e.state.title,
|
|
427
450
|
class: "page-plugin-setting"
|
|
428
451
|
}, {
|
|
429
|
-
header:
|
|
430
|
-
|
|
431
|
-
default:
|
|
432
|
-
|
|
452
|
+
header: C(() => [
|
|
453
|
+
p(g, null, {
|
|
454
|
+
default: C(() => [
|
|
455
|
+
p(r, {
|
|
433
456
|
type: "primary",
|
|
434
457
|
onClick: e.savePageSetting
|
|
435
458
|
}, {
|
|
436
|
-
default:
|
|
437
|
-
|
|
459
|
+
default: C(() => a[1] || (a[1] = [
|
|
460
|
+
_e("保存")
|
|
438
461
|
])),
|
|
439
462
|
_: 1
|
|
440
463
|
}, 8, ["onClick"]),
|
|
@@ -451,7 +474,7 @@ function Qt(a, t, n, e, s, o) {
|
|
|
451
474
|
tips: "删除页面",
|
|
452
475
|
onClick: e.deletePage
|
|
453
476
|
}, null, 8, ["onClick"])),
|
|
454
|
-
|
|
477
|
+
p(c, {
|
|
455
478
|
name: "close",
|
|
456
479
|
onClick: e.cancelPageSetting
|
|
457
480
|
}, null, 8, ["onClick"])
|
|
@@ -459,49 +482,49 @@ function Qt(a, t, n, e, s, o) {
|
|
|
459
482
|
_: 1
|
|
460
483
|
})
|
|
461
484
|
]),
|
|
462
|
-
content:
|
|
463
|
-
|
|
464
|
-
|
|
485
|
+
content: C(() => [
|
|
486
|
+
A("div", Zt, [
|
|
487
|
+
p(f, {
|
|
465
488
|
modelValue: e.state.activeName,
|
|
466
|
-
"onUpdate:modelValue":
|
|
489
|
+
"onUpdate:modelValue": a[0] || (a[0] = (w) => e.state.activeName = w),
|
|
467
490
|
class: "page-setting-collapse"
|
|
468
491
|
}, {
|
|
469
|
-
default:
|
|
470
|
-
|
|
492
|
+
default: C(() => [
|
|
493
|
+
p(I, {
|
|
471
494
|
title: "基本设置",
|
|
472
495
|
name: e.PAGE_SETTING_SESSION.general
|
|
473
496
|
}, {
|
|
474
|
-
default:
|
|
475
|
-
(v(), H(
|
|
497
|
+
default: C(() => [
|
|
498
|
+
(v(), H(ze(e.pageGeneral), {
|
|
476
499
|
ref: "pageGeneralRef",
|
|
477
500
|
isFolder: n.isFolder
|
|
478
501
|
}, null, 8, ["isFolder"]))
|
|
479
502
|
]),
|
|
480
503
|
_: 1
|
|
481
504
|
}, 8, ["name"]),
|
|
482
|
-
e.pageSettingState.currentPageData.group !== "public" ? (v(), H(
|
|
505
|
+
e.pageSettingState.currentPageData.group !== "public" ? (v(), H(I, {
|
|
483
506
|
key: 0,
|
|
484
507
|
class: "base-setting",
|
|
485
508
|
title: "输入输出",
|
|
486
509
|
name: e.PAGE_SETTING_SESSION.inputOutput
|
|
487
510
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
|
|
511
|
+
default: C(() => [
|
|
512
|
+
p(y)
|
|
490
513
|
]),
|
|
491
514
|
_: 1
|
|
492
515
|
}, 8, ["name"])) : j("", !0),
|
|
493
|
-
e.pageSettingState.currentPageData.group !== "public" ? (v(), H(
|
|
516
|
+
e.pageSettingState.currentPageData.group !== "public" ? (v(), H(I, {
|
|
494
517
|
key: 1,
|
|
495
518
|
class: "input-output",
|
|
496
519
|
title: "页面生命周期配置",
|
|
497
520
|
name: e.PAGE_SETTING_SESSION.lifeCycles
|
|
498
521
|
}, {
|
|
499
|
-
default:
|
|
500
|
-
var
|
|
522
|
+
default: C(() => {
|
|
523
|
+
var w;
|
|
501
524
|
return [
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
bindLifeCycles: (
|
|
525
|
+
A("div", $t, [
|
|
526
|
+
p(m, {
|
|
527
|
+
bindLifeCycles: (w = e.pageSettingState.currentPageData.page_content) == null ? void 0 : w.lifeCycles,
|
|
505
528
|
onUpdatePageLifeCycles: e.updatePageLifeCycles
|
|
506
529
|
}, null, 8, ["bindLifeCycles", "onUpdatePageLifeCycles"])
|
|
507
530
|
])
|
|
@@ -509,13 +532,13 @@ function Qt(a, t, n, e, s, o) {
|
|
|
509
532
|
}),
|
|
510
533
|
_: 1
|
|
511
534
|
}, 8, ["name"])) : j("", !0),
|
|
512
|
-
|
|
535
|
+
p(I, {
|
|
513
536
|
class: "history-source",
|
|
514
537
|
title: "历史备份",
|
|
515
538
|
name: e.PAGE_SETTING_SESSION.history
|
|
516
539
|
}, {
|
|
517
|
-
default:
|
|
518
|
-
|
|
540
|
+
default: C(() => [
|
|
541
|
+
p(h, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
|
|
519
542
|
]),
|
|
520
543
|
_: 1
|
|
521
544
|
}, 8, ["name"])
|
|
@@ -525,24 +548,22 @@ function Qt(a, t, n, e, s, o) {
|
|
|
525
548
|
])
|
|
526
549
|
]),
|
|
527
550
|
_: 1
|
|
528
|
-
}, 8, ["title"])) : j("", !0);
|
|
551
|
+
}, 8, ["fixed-name", "align", "title"])) : j("", !0);
|
|
529
552
|
}
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
a();
|
|
538
|
-
}, Zt = {
|
|
553
|
+
const ta = /* @__PURE__ */ Z(Yt, [["render", ea], ["__scopeId", "data-v-6f00bed2"]]), Be = K(!1), Ke = () => {
|
|
554
|
+
Be.value = !0;
|
|
555
|
+
}, X = () => {
|
|
556
|
+
Be.value = !1;
|
|
557
|
+
const { resetPageData: t } = Y();
|
|
558
|
+
t();
|
|
559
|
+
}, aa = {
|
|
539
560
|
components: {
|
|
540
|
-
TinyButton:
|
|
541
|
-
TinyCollapse:
|
|
542
|
-
TinyCollapseItem:
|
|
543
|
-
PluginSetting:
|
|
544
|
-
SvgButton:
|
|
545
|
-
ButtonGroup:
|
|
561
|
+
TinyButton: et,
|
|
562
|
+
TinyCollapse: Ee,
|
|
563
|
+
TinyCollapseItem: Ie,
|
|
564
|
+
PluginSetting: $e,
|
|
565
|
+
SvgButton: ve,
|
|
566
|
+
ButtonGroup: Ze
|
|
546
567
|
},
|
|
547
568
|
props: {
|
|
548
569
|
isFolder: {
|
|
@@ -551,59 +572,61 @@ const Le = () => {
|
|
|
551
572
|
}
|
|
552
573
|
},
|
|
553
574
|
setup() {
|
|
554
|
-
const
|
|
575
|
+
const t = ee({
|
|
555
576
|
activeName: ["folderGeneralRef"],
|
|
556
577
|
title: "文件夹设置"
|
|
557
|
-
}), { requestCreatePage:
|
|
558
|
-
|
|
578
|
+
}), { requestCreatePage: a, requestUpdatePage: n, requestDeletePage: e } = ce, { pageSettingState: o, changeTreeData: s } = Y(), { confirm: r } = oe(), g = Ye(pe.type, pe.id).components.PageGeneral, I = K(null), { PLUGIN_NAME: y, getPluginByLayout: m } = ne(), h = z(() => m(y.AppManage)), f = () => {
|
|
579
|
+
ge(o.currentPageData, o.currentPageDataCopy) ? X() : r({
|
|
559
580
|
title: "提示",
|
|
560
581
|
message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
|
|
561
582
|
exec: () => {
|
|
562
|
-
|
|
583
|
+
o.isNew || (s(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy)), X();
|
|
563
584
|
}
|
|
564
585
|
});
|
|
565
|
-
},
|
|
566
|
-
const
|
|
567
|
-
...
|
|
568
|
-
app: G(
|
|
586
|
+
}, b = () => {
|
|
587
|
+
const d = {
|
|
588
|
+
...o.currentPageData,
|
|
589
|
+
app: G(V.GlobalService).getBaseInfo().id,
|
|
569
590
|
isPage: !1
|
|
570
591
|
};
|
|
571
|
-
|
|
572
|
-
|
|
592
|
+
a(d).then(() => {
|
|
593
|
+
o.updateTreeData(), o.isNew = !1, X(), M({
|
|
573
594
|
type: "success",
|
|
574
595
|
message: "新建文件夹成功!"
|
|
575
596
|
});
|
|
576
|
-
}).catch((
|
|
597
|
+
}).catch((P) => {
|
|
577
598
|
M({
|
|
578
599
|
type: "error",
|
|
579
600
|
title: "新建文件夹失败",
|
|
580
|
-
message: JSON.stringify((
|
|
601
|
+
message: JSON.stringify((P == null ? void 0 : P.message) || P)
|
|
581
602
|
});
|
|
582
603
|
});
|
|
583
|
-
},
|
|
584
|
-
const { id:
|
|
585
|
-
n(
|
|
586
|
-
|
|
604
|
+
}, w = () => {
|
|
605
|
+
const { id: J } = o.currentPageData;
|
|
606
|
+
n(J, { ...o.currentPageData, page_content: null }).then(() => {
|
|
607
|
+
o.updateTreeData(), o.isNew = !1, X(), M({
|
|
587
608
|
type: "success",
|
|
588
609
|
message: "更新文件夹成功!"
|
|
589
610
|
});
|
|
590
|
-
}).catch((
|
|
611
|
+
}).catch((d) => {
|
|
591
612
|
M({
|
|
592
613
|
type: "error",
|
|
593
614
|
title: "更新文件夹失败",
|
|
594
|
-
message: JSON.stringify((
|
|
615
|
+
message: JSON.stringify((d == null ? void 0 : d.message) || d)
|
|
595
616
|
});
|
|
596
617
|
});
|
|
597
618
|
};
|
|
598
619
|
return {
|
|
620
|
+
align: h,
|
|
621
|
+
PLUGIN_NAME: y,
|
|
599
622
|
saveFolderSetting: () => {
|
|
600
|
-
|
|
601
|
-
|
|
623
|
+
I.value.validGeneralForm().then(() => {
|
|
624
|
+
o.isNew ? b() : w();
|
|
602
625
|
});
|
|
603
626
|
},
|
|
604
|
-
deleteFolder:
|
|
605
|
-
var
|
|
606
|
-
if ((
|
|
627
|
+
deleteFolder: wt(5e3, !0, () => {
|
|
628
|
+
var J, d;
|
|
629
|
+
if ((d = (J = o.treeDataMapping[o.currentPageData.id]) == null ? void 0 : J.children) != null && d.length) {
|
|
607
630
|
M({
|
|
608
631
|
type: "error",
|
|
609
632
|
message: "此文件夹不是空文件夹,不能删除!"
|
|
@@ -614,49 +637,51 @@ const Le = () => {
|
|
|
614
637
|
title: "提示",
|
|
615
638
|
message: "您是否要删除文件夹?",
|
|
616
639
|
exec: () => {
|
|
617
|
-
var
|
|
618
|
-
const
|
|
619
|
-
e(
|
|
620
|
-
|
|
640
|
+
var l;
|
|
641
|
+
const P = ((l = o.currentPageData) == null ? void 0 : l.id) || "";
|
|
642
|
+
e(P).then(() => {
|
|
643
|
+
o.updateTreeData(), X(), M({
|
|
621
644
|
type: "success",
|
|
622
645
|
message: "删除文件夹成功!"
|
|
623
646
|
});
|
|
624
|
-
}).catch((
|
|
647
|
+
}).catch((u) => {
|
|
625
648
|
M({
|
|
626
649
|
type: "success",
|
|
627
650
|
title: "删除文件夹失败!",
|
|
628
|
-
message: JSON.stringify((
|
|
651
|
+
message: JSON.stringify((u == null ? void 0 : u.message) || u)
|
|
629
652
|
});
|
|
630
653
|
});
|
|
631
654
|
}
|
|
632
655
|
});
|
|
633
656
|
}),
|
|
634
|
-
pageGeneral:
|
|
635
|
-
folderGeneralRef:
|
|
636
|
-
closeFolderSettingPanel:
|
|
637
|
-
isShow:
|
|
638
|
-
state:
|
|
639
|
-
pageSettingState:
|
|
640
|
-
closeFolderSetting:
|
|
657
|
+
pageGeneral: g,
|
|
658
|
+
folderGeneralRef: I,
|
|
659
|
+
closeFolderSettingPanel: X,
|
|
660
|
+
isShow: Be,
|
|
661
|
+
state: t,
|
|
662
|
+
pageSettingState: o,
|
|
663
|
+
closeFolderSetting: f
|
|
641
664
|
};
|
|
642
665
|
}
|
|
643
|
-
},
|
|
644
|
-
function
|
|
645
|
-
const r =
|
|
646
|
-
return e.isShow ? (v(), H(
|
|
666
|
+
}, na = { class: "page-setting-content" };
|
|
667
|
+
function oa(t, a, n, e, o, s) {
|
|
668
|
+
const r = D("tiny-button"), c = D("svg-button"), g = D("button-group"), I = D("tiny-collapse-item"), y = D("tiny-collapse"), m = D("plugin-setting");
|
|
669
|
+
return e.isShow ? (v(), H(m, {
|
|
647
670
|
key: 0,
|
|
671
|
+
"fixed-name": e.PLUGIN_NAME.AppManage,
|
|
672
|
+
align: e.align,
|
|
648
673
|
title: e.state.title,
|
|
649
674
|
class: "pageFolder-plugin-setting"
|
|
650
675
|
}, {
|
|
651
|
-
header:
|
|
652
|
-
|
|
653
|
-
default:
|
|
654
|
-
|
|
676
|
+
header: C(() => [
|
|
677
|
+
p(g, null, {
|
|
678
|
+
default: C(() => [
|
|
679
|
+
p(r, {
|
|
655
680
|
type: "primary",
|
|
656
681
|
onClick: e.saveFolderSetting
|
|
657
682
|
}, {
|
|
658
|
-
default:
|
|
659
|
-
|
|
683
|
+
default: C(() => a[1] || (a[1] = [
|
|
684
|
+
_e("保存")
|
|
660
685
|
])),
|
|
661
686
|
_: 1
|
|
662
687
|
}, 8, ["onClick"]),
|
|
@@ -667,7 +692,7 @@ function ea(a, t, n, e, s, o) {
|
|
|
667
692
|
tips: "删除",
|
|
668
693
|
onClick: e.deleteFolder
|
|
669
694
|
}, null, 8, ["onClick"])),
|
|
670
|
-
|
|
695
|
+
p(c, {
|
|
671
696
|
class: "close-plugin-setting-icon",
|
|
672
697
|
name: "close",
|
|
673
698
|
onClick: e.closeFolderSetting
|
|
@@ -676,19 +701,19 @@ function ea(a, t, n, e, s, o) {
|
|
|
676
701
|
_: 1
|
|
677
702
|
})
|
|
678
703
|
]),
|
|
679
|
-
content:
|
|
680
|
-
|
|
681
|
-
|
|
704
|
+
content: C(() => [
|
|
705
|
+
A("div", na, [
|
|
706
|
+
p(y, {
|
|
682
707
|
modelValue: e.state.activeName,
|
|
683
|
-
"onUpdate:modelValue":
|
|
708
|
+
"onUpdate:modelValue": a[0] || (a[0] = (h) => e.state.activeName = h)
|
|
684
709
|
}, {
|
|
685
|
-
default:
|
|
686
|
-
|
|
710
|
+
default: C(() => [
|
|
711
|
+
p(I, {
|
|
687
712
|
title: "基本设置",
|
|
688
713
|
name: "folderGeneralRef"
|
|
689
714
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
(v(), H(
|
|
715
|
+
default: C(() => [
|
|
716
|
+
(v(), H(ze(e.pageGeneral), {
|
|
692
717
|
ref: "folderGeneralRef",
|
|
693
718
|
isFolder: n.isFolder
|
|
694
719
|
}, null, 8, ["isFolder"]))
|
|
@@ -701,15 +726,15 @@ function ea(a, t, n, e, s, o) {
|
|
|
701
726
|
])
|
|
702
727
|
]),
|
|
703
728
|
_: 1
|
|
704
|
-
}, 8, ["title"])) : j("", !0);
|
|
729
|
+
}, 8, ["fixed-name", "align", "title"])) : j("", !0);
|
|
705
730
|
}
|
|
706
|
-
const
|
|
731
|
+
const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52"]]), ra = {
|
|
707
732
|
key: 0,
|
|
708
733
|
width: "24",
|
|
709
734
|
height: "24",
|
|
710
735
|
viewBox: "0 0 24 24",
|
|
711
736
|
xmlns: "http://www.w3.org/2000/svg"
|
|
712
|
-
},
|
|
737
|
+
}, la = {
|
|
713
738
|
key: 0,
|
|
714
739
|
x1: "8",
|
|
715
740
|
y1: "12",
|
|
@@ -717,7 +742,7 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
717
742
|
y2: "12",
|
|
718
743
|
stroke: "#EBEBEB",
|
|
719
744
|
"stroke-width": "1"
|
|
720
|
-
},
|
|
745
|
+
}, ia = {
|
|
721
746
|
key: 1,
|
|
722
747
|
x1: "8",
|
|
723
748
|
y1: "12",
|
|
@@ -725,7 +750,7 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
725
750
|
y2: "24",
|
|
726
751
|
stroke: "#EBEBEB",
|
|
727
752
|
"stroke-width": "1"
|
|
728
|
-
},
|
|
753
|
+
}, ca = /* @__PURE__ */ Qe({
|
|
729
754
|
__name: "LayerLines",
|
|
730
755
|
props: {
|
|
731
756
|
level: {
|
|
@@ -737,13 +762,13 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
737
762
|
required: !0
|
|
738
763
|
}
|
|
739
764
|
},
|
|
740
|
-
setup(
|
|
741
|
-
return (
|
|
765
|
+
setup(t) {
|
|
766
|
+
return (a, n) => (v(!0), U(ie, null, De(t.level - 1, (e) => (v(), U("span", {
|
|
742
767
|
key: e,
|
|
743
768
|
class: "gap"
|
|
744
769
|
}, [
|
|
745
|
-
|
|
746
|
-
n[0] || (n[0] =
|
|
770
|
+
t.lineData[e] ? (v(), U("svg", ra, [
|
|
771
|
+
n[0] || (n[0] = A("line", {
|
|
747
772
|
x1: "8",
|
|
748
773
|
y1: "0",
|
|
749
774
|
x2: "8",
|
|
@@ -751,12 +776,12 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
751
776
|
stroke: "#EBEBEB",
|
|
752
777
|
"stroke-width": "1"
|
|
753
778
|
}, null, -1)),
|
|
754
|
-
(
|
|
755
|
-
(
|
|
779
|
+
(t.lineData[e] & 1) === 1 ? (v(), U("line", la)) : j("", !0),
|
|
780
|
+
(t.lineData[e] >> 1 & 1) === 1 ? (v(), U("line", ia)) : j("", !0)
|
|
756
781
|
])) : j("", !0)
|
|
757
782
|
]))), 128));
|
|
758
783
|
}
|
|
759
|
-
},
|
|
784
|
+
}), ua = /* @__PURE__ */ Z(ca, [["__scopeId", "data-v-fe0c65d9"]]), ga = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], da = ["onClick"], pa = { class: "prefix-icon" }, fa = /* @__PURE__ */ Qe({
|
|
760
785
|
__name: "Tree",
|
|
761
786
|
props: {
|
|
762
787
|
data: {
|
|
@@ -792,128 +817,128 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
792
817
|
}
|
|
793
818
|
},
|
|
794
819
|
emits: ["clickRow", "moveNode"],
|
|
795
|
-
setup(
|
|
796
|
-
const n =
|
|
797
|
-
const { idKey:
|
|
798
|
-
id:
|
|
799
|
-
label:
|
|
800
|
-
parentId:
|
|
801
|
-
level:
|
|
802
|
-
rawData:
|
|
803
|
-
},
|
|
804
|
-
if (Array.isArray(
|
|
805
|
-
for (const
|
|
806
|
-
|
|
807
|
-
return
|
|
808
|
-
},
|
|
809
|
-
const
|
|
810
|
-
if (!
|
|
820
|
+
setup(t, { emit: a }) {
|
|
821
|
+
const n = t, e = a, o = (l, u, N = 0) => {
|
|
822
|
+
const { idKey: F, labelKey: q, childrenKey: x } = n, re = {
|
|
823
|
+
id: l[F],
|
|
824
|
+
label: l[q],
|
|
825
|
+
parentId: u,
|
|
826
|
+
level: N,
|
|
827
|
+
rawData: l
|
|
828
|
+
}, $ = [re], te = l[x];
|
|
829
|
+
if (Array.isArray(te))
|
|
830
|
+
for (const fe of te)
|
|
831
|
+
$.push(...o(fe, re.id, N + 1));
|
|
832
|
+
return $;
|
|
833
|
+
}, s = z(() => o({ [n.idKey]: n.rootId, [n.childrenKey]: n.data }).slice(1)), r = z(() => s.value.reduce((l, u) => (l[u.id] = u, l), {})), c = z(() => s.value.filter((l) => l.label.toLowerCase().includes(n.filterValue.toLowerCase()))), g = (l) => {
|
|
834
|
+
const u = r.value[l];
|
|
835
|
+
if (!u || !u.parentId)
|
|
811
836
|
return [];
|
|
812
|
-
const
|
|
813
|
-
return
|
|
814
|
-
},
|
|
815
|
-
const
|
|
816
|
-
for (const
|
|
817
|
-
|
|
818
|
-
for (const
|
|
819
|
-
|
|
837
|
+
const N = g(u.parentId);
|
|
838
|
+
return N.push(u.parentId), N;
|
|
839
|
+
}, I = z(() => {
|
|
840
|
+
const l = /* @__PURE__ */ new Set();
|
|
841
|
+
for (const u of c.value) {
|
|
842
|
+
l.add(u.id);
|
|
843
|
+
for (const N of g(u.id))
|
|
844
|
+
l.add(N);
|
|
820
845
|
}
|
|
821
|
-
return
|
|
846
|
+
return s.value.filter((u) => l.has(u.id));
|
|
822
847
|
}), y = {
|
|
823
848
|
node: 1,
|
|
824
849
|
// └
|
|
825
850
|
layer: 2
|
|
826
|
-
},
|
|
827
|
-
const
|
|
828
|
-
for (const [
|
|
829
|
-
if (
|
|
830
|
-
const
|
|
831
|
-
for (let
|
|
832
|
-
|
|
851
|
+
}, m = z(() => {
|
|
852
|
+
const l = {}, u = I.value;
|
|
853
|
+
for (const [N, F] of u.entries())
|
|
854
|
+
if (l[N] = l[N] || {}, l[N][F.level - 1] = y.node, F.parentId !== n.rootId) {
|
|
855
|
+
const q = u.findIndex((x) => x.id === F.parentId);
|
|
856
|
+
for (let x = q + 1; x < N; x++)
|
|
857
|
+
l[x][F.level - 1] = (l[x][F.level - 1] || 0) | y.layer;
|
|
833
858
|
}
|
|
834
|
-
return
|
|
835
|
-
}),
|
|
836
|
-
e("clickRow",
|
|
837
|
-
},
|
|
838
|
-
n.draggable && (
|
|
839
|
-
},
|
|
859
|
+
return l;
|
|
860
|
+
}), h = (l) => {
|
|
861
|
+
e("clickRow", l);
|
|
862
|
+
}, f = K(null), b = K(null), w = (l, u) => {
|
|
863
|
+
n.draggable && (f.value = u);
|
|
864
|
+
}, O = (l, u) => {
|
|
840
865
|
if (!n.draggable)
|
|
841
866
|
return;
|
|
842
|
-
|
|
843
|
-
},
|
|
844
|
-
|
|
845
|
-
const
|
|
846
|
-
if (
|
|
867
|
+
g(u.id).includes(f.value.id) ? b.value = null : (l.preventDefault(), b.value = u.id);
|
|
868
|
+
}, R = (l, u) => {
|
|
869
|
+
l.preventDefault();
|
|
870
|
+
const N = f.value;
|
|
871
|
+
if (f.value = null, !N)
|
|
847
872
|
return;
|
|
848
|
-
!
|
|
849
|
-
},
|
|
850
|
-
|
|
851
|
-
},
|
|
852
|
-
n.draggable &&
|
|
853
|
-
},
|
|
854
|
-
n.draggable &&
|
|
873
|
+
!g(u.id).includes(N.id) && N.id !== u.id && N.parentId !== u.id && e("moveNode", N, u);
|
|
874
|
+
}, J = () => {
|
|
875
|
+
b.value = null;
|
|
876
|
+
}, d = (l) => {
|
|
877
|
+
n.draggable && l.target === l.currentTarget && (l.preventDefault(), b.value = n.rootId);
|
|
878
|
+
}, P = (l) => {
|
|
879
|
+
n.draggable && l.target === l.currentTarget && (b.value = null);
|
|
855
880
|
};
|
|
856
|
-
return (
|
|
857
|
-
const
|
|
881
|
+
return (l, u) => {
|
|
882
|
+
const N = D("svg-icon");
|
|
858
883
|
return v(), U("div", {
|
|
859
|
-
class:
|
|
860
|
-
onDragover:
|
|
861
|
-
onDragenter:
|
|
862
|
-
onDragleave:
|
|
863
|
-
onDrop:
|
|
884
|
+
class: he(["draggable-tree", "border-transparent", { "hover-border-color": b.value === t.rootId }]),
|
|
885
|
+
onDragover: d,
|
|
886
|
+
onDragenter: d,
|
|
887
|
+
onDragleave: P,
|
|
888
|
+
onDrop: u[0] || (u[0] = (F) => R(F, { id: t.rootId }))
|
|
864
889
|
}, [
|
|
865
|
-
(v(!0), U(
|
|
866
|
-
class:
|
|
890
|
+
(v(!0), U(ie, null, De(I.value, (F, q) => (v(), U("div", {
|
|
891
|
+
class: he([
|
|
867
892
|
"row",
|
|
868
893
|
"border-transparent",
|
|
869
894
|
{
|
|
870
|
-
active: String(
|
|
871
|
-
"hover-border-color":
|
|
895
|
+
active: String(t.active) === String(F.id),
|
|
896
|
+
"hover-border-color": b.value === F.id
|
|
872
897
|
}
|
|
873
898
|
]),
|
|
874
|
-
key:
|
|
875
|
-
draggable:
|
|
876
|
-
onDragstart: (
|
|
877
|
-
onDragover: (
|
|
878
|
-
onDragenter: (
|
|
879
|
-
onDrop: (
|
|
880
|
-
onDragend:
|
|
899
|
+
key: F.id,
|
|
900
|
+
draggable: t.draggable ? "true" : void 0,
|
|
901
|
+
onDragstart: (x) => w(x, F),
|
|
902
|
+
onDragover: (x) => O(x, F),
|
|
903
|
+
onDragenter: (x) => O(x, F),
|
|
904
|
+
onDrop: (x) => R(x, F),
|
|
905
|
+
onDragend: J
|
|
881
906
|
}, [
|
|
882
|
-
|
|
907
|
+
A("div", {
|
|
883
908
|
class: "content",
|
|
884
|
-
onClick: (
|
|
909
|
+
onClick: (x) => h(F)
|
|
885
910
|
}, [
|
|
886
|
-
|
|
887
|
-
"line-data":
|
|
888
|
-
level:
|
|
911
|
+
p(ua, {
|
|
912
|
+
"line-data": m.value[q],
|
|
913
|
+
level: F.level
|
|
889
914
|
}, null, 8, ["line-data", "level"]),
|
|
890
|
-
|
|
891
|
-
|
|
915
|
+
A("div", pa, [
|
|
916
|
+
F.rawData.isPage ? (v(), H(N, {
|
|
892
917
|
key: 0,
|
|
893
918
|
name: "text-page-common"
|
|
894
|
-
})) : (v(), H(
|
|
919
|
+
})) : (v(), H(N, {
|
|
895
920
|
key: 1,
|
|
896
921
|
name: "text-page-folder-closed"
|
|
897
922
|
}))
|
|
898
923
|
]),
|
|
899
|
-
|
|
900
|
-
], 8,
|
|
901
|
-
|
|
902
|
-
], 42,
|
|
924
|
+
A("label", null, ae(F.label), 1)
|
|
925
|
+
], 8, da),
|
|
926
|
+
ct(l.$slots, "row-suffix", { node: F }, void 0, !0)
|
|
927
|
+
], 42, ga))), 128))
|
|
903
928
|
], 34);
|
|
904
929
|
};
|
|
905
930
|
}
|
|
906
|
-
},
|
|
907
|
-
PAGE_STATUS:
|
|
908
|
-
} =
|
|
931
|
+
}), ma = /* @__PURE__ */ Z(fa, [["__scopeId", "data-v-44d73ce9"]]), {
|
|
932
|
+
PAGE_STATUS: Pa
|
|
933
|
+
} = we, ya = {
|
|
909
934
|
components: {
|
|
910
|
-
TinySearch:
|
|
911
|
-
TinyCollapse:
|
|
912
|
-
TinyCollapseItem:
|
|
913
|
-
TinyIconSearch:
|
|
914
|
-
TinyPopover:
|
|
915
|
-
DraggableTree:
|
|
916
|
-
SvgButton:
|
|
935
|
+
TinySearch: St,
|
|
936
|
+
TinyCollapse: Ee,
|
|
937
|
+
TinyCollapseItem: Ie,
|
|
938
|
+
TinyIconSearch: Tt(),
|
|
939
|
+
TinyPopover: ht,
|
|
940
|
+
DraggableTree: ma,
|
|
941
|
+
SvgButton: ve
|
|
917
942
|
},
|
|
918
943
|
props: {
|
|
919
944
|
isFolder: {
|
|
@@ -921,98 +946,98 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
921
946
|
default: !1
|
|
922
947
|
}
|
|
923
948
|
},
|
|
924
|
-
emits: ["openSettingPanel", "add", "createPage", "createFolder"],
|
|
925
|
-
setup(
|
|
926
|
-
emit:
|
|
949
|
+
emits: ["openSettingPanel", "add", "createPage", "createFolder", "settingHome"],
|
|
950
|
+
setup(t, {
|
|
951
|
+
emit: a
|
|
927
952
|
}) {
|
|
928
953
|
const {
|
|
929
954
|
confirm: n
|
|
930
|
-
} =
|
|
955
|
+
} = oe(), {
|
|
931
956
|
pageState: e,
|
|
932
|
-
isBlock:
|
|
933
|
-
isSaved:
|
|
934
|
-
} =
|
|
957
|
+
isBlock: o,
|
|
958
|
+
isSaved: s
|
|
959
|
+
} = se(), {
|
|
935
960
|
pageSettingState: r,
|
|
936
961
|
changeTreeData: c,
|
|
937
|
-
isCurrentDataSame:
|
|
938
|
-
getPageList:
|
|
962
|
+
isCurrentDataSame: g,
|
|
963
|
+
getPageList: I,
|
|
939
964
|
resetPageData: y,
|
|
940
|
-
STATIC_PAGE_GROUP_ID:
|
|
941
|
-
COMMON_PAGE_GROUP_ID:
|
|
942
|
-
switchPage:
|
|
943
|
-
} =
|
|
944
|
-
fetchPageDetail:
|
|
945
|
-
requestUpdatePage:
|
|
946
|
-
} = ce,
|
|
965
|
+
STATIC_PAGE_GROUP_ID: m,
|
|
966
|
+
COMMON_PAGE_GROUP_ID: h,
|
|
967
|
+
switchPage: f
|
|
968
|
+
} = Y(), {
|
|
969
|
+
fetchPageDetail: b,
|
|
970
|
+
requestUpdatePage: w
|
|
971
|
+
} = ce, O = () => G(V.GlobalService).getBaseInfo().id, R = ee({
|
|
947
972
|
pageSearchValue: "",
|
|
948
|
-
collapseValue: [
|
|
973
|
+
collapseValue: [m, h],
|
|
949
974
|
currentNodeData: {
|
|
950
|
-
id: G(
|
|
975
|
+
id: G(V.GlobalService).getBaseInfo().pageId
|
|
951
976
|
}
|
|
952
977
|
}), {
|
|
953
|
-
subscribe:
|
|
954
|
-
unsubscribe:
|
|
955
|
-
} =
|
|
956
|
-
let
|
|
957
|
-
|
|
958
|
-
|
|
978
|
+
subscribe: J,
|
|
979
|
+
unsubscribe: d
|
|
980
|
+
} = Ne();
|
|
981
|
+
let P = null;
|
|
982
|
+
ut(() => {
|
|
983
|
+
P = J({
|
|
959
984
|
topic: "locationHistoryChanged",
|
|
960
|
-
callback: (
|
|
961
|
-
|
|
962
|
-
id:
|
|
963
|
-
} :
|
|
985
|
+
callback: (i) => {
|
|
986
|
+
i.pageId ? R.currentNodeData = {
|
|
987
|
+
id: i.pageId
|
|
988
|
+
} : o() && (R.currentNodeData = {});
|
|
964
989
|
},
|
|
965
990
|
subscriber: "pageTree"
|
|
966
991
|
});
|
|
967
|
-
}),
|
|
968
|
-
|
|
992
|
+
}), Le(() => {
|
|
993
|
+
P && d(P);
|
|
969
994
|
});
|
|
970
|
-
const
|
|
971
|
-
r.updateTreeData = async () => await
|
|
972
|
-
const
|
|
973
|
-
|
|
974
|
-
|
|
995
|
+
const l = async (i) => await I(i);
|
|
996
|
+
r.updateTreeData = async () => await l(O());
|
|
997
|
+
const u = (i) => {
|
|
998
|
+
R.currentNodeData = i, f(i.id).then(() => {
|
|
999
|
+
Q(), X();
|
|
975
1000
|
});
|
|
976
|
-
},
|
|
1001
|
+
}, N = (i, _) => {
|
|
977
1002
|
var W;
|
|
978
1003
|
const {
|
|
979
|
-
id:
|
|
980
|
-
isPage:
|
|
981
|
-
} =
|
|
982
|
-
!
|
|
1004
|
+
id: S,
|
|
1005
|
+
isPage: L
|
|
1006
|
+
} = _;
|
|
1007
|
+
!o() && S === ((W = R == null ? void 0 : R.currentNodeData) == null ? void 0 : W.id) || !L || (s() && g() ? u(_) : n({
|
|
983
1008
|
title: "提示",
|
|
984
|
-
message: `${
|
|
1009
|
+
message: `${o() ? "区块" : "页面"}尚未保存,是否要继续切换?`,
|
|
985
1010
|
exec: () => {
|
|
986
|
-
c(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy),
|
|
1011
|
+
c(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy), u(_);
|
|
987
1012
|
}
|
|
988
1013
|
}));
|
|
989
|
-
},
|
|
990
|
-
var
|
|
991
|
-
if (
|
|
992
|
-
const W = ((
|
|
993
|
-
|
|
1014
|
+
}, F = (i, _, S) => {
|
|
1015
|
+
var L;
|
|
1016
|
+
if (S && _.isPage) {
|
|
1017
|
+
const W = ((L = _.occupier) == null ? void 0 : L.username) || "";
|
|
1018
|
+
oe().message({
|
|
994
1019
|
message: `您点击的页面被${W}锁定,暂时无法编辑,请联系解锁`
|
|
995
1020
|
});
|
|
996
1021
|
return;
|
|
997
1022
|
}
|
|
998
|
-
|
|
1023
|
+
ge(r.currentPageData, r.currentPageDataCopy) ? a("openSettingPanel", _) : n({
|
|
999
1024
|
title: "提示",
|
|
1000
1025
|
message: `当前页面或文件夹${r.currentPageData.name}尚未保存,是否要继续切换?`,
|
|
1001
1026
|
exec: () => {
|
|
1002
|
-
c(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy),
|
|
1027
|
+
c(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy), a("openSettingPanel", _);
|
|
1003
1028
|
}
|
|
1004
1029
|
});
|
|
1005
|
-
},
|
|
1006
|
-
|
|
1007
|
-
},
|
|
1008
|
-
|
|
1009
|
-
},
|
|
1010
|
-
|
|
1011
|
-
},
|
|
1030
|
+
}, q = {}, x = (i, _) => {
|
|
1031
|
+
q[_] = i;
|
|
1032
|
+
}, re = (i) => {
|
|
1033
|
+
N(null, i.rawData);
|
|
1034
|
+
}, $ = (i) => nt(i.occupier).state === Pa.Lock, te = (i) => {
|
|
1035
|
+
F(null, i.rawData, $(i.rawData));
|
|
1036
|
+
}, le = [
|
|
1012
1037
|
{
|
|
1013
1038
|
type: "settings",
|
|
1014
1039
|
label: "设置",
|
|
1015
|
-
action:
|
|
1040
|
+
action: te
|
|
1016
1041
|
},
|
|
1017
1042
|
{
|
|
1018
1043
|
type: "divider"
|
|
@@ -1020,190 +1045,201 @@ const ta = /* @__PURE__ */ te(Zt, [["render", ea], ["__scopeId", "data-v-b0cf4b3
|
|
|
1020
1045
|
{
|
|
1021
1046
|
type: "createPage",
|
|
1022
1047
|
label: "新建子页面",
|
|
1023
|
-
action: (
|
|
1024
|
-
|
|
1048
|
+
action: (i) => {
|
|
1049
|
+
a("createPage", "staticPages", i.id);
|
|
1025
1050
|
}
|
|
1026
1051
|
},
|
|
1027
1052
|
{
|
|
1028
1053
|
type: "createFolder",
|
|
1029
1054
|
label: "新建子文件夹",
|
|
1030
|
-
action: (
|
|
1031
|
-
|
|
1055
|
+
action: (i) => {
|
|
1056
|
+
a("createFolder", i.id);
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
type: "settingHome",
|
|
1061
|
+
label: "设置为主页",
|
|
1062
|
+
action: (i) => {
|
|
1063
|
+
a("settingHome", i);
|
|
1032
1064
|
}
|
|
1033
1065
|
}
|
|
1034
1066
|
// TODO 复制和删除的逻辑耦合在其他组件内,暂时屏蔽
|
|
1035
1067
|
// { type: 'divider' },
|
|
1036
1068
|
// { type: 'copy', label: '复制页面', action: copyPage },
|
|
1037
1069
|
// { type: 'delete', label: '删除', class: ['danger'], action: deleteNode }
|
|
1038
|
-
].map((
|
|
1039
|
-
...
|
|
1040
|
-
action: (
|
|
1041
|
-
var
|
|
1042
|
-
(
|
|
1070
|
+
].map((i) => ({
|
|
1071
|
+
...i,
|
|
1072
|
+
action: (_) => {
|
|
1073
|
+
var S, L, W;
|
|
1074
|
+
(S = i.action) == null || S.call(i, _), (W = (L = q[_.id]) == null ? void 0 : L.doClose) == null || W.call(L);
|
|
1043
1075
|
}
|
|
1044
|
-
})),
|
|
1045
|
-
var
|
|
1076
|
+
})), Ve = (i, _) => i === h ? le.slice(0, 1) : !_.rawData.isPage || _.rawData.group === "public" ? le.filter((S) => S.type !== "settingHome") : le, me = (i) => {
|
|
1077
|
+
var ue;
|
|
1046
1078
|
const {
|
|
1047
|
-
id:
|
|
1048
|
-
name:
|
|
1049
|
-
page_content:
|
|
1050
|
-
} =
|
|
1051
|
-
...
|
|
1079
|
+
id: _,
|
|
1080
|
+
name: S,
|
|
1081
|
+
page_content: L
|
|
1082
|
+
} = i, W = {
|
|
1083
|
+
...i,
|
|
1052
1084
|
page_content: {
|
|
1053
|
-
...
|
|
1054
|
-
fileName:
|
|
1085
|
+
...L,
|
|
1086
|
+
fileName: S
|
|
1055
1087
|
}
|
|
1056
|
-
},
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1088
|
+
}, be = ((ue = e == null ? void 0 : e.currentPage) == null ? void 0 : ue.id) === _;
|
|
1089
|
+
return at({
|
|
1090
|
+
id: _,
|
|
1091
|
+
params: W,
|
|
1092
|
+
isCurEditPage: be
|
|
1093
|
+
});
|
|
1094
|
+
}, k = (i) => {
|
|
1059
1095
|
const {
|
|
1060
|
-
id:
|
|
1061
|
-
} =
|
|
1062
|
-
return
|
|
1063
|
-
...
|
|
1096
|
+
id: _
|
|
1097
|
+
} = i;
|
|
1098
|
+
return w(_, {
|
|
1099
|
+
...i,
|
|
1064
1100
|
page_content: null
|
|
1065
1101
|
}).then(() => {
|
|
1066
1102
|
M({
|
|
1067
1103
|
type: "success",
|
|
1068
1104
|
message: "更新文件夹成功!"
|
|
1069
1105
|
});
|
|
1070
|
-
}).catch((
|
|
1106
|
+
}).catch((S) => {
|
|
1071
1107
|
M({
|
|
1072
1108
|
type: "error",
|
|
1073
1109
|
title: "更新文件夹失败",
|
|
1074
|
-
message: JSON.stringify((
|
|
1110
|
+
message: JSON.stringify((S == null ? void 0 : S.message) || S)
|
|
1075
1111
|
});
|
|
1076
1112
|
}).finally(() => {
|
|
1077
1113
|
r.updateTreeData(), r.isNew = !1;
|
|
1078
1114
|
});
|
|
1079
|
-
},
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}).catch((
|
|
1115
|
+
}, T = (i, _) => {
|
|
1116
|
+
ge(r.currentPageData, r.currentPageDataCopy) ? (Q(), X(), r.currentPageData.id = i.id, c(_.id, i.parentId), y(), b(i.id).then((S) => {
|
|
1117
|
+
S.parentId = _.id, S.isPage ? (S.isDefault = !1, me(S)) : k(S);
|
|
1118
|
+
}).catch((S) => {
|
|
1083
1119
|
M({
|
|
1084
1120
|
type: "error",
|
|
1085
1121
|
title: "移动页面文件/文件夹失败",
|
|
1086
|
-
message: JSON.stringify((
|
|
1122
|
+
message: JSON.stringify((S == null ? void 0 : S.message) || S)
|
|
1087
1123
|
});
|
|
1088
1124
|
})) : n({
|
|
1089
1125
|
title: "提示",
|
|
1090
1126
|
message: "更改尚未保存,是否要放弃这些更改?",
|
|
1091
1127
|
exec: () => {
|
|
1092
|
-
r.isNew || (c(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy)),
|
|
1128
|
+
r.isNew || (c(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy)), Q();
|
|
1093
1129
|
}
|
|
1094
1130
|
});
|
|
1095
1131
|
};
|
|
1096
|
-
|
|
1132
|
+
Ne().subscribe({
|
|
1097
1133
|
topic: "app_id_changed",
|
|
1098
1134
|
subscriber: "page_tree_app_id_changed",
|
|
1099
|
-
callback: (
|
|
1100
|
-
|
|
1135
|
+
callback: (i) => {
|
|
1136
|
+
l(i);
|
|
1101
1137
|
}
|
|
1102
1138
|
});
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1139
|
+
const B = (i) => {
|
|
1140
|
+
i.stopPropagation(), i.preventDefault(), a("add");
|
|
1105
1141
|
};
|
|
1106
|
-
return
|
|
1107
|
-
|
|
1142
|
+
return Le(() => {
|
|
1143
|
+
Ne().unsubscribe({
|
|
1108
1144
|
topic: "app_id_changed",
|
|
1109
1145
|
subscriber: "page_tree_app_id_changed"
|
|
1110
1146
|
});
|
|
1111
1147
|
}), {
|
|
1112
|
-
createPublicPage:
|
|
1113
|
-
state:
|
|
1114
|
-
switchPage:
|
|
1148
|
+
createPublicPage: B,
|
|
1149
|
+
state: R,
|
|
1150
|
+
switchPage: u,
|
|
1115
1151
|
pageSettingState: r,
|
|
1116
|
-
setPopoverRef:
|
|
1117
|
-
IconFolderOpened:
|
|
1118
|
-
IconFolderClosed:
|
|
1119
|
-
getRowOperations:
|
|
1120
|
-
handleClickRow:
|
|
1121
|
-
handleMoveNode:
|
|
1122
|
-
isPageLocked:
|
|
1123
|
-
handleClickPageSettings:
|
|
1124
|
-
STATIC_PAGE_GROUP_ID:
|
|
1152
|
+
setPopoverRef: x,
|
|
1153
|
+
IconFolderOpened: Bt(),
|
|
1154
|
+
IconFolderClosed: kt(),
|
|
1155
|
+
getRowOperations: Ve,
|
|
1156
|
+
handleClickRow: re,
|
|
1157
|
+
handleMoveNode: T,
|
|
1158
|
+
isPageLocked: $,
|
|
1159
|
+
handleClickPageSettings: te,
|
|
1160
|
+
STATIC_PAGE_GROUP_ID: m
|
|
1125
1161
|
};
|
|
1126
1162
|
}
|
|
1127
|
-
},
|
|
1128
|
-
class: /* @__PURE__ */
|
|
1129
|
-
},
|
|
1130
|
-
function
|
|
1131
|
-
const r =
|
|
1132
|
-
return v(), U(
|
|
1133
|
-
|
|
1134
|
-
|
|
1163
|
+
}, _a = { class: "app-manage-search" }, Da = { class: "title" }, ha = { class: "app-manage-tree" }, Sa = {
|
|
1164
|
+
class: /* @__PURE__ */ he(["actions"])
|
|
1165
|
+
}, va = { class: "operation-list" }, Ca = ["onClick"];
|
|
1166
|
+
function ba(t, a, n, e, o, s) {
|
|
1167
|
+
const r = D("tiny-icon-search"), c = D("tiny-search"), g = D("svg-button"), I = D("tiny-popover"), y = D("draggable-tree"), m = D("tiny-collapse-item"), h = D("tiny-collapse");
|
|
1168
|
+
return v(), U(ie, null, [
|
|
1169
|
+
A("div", _a, [
|
|
1170
|
+
p(c, {
|
|
1135
1171
|
modelValue: e.state.pageSearchValue,
|
|
1136
|
-
"onUpdate:modelValue":
|
|
1172
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => e.state.pageSearchValue = f),
|
|
1137
1173
|
clearable: "",
|
|
1138
1174
|
placeholder: "搜索"
|
|
1139
1175
|
}, {
|
|
1140
|
-
prefix:
|
|
1141
|
-
|
|
1176
|
+
prefix: C(() => [
|
|
1177
|
+
p(r)
|
|
1142
1178
|
]),
|
|
1143
1179
|
_: 1
|
|
1144
1180
|
}, 8, ["modelValue"])
|
|
1145
1181
|
]),
|
|
1146
|
-
|
|
1182
|
+
p(h, {
|
|
1147
1183
|
modelValue: e.state.collapseValue,
|
|
1148
|
-
"onUpdate:modelValue":
|
|
1184
|
+
"onUpdate:modelValue": a[1] || (a[1] = (f) => e.state.collapseValue = f),
|
|
1149
1185
|
class: "page-manage-collapse lowcode-scrollbar"
|
|
1150
1186
|
}, {
|
|
1151
|
-
default:
|
|
1152
|
-
(v(!0), U(
|
|
1153
|
-
key:
|
|
1154
|
-
name:
|
|
1187
|
+
default: C(() => [
|
|
1188
|
+
(v(!0), U(ie, null, De(e.pageSettingState.pages, (f, b) => (v(), H(m, {
|
|
1189
|
+
key: b,
|
|
1190
|
+
name: f.groupId
|
|
1155
1191
|
}, {
|
|
1156
|
-
title:
|
|
1157
|
-
|
|
1192
|
+
title: C(() => [
|
|
1193
|
+
A("span", Da, ae(f.groupName), 1)
|
|
1158
1194
|
]),
|
|
1159
|
-
default:
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
data:
|
|
1195
|
+
default: C(() => [
|
|
1196
|
+
A("div", ha, [
|
|
1197
|
+
p(y, {
|
|
1198
|
+
data: f.data,
|
|
1163
1199
|
"label-key": "name",
|
|
1164
1200
|
active: e.state.currentNodeData.id,
|
|
1165
1201
|
"filter-value": e.state.pageSearchValue,
|
|
1166
1202
|
"root-id": e.pageSettingState.ROOT_ID,
|
|
1167
|
-
draggable:
|
|
1203
|
+
draggable: f.groupId === e.STATIC_PAGE_GROUP_ID,
|
|
1168
1204
|
onClickRow: e.handleClickRow,
|
|
1169
1205
|
onMoveNode: e.handleMoveNode
|
|
1170
1206
|
}, {
|
|
1171
|
-
"row-suffix":
|
|
1172
|
-
|
|
1173
|
-
e.isPageLocked(
|
|
1207
|
+
"row-suffix": C(({ node: w }) => [
|
|
1208
|
+
A("div", Sa, [
|
|
1209
|
+
e.isPageLocked(w.rawData) ? (v(), H(g, {
|
|
1174
1210
|
key: 0,
|
|
1175
1211
|
name: "locked",
|
|
1176
1212
|
hoverBgColor: !1
|
|
1177
1213
|
})) : j("", !0),
|
|
1178
|
-
|
|
1214
|
+
w.rawData.isHome ? (v(), H(g, {
|
|
1179
1215
|
key: 1,
|
|
1180
1216
|
name: "home",
|
|
1181
1217
|
hoverBgColor: !1
|
|
1182
1218
|
})) : j("", !0),
|
|
1183
|
-
|
|
1219
|
+
p(I, {
|
|
1184
1220
|
ref_for: !0,
|
|
1185
|
-
ref: (
|
|
1221
|
+
ref: (O) => e.setPopoverRef(O, w.id),
|
|
1186
1222
|
placement: "bottom-start",
|
|
1187
1223
|
"visible-arrow": !1,
|
|
1188
1224
|
"popper-class": "page-tree-row-operation-list"
|
|
1189
1225
|
}, {
|
|
1190
|
-
reference:
|
|
1191
|
-
|
|
1226
|
+
reference: C(() => [
|
|
1227
|
+
p(g, {
|
|
1192
1228
|
name: "ellipsis",
|
|
1193
1229
|
class: "auto-hidden",
|
|
1194
1230
|
hoverBgColor: !1
|
|
1195
1231
|
})
|
|
1196
1232
|
]),
|
|
1197
|
-
default:
|
|
1198
|
-
|
|
1199
|
-
(v(!0), U(
|
|
1200
|
-
key:
|
|
1201
|
-
class:
|
|
1202
|
-
onClick: (
|
|
1203
|
-
var
|
|
1204
|
-
return (
|
|
1233
|
+
default: C(() => [
|
|
1234
|
+
A("div", va, [
|
|
1235
|
+
(v(!0), U(ie, null, De(e.getRowOperations(f.groupId, w), (O, R) => (v(), U("div", {
|
|
1236
|
+
key: R,
|
|
1237
|
+
class: he([O.type === "divider" ? "divider" : "item"].concat(O.class || [])),
|
|
1238
|
+
onClick: (J) => {
|
|
1239
|
+
var d;
|
|
1240
|
+
return (d = O.action) == null ? void 0 : d.call(O, w);
|
|
1205
1241
|
}
|
|
1206
|
-
},
|
|
1242
|
+
}, ae(O.label), 11, Ca))), 128))
|
|
1207
1243
|
])
|
|
1208
1244
|
]),
|
|
1209
1245
|
_: 2
|
|
@@ -1221,138 +1257,180 @@ function Da(a, t, n, e, s, o) {
|
|
|
1221
1257
|
}, 8, ["modelValue"])
|
|
1222
1258
|
], 64);
|
|
1223
1259
|
}
|
|
1224
|
-
const
|
|
1225
|
-
getPageById: async (
|
|
1226
|
-
if (
|
|
1227
|
-
return
|
|
1260
|
+
const Fa = /* @__PURE__ */ Z(ya, [["render", ba], ["__scopeId", "data-v-1e91c8ad"]]), Na = {
|
|
1261
|
+
getPageById: async (t) => {
|
|
1262
|
+
if (t)
|
|
1263
|
+
return Te(t);
|
|
1228
1264
|
},
|
|
1229
|
-
openPageSettingPanel:
|
|
1230
|
-
},
|
|
1265
|
+
openPageSettingPanel: ye
|
|
1266
|
+
}, Ia = {
|
|
1231
1267
|
components: {
|
|
1232
|
-
PageSetting:
|
|
1233
|
-
PluginPanel:
|
|
1234
|
-
SvgButton:
|
|
1235
|
-
PageFolderSetting:
|
|
1236
|
-
PageTree:
|
|
1268
|
+
PageSetting: ta,
|
|
1269
|
+
PluginPanel: _t,
|
|
1270
|
+
SvgButton: ve,
|
|
1271
|
+
PageFolderSetting: sa,
|
|
1272
|
+
PageTree: Fa
|
|
1237
1273
|
},
|
|
1238
1274
|
props: {
|
|
1239
1275
|
title: {
|
|
1240
1276
|
type: String,
|
|
1241
1277
|
default: "页面"
|
|
1278
|
+
},
|
|
1279
|
+
fixedPanels: {
|
|
1280
|
+
type: Array
|
|
1242
1281
|
}
|
|
1243
1282
|
},
|
|
1244
|
-
|
|
1283
|
+
emits: ["close"],
|
|
1284
|
+
setup(t, {
|
|
1285
|
+
emit: a
|
|
1286
|
+
}) {
|
|
1245
1287
|
const {
|
|
1246
|
-
|
|
1247
|
-
} =
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1288
|
+
confirm: n
|
|
1289
|
+
} = oe(), {
|
|
1290
|
+
pageState: e
|
|
1291
|
+
} = se(), {
|
|
1292
|
+
pageSettingState: o,
|
|
1293
|
+
getDefaultPage: s,
|
|
1294
|
+
isTemporaryPage: r,
|
|
1295
|
+
initCurrentPageData: c
|
|
1296
|
+
} = Y(), {
|
|
1297
|
+
PLUGIN_NAME: g
|
|
1298
|
+
} = ne(), I = ee({
|
|
1299
|
+
emitEvent: a
|
|
1300
|
+
});
|
|
1301
|
+
He("panelState", I);
|
|
1302
|
+
const y = K(null), m = o.ROOT_ID, h = dt().getDocsUrl("page"), f = ee({
|
|
1253
1303
|
isFolder: !1
|
|
1254
|
-
}),
|
|
1255
|
-
|
|
1304
|
+
}), b = (P, l = m) => {
|
|
1305
|
+
X(), o.isNew = !0;
|
|
1256
1306
|
try {
|
|
1257
|
-
const
|
|
1258
|
-
if (!
|
|
1307
|
+
const u = s();
|
|
1308
|
+
if (!u)
|
|
1259
1309
|
throw new Error("Failed to get default page configuration");
|
|
1260
|
-
|
|
1261
|
-
...
|
|
1262
|
-
...
|
|
1263
|
-
parentId:
|
|
1310
|
+
o.currentPageData = {
|
|
1311
|
+
...s(),
|
|
1312
|
+
...u,
|
|
1313
|
+
parentId: l,
|
|
1264
1314
|
route: "",
|
|
1265
1315
|
name: "Untitled",
|
|
1266
1316
|
page_content: {
|
|
1267
1317
|
lifeCycles: {}
|
|
1268
1318
|
},
|
|
1269
|
-
group:
|
|
1319
|
+
group: P
|
|
1270
1320
|
};
|
|
1271
|
-
} catch {
|
|
1321
|
+
} catch (u) {
|
|
1322
|
+
throw new Error(u);
|
|
1272
1323
|
}
|
|
1273
|
-
|
|
1274
|
-
},
|
|
1275
|
-
|
|
1276
|
-
parentId:
|
|
1324
|
+
o.currentPageDataCopy = de(!0, {}, o.currentPageData), f.isFolder = !1, ye();
|
|
1325
|
+
}, w = (P = m) => {
|
|
1326
|
+
Q(), o.isNew = !0, o.currentPageData = {
|
|
1327
|
+
parentId: P,
|
|
1277
1328
|
route: "",
|
|
1278
1329
|
name: "untitled"
|
|
1279
|
-
},
|
|
1330
|
+
}, o.currentPageDataCopy = de(!0, {}, o.currentPageData), f.isFolder = !0, Ke();
|
|
1331
|
+
}, O = (P) => {
|
|
1332
|
+
n({
|
|
1333
|
+
title: "提示",
|
|
1334
|
+
type: "warning ",
|
|
1335
|
+
message: "是否确定要将此页面设置为主页?",
|
|
1336
|
+
exec: () => {
|
|
1337
|
+
const l = {
|
|
1338
|
+
...P.rawData,
|
|
1339
|
+
isHome: !0
|
|
1340
|
+
};
|
|
1341
|
+
ot(P.id, l).then(() => {
|
|
1342
|
+
o.updateTreeData(), o.isNew = !1, M({
|
|
1343
|
+
message: "主页设置成功!",
|
|
1344
|
+
type: "success"
|
|
1345
|
+
});
|
|
1346
|
+
}).catch(() => {
|
|
1347
|
+
M({
|
|
1348
|
+
message: "主页设置失败!",
|
|
1349
|
+
type: "error"
|
|
1350
|
+
});
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1280
1354
|
};
|
|
1281
|
-
|
|
1282
|
-
|
|
1355
|
+
Se(() => {
|
|
1356
|
+
r.saved && ye();
|
|
1283
1357
|
});
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1358
|
+
const R = async (P) => {
|
|
1359
|
+
f.isFolder = !P.isPage, o.isNew = !1;
|
|
1360
|
+
const l = P.id !== o.currentPageData.id;
|
|
1361
|
+
f.isFolder ? (l && Q(), Ke()) : (l && X(), ye());
|
|
1362
|
+
const u = await Te(P == null ? void 0 : P.id);
|
|
1363
|
+
c(u);
|
|
1290
1364
|
};
|
|
1291
|
-
return
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1365
|
+
return He("openSettingPanel", R), {
|
|
1366
|
+
PLUGIN_NAME: g,
|
|
1367
|
+
state: f,
|
|
1368
|
+
pageState: e,
|
|
1369
|
+
openNewPage: (P) => {
|
|
1370
|
+
y.value.switchPage(P);
|
|
1296
1371
|
},
|
|
1297
|
-
pageTreeRef:
|
|
1372
|
+
pageTreeRef: y,
|
|
1298
1373
|
pluginPanelClosed: () => {
|
|
1299
|
-
|
|
1374
|
+
a("close"), Q(), X();
|
|
1300
1375
|
},
|
|
1301
|
-
openSettingPanel:
|
|
1302
|
-
createNewFolder:
|
|
1303
|
-
createNewPage:
|
|
1304
|
-
docsUrl:
|
|
1376
|
+
openSettingPanel: R,
|
|
1377
|
+
createNewFolder: w,
|
|
1378
|
+
createNewPage: b,
|
|
1379
|
+
docsUrl: h,
|
|
1380
|
+
settingHome: O
|
|
1305
1381
|
};
|
|
1306
1382
|
}
|
|
1307
|
-
};
|
|
1308
|
-
function
|
|
1309
|
-
const r =
|
|
1310
|
-
return v(), U(
|
|
1311
|
-
|
|
1383
|
+
}, Ea = { class: "plugin-page" };
|
|
1384
|
+
function wa(t, a, n, e, o, s) {
|
|
1385
|
+
const r = D("svg-button"), c = D("page-tree"), g = D("plugin-panel"), I = D("page-setting"), y = D("page-folder-setting");
|
|
1386
|
+
return v(), U("div", Ea, [
|
|
1387
|
+
p(g, {
|
|
1312
1388
|
title: n.title,
|
|
1389
|
+
"fixed-name": e.PLUGIN_NAME.AppManage,
|
|
1390
|
+
fixedPanels: n.fixedPanels,
|
|
1313
1391
|
onClose: e.pluginPanelClosed,
|
|
1314
1392
|
docsUrl: e.docsUrl,
|
|
1315
|
-
isShowDocsIcon: !0
|
|
1316
|
-
class: "page-manage"
|
|
1393
|
+
isShowDocsIcon: !0
|
|
1317
1394
|
}, {
|
|
1318
|
-
header:
|
|
1319
|
-
|
|
1395
|
+
header: C(() => [
|
|
1396
|
+
p(r, {
|
|
1320
1397
|
class: "add-folder-icon",
|
|
1321
1398
|
name: "add-folder",
|
|
1322
1399
|
placement: "bottom",
|
|
1323
1400
|
tips: "新建文件夹",
|
|
1324
|
-
onClick:
|
|
1401
|
+
onClick: a[0] || (a[0] = (m) => e.createNewFolder())
|
|
1325
1402
|
}),
|
|
1326
|
-
|
|
1403
|
+
p(r, {
|
|
1327
1404
|
class: "new-page-icon",
|
|
1328
1405
|
name: "new-page",
|
|
1329
1406
|
placement: "bottom",
|
|
1330
1407
|
tips: "新建页面",
|
|
1331
|
-
onClick:
|
|
1408
|
+
onClick: a[1] || (a[1] = (m) => e.createNewPage("staticPages"))
|
|
1332
1409
|
})
|
|
1333
1410
|
]),
|
|
1334
|
-
content:
|
|
1335
|
-
|
|
1411
|
+
content: C(() => [
|
|
1412
|
+
p(c, {
|
|
1336
1413
|
ref: "pageTreeRef",
|
|
1337
1414
|
isFolder: e.state.isFolder,
|
|
1338
|
-
onAdd:
|
|
1415
|
+
onAdd: a[2] || (a[2] = (m) => e.createNewPage("publicPages")),
|
|
1339
1416
|
onOpenSettingPanel: e.openSettingPanel,
|
|
1340
1417
|
onCreatePage: e.createNewPage,
|
|
1341
|
-
onCreateFolder: e.createNewFolder
|
|
1342
|
-
|
|
1418
|
+
onCreateFolder: e.createNewFolder,
|
|
1419
|
+
onSettingHome: e.settingHome
|
|
1420
|
+
}, null, 8, ["isFolder", "onOpenSettingPanel", "onCreatePage", "onCreateFolder", "onSettingHome"])
|
|
1343
1421
|
]),
|
|
1344
1422
|
_: 1
|
|
1345
|
-
}, 8, ["title", "onClose", "docsUrl"]),
|
|
1346
|
-
|
|
1423
|
+
}, 8, ["title", "fixed-name", "fixedPanels", "onClose", "docsUrl"]),
|
|
1424
|
+
p(I, {
|
|
1347
1425
|
isFolder: e.state.isFolder,
|
|
1348
1426
|
onOpenNewPage: e.openNewPage
|
|
1349
1427
|
}, null, 8, ["isFolder", "onOpenNewPage"]),
|
|
1350
|
-
|
|
1428
|
+
p(y, {
|
|
1351
1429
|
isFolder: e.state.isFolder
|
|
1352
1430
|
}, null, 8, ["isFolder"])
|
|
1353
|
-
]
|
|
1431
|
+
]);
|
|
1354
1432
|
}
|
|
1355
|
-
const
|
|
1433
|
+
const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f"]]), { ELEMENT_TAG: ka, COMPONENT_NAME: Ba } = we, Pe = {
|
|
1356
1434
|
app: "",
|
|
1357
1435
|
name: "",
|
|
1358
1436
|
route: "",
|
|
@@ -1376,7 +1454,7 @@ const Na = /* @__PURE__ */ te(ba, [["render", Ca], ["__scopeId", "data-v-6fa41cf
|
|
|
1376
1454
|
parentId: "none",
|
|
1377
1455
|
isBody: !1,
|
|
1378
1456
|
group: "staticPages"
|
|
1379
|
-
},
|
|
1457
|
+
}, Oa = K(null), E = ee({
|
|
1380
1458
|
currentPageDataCopy: {},
|
|
1381
1459
|
// 记录当前页最开始的状态,当用户点击取消按钮的时候恢复到初始状态
|
|
1382
1460
|
currentPageData: {},
|
|
@@ -1387,292 +1465,221 @@ const Na = /* @__PURE__ */ te(ba, [["render", Ca], ["__scopeId", "data-v-6fa41cf
|
|
|
1387
1465
|
ROOT_ID: "0",
|
|
1388
1466
|
// 根节点ID
|
|
1389
1467
|
updateTreeData: null,
|
|
1390
|
-
treeDataMapping: {}
|
|
1391
|
-
|
|
1468
|
+
treeDataMapping: {},
|
|
1469
|
+
defaultPage: null
|
|
1470
|
+
// 当前页设置的默认页
|
|
1471
|
+
}), xa = ee({
|
|
1392
1472
|
saved: !1
|
|
1393
|
-
}),
|
|
1394
|
-
var
|
|
1395
|
-
if (!((
|
|
1473
|
+
}), Oe = 0, rt = 1, Aa = (t, a) => {
|
|
1474
|
+
var o, s;
|
|
1475
|
+
if (!((o = t == null ? void 0 : t.pageBaseStyle) != null && o.className) || !((s = t == null ? void 0 : t.pageBaseStyle) != null && s.style))
|
|
1396
1476
|
return "";
|
|
1397
1477
|
const n = (r, c) => `.${r} {
|
|
1398
1478
|
${c.trim()}
|
|
1399
1479
|
}
|
|
1400
|
-
`, e = `.${
|
|
1401
|
-
${
|
|
1480
|
+
`, e = `.${t.pageBaseStyle.className}{\r
|
|
1481
|
+
${t.pageBaseStyle.style}\r
|
|
1402
1482
|
}\r
|
|
1403
1483
|
`;
|
|
1404
|
-
return
|
|
1405
|
-
n(
|
|
1406
|
-
n(
|
|
1407
|
-
n(
|
|
1484
|
+
return a.useBaseStyle ? [
|
|
1485
|
+
n(t.pageBaseStyle.className, t.pageBaseStyle.style),
|
|
1486
|
+
n(a.blockBaseStyle.className, a.blockBaseStyle.style),
|
|
1487
|
+
n(a.componentBaseStyle.className, a.componentBaseStyle.style)
|
|
1408
1488
|
].join(`
|
|
1409
1489
|
`) : e;
|
|
1410
|
-
},
|
|
1411
|
-
const
|
|
1412
|
-
return !
|
|
1413
|
-
...
|
|
1490
|
+
}, Ga = () => {
|
|
1491
|
+
const t = qe("engine.plugins.materials"), a = qe("engine.plugins.appmanage");
|
|
1492
|
+
return !t || !a || !a.pageBaseStyle ? { ...Pe } : {
|
|
1493
|
+
...Pe,
|
|
1414
1494
|
page_content: {
|
|
1415
|
-
...
|
|
1495
|
+
...Pe.page_content,
|
|
1416
1496
|
props: {
|
|
1417
|
-
...
|
|
1418
|
-
className:
|
|
1497
|
+
...Pe.page_content.props,
|
|
1498
|
+
className: a.pageBaseStyle.className
|
|
1419
1499
|
},
|
|
1420
|
-
css:
|
|
1500
|
+
css: Aa(a, t)
|
|
1421
1501
|
}
|
|
1422
1502
|
};
|
|
1423
|
-
},
|
|
1424
|
-
const
|
|
1503
|
+
}, Va = () => {
|
|
1504
|
+
const t = E.currentPageData || {}, a = E.currentPageDataCopy || {};
|
|
1425
1505
|
let n = !0;
|
|
1426
|
-
return Object.keys(
|
|
1506
|
+
return Object.keys(a).some((e) => {
|
|
1427
1507
|
if (["children", "label", "createdBy", "assets", "occupier"].includes(e))
|
|
1428
1508
|
return !1;
|
|
1429
1509
|
if (e === "page_content") {
|
|
1430
|
-
const
|
|
1431
|
-
inputs: t[e].inputs,
|
|
1432
|
-
outputs: t[e].outputs,
|
|
1433
|
-
lifeCycles: t[e].lifeCycles
|
|
1434
|
-
}, o = {
|
|
1510
|
+
const o = {
|
|
1435
1511
|
inputs: a[e].inputs,
|
|
1436
1512
|
outputs: a[e].outputs,
|
|
1437
1513
|
lifeCycles: a[e].lifeCycles
|
|
1514
|
+
}, s = {
|
|
1515
|
+
inputs: t[e].inputs,
|
|
1516
|
+
outputs: t[e].outputs,
|
|
1517
|
+
lifeCycles: t[e].lifeCycles
|
|
1438
1518
|
};
|
|
1439
|
-
JSON.stringify(
|
|
1519
|
+
JSON.stringify(o) !== JSON.stringify(s) && (n = !1);
|
|
1440
1520
|
} else
|
|
1441
|
-
|
|
1521
|
+
a[e] !== t[e] && (n = !1);
|
|
1442
1522
|
return !n;
|
|
1443
1523
|
}), n;
|
|
1444
|
-
},
|
|
1524
|
+
}, We = (t) => t === E.ROOT_ID ? { id: E.ROOT_ID, children: E.pages[Oe].data } : E.treeDataMapping[t], Ra = (t, a) => {
|
|
1445
1525
|
var n, e;
|
|
1446
|
-
if (
|
|
1447
|
-
const
|
|
1448
|
-
if (!
|
|
1526
|
+
if (t && a && String(t) !== String(a)) {
|
|
1527
|
+
const o = We(t), s = We(a);
|
|
1528
|
+
if (!o || !s)
|
|
1449
1529
|
return;
|
|
1450
|
-
const r =
|
|
1530
|
+
const r = E.currentPageData.id, c = (e = (n = s.children) == null ? void 0 : n.findIndex) == null ? void 0 : e.call(n, ({ id: g }) => g === r);
|
|
1451
1531
|
if (c > -1) {
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1532
|
+
const g = s.children.splice(c, 1)[0];
|
|
1533
|
+
o.children || (o.children = []), o.children.unshift(g);
|
|
1454
1534
|
}
|
|
1455
1535
|
}
|
|
1456
|
-
},
|
|
1457
|
-
|
|
1458
|
-
},
|
|
1459
|
-
|
|
1460
|
-
},
|
|
1461
|
-
const { ROOT_ID:
|
|
1462
|
-
return
|
|
1536
|
+
}, Ma = () => E.currentPageData.page_content || {}, La = (t) => {
|
|
1537
|
+
E.currentPageData = t, E.currentPageDataCopy = de(!0, {}, t), E.oldParentId = t.parentId;
|
|
1538
|
+
}, Ha = () => {
|
|
1539
|
+
E.currentPageData = {}, E.currentPageDataCopy = {}, E.oldParentId = null, E.defaultPage = null;
|
|
1540
|
+
}, Ua = () => !ge(E.currentPageData, E.currentPageDataCopy), Xe = (t) => {
|
|
1541
|
+
const { ROOT_ID: a } = E, n = { [a]: { id: a } };
|
|
1542
|
+
return t.forEach((e) => {
|
|
1463
1543
|
n[e.id] = e;
|
|
1464
|
-
}),
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1544
|
+
}), t.forEach((e) => {
|
|
1545
|
+
const o = n[e.parentId];
|
|
1546
|
+
o && (o.children = o.children || [], o.children.push(e));
|
|
1467
1547
|
}), n;
|
|
1468
|
-
}, Ce = async (
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1471
|
-
const c = r.name ? r : { ...r, name: r.folderName, group: "staticPages" },
|
|
1548
|
+
}, Ce = async (t) => {
|
|
1549
|
+
const a = await ce.fetchPageList(t || G(V.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: Oe, data: [] }, e = { groupName: "公共页面", groupId: rt, data: [] };
|
|
1550
|
+
a.forEach((r) => {
|
|
1551
|
+
const c = r.name ? r : { ...r, name: r.folderName, group: "staticPages" }, g = r.meta ? {
|
|
1472
1552
|
...r,
|
|
1473
1553
|
...r.meta,
|
|
1474
1554
|
name: r.fileName,
|
|
1475
1555
|
isPage: !0,
|
|
1476
|
-
isBody: r.meta.rootElement ===
|
|
1477
|
-
} : c, { children:
|
|
1478
|
-
|
|
1556
|
+
isBody: r.meta.rootElement === ka.Body
|
|
1557
|
+
} : c, { children: I, ...y } = g;
|
|
1558
|
+
g.group === "staticPages" ? n.data.push(y) : e.data.push(y);
|
|
1479
1559
|
});
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1482
|
-
},
|
|
1483
|
-
if (
|
|
1560
|
+
const o = Xe(n.data), s = Xe(e.data);
|
|
1561
|
+
return E.treeDataMapping = { ...o, ...s }, n.data = o[E.ROOT_ID].children, E.pages = [n, e], E.pages;
|
|
1562
|
+
}, xe = (t) => {
|
|
1563
|
+
if (t === E.ROOT_ID)
|
|
1484
1564
|
return [];
|
|
1485
|
-
const
|
|
1486
|
-
return [
|
|
1487
|
-
},
|
|
1488
|
-
if (
|
|
1565
|
+
const a = E.treeDataMapping[t];
|
|
1566
|
+
return [a].concat(xe(a.parentId));
|
|
1567
|
+
}, qa = async (t, a) => {
|
|
1568
|
+
if (E.pages.length === 0 && await Ce(), !E.treeDataMapping[t])
|
|
1489
1569
|
return null;
|
|
1490
|
-
const e =
|
|
1491
|
-
return e.filter(
|
|
1492
|
-
},
|
|
1493
|
-
if (
|
|
1494
|
-
return
|
|
1495
|
-
const
|
|
1570
|
+
const e = xe(t).slice(1).reverse(), o = a ? () => !0 : (s) => s.isPage;
|
|
1571
|
+
return e.filter(o).map((s) => s.id);
|
|
1572
|
+
}, lt = (t) => {
|
|
1573
|
+
if (t.every((n) => n.isPage))
|
|
1574
|
+
return t;
|
|
1575
|
+
const a = t.map((n) => n.isPage ? n : (n.children || []).map((e) => ({
|
|
1496
1576
|
...e,
|
|
1497
1577
|
routePath: `${n.routePath || n.route}/${e.route}`
|
|
1498
1578
|
}))).flat();
|
|
1499
|
-
return
|
|
1500
|
-
},
|
|
1501
|
-
|
|
1502
|
-
const
|
|
1503
|
-
return Array.isArray(
|
|
1504
|
-
},
|
|
1505
|
-
const { pageState:
|
|
1506
|
-
|
|
1507
|
-
},
|
|
1508
|
-
if (
|
|
1509
|
-
|
|
1579
|
+
return lt(a);
|
|
1580
|
+
}, ja = async (t) => {
|
|
1581
|
+
E.pages.length === 0 && await Ce();
|
|
1582
|
+
const a = E.treeDataMapping[t];
|
|
1583
|
+
return Array.isArray(a == null ? void 0 : a.children) ? lt(a.children) : [];
|
|
1584
|
+
}, Ja = () => {
|
|
1585
|
+
const { pageState: t } = se();
|
|
1586
|
+
t.currentVm = null, t.hoverVm = null, t.properties = {}, t.pageSchema = null;
|
|
1587
|
+
}, it = (t, a = !1) => {
|
|
1588
|
+
if (Ja(), t !== 0 && !t) {
|
|
1589
|
+
a ? G(V.GlobalService).updateParams({ pageId: "", previewId: "" }) : G(V.GlobalService).updatePageId(""), se().initData({ componentName: Ba.Page }, {}), ne().layoutState.pageStatus = {
|
|
1510
1590
|
state: "empty",
|
|
1511
1591
|
data: {}
|
|
1512
1592
|
};
|
|
1513
1593
|
return;
|
|
1514
1594
|
}
|
|
1515
|
-
return ce.fetchPageDetail(
|
|
1516
|
-
n.isPage &&
|
|
1595
|
+
return ce.fetchPageDetail(t).then((n) => {
|
|
1596
|
+
n.isPage && pt().setBreadcrumbPage([n.name]), a ? G(V.GlobalService).updateParams({ pageId: t, previewId: "" }) : G(V.GlobalService).updatePageId(t), ne().closePlugin(), ne().layoutState.pageStatus = nt(n.occupier), se().initData(n.page_content, n);
|
|
1517
1597
|
}).catch(() => {
|
|
1518
1598
|
M({
|
|
1519
1599
|
type: "error",
|
|
1520
1600
|
message: "切换页面失败,目标页面不存在"
|
|
1521
1601
|
});
|
|
1522
1602
|
});
|
|
1523
|
-
},
|
|
1603
|
+
}, Ka = (t, a = !1) => {
|
|
1524
1604
|
(() => {
|
|
1525
|
-
const { isSaved: e, isBlock:
|
|
1526
|
-
return new Promise((
|
|
1605
|
+
const { isSaved: e, isBlock: o } = se();
|
|
1606
|
+
return new Promise((s) => {
|
|
1527
1607
|
if (e()) {
|
|
1528
|
-
|
|
1608
|
+
s(!0);
|
|
1529
1609
|
return;
|
|
1530
1610
|
}
|
|
1531
|
-
|
|
1611
|
+
oe().confirm({
|
|
1532
1612
|
title: "提示",
|
|
1533
|
-
message: `${
|
|
1613
|
+
message: `${o() ? "区块" : "页面"}尚未保存,是否要继续切换?`,
|
|
1534
1614
|
exec: () => {
|
|
1535
|
-
|
|
1615
|
+
s(!0);
|
|
1536
1616
|
},
|
|
1537
1617
|
cancel: () => {
|
|
1538
|
-
|
|
1618
|
+
s(!1);
|
|
1539
1619
|
}
|
|
1540
1620
|
});
|
|
1541
1621
|
});
|
|
1542
1622
|
})().then((e) => {
|
|
1543
|
-
e &&
|
|
1623
|
+
e && it(t, a);
|
|
1544
1624
|
});
|
|
1545
|
-
},
|
|
1625
|
+
}, Wa = (t, a) => {
|
|
1546
1626
|
var n, e;
|
|
1547
|
-
|
|
1548
|
-
},
|
|
1549
|
-
if (!
|
|
1627
|
+
a.id && ((n = a.pageInfo) != null && n.schema) && t.id === a.id && (t.page_content = (e = a.pageInfo) == null ? void 0 : e.schema);
|
|
1628
|
+
}, Xa = async (t) => {
|
|
1629
|
+
if (!t.page_content)
|
|
1550
1630
|
try {
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1553
|
-
} catch {
|
|
1554
|
-
|
|
1631
|
+
const a = await ce.fetchPageDetail(t.id);
|
|
1632
|
+
t.page_content = a.page_content;
|
|
1633
|
+
} catch (a) {
|
|
1634
|
+
throw t.page_content = {}, new Error(a);
|
|
1555
1635
|
}
|
|
1556
|
-
},
|
|
1557
|
-
var
|
|
1558
|
-
|
|
1559
|
-
},
|
|
1560
|
-
const { ROOT_ID: n } =
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1636
|
+
}, za = (t, a, n, e) => {
|
|
1637
|
+
var o;
|
|
1638
|
+
t.parentId !== e && !a.find((s) => s.id === t.parentId) && (t.parentId = (o = a[n - 1]) != null && o.id ? a[n - 1].id : e);
|
|
1639
|
+
}, Qa = async (t, a) => {
|
|
1640
|
+
const { ROOT_ID: n } = E;
|
|
1641
|
+
t.length > 0 && await Promise.all(
|
|
1642
|
+
t.map(async (e, o) => {
|
|
1643
|
+
Wa(e, a), await Xa(e), za(e, t, o, n);
|
|
1564
1644
|
})
|
|
1565
1645
|
);
|
|
1566
|
-
},
|
|
1567
|
-
|
|
1568
|
-
const
|
|
1569
|
-
return await
|
|
1570
|
-
},
|
|
1571
|
-
getDefaultPage:
|
|
1572
|
-
selectedTemplateCard:
|
|
1573
|
-
pageSettingState:
|
|
1574
|
-
isTemporaryPage:
|
|
1575
|
-
isCurrentDataSame:
|
|
1576
|
-
changeTreeData:
|
|
1577
|
-
getPageContent:
|
|
1578
|
-
resetPageData:
|
|
1579
|
-
initCurrentPageData:
|
|
1580
|
-
isChangePageData:
|
|
1646
|
+
}, Ya = async (t) => {
|
|
1647
|
+
E.pages.length === 0 && await Ce();
|
|
1648
|
+
const a = xe(t.id).filter((n) => n.isPage).reverse();
|
|
1649
|
+
return await Qa(a, t), a;
|
|
1650
|
+
}, Za = () => ({
|
|
1651
|
+
getDefaultPage: Ga,
|
|
1652
|
+
selectedTemplateCard: Oa,
|
|
1653
|
+
pageSettingState: E,
|
|
1654
|
+
isTemporaryPage: xa,
|
|
1655
|
+
isCurrentDataSame: Va,
|
|
1656
|
+
changeTreeData: Ra,
|
|
1657
|
+
getPageContent: Ma,
|
|
1658
|
+
resetPageData: Ha,
|
|
1659
|
+
initCurrentPageData: La,
|
|
1660
|
+
isChangePageData: Ua,
|
|
1581
1661
|
getPageList: Ce,
|
|
1582
|
-
getAncestors:
|
|
1583
|
-
switchPage:
|
|
1584
|
-
switchPageWithConfirm:
|
|
1585
|
-
getFamily:
|
|
1586
|
-
getPageChildren:
|
|
1587
|
-
STATIC_PAGE_GROUP_ID:
|
|
1588
|
-
COMMON_PAGE_GROUP_ID:
|
|
1589
|
-
}),
|
|
1662
|
+
getAncestors: qa,
|
|
1663
|
+
switchPage: it,
|
|
1664
|
+
switchPageWithConfirm: Ka,
|
|
1665
|
+
getFamily: Ya,
|
|
1666
|
+
getPageChildren: ja,
|
|
1667
|
+
STATIC_PAGE_GROUP_ID: Oe,
|
|
1668
|
+
COMMON_PAGE_GROUP_ID: rt
|
|
1669
|
+
}), $a = {
|
|
1590
1670
|
id: "engine.service.page",
|
|
1591
1671
|
type: "MetaService",
|
|
1592
|
-
apis:
|
|
1672
|
+
apis: Za(),
|
|
1593
1673
|
composable: {
|
|
1594
|
-
name:
|
|
1595
|
-
}
|
|
1596
|
-
}, za = {
|
|
1597
|
-
components: {
|
|
1598
|
-
TinyCheckbox: ke
|
|
1599
|
-
},
|
|
1600
|
-
setup() {
|
|
1601
|
-
const { pageSettingState: a, STATIC_PAGE_GROUP_ID: t } = ee(), { handleRouteHomeUpdate: n } = ce, { confirm: e } = se(), s = le({
|
|
1602
|
-
checked: !1,
|
|
1603
|
-
selectDisable: !1
|
|
1604
|
-
});
|
|
1605
|
-
Pe(() => {
|
|
1606
|
-
var _;
|
|
1607
|
-
const l = !!((_ = a.currentPageData) != null && _.isHome);
|
|
1608
|
-
s.checked = l, s.selectDisable = l;
|
|
1609
|
-
});
|
|
1610
|
-
const o = $(() => {
|
|
1611
|
-
let l = "暂无主页";
|
|
1612
|
-
if (a.pages[t]) {
|
|
1613
|
-
const y = a.pages[t].data.filter((f) => f.isHome);
|
|
1614
|
-
y[0] && (l = y[0].name);
|
|
1615
|
-
}
|
|
1616
|
-
return l;
|
|
1617
|
-
}), r = lt("openSettingPanel");
|
|
1618
|
-
return {
|
|
1619
|
-
pageSettingState: a,
|
|
1620
|
-
settingHome: () => {
|
|
1621
|
-
e({
|
|
1622
|
-
title: "提示",
|
|
1623
|
-
type: "warning ",
|
|
1624
|
-
message: "是否确定要将此页面设置为主页?您所做的任何未保存的更改都将被丢弃。",
|
|
1625
|
-
exec: () => {
|
|
1626
|
-
const { id: l } = a.currentPageData, _ = { ...a.currentPageData };
|
|
1627
|
-
_.isHome = !0, n(l, _).then(() => {
|
|
1628
|
-
a.updateTreeData(), r(a.currentPageData), a.isNew = !1, Ye && bt({
|
|
1629
|
-
pageId: l,
|
|
1630
|
-
componentsTree: _
|
|
1631
|
-
}), M({ message: "主页设置成功!", type: "success" });
|
|
1632
|
-
}).catch(() => {
|
|
1633
|
-
M({ message: "主页设置失败!", type: "error" });
|
|
1634
|
-
});
|
|
1635
|
-
},
|
|
1636
|
-
cancel: () => {
|
|
1637
|
-
s.checked = !1;
|
|
1638
|
-
}
|
|
1639
|
-
});
|
|
1640
|
-
},
|
|
1641
|
-
homePage: o,
|
|
1642
|
-
state: s
|
|
1643
|
-
};
|
|
1674
|
+
name: ft.usePage
|
|
1644
1675
|
}
|
|
1645
|
-
},
|
|
1646
|
-
function $a(a, t, n, e, s, o) {
|
|
1647
|
-
const r = P("tiny-checkbox");
|
|
1648
|
-
return v(), U("div", Qa, [
|
|
1649
|
-
d(r, {
|
|
1650
|
-
class: "selectHome",
|
|
1651
|
-
modelValue: e.state.checked,
|
|
1652
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.state.checked = c),
|
|
1653
|
-
disabled: e.state.selectDisable,
|
|
1654
|
-
onChange: e.settingHome
|
|
1655
|
-
}, {
|
|
1656
|
-
default: S(() => t[1] || (t[1] = [
|
|
1657
|
-
ue("设为主页")
|
|
1658
|
-
])),
|
|
1659
|
-
_: 1
|
|
1660
|
-
}, 8, ["modelValue", "disabled", "onChange"]),
|
|
1661
|
-
V("div", Ya, [
|
|
1662
|
-
t[2] || (t[2] = V("span", null, "当前主页是", -1)),
|
|
1663
|
-
V("span", Za, "【" + de(e.homePage) + "】", 1)
|
|
1664
|
-
])
|
|
1665
|
-
]);
|
|
1666
|
-
}
|
|
1667
|
-
const en = /* @__PURE__ */ te(za, [["render", $a], ["__scopeId", "data-v-b77a4074"]]), tn = {
|
|
1676
|
+
}, en = {
|
|
1668
1677
|
components: {
|
|
1669
|
-
TinyForm:
|
|
1670
|
-
TinyFormItem:
|
|
1671
|
-
TinyInput:
|
|
1672
|
-
TinySelect:
|
|
1673
|
-
|
|
1674
|
-
TinyRadio: _t,
|
|
1675
|
-
TinyCheckbox: ke
|
|
1678
|
+
TinyForm: Ft,
|
|
1679
|
+
TinyFormItem: bt,
|
|
1680
|
+
TinyInput: tt,
|
|
1681
|
+
TinySelect: Ct,
|
|
1682
|
+
TinyRadio: vt
|
|
1676
1683
|
},
|
|
1677
1684
|
props: {
|
|
1678
1685
|
modelValue: {
|
|
@@ -1686,35 +1693,56 @@ const en = /* @__PURE__ */ te(za, [["render", $a], ["__scopeId", "data-v-b77a407
|
|
|
1686
1693
|
},
|
|
1687
1694
|
setup() {
|
|
1688
1695
|
const {
|
|
1689
|
-
pageSettingState:
|
|
1690
|
-
changeTreeData:
|
|
1691
|
-
STATIC_PAGE_GROUP_ID: n
|
|
1692
|
-
|
|
1696
|
+
pageSettingState: t,
|
|
1697
|
+
changeTreeData: a,
|
|
1698
|
+
STATIC_PAGE_GROUP_ID: n,
|
|
1699
|
+
getPageChildren: e
|
|
1700
|
+
} = Y(), o = t.ROOT_ID, s = z({
|
|
1693
1701
|
get() {
|
|
1694
|
-
return String(
|
|
1702
|
+
return String(t.currentPageData.parentId);
|
|
1695
1703
|
},
|
|
1696
|
-
set(
|
|
1697
|
-
|
|
1704
|
+
set(d) {
|
|
1705
|
+
t.currentPageData.parentId = d;
|
|
1706
|
+
}
|
|
1707
|
+
}), r = K(s.value), c = ee({
|
|
1708
|
+
childPageList: [],
|
|
1709
|
+
childPageOp: [],
|
|
1710
|
+
defaultPageId: ""
|
|
1711
|
+
}), g = async (d) => {
|
|
1712
|
+
var P;
|
|
1713
|
+
if (t.isNew)
|
|
1714
|
+
c.childPageList = [], c.childPageOp = [], c.defaultPageId = "";
|
|
1715
|
+
else {
|
|
1716
|
+
c.childPageList = await e(d);
|
|
1717
|
+
const l = (P = c.childPageList) == null ? void 0 : P.find((u) => u.isDefault);
|
|
1718
|
+
t.defaultPage = l || null, c.defaultPageId = l ? l.id : "", c.childPageOp = c.childPageList.map((u) => ({
|
|
1719
|
+
value: u.id,
|
|
1720
|
+
label: u.name,
|
|
1721
|
+
icon: Ot()
|
|
1722
|
+
}));
|
|
1698
1723
|
}
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
|
|
1724
|
+
}, I = () => {
|
|
1725
|
+
t.defaultPage = c.childPageList.find((d) => d.id === c.defaultPageId);
|
|
1726
|
+
};
|
|
1727
|
+
Se(() => {
|
|
1728
|
+
var d;
|
|
1729
|
+
r.value = t.oldParentId, g((d = t.currentPageData) == null ? void 0 : d.id);
|
|
1702
1730
|
});
|
|
1703
|
-
const
|
|
1704
|
-
let
|
|
1705
|
-
for (;
|
|
1706
|
-
const
|
|
1707
|
-
if (!
|
|
1731
|
+
const y = z(() => {
|
|
1732
|
+
let d = t.currentPageData.route || "", P = s.value;
|
|
1733
|
+
for (; P !== o; ) {
|
|
1734
|
+
const l = t.treeDataMapping[P];
|
|
1735
|
+
if (!l)
|
|
1708
1736
|
break;
|
|
1709
|
-
|
|
1737
|
+
d = `${l.route}/${d}`, P = l.parentId;
|
|
1710
1738
|
}
|
|
1711
|
-
return
|
|
1712
|
-
}),
|
|
1739
|
+
return d.startsWith("/") && (d = d.slice(1)), d;
|
|
1740
|
+
}), m = {
|
|
1713
1741
|
name: [{
|
|
1714
1742
|
required: !0,
|
|
1715
1743
|
message: "请输入页面 ID"
|
|
1716
1744
|
}, {
|
|
1717
|
-
pattern:
|
|
1745
|
+
pattern: At,
|
|
1718
1746
|
message: "只允许包含英文字母,且为大写开头驼峰格式, 如DemoPage"
|
|
1719
1747
|
}, {
|
|
1720
1748
|
min: 3,
|
|
@@ -1725,15 +1753,15 @@ const en = /* @__PURE__ */ te(za, [["render", $a], ["__scopeId", "data-v-b77a407
|
|
|
1725
1753
|
required: !0,
|
|
1726
1754
|
message: "请输入页面路由"
|
|
1727
1755
|
}, {
|
|
1728
|
-
pattern:
|
|
1756
|
+
pattern: je,
|
|
1729
1757
|
message: "只允许包含英文字母、数字、下横线_、中横线-、正斜杠/, 且以英文字母开头"
|
|
1730
1758
|
}]
|
|
1731
|
-
},
|
|
1759
|
+
}, h = {
|
|
1732
1760
|
name: [{
|
|
1733
1761
|
required: !0,
|
|
1734
1762
|
message: "请输入页面文件夹 ID"
|
|
1735
1763
|
}, {
|
|
1736
|
-
pattern:
|
|
1764
|
+
pattern: xt,
|
|
1737
1765
|
message: "只允许包含英文字母、数字、下横线_、中横线-, 且以英文字母开头"
|
|
1738
1766
|
}, {
|
|
1739
1767
|
min: 3,
|
|
@@ -1744,76 +1772,81 @@ const en = /* @__PURE__ */ te(za, [["render", $a], ["__scopeId", "data-v-b77a407
|
|
|
1744
1772
|
required: !0,
|
|
1745
1773
|
message: "请输入页面文件夹路由"
|
|
1746
1774
|
}, {
|
|
1747
|
-
pattern:
|
|
1775
|
+
pattern: je,
|
|
1748
1776
|
message: "只允许包含英文字母、数字、下横线_、中横线-、正斜杠/, 且以英文字母开头"
|
|
1749
1777
|
}],
|
|
1750
1778
|
group: [{
|
|
1751
1779
|
required: !0,
|
|
1752
1780
|
message: "必须选择页面类型"
|
|
1753
1781
|
}]
|
|
1754
|
-
},
|
|
1782
|
+
}, f = (d) => {
|
|
1755
1783
|
const {
|
|
1756
|
-
id:
|
|
1757
|
-
name:
|
|
1758
|
-
isPage:
|
|
1759
|
-
children:
|
|
1760
|
-
} =
|
|
1761
|
-
id: String(
|
|
1762
|
-
name:
|
|
1763
|
-
isPage:
|
|
1784
|
+
id: P,
|
|
1785
|
+
name: l,
|
|
1786
|
+
isPage: u,
|
|
1787
|
+
children: N
|
|
1788
|
+
} = d, F = {
|
|
1789
|
+
id: String(P),
|
|
1790
|
+
name: l,
|
|
1791
|
+
isPage: u
|
|
1764
1792
|
};
|
|
1765
|
-
return Array.isArray(
|
|
1766
|
-
},
|
|
1793
|
+
return Array.isArray(N) && (F.children = N.filter((q) => q.id !== t.currentPageData.id).map((q) => f(q))), F;
|
|
1794
|
+
}, b = (d) => d.id === o ? null : d.isPage ? p(D("SvgIcon"), {
|
|
1767
1795
|
name: "text-page-common"
|
|
1768
|
-
}, null) :
|
|
1796
|
+
}, null) : p(D("SvgIcon"), {
|
|
1769
1797
|
name: "text-page-folder"
|
|
1770
|
-
}, null),
|
|
1771
|
-
var
|
|
1772
|
-
const
|
|
1798
|
+
}, null), w = z(() => {
|
|
1799
|
+
var N;
|
|
1800
|
+
const d = ((N = t.pages[n]) == null ? void 0 : N.data) || [];
|
|
1773
1801
|
return {
|
|
1774
|
-
data:
|
|
1802
|
+
data: f({
|
|
1775
1803
|
children: [{
|
|
1776
1804
|
name: "无",
|
|
1777
|
-
id:
|
|
1778
|
-
}].concat(
|
|
1805
|
+
id: o
|
|
1806
|
+
}].concat(d)
|
|
1779
1807
|
}).children,
|
|
1780
1808
|
shrinkIcon: null,
|
|
1781
1809
|
expandIcon: null,
|
|
1782
|
-
renderContent: (
|
|
1783
|
-
node:
|
|
1784
|
-
data:
|
|
1785
|
-
}) =>
|
|
1810
|
+
renderContent: (F, {
|
|
1811
|
+
node: q,
|
|
1812
|
+
data: x
|
|
1813
|
+
}) => p(ie, null, [b(x), p("div", null, [q.label])])
|
|
1786
1814
|
};
|
|
1787
|
-
}),
|
|
1815
|
+
}), O = K(null);
|
|
1788
1816
|
return {
|
|
1789
|
-
pageRules:
|
|
1790
|
-
folderRules:
|
|
1791
|
-
pageSettingState:
|
|
1817
|
+
pageRules: m,
|
|
1818
|
+
folderRules: h,
|
|
1819
|
+
pageSettingState: t,
|
|
1792
1820
|
pageParentId: s,
|
|
1793
|
-
generalForm:
|
|
1794
|
-
validGeneralForm: () => new Promise((
|
|
1795
|
-
|
|
1796
|
-
|
|
1821
|
+
generalForm: O,
|
|
1822
|
+
validGeneralForm: () => new Promise((d, P) => {
|
|
1823
|
+
O.value.validate((l) => {
|
|
1824
|
+
l ? d(l) : P(l);
|
|
1797
1825
|
});
|
|
1798
1826
|
}),
|
|
1799
|
-
treeFolderOp:
|
|
1800
|
-
currentRoute:
|
|
1801
|
-
changeParentForderId: (
|
|
1802
|
-
|
|
1803
|
-
}
|
|
1827
|
+
treeFolderOp: w,
|
|
1828
|
+
currentRoute: y,
|
|
1829
|
+
changeParentForderId: (d) => {
|
|
1830
|
+
a(d.id, r.value), r.value = d.id;
|
|
1831
|
+
},
|
|
1832
|
+
state: c,
|
|
1833
|
+
changeDefaultPage: I
|
|
1804
1834
|
};
|
|
1805
1835
|
}
|
|
1806
|
-
},
|
|
1836
|
+
}, tn = { class: "general-config" }, an = { class: "tip" }, nn = {
|
|
1807
1837
|
key: 0,
|
|
1808
1838
|
class: "text"
|
|
1809
|
-
},
|
|
1839
|
+
}, on = {
|
|
1810
1840
|
key: 1,
|
|
1811
1841
|
class: "route-text"
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1842
|
+
}, sn = { class: "tip-text-dim" }, rn = {
|
|
1843
|
+
key: 0,
|
|
1844
|
+
class: "tip"
|
|
1845
|
+
}, ln = { class: "tip-text-dim" }, cn = { class: "tip-text-dim" };
|
|
1846
|
+
function un(t, a, n, e, o, s) {
|
|
1847
|
+
const r = D("tiny-radio"), c = D("tiny-form-item"), g = D("tiny-input"), I = D("tiny-select"), y = D("tiny-form");
|
|
1848
|
+
return v(), U("div", tn, [
|
|
1849
|
+
p(y, {
|
|
1817
1850
|
ref: "generalForm",
|
|
1818
1851
|
model: e.pageSettingState.currentPageData,
|
|
1819
1852
|
rules: n.isFolder ? e.folderRules : e.pageRules,
|
|
@@ -1824,118 +1857,128 @@ function ln(a, t, n, e, s, o) {
|
|
|
1824
1857
|
"label-position": "top",
|
|
1825
1858
|
class: "general-config-form"
|
|
1826
1859
|
}, {
|
|
1827
|
-
default:
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1860
|
+
default: C(() => {
|
|
1861
|
+
var m;
|
|
1862
|
+
return [
|
|
1863
|
+
n.isFolder ? j("", !0) : (v(), H(c, {
|
|
1864
|
+
key: 0,
|
|
1865
|
+
prop: "group",
|
|
1866
|
+
label: "页面类型",
|
|
1867
|
+
class: "form-item-page-type"
|
|
1868
|
+
}, {
|
|
1869
|
+
default: C(() => [
|
|
1870
|
+
p(r, {
|
|
1871
|
+
modelValue: e.pageSettingState.currentPageData.group,
|
|
1872
|
+
"onUpdate:modelValue": a[0] || (a[0] = (h) => e.pageSettingState.currentPageData.group = h),
|
|
1873
|
+
class: "page-type-radio",
|
|
1874
|
+
label: "staticPages"
|
|
1875
|
+
}, {
|
|
1876
|
+
default: C(() => a[6] || (a[6] = [
|
|
1877
|
+
_e(" 静态页面 ")
|
|
1878
|
+
])),
|
|
1879
|
+
_: 1
|
|
1880
|
+
}, 8, ["modelValue"]),
|
|
1881
|
+
p(r, {
|
|
1882
|
+
modelValue: e.pageSettingState.currentPageData.group,
|
|
1883
|
+
"onUpdate:modelValue": a[1] || (a[1] = (h) => e.pageSettingState.currentPageData.group = h),
|
|
1884
|
+
class: "page-type-radio",
|
|
1885
|
+
label: "publicPages"
|
|
1886
|
+
}, {
|
|
1887
|
+
default: C(() => a[7] || (a[7] = [
|
|
1888
|
+
_e(" 公共页面 ")
|
|
1889
|
+
])),
|
|
1890
|
+
_: 1
|
|
1891
|
+
}, 8, ["modelValue"])
|
|
1892
|
+
]),
|
|
1893
|
+
_: 1
|
|
1894
|
+
})),
|
|
1895
|
+
p(c, {
|
|
1896
|
+
prop: "name",
|
|
1897
|
+
label: `${n.isFolder ? "文件夹" : "页面"}名称`
|
|
1898
|
+
}, {
|
|
1899
|
+
default: C(() => [
|
|
1900
|
+
p(g, {
|
|
1901
|
+
modelValue: e.pageSettingState.currentPageData.name,
|
|
1902
|
+
"onUpdate:modelValue": a[2] || (a[2] = (h) => e.pageSettingState.currentPageData.name = h),
|
|
1903
|
+
placeholder: `请设置${n.isFolder ? "文件夹" : "页面"}名称`
|
|
1904
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1905
|
+
]),
|
|
1906
|
+
_: 1
|
|
1907
|
+
}, 8, ["label"]),
|
|
1908
|
+
e.pageSettingState.currentPageData.group !== "publicPages" ? (v(), H(c, {
|
|
1909
|
+
key: 1,
|
|
1910
|
+
label: "父文件夹/父页面",
|
|
1911
|
+
prop: "parentId"
|
|
1912
|
+
}, {
|
|
1913
|
+
default: C(() => [
|
|
1914
|
+
p(I, {
|
|
1915
|
+
modelValue: e.pageParentId,
|
|
1916
|
+
"onUpdate:modelValue": a[3] || (a[3] = (h) => e.pageParentId = h),
|
|
1917
|
+
"value-field": "id",
|
|
1918
|
+
"render-type": "tree",
|
|
1919
|
+
"tree-op": e.treeFolderOp,
|
|
1920
|
+
"text-field": "name",
|
|
1921
|
+
placeholder: "请选择父文件夹/父页面",
|
|
1922
|
+
"popper-class": "parent-fold-select-dropdown",
|
|
1923
|
+
onChange: e.changeParentForderId
|
|
1924
|
+
}, null, 8, ["modelValue", "tree-op", "onChange"])
|
|
1925
|
+
]),
|
|
1926
|
+
_: 1
|
|
1927
|
+
})) : j("", !0),
|
|
1928
|
+
p(c, {
|
|
1929
|
+
label: "页面路由",
|
|
1930
|
+
prop: "route"
|
|
1931
|
+
}, {
|
|
1932
|
+
default: C(() => [
|
|
1933
|
+
p(g, {
|
|
1934
|
+
modelValue: e.pageSettingState.currentPageData.route,
|
|
1935
|
+
"onUpdate:modelValue": a[4] || (a[4] = (h) => e.pageSettingState.currentPageData.route = h),
|
|
1936
|
+
placeholder: "请设置路由"
|
|
1937
|
+
}, null, 8, ["modelValue"]),
|
|
1938
|
+
A("div", an, [
|
|
1939
|
+
e.pageSettingState.currentPageData.route ? (v(), U("span", on, [
|
|
1940
|
+
a[8] || (a[8] = A("span", { class: "tip-text" }, "website.com/", -1)),
|
|
1941
|
+
A("span", sn, ae(e.currentRoute), 1)
|
|
1942
|
+
])) : (v(), U("span", nn, "路由将以website.com开头"))
|
|
1943
|
+
])
|
|
1944
|
+
]),
|
|
1945
|
+
_: 1
|
|
1946
|
+
}),
|
|
1947
|
+
e.pageSettingState.currentPageData.group !== "publicPages" && !n.isFolder && ((m = e.state.childPageOp) != null && m.length) ? (v(), H(c, {
|
|
1948
|
+
key: 2,
|
|
1949
|
+
label: "设置默认跳转页",
|
|
1950
|
+
prop: "isDefault"
|
|
1951
|
+
}, {
|
|
1952
|
+
default: C(() => {
|
|
1953
|
+
var h, f;
|
|
1954
|
+
return [
|
|
1955
|
+
p(I, {
|
|
1956
|
+
modelValue: e.state.defaultPageId,
|
|
1957
|
+
"onUpdate:modelValue": a[5] || (a[5] = (b) => e.state.defaultPageId = b),
|
|
1958
|
+
options: e.state.childPageOp,
|
|
1959
|
+
placeholder: "请选择默认跳转页",
|
|
1960
|
+
onChange: e.changeDefaultPage
|
|
1961
|
+
}, null, 8, ["modelValue", "options", "onChange"]),
|
|
1962
|
+
e.state.defaultPageId ? (v(), U("div", rn, [
|
|
1963
|
+
a[9] || (a[9] = A("div", { class: "tip-text" }, "访问", -1)),
|
|
1964
|
+
A("span", ln, "/" + ae(e.currentRoute), 1),
|
|
1965
|
+
a[10] || (a[10] = A("div", { class: "tip-text" }, "路由,默认跳转", -1)),
|
|
1966
|
+
A("span", cn, "/" + ae(e.currentRoute) + "/" + ae((f = (h = e.pageSettingState) == null ? void 0 : h.defaultPage) == null ? void 0 : f.route), 1)
|
|
1967
|
+
])) : j("", !0)
|
|
1968
|
+
];
|
|
1969
|
+
}),
|
|
1970
|
+
_: 1
|
|
1971
|
+
})) : j("", !0)
|
|
1972
|
+
];
|
|
1973
|
+
}),
|
|
1930
1974
|
_: 1
|
|
1931
|
-
}, 8, ["model", "rules"])
|
|
1932
|
-
!n.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (v(), H(k, { key: 0 })) : j("", !0)
|
|
1975
|
+
}, 8, ["model", "rules"])
|
|
1933
1976
|
]);
|
|
1934
1977
|
}
|
|
1935
|
-
const
|
|
1936
|
-
...
|
|
1937
|
-
apis:
|
|
1938
|
-
entry:
|
|
1978
|
+
const gn = /* @__PURE__ */ Z(en, [["render", un], ["__scopeId", "data-v-875f317e"]]), In = {
|
|
1979
|
+
...pe,
|
|
1980
|
+
apis: Na,
|
|
1981
|
+
entry: Ta,
|
|
1939
1982
|
options: {
|
|
1940
1983
|
pageBaseStyle: {
|
|
1941
1984
|
className: "page-base-style",
|
|
@@ -1943,11 +1986,11 @@ const cn = /* @__PURE__ */ te(tn, [["render", ln], ["__scopeId", "data-v-830716e
|
|
|
1943
1986
|
}
|
|
1944
1987
|
},
|
|
1945
1988
|
components: {
|
|
1946
|
-
PageGeneral:
|
|
1989
|
+
PageGeneral: gn
|
|
1947
1990
|
},
|
|
1948
|
-
metas: [
|
|
1991
|
+
metas: [$a]
|
|
1949
1992
|
};
|
|
1950
1993
|
export {
|
|
1951
|
-
|
|
1952
|
-
|
|
1994
|
+
$a as PageService,
|
|
1995
|
+
In as default
|
|
1953
1996
|
};
|