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