@vancone/console-component 0.1.0-beta.7 → 0.1.0-beta.8
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 Fe = Object.getOwnPropertySymbols;
|
|
4
4
|
var et = Object.prototype.hasOwnProperty, tt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
et.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
tt.call(
|
|
5
|
+
var Re = (s, a, o) => a in s ? Ze(s, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[a] = o, Ee = (s, a) => {
|
|
6
|
+
for (var o in a || (a = {}))
|
|
7
|
+
et.call(a, o) && Re(s, o, a[o]);
|
|
8
|
+
if (Fe)
|
|
9
|
+
for (var o of Fe(a))
|
|
10
|
+
tt.call(a, o) && Re(s, o, a[o]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
13
|
-
import { openBlock as n, createElementBlock as
|
|
14
|
-
import { useRoute as
|
|
12
|
+
}, Ve = (s, a) => We(s, $e(a));
|
|
13
|
+
import { openBlock as n, createElementBlock as U, defineComponent as de, reactive as le, resolveComponent as y, createVNode as d, withCtx as r, createElementVNode as i, Fragment as ee, renderList as se, toDisplayString as Q, normalizeStyle as Ge, ref as E, onMounted as Oe, unref as v, createCommentVNode as K, createTextVNode as N, createBlock as I, resolveDynamicComponent as Se, computed as xe, watch as ue, createStaticVNode as ot, nextTick as De, normalizeClass as Te, resolveDirective as Ke, withDirectives as Pe } from "vue";
|
|
14
|
+
import { useRoute as _e, useRouter as Be } from "vue-router";
|
|
15
15
|
import at from "axios";
|
|
16
|
-
import { ElMessage as
|
|
17
|
-
import { createI18n as lt, useI18n as
|
|
18
|
-
import { ArrowRight as st, Check as rt, Refresh as
|
|
19
|
-
import { cloneDeep as
|
|
20
|
-
const re = (s,
|
|
21
|
-
const
|
|
22
|
-
for (const [g,
|
|
23
|
-
|
|
24
|
-
return
|
|
16
|
+
import { ElMessage as Ue, ElMessageBox as nt } from "element-plus";
|
|
17
|
+
import { createI18n as lt, useI18n as Ie } from "vue-i18n";
|
|
18
|
+
import { ArrowRight as st, Check as rt, Refresh as Le, QuestionFilled as it, Download as ct, Search as dt, ArrowDown as pt } from "@element-plus/icons-vue";
|
|
19
|
+
import { cloneDeep as Ce } from "lodash";
|
|
20
|
+
const re = (s, a) => {
|
|
21
|
+
const o = s.__vccOpts || s;
|
|
22
|
+
for (const [g, t] of a)
|
|
23
|
+
o[g] = t;
|
|
24
|
+
return o;
|
|
25
25
|
}, ut = {}, ft = { class: "building" };
|
|
26
|
-
function mt(s,
|
|
27
|
-
return n(),
|
|
26
|
+
function mt(s, a) {
|
|
27
|
+
return n(), U("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/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Ql6deXrt+ZJQhhnaBbDIPR9EY7onFf74OPrg+SYrnQu50QLF+6fue2xPgEUiC49zT8h2BMhzD4ZrnfE8cJBvKn1d1qUDshWJU0eun6nVWJIEQK7QnGcJ+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:
|
|
36
|
-
return g === 0 ? (b && !e &&
|
|
37
|
-
message:
|
|
35
|
+
const { headers: a, method: o } = s.config, { code: g, message: t } = s.data, { "No-Success-Message": e } = a, b = o !== "get";
|
|
36
|
+
return g === 0 ? (b && !e && Ue({
|
|
37
|
+
message: t,
|
|
38
38
|
type: "success"
|
|
39
|
-
}), Promise.resolve(s)) : (
|
|
39
|
+
}), Promise.resolve(s)) : (Ue({
|
|
40
40
|
type: "error",
|
|
41
|
-
message:
|
|
41
|
+
message: t
|
|
42
42
|
}), Promise.reject(new Error(`${g}`)));
|
|
43
43
|
}, (s) => {
|
|
44
44
|
var g;
|
|
45
|
-
const { config:
|
|
46
|
-
if (
|
|
47
|
-
const { status:
|
|
48
|
-
if (
|
|
45
|
+
const { config: a, response: o } = s;
|
|
46
|
+
if (o) {
|
|
47
|
+
const { status: t } = o;
|
|
48
|
+
if (t === 401) {
|
|
49
49
|
const c = window.escape(window.location.href);
|
|
50
|
-
let C = (g =
|
|
50
|
+
let C = (g = o.data.data) != null ? g : "https://passport.vancone.com";
|
|
51
51
|
window.location.href = `${C}/?from=${c}`;
|
|
52
52
|
}
|
|
53
|
-
const { message: e, error: b } =
|
|
54
|
-
|
|
53
|
+
const { message: e, error: b } = o.data;
|
|
54
|
+
Ue({
|
|
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 je = () => {
|
|
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
|
+
}, Xe = je();
|
|
65
65
|
function vt() {
|
|
66
|
-
return ie.get(`//${
|
|
66
|
+
return ie.get(`//${Xe}/api/passport/service/v1/account`);
|
|
67
67
|
}
|
|
68
68
|
function bt() {
|
|
69
|
-
return ie.delete(`//${
|
|
69
|
+
return ie.delete(`//${Xe}/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,26 +80,26 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
80
80
|
visible: { type: Boolean }
|
|
81
81
|
},
|
|
82
82
|
setup(s) {
|
|
83
|
-
const
|
|
83
|
+
const a = s, o = le([]);
|
|
84
84
|
function g() {
|
|
85
|
-
Ct().then(({ data:
|
|
86
|
-
|
|
85
|
+
Ct().then(({ data: t }) => {
|
|
86
|
+
o.splice(0, o.length, ...t.data.list), yt().then(({ data: e }) => {
|
|
87
87
|
const b = e.data.list;
|
|
88
|
-
|
|
88
|
+
o.forEach((c) => {
|
|
89
89
|
c.apps = b.filter((C) => C.appGroupId === c.id);
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
return g(), (
|
|
95
|
-
const b =
|
|
96
|
-
return n(),
|
|
94
|
+
return g(), (t, e) => {
|
|
95
|
+
const b = y("el-input"), c = y("el-drawer");
|
|
96
|
+
return n(), U("div", wt, [
|
|
97
97
|
d(c, {
|
|
98
98
|
"modal-class": "drawer-modal",
|
|
99
99
|
"with-header": !1,
|
|
100
100
|
direction: "ttb",
|
|
101
|
-
modelValue:
|
|
102
|
-
"onUpdate:modelValue": e[0] || (e[0] = (C) =>
|
|
101
|
+
modelValue: a.visible,
|
|
102
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.visible = C)
|
|
103
103
|
}, {
|
|
104
104
|
default: r(() => [
|
|
105
105
|
e[2] || (e[2] = i("div", { class: "favorite-list" }, [
|
|
@@ -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),
|
|
120
|
+
(n(!0), U(ee, null, se(o, (C) => (n(), U("div", _t, [
|
|
121
121
|
i("h1", null, Q(C.name), 1),
|
|
122
|
-
(n(!0),
|
|
123
|
-
var V,
|
|
124
|
-
return n(),
|
|
125
|
-
style:
|
|
122
|
+
(n(!0), U(ee, null, se(C.apps, (k) => {
|
|
123
|
+
var V, R;
|
|
124
|
+
return n(), U("a", {
|
|
125
|
+
style: Ge([{ "text-decoration": "none" }, { pointerEvents: ((V = k.homepageUrl) == null ? void 0 : V.length) > 0 ? "auto" : "none" }]),
|
|
126
126
|
target: "_blank",
|
|
127
|
-
href:
|
|
127
|
+
href: k.homepageUrl
|
|
128
128
|
}, [
|
|
129
129
|
i("h2", {
|
|
130
|
-
style:
|
|
131
|
-
}, Q(
|
|
130
|
+
style: Ge({ color: ((R = k.homepageUrl) == null ? void 0 : R.length) > 0 ? "#555" : "#bbb" })
|
|
131
|
+
}, Q(k.name), 5)
|
|
132
132
|
], 12, It);
|
|
133
133
|
}), 256))
|
|
134
134
|
]))), 256))
|
|
@@ -216,7 +216,7 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
216
216
|
yes: "是"
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
},
|
|
219
|
+
}, Me = lt({
|
|
220
220
|
legacy: !1,
|
|
221
221
|
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
222
222
|
messages: {
|
|
@@ -228,43 +228,43 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
|
|
|
228
228
|
"xml:space": "preserve",
|
|
229
229
|
viewBox: "0 0 32 32"
|
|
230
230
|
};
|
|
231
|
-
function Bt(s,
|
|
232
|
-
return n(),
|
|
231
|
+
function Bt(s, a) {
|
|
232
|
+
return n(), U("svg", xt, a[0] || (a[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
|
}
|
|
236
|
-
const Ut = { render: Bt },
|
|
236
|
+
const Ut = { render: Bt }, Gt = {
|
|
237
237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
238
238
|
width: "200",
|
|
239
239
|
height: "200",
|
|
240
240
|
class: "icon",
|
|
241
241
|
viewBox: "0 0 1024 1024"
|
|
242
242
|
};
|
|
243
|
-
function
|
|
244
|
-
return n(),
|
|
243
|
+
function Ot(s, a) {
|
|
244
|
+
return n(), U("svg", Gt, a[0] || (a[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
|
}
|
|
248
|
-
const Ft = { render:
|
|
248
|
+
const Ft = { render: Ot }, Rt = {
|
|
249
249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
250
250
|
width: "200",
|
|
251
251
|
height: "200",
|
|
252
252
|
class: "icon",
|
|
253
253
|
viewBox: "0 0 1024 1024"
|
|
254
254
|
};
|
|
255
|
-
function Vt(s,
|
|
256
|
-
return n(),
|
|
255
|
+
function Vt(s, a) {
|
|
256
|
+
return n(), U("svg", Rt, a[0] || (a[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
|
}
|
|
260
|
-
const Dt = { render: Vt },
|
|
260
|
+
const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt = { class: "icon-wrapper" }, Lt = { class: "user-wrapper" }, jt = { style: { "font-size": "11px", "font-weight": "bold" } }, Xt = { class: "user-popover-header" }, Yt = { style: { "font-size": "15px", "font-weight": "bold" } }, qt = ["onClick"], Ht = /* @__PURE__ */ de({
|
|
261
261
|
__name: "Header",
|
|
262
262
|
props: {
|
|
263
263
|
title: {},
|
|
264
264
|
helpDocUrl: {}
|
|
265
265
|
},
|
|
266
266
|
setup(s) {
|
|
267
|
-
const { t:
|
|
267
|
+
const { t: a } = Ie(), o = E(), g = E(), t = E(), e = s, b = E(!1), c = E(""), C = E(Me.global.locale), k = le([
|
|
268
268
|
{
|
|
269
269
|
id: "en",
|
|
270
270
|
name: "English"
|
|
@@ -275,62 +275,62 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
275
275
|
}
|
|
276
276
|
]);
|
|
277
277
|
Oe(() => {
|
|
278
|
-
c.value = decodeURIComponent(escape(window.atob(V("passport_username")))), c.value === "" && vt().then(({ data:
|
|
279
|
-
var
|
|
280
|
-
|
|
278
|
+
c.value = decodeURIComponent(escape(window.atob(V("passport_username")))), c.value === "" && vt().then(({ data: O }) => {
|
|
279
|
+
var w;
|
|
280
|
+
O.code == 0 && (c.value = (w = O.data.name) != null ? w : O.data.displayId);
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
|
-
function V(
|
|
284
|
-
for (var
|
|
285
|
-
for (var
|
|
286
|
-
if (
|
|
287
|
-
return
|
|
283
|
+
function V(O) {
|
|
284
|
+
for (var w = O + "=", W = document.cookie.split(";"), Y = 0; Y < W.length; Y++) {
|
|
285
|
+
for (var q = W[Y]; q.charAt(0) == " "; ) q = q.substring(1);
|
|
286
|
+
if (q.indexOf(w) != -1)
|
|
287
|
+
return q.substring(w.length, q.length);
|
|
288
288
|
}
|
|
289
289
|
return "";
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function R() {
|
|
292
292
|
bt().then(() => {
|
|
293
|
-
const
|
|
294
|
-
window.location.href = `//${
|
|
293
|
+
const O = escape(window.location.href);
|
|
294
|
+
window.location.href = `//${je()}/?from=${O}#login`;
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
297
|
+
function X(O) {
|
|
298
|
+
Me.global.locale.value = O, C.value = O, localStorage.setItem("locale", O);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function P() {
|
|
301
301
|
window.open("https://portal.vancone.com/", "_blank");
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function z() {
|
|
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 W =
|
|
311
|
-
return n(),
|
|
309
|
+
return (O, w) => {
|
|
310
|
+
const W = y("el-tooltip"), Y = y("el-avatar"), q = y("el-menu-item"), fe = y("el-icon"), m = y("el-popover"), T = y("el-menu");
|
|
311
|
+
return n(), U("div", Tt, [
|
|
312
312
|
i("div", {
|
|
313
313
|
class: "title",
|
|
314
|
-
onClick:
|
|
314
|
+
onClick: P
|
|
315
315
|
}, [
|
|
316
|
-
|
|
316
|
+
w[1] || (w[1] = i("img", {
|
|
317
317
|
src: gt,
|
|
318
318
|
class: "logo"
|
|
319
319
|
}, null, -1)),
|
|
320
|
-
|
|
321
|
-
i("span", null, Q(
|
|
320
|
+
w[2] || (w[2] = i("h1", null, "VanCone", -1)),
|
|
321
|
+
i("span", null, Q(O.title), 1)
|
|
322
322
|
]),
|
|
323
323
|
d(St, { visible: b.value }, null, 8, ["visible"]),
|
|
324
|
-
i("div",
|
|
324
|
+
i("div", Kt, [
|
|
325
325
|
d(W, {
|
|
326
326
|
effect: "dark",
|
|
327
|
-
content: v(
|
|
327
|
+
content: v(a)("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: w[0] || (w[0] = (h) => b.value = !b.value)
|
|
334
334
|
}, [
|
|
335
335
|
d(v(Ut))
|
|
336
336
|
])
|
|
@@ -339,38 +339,38 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
339
339
|
}, 8, ["content"]),
|
|
340
340
|
d(W, {
|
|
341
341
|
effect: "dark",
|
|
342
|
-
content: v(
|
|
342
|
+
content: v(a)("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(), U("div", {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "icon-wrapper",
|
|
349
349
|
onClick: D
|
|
350
350
|
}, [
|
|
351
351
|
d(v(Ft))
|
|
352
|
-
])) :
|
|
352
|
+
])) : K("", !0)
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["content"]),
|
|
356
356
|
d(W, {
|
|
357
357
|
effect: "dark",
|
|
358
|
-
content: v(
|
|
358
|
+
content: v(a)("common.header.message"),
|
|
359
359
|
placement: "bottom"
|
|
360
360
|
}, {
|
|
361
361
|
default: r(() => [
|
|
362
|
-
i("div",
|
|
362
|
+
i("div", Pt, [
|
|
363
363
|
d(v(Dt))
|
|
364
364
|
])
|
|
365
365
|
]),
|
|
366
366
|
_: 1
|
|
367
367
|
}, 8, ["content"]),
|
|
368
368
|
i("div", Lt, [
|
|
369
|
-
d(
|
|
369
|
+
d(Y, {
|
|
370
370
|
size: 30,
|
|
371
371
|
src: "",
|
|
372
372
|
ref_key: "avatarRef",
|
|
373
|
-
ref:
|
|
373
|
+
ref: o
|
|
374
374
|
}, {
|
|
375
375
|
default: r(() => [
|
|
376
376
|
i("span", jt, Q(c.value.substring(0, 2)), 1)
|
|
@@ -383,13 +383,13 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
383
383
|
effect: "dark",
|
|
384
384
|
ref_key: "popoverRef",
|
|
385
385
|
ref: g,
|
|
386
|
-
"virtual-ref":
|
|
386
|
+
"virtual-ref": o.value,
|
|
387
387
|
trigger: "hover",
|
|
388
388
|
"virtual-triggering": ""
|
|
389
389
|
}, {
|
|
390
390
|
default: r(() => [
|
|
391
391
|
i("div", Xt, [
|
|
392
|
-
d(
|
|
392
|
+
d(Y, {
|
|
393
393
|
size: 48,
|
|
394
394
|
src: ""
|
|
395
395
|
}, {
|
|
@@ -400,22 +400,22 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
400
400
|
}),
|
|
401
401
|
i("span", null, Q(c.value), 1)
|
|
402
402
|
]),
|
|
403
|
-
d(
|
|
403
|
+
d(T, { class: "user-menu" }, {
|
|
404
404
|
default: r(() => [
|
|
405
|
-
d(
|
|
405
|
+
d(q, { onClick: z }, {
|
|
406
406
|
default: r(() => [
|
|
407
|
-
|
|
407
|
+
N(Q(v(a)("common.header.userCenter")), 1)
|
|
408
408
|
]),
|
|
409
409
|
_: 1
|
|
410
410
|
}),
|
|
411
|
-
d(
|
|
411
|
+
d(q, {
|
|
412
412
|
ref_key: "switchLanguageRef",
|
|
413
|
-
ref:
|
|
413
|
+
ref: t,
|
|
414
414
|
style: { display: "flext", "justify-content": "space-between" }
|
|
415
415
|
}, {
|
|
416
416
|
default: r(() => [
|
|
417
|
-
i("span", null, Q(v(
|
|
418
|
-
d(
|
|
417
|
+
i("span", null, Q(v(a)("common.header.switchLanguage")), 1),
|
|
418
|
+
d(fe, { style: { left: "15px" } }, {
|
|
419
419
|
default: r(() => [
|
|
420
420
|
d(v(st))
|
|
421
421
|
]),
|
|
@@ -430,18 +430,18 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
430
430
|
effect: "dark",
|
|
431
431
|
ref: "popover2Ref",
|
|
432
432
|
placement: "left-start",
|
|
433
|
-
"virtual-ref":
|
|
433
|
+
"virtual-ref": t.value,
|
|
434
434
|
trigger: "hover",
|
|
435
435
|
"virtual-triggering": "",
|
|
436
436
|
"popper-style": "height: 80px; left: -165px"
|
|
437
437
|
}, {
|
|
438
438
|
default: r(() => [
|
|
439
|
-
(n(!0),
|
|
439
|
+
(n(!0), U(ee, null, se(k, (h) => (n(), U("div", {
|
|
440
440
|
class: "select-list",
|
|
441
|
-
onClick: (
|
|
441
|
+
onClick: (G) => X(h.id)
|
|
442
442
|
}, [
|
|
443
|
-
i("span", null, Q(
|
|
444
|
-
|
|
443
|
+
i("span", null, Q(h.name), 1),
|
|
444
|
+
h.id === C.value ? (n(), I(fe, {
|
|
445
445
|
key: 0,
|
|
446
446
|
style: { color: "#8ba74f" }
|
|
447
447
|
}, {
|
|
@@ -449,14 +449,14 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
449
449
|
d(v(rt))
|
|
450
450
|
]),
|
|
451
451
|
_: 1
|
|
452
|
-
})) :
|
|
452
|
+
})) : K("", !0)
|
|
453
453
|
], 8, qt))), 256))
|
|
454
454
|
]),
|
|
455
455
|
_: 1
|
|
456
456
|
}, 8, ["virtual-ref"]),
|
|
457
|
-
d(
|
|
457
|
+
d(q, { onClick: R }, {
|
|
458
458
|
default: r(() => [
|
|
459
|
-
|
|
459
|
+
N(Q(v(a)("common.header.signOut")), 1)
|
|
460
460
|
]),
|
|
461
461
|
_: 1
|
|
462
462
|
})
|
|
@@ -471,64 +471,64 @@ const Dt = { render: Vt }, Pt = { class: "header" }, Tt = { class: "right" }, Kt
|
|
|
471
471
|
]);
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
}),
|
|
474
|
+
}), Ye = /* @__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
|
-
const
|
|
481
|
-
return (
|
|
482
|
-
const
|
|
483
|
-
return
|
|
480
|
+
const a = s;
|
|
481
|
+
return (o, g) => {
|
|
482
|
+
const t = y("SideMenuItem", !0), e = y("el-sub-menu"), b = y("el-menu-item");
|
|
483
|
+
return o.menu.children && o.menu.children.length > 0 ? (n(), I(e, {
|
|
484
484
|
key: 0,
|
|
485
|
-
index:
|
|
485
|
+
index: o.menu.path
|
|
486
486
|
}, {
|
|
487
487
|
title: r(() => {
|
|
488
|
-
var c, C,
|
|
488
|
+
var c, C, k;
|
|
489
489
|
return [
|
|
490
490
|
i("div", Jt, [
|
|
491
|
-
(n(),
|
|
491
|
+
(n(), I(Se((c = o.menu.meta) == null ? void 0 : c.icon), { class: "menu-icon" }))
|
|
492
492
|
]),
|
|
493
|
-
i("span", null, Q(
|
|
493
|
+
i("span", null, Q(o.$t((k = (C = o.menu.meta) == null ? void 0 : C.title) != null ? k : "")), 1)
|
|
494
494
|
];
|
|
495
495
|
}),
|
|
496
496
|
default: r(() => [
|
|
497
|
-
(n(!0),
|
|
497
|
+
(n(!0), U(ee, null, se(o.menu.children, (c) => (n(), I(t, {
|
|
498
498
|
key: c.path,
|
|
499
499
|
route: c
|
|
500
500
|
}, null, 8, ["route"]))), 128))
|
|
501
501
|
]),
|
|
502
502
|
_: 1
|
|
503
|
-
}, 8, ["index"])) : (n(),
|
|
503
|
+
}, 8, ["index"])) : (n(), I(b, {
|
|
504
504
|
key: 1,
|
|
505
|
-
index:
|
|
505
|
+
index: a.menu.path,
|
|
506
506
|
style: { height: "40px" }
|
|
507
507
|
}, {
|
|
508
508
|
title: r(() => {
|
|
509
509
|
var c;
|
|
510
510
|
return [
|
|
511
|
-
i("span", null, Q(
|
|
511
|
+
i("span", null, Q(o.$t((c = o.menu.title) != null ? c : "")), 1)
|
|
512
512
|
];
|
|
513
513
|
}),
|
|
514
514
|
default: r(() => [
|
|
515
515
|
i("div", zt, [
|
|
516
|
-
(n(),
|
|
516
|
+
(n(), I(Se(o.$props.menu.icon), { class: "menu-icon" }))
|
|
517
517
|
])
|
|
518
518
|
]),
|
|
519
519
|
_: 1
|
|
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"]]), he = E({}), Wt = {}, $t = E([]), eo = {
|
|
524
524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
525
525
|
width: "32",
|
|
526
526
|
height: "32",
|
|
527
527
|
class: "icon",
|
|
528
528
|
viewBox: "0 0 1024 1024"
|
|
529
529
|
};
|
|
530
|
-
function to(s,
|
|
531
|
-
return n(),
|
|
530
|
+
function to(s, a) {
|
|
531
|
+
return n(), U("svg", eo, a[0] || (a[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"
|
|
@@ -541,41 +541,41 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
541
541
|
menuCollapsed: { type: Boolean }
|
|
542
542
|
},
|
|
543
543
|
emits: ["update:menuCollapsed"],
|
|
544
|
-
setup(s, { emit:
|
|
545
|
-
const
|
|
544
|
+
setup(s, { emit: a }) {
|
|
545
|
+
const o = s, g = a, t = _e(), e = E(), b = xe(() => {
|
|
546
546
|
var V;
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
549
|
-
let
|
|
550
|
-
return "/" + ((V = Wt[
|
|
547
|
+
const k = t.meta.activeMenu;
|
|
548
|
+
if (k === "{model}") {
|
|
549
|
+
let R = t.params.app ? `${t.params.app}/${t.params.model}` : t.params.model;
|
|
550
|
+
return "/" + ((V = Wt[t.params.model]) != null ? V : R);
|
|
551
551
|
} else
|
|
552
|
-
return
|
|
553
|
-
}), c =
|
|
552
|
+
return k;
|
|
553
|
+
}), c = E(!1);
|
|
554
554
|
function C() {
|
|
555
|
-
console.log("change"), g("update:menuCollapsed", !
|
|
555
|
+
console.log("change"), g("update:menuCollapsed", !o.menuCollapsed);
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return ue(c, () => {
|
|
558
558
|
c.value && e.value.style.width && (e.value.style.width += "200");
|
|
559
|
-
}), (
|
|
560
|
-
const
|
|
561
|
-
return n(),
|
|
559
|
+
}), (k, V) => {
|
|
560
|
+
const R = y("el-menu");
|
|
561
|
+
return n(), U("div", ao, [
|
|
562
562
|
i("div", no, [
|
|
563
563
|
d(v(oo), {
|
|
564
564
|
class: "menu-button",
|
|
565
565
|
onClick: C
|
|
566
566
|
})
|
|
567
567
|
]),
|
|
568
|
-
d(
|
|
568
|
+
d(R, {
|
|
569
569
|
class: "menu",
|
|
570
570
|
"default-active": b.value,
|
|
571
571
|
"default-openeds": ["table"],
|
|
572
572
|
router: "",
|
|
573
|
-
collapse:
|
|
573
|
+
collapse: o.menuCollapsed
|
|
574
574
|
}, {
|
|
575
575
|
default: r(() => [
|
|
576
|
-
(n(!0),
|
|
577
|
-
key:
|
|
578
|
-
menu:
|
|
576
|
+
(n(!0), U(ee, null, se(v($t), (X) => (n(), I(Zt, {
|
|
577
|
+
key: X.path,
|
|
578
|
+
menu: X
|
|
579
579
|
}, null, 8, ["menu"]))), 128))
|
|
580
580
|
]),
|
|
581
581
|
_: 1
|
|
@@ -583,30 +583,30 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
583
583
|
]);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
}),
|
|
586
|
+
}), qe = /* @__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
|
|
594
|
-
return
|
|
595
|
-
|
|
593
|
+
const a = _e(), o = E(!1), g = E(), t = s;
|
|
594
|
+
return ue(o, () => {
|
|
595
|
+
o.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
|
-
v(
|
|
597
|
+
const c = y("router-view");
|
|
598
|
+
return n(), U(ee, null, [
|
|
599
|
+
v(a).query.embedded !== "true" ? (n(), I(Ye, {
|
|
600
600
|
key: 0,
|
|
601
|
-
title:
|
|
602
|
-
helpDocUrl:
|
|
603
|
-
}, null, 8, ["title", "helpDocUrl"])) :
|
|
601
|
+
title: t.title,
|
|
602
|
+
helpDocUrl: t.helpDocUrl
|
|
603
|
+
}, null, 8, ["title", "helpDocUrl"])) : K("", !0),
|
|
604
604
|
i("div", so, [
|
|
605
|
-
v(
|
|
605
|
+
v(a).query.embedded !== "true" ? (n(), I(qe, {
|
|
606
606
|
key: 0,
|
|
607
|
-
menuCollapsed:
|
|
608
|
-
"onUpdate:menuCollapsed": b[0] || (b[0] = (C) =>
|
|
609
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
607
|
+
menuCollapsed: o.value,
|
|
608
|
+
"onUpdate:menuCollapsed": b[0] || (b[0] = (C) => o.value = C)
|
|
609
|
+
}, null, 8, ["menuCollapsed"])) : K("", !0),
|
|
610
610
|
i("main", {
|
|
611
611
|
ref_key: "mainWrapperRef",
|
|
612
612
|
ref: g,
|
|
@@ -623,29 +623,29 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
|
|
|
623
623
|
width: "800",
|
|
624
624
|
height: "800"
|
|
625
625
|
};
|
|
626
|
-
function co(s,
|
|
627
|
-
return n(),
|
|
626
|
+
function co(s, a) {
|
|
627
|
+
return n(), U("svg", io, a[0] || (a[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
|
-
function ho(s,
|
|
633
|
-
const
|
|
634
|
-
return n(),
|
|
635
|
-
|
|
632
|
+
function ho(s, a) {
|
|
633
|
+
const o = y("el-button");
|
|
634
|
+
return n(), U("div", fo, [
|
|
635
|
+
a[4] || (a[4] = i("img", { src: po }, null, -1)),
|
|
636
636
|
i("div", mo, [
|
|
637
|
-
|
|
638
|
-
d(
|
|
639
|
-
default: r(() =>
|
|
640
|
-
|
|
637
|
+
a[3] || (a[3] = i("h1", null, "You have no permission to access the page.", -1)),
|
|
638
|
+
d(o, { type: "primary" }, {
|
|
639
|
+
default: r(() => a[1] || (a[1] = [
|
|
640
|
+
N("Apply")
|
|
641
641
|
])),
|
|
642
642
|
_: 1
|
|
643
643
|
}),
|
|
644
|
-
d(
|
|
645
|
-
onClick:
|
|
644
|
+
d(o, {
|
|
645
|
+
onClick: a[0] || (a[0] = (g) => s.$router.go(-1))
|
|
646
646
|
}, {
|
|
647
|
-
default: r(() =>
|
|
648
|
-
|
|
647
|
+
default: r(() => a[2] || (a[2] = [
|
|
648
|
+
N("Go Back")
|
|
649
649
|
])),
|
|
650
650
|
_: 1
|
|
651
651
|
})
|
|
@@ -653,9 +653,9 @@ function ho(s, o) {
|
|
|
653
653
|
]);
|
|
654
654
|
}
|
|
655
655
|
const go = /* @__PURE__ */ re(uo, [["render", ho], ["__scopeId", "data-v-0155b361"]]), vo = {};
|
|
656
|
-
function bo(s,
|
|
657
|
-
const
|
|
658
|
-
return n(),
|
|
656
|
+
function bo(s, a) {
|
|
657
|
+
const o = y("router-view");
|
|
658
|
+
return n(), I(o);
|
|
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({
|
|
661
661
|
__name: "TabCard",
|
|
@@ -664,31 +664,31 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
|
|
|
664
664
|
tableRef: {}
|
|
665
665
|
},
|
|
666
666
|
setup(s) {
|
|
667
|
-
const { t:
|
|
667
|
+
const { t: a } = Ie(), o = _e(), g = Be(), t = s, e = E(t.cards[0].key);
|
|
668
668
|
function b(c) {
|
|
669
|
-
c.disabled || (e.value = c.key,
|
|
670
|
-
path:
|
|
671
|
-
query:
|
|
669
|
+
c.disabled || (e.value = c.key, t.tableRef.updateConfigAndRefresh(c.model), g.push({
|
|
670
|
+
path: o.path,
|
|
671
|
+
query: Ve(Ee({}, o.query), { tab: c.key })
|
|
672
672
|
}));
|
|
673
673
|
}
|
|
674
674
|
return Oe(() => {
|
|
675
675
|
let c;
|
|
676
|
-
if (
|
|
677
|
-
for (let C of
|
|
678
|
-
if (C.key ===
|
|
676
|
+
if (o.query.tab !== void 0) {
|
|
677
|
+
for (let C of t.cards)
|
|
678
|
+
if (C.key === o.query.tab) {
|
|
679
679
|
e.value = C.key, c = C;
|
|
680
680
|
break;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
De(() => {
|
|
684
|
+
t.tableRef && t.cards && t.cards.length > 0 && t.tableRef.updateConfigAndRefresh((c != null ? c : t.cards[0]).model);
|
|
685
685
|
});
|
|
686
|
-
}),
|
|
687
|
-
() =>
|
|
686
|
+
}), ue(
|
|
687
|
+
() => t.cards,
|
|
688
688
|
(c) => {
|
|
689
|
-
if (
|
|
690
|
-
for (let C of
|
|
691
|
-
if (C.key ===
|
|
689
|
+
if (o.query.tab !== void 0) {
|
|
690
|
+
for (let C of t.cards)
|
|
691
|
+
if (C.key === o.query.tab) {
|
|
692
692
|
e.value = C.key;
|
|
693
693
|
break;
|
|
694
694
|
}
|
|
@@ -698,47 +698,47 @@ 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: (V) => b(
|
|
701
|
+
), (c, C) => (n(), U("div", yo, [
|
|
702
|
+
(n(!0), U(ee, null, se(t.cards, (k) => (n(), U("div", {
|
|
703
|
+
class: Te(["card", { "card-selected": e.value === k.key }]),
|
|
704
|
+
onClick: (V) => b(k)
|
|
705
705
|
}, [
|
|
706
706
|
i("div", Ao, [
|
|
707
707
|
i("div", ko, [
|
|
708
708
|
i("div", _o, [
|
|
709
|
-
|
|
709
|
+
k.icon ? (n(), I(Se(k.icon), {
|
|
710
710
|
key: 0,
|
|
711
711
|
class: "svg-icon"
|
|
712
|
-
})) :
|
|
712
|
+
})) : K("", !0)
|
|
713
713
|
]),
|
|
714
714
|
i("span", {
|
|
715
|
-
style:
|
|
716
|
-
}, Q(v(
|
|
715
|
+
style: Ge({ color: k.disabled ? "#aaa" : "black" })
|
|
716
|
+
}, Q(v(a)(k.label)), 5)
|
|
717
717
|
]),
|
|
718
|
-
i("span", null, Q(
|
|
718
|
+
i("span", null, Q(k.count), 1)
|
|
719
719
|
])
|
|
720
720
|
], 10, wo))), 256))
|
|
721
721
|
]));
|
|
722
722
|
}
|
|
723
|
-
}),
|
|
724
|
-
function
|
|
725
|
-
switch (
|
|
723
|
+
}), He = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-3d98d97f"]]);
|
|
724
|
+
function ve(s, a, o) {
|
|
725
|
+
switch (a) {
|
|
726
726
|
case "POST":
|
|
727
|
-
return ie.post(s,
|
|
727
|
+
return ie.post(s, o);
|
|
728
728
|
case "PUT":
|
|
729
|
-
return ie.put(s,
|
|
729
|
+
return ie.put(s, o);
|
|
730
730
|
case "DELETE":
|
|
731
|
-
return ie.delete(s + "/" +
|
|
731
|
+
return ie.delete(s + "/" + o);
|
|
732
732
|
default:
|
|
733
|
-
return ie.get(s, { params:
|
|
733
|
+
return ie.get(s, { params: o });
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
const
|
|
737
|
-
const
|
|
738
|
-
let
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}), Object.assign(s,
|
|
736
|
+
const ke = (s) => {
|
|
737
|
+
const a = Object.keys(s);
|
|
738
|
+
let o = {};
|
|
739
|
+
a.forEach((g) => {
|
|
740
|
+
o[g] = void 0;
|
|
741
|
+
}), Object.assign(s, o);
|
|
742
742
|
}, Eo = {
|
|
743
743
|
key: 1,
|
|
744
744
|
class: "view-span"
|
|
@@ -753,41 +753,41 @@ const Ae = (s) => {
|
|
|
753
753
|
afterSubmitFunc: { type: Function }
|
|
754
754
|
},
|
|
755
755
|
emits: ["update:id"],
|
|
756
|
-
setup(s, { expose:
|
|
757
|
-
const { t: g } =
|
|
756
|
+
setup(s, { expose: a, emit: o }) {
|
|
757
|
+
const { t: g } = Me.global, t = s, e = le({}), b = E(!1), c = E(), C = le({}), k = E(!0), V = (m) => t.mode === "view" && (q(m, void 0) || q(m, "input") || q(m, "select") || q(m, "password")), R = xe(() => t.model.fields ? t.model.fields.filter(
|
|
758
758
|
(m) => {
|
|
759
|
-
var
|
|
760
|
-
let
|
|
761
|
-
if (
|
|
759
|
+
var G, _, A, x;
|
|
760
|
+
let T = m.visible !== !1 && ((G = m.formItemAttributes) == null ? void 0 : G.visible) !== !1;
|
|
761
|
+
if (t.mode !== "view" && ((_ = m.formItemAttributes) == null ? void 0 : _.editable) === !1 || t.mode === "view" && ((A = m.formItemAttributes) == null ? void 0 : A.type) === "password")
|
|
762
762
|
return !1;
|
|
763
|
-
let
|
|
764
|
-
return
|
|
763
|
+
let h = (x = m.formItemAttributes) == null ? void 0 : x.showCondition;
|
|
764
|
+
return h && h.field && h.value ? e[h.field] === h.value : T;
|
|
765
765
|
}
|
|
766
766
|
) : []);
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
ue([() => t.id, () => t.sessionId], () => {
|
|
768
|
+
P();
|
|
769
769
|
});
|
|
770
|
-
function
|
|
771
|
-
const m =
|
|
772
|
-
let
|
|
773
|
-
m == null || m.forEach((
|
|
774
|
-
var
|
|
775
|
-
if (e[
|
|
776
|
-
if (((
|
|
777
|
-
let
|
|
778
|
-
|
|
770
|
+
function X() {
|
|
771
|
+
const m = t.model.fields;
|
|
772
|
+
let T = {};
|
|
773
|
+
m == null || m.forEach((h) => {
|
|
774
|
+
var G, _, A, x, M, F, L, p, S;
|
|
775
|
+
if (e[h.prop] = null, h.visible !== !1 && ((G = h.formItemAttributes) == null ? void 0 : G.visible) !== !1) {
|
|
776
|
+
if (((_ = h.formItemAttributes) == null ? void 0 : _.defaultValue) !== void 0 ? e[h.prop] = (A = h.formItemAttributes) == null ? void 0 : A.defaultValue : e[h.prop] = void 0, t.mode !== "view") {
|
|
777
|
+
let H = (x = h.formItemAttributes) == null ? void 0 : x.validationRule;
|
|
778
|
+
H !== void 0 && (T[h.prop] = H), Object.assign(C, T);
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
if (l === "select" &&
|
|
782
|
-
let
|
|
783
|
-
const oe = (
|
|
784
|
-
oe && (
|
|
780
|
+
const u = h.formItemAttributes, l = u == null ? void 0 : u.type, f = (M = u == null ? void 0 : u.selectAttributes) == null ? void 0 : M.api, B = (F = u == null ? void 0 : u.selectAttributes) == null ? void 0 : F.valueMappingField, Z = (L = u == null ? void 0 : u.selectAttributes) == null ? void 0 : L.labelMappingField;
|
|
781
|
+
if (l === "select" && f) {
|
|
782
|
+
let H = f;
|
|
783
|
+
const oe = (p = u == null ? void 0 : u.selectAttributes) == null ? void 0 : p.queryParamName, ce = (S = u == null ? void 0 : u.selectAttributes) == null ? void 0 : S.queryParamValueField;
|
|
784
|
+
oe && (H = `${H}?${oe}=${t.id}`), ce || ve(H, "GET", {}).then(({ data: ae }) => {
|
|
785
785
|
var ne;
|
|
786
|
-
if ((ne =
|
|
787
|
-
let
|
|
788
|
-
Array.isArray(ae.data) ?
|
|
789
|
-
value:
|
|
790
|
-
label: Z ?
|
|
786
|
+
if ((ne = h.formItemAttributes) != null && ne.selectAttributes) {
|
|
787
|
+
let $ = [];
|
|
788
|
+
Array.isArray(ae.data) ? $ = ae.data : ae.data.list && Array.isArray(ae.data.list) && ($ = ae.data.list), h.formItemAttributes.selectAttributes.options = $.map((j) => ({
|
|
789
|
+
value: B ? j[B] : j.value,
|
|
790
|
+
label: Z ? j[Z] : j.label
|
|
791
791
|
}));
|
|
792
792
|
}
|
|
793
793
|
});
|
|
@@ -795,20 +795,20 @@ const Ae = (s) => {
|
|
|
795
795
|
}
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function P() {
|
|
799
799
|
var m;
|
|
800
|
-
D(),
|
|
801
|
-
|
|
800
|
+
console.log("init form", t.id, t.model), D(), k.value = (m = t.model.useI18n) != null ? m : !0, X(), (t.mode === "update" || t.mode === "view") && t.id !== void 0 && t.id !== "" && (b.value = !0, ve(`${t.model.api}/${t.id}`, "GET", {}).then(({ data: T }) => {
|
|
801
|
+
ke(e), Object.assign(e, T.data), b.value = !1;
|
|
802
802
|
}));
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
return new Promise((m,
|
|
806
|
-
var
|
|
807
|
-
((
|
|
808
|
-
let
|
|
809
|
-
|
|
810
|
-
var
|
|
811
|
-
|
|
804
|
+
function z() {
|
|
805
|
+
return new Promise((m, T) => {
|
|
806
|
+
var G, _, A, x;
|
|
807
|
+
((_ = (G = t.model.formConfig) == null ? void 0 : G.functions) == null ? void 0 : _.beforeSubmit) !== void 0 && Object.assign(e, (x = (A = t.model.formConfig) == null ? void 0 : A.functions) == null ? void 0 : x.beforeSubmit(e));
|
|
808
|
+
let h = t.mode === "create" ? "POST" : "PUT";
|
|
809
|
+
t.model.api && ve(t.model.api, h, e).then(({ data: M }) => {
|
|
810
|
+
var F, L, p, S;
|
|
811
|
+
M.code === 0 && (t.closeDialogFunc && t.closeDialogFunc(), ((L = (F = t.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : L.afterSubmit) !== void 0 && ((S = (p = t.model.formConfig) == null ? void 0 : p.functions) == null || S.afterSubmit(M.data)), t.afterSubmitFunc && t.afterSubmitFunc(), m());
|
|
812
812
|
});
|
|
813
813
|
});
|
|
814
814
|
}
|
|
@@ -816,58 +816,58 @@ const Ae = (s) => {
|
|
|
816
816
|
var m;
|
|
817
817
|
(m = c.value) == null || m.resetFields();
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return m.label ?
|
|
819
|
+
function O(m) {
|
|
820
|
+
return m.label ? k ? g(m.label) : m.label : m.prop.slice(0, 1).toUpperCase() + m.prop.slice(1).toLowerCase();
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
var
|
|
822
|
+
function w(m) {
|
|
823
|
+
var T, h, G, _;
|
|
824
824
|
if (m) {
|
|
825
|
-
if (
|
|
826
|
-
const
|
|
825
|
+
if (q(m, "select")) {
|
|
826
|
+
const A = (h = (T = m.tableColumnAttributes) == null ? void 0 : T.functions) == null ? void 0 : h.transformValue;
|
|
827
|
+
if (A)
|
|
828
|
+
return A(e[m.prop]);
|
|
829
|
+
const x = (_ = (G = m.formItemAttributes) == null ? void 0 : G.selectAttributes) == null ? void 0 : _.viewModeLabelField;
|
|
827
830
|
if (x)
|
|
828
|
-
return
|
|
829
|
-
const M = (y = (h = m.formItemAttributes) == null ? void 0 : h.selectAttributes) == null ? void 0 : y.viewModeLabelField;
|
|
830
|
-
if (M)
|
|
831
|
-
return e[M];
|
|
831
|
+
return e[x];
|
|
832
832
|
}
|
|
833
833
|
return e[m.prop];
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
function W(m) {
|
|
837
|
-
var
|
|
838
|
-
return ((
|
|
837
|
+
var T;
|
|
838
|
+
return ((T = m.formItemAttributes) == null ? void 0 : T.updatable) === !1 && t.mode === "update";
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
var
|
|
842
|
-
const
|
|
840
|
+
function Y(m, T) {
|
|
841
|
+
var G, _;
|
|
842
|
+
const h = (_ = (G = T.formItemAttributes) == null ? void 0 : G.type) != null ? _ : "input";
|
|
843
843
|
switch (m) {
|
|
844
844
|
case "input":
|
|
845
|
-
return
|
|
845
|
+
return t.mode === "view" ? !1 : h === "input" || h === "password";
|
|
846
846
|
case "select":
|
|
847
847
|
return !0;
|
|
848
848
|
default:
|
|
849
849
|
return console.log("Error: unrecognized form component type: ", m), !0;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
var
|
|
854
|
-
return ((
|
|
852
|
+
function q(m, T) {
|
|
853
|
+
var h;
|
|
854
|
+
return ((h = m.formItemAttributes) == null ? void 0 : h.type) === T;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
var
|
|
858
|
-
for (let
|
|
859
|
-
const
|
|
860
|
-
if (!(!
|
|
861
|
-
const
|
|
862
|
-
if (
|
|
863
|
-
let
|
|
864
|
-
const
|
|
865
|
-
|
|
866
|
-
if (
|
|
867
|
-
let
|
|
868
|
-
Array.isArray(
|
|
869
|
-
value:
|
|
870
|
-
label:
|
|
856
|
+
function fe(m) {
|
|
857
|
+
var T;
|
|
858
|
+
for (let h of t.model.fields) {
|
|
859
|
+
const G = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes;
|
|
860
|
+
if (!(!h.formItemAttributes || h.formItemAttributes.type !== "select" || !G || !G.queryParamValueField) && G.queryParamValueField === m.prop) {
|
|
861
|
+
const _ = G.api;
|
|
862
|
+
if (_) {
|
|
863
|
+
let A = _;
|
|
864
|
+
const x = G.queryParamName;
|
|
865
|
+
x && (A = `${A}?${x}=${e[G.queryParamValueField]}`), ve(A, "GET", {}).then(({ data: M }) => {
|
|
866
|
+
if (G) {
|
|
867
|
+
let F = [];
|
|
868
|
+
Array.isArray(M.data) ? F = M.data : M.data.list && Array.isArray(M.data.list) && (F = M.data.list), G.options = F.map((L) => ({
|
|
869
|
+
value: G.valueMappingField ? L[G.valueMappingField] : L.value,
|
|
870
|
+
label: G.labelMappingField ? L[G.labelMappingField] : L.label
|
|
871
871
|
}));
|
|
872
872
|
}
|
|
873
873
|
});
|
|
@@ -876,15 +876,15 @@ const Ae = (s) => {
|
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
return Oe(() => {
|
|
879
|
-
|
|
880
|
-
}),
|
|
881
|
-
refresh:
|
|
879
|
+
P();
|
|
880
|
+
}), a({
|
|
881
|
+
refresh: P,
|
|
882
882
|
reset: D,
|
|
883
|
-
submit:
|
|
883
|
+
submit: z,
|
|
884
884
|
formData: e
|
|
885
|
-
}), (m,
|
|
886
|
-
const
|
|
887
|
-
return
|
|
885
|
+
}), (m, T) => {
|
|
886
|
+
const h = y("el-input"), G = y("el-switch"), _ = y("el-date-picker"), A = y("el-option"), x = y("el-select"), M = y("el-form-item"), F = y("el-form"), L = Ke("loading");
|
|
887
|
+
return Pe((n(), I(F, {
|
|
888
888
|
ref_key: "formRef",
|
|
889
889
|
ref: c,
|
|
890
890
|
model: e,
|
|
@@ -895,52 +895,52 @@ const Ae = (s) => {
|
|
|
895
895
|
inline: !0
|
|
896
896
|
}, {
|
|
897
897
|
default: r(() => [
|
|
898
|
-
(n(!0),
|
|
898
|
+
(n(!0), U(ee, null, se(R.value, (p) => (n(), I(M, {
|
|
899
899
|
class: "form-item",
|
|
900
|
-
prop:
|
|
901
|
-
label: p
|
|
900
|
+
prop: p.prop,
|
|
901
|
+
label: O(p)
|
|
902
902
|
}, {
|
|
903
903
|
default: r(() => {
|
|
904
|
-
var
|
|
904
|
+
var S;
|
|
905
905
|
return [
|
|
906
|
-
|
|
906
|
+
Y("input", p) ? (n(), I(h, {
|
|
907
907
|
key: 0,
|
|
908
|
-
type:
|
|
909
|
-
modelValue: e[
|
|
910
|
-
"onUpdate:modelValue": (
|
|
911
|
-
placeholder: (
|
|
912
|
-
disabled: W(
|
|
913
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
914
|
-
V(
|
|
915
|
-
|
|
908
|
+
type: q(p, "password") ? "password" : "text",
|
|
909
|
+
modelValue: e[p.prop],
|
|
910
|
+
"onUpdate:modelValue": (u) => e[p.prop] = u,
|
|
911
|
+
placeholder: (S = p.formItemAttributes) == null ? void 0 : S.placeholder,
|
|
912
|
+
disabled: W(p)
|
|
913
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : K("", !0),
|
|
914
|
+
V(p) ? (n(), U("span", Eo, Q(w(p)), 1)) : K("", !0),
|
|
915
|
+
q(p, "switch") ? (n(), I(G, {
|
|
916
916
|
key: 2,
|
|
917
|
-
modelValue: e[
|
|
918
|
-
"onUpdate:modelValue": (
|
|
919
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) :
|
|
920
|
-
|
|
917
|
+
modelValue: e[p.prop],
|
|
918
|
+
"onUpdate:modelValue": (u) => e[p.prop] = u
|
|
919
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : K("", !0),
|
|
920
|
+
q(p, "datepicker") ? (n(), I(_, {
|
|
921
921
|
key: 3,
|
|
922
922
|
type: "date",
|
|
923
|
-
modelValue: e[
|
|
924
|
-
"onUpdate:modelValue": (
|
|
925
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) :
|
|
926
|
-
|
|
923
|
+
modelValue: e[p.prop],
|
|
924
|
+
"onUpdate:modelValue": (u) => e[p.prop] = u
|
|
925
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : K("", !0),
|
|
926
|
+
q(p, "select") && m.mode !== "view" ? (n(), I(x, {
|
|
927
927
|
key: 4,
|
|
928
|
-
modelValue: e[
|
|
929
|
-
"onUpdate:modelValue": (
|
|
930
|
-
disabled: W(
|
|
931
|
-
onChange: (
|
|
928
|
+
modelValue: e[p.prop],
|
|
929
|
+
"onUpdate:modelValue": (u) => e[p.prop] = u,
|
|
930
|
+
disabled: W(p),
|
|
931
|
+
onChange: (u) => fe(p)
|
|
932
932
|
}, {
|
|
933
933
|
default: r(() => {
|
|
934
|
-
var
|
|
934
|
+
var u, l;
|
|
935
935
|
return [
|
|
936
|
-
(n(!0),
|
|
937
|
-
value:
|
|
938
|
-
label:
|
|
936
|
+
(n(!0), U(ee, null, se((l = (u = p.formItemAttributes) == null ? void 0 : u.selectAttributes) == null ? void 0 : l.options, (f) => (n(), I(A, {
|
|
937
|
+
value: f.value,
|
|
938
|
+
label: f.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"])) : K("", !0)
|
|
944
944
|
];
|
|
945
945
|
}),
|
|
946
946
|
_: 2
|
|
@@ -948,11 +948,11 @@ const Ae = (s) => {
|
|
|
948
948
|
]),
|
|
949
949
|
_: 1
|
|
950
950
|
}, 8, ["model", "rules"])), [
|
|
951
|
-
[
|
|
951
|
+
[L, b.value]
|
|
952
952
|
]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), Je = /* @__PURE__ */ re(So, [["__scopeId", "data-v-2aa73ecc"]]), Mo = { class: "dialog-footer" }, Qo = { class: "operation-button-wrapper" }, xo = /* @__PURE__ */ de({
|
|
956
956
|
__name: "FormDialog",
|
|
957
957
|
props: {
|
|
958
958
|
id: {},
|
|
@@ -962,58 +962,58 @@ const Ae = (s) => {
|
|
|
962
962
|
afterSubmitFunc: { type: Function }
|
|
963
963
|
},
|
|
964
964
|
emits: ["update:visible", "update:id"],
|
|
965
|
-
setup(s, { expose:
|
|
966
|
-
const { t: g } =
|
|
967
|
-
|
|
968
|
-
|
|
965
|
+
setup(s, { expose: a, emit: o }) {
|
|
966
|
+
const { t: g } = Ie(), t = s, e = E(0), b = o, c = E();
|
|
967
|
+
ue(() => t.visible, () => {
|
|
968
|
+
t.visible && e.value++;
|
|
969
969
|
});
|
|
970
970
|
function C() {
|
|
971
971
|
c.value && c.value.refresh();
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function k() {
|
|
974
974
|
b("update:visible", !1), c.value.reset();
|
|
975
975
|
}
|
|
976
976
|
function V() {
|
|
977
977
|
c.value.submit();
|
|
978
978
|
}
|
|
979
|
-
return
|
|
980
|
-
close:
|
|
979
|
+
return a({
|
|
980
|
+
close: k,
|
|
981
981
|
refresh: C
|
|
982
|
-
}), (
|
|
983
|
-
const
|
|
984
|
-
return n(),
|
|
982
|
+
}), (R, X) => {
|
|
983
|
+
const P = y("el-button"), z = y("el-dialog");
|
|
984
|
+
return n(), I(z, {
|
|
985
985
|
title: "Edit",
|
|
986
|
-
"model-value":
|
|
986
|
+
"model-value": t.visible,
|
|
987
987
|
width: "800px",
|
|
988
|
-
onClose:
|
|
988
|
+
onClose: k
|
|
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), U(ee, null, se((D = t.model.formConfig) == null ? void 0 : D.dialogButtons, (O) => (n(), I(P, {
|
|
996
|
+
onClick: (w) => O.function(c.value.formData)
|
|
997
997
|
}, {
|
|
998
998
|
default: r(() => [
|
|
999
|
-
|
|
999
|
+
N(Q(v(g)(O.label)), 1)
|
|
1000
1000
|
]),
|
|
1001
1001
|
_: 2
|
|
1002
1002
|
}, 1032, ["onClick"]))), 256))
|
|
1003
1003
|
]),
|
|
1004
1004
|
i("div", null, [
|
|
1005
|
-
d(
|
|
1005
|
+
d(P, { onClick: k }, {
|
|
1006
1006
|
default: r(() => [
|
|
1007
|
-
|
|
1007
|
+
N(Q(v(g)("common.basic.cancel")), 1)
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 1
|
|
1010
1010
|
}),
|
|
1011
|
-
d(
|
|
1011
|
+
d(P, {
|
|
1012
1012
|
type: "primary",
|
|
1013
1013
|
onClick: V
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: r(() => [
|
|
1016
|
-
|
|
1016
|
+
N(Q(v(g)("common.basic.save")), 1)
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
1019
1019
|
})
|
|
@@ -1022,216 +1022,216 @@ const Ae = (s) => {
|
|
|
1022
1022
|
];
|
|
1023
1023
|
}),
|
|
1024
1024
|
default: r(() => [
|
|
1025
|
-
d(
|
|
1025
|
+
d(Je, {
|
|
1026
1026
|
ref_key: "formViewRef",
|
|
1027
1027
|
ref: c,
|
|
1028
|
-
id:
|
|
1028
|
+
id: t.id,
|
|
1029
1029
|
sessionId: e.value,
|
|
1030
|
-
mode:
|
|
1031
|
-
model:
|
|
1032
|
-
afterSubmitFunc:
|
|
1033
|
-
closeDialogFunc:
|
|
1030
|
+
mode: t.mode,
|
|
1031
|
+
model: t.model,
|
|
1032
|
+
afterSubmitFunc: t.afterSubmitFunc,
|
|
1033
|
+
closeDialogFunc: k
|
|
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
|
+
}), ze = /* @__PURE__ */ re(xo, [["__scopeId", "data-v-d1628662"]]), Bo = { class: "toolbar" }, Uo = { class: "tool-buttons" }, Go = { class: "tool-buttons" }, Oo = { key: 1 }, Fo = /* @__PURE__ */ de({
|
|
1041
1041
|
__name: "TableView",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
model: {}
|
|
1044
1044
|
},
|
|
1045
|
-
setup(s, { expose:
|
|
1046
|
-
const { t } =
|
|
1045
|
+
setup(s, { expose: a }) {
|
|
1046
|
+
const { t: o } = Me.global, g = s, t = le([]), e = le({
|
|
1047
1047
|
showPane: !0
|
|
1048
|
-
}), b =
|
|
1048
|
+
}), b = E(""), c = E(!0), C = E(!1), k = Be(), V = E(""), R = le([]), X = le([]), P = E(), z = E([]), D = E("create"), O = E(!0), w = E(!1), W = E(""), Y = le({
|
|
1049
1049
|
pageSize: 10,
|
|
1050
1050
|
pageNo: 1,
|
|
1051
1051
|
totalElements: 0
|
|
1052
|
-
}),
|
|
1052
|
+
}), q = xe(() => t.filter(
|
|
1053
1053
|
(l) => {
|
|
1054
|
-
var
|
|
1055
|
-
return ((
|
|
1054
|
+
var f, B;
|
|
1055
|
+
return ((f = l.formItemAttributes) == null ? void 0 : f.type) !== "password" && l.visible !== !1 && ((B = l.tableColumnAttributes) == null ? void 0 : B.visible) !== !1;
|
|
1056
1056
|
}
|
|
1057
1057
|
));
|
|
1058
|
-
function
|
|
1058
|
+
function fe(l, f) {
|
|
1059
1059
|
var oe, ce, ae, ne;
|
|
1060
|
-
let
|
|
1061
|
-
const Z = (ce = (oe = l.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ce.transformValue,
|
|
1060
|
+
let B = f.row[l.prop];
|
|
1061
|
+
const Z = (ce = (oe = l.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ce.transformValue, H = (ae = l.tableColumnAttributes) == null ? void 0 : ae.transformValueMappings;
|
|
1062
1062
|
if (Z)
|
|
1063
|
-
|
|
1064
|
-
else if (
|
|
1065
|
-
for (let
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1063
|
+
B = Z(B);
|
|
1064
|
+
else if (H && H.length > 0) {
|
|
1065
|
+
for (let $ of H)
|
|
1066
|
+
if (B === $.value) {
|
|
1067
|
+
B = o($.label);
|
|
1068
1068
|
break;
|
|
1069
1069
|
}
|
|
1070
1070
|
} else if (((ne = l.formItemAttributes) == null ? void 0 : ne.type) === "select") {
|
|
1071
|
-
const
|
|
1072
|
-
if (
|
|
1073
|
-
if (
|
|
1074
|
-
|
|
1075
|
-
else if (
|
|
1076
|
-
for (let
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
1071
|
+
const $ = l.formItemAttributes.selectAttributes;
|
|
1072
|
+
if ($) {
|
|
1073
|
+
if ($.viewModeLabelField)
|
|
1074
|
+
B = f.row[$.viewModeLabelField];
|
|
1075
|
+
else if ($.options && $.options.length > 0) {
|
|
1076
|
+
for (let j of $.options)
|
|
1077
|
+
if (j.value === f.row[l.prop]) {
|
|
1078
|
+
B = j.label;
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
return
|
|
1084
|
+
return B;
|
|
1085
1085
|
}
|
|
1086
|
-
function m(l,
|
|
1087
|
-
var
|
|
1088
|
-
return l.label ?
|
|
1086
|
+
function m(l, f) {
|
|
1087
|
+
var B, Z;
|
|
1088
|
+
return l.label ? o(l.label) : (Z = (B = l.functions) == null ? void 0 : B.transformLabel) == null ? void 0 : Z.call(B, f.$index, f.row);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
|
|
1090
|
+
function T(l) {
|
|
1091
|
+
ke(g.model), Object.assign(g.model, l);
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
var
|
|
1095
|
-
if (
|
|
1093
|
+
function h() {
|
|
1094
|
+
var f, B, Z;
|
|
1095
|
+
if (O.value = !0, !g.model || !g.model.api)
|
|
1096
1096
|
return;
|
|
1097
|
-
|
|
1098
|
-
let l =
|
|
1099
|
-
l.pageSize =
|
|
1100
|
-
const { list: oe, totalCount: ce } =
|
|
1101
|
-
|
|
1097
|
+
ke(e), e.showPane = !0, Object.assign(e, (f = g.model.tableConfig) != null ? f : {}), t.splice(0, t.length, ...g.model.fields), b.value = (B = g.model.route) != null ? B : "", c.value = (Z = g.model.useI18n) != null ? Z : !0;
|
|
1098
|
+
let l = Ee({}, e.queryParams);
|
|
1099
|
+
l.pageSize = Y.pageSize, l.pageNo = Y.pageNo, l.search = V.value, ve(g.model.api, "GET", l).then(({ data: H }) => {
|
|
1100
|
+
const { list: oe, totalCount: ce } = H.data;
|
|
1101
|
+
R.splice(0, R.length, ...oe), Y.totalElements = ce, O.value = !1;
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
var l,
|
|
1106
|
-
e.createPageRoutePath !== void 0 ?
|
|
1104
|
+
function G() {
|
|
1105
|
+
var l, f;
|
|
1106
|
+
e.createPageRoutePath !== void 0 ? k.push(e.createPageRoutePath) : ((l = e.functions) == null ? void 0 : l.create) !== void 0 ? (f = e.functions) == null || f.create() : (D.value = "create", W.value = "", C.value = !0);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
g.model.api &&
|
|
1110
|
-
|
|
1108
|
+
function _(l, f) {
|
|
1109
|
+
g.model.api && ve(g.model.api, "DELETE", f.id).then(({ data: B }) => {
|
|
1110
|
+
B.code === 0 && (C.value = !1, h());
|
|
1111
1111
|
});
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function A() {
|
|
1114
1114
|
nt.confirm(
|
|
1115
1115
|
"The selected items will be deleted. Continue?",
|
|
1116
|
-
|
|
1116
|
+
o("common.table.warning"),
|
|
1117
1117
|
{
|
|
1118
|
-
confirmButtonText:
|
|
1119
|
-
cancelButtonText:
|
|
1118
|
+
confirmButtonText: o("common.basic.confirm"),
|
|
1119
|
+
cancelButtonText: o("common.basic.cancel"),
|
|
1120
1120
|
type: "warning"
|
|
1121
1121
|
}
|
|
1122
1122
|
).then(() => {
|
|
1123
|
-
var l,
|
|
1123
|
+
var l, f;
|
|
1124
1124
|
if (((l = e.functions) == null ? void 0 : l.batchDelete) !== void 0)
|
|
1125
|
-
(
|
|
1125
|
+
(f = e.functions) == null || f.batchDelete(z.value);
|
|
1126
1126
|
else {
|
|
1127
|
-
const
|
|
1128
|
-
ie.delete(`${g.model.api}/${
|
|
1129
|
-
Z.code === 0 && (C.value = !1,
|
|
1127
|
+
const B = z.value.map((Z) => Z.id);
|
|
1128
|
+
ie.delete(`${g.model.api}/${B.join(",")}`).then(({ data: Z }) => {
|
|
1129
|
+
Z.code === 0 && (C.value = !1, h());
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1132
|
+
P.value.clearSelection();
|
|
1133
1133
|
}).catch(() => {
|
|
1134
|
-
|
|
1134
|
+
P.value.clearSelection();
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1137
|
+
function x(l) {
|
|
1138
|
+
Y.pageSize = l, h();
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
|
|
1140
|
+
function M(l) {
|
|
1141
|
+
Y.pageNo = l, h();
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
e.editPageRoutePath !== void 0 ?
|
|
1143
|
+
function F(l, f) {
|
|
1144
|
+
e.editPageRoutePath !== void 0 ? k.push({
|
|
1145
1145
|
path: e.editPageRoutePath,
|
|
1146
1146
|
query: {
|
|
1147
|
-
id:
|
|
1147
|
+
id: f.id
|
|
1148
1148
|
}
|
|
1149
|
-
}) : (W.value =
|
|
1149
|
+
}) : (W.value = f.id, D.value = "update", C.value = !0);
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function L() {
|
|
1152
1152
|
let l = window.location.origin + g.model.api + "/export";
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1155
|
-
l += `${
|
|
1153
|
+
const f = e.queryParams;
|
|
1154
|
+
f !== void 0 && Object.keys(f).length > 0 && (l += "?", Object.entries(e.queryParams).map((B) => {
|
|
1155
|
+
l += `${B[0]}=${B[1]}&`;
|
|
1156
1156
|
})), window.open(l);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
|
|
1158
|
+
function p(l) {
|
|
1159
|
+
z.value = l;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return l.label ? c.value ?
|
|
1161
|
+
function S(l) {
|
|
1162
|
+
return l.label ? c.value ? o(l.label) : l.label : l.prop.slice(0, 1).toUpperCase() + l.prop.slice(1).toLowerCase();
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
l ? (
|
|
1164
|
+
function u(l) {
|
|
1165
|
+
l ? (w.value = !0, X.splice(0, X.length, ...R), R.splice(0, R.length, ...z.value)) : (w.value = !1, R.splice(0, R.length, ...X));
|
|
1166
1166
|
}
|
|
1167
|
-
return
|
|
1168
|
-
|
|
1167
|
+
return ue(() => g.model, () => {
|
|
1168
|
+
h();
|
|
1169
1169
|
}, {
|
|
1170
1170
|
deep: !0,
|
|
1171
1171
|
immediate: !0
|
|
1172
|
-
}),
|
|
1173
|
-
multipleSelection:
|
|
1174
|
-
refresh:
|
|
1175
|
-
updateConfigAndRefresh:
|
|
1176
|
-
}), (l,
|
|
1177
|
-
const
|
|
1178
|
-
return n(),
|
|
1179
|
-
class:
|
|
1172
|
+
}), a({
|
|
1173
|
+
multipleSelection: z,
|
|
1174
|
+
refresh: h,
|
|
1175
|
+
updateConfigAndRefresh: T
|
|
1176
|
+
}), (l, f) => {
|
|
1177
|
+
const B = y("el-checkbox"), Z = y("el-badge"), H = y("el-button"), oe = y("el-icon"), ce = y("el-tooltip"), ae = y("el-input"), ne = y("el-table-column"), $ = y("router-link"), j = y("el-tag"), pe = y("el-popconfirm"), me = y("el-table"), ye = y("el-pagination"), Ne = Ke("loading");
|
|
1178
|
+
return n(), U("div", {
|
|
1179
|
+
class: Te({ "table-view-wrapper": e.showPane })
|
|
1180
1180
|
}, [
|
|
1181
1181
|
i("div", Bo, [
|
|
1182
1182
|
i("div", Uo, [
|
|
1183
|
-
e.selectMode ? (n(),
|
|
1183
|
+
e.selectMode ? (n(), I(Z, {
|
|
1184
1184
|
key: 0,
|
|
1185
|
-
value:
|
|
1185
|
+
value: z.value.length,
|
|
1186
1186
|
type: "primary",
|
|
1187
1187
|
class: "selected-badge"
|
|
1188
1188
|
}, {
|
|
1189
1189
|
default: r(() => [
|
|
1190
|
-
d(
|
|
1190
|
+
d(B, {
|
|
1191
1191
|
class: "selected-checkbox",
|
|
1192
1192
|
border: !0,
|
|
1193
|
-
label: v(
|
|
1194
|
-
onChange:
|
|
1193
|
+
label: v(o)("common.table.viewSelected"),
|
|
1194
|
+
onChange: u
|
|
1195
1195
|
}, null, 8, ["label"])
|
|
1196
1196
|
]),
|
|
1197
1197
|
_: 1
|
|
1198
|
-
}, 8, ["value"])) :
|
|
1199
|
-
!e.selectMode && !e.readOnly ? (n(),
|
|
1198
|
+
}, 8, ["value"])) : K("", !0),
|
|
1199
|
+
!e.selectMode && !e.readOnly ? (n(), I(H, {
|
|
1200
1200
|
key: 1,
|
|
1201
1201
|
type: "primary",
|
|
1202
|
-
onClick:
|
|
1202
|
+
onClick: G
|
|
1203
1203
|
}, {
|
|
1204
1204
|
default: r(() => {
|
|
1205
|
-
var te,
|
|
1205
|
+
var te, J;
|
|
1206
1206
|
return [
|
|
1207
|
-
|
|
1207
|
+
N(Q(((te = e.labels) == null ? void 0 : te.create) != null ? v(o)((J = e.labels) == null ? void 0 : J.create) : v(o)("common.table.create")), 1)
|
|
1208
1208
|
];
|
|
1209
1209
|
}),
|
|
1210
1210
|
_: 1
|
|
1211
|
-
})) :
|
|
1212
|
-
!e.selectMode && !e.readOnly ? (n(),
|
|
1211
|
+
})) : K("", !0),
|
|
1212
|
+
!e.selectMode && !e.readOnly ? (n(), I(H, {
|
|
1213
1213
|
key: 2,
|
|
1214
|
-
disabled:
|
|
1214
|
+
disabled: z.value.length == 0,
|
|
1215
1215
|
type: "danger",
|
|
1216
1216
|
plain: "",
|
|
1217
|
-
onClick:
|
|
1217
|
+
onClick: A
|
|
1218
1218
|
}, {
|
|
1219
1219
|
default: r(() => {
|
|
1220
|
-
var te,
|
|
1220
|
+
var te, J;
|
|
1221
1221
|
return [
|
|
1222
|
-
|
|
1222
|
+
N(Q(((te = e.labels) == null ? void 0 : te.delete) != null ? v(o)((J = e.labels) == null ? void 0 : J.delete) : v(o)("common.table.delete")), 1)
|
|
1223
1223
|
];
|
|
1224
1224
|
}),
|
|
1225
1225
|
_: 1
|
|
1226
|
-
}, 8, ["disabled"])) :
|
|
1227
|
-
d(
|
|
1228
|
-
icon: v(
|
|
1229
|
-
onClick:
|
|
1226
|
+
}, 8, ["disabled"])) : K("", !0),
|
|
1227
|
+
d(H, {
|
|
1228
|
+
icon: v(Le),
|
|
1229
|
+
onClick: h
|
|
1230
1230
|
}, null, 8, ["icon"]),
|
|
1231
|
-
e.tooltip ? (n(),
|
|
1231
|
+
e.tooltip ? (n(), I(ce, {
|
|
1232
1232
|
key: 3,
|
|
1233
1233
|
effect: "dark",
|
|
1234
|
-
content: v(
|
|
1234
|
+
content: v(o)(e.tooltip),
|
|
1235
1235
|
placement: "right"
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: r(() => [
|
|
@@ -1243,13 +1243,13 @@ const Ae = (s) => {
|
|
|
1243
1243
|
})
|
|
1244
1244
|
]),
|
|
1245
1245
|
_: 1
|
|
1246
|
-
}, 8, ["content"])) :
|
|
1246
|
+
}, 8, ["content"])) : K("", !0)
|
|
1247
1247
|
]),
|
|
1248
|
-
i("div",
|
|
1249
|
-
e.export ? (n(),
|
|
1248
|
+
i("div", Go, [
|
|
1249
|
+
e.export ? (n(), I(H, {
|
|
1250
1250
|
key: 0,
|
|
1251
1251
|
class: "button-export",
|
|
1252
|
-
onClick:
|
|
1252
|
+
onClick: L
|
|
1253
1253
|
}, {
|
|
1254
1254
|
default: r(() => [
|
|
1255
1255
|
d(oe, null, {
|
|
@@ -1260,100 +1260,100 @@ const Ae = (s) => {
|
|
|
1260
1260
|
})
|
|
1261
1261
|
]),
|
|
1262
1262
|
_: 1
|
|
1263
|
-
})) :
|
|
1263
|
+
})) : K("", !0),
|
|
1264
1264
|
d(ae, {
|
|
1265
|
-
placeholder: `${v(
|
|
1265
|
+
placeholder: `${v(o)("common.table.search")}...`,
|
|
1266
1266
|
modelValue: V.value,
|
|
1267
|
-
"onUpdate:modelValue":
|
|
1267
|
+
"onUpdate:modelValue": f[0] || (f[0] = (te) => V.value = te)
|
|
1268
1268
|
}, {
|
|
1269
1269
|
append: r(() => [
|
|
1270
|
-
d(
|
|
1270
|
+
d(H, {
|
|
1271
1271
|
style: { "margin-left": "-20px" },
|
|
1272
1272
|
icon: v(dt),
|
|
1273
|
-
onClick:
|
|
1273
|
+
onClick: h
|
|
1274
1274
|
}, null, 8, ["icon"])
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 1
|
|
1277
1277
|
}, 8, ["placeholder", "modelValue"])
|
|
1278
1278
|
])
|
|
1279
1279
|
]),
|
|
1280
|
-
|
|
1280
|
+
Pe((n(), I(me, {
|
|
1281
1281
|
border: !0,
|
|
1282
1282
|
ref_key: "tableRef",
|
|
1283
|
-
ref:
|
|
1284
|
-
data:
|
|
1285
|
-
onSelectionChange:
|
|
1283
|
+
ref: P,
|
|
1284
|
+
data: R,
|
|
1285
|
+
onSelectionChange: p,
|
|
1286
1286
|
class: "table"
|
|
1287
1287
|
}, {
|
|
1288
1288
|
default: r(() => {
|
|
1289
1289
|
var te;
|
|
1290
1290
|
return [
|
|
1291
|
-
e.readOnly ?
|
|
1291
|
+
e.readOnly ? K("", !0) : (n(), I(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), U(ee, null, se(q.value, (J) => {
|
|
1297
|
+
var ge;
|
|
1298
|
+
return n(), I(ne, {
|
|
1299
|
+
prop: J.prop,
|
|
1300
|
+
label: S(J),
|
|
1301
|
+
width: (ge = J.tableColumnAttributes) == null ? void 0 : ge.width,
|
|
1302
1302
|
"show-overflow-tooltip": ""
|
|
1303
1303
|
}, {
|
|
1304
|
-
default: r((
|
|
1305
|
-
var
|
|
1304
|
+
default: r((we) => {
|
|
1305
|
+
var be, Ae;
|
|
1306
1306
|
return [
|
|
1307
|
-
(
|
|
1307
|
+
(be = J.tableColumnAttributes) != null && be.link ? (n(), I($, {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: "router-link",
|
|
1310
|
-
to: `/${b.value}/detail?id=${
|
|
1310
|
+
to: `/${b.value}/detail?id=${we.row.id}`
|
|
1311
1311
|
}, {
|
|
1312
1312
|
default: r(() => [
|
|
1313
|
-
i("span", null, Q(
|
|
1313
|
+
i("span", null, Q(fe(J, we)), 1)
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 2
|
|
1316
|
-
}, 1032, ["to"])) : (n(),
|
|
1317
|
-
((
|
|
1316
|
+
}, 1032, ["to"])) : (n(), U("span", Oo, Q(fe(J, we)), 1)),
|
|
1317
|
+
((Ae = J.tableColumnAttributes) == null ? void 0 : Ae.type) === "tag" ? (n(), I(j, { key: 2 }, {
|
|
1318
1318
|
default: r(() => [
|
|
1319
|
-
|
|
1319
|
+
N(Q(we.row[J.prop]), 1)
|
|
1320
1320
|
]),
|
|
1321
1321
|
_: 2
|
|
1322
|
-
}, 1024)) :
|
|
1322
|
+
}, 1024)) : K("", !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(), I(ne, {
|
|
1329
1329
|
key: 1,
|
|
1330
|
-
label: v(
|
|
1330
|
+
label: v(o)("common.table.operation"),
|
|
1331
1331
|
width: "120"
|
|
1332
1332
|
}, {
|
|
1333
|
-
default: r((
|
|
1334
|
-
d(
|
|
1333
|
+
default: r((J) => [
|
|
1334
|
+
d(H, {
|
|
1335
1335
|
link: "",
|
|
1336
1336
|
type: "primary",
|
|
1337
1337
|
class: "operation-button",
|
|
1338
|
-
onClick: (
|
|
1338
|
+
onClick: (ge) => F(J.$index, J.row)
|
|
1339
1339
|
}, {
|
|
1340
1340
|
default: r(() => [
|
|
1341
|
-
|
|
1341
|
+
N(Q(v(o)("common.table.edit")), 1)
|
|
1342
1342
|
]),
|
|
1343
1343
|
_: 2
|
|
1344
1344
|
}, 1032, ["onClick"]),
|
|
1345
|
-
d(
|
|
1345
|
+
d(pe, {
|
|
1346
1346
|
title: "Are you sure to delete this?",
|
|
1347
|
-
onConfirm: (
|
|
1347
|
+
onConfirm: (ge) => _(J.$index, J.row)
|
|
1348
1348
|
}, {
|
|
1349
1349
|
reference: r(() => [
|
|
1350
|
-
d(
|
|
1350
|
+
d(H, {
|
|
1351
1351
|
link: "",
|
|
1352
1352
|
type: "primary",
|
|
1353
1353
|
class: "operation-button"
|
|
1354
1354
|
}, {
|
|
1355
1355
|
default: r(() => [
|
|
1356
|
-
|
|
1356
|
+
N(Q(v(o)("common.table.delete")), 1)
|
|
1357
1357
|
]),
|
|
1358
1358
|
_: 1
|
|
1359
1359
|
})
|
|
@@ -1362,116 +1362,121 @@ const Ae = (s) => {
|
|
|
1362
1362
|
}, 1032, ["onConfirm"])
|
|
1363
1363
|
]),
|
|
1364
1364
|
_: 1
|
|
1365
|
-
}, 8, ["label"])) :
|
|
1366
|
-
e.operations !== void 0 && !e.readOnly ? (n(),
|
|
1365
|
+
}, 8, ["label"])) : K("", !0),
|
|
1366
|
+
e.operations !== void 0 && !e.readOnly ? (n(), I(ne, {
|
|
1367
1367
|
key: 2,
|
|
1368
|
-
label: v(
|
|
1368
|
+
label: v(o)("common.table.operation"),
|
|
1369
1369
|
width: "120"
|
|
1370
1370
|
}, {
|
|
1371
|
-
default: r((
|
|
1372
|
-
(n(!0),
|
|
1371
|
+
default: r((J) => [
|
|
1372
|
+
(n(!0), U(ee, null, se(e.operations, (ge) => (n(), I(H, {
|
|
1373
1373
|
class: "operation-button",
|
|
1374
1374
|
link: "",
|
|
1375
1375
|
type: "primary",
|
|
1376
|
-
key:
|
|
1377
|
-
onClick: (
|
|
1378
|
-
var
|
|
1379
|
-
return ((
|
|
1376
|
+
key: ge.label,
|
|
1377
|
+
onClick: (we) => {
|
|
1378
|
+
var be, Ae;
|
|
1379
|
+
return ((Ae = (be = ge.functions) == null ? void 0 : be.click) == null ? void 0 : Ae.call(be, J.$index, J.row)) && h();
|
|
1380
1380
|
}
|
|
1381
1381
|
}, {
|
|
1382
1382
|
default: r(() => [
|
|
1383
|
-
|
|
1383
|
+
N(Q(m(ge, J)), 1)
|
|
1384
1384
|
]),
|
|
1385
1385
|
_: 2
|
|
1386
1386
|
}, 1032, ["onClick"]))), 128))
|
|
1387
1387
|
]),
|
|
1388
1388
|
_: 1
|
|
1389
|
-
}, 8, ["label"])) :
|
|
1389
|
+
}, 8, ["label"])) : K("", !0)
|
|
1390
1390
|
];
|
|
1391
1391
|
}),
|
|
1392
1392
|
_: 1
|
|
1393
1393
|
}, 8, ["data"])), [
|
|
1394
|
-
[Ne,
|
|
1394
|
+
[Ne, O.value]
|
|
1395
1395
|
]),
|
|
1396
|
-
|
|
1396
|
+
w.value ? K("", !0) : (n(), I(ye, {
|
|
1397
1397
|
key: 0,
|
|
1398
1398
|
size: "small",
|
|
1399
1399
|
background: "",
|
|
1400
|
-
onSizeChange:
|
|
1401
|
-
onCurrentChange:
|
|
1402
|
-
currentPage:
|
|
1403
|
-
"onUpdate:currentPage":
|
|
1400
|
+
onSizeChange: x,
|
|
1401
|
+
onCurrentChange: M,
|
|
1402
|
+
currentPage: Y.pageNo,
|
|
1403
|
+
"onUpdate:currentPage": f[1] || (f[1] = (te) => Y.pageNo = te),
|
|
1404
1404
|
"page-sizes": [10, 20, 50, 100],
|
|
1405
|
-
"page-size":
|
|
1405
|
+
"page-size": Y.pageSize,
|
|
1406
1406
|
layout: "total, sizes, prev, pager, next",
|
|
1407
|
-
total:
|
|
1407
|
+
total: Y.totalElements
|
|
1408
1408
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
1409
|
-
d(
|
|
1409
|
+
d(ze, {
|
|
1410
1410
|
model: l.model,
|
|
1411
1411
|
mode: D.value,
|
|
1412
1412
|
id: W.value,
|
|
1413
|
-
afterSubmitFunc:
|
|
1413
|
+
afterSubmitFunc: h,
|
|
1414
1414
|
visible: C.value,
|
|
1415
|
-
"onUpdate:visible":
|
|
1415
|
+
"onUpdate:visible": f[2] || (f[2] = (te) => C.value = te)
|
|
1416
1416
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
1417
1417
|
], 2);
|
|
1418
1418
|
};
|
|
1419
1419
|
}
|
|
1420
|
-
}),
|
|
1420
|
+
}), Qe = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-d37a3022"]]), Ro = { class: "nav-bar" }, Vo = {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
class: "info-card-wrapper"
|
|
1423
|
-
}, Do = { class: "icon-wrapper" },
|
|
1423
|
+
}, Do = { class: "icon-wrapper" }, To = { class: "info-wrapper" }, Ko = { class: "title-wrapper" }, Po = { class: "tabs-wrapper" }, Lo = { class: "dialog-footer" }, jo = /* @__PURE__ */ de({
|
|
1424
1424
|
__name: "DetailPage",
|
|
1425
1425
|
setup(s) {
|
|
1426
|
-
const { t:
|
|
1426
|
+
const { t: a } = Ie(), o = _e(), g = Be(), t = xe(() => o.query.id), e = E(!1), b = E(!1), c = E("view"), C = E(), k = E(-1), V = E(), R = E(), X = E("summary"), P = E(""), z = E(""), D = E(""), O = E(0), w = le({
|
|
1427
1427
|
api: "",
|
|
1428
1428
|
fields: []
|
|
1429
|
-
}),
|
|
1430
|
-
let
|
|
1431
|
-
|
|
1432
|
-
|
|
1429
|
+
}), W = le([]);
|
|
1430
|
+
let Y = [];
|
|
1431
|
+
ue(() => g.currentRoute.value, () => {
|
|
1432
|
+
T();
|
|
1433
1433
|
}, {
|
|
1434
1434
|
immediate: !0
|
|
1435
|
+
}), ue(w, () => {
|
|
1436
|
+
O.value++;
|
|
1435
1437
|
});
|
|
1436
|
-
function
|
|
1437
|
-
|
|
1438
|
+
function q(_) {
|
|
1439
|
+
k.value = parseInt(_.index) - 1, console.log(W[k.value]);
|
|
1438
1440
|
}
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1441
|
+
function fe() {
|
|
1442
|
+
var M;
|
|
1443
|
+
let _ = (M = Y[k.value].api) == null ? void 0 : M.replace("/select", "");
|
|
1444
|
+
_ = _ == null ? void 0 : _.substring(_.lastIndexOf("/"));
|
|
1445
|
+
const A = w.api + "/" + t.value + _, x = R.value.multipleSelection.map((F) => F.id);
|
|
1446
|
+
ve(A, "POST", x).then(() => {
|
|
1444
1447
|
V.value.refresh(), b.value = !1;
|
|
1445
1448
|
});
|
|
1446
1449
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var
|
|
1450
|
+
function m(_, A, x) {
|
|
1451
|
+
var L;
|
|
1449
1452
|
x.functions || (x.functions = {}), x.functions.create = () => {
|
|
1450
|
-
b.value = !0,
|
|
1453
|
+
b.value = !0, R.value && R.value.refresh();
|
|
1451
1454
|
};
|
|
1452
|
-
let M =
|
|
1453
|
-
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {},
|
|
1454
|
-
for (var
|
|
1455
|
-
M.fields[
|
|
1456
|
-
|
|
1455
|
+
let M = Ce(A);
|
|
1456
|
+
M.tableConfig || (M.tableConfig = {}), M.tableConfig.selectMode = !0, M.tableConfig.queryParams = {}, _.queryParamName && (M.tableConfig.queryParams[_.queryParamName] = t.value);
|
|
1457
|
+
for (var F in M.fields)
|
|
1458
|
+
M.fields[F].tableColumnAttributes && (L = M.fields[F].tableColumnAttributes) != null && L.link && (M.fields[F].tableColumnAttributes.link = !1);
|
|
1459
|
+
Y.push(M), x.labels = {
|
|
1457
1460
|
create: "common.table.add",
|
|
1458
1461
|
delete: "common.table.remove"
|
|
1459
|
-
}, x.functions.batchDelete = (
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1462
|
+
}, x.functions.batchDelete = (p) => {
|
|
1463
|
+
var f;
|
|
1464
|
+
let S = (f = Y[k.value].api) == null ? void 0 : f.replace("/select", "");
|
|
1465
|
+
S = S == null ? void 0 : S.substring(S.lastIndexOf("/"));
|
|
1466
|
+
const u = w.api + "/" + t.value + S, l = p.map((B) => B.id);
|
|
1467
|
+
ie.delete(`${u}/${l.join(",")}`).then(({ data: B }) => {
|
|
1468
|
+
B.code === 0 && V.value.refresh();
|
|
1465
1469
|
});
|
|
1466
1470
|
}, x.operations = [
|
|
1467
1471
|
{
|
|
1468
1472
|
label: "common.table.remove",
|
|
1469
1473
|
functions: {
|
|
1470
|
-
click: (
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1474
|
+
click: (p, S) => {
|
|
1475
|
+
var f;
|
|
1476
|
+
let u = (f = Y[k.value].api) == null ? void 0 : f.replace("/select", "");
|
|
1477
|
+
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
1478
|
+
const l = w.api + "/" + t.value + u;
|
|
1479
|
+
ve(l, "DELETE", S.id).then(() => {
|
|
1475
1480
|
V.value.refresh();
|
|
1476
1481
|
});
|
|
1477
1482
|
}
|
|
@@ -1479,54 +1484,54 @@ const Ae = (s) => {
|
|
|
1479
1484
|
}
|
|
1480
1485
|
], M.api += "/select";
|
|
1481
1486
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var M,
|
|
1484
|
-
|
|
1485
|
-
const
|
|
1486
|
-
if (
|
|
1487
|
+
function T() {
|
|
1488
|
+
var M, F, L;
|
|
1489
|
+
W.splice(0);
|
|
1490
|
+
const _ = o.params.model;
|
|
1491
|
+
if (he.value[_] === void 0)
|
|
1487
1492
|
return;
|
|
1488
|
-
|
|
1489
|
-
const
|
|
1490
|
-
Object.assign(
|
|
1491
|
-
const x = (
|
|
1493
|
+
ke(w);
|
|
1494
|
+
const A = Ce(he.value[_]);
|
|
1495
|
+
Object.assign(w, A), k.value = -1, X.value = "summary";
|
|
1496
|
+
const x = (F = (M = w.pageConfig) == null ? void 0 : M.detailPage) == null ? void 0 : F.tabs;
|
|
1492
1497
|
if (x)
|
|
1493
|
-
for (let
|
|
1494
|
-
const
|
|
1495
|
-
if (
|
|
1496
|
-
|
|
1497
|
-
let
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
})),
|
|
1501
|
-
var
|
|
1502
|
-
return (
|
|
1503
|
-
})),
|
|
1504
|
-
var
|
|
1505
|
-
return !((
|
|
1506
|
-
})),
|
|
1498
|
+
for (let p of x) {
|
|
1499
|
+
const S = Ce(he.value[p.modelKey]);
|
|
1500
|
+
if (W.push(S), p.type === "table") {
|
|
1501
|
+
S.tableConfig || (S.tableConfig = {});
|
|
1502
|
+
let u = S.tableConfig;
|
|
1503
|
+
u.showPane = !1, p.modelRelationType === "associated" ? m(p, S, u) : p.modelRelationType === "child" && (S.formConfig === void 0 && (S.formConfig = {}), S.formConfig.functions === void 0 && (S.formConfig.functions = {}), p.queryParamName && (S.formConfig.functions.beforeSubmit = (l) => {
|
|
1504
|
+
l[p.queryParamName] = t.value;
|
|
1505
|
+
})), u.queryParams || (u.queryParams = {}), p.queryParamName && (u.queryParams[p.queryParamName] = t.value), p.queryParams && Object.assign(u.queryParams, p.queryParams), u.readOnly = (L = p.readOnly) != null ? L : !1, p.includeFields && (S.fields = S.fields.filter((l) => {
|
|
1506
|
+
var f;
|
|
1507
|
+
return (f = p.includeFields) == null ? void 0 : f.includes(l.prop);
|
|
1508
|
+
})), p.excludeFields && (S.fields = S.fields.filter((l) => {
|
|
1509
|
+
var f;
|
|
1510
|
+
return !((f = p.excludeFields) != null && f.includes(l.prop));
|
|
1511
|
+
})), p.tooltip && (u.tooltip = p.tooltip);
|
|
1507
1512
|
}
|
|
1508
1513
|
}
|
|
1509
1514
|
}
|
|
1510
|
-
|
|
1515
|
+
ue(
|
|
1511
1516
|
[
|
|
1512
1517
|
() => {
|
|
1513
|
-
var
|
|
1514
|
-
return (
|
|
1518
|
+
var _, A;
|
|
1519
|
+
return (A = (_ = w.pageConfig) == null ? void 0 : _.detailPage) == null ? void 0 : A.infoCard;
|
|
1515
1520
|
},
|
|
1516
1521
|
() => {
|
|
1517
|
-
var
|
|
1518
|
-
return (
|
|
1522
|
+
var _;
|
|
1523
|
+
return (_ = C.value) == null ? void 0 : _.formData;
|
|
1519
1524
|
}
|
|
1520
1525
|
],
|
|
1521
|
-
(
|
|
1522
|
-
|
|
1523
|
-
var x, M,
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1526
|
-
var
|
|
1527
|
-
if (
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1526
|
+
(_) => {
|
|
1527
|
+
De(() => {
|
|
1528
|
+
var x, M, F;
|
|
1529
|
+
const A = (M = (x = w.pageConfig) == null ? void 0 : x.detailPage) == null ? void 0 : M.infoCard;
|
|
1530
|
+
A && (P.value = A.titleFieldProp ? C.value.formData[A.titleFieldProp] : "", z.value = A.subtitleFieldProp ? C.value.formData[A.subtitleFieldProp] : "", D.value = A.tagFieldProp ? C.value.formData[A.tagFieldProp] : "", (F = w.fields) == null || F.forEach((L) => {
|
|
1531
|
+
var p, S;
|
|
1532
|
+
if (L.prop === A.tagFieldProp) {
|
|
1533
|
+
const u = (S = (p = L.tableColumnAttributes) == null ? void 0 : p.functions) == null ? void 0 : S.transformValue;
|
|
1534
|
+
u && (D.value = u(D.value));
|
|
1530
1535
|
}
|
|
1531
1536
|
}));
|
|
1532
1537
|
});
|
|
@@ -1536,35 +1541,35 @@ const Ae = (s) => {
|
|
|
1536
1541
|
deep: !0
|
|
1537
1542
|
}
|
|
1538
1543
|
);
|
|
1539
|
-
function
|
|
1544
|
+
function h() {
|
|
1540
1545
|
e.value = !0;
|
|
1541
1546
|
}
|
|
1542
|
-
function
|
|
1547
|
+
function G() {
|
|
1543
1548
|
C.value.refresh();
|
|
1544
1549
|
}
|
|
1545
|
-
return (
|
|
1546
|
-
var
|
|
1547
|
-
const x =
|
|
1548
|
-
return n(),
|
|
1550
|
+
return (_, A) => {
|
|
1551
|
+
var H, oe, ce, ae, ne, $;
|
|
1552
|
+
const x = y("el-breadcrumb-item"), M = y("el-breadcrumb"), F = y("el-button"), L = y("el-icon"), p = y("el-dropdown-item"), S = y("el-dropdown-menu"), u = y("el-dropdown"), l = y("el-tag"), f = y("el-tab-pane"), B = y("el-tabs"), Z = y("el-dialog");
|
|
1553
|
+
return n(), U(ee, null, [
|
|
1549
1554
|
i("div", Ro, [
|
|
1550
1555
|
d(M, null, {
|
|
1551
1556
|
default: r(() => {
|
|
1552
|
-
var
|
|
1557
|
+
var j, pe;
|
|
1553
1558
|
return [
|
|
1554
1559
|
d(x, {
|
|
1555
|
-
to: { path: `/${(
|
|
1560
|
+
to: { path: `/${(pe = (j = w == null ? void 0 : w.breadcrumbRoute) != null ? j : w == null ? void 0 : w.route) != null ? pe : ""}` }
|
|
1556
1561
|
}, {
|
|
1557
1562
|
default: r(() => {
|
|
1558
|
-
var
|
|
1563
|
+
var me;
|
|
1559
1564
|
return [
|
|
1560
|
-
|
|
1565
|
+
N(Q(v(a)((me = w == null ? void 0 : w.name) != null ? me : "")), 1)
|
|
1561
1566
|
];
|
|
1562
1567
|
}),
|
|
1563
1568
|
_: 1
|
|
1564
1569
|
}, 8, ["to"]),
|
|
1565
1570
|
d(x, null, {
|
|
1566
1571
|
default: r(() => [
|
|
1567
|
-
|
|
1572
|
+
N(Q(v(a)("common.basic.detail")), 1)
|
|
1568
1573
|
]),
|
|
1569
1574
|
_: 1
|
|
1570
1575
|
})
|
|
@@ -1573,36 +1578,36 @@ const Ae = (s) => {
|
|
|
1573
1578
|
_: 1
|
|
1574
1579
|
}),
|
|
1575
1580
|
i("div", null, [
|
|
1576
|
-
d(
|
|
1581
|
+
d(F, {
|
|
1577
1582
|
type: "primary",
|
|
1578
|
-
onClick:
|
|
1583
|
+
onClick: h
|
|
1579
1584
|
}, {
|
|
1580
1585
|
default: r(() => [
|
|
1581
|
-
|
|
1586
|
+
N(Q(v(a)("common.table.edit")), 1)
|
|
1582
1587
|
]),
|
|
1583
1588
|
_: 1
|
|
1584
1589
|
}),
|
|
1585
|
-
d(
|
|
1590
|
+
d(F, {
|
|
1586
1591
|
type: "danger",
|
|
1587
1592
|
plain: "",
|
|
1588
1593
|
disabled: ""
|
|
1589
1594
|
}, {
|
|
1590
1595
|
default: r(() => [
|
|
1591
|
-
|
|
1596
|
+
N(Q(v(a)("common.table.delete")), 1)
|
|
1592
1597
|
]),
|
|
1593
1598
|
_: 1
|
|
1594
1599
|
}),
|
|
1595
|
-
((
|
|
1600
|
+
((oe = (H = w.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : oe.operationButtons) !== void 0 ? (n(), I(u, { key: 0 }, {
|
|
1596
1601
|
dropdown: r(() => [
|
|
1597
|
-
d(
|
|
1602
|
+
d(S, null, {
|
|
1598
1603
|
default: r(() => {
|
|
1599
|
-
var
|
|
1604
|
+
var j, pe;
|
|
1600
1605
|
return [
|
|
1601
|
-
(n(!0),
|
|
1602
|
-
onClick: (
|
|
1606
|
+
(n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.operationButtons, (me) => (n(), I(p, {
|
|
1607
|
+
onClick: (ye) => me.function(C.value.formData)
|
|
1603
1608
|
}, {
|
|
1604
1609
|
default: r(() => [
|
|
1605
|
-
|
|
1610
|
+
N(Q(v(a)(me.label)), 1)
|
|
1606
1611
|
]),
|
|
1607
1612
|
_: 2
|
|
1608
1613
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -1612,10 +1617,10 @@ const Ae = (s) => {
|
|
|
1612
1617
|
})
|
|
1613
1618
|
]),
|
|
1614
1619
|
default: r(() => [
|
|
1615
|
-
d(
|
|
1620
|
+
d(F, { style: { margin: "0 10px" } }, {
|
|
1616
1621
|
default: r(() => [
|
|
1617
|
-
|
|
1618
|
-
d(
|
|
1622
|
+
N(Q(v(a)("common.basic.more")), 1),
|
|
1623
|
+
d(L, { class: "el-icon--right" }, {
|
|
1619
1624
|
default: r(() => [
|
|
1620
1625
|
d(v(pt))
|
|
1621
1626
|
]),
|
|
@@ -1626,175 +1631,175 @@ const Ae = (s) => {
|
|
|
1626
1631
|
})
|
|
1627
1632
|
]),
|
|
1628
1633
|
_: 1
|
|
1629
|
-
})) :
|
|
1630
|
-
d(
|
|
1631
|
-
icon: v(
|
|
1632
|
-
onClick:
|
|
1634
|
+
})) : K("", !0),
|
|
1635
|
+
d(F, {
|
|
1636
|
+
icon: v(Le),
|
|
1637
|
+
onClick: G
|
|
1633
1638
|
}, null, 8, ["icon"])
|
|
1634
1639
|
])
|
|
1635
1640
|
]),
|
|
1636
|
-
(
|
|
1641
|
+
(ae = (ce = w.pageConfig) == null ? void 0 : ce.detailPage) != null && ae.infoCard ? (n(), U("div", Vo, [
|
|
1637
1642
|
i("div", Do, [
|
|
1638
|
-
(n(),
|
|
1643
|
+
(n(), I(Se((ne = w.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
|
|
1639
1644
|
]),
|
|
1640
|
-
i("div",
|
|
1641
|
-
i("div",
|
|
1642
|
-
i("h1", null, Q(
|
|
1643
|
-
((
|
|
1645
|
+
i("div", To, [
|
|
1646
|
+
i("div", Ko, [
|
|
1647
|
+
i("h1", null, Q(P.value), 1),
|
|
1648
|
+
(($ = D.value) == null ? void 0 : $.length) > 0 ? (n(), I(l, {
|
|
1644
1649
|
key: 0,
|
|
1645
1650
|
size: "small"
|
|
1646
1651
|
}, {
|
|
1647
1652
|
default: r(() => [
|
|
1648
|
-
|
|
1653
|
+
N(Q(D.value), 1)
|
|
1649
1654
|
]),
|
|
1650
1655
|
_: 1
|
|
1651
|
-
})) :
|
|
1656
|
+
})) : K("", !0)
|
|
1652
1657
|
]),
|
|
1653
|
-
i("span", null, Q(
|
|
1658
|
+
i("span", null, Q(z.value), 1)
|
|
1654
1659
|
])
|
|
1655
|
-
])) :
|
|
1656
|
-
i("div",
|
|
1657
|
-
d(
|
|
1658
|
-
modelValue:
|
|
1659
|
-
"onUpdate:modelValue":
|
|
1660
|
-
onTabClick:
|
|
1660
|
+
])) : K("", !0),
|
|
1661
|
+
i("div", Po, [
|
|
1662
|
+
d(B, {
|
|
1663
|
+
modelValue: X.value,
|
|
1664
|
+
"onUpdate:modelValue": A[0] || (A[0] = (j) => X.value = j),
|
|
1665
|
+
onTabClick: q
|
|
1661
1666
|
}, {
|
|
1662
1667
|
default: r(() => {
|
|
1663
|
-
var
|
|
1668
|
+
var j, pe;
|
|
1664
1669
|
return [
|
|
1665
|
-
d(
|
|
1666
|
-
label: v(
|
|
1670
|
+
d(f, {
|
|
1671
|
+
label: v(a)("common.basic.summary"),
|
|
1667
1672
|
name: "summary"
|
|
1668
1673
|
}, {
|
|
1669
1674
|
default: r(() => [
|
|
1670
|
-
d(
|
|
1675
|
+
d(Je, {
|
|
1671
1676
|
ref_key: "formViewRef",
|
|
1672
1677
|
ref: C,
|
|
1673
|
-
id:
|
|
1674
|
-
sessionId:
|
|
1678
|
+
id: t.value,
|
|
1679
|
+
sessionId: O.value,
|
|
1675
1680
|
mode: c.value,
|
|
1676
|
-
model:
|
|
1677
|
-
}, null, 8, ["id", "mode", "model"])
|
|
1681
|
+
model: w
|
|
1682
|
+
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
1678
1683
|
]),
|
|
1679
1684
|
_: 1
|
|
1680
1685
|
}, 8, ["label"]),
|
|
1681
|
-
(n(!0),
|
|
1682
|
-
var
|
|
1683
|
-
return n(),
|
|
1684
|
-
label: v(
|
|
1686
|
+
(n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.tabs, (me) => {
|
|
1687
|
+
var ye;
|
|
1688
|
+
return n(), I(f, {
|
|
1689
|
+
label: v(a)((ye = me.name) != null ? ye : "")
|
|
1685
1690
|
}, null, 8, ["label"]);
|
|
1686
1691
|
}), 256))
|
|
1687
1692
|
];
|
|
1688
1693
|
}),
|
|
1689
1694
|
_: 1
|
|
1690
1695
|
}, 8, ["modelValue"]),
|
|
1691
|
-
|
|
1696
|
+
k.value >= 0 ? (n(), I(Qe, {
|
|
1692
1697
|
key: 0,
|
|
1693
1698
|
ref_key: "tabPaneTableRef",
|
|
1694
1699
|
ref: V,
|
|
1695
|
-
model:
|
|
1696
|
-
}, null, 8, ["model"])) :
|
|
1697
|
-
d(
|
|
1700
|
+
model: W[k.value]
|
|
1701
|
+
}, null, 8, ["model"])) : K("", !0),
|
|
1702
|
+
d(Z, {
|
|
1698
1703
|
modelValue: b.value,
|
|
1699
|
-
"onUpdate:modelValue":
|
|
1700
|
-
title: v(
|
|
1704
|
+
"onUpdate:modelValue": A[2] || (A[2] = (j) => b.value = j),
|
|
1705
|
+
title: v(a)("common.table.select"),
|
|
1701
1706
|
width: "800px"
|
|
1702
1707
|
}, {
|
|
1703
1708
|
footer: r(() => [
|
|
1704
1709
|
i("span", Lo, [
|
|
1705
|
-
d(
|
|
1706
|
-
onClick:
|
|
1710
|
+
d(F, {
|
|
1711
|
+
onClick: A[1] || (A[1] = (j) => b.value = !1)
|
|
1707
1712
|
}, {
|
|
1708
1713
|
default: r(() => [
|
|
1709
|
-
|
|
1714
|
+
N(Q(v(a)("common.basic.cancel")), 1)
|
|
1710
1715
|
]),
|
|
1711
1716
|
_: 1
|
|
1712
1717
|
}),
|
|
1713
|
-
d(
|
|
1718
|
+
d(F, {
|
|
1714
1719
|
type: "primary",
|
|
1715
|
-
onClick:
|
|
1720
|
+
onClick: fe
|
|
1716
1721
|
}, {
|
|
1717
1722
|
default: r(() => [
|
|
1718
|
-
|
|
1723
|
+
N(Q(v(a)("common.basic.save")), 1)
|
|
1719
1724
|
]),
|
|
1720
1725
|
_: 1
|
|
1721
1726
|
})
|
|
1722
1727
|
])
|
|
1723
1728
|
]),
|
|
1724
1729
|
default: r(() => [
|
|
1725
|
-
|
|
1730
|
+
k.value >= 0 ? (n(), I(Qe, {
|
|
1726
1731
|
key: 0,
|
|
1727
1732
|
ref_key: "selectTableRef",
|
|
1728
|
-
ref:
|
|
1729
|
-
model: v(
|
|
1730
|
-
}, null, 8, ["model"])) :
|
|
1733
|
+
ref: R,
|
|
1734
|
+
model: v(Y)[k.value]
|
|
1735
|
+
}, null, 8, ["model"])) : K("", !0)
|
|
1731
1736
|
]),
|
|
1732
1737
|
_: 1
|
|
1733
1738
|
}, 8, ["modelValue", "title"])
|
|
1734
1739
|
]),
|
|
1735
|
-
d(
|
|
1736
|
-
id:
|
|
1740
|
+
d(ze, {
|
|
1741
|
+
id: t.value,
|
|
1737
1742
|
mode: "update",
|
|
1738
1743
|
visible: e.value,
|
|
1739
|
-
"onUpdate:visible":
|
|
1740
|
-
model:
|
|
1741
|
-
afterSubmitFunc:
|
|
1744
|
+
"onUpdate:visible": A[3] || (A[3] = (j) => e.value = j),
|
|
1745
|
+
model: w,
|
|
1746
|
+
afterSubmitFunc: G
|
|
1742
1747
|
}, null, 8, ["id", "visible", "model"])
|
|
1743
1748
|
], 64);
|
|
1744
1749
|
};
|
|
1745
1750
|
}
|
|
1746
|
-
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-
|
|
1751
|
+
}), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-2058509d"]]), Yo = { class: "page-title" }, qo = /* @__PURE__ */ de({
|
|
1747
1752
|
__name: "TablePage",
|
|
1748
1753
|
setup(s) {
|
|
1749
|
-
const { t:
|
|
1754
|
+
const { t: a } = Ie(), o = _e(), g = Be(), t = E(), e = E([]), b = le({
|
|
1750
1755
|
api: "",
|
|
1751
1756
|
fields: []
|
|
1752
|
-
}), c = le(
|
|
1757
|
+
}), c = le(Ee({}, b));
|
|
1753
1758
|
function C() {
|
|
1754
|
-
var V,
|
|
1755
|
-
e.value = [], b.pageConfig && ((
|
|
1756
|
-
let
|
|
1757
|
-
return D.modelKey &&
|
|
1759
|
+
var V, R, X, P, z;
|
|
1760
|
+
e.value = [], b.pageConfig && ((R = (V = b.pageConfig) == null ? void 0 : V.tablePage) != null && R.tabViewAttributes) && (e.value = (z = (P = (X = b.pageConfig) == null ? void 0 : X.tablePage) == null ? void 0 : P.tabViewAttributes) == null ? void 0 : z.map((D) => {
|
|
1761
|
+
let O;
|
|
1762
|
+
return D.modelKey && he.value[D.modelKey] ? O = Ce(he.value[D.modelKey]) : O = Ce(b), D.queryParams && (O.tableConfig || (O.tableConfig = {}), O.tableConfig.queryParams = D.queryParams), D.fields && (O.fields = D.fields), D.modelKey && (O.breadcrumbRoute = b.route), {
|
|
1758
1763
|
key: D.key,
|
|
1759
1764
|
label: D.label,
|
|
1760
1765
|
icon: D.icon,
|
|
1761
1766
|
disabled: D.disabled,
|
|
1762
|
-
model:
|
|
1767
|
+
model: O
|
|
1763
1768
|
};
|
|
1764
1769
|
}));
|
|
1765
1770
|
}
|
|
1766
|
-
function
|
|
1767
|
-
var
|
|
1768
|
-
console.log("Init table page, loading model:",
|
|
1769
|
-
const V =
|
|
1770
|
-
if (
|
|
1771
|
+
function k() {
|
|
1772
|
+
var X, P;
|
|
1773
|
+
console.log("Init table page, loading model:", o.params.model), console.log("Current model list", he.value);
|
|
1774
|
+
const V = o.params.model;
|
|
1775
|
+
if (he.value[V] === void 0) {
|
|
1771
1776
|
console.warn("Model not found", V);
|
|
1772
1777
|
return;
|
|
1773
1778
|
}
|
|
1774
|
-
|
|
1775
|
-
const
|
|
1776
|
-
Object.assign(b,
|
|
1779
|
+
ke(b);
|
|
1780
|
+
const R = Ce(he.value[V]);
|
|
1781
|
+
Object.assign(b, R), (P = (X = b.pageConfig) == null ? void 0 : X.tablePage) != null && P.tabViewAttributes || Object.assign(c, b), C();
|
|
1777
1782
|
}
|
|
1778
|
-
return
|
|
1783
|
+
return ue([
|
|
1779
1784
|
() => g.currentRoute.value,
|
|
1780
|
-
|
|
1785
|
+
he
|
|
1781
1786
|
], () => {
|
|
1782
|
-
|
|
1787
|
+
k();
|
|
1783
1788
|
}, {
|
|
1784
1789
|
immediate: !0,
|
|
1785
1790
|
deep: !0
|
|
1786
|
-
}), (V,
|
|
1787
|
-
var
|
|
1788
|
-
return n(),
|
|
1789
|
-
i("h1", Yo, Q(v(
|
|
1790
|
-
(
|
|
1791
|
+
}), (V, R) => {
|
|
1792
|
+
var X, P, z;
|
|
1793
|
+
return n(), U(ee, null, [
|
|
1794
|
+
i("h1", Yo, Q(v(a)((X = b.name) != null ? X : "")), 1),
|
|
1795
|
+
(z = (P = b.pageConfig) == null ? void 0 : P.tablePage) != null && z.tabViewAttributes ? (n(), I(He, {
|
|
1791
1796
|
key: 0,
|
|
1792
1797
|
cards: e.value,
|
|
1793
|
-
tableRef:
|
|
1794
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
1795
|
-
d(
|
|
1798
|
+
tableRef: t.value
|
|
1799
|
+
}, null, 8, ["cards", "tableRef"])) : K("", !0),
|
|
1800
|
+
d(Qe, {
|
|
1796
1801
|
ref_key: "tableRef",
|
|
1797
|
-
ref:
|
|
1802
|
+
ref: t,
|
|
1798
1803
|
model: c
|
|
1799
1804
|
}, null, 8, ["model"])
|
|
1800
1805
|
], 64);
|
|
@@ -1803,35 +1808,35 @@ const Ae = (s) => {
|
|
|
1803
1808
|
}), Ho = /* @__PURE__ */ re(qo, [["__scopeId", "data-v-0381c6cb"]]), Jo = [
|
|
1804
1809
|
ht,
|
|
1805
1810
|
ro,
|
|
1806
|
-
|
|
1811
|
+
Ye,
|
|
1807
1812
|
go,
|
|
1808
1813
|
Co,
|
|
1809
|
-
Ye,
|
|
1810
1814
|
qe,
|
|
1811
|
-
|
|
1815
|
+
He,
|
|
1816
|
+
Qe,
|
|
1812
1817
|
Xo,
|
|
1813
1818
|
Ho
|
|
1814
1819
|
], aa = (s) => {
|
|
1815
|
-
s && s.component && Jo.forEach((
|
|
1816
|
-
console.log("component",
|
|
1820
|
+
s && s.component && Jo.forEach((a) => {
|
|
1821
|
+
console.log("component", a.__name, a), s.component(a.__name, a);
|
|
1817
1822
|
});
|
|
1818
1823
|
};
|
|
1819
1824
|
export {
|
|
1820
1825
|
ht as Building,
|
|
1821
1826
|
ro as ConsoleApp,
|
|
1822
1827
|
Xo as DetailPage,
|
|
1823
|
-
|
|
1828
|
+
Ye as Header,
|
|
1824
1829
|
go as NoPermission,
|
|
1825
1830
|
Co as Secondary,
|
|
1826
|
-
|
|
1827
|
-
|
|
1831
|
+
qe as SideMenu,
|
|
1832
|
+
He as TabCard,
|
|
1828
1833
|
Ho as TablePage,
|
|
1829
|
-
|
|
1834
|
+
Qe as TableView,
|
|
1830
1835
|
Wt as activeMenuMapping,
|
|
1831
1836
|
aa as default,
|
|
1832
1837
|
Mt as en,
|
|
1833
|
-
|
|
1838
|
+
Me as i18n,
|
|
1834
1839
|
$t as menuList,
|
|
1835
|
-
|
|
1840
|
+
he as modelList,
|
|
1836
1841
|
Qt as zh
|
|
1837
1842
|
};
|