@vancone/console-component 0.1.0-beta.5 → 0.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var Ze = Object.defineProperty, We = Object.defineProperties;
|
|
2
2
|
var $e = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Ge = Object.getOwnPropertySymbols;
|
|
4
4
|
var et = Object.prototype.hasOwnProperty, tt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Fe = (s, o, t) => o in s ? Ze(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, Ie = (s, o) => {
|
|
6
6
|
for (var t in o || (o = {}))
|
|
7
|
-
et.call(o, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
tt.call(o, t) &&
|
|
7
|
+
et.call(o, t) && Fe(s, t, o[t]);
|
|
8
|
+
if (Ge)
|
|
9
|
+
for (var t of Ge(o))
|
|
10
|
+
tt.call(o, t) && Fe(s, t, o[t]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
13
|
-
import { openBlock as n, createElementBlock as
|
|
12
|
+
}, Re = (s, o) => We(s, $e(o));
|
|
13
|
+
import { openBlock as n, createElementBlock as B, defineComponent as de, reactive as le, resolveComponent as w, createVNode as d, withCtx as r, createElementVNode as i, Fragment as ee, renderList as se, toDisplayString as Q, normalizeStyle as Ue, ref as S, onMounted as Oe, unref as v, createCommentVNode as T, createTextVNode as z, createBlock as _, resolveDynamicComponent as Ee, computed as Qe, watch as me, createStaticVNode as ot, nextTick as Ve, normalizeClass as De, resolveDirective as Pe, withDirectives as Te } from "vue";
|
|
14
14
|
import { useRoute as ke, useRouter as xe } from "vue-router";
|
|
15
15
|
import at from "axios";
|
|
16
|
-
import { ElMessage as
|
|
16
|
+
import { ElMessage as Be, ElMessageBox as nt } from "element-plus";
|
|
17
17
|
import { createI18n as lt, useI18n as _e } from "vue-i18n";
|
|
18
|
-
import { ArrowRight as st, Check as rt, Refresh as
|
|
19
|
-
import { cloneDeep as
|
|
18
|
+
import { ArrowRight as st, Check as rt, Refresh as Ke, QuestionFilled as it, Download as ct, Search as dt, ArrowDown as pt } from "@element-plus/icons-vue";
|
|
19
|
+
import { cloneDeep as be } from "lodash";
|
|
20
20
|
const re = (s, o) => {
|
|
21
21
|
const t = s.__vccOpts || s;
|
|
22
|
-
for (const [
|
|
23
|
-
t[
|
|
22
|
+
for (const [g, a] of o)
|
|
23
|
+
t[g] = a;
|
|
24
24
|
return t;
|
|
25
25
|
}, ut = {}, ft = { class: "building" };
|
|
26
26
|
function mt(s, o) {
|
|
27
|
-
return n(),
|
|
27
|
+
return n(), B("div", ft);
|
|
28
28
|
}
|
|
29
29
|
const ht = /* @__PURE__ */ re(ut, [["render", mt], ["__scopeId", "data-v-07bd45d2"]]), gt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAAHDCAYAAAC3RBrgAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nO3d21IcV77n8R9VCIGEDDrZtGRLaMIde7wnWpKD2Bf7SvQTlPoJTF/VZTOhB2j0AI6hL7kZl2MeoFVP0GhudsTMrrak3W5rtxQGrIPpBiFKQhwrq/ZFZiIEFNQhM9fKXN9PhMM6QPEPG9VP/7XWf2VPo9EQgOOVK8VRSaPBT29KGg5+PBz8fK+bkoZiKOP+vp8/kLQa/Hg1+LkkzRfGZuZj+PpA5vQQhIBUrhTDMNv/b0m6ZaquiIThGYbm7r8LYzOrTT8LcARBCKeUK8Vx+V3dqN4HXtqDrlv39T4g5+V3k7MmCwKSRBAik4JlzJvBP+Pyg++quYpSaUF+MM7KD8kHLLciiwhCpN4hoRfX/hx89+UH46wIR2QAQYjUCZY3x/U++Ag9s6p63zXOsqyKtCEIYb09wTcu9vPS4r78cCQYYT2CENYpV4o3Jd0WwZclYTDeK4zNPDjmY4FEEYQw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EQK7QnGcJ+RpVSzqvJD74EIPnSoywu92wlBKVgSDX9CECL1gmH+m3ofjDdFOMalqiDwgn8/YKgdUergQu92Q/C3l67fKe39BYIQmbQvHMN/GNloz4KCsBOhh4S1eKF3u8uhE5eu37m3/zcIQjglWFYdDf65KWlY7Dvel7QqP+zmJc2zvAlbHHGhdzsheF9+CM4f9psEIaDdEY4wGPf+W0p/UN4P/v1A7wNvVX6Hx+gCUmHfhd6thuCCpKn9S6H7EYRAi4Ll1tHgp2FYSh+Gpvb8ftT7lOH+3F5hqElBNxf+mGVMZE1woOb/SPqVmm91PJS/h126dP1OS6M6BCEAIJWCfcTQaqvBt99/AbvQE87h1n5GAAAAAElFTkSuQmCC", ie = at.create({
|
|
30
30
|
timeout: 2 * 60 * 1e3,
|
|
@@ -32,41 +32,41 @@ const ht = /* @__PURE__ */ re(ut, [["render", mt], ["__scopeId", "data-v-07bd45d
|
|
|
32
32
|
});
|
|
33
33
|
ie.interceptors.request.use((s) => s);
|
|
34
34
|
ie.interceptors.response.use((s) => {
|
|
35
|
-
const { headers: o, method: t } = s.config, { code:
|
|
36
|
-
return
|
|
35
|
+
const { headers: o, method: t } = s.config, { code: g, message: a } = s.data, { "No-Success-Message": e } = o, b = t !== "get";
|
|
36
|
+
return g === 0 ? (b && !e && Be({
|
|
37
37
|
message: a,
|
|
38
38
|
type: "success"
|
|
39
|
-
}), Promise.resolve(s)) : (
|
|
39
|
+
}), Promise.resolve(s)) : (Be({
|
|
40
40
|
type: "error",
|
|
41
41
|
message: a
|
|
42
|
-
}), Promise.reject(new Error(`${
|
|
42
|
+
}), Promise.reject(new Error(`${g}`)));
|
|
43
43
|
}, (s) => {
|
|
44
|
-
var
|
|
44
|
+
var g;
|
|
45
45
|
const { config: o, response: t } = s;
|
|
46
46
|
if (t) {
|
|
47
47
|
const { status: a } = t;
|
|
48
48
|
if (a === 401) {
|
|
49
49
|
const c = window.escape(window.location.href);
|
|
50
|
-
let C = (
|
|
50
|
+
let C = (g = t.data.data) != null ? g : "https://passport.vancone.com";
|
|
51
51
|
window.location.href = `${C}/?from=${c}`;
|
|
52
52
|
}
|
|
53
53
|
const { message: e, error: b } = t.data;
|
|
54
|
-
|
|
54
|
+
Be({
|
|
55
55
|
type: "error",
|
|
56
56
|
message: e || b
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
return Promise.reject(new Error(s.message || "Response Error"));
|
|
60
60
|
});
|
|
61
|
-
const
|
|
61
|
+
const Le = () => {
|
|
62
62
|
const { origin: s } = window.location;
|
|
63
63
|
return s.includes("beta") || s.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
64
|
-
},
|
|
64
|
+
}, je = Le();
|
|
65
65
|
function vt() {
|
|
66
|
-
return ie.get(`//${
|
|
66
|
+
return ie.get(`//${je}/api/passport/service/v1/account`);
|
|
67
67
|
}
|
|
68
68
|
function bt() {
|
|
69
|
-
return ie.delete(`//${
|
|
69
|
+
return ie.delete(`//${je}/api/passport/service/v1/login`);
|
|
70
70
|
}
|
|
71
71
|
function Ct() {
|
|
72
72
|
return ie.get("https://console.vancone.com/api/console/app-group?pageSize=1000");
|
|
@@ -80,8 +80,8 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
80
80
|
visible: { type: Boolean }
|
|
81
81
|
},
|
|
82
82
|
setup(s) {
|
|
83
|
-
const o = s, t =
|
|
84
|
-
function
|
|
83
|
+
const o = s, t = le([]);
|
|
84
|
+
function g() {
|
|
85
85
|
Ct().then(({ data: a }) => {
|
|
86
86
|
t.splice(0, t.length, ...a.data.list), yt().then(({ data: e }) => {
|
|
87
87
|
const b = e.data.list;
|
|
@@ -91,9 +91,9 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
return
|
|
95
|
-
const b =
|
|
96
|
-
return n(),
|
|
94
|
+
return g(), (a, e) => {
|
|
95
|
+
const b = w("el-input"), c = w("el-drawer");
|
|
96
|
+
return n(), B("div", wt, [
|
|
97
97
|
d(c, {
|
|
98
98
|
"modal-class": "drawer-modal",
|
|
99
99
|
"with-header": !1,
|
|
@@ -117,18 +117,18 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
117
117
|
i("span", { class: "service-name" }, "Datable")
|
|
118
118
|
], -1)),
|
|
119
119
|
i("div", kt, [
|
|
120
|
-
(n(!0),
|
|
121
|
-
i("h1", null,
|
|
122
|
-
(n(!0),
|
|
123
|
-
var
|
|
124
|
-
return n(),
|
|
125
|
-
style:
|
|
120
|
+
(n(!0), B(ee, null, se(t, (C) => (n(), B("div", _t, [
|
|
121
|
+
i("h1", null, Q(C.name), 1),
|
|
122
|
+
(n(!0), B(ee, null, se(C.apps, (A) => {
|
|
123
|
+
var V, G;
|
|
124
|
+
return n(), B("a", {
|
|
125
|
+
style: Ue([{ "text-decoration": "none" }, { pointerEvents: ((V = A.homepageUrl) == null ? void 0 : V.length) > 0 ? "auto" : "none" }]),
|
|
126
126
|
target: "_blank",
|
|
127
|
-
href:
|
|
127
|
+
href: A.homepageUrl
|
|
128
128
|
}, [
|
|
129
129
|
i("h2", {
|
|
130
|
-
style:
|
|
131
|
-
},
|
|
130
|
+
style: Ue({ color: ((G = A.homepageUrl) == null ? void 0 : G.length) > 0 ? "#555" : "#bbb" })
|
|
131
|
+
}, Q(A.name), 5)
|
|
132
132
|
], 12, It);
|
|
133
133
|
}), 256))
|
|
134
134
|
]))), 256))
|
|
@@ -229,7 +229,7 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
229
229
|
viewBox: "0 0 32 32"
|
|
230
230
|
};
|
|
231
231
|
function Bt(s, o) {
|
|
232
|
-
return n(),
|
|
232
|
+
return n(), B("svg", xt, o[0] || (o[0] = [
|
|
233
233
|
i("path", { d: "M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z" }, null, -1)
|
|
234
234
|
]));
|
|
235
235
|
}
|
|
@@ -241,7 +241,7 @@ const Ut = { render: Bt }, Ot = {
|
|
|
241
241
|
viewBox: "0 0 1024 1024"
|
|
242
242
|
};
|
|
243
243
|
function Gt(s, o) {
|
|
244
|
-
return n(),
|
|
244
|
+
return n(), B("svg", Ot, o[0] || (o[0] = [
|
|
245
245
|
i("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
|
|
246
246
|
]));
|
|
247
247
|
}
|
|
@@ -253,7 +253,7 @@ const Ft = { render: Gt }, Rt = {
|
|
|
253
253
|
viewBox: "0 0 1024 1024"
|
|
254
254
|
};
|
|
255
255
|
function Vt(s, o) {
|
|
256
|
-
return n(),
|
|
256
|
+
return n(), B("svg", Rt, o[0] || (o[0] = [
|
|
257
257
|
i("path", { d: "M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z" }, null, -1)
|
|
258
258
|
]));
|
|
259
259
|
}
|
|
@@ -264,7 +264,7 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
264
264
|
helpDocUrl: {}
|
|
265
265
|
},
|
|
266
266
|
setup(s) {
|
|
267
|
-
const { t: o } = _e(), t =
|
|
267
|
+
const { t: o } = _e(), t = S(), g = S(), a = S(), e = s, b = S(!1), c = S(""), C = S(Se.global.locale), A = le([
|
|
268
268
|
{
|
|
269
269
|
id: "en",
|
|
270
270
|
name: "English"
|
|
@@ -274,157 +274,157 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
274
274
|
name: "简体中文"
|
|
275
275
|
}
|
|
276
276
|
]);
|
|
277
|
-
|
|
278
|
-
c.value = decodeURIComponent(escape(window.atob(
|
|
279
|
-
var
|
|
280
|
-
|
|
277
|
+
Oe(() => {
|
|
278
|
+
c.value = decodeURIComponent(escape(window.atob(V("passport_username")))), c.value === "" && vt().then(({ data: p }) => {
|
|
279
|
+
var j;
|
|
280
|
+
p.code == 0 && (c.value = (j = p.data.name) != null ? j : p.data.displayId);
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
|
-
function
|
|
284
|
-
for (var
|
|
285
|
-
for (var
|
|
286
|
-
if (
|
|
287
|
-
return
|
|
283
|
+
function V(p) {
|
|
284
|
+
for (var j = p + "=", W = document.cookie.split(";"), N = 0; N < W.length; N++) {
|
|
285
|
+
for (var X = W[N]; X.charAt(0) == " "; ) X = X.substring(1);
|
|
286
|
+
if (X.indexOf(j) != -1)
|
|
287
|
+
return X.substring(j.length, X.length);
|
|
288
288
|
}
|
|
289
289
|
return "";
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function G() {
|
|
292
292
|
bt().then(() => {
|
|
293
|
-
const
|
|
294
|
-
window.location.href = `//${
|
|
293
|
+
const p = escape(window.location.href);
|
|
294
|
+
window.location.href = `//${Le()}/?from=${p}#login`;
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function L(
|
|
298
|
-
Se.global.locale.value =
|
|
297
|
+
function L(p) {
|
|
298
|
+
Se.global.locale.value = p, C.value = p, localStorage.setItem("locale", p);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function K() {
|
|
301
301
|
window.open("https://portal.vancone.com/", "_blank");
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function J() {
|
|
304
304
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
305
305
|
}
|
|
306
306
|
function D() {
|
|
307
307
|
window.open(e.helpDocUrl, "_blank");
|
|
308
308
|
}
|
|
309
|
-
return (
|
|
310
|
-
const
|
|
311
|
-
return n(),
|
|
309
|
+
return (p, j) => {
|
|
310
|
+
const W = w("el-tooltip"), N = w("el-avatar"), X = w("el-menu-item"), pe = w("el-icon"), m = w("el-popover"), P = w("el-menu");
|
|
311
|
+
return n(), B("div", Pt, [
|
|
312
312
|
i("div", {
|
|
313
313
|
class: "title",
|
|
314
|
-
onClick:
|
|
314
|
+
onClick: K
|
|
315
315
|
}, [
|
|
316
|
-
|
|
316
|
+
j[1] || (j[1] = i("img", {
|
|
317
317
|
src: gt,
|
|
318
318
|
class: "logo"
|
|
319
319
|
}, null, -1)),
|
|
320
|
-
|
|
321
|
-
i("span", null,
|
|
320
|
+
j[2] || (j[2] = i("h1", null, "VanCone", -1)),
|
|
321
|
+
i("span", null, Q(p.title), 1)
|
|
322
322
|
]),
|
|
323
323
|
d(St, { visible: b.value }, null, 8, ["visible"]),
|
|
324
324
|
i("div", Tt, [
|
|
325
|
-
d(
|
|
325
|
+
d(W, {
|
|
326
326
|
effect: "dark",
|
|
327
|
-
content:
|
|
327
|
+
content: v(o)("common.header.product"),
|
|
328
328
|
placement: "bottom"
|
|
329
329
|
}, {
|
|
330
330
|
default: r(() => [
|
|
331
331
|
i("div", {
|
|
332
332
|
class: "icon-wrapper",
|
|
333
|
-
onClick:
|
|
333
|
+
onClick: j[0] || (j[0] = (f) => b.value = !b.value)
|
|
334
334
|
}, [
|
|
335
|
-
d(
|
|
335
|
+
d(v(Ut))
|
|
336
336
|
])
|
|
337
337
|
]),
|
|
338
338
|
_: 1
|
|
339
339
|
}, 8, ["content"]),
|
|
340
|
-
d(
|
|
340
|
+
d(W, {
|
|
341
341
|
effect: "dark",
|
|
342
|
-
content:
|
|
342
|
+
content: v(o)("common.header.help"),
|
|
343
343
|
placement: "bottom"
|
|
344
344
|
}, {
|
|
345
345
|
default: r(() => [
|
|
346
|
-
e.helpDocUrl !== void 0 ? (n(),
|
|
346
|
+
e.helpDocUrl !== void 0 ? (n(), B("div", {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "icon-wrapper",
|
|
349
349
|
onClick: D
|
|
350
350
|
}, [
|
|
351
|
-
d(
|
|
352
|
-
])) :
|
|
351
|
+
d(v(Ft))
|
|
352
|
+
])) : T("", !0)
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["content"]),
|
|
356
|
-
d(
|
|
356
|
+
d(W, {
|
|
357
357
|
effect: "dark",
|
|
358
|
-
content:
|
|
358
|
+
content: v(o)("common.header.message"),
|
|
359
359
|
placement: "bottom"
|
|
360
360
|
}, {
|
|
361
361
|
default: r(() => [
|
|
362
362
|
i("div", Kt, [
|
|
363
|
-
d(
|
|
363
|
+
d(v(Dt))
|
|
364
364
|
])
|
|
365
365
|
]),
|
|
366
366
|
_: 1
|
|
367
367
|
}, 8, ["content"]),
|
|
368
368
|
i("div", Lt, [
|
|
369
|
-
d(
|
|
369
|
+
d(N, {
|
|
370
370
|
size: 30,
|
|
371
371
|
src: "",
|
|
372
372
|
ref_key: "avatarRef",
|
|
373
373
|
ref: t
|
|
374
374
|
}, {
|
|
375
375
|
default: r(() => [
|
|
376
|
-
i("span", jt,
|
|
376
|
+
i("span", jt, Q(c.value.substring(0, 2)), 1)
|
|
377
377
|
]),
|
|
378
378
|
_: 1
|
|
379
379
|
}, 512),
|
|
380
|
-
d(
|
|
380
|
+
d(m, {
|
|
381
381
|
teleported: !1,
|
|
382
382
|
width: "280",
|
|
383
383
|
effect: "dark",
|
|
384
384
|
ref_key: "popoverRef",
|
|
385
|
-
ref:
|
|
385
|
+
ref: g,
|
|
386
386
|
"virtual-ref": t.value,
|
|
387
387
|
trigger: "hover",
|
|
388
388
|
"virtual-triggering": ""
|
|
389
389
|
}, {
|
|
390
390
|
default: r(() => [
|
|
391
391
|
i("div", Xt, [
|
|
392
|
-
d(
|
|
392
|
+
d(N, {
|
|
393
393
|
size: 48,
|
|
394
394
|
src: ""
|
|
395
395
|
}, {
|
|
396
396
|
default: r(() => [
|
|
397
|
-
i("span", Yt,
|
|
397
|
+
i("span", Yt, Q(c.value.substring(0, 2)), 1)
|
|
398
398
|
]),
|
|
399
399
|
_: 1
|
|
400
400
|
}),
|
|
401
|
-
i("span", null,
|
|
401
|
+
i("span", null, Q(c.value), 1)
|
|
402
402
|
]),
|
|
403
403
|
d(P, { class: "user-menu" }, {
|
|
404
404
|
default: r(() => [
|
|
405
|
-
d(
|
|
405
|
+
d(X, { onClick: J }, {
|
|
406
406
|
default: r(() => [
|
|
407
|
-
|
|
407
|
+
z(Q(v(o)("common.header.userCenter")), 1)
|
|
408
408
|
]),
|
|
409
409
|
_: 1
|
|
410
410
|
}),
|
|
411
|
-
d(
|
|
411
|
+
d(X, {
|
|
412
412
|
ref_key: "switchLanguageRef",
|
|
413
413
|
ref: a,
|
|
414
414
|
style: { display: "flext", "justify-content": "space-between" }
|
|
415
415
|
}, {
|
|
416
416
|
default: r(() => [
|
|
417
|
-
i("span", null,
|
|
418
|
-
d(
|
|
417
|
+
i("span", null, Q(v(o)("common.header.switchLanguage")), 1),
|
|
418
|
+
d(pe, { style: { left: "15px" } }, {
|
|
419
419
|
default: r(() => [
|
|
420
|
-
d(
|
|
420
|
+
d(v(st))
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
})
|
|
424
424
|
]),
|
|
425
425
|
_: 1
|
|
426
426
|
}, 512),
|
|
427
|
-
d(
|
|
427
|
+
d(m, {
|
|
428
428
|
teleported: !1,
|
|
429
429
|
width: "150",
|
|
430
430
|
effect: "dark",
|
|
@@ -436,27 +436,27 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
436
436
|
"popper-style": "height: 80px; left: -165px"
|
|
437
437
|
}, {
|
|
438
438
|
default: r(() => [
|
|
439
|
-
(n(!0),
|
|
439
|
+
(n(!0), B(ee, null, se(A, (f) => (n(), B("div", {
|
|
440
440
|
class: "select-list",
|
|
441
|
-
onClick: (
|
|
441
|
+
onClick: (h) => L(f.id)
|
|
442
442
|
}, [
|
|
443
|
-
i("span", null,
|
|
444
|
-
f.id === C.value ? (n(), _(
|
|
443
|
+
i("span", null, Q(f.name), 1),
|
|
444
|
+
f.id === C.value ? (n(), _(pe, {
|
|
445
445
|
key: 0,
|
|
446
446
|
style: { color: "#8ba74f" }
|
|
447
447
|
}, {
|
|
448
448
|
default: r(() => [
|
|
449
|
-
d(
|
|
449
|
+
d(v(rt))
|
|
450
450
|
]),
|
|
451
451
|
_: 1
|
|
452
|
-
})) :
|
|
452
|
+
})) : T("", !0)
|
|
453
453
|
], 8, qt))), 256))
|
|
454
454
|
]),
|
|
455
455
|
_: 1
|
|
456
456
|
}, 8, ["virtual-ref"]),
|
|
457
|
-
d(
|
|
457
|
+
d(X, { onClick: G }, {
|
|
458
458
|
default: r(() => [
|
|
459
|
-
|
|
459
|
+
z(Q(v(o)("common.header.signOut")), 1)
|
|
460
460
|
]),
|
|
461
461
|
_: 1
|
|
462
462
|
})
|
|
@@ -471,30 +471,30 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
471
471
|
]);
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
}),
|
|
474
|
+
}), Xe = /* @__PURE__ */ re(Ht, [["__scopeId", "data-v-a9821cf9"]]), Jt = { class: "menu-icon-wrapper" }, zt = { class: "menu-icon-wrapper" }, Nt = /* @__PURE__ */ de({
|
|
475
475
|
__name: "SideMenuItem",
|
|
476
476
|
props: {
|
|
477
477
|
menu: {}
|
|
478
478
|
},
|
|
479
479
|
setup(s) {
|
|
480
480
|
const o = s;
|
|
481
|
-
return (t,
|
|
482
|
-
const a =
|
|
481
|
+
return (t, g) => {
|
|
482
|
+
const a = w("SideMenuItem", !0), e = w("el-sub-menu"), b = w("el-menu-item");
|
|
483
483
|
return t.menu.children && t.menu.children.length > 0 ? (n(), _(e, {
|
|
484
484
|
key: 0,
|
|
485
485
|
index: t.menu.path
|
|
486
486
|
}, {
|
|
487
487
|
title: r(() => {
|
|
488
|
-
var c, C,
|
|
488
|
+
var c, C, A;
|
|
489
489
|
return [
|
|
490
490
|
i("div", Jt, [
|
|
491
491
|
(n(), _(Ee((c = t.menu.meta) == null ? void 0 : c.icon), { class: "menu-icon" }))
|
|
492
492
|
]),
|
|
493
|
-
i("span", null,
|
|
493
|
+
i("span", null, Q(t.$t((A = (C = t.menu.meta) == null ? void 0 : C.title) != null ? A : "")), 1)
|
|
494
494
|
];
|
|
495
495
|
}),
|
|
496
496
|
default: r(() => [
|
|
497
|
-
(n(!0),
|
|
497
|
+
(n(!0), B(ee, null, se(t.menu.children, (c) => (n(), _(a, {
|
|
498
498
|
key: c.path,
|
|
499
499
|
route: c
|
|
500
500
|
}, null, 8, ["route"]))), 128))
|
|
@@ -508,7 +508,7 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
508
508
|
title: r(() => {
|
|
509
509
|
var c;
|
|
510
510
|
return [
|
|
511
|
-
i("span", null,
|
|
511
|
+
i("span", null, Q(t.$t((c = t.menu.title) != null ? c : "")), 1)
|
|
512
512
|
];
|
|
513
513
|
}),
|
|
514
514
|
default: r(() => [
|
|
@@ -520,7 +520,7 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
520
520
|
}, 8, ["index"]));
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
}), Zt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-e3b5500a"]]),
|
|
523
|
+
}), Zt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-e3b5500a"]]), fe = S({}), Wt = {}, $t = S([]), eo = {
|
|
524
524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
525
525
|
width: "32",
|
|
526
526
|
height: "32",
|
|
@@ -528,7 +528,7 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
528
528
|
viewBox: "0 0 1024 1024"
|
|
529
529
|
};
|
|
530
530
|
function to(s, o) {
|
|
531
|
-
return n(),
|
|
531
|
+
return n(), B("svg", eo, o[0] || (o[0] = [
|
|
532
532
|
i("path", {
|
|
533
533
|
fill: "#2c3e50",
|
|
534
534
|
d: "M958.06 237.681c0 9.612-7.792 17.405-17.404 17.405H79.092c-9.612 0-17.404-7.793-17.404-17.405v-90.03c0-9.612 7.792-17.405 17.404-17.405h861.563c9.612 0 17.404 7.793 17.404 17.405zM958.06 557.488c0 9.612-7.792 17.404-17.404 17.404H79.092c-9.612 0-17.404-7.792-17.404-17.404v-90.03c0-9.612 7.792-17.405 17.404-17.405h861.563c9.612 0 17.404 7.793 17.404 17.405zM958.06 877.295c0 9.612-7.792 17.404-17.404 17.404H79.092c-9.612 0-17.404-7.792-17.404-17.404v-90.03c0-9.613 7.792-17.405 17.404-17.405h861.563c9.612 0 17.404 7.792 17.404 17.404z"
|
|
@@ -542,30 +542,30 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
542
542
|
},
|
|
543
543
|
emits: ["update:menuCollapsed"],
|
|
544
544
|
setup(s, { emit: o }) {
|
|
545
|
-
const t = s,
|
|
546
|
-
var
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
549
|
-
let
|
|
550
|
-
return "/" + ((
|
|
545
|
+
const t = s, g = o, a = ke(), e = S(), b = Qe(() => {
|
|
546
|
+
var V;
|
|
547
|
+
const A = a.meta.activeMenu;
|
|
548
|
+
if (A === "{model}") {
|
|
549
|
+
let G = a.params.app ? `${a.params.app}/${a.params.model}` : a.params.model;
|
|
550
|
+
return "/" + ((V = Wt[a.params.model]) != null ? V : G);
|
|
551
551
|
} else
|
|
552
|
-
return
|
|
553
|
-
}), c =
|
|
552
|
+
return A;
|
|
553
|
+
}), c = S(!1);
|
|
554
554
|
function C() {
|
|
555
|
-
console.log("change"),
|
|
555
|
+
console.log("change"), g("update:menuCollapsed", !t.menuCollapsed);
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return me(c, () => {
|
|
558
558
|
c.value && e.value.style.width && (e.value.style.width += "200");
|
|
559
|
-
}), (
|
|
560
|
-
const
|
|
561
|
-
return n(),
|
|
559
|
+
}), (A, V) => {
|
|
560
|
+
const G = w("el-menu");
|
|
561
|
+
return n(), B("div", ao, [
|
|
562
562
|
i("div", no, [
|
|
563
|
-
d(
|
|
563
|
+
d(v(oo), {
|
|
564
564
|
class: "menu-button",
|
|
565
565
|
onClick: C
|
|
566
566
|
})
|
|
567
567
|
]),
|
|
568
|
-
d(
|
|
568
|
+
d(G, {
|
|
569
569
|
class: "menu",
|
|
570
570
|
"default-active": b.value,
|
|
571
571
|
"default-openeds": ["table"],
|
|
@@ -573,7 +573,7 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
573
573
|
collapse: t.menuCollapsed
|
|
574
574
|
}, {
|
|
575
575
|
default: r(() => [
|
|
576
|
-
(n(!0),
|
|
576
|
+
(n(!0), B(ee, null, se(v($t), (L) => (n(), _(Zt, {
|
|
577
577
|
key: L.path,
|
|
578
578
|
menu: L
|
|
579
579
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -583,33 +583,33 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
583
583
|
]);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
}),
|
|
586
|
+
}), Ye = /* @__PURE__ */ re(lo, [["__scopeId", "data-v-f9a7b402"]]), so = { class: "container" }, ro = /* @__PURE__ */ de({
|
|
587
587
|
__name: "ConsoleApp",
|
|
588
588
|
props: {
|
|
589
589
|
title: {},
|
|
590
590
|
helpDocUrl: {}
|
|
591
591
|
},
|
|
592
592
|
setup(s) {
|
|
593
|
-
const o = ke(), t =
|
|
594
|
-
return
|
|
595
|
-
t.value ?
|
|
593
|
+
const o = ke(), t = S(!1), g = S(), a = s;
|
|
594
|
+
return me(t, () => {
|
|
595
|
+
t.value ? g.value.style.width = "100%" : (g.value.style.transition = "width 0.5s ease", g.value.style.width = "calc(100% - 250px)");
|
|
596
596
|
}), (e, b) => {
|
|
597
|
-
const c =
|
|
598
|
-
return n(),
|
|
599
|
-
|
|
597
|
+
const c = w("router-view");
|
|
598
|
+
return n(), B(ee, null, [
|
|
599
|
+
v(o).query.embedded !== "true" ? (n(), _(Xe, {
|
|
600
600
|
key: 0,
|
|
601
601
|
title: a.title,
|
|
602
602
|
helpDocUrl: a.helpDocUrl
|
|
603
|
-
}, null, 8, ["title", "helpDocUrl"])) :
|
|
603
|
+
}, null, 8, ["title", "helpDocUrl"])) : T("", !0),
|
|
604
604
|
i("div", so, [
|
|
605
|
-
|
|
605
|
+
v(o).query.embedded !== "true" ? (n(), _(Ye, {
|
|
606
606
|
key: 0,
|
|
607
607
|
menuCollapsed: t.value,
|
|
608
608
|
"onUpdate:menuCollapsed": b[0] || (b[0] = (C) => t.value = C)
|
|
609
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
609
|
+
}, null, 8, ["menuCollapsed"])) : T("", !0),
|
|
610
610
|
i("main", {
|
|
611
611
|
ref_key: "mainWrapperRef",
|
|
612
|
-
ref:
|
|
612
|
+
ref: g,
|
|
613
613
|
class: "wrapper"
|
|
614
614
|
}, [
|
|
615
615
|
d(c)
|
|
@@ -624,28 +624,28 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
624
624
|
height: "800"
|
|
625
625
|
};
|
|
626
626
|
function co(s, o) {
|
|
627
|
-
return n(),
|
|
627
|
+
return n(), B("svg", io, o[0] || (o[0] = [
|
|
628
628
|
ot('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
|
|
629
629
|
]));
|
|
630
630
|
}
|
|
631
631
|
const po = { render: co }, uo = {}, fo = { class: "wrapper" }, mo = { class: "content" };
|
|
632
632
|
function ho(s, o) {
|
|
633
|
-
const t =
|
|
634
|
-
return n(),
|
|
633
|
+
const t = w("el-button");
|
|
634
|
+
return n(), B("div", fo, [
|
|
635
635
|
o[4] || (o[4] = i("img", { src: po }, null, -1)),
|
|
636
636
|
i("div", mo, [
|
|
637
637
|
o[3] || (o[3] = i("h1", null, "You have no permission to access the page.", -1)),
|
|
638
638
|
d(t, { type: "primary" }, {
|
|
639
639
|
default: r(() => o[1] || (o[1] = [
|
|
640
|
-
|
|
640
|
+
z("Apply")
|
|
641
641
|
])),
|
|
642
642
|
_: 1
|
|
643
643
|
}),
|
|
644
644
|
d(t, {
|
|
645
|
-
onClick: o[0] || (o[0] = (
|
|
645
|
+
onClick: o[0] || (o[0] = (g) => s.$router.go(-1))
|
|
646
646
|
}, {
|
|
647
647
|
default: r(() => o[2] || (o[2] = [
|
|
648
|
-
|
|
648
|
+
z("Go Back")
|
|
649
649
|
])),
|
|
650
650
|
_: 1
|
|
651
651
|
})
|
|
@@ -654,7 +654,7 @@ function ho(s, o) {
|
|
|
654
654
|
}
|
|
655
655
|
const go = /* @__PURE__ */ re(uo, [["render", ho], ["__scopeId", "data-v-0155b361"]]), vo = {};
|
|
656
656
|
function bo(s, o) {
|
|
657
|
-
const t =
|
|
657
|
+
const t = w("router-view");
|
|
658
658
|
return n(), _(t);
|
|
659
659
|
}
|
|
660
660
|
const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper" }, wo = ["onClick"], Ao = { class: "card-inner-wrapper" }, ko = { class: "card-title" }, _o = { class: "icon" }, Io = /* @__PURE__ */ de({
|
|
@@ -664,14 +664,14 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
664
664
|
tableRef: {}
|
|
665
665
|
},
|
|
666
666
|
setup(s) {
|
|
667
|
-
const { t: o } = _e(), t = ke(),
|
|
667
|
+
const { t: o } = _e(), t = ke(), g = xe(), a = s, e = S(a.cards[0].key);
|
|
668
668
|
function b(c) {
|
|
669
|
-
c.disabled || (e.value = c.key, a.tableRef.updateConfigAndRefresh(c.model),
|
|
669
|
+
c.disabled || (e.value = c.key, a.tableRef.updateConfigAndRefresh(c.model), g.push({
|
|
670
670
|
path: t.path,
|
|
671
|
-
query:
|
|
671
|
+
query: Re(Ie({}, t.query), { tab: c.key })
|
|
672
672
|
}));
|
|
673
673
|
}
|
|
674
|
-
return
|
|
674
|
+
return Oe(() => {
|
|
675
675
|
let c;
|
|
676
676
|
if (t.query.tab !== void 0) {
|
|
677
677
|
for (let C of a.cards)
|
|
@@ -680,10 +680,10 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
680
680
|
break;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
|
|
683
|
+
Ve(() => {
|
|
684
684
|
a.tableRef && a.cards && a.cards.length > 0 && a.tableRef.updateConfigAndRefresh((c != null ? c : a.cards[0]).model);
|
|
685
685
|
});
|
|
686
|
-
}),
|
|
686
|
+
}), me(
|
|
687
687
|
() => a.cards,
|
|
688
688
|
(c) => {
|
|
689
689
|
if (t.query.tab !== void 0) {
|
|
@@ -698,30 +698,30 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
698
698
|
{
|
|
699
699
|
deep: !0
|
|
700
700
|
}
|
|
701
|
-
), (c, C) => (n(),
|
|
702
|
-
(n(!0),
|
|
703
|
-
class:
|
|
704
|
-
onClick: (
|
|
701
|
+
), (c, C) => (n(), B("div", yo, [
|
|
702
|
+
(n(!0), B(ee, null, se(a.cards, (A) => (n(), B("div", {
|
|
703
|
+
class: De(["card", { "card-selected": e.value === A.key }]),
|
|
704
|
+
onClick: (V) => b(A)
|
|
705
705
|
}, [
|
|
706
706
|
i("div", Ao, [
|
|
707
707
|
i("div", ko, [
|
|
708
708
|
i("div", _o, [
|
|
709
|
-
|
|
709
|
+
A.icon ? (n(), _(Ee(A.icon), {
|
|
710
710
|
key: 0,
|
|
711
711
|
class: "svg-icon"
|
|
712
|
-
})) :
|
|
712
|
+
})) : T("", !0)
|
|
713
713
|
]),
|
|
714
714
|
i("span", {
|
|
715
|
-
style:
|
|
716
|
-
},
|
|
715
|
+
style: Ue({ color: A.disabled ? "#aaa" : "black" })
|
|
716
|
+
}, Q(v(o)(A.label)), 5)
|
|
717
717
|
]),
|
|
718
|
-
i("span", null,
|
|
718
|
+
i("span", null, Q(A.count), 1)
|
|
719
719
|
])
|
|
720
720
|
], 10, wo))), 256))
|
|
721
721
|
]));
|
|
722
722
|
}
|
|
723
|
-
}),
|
|
724
|
-
function
|
|
723
|
+
}), qe = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-3d98d97f"]]);
|
|
724
|
+
function ge(s, o, t) {
|
|
725
725
|
switch (o) {
|
|
726
726
|
case "POST":
|
|
727
727
|
return ie.post(s, t);
|
|
@@ -733,11 +733,11 @@ function ve(s, o, t) {
|
|
|
733
733
|
return ie.get(s, { params: t });
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
const
|
|
736
|
+
const Ae = (s) => {
|
|
737
737
|
const o = Object.keys(s);
|
|
738
738
|
let t = {};
|
|
739
|
-
o.forEach((
|
|
740
|
-
t[
|
|
739
|
+
o.forEach((g) => {
|
|
740
|
+
t[g] = void 0;
|
|
741
741
|
}), Object.assign(s, t);
|
|
742
742
|
}, Eo = {
|
|
743
743
|
key: 1,
|
|
@@ -754,40 +754,40 @@ const Be = (s) => {
|
|
|
754
754
|
},
|
|
755
755
|
emits: ["update:id"],
|
|
756
756
|
setup(s, { expose: o, emit: t }) {
|
|
757
|
-
const { t:
|
|
758
|
-
(
|
|
759
|
-
var
|
|
760
|
-
let P =
|
|
761
|
-
if (a.mode !== "view" && ((
|
|
757
|
+
const { t: g } = Se.global, a = s, e = le({}), b = S(!1), c = S(), C = le({}), A = S(!0), V = (m) => a.mode === "view" && (X(m, void 0) || X(m, "input") || X(m, "select") || X(m, "password")), G = Qe(() => a.model.fields ? a.model.fields.filter(
|
|
758
|
+
(m) => {
|
|
759
|
+
var h, y, x, M;
|
|
760
|
+
let P = m.visible !== !1 && ((h = m.formItemAttributes) == null ? void 0 : h.visible) !== !1;
|
|
761
|
+
if (a.mode !== "view" && ((y = m.formItemAttributes) == null ? void 0 : y.editable) === !1 || a.mode === "view" && ((x = m.formItemAttributes) == null ? void 0 : x.type) === "password")
|
|
762
762
|
return !1;
|
|
763
|
-
let f = (
|
|
763
|
+
let f = (M = m.formItemAttributes) == null ? void 0 : M.showCondition;
|
|
764
764
|
return f && f.field && f.value ? e[f.field] === f.value : P;
|
|
765
765
|
}
|
|
766
766
|
) : []);
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
me([() => a.id, () => a.sessionId], () => {
|
|
768
|
+
K();
|
|
769
769
|
});
|
|
770
770
|
function L() {
|
|
771
|
-
const
|
|
771
|
+
const m = a.model.fields;
|
|
772
772
|
let P = {};
|
|
773
|
-
|
|
774
|
-
var
|
|
775
|
-
if (e[f.prop] = null, f.visible !== !1 && ((
|
|
776
|
-
if (((
|
|
777
|
-
let
|
|
778
|
-
|
|
773
|
+
m == null || m.forEach((f) => {
|
|
774
|
+
var h, y, x, M, U, Y, I, u, F;
|
|
775
|
+
if (e[f.prop] = null, f.visible !== !1 && ((h = f.formItemAttributes) == null ? void 0 : h.visible) !== !1) {
|
|
776
|
+
if (((y = f.formItemAttributes) == null ? void 0 : y.defaultValue) !== void 0 ? e[f.prop] = (x = f.formItemAttributes) == null ? void 0 : x.defaultValue : e[f.prop] = void 0, a.mode !== "view") {
|
|
777
|
+
let q = (M = f.formItemAttributes) == null ? void 0 : M.validationRule;
|
|
778
|
+
q !== void 0 && (P[f.prop] = q), Object.assign(C, P);
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
if (l === "select" &&
|
|
782
|
-
let
|
|
783
|
-
const
|
|
784
|
-
|
|
785
|
-
var
|
|
786
|
-
if ((
|
|
787
|
-
let
|
|
788
|
-
Array.isArray(
|
|
789
|
-
value:
|
|
790
|
-
label: Z ?
|
|
780
|
+
const k = f.formItemAttributes, l = k == null ? void 0 : k.type, E = (U = k == null ? void 0 : k.selectAttributes) == null ? void 0 : U.api, O = (Y = k == null ? void 0 : k.selectAttributes) == null ? void 0 : Y.valueMappingField, Z = (I = k == null ? void 0 : k.selectAttributes) == null ? void 0 : I.labelMappingField;
|
|
781
|
+
if (l === "select" && E) {
|
|
782
|
+
let q = E;
|
|
783
|
+
const oe = (u = k == null ? void 0 : k.selectAttributes) == null ? void 0 : u.queryParamName, ce = (F = k == null ? void 0 : k.selectAttributes) == null ? void 0 : F.queryParamValueField;
|
|
784
|
+
oe && (q = `${q}?${oe}=${a.id}`), ce || ge(q, "GET", {}).then(({ data: ae }) => {
|
|
785
|
+
var ne;
|
|
786
|
+
if ((ne = f.formItemAttributes) != null && ne.selectAttributes) {
|
|
787
|
+
let R = [];
|
|
788
|
+
Array.isArray(ae.data) ? R = ae.data : ae.data.list && Array.isArray(ae.data.list) && (R = ae.data.list), f.formItemAttributes.selectAttributes.options = R.map(($) => ({
|
|
789
|
+
value: O ? $[O] : $.value,
|
|
790
|
+
label: Z ? $[Z] : $.label
|
|
791
791
|
}));
|
|
792
792
|
}
|
|
793
793
|
});
|
|
@@ -795,79 +795,79 @@ const Be = (s) => {
|
|
|
795
795
|
}
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
function
|
|
799
|
-
var
|
|
800
|
-
D(),
|
|
801
|
-
|
|
798
|
+
function K() {
|
|
799
|
+
var m;
|
|
800
|
+
D(), A.value = (m = a.model.useI18n) != null ? m : !0, L(), (a.mode === "update" || a.mode === "view") && a.id !== void 0 && a.id !== "" && (b.value = !0, ge(`${a.model.api}/${a.id}`, "GET", {}).then(({ data: P }) => {
|
|
801
|
+
Ae(e), Object.assign(e, P.data), b.value = !1;
|
|
802
802
|
}));
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
return new Promise((
|
|
806
|
-
var
|
|
807
|
-
((
|
|
804
|
+
function J() {
|
|
805
|
+
return new Promise((m, P) => {
|
|
806
|
+
var h, y, x, M;
|
|
807
|
+
((y = (h = a.model.formConfig) == null ? void 0 : h.functions) == null ? void 0 : y.beforeSubmit) !== void 0 && Object.assign(e, (M = (x = a.model.formConfig) == null ? void 0 : x.functions) == null ? void 0 : M.beforeSubmit(e));
|
|
808
808
|
let f = a.mode === "create" ? "POST" : "PUT";
|
|
809
|
-
a.model.api &&
|
|
810
|
-
var
|
|
811
|
-
|
|
809
|
+
a.model.api && ge(a.model.api, f, e).then(({ data: U }) => {
|
|
810
|
+
var Y, I, u, F;
|
|
811
|
+
U.code === 0 && (a.closeDialogFunc && a.closeDialogFunc(), ((I = (Y = a.model.formConfig) == null ? void 0 : Y.functions) == null ? void 0 : I.afterSubmit) !== void 0 && ((F = (u = a.model.formConfig) == null ? void 0 : u.functions) == null || F.afterSubmit(U.data)), a.afterSubmitFunc && a.afterSubmitFunc(), m());
|
|
812
812
|
});
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
function D() {
|
|
816
|
-
var
|
|
817
|
-
(
|
|
816
|
+
var m;
|
|
817
|
+
(m = c.value) == null || m.resetFields();
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
819
|
+
function p(m) {
|
|
820
|
+
return m.label ? A ? g(m.label) : m.label : m.prop.slice(0, 1).toUpperCase() + m.prop.slice(1).toLowerCase();
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
var P, f,
|
|
824
|
-
if (
|
|
825
|
-
if (
|
|
826
|
-
const
|
|
827
|
-
if (
|
|
828
|
-
return
|
|
829
|
-
const
|
|
830
|
-
if (
|
|
831
|
-
return e[
|
|
822
|
+
function j(m) {
|
|
823
|
+
var P, f, h, y;
|
|
824
|
+
if (m) {
|
|
825
|
+
if (X(m, "select")) {
|
|
826
|
+
const x = (f = (P = m.tableColumnAttributes) == null ? void 0 : P.functions) == null ? void 0 : f.transformValue;
|
|
827
|
+
if (x)
|
|
828
|
+
return x(e[m.prop]);
|
|
829
|
+
const M = (y = (h = m.formItemAttributes) == null ? void 0 : h.selectAttributes) == null ? void 0 : y.viewModeLabelField;
|
|
830
|
+
if (M)
|
|
831
|
+
return e[M];
|
|
832
832
|
}
|
|
833
|
-
return e[
|
|
833
|
+
return e[m.prop];
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function W(m) {
|
|
837
837
|
var P;
|
|
838
|
-
return ((P =
|
|
838
|
+
return ((P = m.formItemAttributes) == null ? void 0 : P.updatable) === !1 && a.mode === "update";
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
var
|
|
842
|
-
const f = (
|
|
843
|
-
switch (
|
|
840
|
+
function N(m, P) {
|
|
841
|
+
var h, y;
|
|
842
|
+
const f = (y = (h = P.formItemAttributes) == null ? void 0 : h.type) != null ? y : "input";
|
|
843
|
+
switch (m) {
|
|
844
844
|
case "input":
|
|
845
845
|
return a.mode === "view" ? !1 : f === "input" || f === "password";
|
|
846
846
|
case "select":
|
|
847
847
|
return !0;
|
|
848
848
|
default:
|
|
849
|
-
return console.log("Error: unrecognized form component type: ",
|
|
849
|
+
return console.log("Error: unrecognized form component type: ", m), !0;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function X(m, P) {
|
|
853
853
|
var f;
|
|
854
|
-
return ((f =
|
|
854
|
+
return ((f = m.formItemAttributes) == null ? void 0 : f.type) === P;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function pe(m) {
|
|
857
857
|
var P;
|
|
858
858
|
for (let f of a.model.fields) {
|
|
859
|
-
const
|
|
860
|
-
if (!(!f.formItemAttributes || f.formItemAttributes.type !== "select" || !
|
|
861
|
-
const
|
|
862
|
-
if (
|
|
863
|
-
let
|
|
864
|
-
const
|
|
865
|
-
|
|
866
|
-
if (
|
|
867
|
-
let
|
|
868
|
-
Array.isArray(
|
|
869
|
-
value:
|
|
870
|
-
label:
|
|
859
|
+
const h = (P = f.formItemAttributes) == null ? void 0 : P.selectAttributes;
|
|
860
|
+
if (!(!f.formItemAttributes || f.formItemAttributes.type !== "select" || !h || !h.queryParamValueField) && h.queryParamValueField === m.prop) {
|
|
861
|
+
const y = h.api;
|
|
862
|
+
if (y) {
|
|
863
|
+
let x = y;
|
|
864
|
+
const M = h.queryParamName;
|
|
865
|
+
M && (x = `${x}?${M}=${e[h.queryParamValueField]}`), ge(x, "GET", {}).then(({ data: U }) => {
|
|
866
|
+
if (h) {
|
|
867
|
+
let Y = [];
|
|
868
|
+
Array.isArray(U.data) ? Y = U.data : U.data.list && Array.isArray(U.data.list) && (Y = U.data.list), h.options = Y.map((I) => ({
|
|
869
|
+
value: h.valueMappingField ? I[h.valueMappingField] : I.value,
|
|
870
|
+
label: h.labelMappingField ? I[h.labelMappingField] : I.label
|
|
871
871
|
}));
|
|
872
872
|
}
|
|
873
873
|
});
|
|
@@ -875,16 +875,16 @@ const Be = (s) => {
|
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
return
|
|
879
|
-
|
|
878
|
+
return Oe(() => {
|
|
879
|
+
K();
|
|
880
880
|
}), o({
|
|
881
|
-
refresh:
|
|
881
|
+
refresh: K,
|
|
882
882
|
reset: D,
|
|
883
|
-
submit:
|
|
883
|
+
submit: J,
|
|
884
884
|
formData: e
|
|
885
|
-
}), (
|
|
886
|
-
const f =
|
|
887
|
-
return
|
|
885
|
+
}), (m, P) => {
|
|
886
|
+
const f = w("el-input"), h = w("el-switch"), y = w("el-date-picker"), x = w("el-option"), M = w("el-select"), U = w("el-form-item"), Y = w("el-form"), I = Pe("loading");
|
|
887
|
+
return Te((n(), _(Y, {
|
|
888
888
|
ref_key: "formRef",
|
|
889
889
|
ref: c,
|
|
890
890
|
model: e,
|
|
@@ -895,52 +895,52 @@ const Be = (s) => {
|
|
|
895
895
|
inline: !0
|
|
896
896
|
}, {
|
|
897
897
|
default: r(() => [
|
|
898
|
-
(n(!0),
|
|
898
|
+
(n(!0), B(ee, null, se(G.value, (u) => (n(), _(U, {
|
|
899
899
|
class: "form-item",
|
|
900
|
-
prop:
|
|
901
|
-
label:
|
|
900
|
+
prop: u.prop,
|
|
901
|
+
label: p(u)
|
|
902
902
|
}, {
|
|
903
903
|
default: r(() => {
|
|
904
|
-
var
|
|
904
|
+
var F;
|
|
905
905
|
return [
|
|
906
|
-
|
|
906
|
+
N("input", u) ? (n(), _(f, {
|
|
907
907
|
key: 0,
|
|
908
|
-
type:
|
|
909
|
-
modelValue: e[
|
|
910
|
-
"onUpdate:modelValue": (
|
|
911
|
-
placeholder: (
|
|
912
|
-
disabled:
|
|
913
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
914
|
-
|
|
915
|
-
|
|
908
|
+
type: X(u, "password") ? "password" : "text",
|
|
909
|
+
modelValue: e[u.prop],
|
|
910
|
+
"onUpdate:modelValue": (k) => e[u.prop] = k,
|
|
911
|
+
placeholder: (F = u.formItemAttributes) == null ? void 0 : F.placeholder,
|
|
912
|
+
disabled: W(u)
|
|
913
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : T("", !0),
|
|
914
|
+
V(u) ? (n(), B("span", Eo, Q(j(u)), 1)) : T("", !0),
|
|
915
|
+
X(u, "switch") ? (n(), _(h, {
|
|
916
916
|
key: 2,
|
|
917
|
-
modelValue: e[
|
|
918
|
-
"onUpdate:modelValue": (
|
|
919
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) :
|
|
920
|
-
|
|
917
|
+
modelValue: e[u.prop],
|
|
918
|
+
"onUpdate:modelValue": (k) => e[u.prop] = k
|
|
919
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : T("", !0),
|
|
920
|
+
X(u, "datepicker") ? (n(), _(y, {
|
|
921
921
|
key: 3,
|
|
922
922
|
type: "date",
|
|
923
|
-
modelValue: e[
|
|
924
|
-
"onUpdate:modelValue": (
|
|
925
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) :
|
|
926
|
-
|
|
923
|
+
modelValue: e[u.prop],
|
|
924
|
+
"onUpdate:modelValue": (k) => e[u.prop] = k
|
|
925
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : T("", !0),
|
|
926
|
+
X(u, "select") && m.mode !== "view" ? (n(), _(M, {
|
|
927
927
|
key: 4,
|
|
928
|
-
modelValue: e[
|
|
929
|
-
"onUpdate:modelValue": (
|
|
930
|
-
disabled:
|
|
931
|
-
onChange: (
|
|
928
|
+
modelValue: e[u.prop],
|
|
929
|
+
"onUpdate:modelValue": (k) => e[u.prop] = k,
|
|
930
|
+
disabled: W(u),
|
|
931
|
+
onChange: (k) => pe(u)
|
|
932
932
|
}, {
|
|
933
933
|
default: r(() => {
|
|
934
|
-
var
|
|
934
|
+
var k, l;
|
|
935
935
|
return [
|
|
936
|
-
(n(!0),
|
|
937
|
-
value:
|
|
938
|
-
label:
|
|
936
|
+
(n(!0), B(ee, null, se((l = (k = u.formItemAttributes) == null ? void 0 : k.selectAttributes) == null ? void 0 : l.options, (E) => (n(), _(x, {
|
|
937
|
+
value: E.value,
|
|
938
|
+
label: E.label
|
|
939
939
|
}, null, 8, ["value", "label"]))), 256))
|
|
940
940
|
];
|
|
941
941
|
}),
|
|
942
942
|
_: 2
|
|
943
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) :
|
|
943
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : T("", !0)
|
|
944
944
|
];
|
|
945
945
|
}),
|
|
946
946
|
_: 2
|
|
@@ -948,11 +948,11 @@ const Be = (s) => {
|
|
|
948
948
|
]),
|
|
949
949
|
_: 1
|
|
950
950
|
}, 8, ["model", "rules"])), [
|
|
951
|
-
[
|
|
951
|
+
[I, b.value]
|
|
952
952
|
]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), He = /* @__PURE__ */ re(So, [["__scopeId", "data-v-ff15efb9"]]), Mo = { class: "dialog-footer" }, Qo = { class: "operation-button-wrapper" }, xo = /* @__PURE__ */ de({
|
|
956
956
|
__name: "FormDialog",
|
|
957
957
|
props: {
|
|
958
958
|
id: {},
|
|
@@ -963,57 +963,57 @@ const Be = (s) => {
|
|
|
963
963
|
},
|
|
964
964
|
emits: ["update:visible", "update:id"],
|
|
965
965
|
setup(s, { expose: o, emit: t }) {
|
|
966
|
-
const { t:
|
|
967
|
-
|
|
966
|
+
const { t: g } = _e(), a = s, e = S(0), b = t, c = S();
|
|
967
|
+
me(() => a.visible, () => {
|
|
968
968
|
a.visible && e.value++;
|
|
969
969
|
});
|
|
970
970
|
function C() {
|
|
971
971
|
c.value && c.value.refresh();
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function A() {
|
|
974
974
|
b("update:visible", !1), c.value.reset();
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function V() {
|
|
977
977
|
c.value.submit();
|
|
978
978
|
}
|
|
979
979
|
return o({
|
|
980
|
-
close:
|
|
980
|
+
close: A,
|
|
981
981
|
refresh: C
|
|
982
|
-
}), (
|
|
983
|
-
const
|
|
984
|
-
return n(), _(
|
|
982
|
+
}), (G, L) => {
|
|
983
|
+
const K = w("el-button"), J = w("el-dialog");
|
|
984
|
+
return n(), _(J, {
|
|
985
985
|
title: "Edit",
|
|
986
986
|
"model-value": a.visible,
|
|
987
987
|
width: "800px",
|
|
988
|
-
onClose:
|
|
988
|
+
onClose: A
|
|
989
989
|
}, {
|
|
990
990
|
footer: r(() => {
|
|
991
991
|
var D;
|
|
992
992
|
return [
|
|
993
993
|
i("div", Mo, [
|
|
994
994
|
i("div", Qo, [
|
|
995
|
-
(n(!0),
|
|
996
|
-
onClick: (
|
|
995
|
+
(n(!0), B(ee, null, se((D = a.model.formConfig) == null ? void 0 : D.dialogButtons, (p) => (n(), _(K, {
|
|
996
|
+
onClick: (j) => p.function(c.value.formData)
|
|
997
997
|
}, {
|
|
998
998
|
default: r(() => [
|
|
999
|
-
|
|
999
|
+
z(Q(v(g)(p.label)), 1)
|
|
1000
1000
|
]),
|
|
1001
1001
|
_: 2
|
|
1002
1002
|
}, 1032, ["onClick"]))), 256))
|
|
1003
1003
|
]),
|
|
1004
1004
|
i("div", null, [
|
|
1005
|
-
d(
|
|
1005
|
+
d(K, { onClick: A }, {
|
|
1006
1006
|
default: r(() => [
|
|
1007
|
-
|
|
1007
|
+
z(Q(v(g)("common.basic.cancel")), 1)
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 1
|
|
1010
1010
|
}),
|
|
1011
|
-
d(
|
|
1011
|
+
d(K, {
|
|
1012
1012
|
type: "primary",
|
|
1013
|
-
onClick:
|
|
1013
|
+
onClick: V
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: r(() => [
|
|
1016
|
-
|
|
1016
|
+
z(Q(v(g)("common.basic.save")), 1)
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
1019
1019
|
})
|
|
@@ -1022,7 +1022,7 @@ const Be = (s) => {
|
|
|
1022
1022
|
];
|
|
1023
1023
|
}),
|
|
1024
1024
|
default: r(() => [
|
|
1025
|
-
d(
|
|
1025
|
+
d(He, {
|
|
1026
1026
|
ref_key: "formViewRef",
|
|
1027
1027
|
ref: c,
|
|
1028
1028
|
id: a.id,
|
|
@@ -1030,87 +1030,87 @@ const Be = (s) => {
|
|
|
1030
1030
|
mode: a.mode,
|
|
1031
1031
|
model: a.model,
|
|
1032
1032
|
afterSubmitFunc: a.afterSubmitFunc,
|
|
1033
|
-
closeDialogFunc:
|
|
1033
|
+
closeDialogFunc: A
|
|
1034
1034
|
}, null, 8, ["id", "sessionId", "mode", "model", "afterSubmitFunc"])
|
|
1035
1035
|
]),
|
|
1036
1036
|
_: 1
|
|
1037
1037
|
}, 8, ["model-value"]);
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
}),
|
|
1040
|
+
}), Je = /* @__PURE__ */ re(xo, [["__scopeId", "data-v-d1628662"]]), Bo = { class: "toolbar" }, Uo = { class: "tool-buttons" }, Oo = { class: "tool-buttons" }, Go = { key: 1 }, Fo = /* @__PURE__ */ de({
|
|
1041
1041
|
__name: "TableView",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
model: {}
|
|
1044
1044
|
},
|
|
1045
1045
|
setup(s, { expose: o }) {
|
|
1046
|
-
const { t } = Se.global,
|
|
1046
|
+
const { t } = Se.global, g = s, a = le([]), e = le({
|
|
1047
1047
|
showPane: !0
|
|
1048
|
-
}), b =
|
|
1048
|
+
}), b = S(""), c = S(!0), C = S(!1), A = xe(), V = S(""), G = le([]), L = le([]), K = S(), J = S([]), D = S("create"), p = S(!0), j = S(!1), W = S(""), N = le({
|
|
1049
1049
|
pageSize: 10,
|
|
1050
1050
|
pageNo: 1,
|
|
1051
1051
|
totalElements: 0
|
|
1052
|
-
}),
|
|
1052
|
+
}), X = Qe(() => a.filter(
|
|
1053
1053
|
(l) => {
|
|
1054
|
-
var
|
|
1055
|
-
return ((
|
|
1054
|
+
var E, O;
|
|
1055
|
+
return ((E = l.formItemAttributes) == null ? void 0 : E.type) !== "password" && l.visible !== !1 && ((O = l.tableColumnAttributes) == null ? void 0 : O.visible) !== !1;
|
|
1056
1056
|
}
|
|
1057
1057
|
));
|
|
1058
|
-
function
|
|
1059
|
-
var
|
|
1060
|
-
let
|
|
1061
|
-
const Z = (ce = (
|
|
1058
|
+
function pe(l, E) {
|
|
1059
|
+
var oe, ce, ae, ne;
|
|
1060
|
+
let O = E.row[l.prop];
|
|
1061
|
+
const Z = (ce = (oe = l.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ce.transformValue, q = (ae = l.tableColumnAttributes) == null ? void 0 : ae.transformValueMappings;
|
|
1062
1062
|
if (Z)
|
|
1063
|
-
|
|
1064
|
-
else if (
|
|
1065
|
-
for (let
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1063
|
+
O = Z(O);
|
|
1064
|
+
else if (q && q.length > 0) {
|
|
1065
|
+
for (let R of q)
|
|
1066
|
+
if (O === R.value) {
|
|
1067
|
+
O = t(R.label);
|
|
1068
1068
|
break;
|
|
1069
1069
|
}
|
|
1070
|
-
} else if (((
|
|
1071
|
-
const
|
|
1072
|
-
if (
|
|
1073
|
-
if (
|
|
1074
|
-
|
|
1075
|
-
else if (
|
|
1076
|
-
for (let
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
1070
|
+
} else if (((ne = l.formItemAttributes) == null ? void 0 : ne.type) === "select") {
|
|
1071
|
+
const R = l.formItemAttributes.selectAttributes;
|
|
1072
|
+
if (R) {
|
|
1073
|
+
if (R.viewModeLabelField)
|
|
1074
|
+
O = E.row[R.viewModeLabelField];
|
|
1075
|
+
else if (R.options && R.options.length > 0) {
|
|
1076
|
+
for (let $ of R.options)
|
|
1077
|
+
if ($.value === E.row[l.prop]) {
|
|
1078
|
+
O = $.label;
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
return
|
|
1084
|
+
return O;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1087
|
-
var
|
|
1088
|
-
return l.label ? t(l.label) : (Z = (
|
|
1086
|
+
function m(l, E) {
|
|
1087
|
+
var O, Z;
|
|
1088
|
+
return l.label ? t(l.label) : (Z = (O = l.functions) == null ? void 0 : O.transformLabel) == null ? void 0 : Z.call(O, E.$index, E.row);
|
|
1089
1089
|
}
|
|
1090
1090
|
function P(l) {
|
|
1091
|
-
Object.assign(
|
|
1091
|
+
Ae(g.model), Object.assign(g.model, l);
|
|
1092
1092
|
}
|
|
1093
1093
|
function f() {
|
|
1094
|
-
var
|
|
1095
|
-
if (
|
|
1094
|
+
var E, O, Z;
|
|
1095
|
+
if (p.value = !0, !g.model || !g.model.api)
|
|
1096
1096
|
return;
|
|
1097
|
-
|
|
1097
|
+
Ae(e), e.showPane = !0, Object.assign(e, (E = g.model.tableConfig) != null ? E : {}), a.splice(0, a.length, ...g.model.fields), b.value = (O = g.model.route) != null ? O : "", c.value = (Z = g.model.useI18n) != null ? Z : !0;
|
|
1098
1098
|
let l = Ie({}, e.queryParams);
|
|
1099
|
-
l.pageSize =
|
|
1100
|
-
const { list:
|
|
1101
|
-
|
|
1099
|
+
l.pageSize = N.pageSize, l.pageNo = N.pageNo, l.search = V.value, ge(g.model.api, "GET", l).then(({ data: q }) => {
|
|
1100
|
+
const { list: oe, totalCount: ce } = q.data;
|
|
1101
|
+
G.splice(0, G.length, ...oe), N.totalElements = ce, p.value = !1;
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
var l,
|
|
1106
|
-
e.createPageRoutePath !== void 0 ?
|
|
1104
|
+
function h() {
|
|
1105
|
+
var l, E;
|
|
1106
|
+
e.createPageRoutePath !== void 0 ? A.push(e.createPageRoutePath) : ((l = e.functions) == null ? void 0 : l.create) !== void 0 ? (E = e.functions) == null || E.create() : (D.value = "create", W.value = "", C.value = !0);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
|
|
1110
|
-
|
|
1108
|
+
function y(l, E) {
|
|
1109
|
+
g.model.api && ge(g.model.api, "DELETE", E.id).then(({ data: O }) => {
|
|
1110
|
+
O.code === 0 && (C.value = !1, f());
|
|
1111
1111
|
});
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function x() {
|
|
1114
1114
|
nt.confirm(
|
|
1115
1115
|
"The selected items will be deleted. Continue?",
|
|
1116
1116
|
t("common.table.warning"),
|
|
@@ -1120,156 +1120,156 @@ const Be = (s) => {
|
|
|
1120
1120
|
type: "warning"
|
|
1121
1121
|
}
|
|
1122
1122
|
).then(() => {
|
|
1123
|
-
var l,
|
|
1123
|
+
var l, E;
|
|
1124
1124
|
if (((l = e.functions) == null ? void 0 : l.batchDelete) !== void 0)
|
|
1125
|
-
(
|
|
1125
|
+
(E = e.functions) == null || E.batchDelete(J.value);
|
|
1126
1126
|
else {
|
|
1127
|
-
const
|
|
1128
|
-
ie.delete(`${
|
|
1127
|
+
const O = J.value.map((Z) => Z.id);
|
|
1128
|
+
ie.delete(`${g.model.api}/${O.join(",")}`).then(({ data: Z }) => {
|
|
1129
1129
|
Z.code === 0 && (C.value = !1, f());
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1132
|
+
K.value.clearSelection();
|
|
1133
1133
|
}).catch(() => {
|
|
1134
|
-
|
|
1134
|
+
K.value.clearSelection();
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1137
|
+
function M(l) {
|
|
1138
|
+
N.pageSize = l, f();
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
|
|
1140
|
+
function U(l) {
|
|
1141
|
+
N.pageNo = l, f();
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
e.editPageRoutePath !== void 0 ?
|
|
1143
|
+
function Y(l, E) {
|
|
1144
|
+
e.editPageRoutePath !== void 0 ? A.push({
|
|
1145
1145
|
path: e.editPageRoutePath,
|
|
1146
1146
|
query: {
|
|
1147
|
-
id:
|
|
1147
|
+
id: E.id
|
|
1148
1148
|
}
|
|
1149
|
-
}) : (
|
|
1149
|
+
}) : (W.value = E.id, D.value = "update", C.value = !0);
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
let l = window.location.origin +
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1155
|
-
l += `${
|
|
1151
|
+
function I() {
|
|
1152
|
+
let l = window.location.origin + g.model.api + "/export";
|
|
1153
|
+
const E = e.queryParams;
|
|
1154
|
+
E !== void 0 && Object.keys(E).length > 0 && (l += "?", Object.entries(e.queryParams).map((O) => {
|
|
1155
|
+
l += `${O[0]}=${O[1]}&`;
|
|
1156
1156
|
})), window.open(l);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
|
|
1158
|
+
function u(l) {
|
|
1159
|
+
J.value = l;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function F(l) {
|
|
1162
1162
|
return l.label ? c.value ? t(l.label) : l.label : l.prop.slice(0, 1).toUpperCase() + l.prop.slice(1).toLowerCase();
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
l ? (
|
|
1164
|
+
function k(l) {
|
|
1165
|
+
l ? (j.value = !0, L.splice(0, L.length, ...G), G.splice(0, G.length, ...J.value)) : (j.value = !1, G.splice(0, G.length, ...L));
|
|
1166
1166
|
}
|
|
1167
|
-
return
|
|
1167
|
+
return me(() => g.model, () => {
|
|
1168
1168
|
f();
|
|
1169
1169
|
}, {
|
|
1170
1170
|
deep: !0,
|
|
1171
1171
|
immediate: !0
|
|
1172
1172
|
}), o({
|
|
1173
|
-
multipleSelection:
|
|
1173
|
+
multipleSelection: J,
|
|
1174
1174
|
refresh: f,
|
|
1175
1175
|
updateConfigAndRefresh: P
|
|
1176
|
-
}), (l,
|
|
1177
|
-
const
|
|
1178
|
-
return n(),
|
|
1179
|
-
class:
|
|
1176
|
+
}), (l, E) => {
|
|
1177
|
+
const O = w("el-checkbox"), Z = w("el-badge"), q = w("el-button"), oe = w("el-icon"), ce = w("el-tooltip"), ae = w("el-input"), ne = w("el-table-column"), R = w("router-link"), $ = w("el-tag"), ue = w("el-popconfirm"), Ce = w("el-table"), ze = w("el-pagination"), Ne = Pe("loading");
|
|
1178
|
+
return n(), B("div", {
|
|
1179
|
+
class: De({ "table-view-wrapper": e.showPane })
|
|
1180
1180
|
}, [
|
|
1181
1181
|
i("div", Bo, [
|
|
1182
1182
|
i("div", Uo, [
|
|
1183
1183
|
e.selectMode ? (n(), _(Z, {
|
|
1184
1184
|
key: 0,
|
|
1185
|
-
value:
|
|
1185
|
+
value: J.value.length,
|
|
1186
1186
|
type: "primary",
|
|
1187
1187
|
class: "selected-badge"
|
|
1188
1188
|
}, {
|
|
1189
1189
|
default: r(() => [
|
|
1190
|
-
d(
|
|
1190
|
+
d(O, {
|
|
1191
1191
|
class: "selected-checkbox",
|
|
1192
1192
|
border: !0,
|
|
1193
|
-
label:
|
|
1194
|
-
onChange:
|
|
1193
|
+
label: v(t)("common.table.viewSelected"),
|
|
1194
|
+
onChange: k
|
|
1195
1195
|
}, null, 8, ["label"])
|
|
1196
1196
|
]),
|
|
1197
1197
|
_: 1
|
|
1198
|
-
}, 8, ["value"])) :
|
|
1199
|
-
!e.selectMode && !e.readOnly ? (n(), _(
|
|
1198
|
+
}, 8, ["value"])) : T("", !0),
|
|
1199
|
+
!e.selectMode && !e.readOnly ? (n(), _(q, {
|
|
1200
1200
|
key: 1,
|
|
1201
1201
|
type: "primary",
|
|
1202
|
-
onClick:
|
|
1202
|
+
onClick: h
|
|
1203
1203
|
}, {
|
|
1204
1204
|
default: r(() => {
|
|
1205
|
-
var te,
|
|
1205
|
+
var te, H;
|
|
1206
1206
|
return [
|
|
1207
|
-
|
|
1207
|
+
z(Q(((te = e.labels) == null ? void 0 : te.create) != null ? v(t)((H = e.labels) == null ? void 0 : H.create) : v(t)("common.table.create")), 1)
|
|
1208
1208
|
];
|
|
1209
1209
|
}),
|
|
1210
1210
|
_: 1
|
|
1211
|
-
})) :
|
|
1212
|
-
!e.selectMode && !e.readOnly ? (n(), _(
|
|
1211
|
+
})) : T("", !0),
|
|
1212
|
+
!e.selectMode && !e.readOnly ? (n(), _(q, {
|
|
1213
1213
|
key: 2,
|
|
1214
|
-
disabled:
|
|
1214
|
+
disabled: J.value.length == 0,
|
|
1215
1215
|
type: "danger",
|
|
1216
1216
|
plain: "",
|
|
1217
|
-
onClick:
|
|
1217
|
+
onClick: x
|
|
1218
1218
|
}, {
|
|
1219
1219
|
default: r(() => {
|
|
1220
|
-
var te,
|
|
1220
|
+
var te, H;
|
|
1221
1221
|
return [
|
|
1222
|
-
|
|
1222
|
+
z(Q(((te = e.labels) == null ? void 0 : te.delete) != null ? v(t)((H = e.labels) == null ? void 0 : H.delete) : v(t)("common.table.delete")), 1)
|
|
1223
1223
|
];
|
|
1224
1224
|
}),
|
|
1225
1225
|
_: 1
|
|
1226
|
-
}, 8, ["disabled"])) :
|
|
1227
|
-
d(
|
|
1228
|
-
icon:
|
|
1226
|
+
}, 8, ["disabled"])) : T("", !0),
|
|
1227
|
+
d(q, {
|
|
1228
|
+
icon: v(Ke),
|
|
1229
1229
|
onClick: f
|
|
1230
1230
|
}, null, 8, ["icon"]),
|
|
1231
1231
|
e.tooltip ? (n(), _(ce, {
|
|
1232
1232
|
key: 3,
|
|
1233
1233
|
effect: "dark",
|
|
1234
|
-
content:
|
|
1234
|
+
content: v(t)(e.tooltip),
|
|
1235
1235
|
placement: "right"
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: r(() => [
|
|
1238
|
-
d(
|
|
1238
|
+
d(oe, { style: { color: "#8ba74f" } }, {
|
|
1239
1239
|
default: r(() => [
|
|
1240
|
-
d(
|
|
1240
|
+
d(v(it))
|
|
1241
1241
|
]),
|
|
1242
1242
|
_: 1
|
|
1243
1243
|
})
|
|
1244
1244
|
]),
|
|
1245
1245
|
_: 1
|
|
1246
|
-
}, 8, ["content"])) :
|
|
1246
|
+
}, 8, ["content"])) : T("", !0)
|
|
1247
1247
|
]),
|
|
1248
1248
|
i("div", Oo, [
|
|
1249
|
-
e.export ? (n(), _(
|
|
1249
|
+
e.export ? (n(), _(q, {
|
|
1250
1250
|
key: 0,
|
|
1251
1251
|
class: "button-export",
|
|
1252
|
-
onClick:
|
|
1252
|
+
onClick: I
|
|
1253
1253
|
}, {
|
|
1254
1254
|
default: r(() => [
|
|
1255
|
-
d(
|
|
1255
|
+
d(oe, null, {
|
|
1256
1256
|
default: r(() => [
|
|
1257
|
-
d(
|
|
1257
|
+
d(v(ct))
|
|
1258
1258
|
]),
|
|
1259
1259
|
_: 1
|
|
1260
1260
|
})
|
|
1261
1261
|
]),
|
|
1262
1262
|
_: 1
|
|
1263
|
-
})) :
|
|
1264
|
-
d(
|
|
1265
|
-
placeholder: `${
|
|
1266
|
-
modelValue:
|
|
1267
|
-
"onUpdate:modelValue":
|
|
1263
|
+
})) : T("", !0),
|
|
1264
|
+
d(ae, {
|
|
1265
|
+
placeholder: `${v(t)("common.table.search")}...`,
|
|
1266
|
+
modelValue: V.value,
|
|
1267
|
+
"onUpdate:modelValue": E[0] || (E[0] = (te) => V.value = te)
|
|
1268
1268
|
}, {
|
|
1269
1269
|
append: r(() => [
|
|
1270
|
-
d(
|
|
1270
|
+
d(q, {
|
|
1271
1271
|
style: { "margin-left": "-20px" },
|
|
1272
|
-
icon:
|
|
1272
|
+
icon: v(dt),
|
|
1273
1273
|
onClick: f
|
|
1274
1274
|
}, null, 8, ["icon"])
|
|
1275
1275
|
]),
|
|
@@ -1277,83 +1277,83 @@ const Be = (s) => {
|
|
|
1277
1277
|
}, 8, ["placeholder", "modelValue"])
|
|
1278
1278
|
])
|
|
1279
1279
|
]),
|
|
1280
|
-
|
|
1280
|
+
Te((n(), _(Ce, {
|
|
1281
1281
|
border: !0,
|
|
1282
1282
|
ref_key: "tableRef",
|
|
1283
|
-
ref:
|
|
1284
|
-
data:
|
|
1285
|
-
onSelectionChange:
|
|
1283
|
+
ref: K,
|
|
1284
|
+
data: G,
|
|
1285
|
+
onSelectionChange: u,
|
|
1286
1286
|
class: "table"
|
|
1287
1287
|
}, {
|
|
1288
1288
|
default: r(() => {
|
|
1289
1289
|
var te;
|
|
1290
1290
|
return [
|
|
1291
|
-
e.readOnly ?
|
|
1291
|
+
e.readOnly ? T("", !0) : (n(), _(ne, {
|
|
1292
1292
|
key: 0,
|
|
1293
1293
|
type: "selection",
|
|
1294
1294
|
width: "50"
|
|
1295
1295
|
})),
|
|
1296
|
-
(n(!0),
|
|
1297
|
-
var
|
|
1298
|
-
return n(), _(
|
|
1299
|
-
prop:
|
|
1300
|
-
label:
|
|
1301
|
-
width: (
|
|
1296
|
+
(n(!0), B(ee, null, se(X.value, (H) => {
|
|
1297
|
+
var he;
|
|
1298
|
+
return n(), _(ne, {
|
|
1299
|
+
prop: H.prop,
|
|
1300
|
+
label: F(H),
|
|
1301
|
+
width: (he = H.tableColumnAttributes) == null ? void 0 : he.width,
|
|
1302
1302
|
"show-overflow-tooltip": ""
|
|
1303
1303
|
}, {
|
|
1304
|
-
default: r((
|
|
1305
|
-
var
|
|
1304
|
+
default: r((ye) => {
|
|
1305
|
+
var ve, we;
|
|
1306
1306
|
return [
|
|
1307
|
-
(
|
|
1307
|
+
(ve = H.tableColumnAttributes) != null && ve.link ? (n(), _(R, {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: "router-link",
|
|
1310
|
-
to: `/${b.value}/detail?id=${
|
|
1310
|
+
to: `/${b.value}/detail?id=${ye.row.id}`
|
|
1311
1311
|
}, {
|
|
1312
1312
|
default: r(() => [
|
|
1313
|
-
i("span", null,
|
|
1313
|
+
i("span", null, Q(pe(H, ye)), 1)
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 2
|
|
1316
|
-
}, 1032, ["to"])) : (n(),
|
|
1317
|
-
((
|
|
1316
|
+
}, 1032, ["to"])) : (n(), B("span", Go, Q(pe(H, ye)), 1)),
|
|
1317
|
+
((we = H.tableColumnAttributes) == null ? void 0 : we.type) === "tag" ? (n(), _($, { key: 2 }, {
|
|
1318
1318
|
default: r(() => [
|
|
1319
|
-
|
|
1319
|
+
z(Q(ye.row[H.prop]), 1)
|
|
1320
1320
|
]),
|
|
1321
1321
|
_: 2
|
|
1322
|
-
}, 1024)) :
|
|
1322
|
+
}, 1024)) : T("", !0)
|
|
1323
1323
|
];
|
|
1324
1324
|
}),
|
|
1325
1325
|
_: 2
|
|
1326
1326
|
}, 1032, ["prop", "label", "width"]);
|
|
1327
1327
|
}), 256)),
|
|
1328
|
-
e.operations === void 0 && !((te = e.selectMode) != null && te) && !e.readOnly ? (n(), _(
|
|
1328
|
+
e.operations === void 0 && !((te = e.selectMode) != null && te) && !e.readOnly ? (n(), _(ne, {
|
|
1329
1329
|
key: 1,
|
|
1330
|
-
label:
|
|
1330
|
+
label: v(t)("common.table.operation"),
|
|
1331
1331
|
width: "120"
|
|
1332
1332
|
}, {
|
|
1333
|
-
default: r((
|
|
1334
|
-
d(
|
|
1333
|
+
default: r((H) => [
|
|
1334
|
+
d(q, {
|
|
1335
1335
|
link: "",
|
|
1336
1336
|
type: "primary",
|
|
1337
1337
|
class: "operation-button",
|
|
1338
|
-
onClick: (
|
|
1338
|
+
onClick: (he) => Y(H.$index, H.row)
|
|
1339
1339
|
}, {
|
|
1340
1340
|
default: r(() => [
|
|
1341
|
-
|
|
1341
|
+
z(Q(v(t)("common.table.edit")), 1)
|
|
1342
1342
|
]),
|
|
1343
1343
|
_: 2
|
|
1344
1344
|
}, 1032, ["onClick"]),
|
|
1345
|
-
d(
|
|
1345
|
+
d(ue, {
|
|
1346
1346
|
title: "Are you sure to delete this?",
|
|
1347
|
-
onConfirm: (
|
|
1347
|
+
onConfirm: (he) => y(H.$index, H.row)
|
|
1348
1348
|
}, {
|
|
1349
1349
|
reference: r(() => [
|
|
1350
|
-
d(
|
|
1350
|
+
d(q, {
|
|
1351
1351
|
link: "",
|
|
1352
1352
|
type: "primary",
|
|
1353
1353
|
class: "operation-button"
|
|
1354
1354
|
}, {
|
|
1355
1355
|
default: r(() => [
|
|
1356
|
-
|
|
1356
|
+
z(Q(v(t)("common.table.delete")), 1)
|
|
1357
1357
|
]),
|
|
1358
1358
|
_: 1
|
|
1359
1359
|
})
|
|
@@ -1362,173 +1362,171 @@ const Be = (s) => {
|
|
|
1362
1362
|
}, 1032, ["onConfirm"])
|
|
1363
1363
|
]),
|
|
1364
1364
|
_: 1
|
|
1365
|
-
}, 8, ["label"])) :
|
|
1366
|
-
e.operations !== void 0 && !e.readOnly ? (n(), _(
|
|
1365
|
+
}, 8, ["label"])) : T("", !0),
|
|
1366
|
+
e.operations !== void 0 && !e.readOnly ? (n(), _(ne, {
|
|
1367
1367
|
key: 2,
|
|
1368
|
-
label:
|
|
1368
|
+
label: v(t)("common.table.operation"),
|
|
1369
1369
|
width: "120"
|
|
1370
1370
|
}, {
|
|
1371
|
-
default: r((
|
|
1372
|
-
(n(!0),
|
|
1371
|
+
default: r((H) => [
|
|
1372
|
+
(n(!0), B(ee, null, se(e.operations, (he) => (n(), _(q, {
|
|
1373
1373
|
class: "operation-button",
|
|
1374
1374
|
link: "",
|
|
1375
1375
|
type: "primary",
|
|
1376
|
-
key:
|
|
1377
|
-
onClick: (
|
|
1378
|
-
var
|
|
1379
|
-
return ((
|
|
1376
|
+
key: he.label,
|
|
1377
|
+
onClick: (ye) => {
|
|
1378
|
+
var ve, we;
|
|
1379
|
+
return ((we = (ve = he.functions) == null ? void 0 : ve.click) == null ? void 0 : we.call(ve, H.$index, H.row)) && f();
|
|
1380
1380
|
}
|
|
1381
1381
|
}, {
|
|
1382
1382
|
default: r(() => [
|
|
1383
|
-
|
|
1383
|
+
z(Q(m(he, H)), 1)
|
|
1384
1384
|
]),
|
|
1385
1385
|
_: 2
|
|
1386
1386
|
}, 1032, ["onClick"]))), 128))
|
|
1387
1387
|
]),
|
|
1388
1388
|
_: 1
|
|
1389
|
-
}, 8, ["label"])) :
|
|
1389
|
+
}, 8, ["label"])) : T("", !0)
|
|
1390
1390
|
];
|
|
1391
1391
|
}),
|
|
1392
1392
|
_: 1
|
|
1393
1393
|
}, 8, ["data"])), [
|
|
1394
|
-
[Ne,
|
|
1394
|
+
[Ne, p.value]
|
|
1395
1395
|
]),
|
|
1396
|
-
|
|
1396
|
+
j.value ? T("", !0) : (n(), _(ze, {
|
|
1397
1397
|
key: 0,
|
|
1398
1398
|
size: "small",
|
|
1399
1399
|
background: "",
|
|
1400
|
-
onSizeChange:
|
|
1401
|
-
onCurrentChange:
|
|
1402
|
-
currentPage:
|
|
1403
|
-
"onUpdate:currentPage":
|
|
1400
|
+
onSizeChange: M,
|
|
1401
|
+
onCurrentChange: U,
|
|
1402
|
+
currentPage: N.pageNo,
|
|
1403
|
+
"onUpdate:currentPage": E[1] || (E[1] = (te) => N.pageNo = te),
|
|
1404
1404
|
"page-sizes": [10, 20, 50, 100],
|
|
1405
|
-
"page-size":
|
|
1405
|
+
"page-size": N.pageSize,
|
|
1406
1406
|
layout: "total, sizes, prev, pager, next",
|
|
1407
|
-
total:
|
|
1407
|
+
total: N.totalElements
|
|
1408
1408
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
1409
|
-
d(
|
|
1409
|
+
d(Je, {
|
|
1410
1410
|
model: l.model,
|
|
1411
1411
|
mode: D.value,
|
|
1412
|
-
id:
|
|
1412
|
+
id: W.value,
|
|
1413
1413
|
afterSubmitFunc: f,
|
|
1414
1414
|
visible: C.value,
|
|
1415
|
-
"onUpdate:visible":
|
|
1415
|
+
"onUpdate:visible": E[2] || (E[2] = (te) => C.value = te)
|
|
1416
1416
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
1417
1417
|
], 2);
|
|
1418
1418
|
};
|
|
1419
1419
|
}
|
|
1420
|
-
}), Me = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-
|
|
1420
|
+
}), Me = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-097d1d61"]]), Ro = { class: "nav-bar" }, Vo = {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
class: "info-card-wrapper"
|
|
1423
1423
|
}, Do = { class: "icon-wrapper" }, Po = { class: "info-wrapper" }, To = { class: "title-wrapper" }, Ko = { class: "tabs-wrapper" }, Lo = { class: "dialog-footer" }, jo = /* @__PURE__ */ de({
|
|
1424
1424
|
__name: "DetailPage",
|
|
1425
1425
|
setup(s) {
|
|
1426
|
-
const { t: o } = _e(), t = ke(),
|
|
1426
|
+
const { t: o } = _e(), t = ke(), g = xe(), a = Qe(() => t.query.id), e = S(!1), b = S(!1), c = S("view"), C = S(), A = S(-1), V = S(), G = S(), L = S("summary"), K = S(""), J = S(""), D = S(""), p = le({
|
|
1427
1427
|
api: "",
|
|
1428
1428
|
fields: []
|
|
1429
|
-
}),
|
|
1430
|
-
let
|
|
1431
|
-
|
|
1432
|
-
|
|
1429
|
+
}), j = le([]);
|
|
1430
|
+
let W = [];
|
|
1431
|
+
me(() => g.currentRoute.value, () => {
|
|
1432
|
+
m();
|
|
1433
1433
|
}, {
|
|
1434
1434
|
immediate: !0
|
|
1435
1435
|
});
|
|
1436
|
-
function
|
|
1437
|
-
|
|
1436
|
+
function N(h) {
|
|
1437
|
+
A.value = parseInt(h.index) - 1, console.log(j[A.value]);
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1440
|
-
let
|
|
1441
|
-
|
|
1442
|
-
const
|
|
1443
|
-
|
|
1444
|
-
|
|
1439
|
+
function X() {
|
|
1440
|
+
let h = W[A.value].api.replace("/select", "");
|
|
1441
|
+
h = h.substring(h.lastIndexOf("/"));
|
|
1442
|
+
const y = p.api + "/" + a.value + h, x = G.value.multipleSelection.map((M) => M.id);
|
|
1443
|
+
ge(y, "POST", x).then(() => {
|
|
1444
|
+
V.value.refresh(), b.value = !1;
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1450
|
-
b.value = !0,
|
|
1447
|
+
function pe(h, y, x) {
|
|
1448
|
+
var Y;
|
|
1449
|
+
x.functions || (x.functions = {}), x.functions.create = () => {
|
|
1450
|
+
b.value = !0, G.value && G.value.refresh();
|
|
1451
1451
|
};
|
|
1452
|
-
let
|
|
1453
|
-
|
|
1454
|
-
for (var
|
|
1455
|
-
|
|
1456
|
-
|
|
1452
|
+
let M = be(y);
|
|
1453
|
+
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {}, h.queryParamName && (M.tableConfig.queryParams[h.queryParamName] = a.value);
|
|
1454
|
+
for (var U in M.fields)
|
|
1455
|
+
M.fields[U].tableColumnAttributes && (Y = M.fields[U].tableColumnAttributes) != null && Y.link && (M.fields[U].tableColumnAttributes.link = !1);
|
|
1456
|
+
W.push(M), x.labels = {
|
|
1457
1457
|
create: "common.table.add",
|
|
1458
1458
|
delete: "common.table.remove"
|
|
1459
|
-
},
|
|
1460
|
-
let
|
|
1461
|
-
|
|
1462
|
-
const
|
|
1463
|
-
ie.delete(`${
|
|
1464
|
-
|
|
1459
|
+
}, x.functions.batchDelete = (I) => {
|
|
1460
|
+
let u = W[A.value].api.replace("/select", "");
|
|
1461
|
+
u = u.substring(u.lastIndexOf("/"));
|
|
1462
|
+
const F = p.api + "/" + a.value + u, k = I.map((l) => l.id);
|
|
1463
|
+
ie.delete(`${F}/${k.join(",")}`).then(({ data: l }) => {
|
|
1464
|
+
l.code === 0 && V.value.refresh();
|
|
1465
1465
|
});
|
|
1466
|
-
},
|
|
1466
|
+
}, x.operations = [
|
|
1467
1467
|
{
|
|
1468
1468
|
label: "common.table.remove",
|
|
1469
1469
|
functions: {
|
|
1470
|
-
click: (
|
|
1471
|
-
let
|
|
1472
|
-
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1475
|
-
|
|
1470
|
+
click: (I, u) => {
|
|
1471
|
+
let F = W[A.value].api.replace("/select", "");
|
|
1472
|
+
F = F.substring(F.lastIndexOf("/"));
|
|
1473
|
+
const k = p.api + "/" + a.value + F;
|
|
1474
|
+
ge(k, "DELETE", u.id).then(() => {
|
|
1475
|
+
V.value.refresh();
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
],
|
|
1480
|
+
], M.api += "/select";
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var
|
|
1484
|
-
|
|
1485
|
-
const
|
|
1486
|
-
if (
|
|
1482
|
+
function m() {
|
|
1483
|
+
var M, U, Y;
|
|
1484
|
+
j.splice(0);
|
|
1485
|
+
const h = t.params.model;
|
|
1486
|
+
if (fe.value[h] === void 0)
|
|
1487
1487
|
return;
|
|
1488
|
-
|
|
1489
|
-
const
|
|
1490
|
-
Object.assign(
|
|
1491
|
-
const
|
|
1492
|
-
if (
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
})), p.tooltip && (m.tooltip = p.tooltip);
|
|
1488
|
+
Ae(p);
|
|
1489
|
+
const y = be(fe.value[h]);
|
|
1490
|
+
Object.assign(p, y), A.value = -1, L.value = "summary";
|
|
1491
|
+
const x = (U = (M = p.pageConfig) == null ? void 0 : M.detailPage) == null ? void 0 : U.tabs;
|
|
1492
|
+
if (x)
|
|
1493
|
+
for (let I of x) {
|
|
1494
|
+
const u = be(fe.value[I.modelKey]);
|
|
1495
|
+
if (j.push(u), I.type === "table") {
|
|
1496
|
+
u.tableConfig || (u.tableConfig = {});
|
|
1497
|
+
let F = u.tableConfig;
|
|
1498
|
+
F.showPane = !1, I.modelRelationType === "associated" ? pe(I, u, F) : I.modelRelationType === "child" && (u.formConfig === void 0 && (u.formConfig = {}), u.formConfig.functions === void 0 && (u.formConfig.functions = {}), I.queryParamName && (u.formConfig.functions.beforeSubmit = (k) => {
|
|
1499
|
+
k[I.queryParamName] = a.value;
|
|
1500
|
+
})), F.queryParams || (F.queryParams = {}), I.queryParamName && (F.queryParams[I.queryParamName] = a.value), I.queryParams && Object.assign(F.queryParams, I.queryParams), F.readOnly = (Y = I.readOnly) != null ? Y : !1, I.includeFields && (u.fields = u.fields.filter((k) => {
|
|
1501
|
+
var l;
|
|
1502
|
+
return (l = I.includeFields) == null ? void 0 : l.includes(k.prop);
|
|
1503
|
+
})), I.excludeFields && (u.fields = u.fields.filter((k) => {
|
|
1504
|
+
var l;
|
|
1505
|
+
return !((l = I.excludeFields) != null && l.includes(k.prop));
|
|
1506
|
+
})), I.tooltip && (F.tooltip = I.tooltip);
|
|
1508
1507
|
}
|
|
1509
1508
|
}
|
|
1510
|
-
}
|
|
1511
1509
|
}
|
|
1512
|
-
|
|
1510
|
+
me(
|
|
1513
1511
|
[
|
|
1514
1512
|
() => {
|
|
1515
|
-
var
|
|
1516
|
-
return (
|
|
1513
|
+
var h, y;
|
|
1514
|
+
return (y = (h = p.pageConfig) == null ? void 0 : h.detailPage) == null ? void 0 : y.infoCard;
|
|
1517
1515
|
},
|
|
1518
1516
|
() => {
|
|
1519
|
-
var
|
|
1520
|
-
return (
|
|
1517
|
+
var h;
|
|
1518
|
+
return (h = C.value) == null ? void 0 : h.formData;
|
|
1521
1519
|
}
|
|
1522
1520
|
],
|
|
1523
|
-
(
|
|
1524
|
-
|
|
1525
|
-
var
|
|
1526
|
-
const
|
|
1527
|
-
|
|
1528
|
-
var
|
|
1529
|
-
if (
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1521
|
+
(h) => {
|
|
1522
|
+
Ve(() => {
|
|
1523
|
+
var x, M, U;
|
|
1524
|
+
const y = (M = (x = p.pageConfig) == null ? void 0 : x.detailPage) == null ? void 0 : M.infoCard;
|
|
1525
|
+
y && (K.value = y.titleFieldProp ? C.value.formData[y.titleFieldProp] : "", J.value = y.subtitleFieldProp ? C.value.formData[y.subtitleFieldProp] : "", D.value = y.tagFieldProp ? C.value.formData[y.tagFieldProp] : "", (U = p.fields) == null || U.forEach((Y) => {
|
|
1526
|
+
var I, u;
|
|
1527
|
+
if (Y.prop === y.tagFieldProp) {
|
|
1528
|
+
const F = (u = (I = Y.tableColumnAttributes) == null ? void 0 : I.functions) == null ? void 0 : u.transformValue;
|
|
1529
|
+
F && (D.value = F(D.value));
|
|
1532
1530
|
}
|
|
1533
1531
|
}));
|
|
1534
1532
|
});
|
|
@@ -1538,35 +1536,35 @@ const Be = (s) => {
|
|
|
1538
1536
|
deep: !0
|
|
1539
1537
|
}
|
|
1540
1538
|
);
|
|
1541
|
-
function
|
|
1539
|
+
function P() {
|
|
1542
1540
|
e.value = !0;
|
|
1543
1541
|
}
|
|
1544
|
-
function
|
|
1542
|
+
function f() {
|
|
1545
1543
|
C.value.refresh();
|
|
1546
1544
|
}
|
|
1547
|
-
return (
|
|
1548
|
-
var
|
|
1549
|
-
const
|
|
1550
|
-
return n(),
|
|
1545
|
+
return (h, y) => {
|
|
1546
|
+
var Z, q, oe, ce, ae, ne;
|
|
1547
|
+
const x = w("el-breadcrumb-item"), M = w("el-breadcrumb"), U = w("el-button"), Y = w("el-icon"), I = w("el-dropdown-item"), u = w("el-dropdown-menu"), F = w("el-dropdown"), k = w("el-tag"), l = w("el-tab-pane"), E = w("el-tabs"), O = w("el-dialog");
|
|
1548
|
+
return n(), B(ee, null, [
|
|
1551
1549
|
i("div", Ro, [
|
|
1552
|
-
d(
|
|
1550
|
+
d(M, null, {
|
|
1553
1551
|
default: r(() => {
|
|
1554
|
-
var
|
|
1552
|
+
var R, $;
|
|
1555
1553
|
return [
|
|
1556
|
-
d(
|
|
1557
|
-
to: { path: `/${(
|
|
1554
|
+
d(x, {
|
|
1555
|
+
to: { path: `/${($ = (R = p == null ? void 0 : p.breadcrumbRoute) != null ? R : p == null ? void 0 : p.route) != null ? $ : ""}` }
|
|
1558
1556
|
}, {
|
|
1559
1557
|
default: r(() => {
|
|
1560
|
-
var
|
|
1558
|
+
var ue;
|
|
1561
1559
|
return [
|
|
1562
|
-
|
|
1560
|
+
z(Q(v(o)((ue = p == null ? void 0 : p.name) != null ? ue : "")), 1)
|
|
1563
1561
|
];
|
|
1564
1562
|
}),
|
|
1565
1563
|
_: 1
|
|
1566
1564
|
}, 8, ["to"]),
|
|
1567
|
-
d(
|
|
1565
|
+
d(x, null, {
|
|
1568
1566
|
default: r(() => [
|
|
1569
|
-
|
|
1567
|
+
z(Q(v(o)("common.basic.detail")), 1)
|
|
1570
1568
|
]),
|
|
1571
1569
|
_: 1
|
|
1572
1570
|
})
|
|
@@ -1575,36 +1573,36 @@ const Be = (s) => {
|
|
|
1575
1573
|
_: 1
|
|
1576
1574
|
}),
|
|
1577
1575
|
i("div", null, [
|
|
1578
|
-
d(
|
|
1576
|
+
d(U, {
|
|
1579
1577
|
type: "primary",
|
|
1580
|
-
onClick:
|
|
1578
|
+
onClick: P
|
|
1581
1579
|
}, {
|
|
1582
1580
|
default: r(() => [
|
|
1583
|
-
|
|
1581
|
+
z(Q(v(o)("common.table.edit")), 1)
|
|
1584
1582
|
]),
|
|
1585
1583
|
_: 1
|
|
1586
1584
|
}),
|
|
1587
|
-
d(
|
|
1585
|
+
d(U, {
|
|
1588
1586
|
type: "danger",
|
|
1589
1587
|
plain: "",
|
|
1590
1588
|
disabled: ""
|
|
1591
1589
|
}, {
|
|
1592
1590
|
default: r(() => [
|
|
1593
|
-
|
|
1591
|
+
z(Q(v(o)("common.table.delete")), 1)
|
|
1594
1592
|
]),
|
|
1595
1593
|
_: 1
|
|
1596
1594
|
}),
|
|
1597
|
-
((
|
|
1595
|
+
((q = (Z = p.pageConfig) == null ? void 0 : Z.detailPage) == null ? void 0 : q.operationButtons) !== void 0 ? (n(), _(F, { key: 0 }, {
|
|
1598
1596
|
dropdown: r(() => [
|
|
1599
|
-
d(
|
|
1597
|
+
d(u, null, {
|
|
1600
1598
|
default: r(() => {
|
|
1601
|
-
var
|
|
1599
|
+
var R, $;
|
|
1602
1600
|
return [
|
|
1603
|
-
(n(!0),
|
|
1604
|
-
onClick: (
|
|
1601
|
+
(n(!0), B(ee, null, se(($ = (R = p.pageConfig) == null ? void 0 : R.detailPage) == null ? void 0 : $.operationButtons, (ue) => (n(), _(I, {
|
|
1602
|
+
onClick: (Ce) => ue.function(C.value.formData)
|
|
1605
1603
|
}, {
|
|
1606
1604
|
default: r(() => [
|
|
1607
|
-
|
|
1605
|
+
z(Q(v(o)(ue.label)), 1)
|
|
1608
1606
|
]),
|
|
1609
1607
|
_: 2
|
|
1610
1608
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -1614,12 +1612,12 @@ const Be = (s) => {
|
|
|
1614
1612
|
})
|
|
1615
1613
|
]),
|
|
1616
1614
|
default: r(() => [
|
|
1617
|
-
d(
|
|
1615
|
+
d(U, { style: { margin: "0 10px" } }, {
|
|
1618
1616
|
default: r(() => [
|
|
1619
|
-
|
|
1620
|
-
d(
|
|
1617
|
+
z(Q(v(o)("common.basic.more")), 1),
|
|
1618
|
+
d(Y, { class: "el-icon--right" }, {
|
|
1621
1619
|
default: r(() => [
|
|
1622
|
-
d(
|
|
1620
|
+
d(v(pt))
|
|
1623
1621
|
]),
|
|
1624
1622
|
_: 1
|
|
1625
1623
|
})
|
|
@@ -1628,171 +1626,172 @@ const Be = (s) => {
|
|
|
1628
1626
|
})
|
|
1629
1627
|
]),
|
|
1630
1628
|
_: 1
|
|
1631
|
-
})) :
|
|
1632
|
-
d(
|
|
1633
|
-
icon:
|
|
1634
|
-
onClick:
|
|
1629
|
+
})) : T("", !0),
|
|
1630
|
+
d(U, {
|
|
1631
|
+
icon: v(Ke),
|
|
1632
|
+
onClick: f
|
|
1635
1633
|
}, null, 8, ["icon"])
|
|
1636
1634
|
])
|
|
1637
1635
|
]),
|
|
1638
|
-
(
|
|
1636
|
+
(ce = (oe = p.pageConfig) == null ? void 0 : oe.detailPage) != null && ce.infoCard ? (n(), B("div", Vo, [
|
|
1639
1637
|
i("div", Do, [
|
|
1640
|
-
(n(), _(Ee((
|
|
1638
|
+
(n(), _(Ee((ae = p.pageConfig.detailPage.infoCard.icon) != null ? ae : ""), { class: "icon" }))
|
|
1641
1639
|
]),
|
|
1642
1640
|
i("div", Po, [
|
|
1643
1641
|
i("div", To, [
|
|
1644
|
-
i("h1", null,
|
|
1645
|
-
((
|
|
1642
|
+
i("h1", null, Q(K.value), 1),
|
|
1643
|
+
((ne = D.value) == null ? void 0 : ne.length) > 0 ? (n(), _(k, {
|
|
1646
1644
|
key: 0,
|
|
1647
1645
|
size: "small"
|
|
1648
1646
|
}, {
|
|
1649
1647
|
default: r(() => [
|
|
1650
|
-
|
|
1648
|
+
z(Q(D.value), 1)
|
|
1651
1649
|
]),
|
|
1652
1650
|
_: 1
|
|
1653
|
-
})) :
|
|
1651
|
+
})) : T("", !0)
|
|
1654
1652
|
]),
|
|
1655
|
-
i("span", null,
|
|
1653
|
+
i("span", null, Q(J.value), 1)
|
|
1656
1654
|
])
|
|
1657
|
-
])) :
|
|
1655
|
+
])) : T("", !0),
|
|
1658
1656
|
i("div", Ko, [
|
|
1659
|
-
d(
|
|
1660
|
-
modelValue:
|
|
1661
|
-
"onUpdate:modelValue":
|
|
1662
|
-
onTabClick:
|
|
1657
|
+
d(E, {
|
|
1658
|
+
modelValue: L.value,
|
|
1659
|
+
"onUpdate:modelValue": y[0] || (y[0] = (R) => L.value = R),
|
|
1660
|
+
onTabClick: N
|
|
1663
1661
|
}, {
|
|
1664
1662
|
default: r(() => {
|
|
1665
|
-
var
|
|
1663
|
+
var R, $;
|
|
1666
1664
|
return [
|
|
1667
|
-
d(
|
|
1668
|
-
label:
|
|
1665
|
+
d(l, {
|
|
1666
|
+
label: v(o)("common.basic.summary"),
|
|
1669
1667
|
name: "summary"
|
|
1670
1668
|
}, {
|
|
1671
1669
|
default: r(() => [
|
|
1672
|
-
d(
|
|
1670
|
+
d(He, {
|
|
1673
1671
|
ref_key: "formViewRef",
|
|
1674
1672
|
ref: C,
|
|
1675
1673
|
id: a.value,
|
|
1674
|
+
sessionId: 0,
|
|
1676
1675
|
mode: c.value,
|
|
1677
|
-
model:
|
|
1676
|
+
model: p
|
|
1678
1677
|
}, null, 8, ["id", "mode", "model"])
|
|
1679
1678
|
]),
|
|
1680
1679
|
_: 1
|
|
1681
1680
|
}, 8, ["label"]),
|
|
1682
|
-
(n(!0),
|
|
1683
|
-
var
|
|
1684
|
-
return n(), _(
|
|
1685
|
-
label:
|
|
1681
|
+
(n(!0), B(ee, null, se(($ = (R = p.pageConfig) == null ? void 0 : R.detailPage) == null ? void 0 : $.tabs, (ue) => {
|
|
1682
|
+
var Ce;
|
|
1683
|
+
return n(), _(l, {
|
|
1684
|
+
label: v(o)((Ce = ue.name) != null ? Ce : "")
|
|
1686
1685
|
}, null, 8, ["label"]);
|
|
1687
1686
|
}), 256))
|
|
1688
1687
|
];
|
|
1689
1688
|
}),
|
|
1690
1689
|
_: 1
|
|
1691
1690
|
}, 8, ["modelValue"]),
|
|
1692
|
-
|
|
1691
|
+
A.value >= 0 ? (n(), _(Me, {
|
|
1693
1692
|
key: 0,
|
|
1694
1693
|
ref_key: "tabPaneTableRef",
|
|
1695
|
-
ref:
|
|
1696
|
-
model:
|
|
1697
|
-
}, null, 8, ["model"])) :
|
|
1698
|
-
d(
|
|
1694
|
+
ref: V,
|
|
1695
|
+
model: j[A.value]
|
|
1696
|
+
}, null, 8, ["model"])) : T("", !0),
|
|
1697
|
+
d(O, {
|
|
1699
1698
|
modelValue: b.value,
|
|
1700
|
-
"onUpdate:modelValue":
|
|
1701
|
-
title:
|
|
1699
|
+
"onUpdate:modelValue": y[2] || (y[2] = (R) => b.value = R),
|
|
1700
|
+
title: v(o)("common.table.select"),
|
|
1702
1701
|
width: "800px"
|
|
1703
1702
|
}, {
|
|
1704
1703
|
footer: r(() => [
|
|
1705
1704
|
i("span", Lo, [
|
|
1706
|
-
d(
|
|
1707
|
-
onClick:
|
|
1705
|
+
d(U, {
|
|
1706
|
+
onClick: y[1] || (y[1] = (R) => b.value = !1)
|
|
1708
1707
|
}, {
|
|
1709
1708
|
default: r(() => [
|
|
1710
|
-
|
|
1709
|
+
z(Q(v(o)("common.basic.cancel")), 1)
|
|
1711
1710
|
]),
|
|
1712
1711
|
_: 1
|
|
1713
1712
|
}),
|
|
1714
|
-
d(
|
|
1713
|
+
d(U, {
|
|
1715
1714
|
type: "primary",
|
|
1716
|
-
onClick:
|
|
1715
|
+
onClick: X
|
|
1717
1716
|
}, {
|
|
1718
1717
|
default: r(() => [
|
|
1719
|
-
|
|
1718
|
+
z(Q(v(o)("common.basic.save")), 1)
|
|
1720
1719
|
]),
|
|
1721
1720
|
_: 1
|
|
1722
1721
|
})
|
|
1723
1722
|
])
|
|
1724
1723
|
]),
|
|
1725
1724
|
default: r(() => [
|
|
1726
|
-
|
|
1725
|
+
A.value >= 0 ? (n(), _(Me, {
|
|
1727
1726
|
key: 0,
|
|
1728
1727
|
ref_key: "selectTableRef",
|
|
1729
|
-
ref:
|
|
1730
|
-
model:
|
|
1731
|
-
}, null, 8, ["model"])) :
|
|
1728
|
+
ref: G,
|
|
1729
|
+
model: v(W)[A.value]
|
|
1730
|
+
}, null, 8, ["model"])) : T("", !0)
|
|
1732
1731
|
]),
|
|
1733
1732
|
_: 1
|
|
1734
1733
|
}, 8, ["modelValue", "title"])
|
|
1735
1734
|
]),
|
|
1736
|
-
d(
|
|
1735
|
+
d(Je, {
|
|
1737
1736
|
id: a.value,
|
|
1738
1737
|
mode: "update",
|
|
1739
1738
|
visible: e.value,
|
|
1740
|
-
"onUpdate:visible":
|
|
1741
|
-
model:
|
|
1742
|
-
afterSubmitFunc:
|
|
1739
|
+
"onUpdate:visible": y[3] || (y[3] = (R) => e.value = R),
|
|
1740
|
+
model: p,
|
|
1741
|
+
afterSubmitFunc: f
|
|
1743
1742
|
}, null, 8, ["id", "visible", "model"])
|
|
1744
1743
|
], 64);
|
|
1745
1744
|
};
|
|
1746
1745
|
}
|
|
1747
|
-
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-
|
|
1746
|
+
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-6ce0c66f"]]), Yo = { class: "page-title" }, qo = /* @__PURE__ */ de({
|
|
1748
1747
|
__name: "TablePage",
|
|
1749
1748
|
setup(s) {
|
|
1750
|
-
const { t: o } = _e(), t = ke(),
|
|
1749
|
+
const { t: o } = _e(), t = ke(), g = xe(), a = S(), e = S([]), b = le({
|
|
1751
1750
|
api: "",
|
|
1752
1751
|
fields: []
|
|
1753
|
-
}), c =
|
|
1752
|
+
}), c = le(Ie({}, b));
|
|
1754
1753
|
function C() {
|
|
1755
|
-
var
|
|
1756
|
-
e.value = [], b.pageConfig && ((
|
|
1757
|
-
let
|
|
1758
|
-
return D.modelKey &&
|
|
1754
|
+
var V, G, L, K, J;
|
|
1755
|
+
e.value = [], b.pageConfig && ((G = (V = b.pageConfig) == null ? void 0 : V.tablePage) != null && G.tabViewAttributes) && (e.value = (J = (K = (L = b.pageConfig) == null ? void 0 : L.tablePage) == null ? void 0 : K.tabViewAttributes) == null ? void 0 : J.map((D) => {
|
|
1756
|
+
let p;
|
|
1757
|
+
return D.modelKey && fe.value[D.modelKey] ? p = be(fe.value[D.modelKey]) : p = be(b), D.queryParams && (p.tableConfig || (p.tableConfig = {}), p.tableConfig.queryParams = D.queryParams), D.fields && (p.fields = D.fields), D.modelKey && (p.breadcrumbRoute = b.route), {
|
|
1759
1758
|
key: D.key,
|
|
1760
1759
|
label: D.label,
|
|
1761
1760
|
icon: D.icon,
|
|
1762
1761
|
disabled: D.disabled,
|
|
1763
|
-
model:
|
|
1762
|
+
model: p
|
|
1764
1763
|
};
|
|
1765
1764
|
}));
|
|
1766
1765
|
}
|
|
1767
|
-
function
|
|
1768
|
-
var L,
|
|
1769
|
-
console.log("Init table page, loading model:", t.params.model), console.log("Current model list",
|
|
1770
|
-
const
|
|
1771
|
-
if (
|
|
1772
|
-
console.warn("Model not found",
|
|
1766
|
+
function A() {
|
|
1767
|
+
var L, K;
|
|
1768
|
+
console.log("Init table page, loading model:", t.params.model), console.log("Current model list", fe.value);
|
|
1769
|
+
const V = t.params.model;
|
|
1770
|
+
if (fe.value[V] === void 0) {
|
|
1771
|
+
console.warn("Model not found", V);
|
|
1773
1772
|
return;
|
|
1774
1773
|
}
|
|
1775
|
-
|
|
1776
|
-
const
|
|
1777
|
-
Object.assign(b,
|
|
1774
|
+
Ae(b);
|
|
1775
|
+
const G = be(fe.value[V]);
|
|
1776
|
+
Object.assign(b, G), (K = (L = b.pageConfig) == null ? void 0 : L.tablePage) != null && K.tabViewAttributes || Object.assign(c, b), C();
|
|
1778
1777
|
}
|
|
1779
|
-
return
|
|
1780
|
-
() =>
|
|
1781
|
-
|
|
1778
|
+
return me([
|
|
1779
|
+
() => g.currentRoute.value,
|
|
1780
|
+
fe
|
|
1782
1781
|
], () => {
|
|
1783
|
-
|
|
1782
|
+
A();
|
|
1784
1783
|
}, {
|
|
1785
1784
|
immediate: !0,
|
|
1786
1785
|
deep: !0
|
|
1787
|
-
}), (
|
|
1788
|
-
var L,
|
|
1789
|
-
return n(),
|
|
1790
|
-
i("h1", Yo,
|
|
1791
|
-
(
|
|
1786
|
+
}), (V, G) => {
|
|
1787
|
+
var L, K, J;
|
|
1788
|
+
return n(), B(ee, null, [
|
|
1789
|
+
i("h1", Yo, Q(v(o)((L = b.name) != null ? L : "")), 1),
|
|
1790
|
+
(J = (K = b.pageConfig) == null ? void 0 : K.tablePage) != null && J.tabViewAttributes ? (n(), _(qe, {
|
|
1792
1791
|
key: 0,
|
|
1793
1792
|
cards: e.value,
|
|
1794
1793
|
tableRef: a.value
|
|
1795
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
1794
|
+
}, null, 8, ["cards", "tableRef"])) : T("", !0),
|
|
1796
1795
|
d(Me, {
|
|
1797
1796
|
ref_key: "tableRef",
|
|
1798
1797
|
ref: a,
|
|
@@ -1804,11 +1803,11 @@ const Be = (s) => {
|
|
|
1804
1803
|
}), Ho = /* @__PURE__ */ re(qo, [["__scopeId", "data-v-0381c6cb"]]), Jo = [
|
|
1805
1804
|
ht,
|
|
1806
1805
|
ro,
|
|
1807
|
-
|
|
1806
|
+
Xe,
|
|
1808
1807
|
go,
|
|
1809
1808
|
Co,
|
|
1809
|
+
Ye,
|
|
1810
1810
|
qe,
|
|
1811
|
-
He,
|
|
1812
1811
|
Me,
|
|
1813
1812
|
Xo,
|
|
1814
1813
|
Ho
|
|
@@ -1821,11 +1820,11 @@ export {
|
|
|
1821
1820
|
ht as Building,
|
|
1822
1821
|
ro as ConsoleApp,
|
|
1823
1822
|
Xo as DetailPage,
|
|
1824
|
-
|
|
1823
|
+
Xe as Header,
|
|
1825
1824
|
go as NoPermission,
|
|
1826
1825
|
Co as Secondary,
|
|
1827
|
-
|
|
1828
|
-
|
|
1826
|
+
Ye as SideMenu,
|
|
1827
|
+
qe as TabCard,
|
|
1829
1828
|
Ho as TablePage,
|
|
1830
1829
|
Me as TableView,
|
|
1831
1830
|
Wt as activeMenuMapping,
|
|
@@ -1833,6 +1832,6 @@ export {
|
|
|
1833
1832
|
Mt as en,
|
|
1834
1833
|
Se as i18n,
|
|
1835
1834
|
$t as menuList,
|
|
1836
|
-
|
|
1835
|
+
fe as modelList,
|
|
1837
1836
|
Qt as zh
|
|
1838
1837
|
};
|