@vancone/console-component 0.1.1-beta.62 → 0.1.1-beta.64
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.
|
@@ -26,13 +26,13 @@ var Ve = (e, o, n) => new Promise((t, s) => {
|
|
|
26
26
|
}, r = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(a, c);
|
|
27
27
|
r((n = n.apply(e, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as u, createElementBlock as E, createElementVNode as
|
|
30
|
-
import { useRoute as
|
|
29
|
+
import { openBlock as u, createElementBlock as E, createElementVNode as v, defineComponent as $e, reactive as pe, resolveComponent as x, createVNode as h, withCtx as p, unref as y, Fragment as oe, renderList as fe, toDisplayString as A, normalizeStyle as He, ref as N, onMounted as yt, createBlock as I, createTextVNode as H, createCommentVNode as G, normalizeClass as wt, withModifiers as Oo, resolveDynamicComponent as lt, effectScope as Bt, markRaw as De, toRaw as Qe, hasInjectionContext as Po, inject as Io, getCurrentInstance as Vo, watch as Ie, isRef as Xe, isReactive as Ct, toRef as ft, nextTick as it, computed as Te, getCurrentScope as Mo, onScopeDispose as No, toRefs as Nt, onUnmounted as Uo, createStaticVNode as To, resolveDirective as Wt, withDirectives as Yt } from "vue";
|
|
30
|
+
import { useRoute as et, useRouter as pt } from "vue-router";
|
|
31
31
|
import Ao from "axios";
|
|
32
32
|
import { ElMessage as mt, ElMessageBox as Ut } from "element-plus";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { cloneDeep as
|
|
33
|
+
import { createI18n as Do, useI18n as kt } from "vue-i18n";
|
|
34
|
+
import { Search as Jt, ArrowDown as Kt, ArrowRight as Ro, Check as Tt, Refresh as St, Delete as Fo, Upload as Lo, Download as At, Document as Go, Printer as jo, Setting as zo, MoreFilled as qo, QuestionFilled as Ho } from "@element-plus/icons-vue";
|
|
35
|
+
import { cloneDeep as qe } from "lodash";
|
|
36
36
|
const ye = (e, o) => {
|
|
37
37
|
const n = e.__vccOpts || e;
|
|
38
38
|
for (const [t, s] of o)
|
|
@@ -74,62 +74,164 @@ be.interceptors.response.use((e) => {
|
|
|
74
74
|
}
|
|
75
75
|
return Promise.reject(new Error(e.message || "Response Error"));
|
|
76
76
|
});
|
|
77
|
-
const
|
|
77
|
+
const Ko = {
|
|
78
|
+
common: {
|
|
79
|
+
header: {
|
|
80
|
+
product: "Products",
|
|
81
|
+
help: "Help",
|
|
82
|
+
notification: "Notification",
|
|
83
|
+
workbench: "Workbench",
|
|
84
|
+
userCenter: "User Center",
|
|
85
|
+
switchLanguage: "Languages",
|
|
86
|
+
signOut: "Sign out",
|
|
87
|
+
messageCenter: "Message Center (Demo)",
|
|
88
|
+
refresh: "Refresh",
|
|
89
|
+
markAsRead: "Mark as Read",
|
|
90
|
+
delete: "Delete",
|
|
91
|
+
selectAll: "Select All",
|
|
92
|
+
noMessages: "No messages"
|
|
93
|
+
},
|
|
94
|
+
table: {
|
|
95
|
+
create: "Create",
|
|
96
|
+
delete: "Delete",
|
|
97
|
+
add: "Add",
|
|
98
|
+
remove: "Remove",
|
|
99
|
+
search: "Search",
|
|
100
|
+
edit: "Edit",
|
|
101
|
+
operation: "Operations",
|
|
102
|
+
viewSelected: "View Selected",
|
|
103
|
+
warning: "Warning",
|
|
104
|
+
select: "Select"
|
|
105
|
+
},
|
|
106
|
+
basic: {
|
|
107
|
+
cancel: "Cancel",
|
|
108
|
+
confirm: "Confirm",
|
|
109
|
+
createdTime: "Created Time",
|
|
110
|
+
description: "Description",
|
|
111
|
+
detail: "Details",
|
|
112
|
+
more: "More",
|
|
113
|
+
name: "Name",
|
|
114
|
+
no: "No",
|
|
115
|
+
save: "Save",
|
|
116
|
+
summary: "Summary",
|
|
117
|
+
type: "Type",
|
|
118
|
+
updatedTime: "Updated Time",
|
|
119
|
+
yes: "Yes"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}, Qo = {
|
|
123
|
+
common: {
|
|
124
|
+
header: {
|
|
125
|
+
product: "产品",
|
|
126
|
+
help: "帮助",
|
|
127
|
+
notification: "通知",
|
|
128
|
+
workbench: "工作台",
|
|
129
|
+
userCenter: "用户中心",
|
|
130
|
+
switchLanguage: "语言",
|
|
131
|
+
signOut: "退出登录",
|
|
132
|
+
messageCenter: "消息中心(演示)",
|
|
133
|
+
refresh: "刷新",
|
|
134
|
+
markAsRead: "标记已读",
|
|
135
|
+
delete: "删除",
|
|
136
|
+
selectAll: "全选",
|
|
137
|
+
noMessages: "暂无消息"
|
|
138
|
+
},
|
|
139
|
+
table: {
|
|
140
|
+
create: "创建",
|
|
141
|
+
delete: "删除",
|
|
142
|
+
add: "添加",
|
|
143
|
+
remove: "移除",
|
|
144
|
+
search: "搜索",
|
|
145
|
+
edit: "编辑",
|
|
146
|
+
operation: "操作",
|
|
147
|
+
viewSelected: "查看已选",
|
|
148
|
+
warning: "风险提示",
|
|
149
|
+
select: "选择"
|
|
150
|
+
},
|
|
151
|
+
basic: {
|
|
152
|
+
cancel: "取消",
|
|
153
|
+
confirm: "确认",
|
|
154
|
+
createdTime: "创建时间",
|
|
155
|
+
description: "描述",
|
|
156
|
+
detail: "详情",
|
|
157
|
+
more: "更多",
|
|
158
|
+
name: "名称",
|
|
159
|
+
no: "否",
|
|
160
|
+
save: "保存",
|
|
161
|
+
summary: "基本信息",
|
|
162
|
+
type: "类型",
|
|
163
|
+
updatedTime: "更新时间",
|
|
164
|
+
yes: "是"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}, ct = Do({
|
|
168
|
+
legacy: !1,
|
|
169
|
+
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
170
|
+
messages: {
|
|
171
|
+
en: Ko,
|
|
172
|
+
zh: Qo
|
|
173
|
+
}
|
|
174
|
+
}), { t: Xo } = ct.global, Qt = () => {
|
|
78
175
|
const { origin: e } = window.location;
|
|
79
176
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
80
|
-
}
|
|
81
|
-
function
|
|
177
|
+
};
|
|
178
|
+
function Fe(e) {
|
|
179
|
+
const o = "i18n(", n = ")";
|
|
180
|
+
return e && e.startsWith(o) && e.endsWith(n) ? Xo(e.slice(o.length, -n.length)) : e != null ? e : "";
|
|
181
|
+
}
|
|
182
|
+
const Xt = Qt();
|
|
183
|
+
function Zo() {
|
|
82
184
|
return be.get(`//${Xt}/api/passport/service/v1/account`);
|
|
83
185
|
}
|
|
84
|
-
function
|
|
186
|
+
function en() {
|
|
85
187
|
return be.delete(`//${Xt}/api/passport/service/v1/login`);
|
|
86
188
|
}
|
|
87
|
-
function
|
|
189
|
+
function tn() {
|
|
88
190
|
return be.get("//app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
|
|
89
191
|
}
|
|
90
|
-
function
|
|
192
|
+
function on() {
|
|
91
193
|
return be.get("//app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
|
|
92
194
|
}
|
|
93
|
-
const
|
|
195
|
+
const nn = {
|
|
94
196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
197
|
width: "32",
|
|
96
198
|
height: "32",
|
|
97
199
|
class: "icon",
|
|
98
200
|
viewBox: "0 0 1024 1024"
|
|
99
201
|
};
|
|
100
|
-
function
|
|
101
|
-
return u(), E("svg",
|
|
102
|
-
|
|
202
|
+
function sn(e, o) {
|
|
203
|
+
return u(), E("svg", nn, o[0] || (o[0] = [
|
|
204
|
+
v("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
103
205
|
]));
|
|
104
206
|
}
|
|
105
|
-
const
|
|
207
|
+
const an = { render: sn }, rn = {
|
|
106
208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
107
209
|
width: "32",
|
|
108
210
|
height: "32",
|
|
109
211
|
class: "icon",
|
|
110
212
|
viewBox: "0 0 1024 1024"
|
|
111
213
|
};
|
|
112
|
-
function
|
|
113
|
-
return u(), E("svg",
|
|
114
|
-
|
|
214
|
+
function ln(e, o) {
|
|
215
|
+
return u(), E("svg", rn, o[0] || (o[0] = [
|
|
216
|
+
v("path", { d: "M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z" }, null, -1)
|
|
115
217
|
]));
|
|
116
218
|
}
|
|
117
|
-
const
|
|
219
|
+
const cn = { render: ln }, dn = {
|
|
118
220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
221
|
width: "32",
|
|
120
222
|
height: "32",
|
|
121
223
|
class: "icon",
|
|
122
224
|
viewBox: "0 0 1024 1024"
|
|
123
225
|
};
|
|
124
|
-
function
|
|
125
|
-
return u(), E("svg",
|
|
126
|
-
|
|
226
|
+
function un(e, o) {
|
|
227
|
+
return u(), E("svg", dn, o[0] || (o[0] = [
|
|
228
|
+
v("path", { d: "M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z" }, null, -1)
|
|
127
229
|
]));
|
|
128
230
|
}
|
|
129
|
-
const
|
|
231
|
+
const pn = { render: un }, fn = { class: "app-catalog-wrapper" }, mn = { class: "catalog-wrapper" }, hn = { class: "service-list" }, _n = { class: "app-icon-container" }, vn = ["href"], gn = ["innerHTML"], bn = {
|
|
130
232
|
key: 1,
|
|
131
233
|
class: "app-icon"
|
|
132
|
-
},
|
|
234
|
+
}, yn = /* @__PURE__ */ $e({
|
|
133
235
|
__name: "AppCatalog",
|
|
134
236
|
props: {
|
|
135
237
|
visible: { type: Boolean }
|
|
@@ -137,8 +239,8 @@ const cn = { render: ln }, dn = { class: "app-catalog-wrapper" }, un = { class:
|
|
|
137
239
|
setup(e) {
|
|
138
240
|
const o = pe([]);
|
|
139
241
|
function n() {
|
|
140
|
-
|
|
141
|
-
o.splice(0, o.length, ...t.data.list),
|
|
242
|
+
tn().then(({ data: t }) => {
|
|
243
|
+
o.splice(0, o.length, ...t.data.list), on().then(({ data: s }) => {
|
|
142
244
|
const a = s.data;
|
|
143
245
|
o.forEach((c) => {
|
|
144
246
|
c.apps = a.filter((r) => r.groupId === c.id);
|
|
@@ -147,19 +249,19 @@ const cn = { render: ln }, dn = { class: "app-catalog-wrapper" }, un = { class:
|
|
|
147
249
|
});
|
|
148
250
|
}
|
|
149
251
|
return n(), (t, s) => {
|
|
150
|
-
const a =
|
|
151
|
-
return u(), E("div",
|
|
252
|
+
const a = x("el-input"), c = x("el-scrollbar"), r = x("el-tab-pane"), i = x("el-tabs");
|
|
253
|
+
return u(), E("div", fn, [
|
|
152
254
|
h(i, { "tab-position": "left" }, {
|
|
153
255
|
default: p(() => [
|
|
154
256
|
h(r, null, {
|
|
155
257
|
label: p(() => [
|
|
156
|
-
h(
|
|
258
|
+
h(y(an), { class: "left-icon" })
|
|
157
259
|
]),
|
|
158
260
|
default: p(() => [
|
|
159
|
-
s[0] || (s[0] =
|
|
261
|
+
s[0] || (s[0] = v("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
262
|
h(a, {
|
|
161
263
|
class: "search-box",
|
|
162
|
-
"prefix-icon":
|
|
264
|
+
"prefix-icon": y(Jt),
|
|
163
265
|
placeholder: "Search apps"
|
|
164
266
|
}, null, 8, ["prefix-icon"]),
|
|
165
267
|
h(c, {
|
|
@@ -167,14 +269,14 @@ const cn = { render: ln }, dn = { class: "app-catalog-wrapper" }, un = { class:
|
|
|
167
269
|
style: { width: "100%", height: "400px" }
|
|
168
270
|
}, {
|
|
169
271
|
default: p(() => [
|
|
170
|
-
|
|
171
|
-
(u(!0), E(oe, null, fe(o, (f) => (u(), E("div",
|
|
172
|
-
|
|
173
|
-
|
|
272
|
+
v("div", mn, [
|
|
273
|
+
(u(!0), E(oe, null, fe(o, (f) => (u(), E("div", hn, [
|
|
274
|
+
v("h1", null, A(f.name), 1),
|
|
275
|
+
v("div", _n, [
|
|
174
276
|
(u(!0), E(oe, null, fe(f.apps, (b) => {
|
|
175
|
-
var
|
|
277
|
+
var $, V;
|
|
176
278
|
return u(), E("a", {
|
|
177
|
-
style:
|
|
279
|
+
style: He([{ "text-decoration": "none" }, { pointerEvents: (($ = b.homepageUrl) == null ? void 0 : $.length) > 0 ? "auto" : "none" }]),
|
|
178
280
|
target: "_blank",
|
|
179
281
|
href: b.homepageUrl
|
|
180
282
|
}, [
|
|
@@ -182,11 +284,11 @@ const cn = { render: ln }, dn = { class: "app-catalog-wrapper" }, un = { class:
|
|
|
182
284
|
key: 0,
|
|
183
285
|
class: "app-icon",
|
|
184
286
|
innerHTML: b.iconSvg
|
|
185
|
-
}, null, 8,
|
|
186
|
-
|
|
187
|
-
style:
|
|
287
|
+
}, null, 8, gn)) : (u(), E("div", bn, " ")),
|
|
288
|
+
v("h2", {
|
|
289
|
+
style: He({ color: ((V = b.homepageUrl) == null ? void 0 : V.length) > 0 ? "#555" : "#bbb" })
|
|
188
290
|
}, A(b.name), 5)
|
|
189
|
-
], 12,
|
|
291
|
+
], 12, vn);
|
|
190
292
|
}), 256))
|
|
191
293
|
])
|
|
192
294
|
]))), 256))
|
|
@@ -199,19 +301,19 @@ const cn = { render: ln }, dn = { class: "app-catalog-wrapper" }, un = { class:
|
|
|
199
301
|
}),
|
|
200
302
|
h(r, null, {
|
|
201
303
|
label: p(() => [
|
|
202
|
-
h(
|
|
304
|
+
h(y(cn), { class: "left-icon" })
|
|
203
305
|
]),
|
|
204
306
|
default: p(() => [
|
|
205
|
-
s[1] || (s[1] =
|
|
307
|
+
s[1] || (s[1] = v("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
206
308
|
]),
|
|
207
309
|
_: 1
|
|
208
310
|
}),
|
|
209
311
|
h(r, null, {
|
|
210
312
|
label: p(() => [
|
|
211
|
-
h(
|
|
313
|
+
h(y(pn), { class: "left-icon" })
|
|
212
314
|
]),
|
|
213
315
|
default: p(() => [
|
|
214
|
-
s[2] || (s[2] =
|
|
316
|
+
s[2] || (s[2] = v("h1", { class: "catalog-title" }, "Recently", -1))
|
|
215
317
|
]),
|
|
216
318
|
_: 1
|
|
217
319
|
})
|
|
@@ -221,151 +323,54 @@ const cn = { render: ln }, dn = { class: "app-catalog-wrapper" }, un = { class:
|
|
|
221
323
|
]);
|
|
222
324
|
};
|
|
223
325
|
}
|
|
224
|
-
}),
|
|
225
|
-
common: {
|
|
226
|
-
header: {
|
|
227
|
-
product: "Products",
|
|
228
|
-
help: "Help",
|
|
229
|
-
notification: "Notification",
|
|
230
|
-
workbench: "Workbench",
|
|
231
|
-
userCenter: "User Center",
|
|
232
|
-
switchLanguage: "Languages",
|
|
233
|
-
signOut: "Sign out",
|
|
234
|
-
messageCenter: "Message Center (Demo)",
|
|
235
|
-
refresh: "Refresh",
|
|
236
|
-
markAsRead: "Mark as Read",
|
|
237
|
-
delete: "Delete",
|
|
238
|
-
selectAll: "Select All",
|
|
239
|
-
noMessages: "No messages"
|
|
240
|
-
},
|
|
241
|
-
table: {
|
|
242
|
-
create: "Create",
|
|
243
|
-
delete: "Delete",
|
|
244
|
-
add: "Add",
|
|
245
|
-
remove: "Remove",
|
|
246
|
-
search: "Search",
|
|
247
|
-
edit: "Edit",
|
|
248
|
-
operation: "Operations",
|
|
249
|
-
viewSelected: "View Selected",
|
|
250
|
-
warning: "Warning",
|
|
251
|
-
select: "Select"
|
|
252
|
-
},
|
|
253
|
-
basic: {
|
|
254
|
-
cancel: "Cancel",
|
|
255
|
-
confirm: "Confirm",
|
|
256
|
-
createdTime: "Created Time",
|
|
257
|
-
description: "Description",
|
|
258
|
-
detail: "Details",
|
|
259
|
-
more: "More",
|
|
260
|
-
name: "Name",
|
|
261
|
-
no: "No",
|
|
262
|
-
save: "Save",
|
|
263
|
-
summary: "Summary",
|
|
264
|
-
type: "Type",
|
|
265
|
-
updatedTime: "Updated Time",
|
|
266
|
-
yes: "Yes"
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}, yn = {
|
|
270
|
-
common: {
|
|
271
|
-
header: {
|
|
272
|
-
product: "产品",
|
|
273
|
-
help: "帮助",
|
|
274
|
-
notification: "通知",
|
|
275
|
-
workbench: "工作台",
|
|
276
|
-
userCenter: "用户中心",
|
|
277
|
-
switchLanguage: "语言",
|
|
278
|
-
signOut: "退出登录",
|
|
279
|
-
messageCenter: "消息中心(演示)",
|
|
280
|
-
refresh: "刷新",
|
|
281
|
-
markAsRead: "标记已读",
|
|
282
|
-
delete: "删除",
|
|
283
|
-
selectAll: "全选",
|
|
284
|
-
noMessages: "暂无消息"
|
|
285
|
-
},
|
|
286
|
-
table: {
|
|
287
|
-
create: "创建",
|
|
288
|
-
delete: "删除",
|
|
289
|
-
add: "添加",
|
|
290
|
-
remove: "移除",
|
|
291
|
-
search: "搜索",
|
|
292
|
-
edit: "编辑",
|
|
293
|
-
operation: "操作",
|
|
294
|
-
viewSelected: "查看已选",
|
|
295
|
-
warning: "风险提示",
|
|
296
|
-
select: "选择"
|
|
297
|
-
},
|
|
298
|
-
basic: {
|
|
299
|
-
cancel: "取消",
|
|
300
|
-
confirm: "确认",
|
|
301
|
-
createdTime: "创建时间",
|
|
302
|
-
description: "描述",
|
|
303
|
-
detail: "详情",
|
|
304
|
-
more: "更多",
|
|
305
|
-
name: "名称",
|
|
306
|
-
no: "否",
|
|
307
|
-
save: "保存",
|
|
308
|
-
summary: "基本信息",
|
|
309
|
-
type: "类型",
|
|
310
|
-
updatedTime: "更新时间",
|
|
311
|
-
yes: "是"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}, ct = Ho({
|
|
315
|
-
legacy: !1,
|
|
316
|
-
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
317
|
-
messages: {
|
|
318
|
-
en: bn,
|
|
319
|
-
zh: yn
|
|
320
|
-
}
|
|
321
|
-
}), wn = {
|
|
326
|
+
}), wn = /* @__PURE__ */ ye(yn, [["__scopeId", "data-v-fcfb021b"]]), Cn = {
|
|
322
327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
323
328
|
"xml:space": "preserve",
|
|
324
329
|
viewBox: "0 0 32 32"
|
|
325
330
|
};
|
|
326
|
-
function
|
|
327
|
-
return u(), E("svg",
|
|
328
|
-
|
|
331
|
+
function kn(e, o) {
|
|
332
|
+
return u(), E("svg", Cn, o[0] || (o[0] = [
|
|
333
|
+
v("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)
|
|
329
334
|
]));
|
|
330
335
|
}
|
|
331
|
-
const
|
|
336
|
+
const Sn = { render: kn }, xn = {
|
|
332
337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
333
338
|
width: "200",
|
|
334
339
|
height: "200",
|
|
335
340
|
class: "icon",
|
|
336
341
|
viewBox: "0 0 1024 1024"
|
|
337
342
|
};
|
|
338
|
-
function
|
|
339
|
-
return u(), E("svg",
|
|
340
|
-
|
|
343
|
+
function $n(e, o) {
|
|
344
|
+
return u(), E("svg", xn, o[0] || (o[0] = [
|
|
345
|
+
v("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)
|
|
341
346
|
]));
|
|
342
347
|
}
|
|
343
|
-
const
|
|
348
|
+
const En = { render: $n }, On = {
|
|
344
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
345
350
|
width: "200",
|
|
346
351
|
height: "200",
|
|
347
352
|
class: "icon",
|
|
348
353
|
viewBox: "0 0 1024 1024"
|
|
349
354
|
};
|
|
350
|
-
function
|
|
351
|
-
return u(), E("svg",
|
|
352
|
-
|
|
355
|
+
function Pn(e, o) {
|
|
356
|
+
return u(), E("svg", On, o[0] || (o[0] = [
|
|
357
|
+
v("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)
|
|
353
358
|
]));
|
|
354
359
|
}
|
|
355
|
-
const
|
|
360
|
+
const In = { render: Pn }, Vn = {
|
|
356
361
|
xmlns: "http://www.w3.org/2000/svg",
|
|
357
362
|
"xml:space": "preserve",
|
|
358
363
|
viewBox: "0 0 32 32"
|
|
359
364
|
};
|
|
360
|
-
function
|
|
361
|
-
return u(), E("svg",
|
|
362
|
-
|
|
365
|
+
function Mn(e, o) {
|
|
366
|
+
return u(), E("svg", Vn, o[0] || (o[0] = [
|
|
367
|
+
v("path", {
|
|
363
368
|
d: "M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",
|
|
364
369
|
style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
|
|
365
370
|
}, null, -1)
|
|
366
371
|
]));
|
|
367
372
|
}
|
|
368
|
-
const
|
|
373
|
+
const Nn = { render: Mn };
|
|
369
374
|
function xe(e, o, n) {
|
|
370
375
|
switch (o) {
|
|
371
376
|
case "POST":
|
|
@@ -378,19 +383,19 @@ function xe(e, o, n) {
|
|
|
378
383
|
return be.get(e, { params: n });
|
|
379
384
|
}
|
|
380
385
|
}
|
|
381
|
-
const
|
|
386
|
+
const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }, Dn = { class: "icon-wrapper" }, Rn = { class: "user-wrapper" }, Fn = { style: { "font-size": "11px", "font-weight": "bold" } }, Ln = { class: "user-popover-header" }, Gn = { style: { "font-size": "15px", "font-weight": "bold" } }, jn = ["onClick"], zn = { class: "message-center-header" }, qn = { class: "message-center-content" }, Hn = {
|
|
382
387
|
key: 0,
|
|
383
388
|
class: "message-toolbar"
|
|
384
|
-
},
|
|
389
|
+
}, Bn = { class: "message-list" }, Wn = {
|
|
385
390
|
key: 0,
|
|
386
391
|
class: "empty-message"
|
|
387
|
-
},
|
|
392
|
+
}, Yn = {
|
|
388
393
|
key: 1,
|
|
389
394
|
class: "message-list-header"
|
|
390
|
-
},
|
|
395
|
+
}, Jn = ["onClick"], Kn = { class: "message-checkbox" }, Qn = { class: "message-body" }, Xn = { class: "message-header" }, Zn = { class: "message-title" }, es = {
|
|
391
396
|
key: 0,
|
|
392
397
|
class: "unread-badge"
|
|
393
|
-
},
|
|
398
|
+
}, ts = { class: "message-content" }, os = { class: "message-footer" }, ns = { class: "message-sender" }, ss = { class: "message-time" }, as = /* @__PURE__ */ $e({
|
|
394
399
|
__name: "Header",
|
|
395
400
|
props: {
|
|
396
401
|
title: {},
|
|
@@ -398,7 +403,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
398
403
|
helpDocUrl: {}
|
|
399
404
|
},
|
|
400
405
|
setup(e) {
|
|
401
|
-
const { t: o } =
|
|
406
|
+
const { t: o } = kt(), n = N(), t = N(), s = N(), a = N(), c = N(!1), r = N([
|
|
402
407
|
{
|
|
403
408
|
id: "1",
|
|
404
409
|
title: "系统通知",
|
|
@@ -431,7 +436,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
431
436
|
sendTime: "2025-12-25 14:00:00",
|
|
432
437
|
isRead: !0
|
|
433
438
|
}
|
|
434
|
-
]), i = N([]), f = N(!1), b = e,
|
|
439
|
+
]), i = N([]), f = N(!1), b = e, $ = N(), V = pe(
|
|
435
440
|
{
|
|
436
441
|
id: "",
|
|
437
442
|
name: ""
|
|
@@ -447,24 +452,24 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
447
452
|
}
|
|
448
453
|
]);
|
|
449
454
|
yt(() => {
|
|
450
|
-
var l,
|
|
451
|
-
M.value = decodeURIComponent(ce("passport_username").replace(/\+/g, " ")), M.value === "" &&
|
|
455
|
+
var l, _, k;
|
|
456
|
+
M.value = decodeURIComponent(ce("passport_username").replace(/\+/g, " ")), M.value === "" && Zo().then(({ data: P }) => {
|
|
452
457
|
var F;
|
|
453
458
|
P.code == 0 && (M.value = (F = P.data.name) != null ? F : P.data.displayId);
|
|
454
|
-
}), (l = b.headerProjectConfig) != null && l.api ? xe((
|
|
455
|
-
|
|
456
|
-
}) : (k = b.headerProjectConfig) != null && k.items && (
|
|
459
|
+
}), (l = b.headerProjectConfig) != null && l.api ? xe((_ = b.headerProjectConfig) == null ? void 0 : _.api, "GET", {}).then(({ data: P }) => {
|
|
460
|
+
$.value = P.data;
|
|
461
|
+
}) : (k = b.headerProjectConfig) != null && k.items && ($.value = b.headerProjectConfig.items);
|
|
457
462
|
});
|
|
458
463
|
function ce(l) {
|
|
459
|
-
for (var
|
|
464
|
+
for (var _ = l + "=", k = document.cookie.split(";"), P = 0; P < k.length; P++) {
|
|
460
465
|
for (var F = k[P]; F.charAt(0) == " "; ) F = F.substring(1);
|
|
461
|
-
if (F.indexOf(
|
|
462
|
-
return F.substring(
|
|
466
|
+
if (F.indexOf(_) != -1)
|
|
467
|
+
return F.substring(_.length, F.length);
|
|
463
468
|
}
|
|
464
469
|
return "";
|
|
465
470
|
}
|
|
466
471
|
function B() {
|
|
467
|
-
|
|
472
|
+
en().then(() => {
|
|
468
473
|
const l = encodeURIComponent(window.location.href);
|
|
469
474
|
window.location.href = `//${Qt()}/?from=${l}#login`;
|
|
470
475
|
});
|
|
@@ -482,9 +487,9 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
482
487
|
if (l === "allProjects")
|
|
483
488
|
alert("show all projects");
|
|
484
489
|
else
|
|
485
|
-
for (let
|
|
486
|
-
if (
|
|
487
|
-
Object.assign(V,
|
|
490
|
+
for (let _ of $.value)
|
|
491
|
+
if (_.id === l) {
|
|
492
|
+
Object.assign(V, _);
|
|
488
493
|
break;
|
|
489
494
|
}
|
|
490
495
|
}
|
|
@@ -493,31 +498,31 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
493
498
|
function U() {
|
|
494
499
|
i.value.length !== 0 && (r.value = r.value.filter((l) => !i.value.includes(l.id)), i.value = []);
|
|
495
500
|
}
|
|
496
|
-
function
|
|
501
|
+
function w() {
|
|
497
502
|
i.value.length !== 0 && (r.value.forEach((l) => {
|
|
498
503
|
i.value.includes(l.id) && (l.isRead = !0);
|
|
499
504
|
}), i.value = []);
|
|
500
505
|
}
|
|
501
506
|
function T(l) {
|
|
502
|
-
l ? i.value = r.value.map((
|
|
507
|
+
l ? i.value = r.value.map((_) => _.id) : i.value = [];
|
|
503
508
|
}
|
|
504
509
|
function d(l) {
|
|
505
510
|
return l;
|
|
506
511
|
}
|
|
507
|
-
return (l,
|
|
508
|
-
const k =
|
|
512
|
+
return (l, _) => {
|
|
513
|
+
const k = x("el-icon"), P = x("el-dropdown-item"), F = x("el-dropdown-menu"), D = x("el-dropdown"), O = x("el-popover"), L = x("el-tooltip"), j = x("el-avatar"), g = x("el-menu-item"), S = x("el-menu"), m = x("el-button"), q = x("el-empty"), C = x("el-checkbox"), Z = x("el-drawer");
|
|
509
514
|
return u(), E(oe, null, [
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
515
|
+
v("div", Un, [
|
|
516
|
+
v("div", Tn, [
|
|
517
|
+
v("div", {
|
|
513
518
|
ref_key: "appCatalogButtonRef",
|
|
514
519
|
ref: a,
|
|
515
520
|
class: "icon-wrapper",
|
|
516
521
|
style: { "margin-left": "8px" }
|
|
517
522
|
}, [
|
|
518
|
-
h(
|
|
523
|
+
h(y(Sn))
|
|
519
524
|
], 512),
|
|
520
|
-
|
|
525
|
+
v("h1", null, A(l.title), 1),
|
|
521
526
|
b.headerProjectConfig ? (u(), I(D, {
|
|
522
527
|
key: 0,
|
|
523
528
|
placement: "bottom-start",
|
|
@@ -526,7 +531,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
526
531
|
dropdown: p(() => [
|
|
527
532
|
h(F, { style: { width: "300px" } }, {
|
|
528
533
|
default: p(() => [
|
|
529
|
-
(u(!0), E(oe, null, fe(
|
|
534
|
+
(u(!0), E(oe, null, fe($.value, (R) => (u(), I(P, {
|
|
530
535
|
command: R.id
|
|
531
536
|
}, {
|
|
532
537
|
default: p(() => [
|
|
@@ -538,7 +543,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
538
543
|
divided: "",
|
|
539
544
|
command: "allProjects"
|
|
540
545
|
}, {
|
|
541
|
-
default: p(() =>
|
|
546
|
+
default: p(() => _[4] || (_[4] = [
|
|
542
547
|
H("全部项目")
|
|
543
548
|
])),
|
|
544
549
|
_: 1
|
|
@@ -548,11 +553,11 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
548
553
|
})
|
|
549
554
|
]),
|
|
550
555
|
default: p(() => [
|
|
551
|
-
|
|
556
|
+
v("span", null, [
|
|
552
557
|
H(A(V.name) + " ", 1),
|
|
553
558
|
h(k, { class: "el-icon--right" }, {
|
|
554
559
|
default: p(() => [
|
|
555
|
-
h(
|
|
560
|
+
h(y(Kt))
|
|
556
561
|
]),
|
|
557
562
|
_: 1
|
|
558
563
|
})
|
|
@@ -569,26 +574,26 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
569
574
|
"popper-style": "width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"
|
|
570
575
|
}, {
|
|
571
576
|
default: p(() => [
|
|
572
|
-
h(
|
|
577
|
+
h(wn, { visible: !0 })
|
|
573
578
|
]),
|
|
574
579
|
_: 1
|
|
575
580
|
}, 8, ["virtual-ref"]),
|
|
576
|
-
|
|
581
|
+
v("div", An, [
|
|
577
582
|
h(L, {
|
|
578
583
|
effect: "dark",
|
|
579
|
-
content:
|
|
584
|
+
content: y(o)("common.header.workbench"),
|
|
580
585
|
placement: "bottom"
|
|
581
586
|
}, {
|
|
582
587
|
default: p(() => [
|
|
583
|
-
|
|
584
|
-
h(
|
|
588
|
+
v("div", Dn, [
|
|
589
|
+
h(y(Nn))
|
|
585
590
|
])
|
|
586
591
|
]),
|
|
587
592
|
_: 1
|
|
588
593
|
}, 8, ["content"]),
|
|
589
594
|
h(L, {
|
|
590
595
|
effect: "dark",
|
|
591
|
-
content:
|
|
596
|
+
content: y(o)("common.header.help"),
|
|
592
597
|
placement: "bottom"
|
|
593
598
|
}, {
|
|
594
599
|
default: p(() => [
|
|
@@ -597,27 +602,27 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
597
602
|
class: "icon-wrapper",
|
|
598
603
|
onClick: me
|
|
599
604
|
}, [
|
|
600
|
-
h(
|
|
605
|
+
h(y(En))
|
|
601
606
|
])) : G("", !0)
|
|
602
607
|
]),
|
|
603
608
|
_: 1
|
|
604
609
|
}, 8, ["content"]),
|
|
605
610
|
h(L, {
|
|
606
611
|
effect: "dark",
|
|
607
|
-
content:
|
|
612
|
+
content: y(o)("common.header.notification"),
|
|
608
613
|
placement: "bottom"
|
|
609
614
|
}, {
|
|
610
615
|
default: p(() => [
|
|
611
|
-
|
|
616
|
+
v("div", {
|
|
612
617
|
class: "icon-wrapper",
|
|
613
|
-
onClick:
|
|
618
|
+
onClick: _[0] || (_[0] = (R) => c.value = !0)
|
|
614
619
|
}, [
|
|
615
|
-
h(
|
|
620
|
+
h(y(In))
|
|
616
621
|
])
|
|
617
622
|
]),
|
|
618
623
|
_: 1
|
|
619
624
|
}, 8, ["content"]),
|
|
620
|
-
|
|
625
|
+
v("div", Rn, [
|
|
621
626
|
h(j, {
|
|
622
627
|
size: 30,
|
|
623
628
|
src: "",
|
|
@@ -625,7 +630,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
625
630
|
ref: n
|
|
626
631
|
}, {
|
|
627
632
|
default: p(() => [
|
|
628
|
-
|
|
633
|
+
v("span", Fn, A(M.value.substring(0, 2)), 1)
|
|
629
634
|
]),
|
|
630
635
|
_: 1
|
|
631
636
|
}, 512),
|
|
@@ -640,23 +645,23 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
640
645
|
"virtual-triggering": ""
|
|
641
646
|
}, {
|
|
642
647
|
default: p(() => [
|
|
643
|
-
|
|
648
|
+
v("div", Ln, [
|
|
644
649
|
h(j, {
|
|
645
650
|
size: 48,
|
|
646
651
|
src: ""
|
|
647
652
|
}, {
|
|
648
653
|
default: p(() => [
|
|
649
|
-
|
|
654
|
+
v("span", Gn, A(M.value.substring(0, 2)), 1)
|
|
650
655
|
]),
|
|
651
656
|
_: 1
|
|
652
657
|
}),
|
|
653
|
-
|
|
658
|
+
v("span", null, A(M.value), 1)
|
|
654
659
|
]),
|
|
655
|
-
h(
|
|
660
|
+
h(S, { class: "user-menu" }, {
|
|
656
661
|
default: p(() => [
|
|
657
662
|
h(g, { onClick: ne }, {
|
|
658
663
|
default: p(() => [
|
|
659
|
-
H(A(
|
|
664
|
+
H(A(y(o)("common.header.userCenter")), 1)
|
|
660
665
|
]),
|
|
661
666
|
_: 1
|
|
662
667
|
}),
|
|
@@ -666,10 +671,10 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
666
671
|
style: { display: "flext", "justify-content": "space-between" }
|
|
667
672
|
}, {
|
|
668
673
|
default: p(() => [
|
|
669
|
-
|
|
674
|
+
v("span", null, A(y(o)("common.header.switchLanguage")), 1),
|
|
670
675
|
h(k, { style: { left: "15px" } }, {
|
|
671
676
|
default: p(() => [
|
|
672
|
-
h(
|
|
677
|
+
h(y(Ro))
|
|
673
678
|
]),
|
|
674
679
|
_: 1
|
|
675
680
|
})
|
|
@@ -692,23 +697,23 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
692
697
|
class: "select-list",
|
|
693
698
|
onClick: (se) => ee(R.id)
|
|
694
699
|
}, [
|
|
695
|
-
|
|
700
|
+
v("span", null, A(R.name), 1),
|
|
696
701
|
R.id === z.value ? (u(), I(k, {
|
|
697
702
|
key: 0,
|
|
698
703
|
style: { color: "#8ba74f" }
|
|
699
704
|
}, {
|
|
700
705
|
default: p(() => [
|
|
701
|
-
h(
|
|
706
|
+
h(y(Tt))
|
|
702
707
|
]),
|
|
703
708
|
_: 1
|
|
704
709
|
})) : G("", !0)
|
|
705
|
-
], 8,
|
|
710
|
+
], 8, jn))), 256))
|
|
706
711
|
]),
|
|
707
712
|
_: 1
|
|
708
713
|
}, 8, ["virtual-ref"]),
|
|
709
714
|
h(g, { onClick: B }, {
|
|
710
715
|
default: p(() => [
|
|
711
|
-
H(A(
|
|
716
|
+
H(A(y(o)("common.header.signOut")), 1)
|
|
712
717
|
]),
|
|
713
718
|
_: 1
|
|
714
719
|
})
|
|
@@ -723,66 +728,66 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
723
728
|
]),
|
|
724
729
|
h(Z, {
|
|
725
730
|
modelValue: c.value,
|
|
726
|
-
"onUpdate:modelValue":
|
|
731
|
+
"onUpdate:modelValue": _[3] || (_[3] = (R) => c.value = R),
|
|
727
732
|
direction: "rtl",
|
|
728
|
-
title:
|
|
733
|
+
title: y(o)("common.header.messageCenter"),
|
|
729
734
|
size: "500px"
|
|
730
735
|
}, {
|
|
731
736
|
header: p(() => [
|
|
732
|
-
|
|
733
|
-
|
|
737
|
+
v("div", zn, [
|
|
738
|
+
v("span", null, A(y(o)("common.header.messageCenter")), 1),
|
|
734
739
|
h(m, {
|
|
735
|
-
icon:
|
|
740
|
+
icon: y(St),
|
|
736
741
|
link: "",
|
|
737
742
|
onClick: we
|
|
738
743
|
}, {
|
|
739
744
|
default: p(() => [
|
|
740
|
-
H(A(
|
|
745
|
+
H(A(y(o)("common.header.refresh")), 1)
|
|
741
746
|
]),
|
|
742
747
|
_: 1
|
|
743
748
|
}, 8, ["icon"])
|
|
744
749
|
])
|
|
745
750
|
]),
|
|
746
751
|
default: p(() => [
|
|
747
|
-
|
|
748
|
-
i.value.length > 0 ? (u(), E("div",
|
|
752
|
+
v("div", qn, [
|
|
753
|
+
i.value.length > 0 ? (u(), E("div", Hn, [
|
|
749
754
|
h(m, {
|
|
750
|
-
icon:
|
|
755
|
+
icon: y(Tt),
|
|
751
756
|
type: "primary",
|
|
752
757
|
size: "small",
|
|
753
|
-
onClick:
|
|
758
|
+
onClick: w
|
|
754
759
|
}, {
|
|
755
760
|
default: p(() => [
|
|
756
|
-
H(A(
|
|
761
|
+
H(A(y(o)("common.header.markAsRead")), 1)
|
|
757
762
|
]),
|
|
758
763
|
_: 1
|
|
759
764
|
}, 8, ["icon"]),
|
|
760
765
|
h(m, {
|
|
761
|
-
icon:
|
|
766
|
+
icon: y(Fo),
|
|
762
767
|
type: "danger",
|
|
763
768
|
size: "small",
|
|
764
769
|
onClick: U
|
|
765
770
|
}, {
|
|
766
771
|
default: p(() => [
|
|
767
|
-
H(A(
|
|
772
|
+
H(A(y(o)("common.header.delete")), 1)
|
|
768
773
|
]),
|
|
769
774
|
_: 1
|
|
770
775
|
}, 8, ["icon"])
|
|
771
776
|
])) : G("", !0),
|
|
772
|
-
|
|
773
|
-
r.value.length === 0 ? (u(), E("div",
|
|
777
|
+
v("div", Bn, [
|
|
778
|
+
r.value.length === 0 ? (u(), E("div", Wn, [
|
|
774
779
|
h(q, {
|
|
775
|
-
description:
|
|
780
|
+
description: y(o)("common.header.noMessages")
|
|
776
781
|
}, null, 8, ["description"])
|
|
777
|
-
])) : (u(), E("div",
|
|
782
|
+
])) : (u(), E("div", Yn, [
|
|
778
783
|
h(C, {
|
|
779
784
|
indeterminate: i.value.length > 0 && i.value.length < r.value.length,
|
|
780
785
|
modelValue: f.value,
|
|
781
|
-
"onUpdate:modelValue":
|
|
786
|
+
"onUpdate:modelValue": _[1] || (_[1] = (R) => f.value = R),
|
|
782
787
|
onChange: T
|
|
783
788
|
}, {
|
|
784
789
|
default: p(() => [
|
|
785
|
-
H(A(
|
|
790
|
+
H(A(y(o)("common.header.selectAll")), 1)
|
|
786
791
|
]),
|
|
787
792
|
_: 1
|
|
788
793
|
}, 8, ["indeterminate", "modelValue"])
|
|
@@ -792,28 +797,28 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
792
797
|
class: wt(["message-item", { unread: !R.isRead, selected: i.value.includes(R.id) }]),
|
|
793
798
|
onClick: (se) => i.value = i.value.includes(R.id) ? i.value.filter((Q) => Q !== R.id) : [...i.value, R.id]
|
|
794
799
|
}, [
|
|
795
|
-
|
|
800
|
+
v("div", Kn, [
|
|
796
801
|
h(C, {
|
|
797
802
|
"model-value": i.value.includes(R.id),
|
|
798
803
|
onChange: (se) => {
|
|
799
804
|
se ? i.value.includes(R.id) || (i.value = [...i.value, R.id]) : i.value = i.value.filter((Q) => Q !== R.id);
|
|
800
805
|
},
|
|
801
|
-
onClick:
|
|
806
|
+
onClick: _[2] || (_[2] = Oo(() => {
|
|
802
807
|
}, ["stop"]))
|
|
803
808
|
}, null, 8, ["model-value", "onChange"])
|
|
804
809
|
]),
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
R.isRead ? G("", !0) : (u(), E("span",
|
|
810
|
+
v("div", Qn, [
|
|
811
|
+
v("div", Xn, [
|
|
812
|
+
v("span", Zn, A(R.title), 1),
|
|
813
|
+
R.isRead ? G("", !0) : (u(), E("span", es))
|
|
809
814
|
]),
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
815
|
+
v("div", ts, A(R.content), 1),
|
|
816
|
+
v("div", os, [
|
|
817
|
+
v("span", ns, A(R.sender), 1),
|
|
818
|
+
v("span", ss, A(R.sendTime), 1)
|
|
814
819
|
])
|
|
815
820
|
])
|
|
816
|
-
], 10,
|
|
821
|
+
], 10, Jn))), 128))
|
|
817
822
|
])
|
|
818
823
|
])
|
|
819
824
|
]),
|
|
@@ -822,10 +827,10 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
822
827
|
], 64);
|
|
823
828
|
};
|
|
824
829
|
}
|
|
825
|
-
}), Zt = /* @__PURE__ */ ye(
|
|
830
|
+
}), Zt = /* @__PURE__ */ ye(as, [["__scopeId", "data-v-3c23184d"]]), rs = {
|
|
826
831
|
class: "menu-icon-wrapper",
|
|
827
832
|
style: { "margin-left": "3px" }
|
|
828
|
-
},
|
|
833
|
+
}, ls = ["innerHTML"], is = { class: "menu-icon-wrapper" }, cs = ["innerHTML"], ds = /* @__PURE__ */ $e({
|
|
829
834
|
__name: "SideMenuItem",
|
|
830
835
|
props: {
|
|
831
836
|
menu: {}
|
|
@@ -833,15 +838,15 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
833
838
|
setup(e) {
|
|
834
839
|
const o = e;
|
|
835
840
|
return (n, t) => {
|
|
836
|
-
const s =
|
|
841
|
+
const s = x("SideMenuItem", !0), a = x("el-sub-menu"), c = x("el-menu-item");
|
|
837
842
|
return n.menu.children && n.menu.children.length > 0 ? (u(), I(a, {
|
|
838
843
|
key: 0,
|
|
839
844
|
index: n.menu.path
|
|
840
845
|
}, {
|
|
841
846
|
title: p(() => {
|
|
842
|
-
var r, i, f, b
|
|
847
|
+
var r, i, f, b;
|
|
843
848
|
return [
|
|
844
|
-
|
|
849
|
+
v("div", rs, [
|
|
845
850
|
(r = o.menu.meta) != null && r.icon ? (u(), I(lt((i = n.menu.meta) == null ? void 0 : i.icon), {
|
|
846
851
|
key: 0,
|
|
847
852
|
class: "menu-icon"
|
|
@@ -850,9 +855,9 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
850
855
|
key: 1,
|
|
851
856
|
class: "svg-xml-icon",
|
|
852
857
|
innerHTML: o.menu.meta.svgXml
|
|
853
|
-
}, null, 8,
|
|
858
|
+
}, null, 8, ls)) : G("", !0)
|
|
854
859
|
]),
|
|
855
|
-
|
|
860
|
+
v("span", null, A(y(Fe)((b = n.menu.meta) == null ? void 0 : b.title)), 1)
|
|
856
861
|
];
|
|
857
862
|
}),
|
|
858
863
|
default: p(() => [
|
|
@@ -869,15 +874,15 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
869
874
|
style: { height: "40px" }
|
|
870
875
|
}, {
|
|
871
876
|
title: p(() => {
|
|
872
|
-
var r
|
|
877
|
+
var r;
|
|
873
878
|
return [
|
|
874
|
-
|
|
879
|
+
v("span", null, A(y(Fe)((r = n.menu.meta) == null ? void 0 : r.title)), 1)
|
|
875
880
|
];
|
|
876
881
|
}),
|
|
877
882
|
default: p(() => {
|
|
878
883
|
var r, i, f;
|
|
879
884
|
return [
|
|
880
|
-
|
|
885
|
+
v("div", is, [
|
|
881
886
|
(r = o.menu.meta) != null && r.icon ? (u(), I(lt((i = n.$props.menu.meta) == null ? void 0 : i.icon), {
|
|
882
887
|
key: 0,
|
|
883
888
|
class: "menu-icon"
|
|
@@ -886,7 +891,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
886
891
|
key: 1,
|
|
887
892
|
class: "svg-xml-icon",
|
|
888
893
|
innerHTML: o.menu.meta.svgXml
|
|
889
|
-
}, null, 8,
|
|
894
|
+
}, null, 8, cs)) : G("", !0)
|
|
890
895
|
])
|
|
891
896
|
];
|
|
892
897
|
}),
|
|
@@ -894,7 +899,7 @@ const Nn = { class: "header" }, Un = { class: "title" }, Tn = { class: "right" }
|
|
|
894
899
|
}, 8, ["index"]));
|
|
895
900
|
};
|
|
896
901
|
}
|
|
897
|
-
}),
|
|
902
|
+
}), us = /* @__PURE__ */ ye(ds, [["__scopeId", "data-v-ec46c25c"]]), Se = N({}), ps = {}, Dt = N([]);
|
|
898
903
|
var eo = !1;
|
|
899
904
|
function ot(e, o, n) {
|
|
900
905
|
return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, n), n) : (e[o] = n, n);
|
|
@@ -906,22 +911,22 @@ function ht(e, o) {
|
|
|
906
911
|
}
|
|
907
912
|
delete e[o];
|
|
908
913
|
}
|
|
909
|
-
function
|
|
914
|
+
function fs() {
|
|
910
915
|
return to().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
911
916
|
}
|
|
912
917
|
function to() {
|
|
913
918
|
return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
|
|
914
919
|
}
|
|
915
|
-
const
|
|
916
|
-
let
|
|
920
|
+
const ms = typeof Proxy == "function", hs = "devtools-plugin:setup", _s = "plugin:settings:set";
|
|
921
|
+
let Ge, vt;
|
|
917
922
|
function vs() {
|
|
918
923
|
var e;
|
|
919
|
-
return
|
|
924
|
+
return Ge !== void 0 || (typeof window != "undefined" && window.performance ? (Ge = !0, vt = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ge = !0, vt = globalThis.perf_hooks.performance) : Ge = !1), Ge;
|
|
920
925
|
}
|
|
921
|
-
function
|
|
922
|
-
return vs() ?
|
|
926
|
+
function gs() {
|
|
927
|
+
return vs() ? vt.now() : Date.now();
|
|
923
928
|
}
|
|
924
|
-
class
|
|
929
|
+
class bs {
|
|
925
930
|
constructor(o, n) {
|
|
926
931
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = o, this.hook = n;
|
|
927
932
|
const t = {};
|
|
@@ -949,9 +954,9 @@ class gs {
|
|
|
949
954
|
a = c;
|
|
950
955
|
},
|
|
951
956
|
now() {
|
|
952
|
-
return
|
|
957
|
+
return gs();
|
|
953
958
|
}
|
|
954
|
-
}, n && n.on(
|
|
959
|
+
}, n && n.on(_s, (c, r) => {
|
|
955
960
|
c === this.plugin.id && this.fallbacks.setSettings(r);
|
|
956
961
|
}), this.proxiedOn = new Proxy({}, {
|
|
957
962
|
get: (c, r) => this.target ? this.target.on[r] : (...i) => {
|
|
@@ -986,11 +991,11 @@ class gs {
|
|
|
986
991
|
}
|
|
987
992
|
}
|
|
988
993
|
function oo(e, o) {
|
|
989
|
-
const n = e, t = to(), s =
|
|
994
|
+
const n = e, t = to(), s = fs(), a = ms && n.enableEarlyProxy;
|
|
990
995
|
if (s && (t.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
991
|
-
s.emit(
|
|
996
|
+
s.emit(hs, e, o);
|
|
992
997
|
else {
|
|
993
|
-
const c = a ? new
|
|
998
|
+
const c = a ? new bs(n, s) : null;
|
|
994
999
|
(t.__VUE_DEVTOOLS_PLUGINS__ = t.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
995
1000
|
pluginDescriptor: n,
|
|
996
1001
|
setupFn: o,
|
|
@@ -1003,12 +1008,12 @@ function oo(e, o) {
|
|
|
1003
1008
|
* (c) 2024 Eduardo San Martin Morote
|
|
1004
1009
|
* @license MIT
|
|
1005
1010
|
*/
|
|
1006
|
-
let
|
|
1007
|
-
const
|
|
1011
|
+
let Ke;
|
|
1012
|
+
const Ze = (e) => Ke = e, no = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
1008
1013
|
/* istanbul ignore next */
|
|
1009
1014
|
Symbol()
|
|
1010
1015
|
);
|
|
1011
|
-
function
|
|
1016
|
+
function Le(e) {
|
|
1012
1017
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
1013
1018
|
}
|
|
1014
1019
|
var Pe;
|
|
@@ -1016,7 +1021,7 @@ var Pe;
|
|
|
1016
1021
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
1017
1022
|
})(Pe || (Pe = {}));
|
|
1018
1023
|
const Re = typeof window != "undefined", Rt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
1019
|
-
function
|
|
1024
|
+
function ys(e, { autoBom: o = !1 } = {}) {
|
|
1020
1025
|
return o && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
1021
1026
|
}
|
|
1022
1027
|
function xt(e, o, n) {
|
|
@@ -1046,16 +1051,16 @@ function nt(e) {
|
|
|
1046
1051
|
}
|
|
1047
1052
|
const st = typeof navigator == "object" ? navigator : { userAgent: "" }, ao = /Macintosh/.test(st.userAgent) && /AppleWebKit/.test(st.userAgent) && !/Safari/.test(st.userAgent), ro = Re ? (
|
|
1048
1053
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
1049
|
-
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !ao ?
|
|
1054
|
+
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !ao ? ws : (
|
|
1050
1055
|
// Use msSaveOrOpenBlob as a second approach
|
|
1051
|
-
"msSaveOrOpenBlob" in st ?
|
|
1056
|
+
"msSaveOrOpenBlob" in st ? Cs : (
|
|
1052
1057
|
// Fallback to using FileReader and a popup
|
|
1053
|
-
|
|
1058
|
+
ks
|
|
1054
1059
|
)
|
|
1055
1060
|
)
|
|
1056
1061
|
) : () => {
|
|
1057
1062
|
};
|
|
1058
|
-
function
|
|
1063
|
+
function ws(e, o = "download", n) {
|
|
1059
1064
|
const t = document.createElement("a");
|
|
1060
1065
|
t.download = o, t.rel = "noopener", typeof e == "string" ? (t.href = e, t.origin !== location.origin ? so(t.href) ? xt(e, o, n) : (t.target = "_blank", nt(t)) : nt(t)) : (t.href = URL.createObjectURL(e), setTimeout(function() {
|
|
1061
1066
|
URL.revokeObjectURL(t.href);
|
|
@@ -1063,7 +1068,7 @@ function ys(e, o = "download", n) {
|
|
|
1063
1068
|
nt(t);
|
|
1064
1069
|
}, 0));
|
|
1065
1070
|
}
|
|
1066
|
-
function
|
|
1071
|
+
function Cs(e, o = "download", n) {
|
|
1067
1072
|
if (typeof e == "string")
|
|
1068
1073
|
if (so(e))
|
|
1069
1074
|
xt(e, o, n);
|
|
@@ -1074,9 +1079,9 @@ function ws(e, o = "download", n) {
|
|
|
1074
1079
|
});
|
|
1075
1080
|
}
|
|
1076
1081
|
else
|
|
1077
|
-
navigator.msSaveOrOpenBlob(
|
|
1082
|
+
navigator.msSaveOrOpenBlob(ys(e, n), o);
|
|
1078
1083
|
}
|
|
1079
|
-
function
|
|
1084
|
+
function ks(e, o, n, t) {
|
|
1080
1085
|
if (t = t || open("", "_blank"), t && (t.document.title = t.document.body.innerText = "downloading..."), typeof e == "string")
|
|
1081
1086
|
return xt(e, o, n);
|
|
1082
1087
|
const s = e.type === "application/octet-stream", a = /constructor/i.test(String(Rt.HTMLElement)) || "safari" in Rt, c = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
@@ -1109,7 +1114,7 @@ function lo() {
|
|
|
1109
1114
|
function io(e) {
|
|
1110
1115
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (le('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
1111
1116
|
}
|
|
1112
|
-
function
|
|
1117
|
+
function Ss(e) {
|
|
1113
1118
|
return Ve(this, null, function* () {
|
|
1114
1119
|
if (!lo())
|
|
1115
1120
|
try {
|
|
@@ -1121,7 +1126,7 @@ function ks(e) {
|
|
|
1121
1126
|
}
|
|
1122
1127
|
});
|
|
1123
1128
|
}
|
|
1124
|
-
function
|
|
1129
|
+
function xs(e) {
|
|
1125
1130
|
return Ve(this, null, function* () {
|
|
1126
1131
|
if (!lo())
|
|
1127
1132
|
try {
|
|
@@ -1133,7 +1138,7 @@ function Ss(e) {
|
|
|
1133
1138
|
}
|
|
1134
1139
|
});
|
|
1135
1140
|
}
|
|
1136
|
-
function
|
|
1141
|
+
function $s(e) {
|
|
1137
1142
|
return Ve(this, null, function* () {
|
|
1138
1143
|
try {
|
|
1139
1144
|
ro(new Blob([JSON.stringify(e.state.value)], {
|
|
@@ -1145,7 +1150,7 @@ function xs(e) {
|
|
|
1145
1150
|
});
|
|
1146
1151
|
}
|
|
1147
1152
|
let Me;
|
|
1148
|
-
function
|
|
1153
|
+
function Es() {
|
|
1149
1154
|
Me || (Me = document.createElement("input"), Me.type = "file", Me.accept = ".json");
|
|
1150
1155
|
function e() {
|
|
1151
1156
|
return new Promise((o, n) => {
|
|
@@ -1160,10 +1165,10 @@ function $s() {
|
|
|
1160
1165
|
}
|
|
1161
1166
|
return e;
|
|
1162
1167
|
}
|
|
1163
|
-
function
|
|
1168
|
+
function Os(e) {
|
|
1164
1169
|
return Ve(this, null, function* () {
|
|
1165
1170
|
try {
|
|
1166
|
-
const n = yield
|
|
1171
|
+
const n = yield Es()();
|
|
1167
1172
|
if (!n)
|
|
1168
1173
|
return;
|
|
1169
1174
|
const { text: t, file: s } = n;
|
|
@@ -1187,7 +1192,7 @@ function ke(e) {
|
|
|
1187
1192
|
};
|
|
1188
1193
|
}
|
|
1189
1194
|
const uo = "🍍 Pinia (root)", at = "_root";
|
|
1190
|
-
function
|
|
1195
|
+
function Ps(e) {
|
|
1191
1196
|
return $t(e) ? {
|
|
1192
1197
|
id: at,
|
|
1193
1198
|
label: uo
|
|
@@ -1196,7 +1201,7 @@ function Os(e) {
|
|
|
1196
1201
|
label: e.$id
|
|
1197
1202
|
};
|
|
1198
1203
|
}
|
|
1199
|
-
function
|
|
1204
|
+
function Is(e) {
|
|
1200
1205
|
if ($t(e)) {
|
|
1201
1206
|
const n = Array.from(e._s.keys()), t = e._s;
|
|
1202
1207
|
return {
|
|
@@ -1232,7 +1237,7 @@ function Ps(e) {
|
|
|
1232
1237
|
value: e[n]
|
|
1233
1238
|
}))), o;
|
|
1234
1239
|
}
|
|
1235
|
-
function
|
|
1240
|
+
function Vs(e) {
|
|
1236
1241
|
return e ? Array.isArray(e) ? e.reduce((o, n) => (o.keys.push(n.key), o.operations.push(n.type), o.oldValue[n.key] = n.oldValue, o.newValue[n.key] = n.newValue, o), {
|
|
1237
1242
|
oldValue: {},
|
|
1238
1243
|
keys: [],
|
|
@@ -1245,7 +1250,7 @@ function Is(e) {
|
|
|
1245
1250
|
newValue: e.newValue
|
|
1246
1251
|
} : {};
|
|
1247
1252
|
}
|
|
1248
|
-
function
|
|
1253
|
+
function Ms(e) {
|
|
1249
1254
|
switch (e) {
|
|
1250
1255
|
case Pe.direct:
|
|
1251
1256
|
return "mutation";
|
|
@@ -1257,9 +1262,9 @@ function Vs(e) {
|
|
|
1257
1262
|
return "unknown";
|
|
1258
1263
|
}
|
|
1259
1264
|
}
|
|
1260
|
-
let
|
|
1261
|
-
const rt = [], Ae = "pinia:mutations", de = "pinia", { assign:
|
|
1262
|
-
function
|
|
1265
|
+
let ze = !0;
|
|
1266
|
+
const rt = [], Ae = "pinia:mutations", de = "pinia", { assign: Ns } = Object, dt = (e) => "🍍 " + e;
|
|
1267
|
+
function Us(e, o) {
|
|
1263
1268
|
oo({
|
|
1264
1269
|
id: "dev.esm.pinia",
|
|
1265
1270
|
label: "Pinia 🍍",
|
|
@@ -1282,28 +1287,28 @@ function Ns(e, o) {
|
|
|
1282
1287
|
{
|
|
1283
1288
|
icon: "content_copy",
|
|
1284
1289
|
action: () => {
|
|
1285
|
-
|
|
1290
|
+
Ss(o);
|
|
1286
1291
|
},
|
|
1287
1292
|
tooltip: "Serialize and copy the state"
|
|
1288
1293
|
},
|
|
1289
1294
|
{
|
|
1290
1295
|
icon: "content_paste",
|
|
1291
1296
|
action: () => Ve(this, null, function* () {
|
|
1292
|
-
yield
|
|
1297
|
+
yield xs(o), n.sendInspectorTree(de), n.sendInspectorState(de);
|
|
1293
1298
|
}),
|
|
1294
1299
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1295
1300
|
},
|
|
1296
1301
|
{
|
|
1297
1302
|
icon: "save",
|
|
1298
1303
|
action: () => {
|
|
1299
|
-
|
|
1304
|
+
$s(o);
|
|
1300
1305
|
},
|
|
1301
1306
|
tooltip: "Save the state as a JSON file"
|
|
1302
1307
|
},
|
|
1303
1308
|
{
|
|
1304
1309
|
icon: "folder_open",
|
|
1305
1310
|
action: () => Ve(this, null, function* () {
|
|
1306
|
-
yield
|
|
1311
|
+
yield Os(o), n.sendInspectorTree(de), n.sendInspectorState(de);
|
|
1307
1312
|
}),
|
|
1308
1313
|
tooltip: "Import the state from a JSON file"
|
|
1309
1314
|
}
|
|
@@ -1329,7 +1334,7 @@ function Ns(e, o) {
|
|
|
1329
1334
|
editable: !0,
|
|
1330
1335
|
value: r._isOptionsAPI ? {
|
|
1331
1336
|
_custom: {
|
|
1332
|
-
value:
|
|
1337
|
+
value: Qe(r.$state),
|
|
1333
1338
|
actions: [
|
|
1334
1339
|
{
|
|
1335
1340
|
icon: "restore",
|
|
@@ -1360,14 +1365,14 @@ function Ns(e, o) {
|
|
|
1360
1365
|
}), n.on.getInspectorTree((t) => {
|
|
1361
1366
|
if (t.app === e && t.inspectorId === de) {
|
|
1362
1367
|
let s = [o];
|
|
1363
|
-
s = s.concat(Array.from(o._s.values())), t.rootNodes = (t.filter ? s.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(t.filter.toLowerCase()) : uo.toLowerCase().includes(t.filter.toLowerCase())) : s).map(
|
|
1368
|
+
s = s.concat(Array.from(o._s.values())), t.rootNodes = (t.filter ? s.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(t.filter.toLowerCase()) : uo.toLowerCase().includes(t.filter.toLowerCase())) : s).map(Ps);
|
|
1364
1369
|
}
|
|
1365
1370
|
}), globalThis.$pinia = o, n.on.getInspectorState((t) => {
|
|
1366
1371
|
if (t.app === e && t.inspectorId === de) {
|
|
1367
1372
|
const s = t.nodeId === at ? o : o._s.get(t.nodeId);
|
|
1368
1373
|
if (!s)
|
|
1369
1374
|
return;
|
|
1370
|
-
s && (t.nodeId !== at && (globalThis.$store =
|
|
1375
|
+
s && (t.nodeId !== at && (globalThis.$store = Qe(s)), t.state = Is(s));
|
|
1371
1376
|
}
|
|
1372
1377
|
}), n.on.editInspectorState((t, s) => {
|
|
1373
1378
|
if (t.app === e && t.inspectorId === de) {
|
|
@@ -1375,7 +1380,7 @@ function Ns(e, o) {
|
|
|
1375
1380
|
if (!a)
|
|
1376
1381
|
return le(`store "${t.nodeId}" not found`, "error");
|
|
1377
1382
|
const { path: c } = t;
|
|
1378
|
-
$t(a) ? c.unshift("state") : (c.length !== 1 || !a._customProperties.has(c[0]) || c[0] in a.$state) && c.unshift("$state"),
|
|
1383
|
+
$t(a) ? c.unshift("state") : (c.length !== 1 || !a._customProperties.has(c[0]) || c[0] in a.$state) && c.unshift("$state"), ze = !1, t.set(a, c, t.state.value), ze = !0;
|
|
1379
1384
|
}
|
|
1380
1385
|
}), n.on.editComponentState((t) => {
|
|
1381
1386
|
if (t.type.startsWith("🍍")) {
|
|
@@ -1387,12 +1392,12 @@ function Ns(e, o) {
|
|
|
1387
1392
|
return le(`Invalid path for store "${s}":
|
|
1388
1393
|
${c}
|
|
1389
1394
|
Only state can be modified.`);
|
|
1390
|
-
c[0] = "$state",
|
|
1395
|
+
c[0] = "$state", ze = !1, t.set(a, c, t.state.value), ze = !0;
|
|
1391
1396
|
}
|
|
1392
1397
|
});
|
|
1393
1398
|
});
|
|
1394
1399
|
}
|
|
1395
|
-
function
|
|
1400
|
+
function Ts(e, o) {
|
|
1396
1401
|
rt.includes(dt(o.$id)) || rt.push(dt(o.$id)), oo({
|
|
1397
1402
|
id: "dev.esm.pinia",
|
|
1398
1403
|
label: "Pinia 🍍",
|
|
@@ -1430,7 +1435,7 @@ function Us(e, o) {
|
|
|
1430
1435
|
},
|
|
1431
1436
|
groupId: b
|
|
1432
1437
|
}
|
|
1433
|
-
}), c((
|
|
1438
|
+
}), c(($) => {
|
|
1434
1439
|
Ue = void 0, n.addTimelineEvent({
|
|
1435
1440
|
layerId: Ae,
|
|
1436
1441
|
event: {
|
|
@@ -1441,12 +1446,12 @@ function Us(e, o) {
|
|
|
1441
1446
|
store: ke(o.$id),
|
|
1442
1447
|
action: ke(i),
|
|
1443
1448
|
args: f,
|
|
1444
|
-
result:
|
|
1449
|
+
result: $
|
|
1445
1450
|
},
|
|
1446
1451
|
groupId: b
|
|
1447
1452
|
}
|
|
1448
1453
|
});
|
|
1449
|
-
}), r((
|
|
1454
|
+
}), r(($) => {
|
|
1450
1455
|
Ue = void 0, n.addTimelineEvent({
|
|
1451
1456
|
layerId: Ae,
|
|
1452
1457
|
event: {
|
|
@@ -1458,15 +1463,15 @@ function Us(e, o) {
|
|
|
1458
1463
|
store: ke(o.$id),
|
|
1459
1464
|
action: ke(i),
|
|
1460
1465
|
args: f,
|
|
1461
|
-
error:
|
|
1466
|
+
error: $
|
|
1462
1467
|
},
|
|
1463
1468
|
groupId: b
|
|
1464
1469
|
}
|
|
1465
1470
|
});
|
|
1466
1471
|
});
|
|
1467
1472
|
}, !0), o._customProperties.forEach((c) => {
|
|
1468
|
-
Ie(() =>
|
|
1469
|
-
n.notifyComponentUpdate(), n.sendInspectorState(de),
|
|
1473
|
+
Ie(() => y(o[c]), (r, i) => {
|
|
1474
|
+
n.notifyComponentUpdate(), n.sendInspectorState(de), ze && n.addTimelineEvent({
|
|
1470
1475
|
layerId: Ae,
|
|
1471
1476
|
event: {
|
|
1472
1477
|
time: t(),
|
|
@@ -1481,12 +1486,12 @@ function Us(e, o) {
|
|
|
1481
1486
|
});
|
|
1482
1487
|
}, { deep: !0 });
|
|
1483
1488
|
}), o.$subscribe(({ events: c, type: r }, i) => {
|
|
1484
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(de), !
|
|
1489
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(de), !ze)
|
|
1485
1490
|
return;
|
|
1486
1491
|
const f = {
|
|
1487
1492
|
time: t(),
|
|
1488
|
-
title:
|
|
1489
|
-
data:
|
|
1493
|
+
title: Ms(r),
|
|
1494
|
+
data: Ns({ store: ke(o.$id) }, Vs(c)),
|
|
1490
1495
|
groupId: Ue
|
|
1491
1496
|
};
|
|
1492
1497
|
r === Pe.patchFunction ? f.subtitle = "⤵️" : r === Pe.patchObject ? f.subtitle = "🧩" : c && !Array.isArray(c) && (f.subtitle = c.type), c && (f.data["rawEvent(s)"] = {
|
|
@@ -1524,7 +1529,7 @@ function Us(e, o) {
|
|
|
1524
1529
|
}
|
|
1525
1530
|
let po = 0, Ue;
|
|
1526
1531
|
function Ft(e, o, n) {
|
|
1527
|
-
const t = o.reduce((s, a) => (s[a] =
|
|
1532
|
+
const t = o.reduce((s, a) => (s[a] = Qe(e)[a], s), {});
|
|
1528
1533
|
for (const s in t)
|
|
1529
1534
|
e[s] = function() {
|
|
1530
1535
|
const a = po, c = n ? new Proxy(e, {
|
|
@@ -1540,28 +1545,28 @@ function Ft(e, o, n) {
|
|
|
1540
1545
|
return Ue = void 0, r;
|
|
1541
1546
|
};
|
|
1542
1547
|
}
|
|
1543
|
-
function
|
|
1548
|
+
function As({ app: e, store: o, options: n }) {
|
|
1544
1549
|
if (!o.$id.startsWith("__hot:")) {
|
|
1545
1550
|
if (o._isOptionsAPI = !!n.state, !o._p._testing) {
|
|
1546
1551
|
Ft(o, Object.keys(n.actions), o._isOptionsAPI);
|
|
1547
1552
|
const t = o._hotUpdate;
|
|
1548
|
-
|
|
1553
|
+
Qe(o)._hotUpdate = function(s) {
|
|
1549
1554
|
t.apply(this, arguments), Ft(o, Object.keys(s._hmrPayload.actions), !!o._isOptionsAPI);
|
|
1550
1555
|
};
|
|
1551
1556
|
}
|
|
1552
|
-
|
|
1557
|
+
Ts(
|
|
1553
1558
|
e,
|
|
1554
1559
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
1555
1560
|
o
|
|
1556
1561
|
);
|
|
1557
1562
|
}
|
|
1558
1563
|
}
|
|
1559
|
-
function
|
|
1564
|
+
function Ds() {
|
|
1560
1565
|
const e = Bt(!0), o = e.run(() => N({}));
|
|
1561
1566
|
let n = [], t = [];
|
|
1562
1567
|
const s = De({
|
|
1563
1568
|
install(a) {
|
|
1564
|
-
|
|
1569
|
+
Ze(s), s._a = a, a.provide(no, s), a.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Re && Us(a, s), t.forEach((c) => n.push(c)), t = [];
|
|
1565
1570
|
},
|
|
1566
1571
|
use(a) {
|
|
1567
1572
|
return !this._a && !eo ? t.push(a) : n.push(a), this;
|
|
@@ -1574,7 +1579,7 @@ function As() {
|
|
|
1574
1579
|
_s: /* @__PURE__ */ new Map(),
|
|
1575
1580
|
state: o
|
|
1576
1581
|
});
|
|
1577
|
-
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(
|
|
1582
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(As), s;
|
|
1578
1583
|
}
|
|
1579
1584
|
function fo(e, o) {
|
|
1580
1585
|
for (const n in o) {
|
|
@@ -1582,7 +1587,7 @@ function fo(e, o) {
|
|
|
1582
1587
|
if (!(n in e))
|
|
1583
1588
|
continue;
|
|
1584
1589
|
const s = e[n];
|
|
1585
|
-
|
|
1590
|
+
Le(s) && Le(t) && !Xe(t) && !Ct(t) ? e[n] = fo(s, t) : e[n] = t;
|
|
1586
1591
|
}
|
|
1587
1592
|
return e;
|
|
1588
1593
|
}
|
|
@@ -1596,32 +1601,32 @@ function Lt(e, o, n, t = mo) {
|
|
|
1596
1601
|
};
|
|
1597
1602
|
return !n && Mo() && No(s), s;
|
|
1598
1603
|
}
|
|
1599
|
-
function
|
|
1604
|
+
function je(e, ...o) {
|
|
1600
1605
|
e.slice().forEach((n) => {
|
|
1601
1606
|
n(...o);
|
|
1602
1607
|
});
|
|
1603
1608
|
}
|
|
1604
|
-
const
|
|
1609
|
+
const Rs = (e) => e(), Gt = Symbol(), _t = Symbol();
|
|
1605
1610
|
function gt(e, o) {
|
|
1606
1611
|
e instanceof Map && o instanceof Map ? o.forEach((n, t) => e.set(t, n)) : e instanceof Set && o instanceof Set && o.forEach(e.add, e);
|
|
1607
1612
|
for (const n in o) {
|
|
1608
1613
|
if (!o.hasOwnProperty(n))
|
|
1609
1614
|
continue;
|
|
1610
1615
|
const t = o[n], s = e[n];
|
|
1611
|
-
|
|
1616
|
+
Le(s) && Le(t) && e.hasOwnProperty(n) && !Xe(t) && !Ct(t) ? e[n] = gt(s, t) : e[n] = t;
|
|
1612
1617
|
}
|
|
1613
1618
|
return e;
|
|
1614
1619
|
}
|
|
1615
|
-
const
|
|
1620
|
+
const Fs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
1616
1621
|
/* istanbul ignore next */
|
|
1617
1622
|
Symbol()
|
|
1618
1623
|
);
|
|
1619
|
-
function
|
|
1620
|
-
return !
|
|
1624
|
+
function Ls(e) {
|
|
1625
|
+
return !Le(e) || !e.hasOwnProperty(Fs);
|
|
1621
1626
|
}
|
|
1622
1627
|
const { assign: ge } = Object;
|
|
1623
1628
|
function jt(e) {
|
|
1624
|
-
return !!(
|
|
1629
|
+
return !!(Xe(e) && e.effect);
|
|
1625
1630
|
}
|
|
1626
1631
|
function zt(e, o, n, t) {
|
|
1627
1632
|
const { state: s, actions: a, getters: c } = o, r = n.state.value[e];
|
|
@@ -1632,11 +1637,11 @@ function zt(e, o, n, t) {
|
|
|
1632
1637
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1633
1638
|
Nt(N(s ? s() : {}).value)
|
|
1634
1639
|
) : Nt(n.state.value[e]);
|
|
1635
|
-
return ge(b, a, Object.keys(c || {}).reduce((
|
|
1636
|
-
|
|
1640
|
+
return ge(b, a, Object.keys(c || {}).reduce(($, V) => (process.env.NODE_ENV !== "production" && V in b && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${V}" in store "${e}".`), $[V] = De(Te(() => {
|
|
1641
|
+
Ze(n);
|
|
1637
1642
|
const M = n._s.get(e);
|
|
1638
1643
|
return c[V].call(M, M);
|
|
1639
|
-
})),
|
|
1644
|
+
})), $), {}));
|
|
1640
1645
|
}
|
|
1641
1646
|
return i = bt(e, f, o, n, t, !0), i;
|
|
1642
1647
|
}
|
|
@@ -1649,7 +1654,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1649
1654
|
process.env.NODE_ENV !== "production" && !eo && (i.onTrigger = (d) => {
|
|
1650
1655
|
f ? M = d : f == !1 && !U._hotUpdating && (Array.isArray(M) ? M.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1651
1656
|
});
|
|
1652
|
-
let f, b,
|
|
1657
|
+
let f, b, $ = [], V = [], M;
|
|
1653
1658
|
const z = t.state.value[e];
|
|
1654
1659
|
!a && !z && (process.env.NODE_ENV === "production" || !s) && (t.state.value[e] = {});
|
|
1655
1660
|
const Y = N({});
|
|
@@ -1666,15 +1671,15 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1666
1671
|
storeId: e,
|
|
1667
1672
|
events: M
|
|
1668
1673
|
});
|
|
1669
|
-
const
|
|
1674
|
+
const _ = ce = Symbol();
|
|
1670
1675
|
it().then(() => {
|
|
1671
|
-
ce ===
|
|
1672
|
-
}), b = !0,
|
|
1676
|
+
ce === _ && (f = !0);
|
|
1677
|
+
}), b = !0, je($, l, t.state.value[e]);
|
|
1673
1678
|
}
|
|
1674
1679
|
const ee = a ? function() {
|
|
1675
|
-
const { state: l } = n,
|
|
1680
|
+
const { state: l } = n, _ = l ? l() : {};
|
|
1676
1681
|
this.$patch((k) => {
|
|
1677
|
-
ge(k,
|
|
1682
|
+
ge(k, _);
|
|
1678
1683
|
});
|
|
1679
1684
|
} : (
|
|
1680
1685
|
/* istanbul ignore next */
|
|
@@ -1683,13 +1688,13 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1683
1688
|
} : mo
|
|
1684
1689
|
);
|
|
1685
1690
|
function ne() {
|
|
1686
|
-
c.stop(),
|
|
1691
|
+
c.stop(), $ = [], V = [], t._s.delete(e);
|
|
1687
1692
|
}
|
|
1688
1693
|
const me = (d, l = "") => {
|
|
1689
1694
|
if (Gt in d)
|
|
1690
|
-
return d[
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1695
|
+
return d[_t] = l, d;
|
|
1696
|
+
const _ = function() {
|
|
1697
|
+
Ze(t);
|
|
1693
1698
|
const k = Array.from(arguments), P = [], F = [];
|
|
1694
1699
|
function D(j) {
|
|
1695
1700
|
P.push(j);
|
|
@@ -1697,9 +1702,9 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1697
1702
|
function O(j) {
|
|
1698
1703
|
F.push(j);
|
|
1699
1704
|
}
|
|
1700
|
-
|
|
1705
|
+
je(V, {
|
|
1701
1706
|
args: k,
|
|
1702
|
-
name:
|
|
1707
|
+
name: _[_t],
|
|
1703
1708
|
store: U,
|
|
1704
1709
|
after: D,
|
|
1705
1710
|
onError: O
|
|
@@ -1708,11 +1713,11 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1708
1713
|
try {
|
|
1709
1714
|
L = d.apply(this && this.$id === e ? this : U, k);
|
|
1710
1715
|
} catch (j) {
|
|
1711
|
-
throw
|
|
1716
|
+
throw je(F, j), j;
|
|
1712
1717
|
}
|
|
1713
|
-
return L instanceof Promise ? L.then((j) => (
|
|
1718
|
+
return L instanceof Promise ? L.then((j) => (je(P, j), j)).catch((j) => (je(F, j), Promise.reject(j))) : (je(P, L), L);
|
|
1714
1719
|
};
|
|
1715
|
-
return
|
|
1720
|
+
return _[Gt] = !0, _[_t] = l, _;
|
|
1716
1721
|
}, W = /* @__PURE__ */ De({
|
|
1717
1722
|
actions: {},
|
|
1718
1723
|
getters: {},
|
|
@@ -1726,14 +1731,14 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1726
1731
|
$patch: B,
|
|
1727
1732
|
$reset: ee,
|
|
1728
1733
|
$subscribe(d, l = {}) {
|
|
1729
|
-
const
|
|
1734
|
+
const _ = Lt($, d, l.detached, () => k()), k = c.run(() => Ie(() => t.state.value[e], (P) => {
|
|
1730
1735
|
(l.flush === "sync" ? b : f) && d({
|
|
1731
1736
|
storeId: e,
|
|
1732
1737
|
type: Pe.direct,
|
|
1733
1738
|
events: M
|
|
1734
1739
|
}, P);
|
|
1735
1740
|
}, ge({}, i, l)));
|
|
1736
|
-
return
|
|
1741
|
+
return _;
|
|
1737
1742
|
},
|
|
1738
1743
|
$dispose: ne
|
|
1739
1744
|
}, U = pe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Re ? ge(
|
|
@@ -1747,21 +1752,21 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1747
1752
|
// setupStore
|
|
1748
1753
|
) : we);
|
|
1749
1754
|
t._s.set(e, U);
|
|
1750
|
-
const T = (t._a && t._a.runWithContext ||
|
|
1755
|
+
const T = (t._a && t._a.runWithContext || Rs)(() => t._e.run(() => (c = Bt()).run(() => o({ action: me }))));
|
|
1751
1756
|
for (const d in T) {
|
|
1752
1757
|
const l = T[d];
|
|
1753
|
-
if (
|
|
1754
|
-
process.env.NODE_ENV !== "production" && s ? ot(Y.value, d, ft(T, d)) : a || (z &&
|
|
1758
|
+
if (Xe(l) && !jt(l) || Ct(l))
|
|
1759
|
+
process.env.NODE_ENV !== "production" && s ? ot(Y.value, d, ft(T, d)) : a || (z && Ls(l) && (Xe(l) ? l.value = z[d] : gt(l, z[d])), t.state.value[e][d] = l), process.env.NODE_ENV !== "production" && W.state.push(d);
|
|
1755
1760
|
else if (typeof l == "function") {
|
|
1756
|
-
const
|
|
1757
|
-
T[d] =
|
|
1761
|
+
const _ = process.env.NODE_ENV !== "production" && s ? l : me(l, d);
|
|
1762
|
+
T[d] = _, process.env.NODE_ENV !== "production" && (W.actions[d] = l), r.actions[d] = l;
|
|
1758
1763
|
} else process.env.NODE_ENV !== "production" && jt(l) && (W.getters[d] = a ? (
|
|
1759
1764
|
// @ts-expect-error
|
|
1760
1765
|
n.getters[d]
|
|
1761
1766
|
) : l, Re && (T._getters || // @ts-expect-error: same
|
|
1762
1767
|
(T._getters = De([]))).push(d));
|
|
1763
1768
|
}
|
|
1764
|
-
if (ge(U, T), ge(
|
|
1769
|
+
if (ge(U, T), ge(Qe(U), T), Object.defineProperty(U, "$state", {
|
|
1765
1770
|
get: () => process.env.NODE_ENV !== "production" && s ? Y.value : t.state.value[e],
|
|
1766
1771
|
set: (d) => {
|
|
1767
1772
|
if (process.env.NODE_ENV !== "production" && s)
|
|
@@ -1773,8 +1778,8 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1773
1778
|
}), process.env.NODE_ENV !== "production" && (U._hotUpdate = De((d) => {
|
|
1774
1779
|
U._hotUpdating = !0, d._hmrPayload.state.forEach((l) => {
|
|
1775
1780
|
if (l in U.$state) {
|
|
1776
|
-
const
|
|
1777
|
-
typeof
|
|
1781
|
+
const _ = d.$state[l], k = U.$state[l];
|
|
1782
|
+
typeof _ == "object" && Le(_) && Le(k) ? fo(_, k) : d.$state[l] = k;
|
|
1778
1783
|
}
|
|
1779
1784
|
ot(U, l, ft(d.$state, l));
|
|
1780
1785
|
}), Object.keys(U.$state).forEach((l) => {
|
|
@@ -1783,14 +1788,14 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1783
1788
|
f = !0;
|
|
1784
1789
|
});
|
|
1785
1790
|
for (const l in d._hmrPayload.actions) {
|
|
1786
|
-
const
|
|
1787
|
-
ot(U, l, me(
|
|
1791
|
+
const _ = d[l];
|
|
1792
|
+
ot(U, l, me(_, l));
|
|
1788
1793
|
}
|
|
1789
1794
|
for (const l in d._hmrPayload.getters) {
|
|
1790
|
-
const
|
|
1795
|
+
const _ = d._hmrPayload.getters[l], k = a ? (
|
|
1791
1796
|
// special handling of options api
|
|
1792
|
-
Te(() => (
|
|
1793
|
-
) :
|
|
1797
|
+
Te(() => (Ze(t), _.call(U, U)))
|
|
1798
|
+
) : _;
|
|
1794
1799
|
ot(U, l, k);
|
|
1795
1800
|
}
|
|
1796
1801
|
Object.keys(U._hmrPayload.getters).forEach((l) => {
|
|
@@ -1817,7 +1822,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1817
1822
|
pinia: t,
|
|
1818
1823
|
options: r
|
|
1819
1824
|
}));
|
|
1820
|
-
Object.keys(l || {}).forEach((
|
|
1825
|
+
Object.keys(l || {}).forEach((_) => U._customProperties.add(_)), ge(U, l);
|
|
1821
1826
|
} else
|
|
1822
1827
|
ge(U, c.run(() => d({
|
|
1823
1828
|
store: U,
|
|
@@ -1831,7 +1836,7 @@ Found in store "${U.$id}".`), z && a && n.hydrate && n.hydrate(U.$state, z), f =
|
|
|
1831
1836
|
}
|
|
1832
1837
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1833
1838
|
// @__NO_SIDE_EFFECTS__
|
|
1834
|
-
function
|
|
1839
|
+
function Gs(e, o, n) {
|
|
1835
1840
|
let t, s;
|
|
1836
1841
|
const a = typeof o == "function";
|
|
1837
1842
|
t = e, s = a ? n : o;
|
|
@@ -1839,21 +1844,21 @@ function Ls(e, o, n) {
|
|
|
1839
1844
|
const f = Po();
|
|
1840
1845
|
if (r = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1841
1846
|
// pinia instance with getActivePinia()
|
|
1842
|
-
(process.env.NODE_ENV === "test" &&
|
|
1847
|
+
(process.env.NODE_ENV === "test" && Ke && Ke._testing ? null : r) || (f ? Io(no, null) : null), r && Ze(r), process.env.NODE_ENV !== "production" && !Ke)
|
|
1843
1848
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1844
1849
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1845
1850
|
This will fail in production.`);
|
|
1846
|
-
r =
|
|
1851
|
+
r = Ke, r._s.has(t) || (a ? bt(t, o, s, r) : zt(t, s, r), process.env.NODE_ENV !== "production" && (c._pinia = r));
|
|
1847
1852
|
const b = r._s.get(t);
|
|
1848
1853
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1849
|
-
const
|
|
1850
|
-
i._hotUpdate(V), delete r.state.value[
|
|
1854
|
+
const $ = "__hot:" + t, V = a ? bt($, o, s, r, !0) : zt($, ge({}, s), r, !0);
|
|
1855
|
+
i._hotUpdate(V), delete r.state.value[$], r._s.delete($);
|
|
1851
1856
|
}
|
|
1852
1857
|
if (process.env.NODE_ENV !== "production" && Re) {
|
|
1853
|
-
const
|
|
1854
|
-
if (
|
|
1858
|
+
const $ = Vo();
|
|
1859
|
+
if ($ && $.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1855
1860
|
!i) {
|
|
1856
|
-
const V =
|
|
1861
|
+
const V = $.proxy, M = "_pStores" in V ? V._pStores : V._pStores = {};
|
|
1857
1862
|
M[t] = b;
|
|
1858
1863
|
}
|
|
1859
1864
|
}
|
|
@@ -1861,18 +1866,18 @@ This will fail in production.`);
|
|
|
1861
1866
|
}
|
|
1862
1867
|
return c.$id = t, c;
|
|
1863
1868
|
}
|
|
1864
|
-
const
|
|
1865
|
-
function
|
|
1869
|
+
const js = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, zs = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, qs = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
1870
|
+
function Hs(e, o) {
|
|
1866
1871
|
if (e === "__proto__" || e === "constructor" && o && typeof o == "object" && "prototype" in o) {
|
|
1867
|
-
|
|
1872
|
+
Bs(e);
|
|
1868
1873
|
return;
|
|
1869
1874
|
}
|
|
1870
1875
|
return o;
|
|
1871
1876
|
}
|
|
1872
|
-
function
|
|
1877
|
+
function Bs(e) {
|
|
1873
1878
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
1874
1879
|
}
|
|
1875
|
-
function
|
|
1880
|
+
function Ws(e, o = {}) {
|
|
1876
1881
|
if (typeof e != "string")
|
|
1877
1882
|
return e;
|
|
1878
1883
|
const n = e.trim();
|
|
@@ -1898,16 +1903,16 @@ function Bs(e, o = {}) {
|
|
|
1898
1903
|
if (t === "-infinity")
|
|
1899
1904
|
return Number.NEGATIVE_INFINITY;
|
|
1900
1905
|
}
|
|
1901
|
-
if (!
|
|
1906
|
+
if (!qs.test(e)) {
|
|
1902
1907
|
if (o.strict)
|
|
1903
1908
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
1904
1909
|
return e;
|
|
1905
1910
|
}
|
|
1906
1911
|
try {
|
|
1907
|
-
if (
|
|
1912
|
+
if (js.test(e) || zs.test(e)) {
|
|
1908
1913
|
if (o.strict)
|
|
1909
1914
|
throw new Error("[destr] Possible prototype pollution");
|
|
1910
|
-
return JSON.parse(e,
|
|
1915
|
+
return JSON.parse(e, Hs);
|
|
1911
1916
|
}
|
|
1912
1917
|
return JSON.parse(e);
|
|
1913
1918
|
} catch (t) {
|
|
@@ -1916,7 +1921,7 @@ function Bs(e, o = {}) {
|
|
|
1916
1921
|
return e;
|
|
1917
1922
|
}
|
|
1918
1923
|
}
|
|
1919
|
-
function
|
|
1924
|
+
function Ys(e, o) {
|
|
1920
1925
|
if (e == null)
|
|
1921
1926
|
return;
|
|
1922
1927
|
let n = e;
|
|
@@ -1967,10 +1972,10 @@ function ho(e, o) {
|
|
|
1967
1972
|
[o[0]]
|
|
1968
1973
|
);
|
|
1969
1974
|
}
|
|
1970
|
-
function vo(e, o) {
|
|
1971
|
-
return o.map((n) => n.split(".")).map((n) => [n, Ws(e, n)]).filter((n) => n[1] !== void 0).reduce((n, t) => Et(n, t[1], t[0]), {});
|
|
1972
|
-
}
|
|
1973
1975
|
function _o(e, o) {
|
|
1976
|
+
return o.map((n) => n.split(".")).map((n) => [n, Ys(e, n)]).filter((n) => n[1] !== void 0).reduce((n, t) => Et(n, t[1], t[0]), {});
|
|
1977
|
+
}
|
|
1978
|
+
function vo(e, o) {
|
|
1974
1979
|
return o.map((n) => n.split(".")).reduce((n, t) => ho(n, t), e);
|
|
1975
1980
|
}
|
|
1976
1981
|
function qt(e, {
|
|
@@ -1985,14 +1990,14 @@ function qt(e, {
|
|
|
1985
1990
|
}, f, b = !0) {
|
|
1986
1991
|
try {
|
|
1987
1992
|
b && (r == null || r(f));
|
|
1988
|
-
const
|
|
1989
|
-
if (
|
|
1990
|
-
const V = n.deserialize(
|
|
1993
|
+
const $ = o.getItem(t);
|
|
1994
|
+
if ($) {
|
|
1995
|
+
const V = n.deserialize($), M = a ? _o(V, a) : V, z = c ? vo(M, c) : M;
|
|
1991
1996
|
e.$patch(z);
|
|
1992
1997
|
}
|
|
1993
1998
|
b && (i == null || i(f));
|
|
1994
|
-
} catch (
|
|
1995
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1999
|
+
} catch ($) {
|
|
2000
|
+
s && console.error("[pinia-plugin-persistedstate]", $);
|
|
1996
2001
|
}
|
|
1997
2002
|
}
|
|
1998
2003
|
function Ht(e, {
|
|
@@ -2004,13 +2009,13 @@ function Ht(e, {
|
|
|
2004
2009
|
omit: c
|
|
2005
2010
|
}) {
|
|
2006
2011
|
try {
|
|
2007
|
-
const r = a ?
|
|
2012
|
+
const r = a ? _o(e, a) : e, i = c ? vo(r, c) : r, f = n.serialize(i);
|
|
2008
2013
|
o.setItem(t, f);
|
|
2009
2014
|
} catch (r) {
|
|
2010
2015
|
s && console.error("[pinia-plugin-persistedstate]", r);
|
|
2011
2016
|
}
|
|
2012
2017
|
}
|
|
2013
|
-
function
|
|
2018
|
+
function Js(e, o, n) {
|
|
2014
2019
|
const { pinia: t, store: s, options: { persist: a = n } } = e;
|
|
2015
2020
|
if (!a)
|
|
2016
2021
|
return;
|
|
@@ -2035,19 +2040,19 @@ function Ys(e, o, n) {
|
|
|
2035
2040
|
);
|
|
2036
2041
|
});
|
|
2037
2042
|
}
|
|
2038
|
-
function
|
|
2043
|
+
function Ks(e = {}) {
|
|
2039
2044
|
return function(o) {
|
|
2040
2045
|
var n;
|
|
2041
|
-
|
|
2046
|
+
Js(
|
|
2042
2047
|
o,
|
|
2043
2048
|
(t) => {
|
|
2044
2049
|
var s, a, c, r, i, f, b;
|
|
2045
2050
|
return {
|
|
2046
|
-
key: (e.key ? e.key : (
|
|
2051
|
+
key: (e.key ? e.key : ($) => $)((s = t.key) != null ? s : o.store.$id),
|
|
2047
2052
|
debug: (c = (a = t.debug) != null ? a : e.debug) != null ? c : !1,
|
|
2048
2053
|
serializer: (i = (r = t.serializer) != null ? r : e.serializer) != null ? i : {
|
|
2049
|
-
serialize: (
|
|
2050
|
-
deserialize: (
|
|
2054
|
+
serialize: ($) => JSON.stringify($),
|
|
2055
|
+
deserialize: ($) => Ws($)
|
|
2051
2056
|
},
|
|
2052
2057
|
storage: (b = (f = t.storage) != null ? f : e.storage) != null ? b : window.localStorage,
|
|
2053
2058
|
beforeHydrate: t.beforeHydrate,
|
|
@@ -2060,10 +2065,10 @@ function Js(e = {}) {
|
|
|
2060
2065
|
);
|
|
2061
2066
|
};
|
|
2062
2067
|
}
|
|
2063
|
-
var
|
|
2064
|
-
const Ot =
|
|
2065
|
-
Ot.use(
|
|
2066
|
-
const go = /* @__PURE__ */
|
|
2068
|
+
var Qs = Ks();
|
|
2069
|
+
const Ot = Ds();
|
|
2070
|
+
Ot.use(Qs);
|
|
2071
|
+
const go = /* @__PURE__ */ Gs("console", {
|
|
2067
2072
|
state: () => ({
|
|
2068
2073
|
menu: {
|
|
2069
2074
|
collapsed: !0
|
|
@@ -2074,10 +2079,10 @@ const go = /* @__PURE__ */ Ls("console", {
|
|
|
2074
2079
|
}
|
|
2075
2080
|
}),
|
|
2076
2081
|
persist: !0
|
|
2077
|
-
}),
|
|
2082
|
+
}), Xs = {
|
|
2078
2083
|
key: 0,
|
|
2079
2084
|
class: "menu-wrapper"
|
|
2080
|
-
},
|
|
2085
|
+
}, Zs = {
|
|
2081
2086
|
class: "collapse-icon",
|
|
2082
2087
|
viewBox: "0 0 24 24",
|
|
2083
2088
|
fill: "none",
|
|
@@ -2085,25 +2090,25 @@ const go = /* @__PURE__ */ Ls("console", {
|
|
|
2085
2090
|
"stroke-width": "2",
|
|
2086
2091
|
"stroke-linecap": "round",
|
|
2087
2092
|
"stroke-linejoin": "round"
|
|
2088
|
-
},
|
|
2093
|
+
}, ea = {
|
|
2089
2094
|
key: 0,
|
|
2090
2095
|
points: "9 18 15 12 9 6"
|
|
2091
|
-
},
|
|
2096
|
+
}, ta = {
|
|
2092
2097
|
key: 1,
|
|
2093
2098
|
points: "15 18 9 12 15 6"
|
|
2094
|
-
},
|
|
2099
|
+
}, oa = /* @__PURE__ */ $e({
|
|
2095
2100
|
__name: "SideMenu",
|
|
2096
2101
|
props: {
|
|
2097
2102
|
menuCollapsed: { type: Boolean }
|
|
2098
2103
|
},
|
|
2099
2104
|
emits: ["update:menuCollapsed"],
|
|
2100
2105
|
setup(e, { emit: o }) {
|
|
2101
|
-
const n = go(Ot), t = e, s = o, a =
|
|
2102
|
-
var
|
|
2106
|
+
const n = go(Ot), t = e, s = o, a = et(), c = N(window.innerWidth), r = Te(() => {
|
|
2107
|
+
var $;
|
|
2103
2108
|
const b = a.meta.activeMenu;
|
|
2104
2109
|
if (b === "{model}") {
|
|
2105
2110
|
let V = a.params.app ? `${a.params.app}/${a.params.model}` : a.params.model;
|
|
2106
|
-
return "/" + ((
|
|
2111
|
+
return "/" + (($ = ps[a.params.model]) != null ? $ : V);
|
|
2107
2112
|
} else
|
|
2108
2113
|
return b;
|
|
2109
2114
|
}), i = () => {
|
|
@@ -2118,9 +2123,9 @@ const go = /* @__PURE__ */ Ls("console", {
|
|
|
2118
2123
|
const b = t.menuCollapsed;
|
|
2119
2124
|
s("update:menuCollapsed", !b), n.menu.collapsed = !b;
|
|
2120
2125
|
}
|
|
2121
|
-
return (b,
|
|
2122
|
-
const V =
|
|
2123
|
-
return
|
|
2126
|
+
return (b, $) => {
|
|
2127
|
+
const V = x("el-menu");
|
|
2128
|
+
return y(Dt).length > 0 ? (u(), E("div", Xs, [
|
|
2124
2129
|
h(V, {
|
|
2125
2130
|
class: "menu",
|
|
2126
2131
|
"default-active": r.value,
|
|
@@ -2128,25 +2133,25 @@ const go = /* @__PURE__ */ Ls("console", {
|
|
|
2128
2133
|
router: ""
|
|
2129
2134
|
}, {
|
|
2130
2135
|
default: p(() => [
|
|
2131
|
-
(u(!0), E(oe, null, fe(
|
|
2136
|
+
(u(!0), E(oe, null, fe(y(Dt), (M) => (u(), I(us, {
|
|
2132
2137
|
key: M.path,
|
|
2133
2138
|
menu: M
|
|
2134
2139
|
}, null, 8, ["menu"]))), 128))
|
|
2135
2140
|
]),
|
|
2136
2141
|
_: 1
|
|
2137
2142
|
}, 8, ["default-active", "collapse"]),
|
|
2138
|
-
|
|
2143
|
+
v("div", {
|
|
2139
2144
|
class: "collapse-button",
|
|
2140
2145
|
onClick: f
|
|
2141
2146
|
}, [
|
|
2142
|
-
(u(), E("svg",
|
|
2143
|
-
b.menuCollapsed ? (u(), E("polyline",
|
|
2147
|
+
(u(), E("svg", Zs, [
|
|
2148
|
+
b.menuCollapsed ? (u(), E("polyline", ea)) : (u(), E("polyline", ta))
|
|
2144
2149
|
]))
|
|
2145
2150
|
])
|
|
2146
2151
|
])) : G("", !0);
|
|
2147
2152
|
};
|
|
2148
2153
|
}
|
|
2149
|
-
}), bo = /* @__PURE__ */ ye(
|
|
2154
|
+
}), bo = /* @__PURE__ */ ye(oa, [["__scopeId", "data-v-98acf7ee"]]), na = { class: "container" }, sa = { class: "main-wrapper" }, aa = /* @__PURE__ */ $e({
|
|
2150
2155
|
__name: "ConsoleApp",
|
|
2151
2156
|
props: {
|
|
2152
2157
|
title: {},
|
|
@@ -2154,25 +2159,25 @@ const go = /* @__PURE__ */ Ls("console", {
|
|
|
2154
2159
|
helpDocUrl: {}
|
|
2155
2160
|
},
|
|
2156
2161
|
setup(e) {
|
|
2157
|
-
const o = go(Ot), n =
|
|
2162
|
+
const o = go(Ot), n = et(), t = N(o.menu.collapsed), s = e;
|
|
2158
2163
|
return (a, c) => {
|
|
2159
|
-
const r =
|
|
2164
|
+
const r = x("router-view"), i = x("el-scrollbar");
|
|
2160
2165
|
return u(), E(oe, null, [
|
|
2161
|
-
|
|
2166
|
+
y(n).query.embedded !== "true" ? (u(), I(Zt, {
|
|
2162
2167
|
key: 0,
|
|
2163
2168
|
title: s.title,
|
|
2164
2169
|
helpDocUrl: s.helpDocUrl,
|
|
2165
2170
|
headerProjectConfig: s.headerProjectConfig
|
|
2166
2171
|
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : G("", !0),
|
|
2167
|
-
|
|
2168
|
-
|
|
2172
|
+
v("div", na, [
|
|
2173
|
+
y(n).query.embedded !== "true" ? (u(), I(bo, {
|
|
2169
2174
|
key: 0,
|
|
2170
2175
|
menuCollapsed: t.value,
|
|
2171
2176
|
"onUpdate:menuCollapsed": c[0] || (c[0] = (f) => t.value = f)
|
|
2172
2177
|
}, null, 8, ["menuCollapsed"])) : G("", !0),
|
|
2173
2178
|
h(i, { class: "main-scrollbar" }, {
|
|
2174
2179
|
default: p(() => [
|
|
2175
|
-
|
|
2180
|
+
v("main", sa, [
|
|
2176
2181
|
h(r)
|
|
2177
2182
|
])
|
|
2178
2183
|
]),
|
|
@@ -2182,23 +2187,23 @@ const go = /* @__PURE__ */ Ls("console", {
|
|
|
2182
2187
|
], 64);
|
|
2183
2188
|
};
|
|
2184
2189
|
}
|
|
2185
|
-
}),
|
|
2190
|
+
}), ra = {
|
|
2186
2191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2187
2192
|
width: "800",
|
|
2188
2193
|
height: "800"
|
|
2189
2194
|
};
|
|
2190
|
-
function
|
|
2191
|
-
return u(), E("svg",
|
|
2195
|
+
function la(e, o) {
|
|
2196
|
+
return u(), E("svg", ra, o[0] || (o[0] = [
|
|
2192
2197
|
To('<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)
|
|
2193
2198
|
]));
|
|
2194
2199
|
}
|
|
2195
|
-
const
|
|
2196
|
-
function
|
|
2197
|
-
const n =
|
|
2198
|
-
return u(), E("div",
|
|
2199
|
-
o[4] || (o[4] =
|
|
2200
|
-
|
|
2201
|
-
o[3] || (o[3] =
|
|
2200
|
+
const ia = { render: la }, ca = {}, da = { class: "wrapper" }, ua = { class: "content" };
|
|
2201
|
+
function pa(e, o) {
|
|
2202
|
+
const n = x("el-button");
|
|
2203
|
+
return u(), E("div", da, [
|
|
2204
|
+
o[4] || (o[4] = v("img", { src: ia }, null, -1)),
|
|
2205
|
+
v("div", ua, [
|
|
2206
|
+
o[3] || (o[3] = v("h1", null, "You have no permission to access the page.", -1)),
|
|
2202
2207
|
h(n, { type: "primary" }, {
|
|
2203
2208
|
default: p(() => o[1] || (o[1] = [
|
|
2204
2209
|
H("Apply")
|
|
@@ -2216,24 +2221,19 @@ function ua(e, o) {
|
|
|
2216
2221
|
])
|
|
2217
2222
|
]);
|
|
2218
2223
|
}
|
|
2219
|
-
const
|
|
2220
|
-
function
|
|
2221
|
-
const n =
|
|
2224
|
+
const fa = /* @__PURE__ */ ye(ca, [["render", pa], ["__scopeId", "data-v-0155b361"]]), ma = {};
|
|
2225
|
+
function ha(e, o) {
|
|
2226
|
+
const n = x("router-view");
|
|
2222
2227
|
return u(), I(n);
|
|
2223
2228
|
}
|
|
2224
|
-
const
|
|
2225
|
-
function et(e) {
|
|
2226
|
-
const o = "i18n(", n = ")";
|
|
2227
|
-
return e && e.startsWith(o) && e.endsWith(n) ? va(e.slice(o.length, -n.length)) : e != null ? e : "";
|
|
2228
|
-
}
|
|
2229
|
-
const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inner-wrapper" }, ya = { class: "card-title" }, wa = { class: "icon" }, Ca = /* @__PURE__ */ $e({
|
|
2229
|
+
const _a = /* @__PURE__ */ ye(ma, [["render", ha]]), va = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inner-wrapper" }, ya = { class: "card-title" }, wa = { class: "icon" }, Ca = /* @__PURE__ */ $e({
|
|
2230
2230
|
__name: "TabCard",
|
|
2231
2231
|
props: {
|
|
2232
2232
|
cards: {},
|
|
2233
2233
|
tableRef: {}
|
|
2234
2234
|
},
|
|
2235
2235
|
setup(e) {
|
|
2236
|
-
const o =
|
|
2236
|
+
const o = et(), n = pt(), t = e, s = N(t.cards[0].key);
|
|
2237
2237
|
function a(c) {
|
|
2238
2238
|
c.disabled || (s.value = c.key, t.tableRef.updateConfigAndRefresh(c.model), n.push({
|
|
2239
2239
|
path: o.path,
|
|
@@ -2267,29 +2267,29 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2267
2267
|
{
|
|
2268
2268
|
deep: !0
|
|
2269
2269
|
}
|
|
2270
|
-
), (c, r) => (u(), E("div",
|
|
2270
|
+
), (c, r) => (u(), E("div", va, [
|
|
2271
2271
|
(u(!0), E(oe, null, fe(t.cards, (i) => (u(), E("div", {
|
|
2272
2272
|
class: wt(["card", { "card-selected": s.value === i.key }]),
|
|
2273
2273
|
onClick: (f) => a(i)
|
|
2274
2274
|
}, [
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2275
|
+
v("div", ba, [
|
|
2276
|
+
v("div", ya, [
|
|
2277
|
+
v("div", wa, [
|
|
2278
2278
|
i.icon ? (u(), I(lt(i.icon), {
|
|
2279
2279
|
key: 0,
|
|
2280
2280
|
class: "svg-icon"
|
|
2281
2281
|
})) : G("", !0)
|
|
2282
2282
|
]),
|
|
2283
|
-
|
|
2284
|
-
style:
|
|
2285
|
-
}, A(
|
|
2283
|
+
v("span", {
|
|
2284
|
+
style: He({ color: i.disabled ? "#aaa" : "black" })
|
|
2285
|
+
}, A(y(Fe)(i.label)), 5)
|
|
2286
2286
|
]),
|
|
2287
|
-
|
|
2287
|
+
v("span", null, A(i.count), 1)
|
|
2288
2288
|
])
|
|
2289
2289
|
], 10, ga))), 256))
|
|
2290
2290
|
]));
|
|
2291
2291
|
}
|
|
2292
|
-
}), yo = /* @__PURE__ */ ye(Ca, [["__scopeId", "data-v-
|
|
2292
|
+
}), yo = /* @__PURE__ */ ye(Ca, [["__scopeId", "data-v-9ffe5727"]]), Be = (e) => {
|
|
2293
2293
|
const o = Object.keys(e);
|
|
2294
2294
|
let n = {};
|
|
2295
2295
|
o.forEach((t) => {
|
|
@@ -2317,13 +2317,13 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2317
2317
|
},
|
|
2318
2318
|
emits: ["update:id"],
|
|
2319
2319
|
setup(e, { expose: o, emit: n }) {
|
|
2320
|
-
const t = e, s = pe({}), a = N(!1), c = N(), r = pe({}), i = N(!1), f = N(""), b = N(null),
|
|
2321
|
-
(
|
|
2322
|
-
var l,
|
|
2323
|
-
let T =
|
|
2324
|
-
if (t.mode !== "view" && ((
|
|
2320
|
+
const t = e, s = pe({}), a = N(!1), c = N(), r = pe({}), i = N(!1), f = N(""), b = N(null), $ = (w) => t.mode === "view" && (W(w, void 0) || W(w, "input") || W(w, "select") || W(w, "password") || W(w, "input-number") || W(w, "date") || W(w, "time") || W(w, "datetime")), V = Te(() => t.model.fields ? t.model.fields.filter(
|
|
2321
|
+
(w) => {
|
|
2322
|
+
var l, _, k, P;
|
|
2323
|
+
let T = w.visible !== !1 && ((l = w.formItem) == null ? void 0 : l.visible) !== !1;
|
|
2324
|
+
if (t.mode !== "view" && ((_ = w.formItem) == null ? void 0 : _.editable) === !1 || t.mode === "view" && ((k = w.formItem) == null ? void 0 : k.type) === "password")
|
|
2325
2325
|
return !1;
|
|
2326
|
-
let d = (P =
|
|
2326
|
+
let d = (P = w.formItem) == null ? void 0 : P.showCondition;
|
|
2327
2327
|
if (d && d.field && d.value !== void 0) {
|
|
2328
2328
|
if (d.operator === void 0 || d.operator === "==")
|
|
2329
2329
|
return s[d.field] === d.value;
|
|
@@ -2343,25 +2343,25 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2343
2343
|
immediate: !0
|
|
2344
2344
|
});
|
|
2345
2345
|
function M() {
|
|
2346
|
-
const
|
|
2346
|
+
const w = t.model.fields;
|
|
2347
2347
|
let T = {};
|
|
2348
|
-
|
|
2349
|
-
var l,
|
|
2348
|
+
w == null || w.forEach((d) => {
|
|
2349
|
+
var l, _, k, P, F, D, O, L, j, g, S, m, q;
|
|
2350
2350
|
if (s[d.prop] = null, d.visible !== !1 && ((l = d.formItem) == null ? void 0 : l.visible) !== !1) {
|
|
2351
|
-
if (((
|
|
2351
|
+
if (((_ = d.formItem) == null ? void 0 : _.defaultValue) !== void 0 ? s[d.prop] = (k = d.formItem) == null ? void 0 : k.defaultValue : s[d.prop] = void 0, t.mode !== "view") {
|
|
2352
2352
|
let te = (P = d.formItem) == null ? void 0 : P.validationRule;
|
|
2353
|
-
te !== void 0 && (T[d.prop] = te),
|
|
2353
|
+
te !== void 0 && (T[d.prop] = te), Be(r), Object.assign(r, T);
|
|
2354
2354
|
}
|
|
2355
2355
|
const C = d.formItem, Z = C == null ? void 0 : C.type, R = (F = C == null ? void 0 : C.select) == null ? void 0 : F.useDatableDict, se = (D = C == null ? void 0 : C.select) == null ? void 0 : D.dictId, Q = (O = C == null ? void 0 : C.select) == null ? void 0 : O.api, J = (L = C == null ? void 0 : C.select) == null ? void 0 : L.valueMappingField, ae = (j = C == null ? void 0 : C.select) == null ? void 0 : j.labelMappingField;
|
|
2356
2356
|
if (Z === "select") {
|
|
2357
2357
|
if (R) {
|
|
2358
2358
|
let re = `${Te(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${se}`;
|
|
2359
|
-
const he = (g = C == null ? void 0 : C.select) == null ? void 0 : g.queryParamName, ue = (
|
|
2360
|
-
he && (re = `${re}?${he}=${t.id}`), ue || xe(re, "GET", {}).then(({ data:
|
|
2359
|
+
const he = (g = C == null ? void 0 : C.select) == null ? void 0 : g.queryParamName, ue = (S = C == null ? void 0 : C.select) == null ? void 0 : S.queryParamValueField;
|
|
2360
|
+
he && (re = `${re}?${he}=${t.id}`), ue || xe(re, "GET", {}).then(({ data: _e }) => {
|
|
2361
2361
|
var Ce;
|
|
2362
2362
|
if ((Ce = d.formItem) != null && Ce.select) {
|
|
2363
|
-
let
|
|
2364
|
-
Array.isArray(
|
|
2363
|
+
let ve = [];
|
|
2364
|
+
Array.isArray(_e.data) ? ve = _e.data : _e.data.list && Array.isArray(_e.data.list) && (ve = _e.data.list), d.formItem.select.options = ve.map((Ne) => ({
|
|
2365
2365
|
value: Ne.dbOrdinal,
|
|
2366
2366
|
label: Ne.value
|
|
2367
2367
|
}));
|
|
@@ -2371,12 +2371,12 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2371
2371
|
let te = Q;
|
|
2372
2372
|
const re = (m = C == null ? void 0 : C.select) == null ? void 0 : m.queryParamName, he = (q = C == null ? void 0 : C.select) == null ? void 0 : q.queryParamValueField;
|
|
2373
2373
|
re && (te = `${te}?${re}=${t.id}`), he || xe(te, "GET", {}).then(({ data: ue }) => {
|
|
2374
|
-
var
|
|
2375
|
-
if ((
|
|
2374
|
+
var _e;
|
|
2375
|
+
if ((_e = d.formItem) != null && _e.select) {
|
|
2376
2376
|
let Ce = [];
|
|
2377
|
-
Array.isArray(ue.data) ? Ce = ue.data : ue.data.list && Array.isArray(ue.data.list) && (Ce = ue.data.list), d.formItem.select.options = Ce.map((
|
|
2378
|
-
value: J ?
|
|
2379
|
-
label: ae ?
|
|
2377
|
+
Array.isArray(ue.data) ? Ce = ue.data : ue.data.list && Array.isArray(ue.data.list) && (Ce = ue.data.list), d.formItem.select.options = Ce.map((ve) => ({
|
|
2378
|
+
value: J ? ve[J] : ve.value,
|
|
2379
|
+
label: ae ? ve[ae] : ve.label
|
|
2380
2380
|
}));
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
@@ -2386,58 +2386,58 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2386
2386
|
});
|
|
2387
2387
|
}
|
|
2388
2388
|
function z() {
|
|
2389
|
-
ce(), M(), (t.mode === "update" || t.mode === "view") && t.id !== void 0 && t.id !== "" && t.model.api !== "" && (a.value = !0, xe(`${t.model.api}/${t.id}`, "GET", {}).then(({ data:
|
|
2390
|
-
|
|
2389
|
+
ce(), M(), (t.mode === "update" || t.mode === "view") && t.id !== void 0 && t.id !== "" && t.model.api !== "" && (a.value = !0, xe(`${t.model.api}/${t.id}`, "GET", {}).then(({ data: w }) => {
|
|
2390
|
+
Be(s), Object.assign(s, w.data), t.model.fields.forEach((T) => {
|
|
2391
2391
|
T.formItem && T.formItem.type === "select" && s[T.prop] !== void 0 && we(T);
|
|
2392
2392
|
}), a.value = !1;
|
|
2393
2393
|
}));
|
|
2394
2394
|
}
|
|
2395
2395
|
function Y() {
|
|
2396
|
-
return new Promise((
|
|
2397
|
-
var l,
|
|
2398
|
-
((
|
|
2396
|
+
return new Promise((w, T) => {
|
|
2397
|
+
var l, _, k, P;
|
|
2398
|
+
((_ = (l = t.model.formConfig) == null ? void 0 : l.functions) == null ? void 0 : _.beforeSubmit) !== void 0 && Object.assign(s, (P = (k = t.model.formConfig) == null ? void 0 : k.functions) == null ? void 0 : P.beforeSubmit(s));
|
|
2399
2399
|
let d = t.mode === "create" ? "POST" : "PUT";
|
|
2400
2400
|
t.model.api && xe(t.model.api, d, s).then(({ data: F }) => {
|
|
2401
2401
|
var D, O, L, j;
|
|
2402
|
-
F.code === 0 && (t.closeDialogFunc && t.closeDialogFunc(), ((O = (D = t.model.formConfig) == null ? void 0 : D.functions) == null ? void 0 : O.afterSubmit) !== void 0 && ((j = (L = t.model.formConfig) == null ? void 0 : L.functions) == null || j.afterSubmit(F.data)), t.afterSubmitFunc && t.afterSubmitFunc(),
|
|
2402
|
+
F.code === 0 && (t.closeDialogFunc && t.closeDialogFunc(), ((O = (D = t.model.formConfig) == null ? void 0 : D.functions) == null ? void 0 : O.afterSubmit) !== void 0 && ((j = (L = t.model.formConfig) == null ? void 0 : L.functions) == null || j.afterSubmit(F.data)), t.afterSubmitFunc && t.afterSubmitFunc(), w());
|
|
2403
2403
|
});
|
|
2404
2404
|
});
|
|
2405
2405
|
}
|
|
2406
2406
|
function ce() {
|
|
2407
|
-
var
|
|
2408
|
-
(
|
|
2407
|
+
var w;
|
|
2408
|
+
(w = c.value) == null || w.resetFields();
|
|
2409
2409
|
}
|
|
2410
|
-
function B(
|
|
2411
|
-
return
|
|
2410
|
+
function B(w) {
|
|
2411
|
+
return w != null && w.prop ? w.label ? Fe(w.label) : w.prop.slice(0, 1).toUpperCase() + w.prop.slice(1).toLowerCase() : "";
|
|
2412
2412
|
}
|
|
2413
|
-
function ee(
|
|
2414
|
-
var T, d, l,
|
|
2415
|
-
if (
|
|
2416
|
-
if (W(
|
|
2417
|
-
const F = (d = (T =
|
|
2413
|
+
function ee(w) {
|
|
2414
|
+
var T, d, l, _, k, P;
|
|
2415
|
+
if (w) {
|
|
2416
|
+
if (W(w, "select")) {
|
|
2417
|
+
const F = (d = (T = w.tableColumn) == null ? void 0 : T.functions) == null ? void 0 : d.transformValue;
|
|
2418
2418
|
if (F)
|
|
2419
|
-
return F(s[
|
|
2420
|
-
const D = (
|
|
2419
|
+
return F(s[w.prop]);
|
|
2420
|
+
const D = (_ = (l = w.formItem) == null ? void 0 : l.select) == null ? void 0 : _.viewModeLabelField;
|
|
2421
2421
|
if (D)
|
|
2422
2422
|
return s[D];
|
|
2423
|
-
const O = (P = (k =
|
|
2423
|
+
const O = (P = (k = w.formItem) == null ? void 0 : k.select) == null ? void 0 : P.options;
|
|
2424
2424
|
if (O) {
|
|
2425
2425
|
for (let L of O)
|
|
2426
|
-
if (L.value === s[
|
|
2426
|
+
if (L.value === s[w.prop])
|
|
2427
2427
|
return L.label;
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
return s[
|
|
2430
|
+
return s[w.prop];
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
|
-
function ne(
|
|
2433
|
+
function ne(w) {
|
|
2434
2434
|
var T;
|
|
2435
|
-
return ((T =
|
|
2435
|
+
return ((T = w.formItem) == null ? void 0 : T.updatable) === !1 && t.mode === "update";
|
|
2436
2436
|
}
|
|
2437
|
-
function me(
|
|
2438
|
-
var l,
|
|
2439
|
-
const d = (
|
|
2440
|
-
switch (
|
|
2437
|
+
function me(w, T) {
|
|
2438
|
+
var l, _;
|
|
2439
|
+
const d = (_ = (l = T.formItem) == null ? void 0 : l.type) != null ? _ : "input";
|
|
2440
|
+
switch (w) {
|
|
2441
2441
|
case "input":
|
|
2442
2442
|
return t.mode === "view" ? !1 : d === "input" || d === "password";
|
|
2443
2443
|
case "select":
|
|
@@ -2450,21 +2450,21 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2450
2450
|
case "svg":
|
|
2451
2451
|
return !0;
|
|
2452
2452
|
default:
|
|
2453
|
-
return console.log("Error: unrecognized form component type: ",
|
|
2453
|
+
return console.log("Error: unrecognized form component type: ", w), !0;
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
function W(
|
|
2456
|
+
function W(w, T) {
|
|
2457
2457
|
var d;
|
|
2458
|
-
return ((d =
|
|
2458
|
+
return ((d = w.formItem) == null ? void 0 : d.type) === T;
|
|
2459
2459
|
}
|
|
2460
|
-
function we(
|
|
2460
|
+
function we(w) {
|
|
2461
2461
|
var T;
|
|
2462
2462
|
for (let d of t.model.fields) {
|
|
2463
2463
|
const l = (T = d.formItem) == null ? void 0 : T.select;
|
|
2464
|
-
if (!(!d.formItem || d.formItem.type !== "select" || !l || !l.queryParamValueField) && l.queryParamValueField ===
|
|
2465
|
-
const
|
|
2466
|
-
if (
|
|
2467
|
-
let k =
|
|
2464
|
+
if (!(!d.formItem || d.formItem.type !== "select" || !l || !l.queryParamValueField) && l.queryParamValueField === w.prop) {
|
|
2465
|
+
const _ = l.api;
|
|
2466
|
+
if (_) {
|
|
2467
|
+
let k = _;
|
|
2468
2468
|
const P = l.queryParamName;
|
|
2469
2469
|
P && (k = `${k}?${P}=${s[l.queryParamValueField]}`), xe(k, "GET", {}).then(({ data: F }) => {
|
|
2470
2470
|
if (l) {
|
|
@@ -2479,18 +2479,18 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
|
-
function U(
|
|
2483
|
-
b.value =
|
|
2482
|
+
function U(w) {
|
|
2483
|
+
b.value = w, f.value = s[w.prop], i.value = !0;
|
|
2484
2484
|
}
|
|
2485
|
-
return Ie(f, (
|
|
2486
|
-
b.value && (s[b.value.prop] =
|
|
2485
|
+
return Ie(f, (w) => {
|
|
2486
|
+
b.value && (s[b.value.prop] = w);
|
|
2487
2487
|
}), o({
|
|
2488
2488
|
refresh: z,
|
|
2489
2489
|
reset: ce,
|
|
2490
2490
|
submit: Y,
|
|
2491
2491
|
formData: s
|
|
2492
|
-
}), (
|
|
2493
|
-
const d =
|
|
2492
|
+
}), (w, T) => {
|
|
2493
|
+
const d = x("el-input"), l = x("el-switch"), _ = x("el-date-picker"), k = x("el-time-picker"), P = x("el-option"), F = x("el-select"), D = x("el-input-number"), O = x("el-button"), L = x("el-form-item"), j = x("el-form"), g = x("el-dialog"), S = Wt("loading");
|
|
2494
2494
|
return u(), E(oe, null, [
|
|
2495
2495
|
Yt((u(), I(j, {
|
|
2496
2496
|
ref_key: "formRef",
|
|
@@ -2506,12 +2506,12 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2506
2506
|
default: p(() => [
|
|
2507
2507
|
(u(!0), E(oe, null, fe(V.value, (m) => (u(), I(L, {
|
|
2508
2508
|
class: "form-item",
|
|
2509
|
-
style:
|
|
2509
|
+
style: He({ width: t.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2510
2510
|
prop: m.prop,
|
|
2511
2511
|
label: B(m)
|
|
2512
2512
|
}, {
|
|
2513
2513
|
default: p(() => {
|
|
2514
|
-
var q, C, Z, R, se, Q, J, ae, te, re, he, ue,
|
|
2514
|
+
var q, C, Z, R, se, Q, J, ae, te, re, he, ue, _e, Ce, ve, Ne, We, Ye, ie, K;
|
|
2515
2515
|
return [
|
|
2516
2516
|
me("input", m) ? (u(), I(d, {
|
|
2517
2517
|
key: 0,
|
|
@@ -2521,14 +2521,14 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2521
2521
|
placeholder: (q = m.formItem) == null ? void 0 : q.placeholder,
|
|
2522
2522
|
disabled: ne(m)
|
|
2523
2523
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : G("", !0),
|
|
2524
|
-
|
|
2524
|
+
$(m) ? (u(), E("span", ka, A(ee(m)), 1)) : G("", !0),
|
|
2525
2525
|
W(m, "switch") ? (u(), I(l, {
|
|
2526
2526
|
key: 2,
|
|
2527
2527
|
modelValue: s[m.prop],
|
|
2528
2528
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2529
2529
|
disabled: t.mode === "view"
|
|
2530
2530
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : G("", !0),
|
|
2531
|
-
W(m, "date") && t.mode !== "view" ? (u(), I(
|
|
2531
|
+
W(m, "date") && t.mode !== "view" ? (u(), I(_, {
|
|
2532
2532
|
key: 3,
|
|
2533
2533
|
style: { width: "100%" },
|
|
2534
2534
|
type: "date",
|
|
@@ -2544,7 +2544,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2544
2544
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2545
2545
|
disabled: t.mode === "view"
|
|
2546
2546
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : G("", !0),
|
|
2547
|
-
W(m, "datetime") && t.mode !== "view" ? (u(), I(
|
|
2547
|
+
W(m, "datetime") && t.mode !== "view" ? (u(), I(_, {
|
|
2548
2548
|
key: 5,
|
|
2549
2549
|
style: { width: "100%" },
|
|
2550
2550
|
type: "datetime",
|
|
@@ -2581,13 +2581,13 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2581
2581
|
style: { width: "100%" },
|
|
2582
2582
|
modelValue: s[m.prop],
|
|
2583
2583
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2584
|
-
min: (Ce = (
|
|
2585
|
-
max: (
|
|
2586
|
-
step: (K = (ie = (
|
|
2584
|
+
min: (Ce = (_e = (ue = m.formItem) == null ? void 0 : ue.inputNumber) == null ? void 0 : _e.min) != null ? Ce : Number.NEGATIVE_INFINITY,
|
|
2585
|
+
max: (We = (Ne = (ve = m.formItem) == null ? void 0 : ve.inputNumber) == null ? void 0 : Ne.max) != null ? We : Number.POSITIVE_INFINITY,
|
|
2586
|
+
step: (K = (ie = (Ye = m.formItem) == null ? void 0 : Ye.inputNumber) == null ? void 0 : ie.step) != null ? K : 1,
|
|
2587
2587
|
"value-on-clear": -10
|
|
2588
2588
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : G("", !0),
|
|
2589
2589
|
W(m, "svg") && t.mode !== "view" ? (u(), E("div", Sa, [
|
|
2590
|
-
|
|
2590
|
+
v("div", {
|
|
2591
2591
|
class: "svg-icon",
|
|
2592
2592
|
innerHTML: s[m.prop]
|
|
2593
2593
|
}, null, 8, xa),
|
|
@@ -2604,7 +2604,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2604
2604
|
}, 1032, ["onClick"])
|
|
2605
2605
|
])) : G("", !0),
|
|
2606
2606
|
W(m, "svg") && t.mode === "view" ? (u(), E("div", $a, [
|
|
2607
|
-
|
|
2607
|
+
v("div", {
|
|
2608
2608
|
class: "svg-icon",
|
|
2609
2609
|
innerHTML: s[m.prop]
|
|
2610
2610
|
}, null, 8, Ea),
|
|
@@ -2627,7 +2627,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2627
2627
|
]),
|
|
2628
2628
|
_: 1
|
|
2629
2629
|
}, 8, ["model", "rules", "inline"])), [
|
|
2630
|
-
[
|
|
2630
|
+
[S, a.value]
|
|
2631
2631
|
]),
|
|
2632
2632
|
h(g, {
|
|
2633
2633
|
class: "console-dialog",
|
|
@@ -2651,7 +2651,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2651
2651
|
], 64);
|
|
2652
2652
|
};
|
|
2653
2653
|
}
|
|
2654
|
-
}), wo = /* @__PURE__ */ ye(Oa, [["__scopeId", "data-v-
|
|
2654
|
+
}), wo = /* @__PURE__ */ ye(Oa, [["__scopeId", "data-v-7bbaa400"]]), Pa = { class: "console-dialog__body" }, Ia = {
|
|
2655
2655
|
key: 0,
|
|
2656
2656
|
class: "process-view"
|
|
2657
2657
|
}, Va = { class: "operation-button-wrapper" }, Co = /* @__PURE__ */ $e({
|
|
@@ -2666,7 +2666,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2666
2666
|
},
|
|
2667
2667
|
emits: ["update:visible", "update:id"],
|
|
2668
2668
|
setup(e, { expose: o, emit: n }) {
|
|
2669
|
-
const { t } =
|
|
2669
|
+
const { t } = kt(), s = e, a = N(0), c = n, r = N();
|
|
2670
2670
|
Ie(() => s.visible, () => {
|
|
2671
2671
|
s.visible && a.value++;
|
|
2672
2672
|
});
|
|
@@ -2682,8 +2682,8 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2682
2682
|
return o({
|
|
2683
2683
|
close: f,
|
|
2684
2684
|
refresh: i
|
|
2685
|
-
}), (
|
|
2686
|
-
const M =
|
|
2685
|
+
}), ($, V) => {
|
|
2686
|
+
const M = x("el-step"), z = x("el-steps"), Y = x("el-button"), ce = x("el-dialog");
|
|
2687
2687
|
return u(), I(ce, {
|
|
2688
2688
|
class: "console-dialog",
|
|
2689
2689
|
title: "Edit",
|
|
@@ -2695,24 +2695,24 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2695
2695
|
footer: p(() => {
|
|
2696
2696
|
var B;
|
|
2697
2697
|
return [
|
|
2698
|
-
|
|
2698
|
+
v("div", {
|
|
2699
2699
|
class: "dialog-footer",
|
|
2700
|
-
style:
|
|
2700
|
+
style: He({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2701
2701
|
}, [
|
|
2702
|
-
|
|
2702
|
+
v("div", Va, [
|
|
2703
2703
|
(u(!0), E(oe, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ee) => (u(), I(Y, {
|
|
2704
2704
|
onClick: (ne) => ee.function(r.value.formData)
|
|
2705
2705
|
}, {
|
|
2706
2706
|
default: p(() => [
|
|
2707
|
-
H(A(
|
|
2707
|
+
H(A(y(t)(ee.label)), 1)
|
|
2708
2708
|
]),
|
|
2709
2709
|
_: 2
|
|
2710
2710
|
}, 1032, ["onClick"]))), 256))
|
|
2711
2711
|
]),
|
|
2712
|
-
|
|
2712
|
+
v("div", null, [
|
|
2713
2713
|
h(Y, { onClick: f }, {
|
|
2714
2714
|
default: p(() => [
|
|
2715
|
-
H(A(
|
|
2715
|
+
H(A(y(t)("common.basic.cancel")), 1)
|
|
2716
2716
|
]),
|
|
2717
2717
|
_: 1
|
|
2718
2718
|
}),
|
|
@@ -2721,7 +2721,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2721
2721
|
onClick: b
|
|
2722
2722
|
}, {
|
|
2723
2723
|
default: p(() => [
|
|
2724
|
-
H(A(
|
|
2724
|
+
H(A(y(t)("common.basic.save")), 1)
|
|
2725
2725
|
]),
|
|
2726
2726
|
_: 1
|
|
2727
2727
|
})
|
|
@@ -2730,10 +2730,10 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2730
2730
|
];
|
|
2731
2731
|
}),
|
|
2732
2732
|
default: p(() => [
|
|
2733
|
-
|
|
2733
|
+
v("div", Pa, [
|
|
2734
2734
|
h(wo, {
|
|
2735
2735
|
class: "form-view",
|
|
2736
|
-
style:
|
|
2736
|
+
style: He({ width: $.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2737
2737
|
ref_key: "formViewRef",
|
|
2738
2738
|
ref: r,
|
|
2739
2739
|
id: s.id,
|
|
@@ -2744,8 +2744,8 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2744
2744
|
closeDialogFunc: f,
|
|
2745
2745
|
disableInline: s.showProcess
|
|
2746
2746
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2747
|
-
|
|
2748
|
-
V[0] || (V[0] =
|
|
2747
|
+
$.showProcess ? (u(), E("div", Ia, [
|
|
2748
|
+
V[0] || (V[0] = v("h1", null, "流程动态", -1)),
|
|
2749
2749
|
h(z, {
|
|
2750
2750
|
style: { height: "90%" },
|
|
2751
2751
|
direction: "vertical",
|
|
@@ -2773,7 +2773,7 @@ const _a = { class: "card-wrapper" }, ga = ["onClick"], ba = { class: "card-inne
|
|
|
2773
2773
|
};
|
|
2774
2774
|
function Na(e, o) {
|
|
2775
2775
|
return u(), E("svg", Ma, o[0] || (o[0] = [
|
|
2776
|
-
|
|
2776
|
+
v("path", {
|
|
2777
2777
|
fill: "#888a8d",
|
|
2778
2778
|
d: "M192 672a16 16 0 0 1 16 16v128h604.992V688a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v160a64 64 0 0 1-56.512 63.552l-7.488.448H176a64 64 0 0 1-64-64V688a16 16 0 0 1 16-16zm268.032-505.664v2.56l-.128 13.248v89.024l.064 46.08V718.72A18.176 18.176 0 0 1 443.2 736h-62.08a18.176 18.176 0 0 1-17.216-16.768V334.464h-1.28l-130.432 129.28a16 16 0 0 1-22.592-.128l-.32-.256L164.544 416a16 16 0 0 1 .448-22.4l86.08-84.736a18.2 18.2 0 0 1 2.688-3.2l142.72-139.648c7.04-6.784 56.512-6.656 63.488.32zm184.832-5.312c9.152.448 16.512 7.68 17.216 16.768v384.704h1.344L793.792 433.28a16 16 0 0 1 22.592.128l.256.256 44.736 47.36a16 16 0 0 1-.448 22.4l-86.08 84.736a18.2 18.2 0 0 1-2.624 3.2l-142.72 139.648c-7.104 6.784-56.512 6.656-63.488-.32v-2.56l.064-13.312V579.84l-.064-17.28V178.304a18.176 18.176 0 0 1 16.768-17.216h62.08z"
|
|
2779
2779
|
}, null, -1)
|
|
@@ -2785,7 +2785,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2785
2785
|
model: {}
|
|
2786
2786
|
},
|
|
2787
2787
|
setup(e, { expose: o }) {
|
|
2788
|
-
const { t: n } = ct.global, t = e, s = pe([]), a = pe({}), c = N(""), r = N(!1), i = pt(), f = N(""), b = pe([]),
|
|
2788
|
+
const { t: n } = ct.global, t = e, s = pe([]), a = pe({}), c = N(""), r = N(!1), i = pt(), f = N(""), b = pe([]), $ = pe([]), V = N(), M = N([]), z = N("create"), Y = N(!0), ce = N(!1), B = N(""), ee = pe({
|
|
2789
2789
|
pageSize: 10,
|
|
2790
2790
|
pageNo: 1,
|
|
2791
2791
|
totalElements: 0
|
|
@@ -2793,13 +2793,13 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2793
2793
|
let ne = {};
|
|
2794
2794
|
const me = Te(() => s.filter(
|
|
2795
2795
|
(g) => {
|
|
2796
|
-
var
|
|
2797
|
-
return ((
|
|
2796
|
+
var S, m;
|
|
2797
|
+
return ((S = g.formItem) == null ? void 0 : S.type) !== "password" && g.visible !== !1 && ((m = g.tableColumn) == null ? void 0 : m.visible) !== !1;
|
|
2798
2798
|
}
|
|
2799
2799
|
));
|
|
2800
|
-
function W(g,
|
|
2800
|
+
function W(g, S) {
|
|
2801
2801
|
var Z, R, se, Q;
|
|
2802
|
-
let m =
|
|
2802
|
+
let m = S.row[g.prop];
|
|
2803
2803
|
const q = (R = (Z = g.tableColumn) == null ? void 0 : Z.functions) == null ? void 0 : R.transformValue, C = (se = g.tableColumn) == null ? void 0 : se.transformValueMappings;
|
|
2804
2804
|
if (q)
|
|
2805
2805
|
m = q(m);
|
|
@@ -2813,10 +2813,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2813
2813
|
const J = g.formItem.select;
|
|
2814
2814
|
if (J) {
|
|
2815
2815
|
if (J.viewModeLabelField)
|
|
2816
|
-
m =
|
|
2816
|
+
m = S.row[J.viewModeLabelField];
|
|
2817
2817
|
else if (J.options && J.options.length > 0) {
|
|
2818
2818
|
for (let ae of J.options)
|
|
2819
|
-
if (ae.value ===
|
|
2819
|
+
if (ae.value === S.row[g.prop]) {
|
|
2820
2820
|
m = ae.label;
|
|
2821
2821
|
break;
|
|
2822
2822
|
}
|
|
@@ -2843,18 +2843,18 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2843
2843
|
}
|
|
2844
2844
|
return m;
|
|
2845
2845
|
}
|
|
2846
|
-
function we(g,
|
|
2846
|
+
function we(g, S) {
|
|
2847
2847
|
var m, q;
|
|
2848
|
-
return g.label ? n(g.label) : (q = (m = g.functions) == null ? void 0 : m.transformLabel) == null ? void 0 : q.call(m,
|
|
2848
|
+
return g.label ? n(g.label) : (q = (m = g.functions) == null ? void 0 : m.transformLabel) == null ? void 0 : q.call(m, S.$index, S.row);
|
|
2849
2849
|
}
|
|
2850
2850
|
function U(g) {
|
|
2851
|
-
|
|
2851
|
+
Be(t.model), Object.assign(t.model, g);
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2854
|
-
var
|
|
2853
|
+
function w() {
|
|
2854
|
+
var S, m, q;
|
|
2855
2855
|
if (Y.value = !0, !t.model || !t.model.api)
|
|
2856
2856
|
return;
|
|
2857
|
-
|
|
2857
|
+
Be(a), Object.assign(a, (S = t.model.tableConfig) != null ? S : {}), a.display = (m = a.display) != null ? m : {}, a.display.advancedSearch !== !0 && (a.display.advancedSearch = !1), a.display.fileTaskButton !== !0 && (a.display.fileTaskButton = !1), a.display.pagination !== !1 && (a.display.pagination = !0), a.display.pane !== !1 && (a.display.pane = !0), a.display.searchBox !== !1 && (a.display.searchBox = !0), s.splice(0, s.length, ...t.model.fields), c.value = (q = t.model.route) != null ? q : "";
|
|
2858
2858
|
let g = tt({}, a.queryParams);
|
|
2859
2859
|
g.pageSize = ee.pageSize, g.pageNo = ee.pageNo, g.search = f.value, xe(t.model.api, "GET", g).then(({ data: C }) => {
|
|
2860
2860
|
const { list: Z, totalCount: R } = C.data;
|
|
@@ -2862,18 +2862,18 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
2864
|
function T() {
|
|
2865
|
-
var g,
|
|
2866
|
-
a.createPageRoutePath !== void 0 ? i.push(a.createPageRoutePath) : ((g = a.functions) == null ? void 0 : g.create) !== void 0 ? (
|
|
2865
|
+
var g, S;
|
|
2866
|
+
a.createPageRoutePath !== void 0 ? i.push(a.createPageRoutePath) : ((g = a.functions) == null ? void 0 : g.create) !== void 0 ? (S = a.functions) == null || S.create() : (z.value = "create", B.value = "", r.value = !0);
|
|
2867
2867
|
}
|
|
2868
|
-
function d(g,
|
|
2868
|
+
function d(g, S) {
|
|
2869
2869
|
var m, q;
|
|
2870
2870
|
if (t.model.api) {
|
|
2871
|
-
if (
|
|
2871
|
+
if (S.id === void 0) {
|
|
2872
2872
|
const C = (q = (m = t.model.formConfig) == null ? void 0 : m.functions) == null ? void 0 : q.beforeSubmit;
|
|
2873
|
-
C !== void 0 && C(
|
|
2873
|
+
C !== void 0 && C(S);
|
|
2874
2874
|
}
|
|
2875
|
-
xe(t.model.api, "DELETE",
|
|
2876
|
-
C.code === 0 && (r.value = !1,
|
|
2875
|
+
xe(t.model.api, "DELETE", S.id).then(({ data: C }) => {
|
|
2876
|
+
C.code === 0 && (r.value = !1, w());
|
|
2877
2877
|
});
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
@@ -2887,13 +2887,13 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2887
2887
|
type: "warning"
|
|
2888
2888
|
}
|
|
2889
2889
|
).then(() => {
|
|
2890
|
-
var g,
|
|
2890
|
+
var g, S;
|
|
2891
2891
|
if (((g = a.functions) == null ? void 0 : g.batchDelete) !== void 0)
|
|
2892
|
-
(
|
|
2892
|
+
(S = a.functions) == null || S.batchDelete(M.value);
|
|
2893
2893
|
else {
|
|
2894
2894
|
const m = M.value.map((q) => q.id);
|
|
2895
2895
|
be.delete(`${t.model.api}/${m.join(",")}`).then(({ data: q }) => {
|
|
2896
|
-
q.code === 0 && (r.value = !1,
|
|
2896
|
+
q.code === 0 && (r.value = !1, w());
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
2899
2899
|
V.value.clearSelection();
|
|
@@ -2901,25 +2901,25 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2901
2901
|
V.value.clearSelection();
|
|
2902
2902
|
});
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2905
|
-
ee.pageSize = g,
|
|
2904
|
+
function _(g) {
|
|
2905
|
+
ee.pageSize = g, w();
|
|
2906
2906
|
}
|
|
2907
2907
|
function k(g) {
|
|
2908
|
-
ee.pageNo = g,
|
|
2908
|
+
ee.pageNo = g, w();
|
|
2909
2909
|
}
|
|
2910
|
-
function P(g,
|
|
2910
|
+
function P(g, S) {
|
|
2911
2911
|
a.editPageRoutePath !== void 0 ? i.push({
|
|
2912
2912
|
path: a.editPageRoutePath,
|
|
2913
2913
|
query: {
|
|
2914
|
-
id:
|
|
2914
|
+
id: S.id
|
|
2915
2915
|
}
|
|
2916
|
-
}) : (B.value =
|
|
2916
|
+
}) : (B.value = S.id, z.value = "update", r.value = !0);
|
|
2917
2917
|
}
|
|
2918
2918
|
function F() {
|
|
2919
2919
|
var m;
|
|
2920
2920
|
let g = ((m = t.model.api) != null && m.startsWith("http") ? "" : window.location.origin) + t.model.api + "/export";
|
|
2921
|
-
const
|
|
2922
|
-
|
|
2921
|
+
const S = a.queryParams;
|
|
2922
|
+
S !== void 0 && Object.keys(S).length > 0 && (g += "?", Object.entries(a.queryParams).map((q) => {
|
|
2923
2923
|
g += `${q[0]}=${q[1]}&`;
|
|
2924
2924
|
})), window.open(g);
|
|
2925
2925
|
}
|
|
@@ -2927,10 +2927,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2927
2927
|
M.value = g;
|
|
2928
2928
|
}
|
|
2929
2929
|
function O(g) {
|
|
2930
|
-
return g != null && g.prop ? g.label ?
|
|
2930
|
+
return g != null && g.prop ? g.label ? Fe(g.label) : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase() : "";
|
|
2931
2931
|
}
|
|
2932
2932
|
function L(g) {
|
|
2933
|
-
g ? (ce.value = !0,
|
|
2933
|
+
g ? (ce.value = !0, $.splice(0, $.length, ...b), b.splice(0, b.length, ...M.value)) : (ce.value = !1, b.splice(0, b.length, ...$));
|
|
2934
2934
|
}
|
|
2935
2935
|
function j() {
|
|
2936
2936
|
var Z;
|
|
@@ -2944,13 +2944,13 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2944
2944
|
me.value.forEach((R) => {
|
|
2945
2945
|
g += `<th>${O(R)}</th>`;
|
|
2946
2946
|
});
|
|
2947
|
-
let
|
|
2947
|
+
let S = "";
|
|
2948
2948
|
M.value.forEach((R) => {
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
}),
|
|
2949
|
+
S += "<tr>", me.value.forEach((se) => {
|
|
2950
|
+
S += `<td>${R[se.prop]}</td>`;
|
|
2951
|
+
}), S += "</tr>";
|
|
2952
2952
|
});
|
|
2953
|
-
let m = `<table><tr>${g}</tr>${
|
|
2953
|
+
let m = `<table><tr>${g}</tr>${S}</table>`;
|
|
2954
2954
|
const q = document.createElement("iframe");
|
|
2955
2955
|
q.style.display = "none", document.body.appendChild(q);
|
|
2956
2956
|
const C = q.contentDocument || ((Z = q.contentWindow) == null ? void 0 : Z.document);
|
|
@@ -3006,22 +3006,22 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3006
3006
|
`), C == null || C.close();
|
|
3007
3007
|
}
|
|
3008
3008
|
return Ie(() => t.model, () => {
|
|
3009
|
-
|
|
3009
|
+
w();
|
|
3010
3010
|
}, {
|
|
3011
3011
|
deep: !0,
|
|
3012
3012
|
immediate: !0
|
|
3013
3013
|
}), o({
|
|
3014
3014
|
multipleSelection: M,
|
|
3015
|
-
refresh:
|
|
3015
|
+
refresh: w,
|
|
3016
3016
|
updateConfigAndRefresh: U
|
|
3017
|
-
}), (g,
|
|
3018
|
-
var Ne,
|
|
3019
|
-
const m =
|
|
3017
|
+
}), (g, S) => {
|
|
3018
|
+
var Ne, We, Ye;
|
|
3019
|
+
const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), R = x("el-dropdown-menu"), se = x("el-dropdown"), Q = x("el-icon"), J = x("el-tooltip"), ae = x("el-input"), te = x("el-table-column"), re = x("router-link"), he = x("el-tag"), ue = x("el-popconfirm"), _e = x("el-table"), Ce = x("el-pagination"), ve = Wt("loading");
|
|
3020
3020
|
return u(), E("div", {
|
|
3021
3021
|
class: wt({ "table-view-wrapper": (Ne = a.display) == null ? void 0 : Ne.pane })
|
|
3022
3022
|
}, [
|
|
3023
|
-
|
|
3024
|
-
|
|
3023
|
+
v("div", Ta, [
|
|
3024
|
+
v("div", Aa, [
|
|
3025
3025
|
a.selectMode ? (u(), I(q, {
|
|
3026
3026
|
key: 0,
|
|
3027
3027
|
value: M.value.length,
|
|
@@ -3032,7 +3032,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3032
3032
|
h(m, {
|
|
3033
3033
|
class: "selected-checkbox",
|
|
3034
3034
|
border: !0,
|
|
3035
|
-
label:
|
|
3035
|
+
label: y(n)("common.table.viewSelected"),
|
|
3036
3036
|
onChange: L
|
|
3037
3037
|
}, null, 8, ["label"])
|
|
3038
3038
|
]),
|
|
@@ -3046,7 +3046,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3046
3046
|
default: p(() => {
|
|
3047
3047
|
var ie, K;
|
|
3048
3048
|
return [
|
|
3049
|
-
H(A(((ie = a.labels) == null ? void 0 : ie.create) != null ?
|
|
3049
|
+
H(A(((ie = a.labels) == null ? void 0 : ie.create) != null ? y(n)((K = a.labels) == null ? void 0 : K.create) : y(n)("common.table.create")), 1)
|
|
3050
3050
|
];
|
|
3051
3051
|
}),
|
|
3052
3052
|
_: 1
|
|
@@ -3061,17 +3061,17 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3061
3061
|
default: p(() => {
|
|
3062
3062
|
var ie, K;
|
|
3063
3063
|
return [
|
|
3064
|
-
H(A(((ie = a.labels) == null ? void 0 : ie.delete) != null ?
|
|
3064
|
+
H(A(((ie = a.labels) == null ? void 0 : ie.delete) != null ? y(n)((K = a.labels) == null ? void 0 : K.delete) : y(n)("common.table.delete")), 1)
|
|
3065
3065
|
];
|
|
3066
3066
|
}),
|
|
3067
3067
|
_: 1
|
|
3068
3068
|
}, 8, ["disabled"])) : G("", !0),
|
|
3069
3069
|
h(C, {
|
|
3070
|
-
icon:
|
|
3070
|
+
icon: y(St),
|
|
3071
3071
|
style: { width: "28px" },
|
|
3072
|
-
onClick:
|
|
3072
|
+
onClick: w
|
|
3073
3073
|
}, null, 8, ["icon"]),
|
|
3074
|
-
(
|
|
3074
|
+
(We = a.display) != null && We.fileTaskButton ? (u(), I(se, {
|
|
3075
3075
|
key: 3,
|
|
3076
3076
|
placement: "bottom-start",
|
|
3077
3077
|
trigger: "click"
|
|
@@ -3080,39 +3080,39 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3080
3080
|
h(R, null, {
|
|
3081
3081
|
default: p(() => [
|
|
3082
3082
|
h(Z, {
|
|
3083
|
-
icon:
|
|
3083
|
+
icon: y(Lo),
|
|
3084
3084
|
disabled: !0
|
|
3085
3085
|
}, {
|
|
3086
|
-
default: p(() =>
|
|
3086
|
+
default: p(() => S[3] || (S[3] = [
|
|
3087
3087
|
H("导入")
|
|
3088
3088
|
])),
|
|
3089
3089
|
_: 1
|
|
3090
3090
|
}, 8, ["icon"]),
|
|
3091
3091
|
h(Z, {
|
|
3092
|
-
icon:
|
|
3092
|
+
icon: y(At),
|
|
3093
3093
|
divided: "",
|
|
3094
3094
|
disabled: !0
|
|
3095
3095
|
}, {
|
|
3096
|
-
default: p(() =>
|
|
3096
|
+
default: p(() => S[4] || (S[4] = [
|
|
3097
3097
|
H("导出选中内容")
|
|
3098
3098
|
])),
|
|
3099
3099
|
_: 1
|
|
3100
3100
|
}, 8, ["icon"]),
|
|
3101
3101
|
h(Z, {
|
|
3102
|
-
icon:
|
|
3102
|
+
icon: y(At),
|
|
3103
3103
|
onClick: F
|
|
3104
3104
|
}, {
|
|
3105
|
-
default: p(() =>
|
|
3105
|
+
default: p(() => S[5] || (S[5] = [
|
|
3106
3106
|
H("导出查询结果")
|
|
3107
3107
|
])),
|
|
3108
3108
|
_: 1
|
|
3109
3109
|
}, 8, ["icon"]),
|
|
3110
3110
|
h(Z, {
|
|
3111
|
-
icon:
|
|
3111
|
+
icon: y(Go),
|
|
3112
3112
|
divided: "",
|
|
3113
3113
|
disabled: !0
|
|
3114
3114
|
}, {
|
|
3115
|
-
default: p(() =>
|
|
3115
|
+
default: p(() => S[6] || (S[6] = [
|
|
3116
3116
|
H("任务中心")
|
|
3117
3117
|
])),
|
|
3118
3118
|
_: 1
|
|
@@ -3124,7 +3124,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3124
3124
|
default: p(() => [
|
|
3125
3125
|
h(C, { style: { width: "28px" } }, {
|
|
3126
3126
|
icon: p(() => [
|
|
3127
|
-
h(
|
|
3127
|
+
h(y(Ua))
|
|
3128
3128
|
]),
|
|
3129
3129
|
_: 1
|
|
3130
3130
|
})
|
|
@@ -3139,19 +3139,19 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3139
3139
|
h(R, null, {
|
|
3140
3140
|
default: p(() => [
|
|
3141
3141
|
h(Z, {
|
|
3142
|
-
icon:
|
|
3142
|
+
icon: y(jo),
|
|
3143
3143
|
onClick: j
|
|
3144
3144
|
}, {
|
|
3145
|
-
default: p(() =>
|
|
3145
|
+
default: p(() => S[7] || (S[7] = [
|
|
3146
3146
|
H("打印")
|
|
3147
3147
|
])),
|
|
3148
3148
|
_: 1
|
|
3149
3149
|
}, 8, ["icon"]),
|
|
3150
3150
|
h(Z, {
|
|
3151
|
-
icon:
|
|
3151
|
+
icon: y(zo),
|
|
3152
3152
|
disabled: !0
|
|
3153
3153
|
}, {
|
|
3154
|
-
default: p(() =>
|
|
3154
|
+
default: p(() => S[8] || (S[8] = [
|
|
3155
3155
|
H("表格设置")
|
|
3156
3156
|
])),
|
|
3157
3157
|
_: 1
|
|
@@ -3162,7 +3162,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3162
3162
|
]),
|
|
3163
3163
|
default: p(() => [
|
|
3164
3164
|
h(C, {
|
|
3165
|
-
icon:
|
|
3165
|
+
icon: y(qo),
|
|
3166
3166
|
style: { width: "28px" }
|
|
3167
3167
|
}, null, 8, ["icon"])
|
|
3168
3168
|
]),
|
|
@@ -3171,13 +3171,13 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3171
3171
|
a.tooltip ? (u(), I(J, {
|
|
3172
3172
|
key: 4,
|
|
3173
3173
|
effect: "dark",
|
|
3174
|
-
content:
|
|
3174
|
+
content: y(n)(a.tooltip),
|
|
3175
3175
|
placement: "right"
|
|
3176
3176
|
}, {
|
|
3177
3177
|
default: p(() => [
|
|
3178
3178
|
h(Q, { style: { color: "#8ba74f" } }, {
|
|
3179
3179
|
default: p(() => [
|
|
3180
|
-
h(
|
|
3180
|
+
h(y(Ho))
|
|
3181
3181
|
]),
|
|
3182
3182
|
_: 1
|
|
3183
3183
|
})
|
|
@@ -3185,33 +3185,33 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3185
3185
|
_: 1
|
|
3186
3186
|
}, 8, ["content"])) : G("", !0)
|
|
3187
3187
|
]),
|
|
3188
|
-
|
|
3188
|
+
v("div", Da, [
|
|
3189
3189
|
h(ae, {
|
|
3190
|
-
placeholder: `${
|
|
3190
|
+
placeholder: `${y(n)("common.table.search")}...`,
|
|
3191
3191
|
modelValue: f.value,
|
|
3192
|
-
"onUpdate:modelValue":
|
|
3192
|
+
"onUpdate:modelValue": S[0] || (S[0] = (ie) => f.value = ie)
|
|
3193
3193
|
}, {
|
|
3194
3194
|
append: p(() => [
|
|
3195
3195
|
h(C, {
|
|
3196
3196
|
style: { "margin-left": "-20px" },
|
|
3197
|
-
icon:
|
|
3198
|
-
onClick:
|
|
3197
|
+
icon: y(Jt),
|
|
3198
|
+
onClick: w
|
|
3199
3199
|
}, null, 8, ["icon"])
|
|
3200
3200
|
]),
|
|
3201
3201
|
_: 1
|
|
3202
3202
|
}, 8, ["placeholder", "modelValue"]),
|
|
3203
|
-
(
|
|
3203
|
+
(Ye = a.display) != null && Ye.advancedSearch ? (u(), I(C, {
|
|
3204
3204
|
key: 0,
|
|
3205
3205
|
type: "text"
|
|
3206
3206
|
}, {
|
|
3207
|
-
default: p(() =>
|
|
3207
|
+
default: p(() => S[9] || (S[9] = [
|
|
3208
3208
|
H("高级搜索")
|
|
3209
3209
|
])),
|
|
3210
3210
|
_: 1
|
|
3211
3211
|
})) : G("", !0)
|
|
3212
3212
|
])
|
|
3213
3213
|
]),
|
|
3214
|
-
Yt((u(), I(
|
|
3214
|
+
Yt((u(), I(_e, {
|
|
3215
3215
|
border: !0,
|
|
3216
3216
|
ref_key: "tableRef",
|
|
3217
3217
|
ref: V,
|
|
@@ -3236,7 +3236,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3236
3236
|
"show-overflow-tooltip": ""
|
|
3237
3237
|
}, {
|
|
3238
3238
|
default: p((Ee) => {
|
|
3239
|
-
var Oe,
|
|
3239
|
+
var Oe, Je, Pt;
|
|
3240
3240
|
return [
|
|
3241
3241
|
(Oe = K.tableColumn) != null && Oe.link ? (u(), I(re, {
|
|
3242
3242
|
key: 0,
|
|
@@ -3244,16 +3244,16 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3244
3244
|
to: `/${c.value}/detail?id=${Ee.row.id}`
|
|
3245
3245
|
}, {
|
|
3246
3246
|
default: p(() => [
|
|
3247
|
-
|
|
3247
|
+
v("span", null, A(W(K, Ee)), 1)
|
|
3248
3248
|
]),
|
|
3249
3249
|
_: 2
|
|
3250
|
-
}, 1032, ["to"])) : (
|
|
3250
|
+
}, 1032, ["to"])) : (Je = K.tableColumn) != null && Je.routerLink ? (u(), I(re, {
|
|
3251
3251
|
key: 1,
|
|
3252
3252
|
class: "router-link",
|
|
3253
3253
|
to: K.tableColumn.routerLink.replace("{id}", Ee.row.id)
|
|
3254
3254
|
}, {
|
|
3255
3255
|
default: p(() => [
|
|
3256
|
-
|
|
3256
|
+
v("span", null, A(W(K, Ee)), 1)
|
|
3257
3257
|
]),
|
|
3258
3258
|
_: 2
|
|
3259
3259
|
}, 1032, ["to"])) : (u(), E("span", Ra, A(W(K, Ee)), 1)),
|
|
@@ -3270,7 +3270,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3270
3270
|
}), 256)),
|
|
3271
3271
|
a.operations === void 0 && !((ie = a.selectMode) != null && ie) && !a.readOnly ? (u(), I(te, {
|
|
3272
3272
|
key: 1,
|
|
3273
|
-
label:
|
|
3273
|
+
label: y(n)("common.table.operation"),
|
|
3274
3274
|
width: "120"
|
|
3275
3275
|
}, {
|
|
3276
3276
|
default: p((K) => [
|
|
@@ -3282,7 +3282,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3282
3282
|
onClick: (X) => P(K.$index, K.row)
|
|
3283
3283
|
}, {
|
|
3284
3284
|
default: p(() => [
|
|
3285
|
-
H(A(
|
|
3285
|
+
H(A(y(n)("common.table.edit")), 1)
|
|
3286
3286
|
]),
|
|
3287
3287
|
_: 2
|
|
3288
3288
|
}, 1032, ["onClick"])) : G("", !0),
|
|
@@ -3298,7 +3298,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3298
3298
|
class: "operation-button"
|
|
3299
3299
|
}, {
|
|
3300
3300
|
default: p(() => [
|
|
3301
|
-
H(A(
|
|
3301
|
+
H(A(y(n)("common.table.delete")), 1)
|
|
3302
3302
|
]),
|
|
3303
3303
|
_: 1
|
|
3304
3304
|
})) : G("", !0)
|
|
@@ -3310,7 +3310,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3310
3310
|
}, 8, ["label"])) : G("", !0),
|
|
3311
3311
|
a.operations !== void 0 && !a.readOnly ? (u(), I(te, {
|
|
3312
3312
|
key: 2,
|
|
3313
|
-
label:
|
|
3313
|
+
label: y(n)("common.table.operation"),
|
|
3314
3314
|
width: "120"
|
|
3315
3315
|
}, {
|
|
3316
3316
|
default: p((K) => [
|
|
@@ -3320,8 +3320,8 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3320
3320
|
type: "primary",
|
|
3321
3321
|
key: X.label,
|
|
3322
3322
|
onClick: (Ee) => {
|
|
3323
|
-
var Oe,
|
|
3324
|
-
return ((
|
|
3323
|
+
var Oe, Je;
|
|
3324
|
+
return ((Je = (Oe = X.functions) == null ? void 0 : Oe.click) == null ? void 0 : Je.call(Oe, K.$index, K.row)) && w();
|
|
3325
3325
|
}
|
|
3326
3326
|
}, {
|
|
3327
3327
|
default: p(() => [
|
|
@@ -3336,16 +3336,16 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3336
3336
|
}),
|
|
3337
3337
|
_: 1
|
|
3338
3338
|
}, 8, ["data"])), [
|
|
3339
|
-
[
|
|
3339
|
+
[ve, Y.value]
|
|
3340
3340
|
]),
|
|
3341
3341
|
ce.value ? G("", !0) : (u(), I(Ce, {
|
|
3342
3342
|
key: 0,
|
|
3343
3343
|
size: "small",
|
|
3344
3344
|
background: "",
|
|
3345
|
-
onSizeChange:
|
|
3345
|
+
onSizeChange: _,
|
|
3346
3346
|
onCurrentChange: k,
|
|
3347
3347
|
currentPage: ee.pageNo,
|
|
3348
|
-
"onUpdate:currentPage":
|
|
3348
|
+
"onUpdate:currentPage": S[1] || (S[1] = (ie) => ee.pageNo = ie),
|
|
3349
3349
|
"page-sizes": [10, 20, 50, 100],
|
|
3350
3350
|
"page-size": ee.pageSize,
|
|
3351
3351
|
layout: "total, sizes, prev, pager, next",
|
|
@@ -3355,20 +3355,20 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3355
3355
|
model: g.model,
|
|
3356
3356
|
mode: z.value,
|
|
3357
3357
|
id: B.value,
|
|
3358
|
-
afterSubmitFunc:
|
|
3358
|
+
afterSubmitFunc: w,
|
|
3359
3359
|
visible: r.value,
|
|
3360
|
-
"onUpdate:visible":
|
|
3360
|
+
"onUpdate:visible": S[2] || (S[2] = (ie) => r.value = ie)
|
|
3361
3361
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
3362
3362
|
], 2);
|
|
3363
3363
|
};
|
|
3364
3364
|
}
|
|
3365
|
-
}), ut = /* @__PURE__ */ ye(Fa, [["__scopeId", "data-v-
|
|
3365
|
+
}), ut = /* @__PURE__ */ ye(Fa, [["__scopeId", "data-v-90c82dac"]]), La = { class: "nav-bar" }, Ga = { style: { "font-size": "16px" } }, ja = {
|
|
3366
3366
|
key: 0,
|
|
3367
3367
|
class: "info-card-wrapper"
|
|
3368
3368
|
}, za = { class: "icon-wrapper" }, qa = { class: "info-wrapper" }, Ha = { class: "title-wrapper" }, Ba = { class: "tabs-wrapper" }, Wa = { class: "dialog-footer" }, Ya = /* @__PURE__ */ $e({
|
|
3369
3369
|
__name: "DetailPage",
|
|
3370
3370
|
setup(e) {
|
|
3371
|
-
const { t: o } =
|
|
3371
|
+
const { t: o } = kt(), n = et(), t = pt(), s = Te(() => n.query.id), a = N(!1), c = N(!1), r = N("view"), i = N(), f = N(-1), b = N(), $ = N(), V = N("summary"), M = N(""), z = N(""), Y = N(""), ce = N(0), B = pe({
|
|
3372
3372
|
api: "",
|
|
3373
3373
|
fields: []
|
|
3374
3374
|
}), ee = pe([]);
|
|
@@ -3389,32 +3389,32 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3389
3389
|
var k;
|
|
3390
3390
|
let d = (k = ne[f.value].api) == null ? void 0 : k.replace("/select", "");
|
|
3391
3391
|
d = d == null ? void 0 : d.substring(d.lastIndexOf("/"));
|
|
3392
|
-
const l = B.api + "/" + s.value + d,
|
|
3393
|
-
xe(l, "POST",
|
|
3392
|
+
const l = B.api + "/" + s.value + d, _ = $.value.multipleSelection.map((P) => P.id);
|
|
3393
|
+
xe(l, "POST", _).then(() => {
|
|
3394
3394
|
b.value.refresh(), c.value = !1;
|
|
3395
3395
|
});
|
|
3396
3396
|
}
|
|
3397
|
-
function we(d, l,
|
|
3397
|
+
function we(d, l, _) {
|
|
3398
3398
|
var F;
|
|
3399
|
-
|
|
3400
|
-
c.value = !0,
|
|
3399
|
+
_.functions || (_.functions = {}), _.functions.create = () => {
|
|
3400
|
+
c.value = !0, $.value && $.value.refresh();
|
|
3401
3401
|
};
|
|
3402
|
-
let k =
|
|
3402
|
+
let k = qe(l);
|
|
3403
3403
|
k.tableConfig || (k.tableConfig = {}), k.tableConfig.selectMode = !0, k.tableConfig.queryParams = {}, d.queryParamName && (k.tableConfig.queryParams[d.queryParamName] = s.value);
|
|
3404
3404
|
for (var P in k.fields)
|
|
3405
3405
|
k.fields[P].tableColumn && (F = k.fields[P].tableColumn) != null && F.link && (k.fields[P].tableColumn.link = !1);
|
|
3406
|
-
ne.push(k),
|
|
3406
|
+
ne.push(k), _.labels = {
|
|
3407
3407
|
create: "common.table.add",
|
|
3408
3408
|
delete: "common.table.remove"
|
|
3409
|
-
},
|
|
3409
|
+
}, _.functions.batchDelete = (D) => {
|
|
3410
3410
|
var g;
|
|
3411
3411
|
let O = (g = ne[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3412
3412
|
O = O == null ? void 0 : O.substring(O.lastIndexOf("/"));
|
|
3413
|
-
const L = B.api + "/" + s.value + O, j = D.map((
|
|
3414
|
-
be.delete(`${L}/${j.join(",")}`).then(({ data:
|
|
3415
|
-
|
|
3413
|
+
const L = B.api + "/" + s.value + O, j = D.map((S) => S.id);
|
|
3414
|
+
be.delete(`${L}/${j.join(",")}`).then(({ data: S }) => {
|
|
3415
|
+
S.code === 0 && b.value.refresh();
|
|
3416
3416
|
});
|
|
3417
|
-
},
|
|
3417
|
+
}, _.operations = [
|
|
3418
3418
|
{
|
|
3419
3419
|
label: "common.table.remove",
|
|
3420
3420
|
functions: {
|
|
@@ -3440,13 +3440,13 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3440
3440
|
return;
|
|
3441
3441
|
} else
|
|
3442
3442
|
console.debug("Detail page model found:", d, Se.value[d]);
|
|
3443
|
-
|
|
3444
|
-
const l =
|
|
3443
|
+
Be(B);
|
|
3444
|
+
const l = qe(Se.value[d]);
|
|
3445
3445
|
Object.assign(B, l), ce.value++, f.value = -1, V.value = "summary";
|
|
3446
|
-
const
|
|
3447
|
-
if (
|
|
3448
|
-
for (let D of
|
|
3449
|
-
const O =
|
|
3446
|
+
const _ = (P = (k = B.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : P.tabs;
|
|
3447
|
+
if (_)
|
|
3448
|
+
for (let D of _) {
|
|
3449
|
+
const O = qe(Se.value[D.modelKey]);
|
|
3450
3450
|
if (ee.push(O), D.type === "table") {
|
|
3451
3451
|
O.tableConfig || (O.tableConfig = {});
|
|
3452
3452
|
let L = O.tableConfig;
|
|
@@ -3486,8 +3486,8 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3486
3486
|
],
|
|
3487
3487
|
(d) => {
|
|
3488
3488
|
it(() => {
|
|
3489
|
-
var
|
|
3490
|
-
const l = (k = (
|
|
3489
|
+
var _, k, P;
|
|
3490
|
+
const l = (k = (_ = B.pageConfig) == null ? void 0 : _.detailPage) == null ? void 0 : k.infoCard;
|
|
3491
3491
|
l && (M.value = l.titleFieldProp ? i.value.formData[l.titleFieldProp] : "", z.value = l.subtitleFieldProp ? i.value.formData[l.subtitleFieldProp] : "", Y.value = l.tagFieldProp ? i.value.formData[l.tagFieldProp] : "", (P = B.fields) == null || P.forEach((F) => {
|
|
3492
3492
|
var D, O;
|
|
3493
3493
|
if (F.prop === l.tagFieldProp) {
|
|
@@ -3502,7 +3502,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3502
3502
|
deep: !0
|
|
3503
3503
|
}
|
|
3504
3504
|
);
|
|
3505
|
-
function
|
|
3505
|
+
function w() {
|
|
3506
3506
|
a.value = !0;
|
|
3507
3507
|
}
|
|
3508
3508
|
function T() {
|
|
@@ -3510,27 +3510,27 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3510
3510
|
}
|
|
3511
3511
|
return (d, l) => {
|
|
3512
3512
|
var m, q, C, Z, R, se;
|
|
3513
|
-
const
|
|
3513
|
+
const _ = x("el-page-header"), k = x("el-button"), P = x("el-icon"), F = x("el-dropdown-item"), D = x("el-dropdown-menu"), O = x("el-dropdown"), L = x("el-tag"), j = x("el-tab-pane"), g = x("el-tabs"), S = x("el-dialog");
|
|
3514
3514
|
return u(), E(oe, null, [
|
|
3515
|
-
|
|
3516
|
-
h(
|
|
3517
|
-
onClick: l[0] || (l[0] = (Q) =>
|
|
3515
|
+
v("div", La, [
|
|
3516
|
+
h(_, {
|
|
3517
|
+
onClick: l[0] || (l[0] = (Q) => y(t).back())
|
|
3518
3518
|
}, {
|
|
3519
3519
|
title: p(() => l[5] || (l[5] = [
|
|
3520
|
-
|
|
3520
|
+
v("span", null, null, -1)
|
|
3521
3521
|
])),
|
|
3522
3522
|
content: p(() => [
|
|
3523
|
-
|
|
3523
|
+
v("span", Ga, A(y(Fe)(B == null ? void 0 : B.name)), 1)
|
|
3524
3524
|
]),
|
|
3525
3525
|
_: 1
|
|
3526
3526
|
}),
|
|
3527
|
-
|
|
3527
|
+
v("div", null, [
|
|
3528
3528
|
h(k, {
|
|
3529
3529
|
type: "primary",
|
|
3530
|
-
onClick:
|
|
3530
|
+
onClick: w
|
|
3531
3531
|
}, {
|
|
3532
3532
|
default: p(() => [
|
|
3533
|
-
H(A(
|
|
3533
|
+
H(A(y(o)("common.table.edit")), 1)
|
|
3534
3534
|
]),
|
|
3535
3535
|
_: 1
|
|
3536
3536
|
}),
|
|
@@ -3544,7 +3544,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3544
3544
|
onClick: (te) => ae.function(i.value.formData)
|
|
3545
3545
|
}, {
|
|
3546
3546
|
default: p(() => [
|
|
3547
|
-
H(A(
|
|
3547
|
+
H(A(y(o)(ae.label)), 1)
|
|
3548
3548
|
]),
|
|
3549
3549
|
_: 2
|
|
3550
3550
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -3556,10 +3556,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3556
3556
|
default: p(() => [
|
|
3557
3557
|
h(k, { style: { margin: "0 10px" } }, {
|
|
3558
3558
|
default: p(() => [
|
|
3559
|
-
H(A(
|
|
3559
|
+
H(A(y(o)("common.basic.more")), 1),
|
|
3560
3560
|
h(P, { class: "el-icon--right" }, {
|
|
3561
3561
|
default: p(() => [
|
|
3562
|
-
h(
|
|
3562
|
+
h(y(Kt))
|
|
3563
3563
|
]),
|
|
3564
3564
|
_: 1
|
|
3565
3565
|
})
|
|
@@ -3576,7 +3576,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3576
3576
|
default: p(() => [
|
|
3577
3577
|
h(P, null, {
|
|
3578
3578
|
default: p(() => [
|
|
3579
|
-
h(
|
|
3579
|
+
h(y(St))
|
|
3580
3580
|
]),
|
|
3581
3581
|
_: 1
|
|
3582
3582
|
})
|
|
@@ -3586,12 +3586,12 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3586
3586
|
])
|
|
3587
3587
|
]),
|
|
3588
3588
|
(Z = (C = B.pageConfig) == null ? void 0 : C.detailPage) != null && Z.infoCard ? (u(), E("div", ja, [
|
|
3589
|
-
|
|
3589
|
+
v("div", za, [
|
|
3590
3590
|
(u(), I(lt((R = B.pageConfig.detailPage.infoCard.icon) != null ? R : ""), { class: "icon" }))
|
|
3591
3591
|
]),
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3592
|
+
v("div", qa, [
|
|
3593
|
+
v("div", Ha, [
|
|
3594
|
+
v("h1", null, A(M.value), 1),
|
|
3595
3595
|
((se = Y.value) == null ? void 0 : se.length) > 0 ? (u(), I(L, {
|
|
3596
3596
|
key: 0,
|
|
3597
3597
|
size: "small"
|
|
@@ -3602,10 +3602,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3602
3602
|
_: 1
|
|
3603
3603
|
})) : G("", !0)
|
|
3604
3604
|
]),
|
|
3605
|
-
|
|
3605
|
+
v("span", null, A(z.value), 1)
|
|
3606
3606
|
])
|
|
3607
3607
|
])) : G("", !0),
|
|
3608
|
-
|
|
3608
|
+
v("div", Ba, [
|
|
3609
3609
|
h(g, {
|
|
3610
3610
|
modelValue: V.value,
|
|
3611
3611
|
"onUpdate:modelValue": l[1] || (l[1] = (Q) => V.value = Q),
|
|
@@ -3615,7 +3615,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3615
3615
|
var Q, J;
|
|
3616
3616
|
return [
|
|
3617
3617
|
h(j, {
|
|
3618
|
-
label:
|
|
3618
|
+
label: y(o)("common.basic.summary"),
|
|
3619
3619
|
name: "summary"
|
|
3620
3620
|
}, {
|
|
3621
3621
|
default: p(() => [
|
|
@@ -3633,7 +3633,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3633
3633
|
(u(!0), E(oe, null, fe((J = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.tabs, (ae) => {
|
|
3634
3634
|
var te;
|
|
3635
3635
|
return u(), I(j, {
|
|
3636
|
-
label:
|
|
3636
|
+
label: y(o)((te = ae.name) != null ? te : "")
|
|
3637
3637
|
}, null, 8, ["label"]);
|
|
3638
3638
|
}), 256))
|
|
3639
3639
|
];
|
|
@@ -3646,19 +3646,19 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3646
3646
|
ref: b,
|
|
3647
3647
|
model: ee[f.value]
|
|
3648
3648
|
}, null, 8, ["model"])) : G("", !0),
|
|
3649
|
-
h(
|
|
3649
|
+
h(S, {
|
|
3650
3650
|
modelValue: c.value,
|
|
3651
3651
|
"onUpdate:modelValue": l[3] || (l[3] = (Q) => c.value = Q),
|
|
3652
|
-
title:
|
|
3652
|
+
title: y(o)("common.table.select"),
|
|
3653
3653
|
width: "800px"
|
|
3654
3654
|
}, {
|
|
3655
3655
|
footer: p(() => [
|
|
3656
|
-
|
|
3656
|
+
v("span", Wa, [
|
|
3657
3657
|
h(k, {
|
|
3658
3658
|
onClick: l[2] || (l[2] = (Q) => c.value = !1)
|
|
3659
3659
|
}, {
|
|
3660
3660
|
default: p(() => [
|
|
3661
|
-
H(A(
|
|
3661
|
+
H(A(y(o)("common.basic.cancel")), 1)
|
|
3662
3662
|
]),
|
|
3663
3663
|
_: 1
|
|
3664
3664
|
}),
|
|
@@ -3667,7 +3667,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3667
3667
|
onClick: W
|
|
3668
3668
|
}, {
|
|
3669
3669
|
default: p(() => [
|
|
3670
|
-
H(A(
|
|
3670
|
+
H(A(y(o)("common.basic.save")), 1)
|
|
3671
3671
|
]),
|
|
3672
3672
|
_: 1
|
|
3673
3673
|
})
|
|
@@ -3677,8 +3677,8 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3677
3677
|
f.value >= 0 ? (u(), I(ut, {
|
|
3678
3678
|
key: 0,
|
|
3679
3679
|
ref_key: "selectTableRef",
|
|
3680
|
-
ref:
|
|
3681
|
-
model:
|
|
3680
|
+
ref: $,
|
|
3681
|
+
model: y(ne)[f.value]
|
|
3682
3682
|
}, null, 8, ["model"])) : G("", !0)
|
|
3683
3683
|
]),
|
|
3684
3684
|
_: 1
|
|
@@ -3695,18 +3695,18 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3695
3695
|
], 64);
|
|
3696
3696
|
};
|
|
3697
3697
|
}
|
|
3698
|
-
}), Ja = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-
|
|
3698
|
+
}), Ja = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-ab90bf9c"]]), Ka = { class: "page-title" }, Qa = /* @__PURE__ */ $e({
|
|
3699
3699
|
__name: "TablePage",
|
|
3700
3700
|
setup(e) {
|
|
3701
|
-
const o =
|
|
3701
|
+
const o = et(), n = pt(), t = N(), s = N([]), a = pe({
|
|
3702
3702
|
api: "",
|
|
3703
3703
|
fields: []
|
|
3704
3704
|
}), c = pe(tt({}, a));
|
|
3705
3705
|
function r() {
|
|
3706
|
-
var f, b,
|
|
3707
|
-
s.value = [], a.pageConfig && ((b = (f = a.pageConfig) == null ? void 0 : f.tablePage) != null && b.tabViewAttributes) && (s.value = (M = (V = (
|
|
3706
|
+
var f, b, $, V, M;
|
|
3707
|
+
s.value = [], a.pageConfig && ((b = (f = a.pageConfig) == null ? void 0 : f.tablePage) != null && b.tabViewAttributes) && (s.value = (M = (V = ($ = a.pageConfig) == null ? void 0 : $.tablePage) == null ? void 0 : V.tabViewAttributes) == null ? void 0 : M.map((z) => {
|
|
3708
3708
|
let Y;
|
|
3709
|
-
return z.modelKey && Se.value[z.modelKey] ? Y =
|
|
3709
|
+
return z.modelKey && Se.value[z.modelKey] ? Y = qe(Se.value[z.modelKey]) : Y = qe(a), z.queryParams && (Y.tableConfig || (Y.tableConfig = {}), Y.tableConfig.queryParams = z.queryParams), z.fields && (Y.fields = z.fields), z.modelKey && (Y.breadcrumbRoute = a.route), {
|
|
3710
3710
|
key: z.key,
|
|
3711
3711
|
label: z.label,
|
|
3712
3712
|
icon: z.icon,
|
|
@@ -3716,15 +3716,15 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3716
3716
|
}));
|
|
3717
3717
|
}
|
|
3718
3718
|
function i() {
|
|
3719
|
-
var
|
|
3719
|
+
var $, V;
|
|
3720
3720
|
const f = o.params.model;
|
|
3721
3721
|
if (Se.value[f] === void 0) {
|
|
3722
3722
|
console.warn("TablePage.init: model not found", f, Se.value);
|
|
3723
3723
|
return;
|
|
3724
3724
|
}
|
|
3725
|
-
|
|
3726
|
-
const b =
|
|
3727
|
-
Object.assign(a, b), (V = (
|
|
3725
|
+
Be(a);
|
|
3726
|
+
const b = qe(Se.value[f]);
|
|
3727
|
+
Object.assign(a, b), (V = ($ = a.pageConfig) == null ? void 0 : $.tablePage) != null && V.tabViewAttributes || Object.assign(c, a), r();
|
|
3728
3728
|
}
|
|
3729
3729
|
return Ie([
|
|
3730
3730
|
() => n.currentRoute.value,
|
|
@@ -3735,10 +3735,10 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3735
3735
|
immediate: !0,
|
|
3736
3736
|
deep: !0
|
|
3737
3737
|
}), (f, b) => {
|
|
3738
|
-
const
|
|
3738
|
+
const $ = x("el-scrollbar");
|
|
3739
3739
|
return u(), E(oe, null, [
|
|
3740
|
-
|
|
3741
|
-
h(
|
|
3740
|
+
v("h1", Ka, A(y(Fe)(a == null ? void 0 : a.name)), 1),
|
|
3741
|
+
h($, null, {
|
|
3742
3742
|
default: p(() => {
|
|
3743
3743
|
var V, M;
|
|
3744
3744
|
return [
|
|
@@ -3761,12 +3761,12 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3761
3761
|
], 64);
|
|
3762
3762
|
};
|
|
3763
3763
|
}
|
|
3764
|
-
}), Xa = /* @__PURE__ */ ye(Qa, [["__scopeId", "data-v-
|
|
3764
|
+
}), Xa = /* @__PURE__ */ ye(Qa, [["__scopeId", "data-v-6b952f17"]]), Za = [
|
|
3765
3765
|
Jo,
|
|
3766
|
-
|
|
3766
|
+
aa,
|
|
3767
3767
|
Zt,
|
|
3768
|
-
|
|
3769
|
-
|
|
3768
|
+
fa,
|
|
3769
|
+
_a,
|
|
3770
3770
|
bo,
|
|
3771
3771
|
yo,
|
|
3772
3772
|
ut,
|
|
@@ -3779,22 +3779,22 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3779
3779
|
};
|
|
3780
3780
|
export {
|
|
3781
3781
|
Jo as Building,
|
|
3782
|
-
|
|
3782
|
+
aa as ConsoleApp,
|
|
3783
3783
|
Ja as DetailPage,
|
|
3784
3784
|
Zt as Header,
|
|
3785
|
-
|
|
3786
|
-
|
|
3785
|
+
fa as NoPermission,
|
|
3786
|
+
_a as Secondary,
|
|
3787
3787
|
bo as SideMenu,
|
|
3788
3788
|
yo as TabCard,
|
|
3789
3789
|
Xa as TablePage,
|
|
3790
3790
|
ut as TableView,
|
|
3791
|
-
|
|
3791
|
+
ps as activeMenuMapping,
|
|
3792
3792
|
ir as default,
|
|
3793
|
-
|
|
3793
|
+
Ko as en,
|
|
3794
3794
|
ct as i18n,
|
|
3795
3795
|
Dt as menuList,
|
|
3796
3796
|
Se as modelList,
|
|
3797
3797
|
Ot as pinia,
|
|
3798
3798
|
go as useConsoleStore,
|
|
3799
|
-
|
|
3799
|
+
Qo as zh
|
|
3800
3800
|
};
|