auto-vue-basic 0.0.67 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-vue-basic.es.js +200 -209
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as O, createElementBlock as P, openBlock as L, createElementVNode as N, toRef as te, resolveComponent as s, createBlock as T, unref as e, isRef as B, withCtx as o, createVNode as l, normalizeClass as
|
|
2
|
-
import { ApiUtils as W, useLoading as F, useSelect as re, Translate as a, InlineRefreshButton as pe, useForm as J, FormDialog as
|
|
1
|
+
import { defineComponent as O, createElementBlock as P, openBlock as L, createElementVNode as N, toRef as te, resolveComponent as s, createBlock as T, unref as e, isRef as B, withCtx as o, createVNode as l, normalizeClass as ke, toDisplayString as z, ref as I, Fragment as G, withKeys as _e, renderList as ae, isVNode as ve, reactive as Ie, onMounted as Ne, watch as we, nextTick as Be, createCommentVNode as Pe, createTextVNode as Z, onBeforeMount as je } from "vue";
|
|
2
|
+
import { ApiUtils as W, useLoading as F, useSelect as re, Translate as a, InlineRefreshButton as pe, useForm as J, FormDialog as ee, useCrudPage as $, DEFAULT_STATUS_KEY as xe, ModifyButton as le, DEFAULT_REMOVE_KEY as Ke, ProTable as me, DEFAULT_PAGE_KEY as ge, SearchButton as oe, RefreshButton as K, OpenButton as j, useCacheStore as We, RequestButton as Q, BasicDrawer as ce, BasicRadioButton as Me, RulesUtils as Ye, BasicAvatar as Ge, TimeUtils as E, ProTableList as de, AssetsUtils as De, notification as He, DEFAULT_LIST_URL as Qe, REQUEST_LOG_URL as Je, ERROR_LOG_URL as Xe, SQL_LOG_URL as Ze } from "auto-vue-manual";
|
|
3
3
|
const el = {
|
|
4
4
|
tops: "tops",
|
|
5
5
|
rules: "rules"
|
|
@@ -64,7 +64,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
64
64
|
url: Y.urls.tops,
|
|
65
65
|
isArray: !0
|
|
66
66
|
});
|
|
67
|
-
return (
|
|
67
|
+
return (v, u) => {
|
|
68
68
|
const f = s("el-space"), g = s("el-select-v2");
|
|
69
69
|
return L(), T(g, {
|
|
70
70
|
class: "w-full",
|
|
@@ -86,7 +86,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
86
86
|
item: b
|
|
87
87
|
}) => [l(f, null, {
|
|
88
88
|
default: o(() => [N("i", {
|
|
89
|
-
class:
|
|
89
|
+
class: ke(`icon iconfont ${b.icon}`)
|
|
90
90
|
}, null, 2), N("span", null, z(b.translate), 1)]),
|
|
91
91
|
_: 2
|
|
92
92
|
}, 1024)]),
|
|
@@ -163,15 +163,15 @@ const tl = /* @__PURE__ */ O({
|
|
|
163
163
|
trigger: "blur"
|
|
164
164
|
}
|
|
165
165
|
]
|
|
166
|
-
}, { modal: c, title: i, form: p, formData: t, requesting:
|
|
166
|
+
}, { modal: c, title: i, form: p, formData: t, requesting: v, executing: u, open: f, modify: g, submit: b, closed: M } = J(h, V, Y);
|
|
167
167
|
return U({
|
|
168
168
|
open: f,
|
|
169
169
|
modify: g
|
|
170
170
|
}), (x, n) => {
|
|
171
171
|
const d = s("el-form-item"), r = s("el-col"), y = s("el-input-number"), m = s("el-row"), S = s("el-input"), A = s("el-switch"), C = s("el-form");
|
|
172
|
-
return L(), T(e(
|
|
172
|
+
return L(), T(e(ee), {
|
|
173
173
|
modelValue: e(c),
|
|
174
|
-
"onUpdate:modelValue": n[17] || (n[17] = (
|
|
174
|
+
"onUpdate:modelValue": n[17] || (n[17] = (w) => B(c) ? c.value = w : null),
|
|
175
175
|
title: e(i)(),
|
|
176
176
|
width: "1000px",
|
|
177
177
|
executing: e(u),
|
|
@@ -185,7 +185,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
185
185
|
model: e(t),
|
|
186
186
|
"label-width": "auto",
|
|
187
187
|
rules: _,
|
|
188
|
-
disabled: e(
|
|
188
|
+
disabled: e(v) || e(u)
|
|
189
189
|
}, {
|
|
190
190
|
default: o(() => [
|
|
191
191
|
l(m, { gutter: 20 }, {
|
|
@@ -203,7 +203,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
203
203
|
default: o(() => [
|
|
204
204
|
l(tl, {
|
|
205
205
|
modelValue: e(t).menu_id,
|
|
206
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
206
|
+
"onUpdate:modelValue": n[0] || (n[0] = (w) => e(t).menu_id = w)
|
|
207
207
|
}, null, 8, ["modelValue"])
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
@@ -222,7 +222,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
222
222
|
l(y, {
|
|
223
223
|
class: "w-full",
|
|
224
224
|
modelValue: e(t).sort,
|
|
225
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
225
|
+
"onUpdate:modelValue": n[1] || (n[1] = (w) => e(t).sort = w),
|
|
226
226
|
min: 0,
|
|
227
227
|
placeholder: e(a)("base.placeholder.input")
|
|
228
228
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -242,7 +242,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
242
242
|
default: o(() => [
|
|
243
243
|
l(S, {
|
|
244
244
|
modelValue: e(t).module,
|
|
245
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
245
|
+
"onUpdate:modelValue": n[2] || (n[2] = (w) => e(t).module = w),
|
|
246
246
|
placeholder: e(a)("base.placeholder.input")
|
|
247
247
|
}, null, 8, ["modelValue", "placeholder"])
|
|
248
248
|
]),
|
|
@@ -255,7 +255,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
255
255
|
default: o(() => [
|
|
256
256
|
l(S, {
|
|
257
257
|
modelValue: e(t).name,
|
|
258
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
258
|
+
"onUpdate:modelValue": n[3] || (n[3] = (w) => e(t).name = w),
|
|
259
259
|
placeholder: e(a)("base.placeholder.input")
|
|
260
260
|
}, null, 8, ["modelValue", "placeholder"])
|
|
261
261
|
]),
|
|
@@ -268,7 +268,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
268
268
|
default: o(() => [
|
|
269
269
|
l(S, {
|
|
270
270
|
modelValue: e(t).en_name,
|
|
271
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
271
|
+
"onUpdate:modelValue": n[4] || (n[4] = (w) => e(t).en_name = w),
|
|
272
272
|
placeholder: e(a)("base.placeholder.input")
|
|
273
273
|
}, null, 8, ["modelValue", "placeholder"])
|
|
274
274
|
]),
|
|
@@ -281,7 +281,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
281
281
|
default: o(() => [
|
|
282
282
|
l(S, {
|
|
283
283
|
modelValue: e(t).component,
|
|
284
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
284
|
+
"onUpdate:modelValue": n[5] || (n[5] = (w) => e(t).component = w),
|
|
285
285
|
placeholder: e(a)("base.placeholder.input")
|
|
286
286
|
}, null, 8, ["modelValue", "placeholder"])
|
|
287
287
|
]),
|
|
@@ -294,7 +294,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
294
294
|
default: o(() => [
|
|
295
295
|
l(S, {
|
|
296
296
|
modelValue: e(t).url,
|
|
297
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
297
|
+
"onUpdate:modelValue": n[6] || (n[6] = (w) => e(t).url = w),
|
|
298
298
|
placeholder: e(a)("base.placeholder.input")
|
|
299
299
|
}, null, 8, ["modelValue", "placeholder"])
|
|
300
300
|
]),
|
|
@@ -307,7 +307,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
307
307
|
default: o(() => [
|
|
308
308
|
l(S, {
|
|
309
309
|
modelValue: e(t).remark,
|
|
310
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
310
|
+
"onUpdate:modelValue": n[7] || (n[7] = (w) => e(t).remark = w),
|
|
311
311
|
placeholder: e(a)("base.placeholder.input")
|
|
312
312
|
}, null, 8, ["modelValue", "placeholder"])
|
|
313
313
|
]),
|
|
@@ -325,15 +325,15 @@ const tl = /* @__PURE__ */ O({
|
|
|
325
325
|
default: o(() => [
|
|
326
326
|
l(S, {
|
|
327
327
|
modelValue: e(t).icon,
|
|
328
|
-
"onUpdate:modelValue": n[8] || (n[8] = (
|
|
328
|
+
"onUpdate:modelValue": n[8] || (n[8] = (w) => e(t).icon = w),
|
|
329
329
|
placeholder: e(a)("base.placeholder.input"),
|
|
330
|
-
onInput: n[9] || (n[9] = (
|
|
331
|
-
e(t).meta.icon =
|
|
330
|
+
onInput: n[9] || (n[9] = (w) => {
|
|
331
|
+
e(t).meta.icon = w;
|
|
332
332
|
})
|
|
333
333
|
}, {
|
|
334
334
|
prepend: o(() => [
|
|
335
335
|
N("span", {
|
|
336
|
-
class:
|
|
336
|
+
class: ke("iconfont " + e(t).icon)
|
|
337
337
|
}, null, 2)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
@@ -348,7 +348,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
348
348
|
default: o(() => [
|
|
349
349
|
l(S, {
|
|
350
350
|
modelValue: e(t).meta.title,
|
|
351
|
-
"onUpdate:modelValue": n[10] || (n[10] = (
|
|
351
|
+
"onUpdate:modelValue": n[10] || (n[10] = (w) => e(t).meta.title = w),
|
|
352
352
|
placeholder: e(a)("base.placeholder.input")
|
|
353
353
|
}, null, 8, ["modelValue", "placeholder"])
|
|
354
354
|
]),
|
|
@@ -361,7 +361,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
361
361
|
default: o(() => [
|
|
362
362
|
l(S, {
|
|
363
363
|
modelValue: e(t).meta.active,
|
|
364
|
-
"onUpdate:modelValue": n[11] || (n[11] = (
|
|
364
|
+
"onUpdate:modelValue": n[11] || (n[11] = (w) => e(t).meta.active = w),
|
|
365
365
|
placeholder: e(a)("base.placeholder.input")
|
|
366
366
|
}, null, 8, ["modelValue", "placeholder"])
|
|
367
367
|
]),
|
|
@@ -378,7 +378,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
378
378
|
default: o(() => [
|
|
379
379
|
l(A, {
|
|
380
380
|
modelValue: e(t).meta.link,
|
|
381
|
-
"onUpdate:modelValue": n[12] || (n[12] = (
|
|
381
|
+
"onUpdate:modelValue": n[12] || (n[12] = (w) => e(t).meta.link = w)
|
|
382
382
|
}, null, 8, ["modelValue"])
|
|
383
383
|
]),
|
|
384
384
|
_: 1
|
|
@@ -395,7 +395,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
395
395
|
default: o(() => [
|
|
396
396
|
l(A, {
|
|
397
397
|
modelValue: e(t).meta.keep_alive,
|
|
398
|
-
"onUpdate:modelValue": n[13] || (n[13] = (
|
|
398
|
+
"onUpdate:modelValue": n[13] || (n[13] = (w) => e(t).meta.keep_alive = w)
|
|
399
399
|
}, null, 8, ["modelValue"])
|
|
400
400
|
]),
|
|
401
401
|
_: 1
|
|
@@ -412,7 +412,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
412
412
|
default: o(() => [
|
|
413
413
|
l(A, {
|
|
414
414
|
modelValue: e(t).meta.hide,
|
|
415
|
-
"onUpdate:modelValue": n[14] || (n[14] = (
|
|
415
|
+
"onUpdate:modelValue": n[14] || (n[14] = (w) => e(t).meta.hide = w)
|
|
416
416
|
}, null, 8, ["modelValue"])
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
@@ -429,7 +429,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
429
429
|
default: o(() => [
|
|
430
430
|
l(A, {
|
|
431
431
|
modelValue: e(t).meta.full,
|
|
432
|
-
"onUpdate:modelValue": n[15] || (n[15] = (
|
|
432
|
+
"onUpdate:modelValue": n[15] || (n[15] = (w) => e(t).meta.full = w)
|
|
433
433
|
}, null, 8, ["modelValue"])
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
@@ -446,7 +446,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
446
446
|
default: o(() => [
|
|
447
447
|
l(A, {
|
|
448
448
|
modelValue: e(t).meta.affix,
|
|
449
|
-
"onUpdate:modelValue": n[16] || (n[16] = (
|
|
449
|
+
"onUpdate:modelValue": n[16] || (n[16] = (w) => e(t).meta.affix = w)
|
|
450
450
|
}, null, 8, ["modelValue"])
|
|
451
451
|
]),
|
|
452
452
|
_: 1
|
|
@@ -500,7 +500,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
500
500
|
api: Y,
|
|
501
501
|
isArray: !0
|
|
502
502
|
});
|
|
503
|
-
return (
|
|
503
|
+
return (v, u) => {
|
|
504
504
|
const f = s("el-space"), g = s("el-select-v2");
|
|
505
505
|
return L(), T(g, {
|
|
506
506
|
class: "w-full",
|
|
@@ -522,7 +522,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
522
522
|
item: b
|
|
523
523
|
}) => [l(f, null, {
|
|
524
524
|
default: o(() => [N("i", {
|
|
525
|
-
class:
|
|
525
|
+
class: ke(`icon iconfont ${b.icon}`)
|
|
526
526
|
}, null, 2), N("span", null, z(b.translate), 1)]),
|
|
527
527
|
_: 2
|
|
528
528
|
}, 1024)]),
|
|
@@ -580,13 +580,13 @@ const tl = /* @__PURE__ */ O({
|
|
|
580
580
|
trigger: "blur"
|
|
581
581
|
}
|
|
582
582
|
]
|
|
583
|
-
}, { modal: c, title: i, form: p, formData: t, requesting:
|
|
583
|
+
}, { modal: c, title: i, form: p, formData: t, requesting: v, executing: u, open: f, modify: g, submit: b, closed: M } = J(h, V, Se);
|
|
584
584
|
return U({
|
|
585
585
|
open: f,
|
|
586
586
|
modify: g
|
|
587
587
|
}), (x, n) => {
|
|
588
588
|
const d = s("el-form-item"), r = s("el-input-number"), y = s("el-input"), m = s("el-col"), S = s("el-row"), A = s("el-form");
|
|
589
|
-
return L(), T(e(
|
|
589
|
+
return L(), T(e(ee), {
|
|
590
590
|
modelValue: e(c),
|
|
591
591
|
"onUpdate:modelValue": n[6] || (n[6] = (C) => B(c) ? c.value = C : null),
|
|
592
592
|
title: e(i)("menu.rules"),
|
|
@@ -602,7 +602,7 @@ const tl = /* @__PURE__ */ O({
|
|
|
602
602
|
model: e(t),
|
|
603
603
|
"label-width": "auto",
|
|
604
604
|
rules: _,
|
|
605
|
-
disabled: e(
|
|
605
|
+
disabled: e(v) || e(u)
|
|
606
606
|
}, {
|
|
607
607
|
default: o(() => [
|
|
608
608
|
l(S, { gutter: 20 }, {
|
|
@@ -710,8 +710,8 @@ const tl = /* @__PURE__ */ O({
|
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
|
-
function
|
|
714
|
-
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !
|
|
713
|
+
function Ue(R) {
|
|
714
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !ve(R);
|
|
715
715
|
}
|
|
716
716
|
const Il = /* @__PURE__ */ O({
|
|
717
717
|
__name: "index",
|
|
@@ -805,13 +805,13 @@ const Il = /* @__PURE__ */ O({
|
|
|
805
805
|
size: "small",
|
|
806
806
|
text: !0,
|
|
807
807
|
onClick: () => k.value = ""
|
|
808
|
-
},
|
|
808
|
+
}, Ue(y = a("base.cancel")) ? y : {
|
|
809
809
|
default: () => [y]
|
|
810
810
|
}), l(s("el-button"), {
|
|
811
811
|
size: "small",
|
|
812
812
|
type: "danger",
|
|
813
813
|
onClick: () => x(r.key)
|
|
814
|
-
},
|
|
814
|
+
}, Ue(m = a("base.confirm")) ? m : {
|
|
815
815
|
default: () => [m]
|
|
816
816
|
})])]);
|
|
817
817
|
}
|
|
@@ -827,7 +827,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
827
827
|
props: {
|
|
828
828
|
activeValue: 1,
|
|
829
829
|
inactiveValue: 2,
|
|
830
|
-
api: Y.urls[
|
|
830
|
+
api: Y.urls[xe],
|
|
831
831
|
refresh: !0
|
|
832
832
|
}
|
|
833
833
|
},
|
|
@@ -838,7 +838,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
838
838
|
align: "center",
|
|
839
839
|
render: ({
|
|
840
840
|
row: n
|
|
841
|
-
}) => l(
|
|
841
|
+
}) => l(le, {
|
|
842
842
|
size: "default",
|
|
843
843
|
onModify: () => f({
|
|
844
844
|
id: n.id
|
|
@@ -853,7 +853,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
853
853
|
keyword: i,
|
|
854
854
|
search: p,
|
|
855
855
|
refresh: t,
|
|
856
|
-
reset:
|
|
856
|
+
reset: v,
|
|
857
857
|
openFormModal: u,
|
|
858
858
|
editFormModal: f
|
|
859
859
|
} = $(U), {
|
|
@@ -868,8 +868,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
868
868
|
});
|
|
869
869
|
};
|
|
870
870
|
return (n, d) => {
|
|
871
|
-
const r = s("el-button"), y = s("el-input"), m = s("el-radio-button"), S = s("el-radio-group"), A = s("el-space"), C = s("el-page-header"),
|
|
872
|
-
return L(), T(
|
|
871
|
+
const r = s("el-button"), y = s("el-input"), m = s("el-radio-button"), S = s("el-radio-group"), A = s("el-space"), C = s("el-page-header"), w = s("el-card");
|
|
872
|
+
return L(), T(w, {
|
|
873
873
|
class: "basic-card flex-full",
|
|
874
874
|
"body-class": "flex-1",
|
|
875
875
|
onClick: d[5] || (d[5] = () => k.value = "")
|
|
@@ -879,7 +879,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
879
879
|
}, {
|
|
880
880
|
title: o(() => [l(e(K), {
|
|
881
881
|
loading: e(V),
|
|
882
|
-
onRefresh: e(
|
|
882
|
+
onRefresh: e(v)
|
|
883
883
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
884
884
|
onOpen: e(u)
|
|
885
885
|
}, null, 8, ["onOpen"]), l(r, {
|
|
@@ -903,13 +903,13 @@ const Il = /* @__PURE__ */ O({
|
|
|
903
903
|
"onUpdate:modelValue": d[3] || (d[3] = (q) => e(i).status = q),
|
|
904
904
|
onChange: d[4] || (d[4] = (q) => e(p)())
|
|
905
905
|
}, {
|
|
906
|
-
default: o(() => [(L(), P(G, null,
|
|
906
|
+
default: o(() => [(L(), P(G, null, ae([0, 1, 2], (q) => l(m, {
|
|
907
907
|
key: q,
|
|
908
908
|
label: e(a)(`base.DISABLE_ENABLE.${q}`),
|
|
909
909
|
value: q
|
|
910
910
|
}, null, 8, ["label", "value"])), 64))]),
|
|
911
911
|
_: 1
|
|
912
|
-
}, 8, ["modelValue"]), l(e(
|
|
912
|
+
}, 8, ["modelValue"]), l(e(oe), {
|
|
913
913
|
disabled: e(V),
|
|
914
914
|
onSearch: e(p)
|
|
915
915
|
}, null, 8, ["disabled", "onSearch"])]),
|
|
@@ -953,7 +953,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
953
953
|
MenuList: {},
|
|
954
954
|
MenuIndeterminate: {}
|
|
955
955
|
}), { options: p, refresh: t } = re(te(V, "modelValue"), _, { key: "RULE_CHECK", api: Y, url: Y.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
956
|
-
function
|
|
956
|
+
function v() {
|
|
957
957
|
p.value.forEach((x) => {
|
|
958
958
|
var n;
|
|
959
959
|
(n = x.rules) != null && n.length && (i.MenuAll[x.id] = !1, i.MenuIndeterminate[x.id] = !1, i.MenuList[x.id] = []);
|
|
@@ -977,7 +977,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
977
977
|
}), i.checkAll = Object.values(i.MenuAll).every(Boolean), i.indeterminate = !i.checkAll && Object.values(i.MenuList).some((x) => x.length > 0), _("update:modelValue", Object.values(i.MenuList).flat());
|
|
978
978
|
}
|
|
979
979
|
function b() {
|
|
980
|
-
i.checkAll = !1, i.indeterminate = !1, i.MenuAll = {}, i.MenuList = {}, i.MenuIndeterminate = {},
|
|
980
|
+
i.checkAll = !1, i.indeterminate = !1, i.MenuAll = {}, i.MenuList = {}, i.MenuIndeterminate = {}, v(), _("update:modelValue", []), c.value = !1;
|
|
981
981
|
}
|
|
982
982
|
function M(x) {
|
|
983
983
|
var n;
|
|
@@ -992,7 +992,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
992
992
|
return Ne(async () => {
|
|
993
993
|
var x;
|
|
994
994
|
(x = p.value) != null && x.length || await t(), !c.value && V.modelValue && M(V.modelValue);
|
|
995
|
-
}),
|
|
995
|
+
}), we(
|
|
996
996
|
() => V.modelValue,
|
|
997
997
|
(x) => {
|
|
998
998
|
Be(() => {
|
|
@@ -1036,7 +1036,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1036
1036
|
class: "rule-check-content"
|
|
1037
1037
|
}, {
|
|
1038
1038
|
default: o(() => [
|
|
1039
|
-
(L(!0), P(G, null,
|
|
1039
|
+
(L(!0), P(G, null, ae(e(p), (A) => (L(), P("div", {
|
|
1040
1040
|
key: A.id
|
|
1041
1041
|
}, [
|
|
1042
1042
|
l(r, {
|
|
@@ -1054,7 +1054,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1054
1054
|
default: o(() => [
|
|
1055
1055
|
l(y, { style: { "font-size": "15px" } }, {
|
|
1056
1056
|
default: o(() => [
|
|
1057
|
-
|
|
1057
|
+
Z(z(A.translate), 1)
|
|
1058
1058
|
]),
|
|
1059
1059
|
_: 2
|
|
1060
1060
|
}, 1024)
|
|
@@ -1071,7 +1071,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1071
1071
|
onChange: g
|
|
1072
1072
|
}, {
|
|
1073
1073
|
default: o(() => [
|
|
1074
|
-
(L(!0), P(G, null,
|
|
1074
|
+
(L(!0), P(G, null, ae(A.rules, (C) => (L(), T(d, {
|
|
1075
1075
|
key: C.key,
|
|
1076
1076
|
value: C.key
|
|
1077
1077
|
}, {
|
|
@@ -1125,7 +1125,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1125
1125
|
trigger: "blur"
|
|
1126
1126
|
}
|
|
1127
1127
|
]
|
|
1128
|
-
}, { modal: i, title: p, form: t, formData:
|
|
1128
|
+
}, { modal: i, title: p, form: t, formData: v, requesting: u, executing: f, open: g, modify: b, submit: M, closed: x } = J(h, _, he), n = () => {
|
|
1129
1129
|
var d;
|
|
1130
1130
|
(d = V.value) == null || d.cleanChecked(), x();
|
|
1131
1131
|
};
|
|
@@ -1133,8 +1133,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1133
1133
|
open: g,
|
|
1134
1134
|
modify: b
|
|
1135
1135
|
}), (d, r) => {
|
|
1136
|
-
const y = s("el-input"), m = s("el-form-item"), S = s("el-col"), A = s("el-input-number"), C = s("el-row"),
|
|
1137
|
-
return L(), T(e(
|
|
1136
|
+
const y = s("el-input"), m = s("el-form-item"), S = s("el-col"), A = s("el-input-number"), C = s("el-row"), w = s("el-form");
|
|
1137
|
+
return L(), T(e(ee), {
|
|
1138
1138
|
modelValue: e(i),
|
|
1139
1139
|
"onUpdate:modelValue": r[6] || (r[6] = (q) => B(i) ? i.value = q : null),
|
|
1140
1140
|
title: e(p)(),
|
|
@@ -1144,10 +1144,10 @@ const Il = /* @__PURE__ */ O({
|
|
|
1144
1144
|
onSubmit: e(M)
|
|
1145
1145
|
}, {
|
|
1146
1146
|
default: o(() => [
|
|
1147
|
-
l(
|
|
1147
|
+
l(w, {
|
|
1148
1148
|
ref_key: "form",
|
|
1149
1149
|
ref: t,
|
|
1150
|
-
model: e(
|
|
1150
|
+
model: e(v),
|
|
1151
1151
|
"label-width": "auto",
|
|
1152
1152
|
rules: c,
|
|
1153
1153
|
disabled: e(u) || e(f)
|
|
@@ -1163,8 +1163,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1163
1163
|
}, {
|
|
1164
1164
|
default: o(() => [
|
|
1165
1165
|
l(y, {
|
|
1166
|
-
modelValue: e(
|
|
1167
|
-
"onUpdate:modelValue": r[0] || (r[0] = (q) => e(
|
|
1166
|
+
modelValue: e(v).module,
|
|
1167
|
+
"onUpdate:modelValue": r[0] || (r[0] = (q) => e(v).module = q),
|
|
1168
1168
|
placeholder: e(a)("base.placeholder.input")
|
|
1169
1169
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1170
1170
|
]),
|
|
@@ -1182,8 +1182,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1182
1182
|
default: o(() => [
|
|
1183
1183
|
l(A, {
|
|
1184
1184
|
class: "w-full",
|
|
1185
|
-
modelValue: e(
|
|
1186
|
-
"onUpdate:modelValue": r[1] || (r[1] = (q) => e(
|
|
1185
|
+
modelValue: e(v).sort,
|
|
1186
|
+
"onUpdate:modelValue": r[1] || (r[1] = (q) => e(v).sort = q),
|
|
1187
1187
|
min: 0,
|
|
1188
1188
|
placeholder: e(a)("base.placeholder.input")
|
|
1189
1189
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -1202,8 +1202,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1202
1202
|
}, {
|
|
1203
1203
|
default: o(() => [
|
|
1204
1204
|
l(y, {
|
|
1205
|
-
modelValue: e(
|
|
1206
|
-
"onUpdate:modelValue": r[2] || (r[2] = (q) => e(
|
|
1205
|
+
modelValue: e(v).name,
|
|
1206
|
+
"onUpdate:modelValue": r[2] || (r[2] = (q) => e(v).name = q),
|
|
1207
1207
|
placeholder: e(a)("base.placeholder.input")
|
|
1208
1208
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1209
1209
|
]),
|
|
@@ -1215,8 +1215,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1215
1215
|
}, {
|
|
1216
1216
|
default: o(() => [
|
|
1217
1217
|
l(y, {
|
|
1218
|
-
modelValue: e(
|
|
1219
|
-
"onUpdate:modelValue": r[3] || (r[3] = (q) => e(
|
|
1218
|
+
modelValue: e(v).en_name,
|
|
1219
|
+
"onUpdate:modelValue": r[3] || (r[3] = (q) => e(v).en_name = q),
|
|
1220
1220
|
placeholder: e(a)("base.placeholder.input")
|
|
1221
1221
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1222
1222
|
]),
|
|
@@ -1228,8 +1228,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1228
1228
|
}, {
|
|
1229
1229
|
default: o(() => [
|
|
1230
1230
|
l(y, {
|
|
1231
|
-
modelValue: e(
|
|
1232
|
-
"onUpdate:modelValue": r[4] || (r[4] = (q) => e(
|
|
1231
|
+
modelValue: e(v).remark,
|
|
1232
|
+
"onUpdate:modelValue": r[4] || (r[4] = (q) => e(v).remark = q),
|
|
1233
1233
|
placeholder: e(a)("base.placeholder.input")
|
|
1234
1234
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1235
1235
|
]),
|
|
@@ -1243,8 +1243,8 @@ const Il = /* @__PURE__ */ O({
|
|
|
1243
1243
|
l(ml, {
|
|
1244
1244
|
ref_key: "rulesCheck",
|
|
1245
1245
|
ref: V,
|
|
1246
|
-
modelValue: e(
|
|
1247
|
-
"onUpdate:modelValue": r[5] || (r[5] = (q) => e(
|
|
1246
|
+
modelValue: e(v).rules,
|
|
1247
|
+
"onUpdate:modelValue": r[5] || (r[5] = (q) => e(v).rules = q),
|
|
1248
1248
|
disabled: e(u) || e(f)
|
|
1249
1249
|
}, null, 8, ["modelValue", "disabled"])
|
|
1250
1250
|
]),
|
|
@@ -1297,7 +1297,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1297
1297
|
align: "center",
|
|
1298
1298
|
render: ({
|
|
1299
1299
|
row: f
|
|
1300
|
-
}) => l(
|
|
1300
|
+
}) => l(le, {
|
|
1301
1301
|
size: "default",
|
|
1302
1302
|
onModify: () => u({
|
|
1303
1303
|
key: f.key
|
|
@@ -1313,7 +1313,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1313
1313
|
search: i,
|
|
1314
1314
|
reset: p,
|
|
1315
1315
|
refresh: t,
|
|
1316
|
-
openFormModal:
|
|
1316
|
+
openFormModal: v,
|
|
1317
1317
|
editFormModal: u
|
|
1318
1318
|
} = $(U);
|
|
1319
1319
|
return (f, g) => {
|
|
@@ -1329,7 +1329,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1329
1329
|
loading: e(h),
|
|
1330
1330
|
onRefresh: e(p)
|
|
1331
1331
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
1332
|
-
onOpen: e(
|
|
1332
|
+
onOpen: e(v)
|
|
1333
1333
|
}, null, 8, ["onOpen"])]),
|
|
1334
1334
|
content: o(() => [l(M, {
|
|
1335
1335
|
class: "search-bar"
|
|
@@ -1342,7 +1342,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1342
1342
|
clearable: "",
|
|
1343
1343
|
onKeyup: g[1] || (g[1] = _e((d) => e(i)(), ["enter"])),
|
|
1344
1344
|
onClear: g[2] || (g[2] = (d) => e(i)())
|
|
1345
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
|
1345
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
|
|
1346
1346
|
disabled: e(h),
|
|
1347
1347
|
onSearch: g[3] || (g[3] = (d) => e(i)())
|
|
1348
1348
|
}, null, 8, ["disabled"])]),
|
|
@@ -1366,11 +1366,11 @@ const Il = /* @__PURE__ */ O({
|
|
|
1366
1366
|
});
|
|
1367
1367
|
};
|
|
1368
1368
|
}
|
|
1369
|
-
}),
|
|
1369
|
+
}), H = W.routineApi("I18N", "uuid", {
|
|
1370
1370
|
gen: "gen",
|
|
1371
1371
|
modules: "modules",
|
|
1372
1372
|
languages: "languages"
|
|
1373
|
-
}, {}, ["I18N_MODULES"]),
|
|
1373
|
+
}, {}, ["I18N_MODULES"]), ne = W.routineApi("I18N_template", "uuid", {
|
|
1374
1374
|
apps: "apps"
|
|
1375
1375
|
}), Ce = /* @__PURE__ */ O({
|
|
1376
1376
|
__name: "ModuleSelect",
|
|
@@ -1395,7 +1395,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1395
1395
|
}) {
|
|
1396
1396
|
const k = U, h = R, {
|
|
1397
1397
|
requesting: V
|
|
1398
|
-
} = F(
|
|
1398
|
+
} = F(H), {
|
|
1399
1399
|
value: _,
|
|
1400
1400
|
options: c,
|
|
1401
1401
|
change: i,
|
|
@@ -1403,11 +1403,11 @@ const Il = /* @__PURE__ */ O({
|
|
|
1403
1403
|
filterOptions: t
|
|
1404
1404
|
} = re(te(h, "modelValue"), k, {
|
|
1405
1405
|
key: "I18N_MODULES",
|
|
1406
|
-
url:
|
|
1407
|
-
api:
|
|
1406
|
+
url: H.urls.modules,
|
|
1407
|
+
api: H,
|
|
1408
1408
|
isArray: !0
|
|
1409
1409
|
});
|
|
1410
|
-
return (
|
|
1410
|
+
return (v, u) => {
|
|
1411
1411
|
const f = s("el-space"), g = s("el-select-v2");
|
|
1412
1412
|
return L(), T(g, {
|
|
1413
1413
|
class: "w-full",
|
|
@@ -1485,7 +1485,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1485
1485
|
const r = {
|
|
1486
1486
|
isArray: !0,
|
|
1487
1487
|
key: "I18N_LANGUAGES",
|
|
1488
|
-
url:
|
|
1488
|
+
url: H.urls.languages,
|
|
1489
1489
|
params: {}
|
|
1490
1490
|
};
|
|
1491
1491
|
i.GET_CACHE({ ...r, force: !0 }).then((y) => {
|
|
@@ -1493,16 +1493,16 @@ const Il = /* @__PURE__ */ O({
|
|
|
1493
1493
|
});
|
|
1494
1494
|
}
|
|
1495
1495
|
p();
|
|
1496
|
-
const { modal: t, title:
|
|
1496
|
+
const { modal: t, title: v, form: u, formData: f, requesting: g, executing: b, open: M, modify: x, submit: n, closed: d } = J(h, V, H);
|
|
1497
1497
|
return U({
|
|
1498
1498
|
open: M,
|
|
1499
1499
|
modify: x
|
|
1500
1500
|
}), (r, y) => {
|
|
1501
1501
|
const m = s("el-form-item"), S = s("el-input"), A = s("el-space"), C = s("el-form");
|
|
1502
|
-
return L(), T(e(
|
|
1502
|
+
return L(), T(e(ee), {
|
|
1503
1503
|
modelValue: e(t),
|
|
1504
|
-
"onUpdate:modelValue": y[3] || (y[3] = (
|
|
1505
|
-
title: e(
|
|
1504
|
+
"onUpdate:modelValue": y[3] || (y[3] = (w) => B(t) ? t.value = w : null),
|
|
1505
|
+
title: e(v)(),
|
|
1506
1506
|
width: "600px",
|
|
1507
1507
|
executing: e(b),
|
|
1508
1508
|
onClosed: e(d),
|
|
@@ -1526,7 +1526,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1526
1526
|
default: o(() => [
|
|
1527
1527
|
l(Ce, {
|
|
1528
1528
|
modelValue: e(f).module,
|
|
1529
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
1529
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => e(f).module = w)
|
|
1530
1530
|
}, null, 8, ["modelValue"])
|
|
1531
1531
|
]),
|
|
1532
1532
|
_: 1
|
|
@@ -1539,7 +1539,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1539
1539
|
default: o(() => [
|
|
1540
1540
|
l(S, {
|
|
1541
1541
|
modelValue: e(f).key,
|
|
1542
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
1542
|
+
"onUpdate:modelValue": y[1] || (y[1] = (w) => e(f).key = w),
|
|
1543
1543
|
placeholder: e(a)("language.placeholder.key")
|
|
1544
1544
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1545
1545
|
]),
|
|
@@ -1557,14 +1557,14 @@ const Il = /* @__PURE__ */ O({
|
|
|
1557
1557
|
style: { width: "100%" }
|
|
1558
1558
|
}, {
|
|
1559
1559
|
default: o(() => [
|
|
1560
|
-
(L(!0), P(G, null,
|
|
1560
|
+
(L(!0), P(G, null, ae(c.value, (w) => (L(), P("div", { key: w }, [
|
|
1561
1561
|
l(S, {
|
|
1562
|
-
modelValue: e(f).language[
|
|
1563
|
-
"onUpdate:modelValue": (q) => e(f).language[
|
|
1562
|
+
modelValue: e(f).language[w],
|
|
1563
|
+
"onUpdate:modelValue": (q) => e(f).language[w] = q,
|
|
1564
1564
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1565
1565
|
}, {
|
|
1566
1566
|
prepend: o(() => [
|
|
1567
|
-
|
|
1567
|
+
Z(z(w), 1)
|
|
1568
1568
|
]),
|
|
1569
1569
|
_: 2
|
|
1570
1570
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
@@ -1582,7 +1582,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1582
1582
|
default: o(() => [
|
|
1583
1583
|
l(S, {
|
|
1584
1584
|
modelValue: e(f).remark,
|
|
1585
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
1585
|
+
"onUpdate:modelValue": y[2] || (y[2] = (w) => e(f).remark = w),
|
|
1586
1586
|
placeholder: e(a)("base.placeholder.input")
|
|
1587
1587
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1588
1588
|
]),
|
|
@@ -1598,7 +1598,7 @@ const Il = /* @__PURE__ */ O({
|
|
|
1598
1598
|
}
|
|
1599
1599
|
});
|
|
1600
1600
|
function bl(R) {
|
|
1601
|
-
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !
|
|
1601
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !ve(R);
|
|
1602
1602
|
}
|
|
1603
1603
|
const qe = /* @__PURE__ */ O({
|
|
1604
1604
|
__name: "I18N",
|
|
@@ -1639,7 +1639,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1639
1639
|
props: {
|
|
1640
1640
|
activeValue: 1,
|
|
1641
1641
|
inactiveValue: 2,
|
|
1642
|
-
api:
|
|
1642
|
+
api: H.urls[xe],
|
|
1643
1643
|
refresh: !0
|
|
1644
1644
|
}
|
|
1645
1645
|
}, {
|
|
@@ -1650,7 +1650,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1650
1650
|
render: ({
|
|
1651
1651
|
row: y
|
|
1652
1652
|
}) => l(s("el-space"), null, {
|
|
1653
|
-
default: () => [l(
|
|
1653
|
+
default: () => [l(le, {
|
|
1654
1654
|
size: "default",
|
|
1655
1655
|
onModify: () => x({
|
|
1656
1656
|
uuid: y.uuid
|
|
@@ -1666,9 +1666,9 @@ const qe = /* @__PURE__ */ O({
|
|
|
1666
1666
|
}], {
|
|
1667
1667
|
requesting: i,
|
|
1668
1668
|
executing: p
|
|
1669
|
-
} = F(
|
|
1669
|
+
} = F(H), {
|
|
1670
1670
|
tableRef: t,
|
|
1671
|
-
formModalRef:
|
|
1671
|
+
formModalRef: v,
|
|
1672
1672
|
keyword: u,
|
|
1673
1673
|
search: f,
|
|
1674
1674
|
reset: g,
|
|
@@ -1677,7 +1677,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1677
1677
|
editFormModal: x
|
|
1678
1678
|
} = $(_);
|
|
1679
1679
|
function n(y) {
|
|
1680
|
-
return
|
|
1680
|
+
return H.remove({
|
|
1681
1681
|
uuid: y
|
|
1682
1682
|
}).finally(() => {
|
|
1683
1683
|
b();
|
|
@@ -1689,12 +1689,12 @@ const qe = /* @__PURE__ */ O({
|
|
|
1689
1689
|
function r(y) {
|
|
1690
1690
|
V("choosed", y), h.value = !1;
|
|
1691
1691
|
}
|
|
1692
|
-
return
|
|
1692
|
+
return we(() => h.value, (y) => {
|
|
1693
1693
|
y || V("closed");
|
|
1694
1694
|
}), U({
|
|
1695
1695
|
open: d
|
|
1696
1696
|
}), (y, m) => {
|
|
1697
|
-
const S = s("el-input"), A = s("el-radio-button"), C = s("el-radio-group"),
|
|
1697
|
+
const S = s("el-input"), A = s("el-radio-button"), C = s("el-radio-group"), w = s("el-space"), q = s("el-page-header");
|
|
1698
1698
|
return L(), T(e(ce), {
|
|
1699
1699
|
modelValue: h.value,
|
|
1700
1700
|
"onUpdate:modelValue": m[7] || (m[7] = (D) => h.value = D),
|
|
@@ -1711,7 +1711,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1711
1711
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
1712
1712
|
onOpen: e(M)
|
|
1713
1713
|
}, null, 8, ["onOpen"])]),
|
|
1714
|
-
content: o(() => [l(
|
|
1714
|
+
content: o(() => [l(w, {
|
|
1715
1715
|
class: "search-bar"
|
|
1716
1716
|
}, {
|
|
1717
1717
|
default: o(() => [l(S, {
|
|
@@ -1733,13 +1733,13 @@ const qe = /* @__PURE__ */ O({
|
|
|
1733
1733
|
"onUpdate:modelValue": m[4] || (m[4] = (D) => e(u).status = D),
|
|
1734
1734
|
onChange: m[5] || (m[5] = (D) => e(f)())
|
|
1735
1735
|
}, {
|
|
1736
|
-
default: o(() => [(L(), P(G, null,
|
|
1736
|
+
default: o(() => [(L(), P(G, null, ae([0, 1, 2], (D) => l(A, {
|
|
1737
1737
|
key: D,
|
|
1738
1738
|
label: e(a)(`base.DISABLE_ENABLE.${D}`),
|
|
1739
1739
|
value: D
|
|
1740
1740
|
}, null, 8, ["label", "value"])), 64))]),
|
|
1741
1741
|
_: 1
|
|
1742
|
-
}, 8, ["modelValue"]), l(e(
|
|
1742
|
+
}, 8, ["modelValue"]), l(e(oe), {
|
|
1743
1743
|
disabled: e(i),
|
|
1744
1744
|
onSearch: m[6] || (m[6] = (D) => e(f)())
|
|
1745
1745
|
}, null, 8, ["disabled"])]),
|
|
@@ -1751,13 +1751,13 @@ const qe = /* @__PURE__ */ O({
|
|
|
1751
1751
|
ref_key: "tableRef",
|
|
1752
1752
|
ref: t,
|
|
1753
1753
|
columns: c,
|
|
1754
|
-
url: e(
|
|
1754
|
+
url: e(H).urls[e(ge)],
|
|
1755
1755
|
"search-param": e(u),
|
|
1756
1756
|
onRowDblclick: r,
|
|
1757
1757
|
"auto-search": ""
|
|
1758
1758
|
}, null, 8, ["url", "search-param"]), l(fl, {
|
|
1759
1759
|
ref_key: "formModalRef",
|
|
1760
|
-
ref:
|
|
1760
|
+
ref: v,
|
|
1761
1761
|
onRefresh: e(b)
|
|
1762
1762
|
}, null, 8, ["onRefresh"])]),
|
|
1763
1763
|
_: 1
|
|
@@ -1777,7 +1777,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1777
1777
|
keys: [],
|
|
1778
1778
|
values: [],
|
|
1779
1779
|
remark: ""
|
|
1780
|
-
},
|
|
1780
|
+
}, v = {
|
|
1781
1781
|
app: [
|
|
1782
1782
|
{
|
|
1783
1783
|
required: !0,
|
|
@@ -1799,7 +1799,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1799
1799
|
trigger: "change"
|
|
1800
1800
|
}
|
|
1801
1801
|
]
|
|
1802
|
-
}, { modal: u, title: f, form: g, formData: b, requesting: M, executing: x, open: n, modify: d, submit: r, closed: y } = J(_, t,
|
|
1802
|
+
}, { modal: u, title: f, form: g, formData: b, requesting: M, executing: x, open: n, modify: d, submit: r, closed: y } = J(_, t, ne);
|
|
1803
1803
|
function m() {
|
|
1804
1804
|
c.value = "1080px", V();
|
|
1805
1805
|
}
|
|
@@ -1807,21 +1807,21 @@ const qe = /* @__PURE__ */ O({
|
|
|
1807
1807
|
c.value = "600px";
|
|
1808
1808
|
}
|
|
1809
1809
|
function A(C) {
|
|
1810
|
-
let
|
|
1811
|
-
b.keys.push(
|
|
1810
|
+
let w = C.module.toLowerCase() + "." + C.key.toLowerCase();
|
|
1811
|
+
b.keys.push(w), b.values.push(w);
|
|
1812
1812
|
for (const q in C.language)
|
|
1813
1813
|
p.value[q] || (p.value[q] = []), p.value[q].push(C.language[q]);
|
|
1814
1814
|
}
|
|
1815
|
-
return
|
|
1815
|
+
return we(() => u.value, (C) => {
|
|
1816
1816
|
C ? c.value = "600px" : y();
|
|
1817
1817
|
}), U({
|
|
1818
1818
|
open: n,
|
|
1819
1819
|
modify: d
|
|
1820
|
-
}), (C,
|
|
1821
|
-
const q = s("el-page-header"), D = s("el-form-item"), Ee = s("el-button"),
|
|
1820
|
+
}), (C, w) => {
|
|
1821
|
+
const q = s("el-page-header"), D = s("el-form-item"), Ee = s("el-button"), Re = s("el-input"), $e = s("el-tag"), Fe = s("el-space"), ze = s("el-form");
|
|
1822
1822
|
return L(), T(e(ce), {
|
|
1823
1823
|
modelValue: e(u),
|
|
1824
|
-
"onUpdate:modelValue":
|
|
1824
|
+
"onUpdate:modelValue": w[3] || (w[3] = (X) => B(u) ? u.value = X : null),
|
|
1825
1825
|
width: c.value,
|
|
1826
1826
|
"show-close": !1,
|
|
1827
1827
|
class: "basic-drawer"
|
|
@@ -1829,7 +1829,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1829
1829
|
title: o(() => [
|
|
1830
1830
|
l(q, { class: "basic-header" }, {
|
|
1831
1831
|
title: o(() => [
|
|
1832
|
-
|
|
1832
|
+
Z(z(e(f)()), 1)
|
|
1833
1833
|
]),
|
|
1834
1834
|
extra: o(() => [
|
|
1835
1835
|
l(e(Q), {
|
|
@@ -1845,22 +1845,13 @@ const qe = /* @__PURE__ */ O({
|
|
|
1845
1845
|
_: 1
|
|
1846
1846
|
})
|
|
1847
1847
|
]),
|
|
1848
|
-
footer: o(() => [
|
|
1849
|
-
l(e(ye), {
|
|
1850
|
-
modelValue: e(b).app,
|
|
1851
|
-
"onUpdate:modelValue": v[3] || (v[3] = (H) => e(b).app = H),
|
|
1852
|
-
"cache-key": "I18NAPPS",
|
|
1853
|
-
hidden: [0],
|
|
1854
|
-
url: e(X).urls.apps
|
|
1855
|
-
}, null, 8, ["modelValue", "url"])
|
|
1856
|
-
]),
|
|
1857
1848
|
default: o(() => [
|
|
1858
1849
|
l(ze, {
|
|
1859
1850
|
ref_key: "form",
|
|
1860
1851
|
ref: g,
|
|
1861
1852
|
model: e(b),
|
|
1862
1853
|
"label-width": "auto",
|
|
1863
|
-
rules:
|
|
1854
|
+
rules: v,
|
|
1864
1855
|
disabled: e(M) || e(x)
|
|
1865
1856
|
}, {
|
|
1866
1857
|
default: o(() => [
|
|
@@ -1870,12 +1861,12 @@ const qe = /* @__PURE__ */ O({
|
|
|
1870
1861
|
required: ""
|
|
1871
1862
|
}, {
|
|
1872
1863
|
default: o(() => [
|
|
1873
|
-
l(e(
|
|
1864
|
+
l(e(Me), {
|
|
1874
1865
|
modelValue: e(b).app,
|
|
1875
|
-
"onUpdate:modelValue":
|
|
1866
|
+
"onUpdate:modelValue": w[0] || (w[0] = (X) => e(b).app = X),
|
|
1876
1867
|
"cache-key": "I18NAPPS",
|
|
1877
1868
|
hidden: [0],
|
|
1878
|
-
url: e(
|
|
1869
|
+
url: e(ne).urls.apps
|
|
1879
1870
|
}, null, 8, ["modelValue", "url"])
|
|
1880
1871
|
]),
|
|
1881
1872
|
_: 1
|
|
@@ -1886,9 +1877,9 @@ const qe = /* @__PURE__ */ O({
|
|
|
1886
1877
|
required: ""
|
|
1887
1878
|
}, {
|
|
1888
1879
|
default: o(() => [
|
|
1889
|
-
l(
|
|
1880
|
+
l(Re, {
|
|
1890
1881
|
modelValue: e(b).keys,
|
|
1891
|
-
"onUpdate:modelValue":
|
|
1882
|
+
"onUpdate:modelValue": w[1] || (w[1] = (X) => e(b).keys = X),
|
|
1892
1883
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1893
1884
|
}, {
|
|
1894
1885
|
append: o(() => [
|
|
@@ -1908,7 +1899,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1908
1899
|
required: ""
|
|
1909
1900
|
}, {
|
|
1910
1901
|
default: o(() => [
|
|
1911
|
-
|
|
1902
|
+
Z(z(e(b).values.join(":")), 1)
|
|
1912
1903
|
]),
|
|
1913
1904
|
_: 1
|
|
1914
1905
|
}, 8, ["label"]),
|
|
@@ -1916,7 +1907,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1916
1907
|
label: e(a)("i18n.values")
|
|
1917
1908
|
}, {
|
|
1918
1909
|
default: o(() => [
|
|
1919
|
-
(L(!0), P(G, null,
|
|
1910
|
+
(L(!0), P(G, null, ae(p.value, (X, Ve) => (L(), P("div", {
|
|
1920
1911
|
key: Ve,
|
|
1921
1912
|
class: "w-full"
|
|
1922
1913
|
}, [
|
|
@@ -1927,11 +1918,11 @@ const qe = /* @__PURE__ */ O({
|
|
|
1927
1918
|
style: { "min-width": "80px" }
|
|
1928
1919
|
}, {
|
|
1929
1920
|
default: o(() => [
|
|
1930
|
-
|
|
1921
|
+
Z(z(Ve), 1)
|
|
1931
1922
|
]),
|
|
1932
1923
|
_: 2
|
|
1933
1924
|
}, 1032, ["type"]),
|
|
1934
|
-
N("span", null, z(
|
|
1925
|
+
N("span", null, z(X.join("")), 1)
|
|
1935
1926
|
]),
|
|
1936
1927
|
_: 2
|
|
1937
1928
|
}, 1024)
|
|
@@ -1944,9 +1935,9 @@ const qe = /* @__PURE__ */ O({
|
|
|
1944
1935
|
prop: "remark"
|
|
1945
1936
|
}, {
|
|
1946
1937
|
default: o(() => [
|
|
1947
|
-
l(
|
|
1938
|
+
l(Re, {
|
|
1948
1939
|
modelValue: e(b).remark,
|
|
1949
|
-
"onUpdate:modelValue":
|
|
1940
|
+
"onUpdate:modelValue": w[2] || (w[2] = (X) => e(b).remark = X),
|
|
1950
1941
|
placeholder: e(a)("base.placeholder.input")
|
|
1951
1942
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1952
1943
|
]),
|
|
@@ -1970,7 +1961,7 @@ const qe = /* @__PURE__ */ O({
|
|
|
1970
1961
|
gen: "gen_translation"
|
|
1971
1962
|
});
|
|
1972
1963
|
function hl(R) {
|
|
1973
|
-
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !
|
|
1964
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !ve(R);
|
|
1974
1965
|
}
|
|
1975
1966
|
const Bl = /* @__PURE__ */ O({
|
|
1976
1967
|
__name: "index",
|
|
@@ -2010,7 +2001,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2010
2001
|
props: {
|
|
2011
2002
|
activeValue: 1,
|
|
2012
2003
|
inactiveValue: 2,
|
|
2013
|
-
api:
|
|
2004
|
+
api: ne.urls[xe],
|
|
2014
2005
|
refresh: !0
|
|
2015
2006
|
}
|
|
2016
2007
|
}, {
|
|
@@ -2033,7 +2024,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2033
2024
|
render: ({
|
|
2034
2025
|
row: d
|
|
2035
2026
|
}) => l(s("el-space"), null, {
|
|
2036
|
-
default: () => [l(
|
|
2027
|
+
default: () => [l(le, {
|
|
2037
2028
|
size: "default",
|
|
2038
2029
|
disabled: V.value,
|
|
2039
2030
|
onModify: () => b({
|
|
@@ -2050,28 +2041,28 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2050
2041
|
}], {
|
|
2051
2042
|
requesting: h,
|
|
2052
2043
|
executing: V
|
|
2053
|
-
} = F(
|
|
2044
|
+
} = F(ne), {
|
|
2054
2045
|
formModalRef: _,
|
|
2055
2046
|
openFormModal: c
|
|
2056
2047
|
} = $(), {
|
|
2057
2048
|
tableRef: i,
|
|
2058
2049
|
formModalRef: p,
|
|
2059
2050
|
keyword: t,
|
|
2060
|
-
search:
|
|
2051
|
+
search: v,
|
|
2061
2052
|
reset: u,
|
|
2062
2053
|
refresh: f,
|
|
2063
2054
|
openFormModal: g,
|
|
2064
2055
|
editFormModal: b
|
|
2065
2056
|
} = $(U);
|
|
2066
2057
|
function M(d) {
|
|
2067
|
-
return
|
|
2058
|
+
return ne.remove({
|
|
2068
2059
|
uuid: d
|
|
2069
2060
|
}).finally(() => {
|
|
2070
2061
|
f();
|
|
2071
2062
|
});
|
|
2072
2063
|
}
|
|
2073
2064
|
function x() {
|
|
2074
|
-
return
|
|
2065
|
+
return H.gen().finally(() => {
|
|
2075
2066
|
f();
|
|
2076
2067
|
});
|
|
2077
2068
|
}
|
|
@@ -2081,12 +2072,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2081
2072
|
});
|
|
2082
2073
|
}
|
|
2083
2074
|
return (d, r) => {
|
|
2084
|
-
const y = s("el-divider"), m = s("el-input"), S = s("el-radio-button"), A = s("el-radio-group"), C = s("el-space"),
|
|
2075
|
+
const y = s("el-divider"), m = s("el-input"), S = s("el-radio-button"), A = s("el-radio-group"), C = s("el-space"), w = s("el-page-header"), q = s("el-card");
|
|
2085
2076
|
return L(), T(q, {
|
|
2086
2077
|
class: "basic-card flex-full",
|
|
2087
2078
|
"body-class": "flex-1"
|
|
2088
2079
|
}, {
|
|
2089
|
-
header: o(() => [l(
|
|
2080
|
+
header: o(() => [l(w, {
|
|
2090
2081
|
class: "basic-header"
|
|
2091
2082
|
}, {
|
|
2092
2083
|
title: o(() => [l(e(K), {
|
|
@@ -2124,28 +2115,28 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2124
2115
|
"onUpdate:modelValue": r[0] || (r[0] = (D) => e(t).keyword = D),
|
|
2125
2116
|
placeholder: e(a)("base.placeholder.keyword"),
|
|
2126
2117
|
clearable: "",
|
|
2127
|
-
onKeyup: r[1] || (r[1] = _e((D) => e(
|
|
2128
|
-
onClear: r[2] || (r[2] = (D) => e(
|
|
2129
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
|
2118
|
+
onKeyup: r[1] || (r[1] = _e((D) => e(v)(), ["enter"])),
|
|
2119
|
+
onClear: r[2] || (r[2] = (D) => e(v)())
|
|
2120
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(Me), {
|
|
2130
2121
|
modelValue: e(t).app,
|
|
2131
2122
|
"onUpdate:modelValue": r[3] || (r[3] = (D) => e(t).app = D),
|
|
2132
2123
|
"cache-key": "I18NAPPS",
|
|
2133
|
-
url: e(
|
|
2134
|
-
onChange: r[4] || (r[4] = (D) => e(
|
|
2124
|
+
url: e(ne).urls.apps,
|
|
2125
|
+
onChange: r[4] || (r[4] = (D) => e(v)())
|
|
2135
2126
|
}, null, 8, ["modelValue", "url"]), l(A, {
|
|
2136
2127
|
modelValue: e(t).status,
|
|
2137
2128
|
"onUpdate:modelValue": r[5] || (r[5] = (D) => e(t).status = D),
|
|
2138
|
-
onChange: r[6] || (r[6] = (D) => e(
|
|
2129
|
+
onChange: r[6] || (r[6] = (D) => e(v)())
|
|
2139
2130
|
}, {
|
|
2140
|
-
default: o(() => [(L(), P(G, null,
|
|
2131
|
+
default: o(() => [(L(), P(G, null, ae([0, 1, 2], (D) => l(S, {
|
|
2141
2132
|
key: D,
|
|
2142
2133
|
label: e(a)(`base.DISABLE_ENABLE.${D}`),
|
|
2143
2134
|
value: D
|
|
2144
2135
|
}, null, 8, ["label", "value"])), 64))]),
|
|
2145
2136
|
_: 1
|
|
2146
|
-
}, 8, ["modelValue"]), l(e(
|
|
2137
|
+
}, 8, ["modelValue"]), l(e(oe), {
|
|
2147
2138
|
disabled: e(h),
|
|
2148
|
-
onSearch: r[7] || (r[7] = (D) => e(
|
|
2139
|
+
onSearch: r[7] || (r[7] = (D) => e(v)())
|
|
2149
2140
|
}, null, 8, ["disabled"])]),
|
|
2150
2141
|
_: 1
|
|
2151
2142
|
})]),
|
|
@@ -2155,7 +2146,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2155
2146
|
ref_key: "tableRef",
|
|
2156
2147
|
ref: i,
|
|
2157
2148
|
columns: k,
|
|
2158
|
-
url: e(
|
|
2149
|
+
url: e(ne).urls[e(ge)],
|
|
2159
2150
|
"search-param": e(t),
|
|
2160
2151
|
"auto-search": ""
|
|
2161
2152
|
}, null, 8, ["url", "search-param"]), l(qe, {
|
|
@@ -2171,7 +2162,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2171
2162
|
});
|
|
2172
2163
|
};
|
|
2173
2164
|
}
|
|
2174
|
-
}),
|
|
2165
|
+
}), ye = W.routineApi("admin", "key"), Vl = /* @__PURE__ */ O({
|
|
2175
2166
|
__name: "AdminFormModal",
|
|
2176
2167
|
emits: ["refresh"],
|
|
2177
2168
|
setup(R, { expose: U, emit: k }) {
|
|
@@ -2184,7 +2175,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2184
2175
|
language: "zh-CN",
|
|
2185
2176
|
remark: "",
|
|
2186
2177
|
roles: []
|
|
2187
|
-
}, { modal: _, title: c, form: i, formData: p, requesting: t, executing:
|
|
2178
|
+
}, { modal: _, title: c, form: i, formData: p, requesting: t, executing: v, open: u, modify: f, submit: g, closed: b } = J(h, V, ye), M = {
|
|
2188
2179
|
username: [
|
|
2189
2180
|
{
|
|
2190
2181
|
required: !0,
|
|
@@ -2239,13 +2230,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2239
2230
|
open: u,
|
|
2240
2231
|
modify: f
|
|
2241
2232
|
}), (d, r) => {
|
|
2242
|
-
const y = s("el-input"), m = s("el-form-item"), S = s("el-radio-button"), A = s("el-radio-group"), C = s("el-checkbox"),
|
|
2243
|
-
return L(), T(e(
|
|
2233
|
+
const y = s("el-input"), m = s("el-form-item"), S = s("el-radio-button"), A = s("el-radio-group"), C = s("el-checkbox"), w = s("el-checkbox-group"), q = s("el-form");
|
|
2234
|
+
return L(), T(e(ee), {
|
|
2244
2235
|
modelValue: e(_),
|
|
2245
2236
|
"onUpdate:modelValue": r[7] || (r[7] = (D) => B(_) ? _.value = D : null),
|
|
2246
2237
|
title: e(c)(),
|
|
2247
2238
|
width: "600px",
|
|
2248
|
-
executing: e(
|
|
2239
|
+
executing: e(v),
|
|
2249
2240
|
onClosed: e(b),
|
|
2250
2241
|
onSubmit: e(g)
|
|
2251
2242
|
}, {
|
|
@@ -2256,7 +2247,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2256
2247
|
model: e(p),
|
|
2257
2248
|
"label-width": "auto",
|
|
2258
2249
|
rules: M,
|
|
2259
|
-
disabled: e(t) || e(
|
|
2250
|
+
disabled: e(t) || e(v)
|
|
2260
2251
|
}, {
|
|
2261
2252
|
default: o(() => [
|
|
2262
2253
|
l(m, {
|
|
@@ -2328,13 +2319,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2328
2319
|
default: o(() => [
|
|
2329
2320
|
l(S, { value: "zh-CN" }, {
|
|
2330
2321
|
default: o(() => [...r[8] || (r[8] = [
|
|
2331
|
-
|
|
2322
|
+
Z("zh-CN", -1)
|
|
2332
2323
|
])]),
|
|
2333
2324
|
_: 1
|
|
2334
2325
|
}),
|
|
2335
2326
|
l(S, { value: "en-US" }, {
|
|
2336
2327
|
default: o(() => [...r[9] || (r[9] = [
|
|
2337
|
-
|
|
2328
|
+
Z("en-US", -1)
|
|
2338
2329
|
])]),
|
|
2339
2330
|
_: 1
|
|
2340
2331
|
})
|
|
@@ -2349,17 +2340,17 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2349
2340
|
prop: "roles"
|
|
2350
2341
|
}, {
|
|
2351
2342
|
default: o(() => [
|
|
2352
|
-
l(
|
|
2343
|
+
l(w, {
|
|
2353
2344
|
modelValue: e(p).roles,
|
|
2354
2345
|
"onUpdate:modelValue": r[5] || (r[5] = (D) => e(p).roles = D)
|
|
2355
2346
|
}, {
|
|
2356
2347
|
default: o(() => [
|
|
2357
|
-
(L(!0), P(G, null,
|
|
2348
|
+
(L(!0), P(G, null, ae(x.value, (D) => (L(), T(C, {
|
|
2358
2349
|
key: D.key,
|
|
2359
2350
|
value: D.key
|
|
2360
2351
|
}, {
|
|
2361
2352
|
default: o(() => [
|
|
2362
|
-
|
|
2353
|
+
Z(z(D.translate), 1)
|
|
2363
2354
|
]),
|
|
2364
2355
|
_: 2
|
|
2365
2356
|
}, 1032, ["value"]))), 128))
|
|
@@ -2443,21 +2434,21 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2443
2434
|
align: "center",
|
|
2444
2435
|
render: ({
|
|
2445
2436
|
row: f
|
|
2446
|
-
}) => l(
|
|
2437
|
+
}) => l(le, {
|
|
2447
2438
|
onModify: () => u({
|
|
2448
2439
|
key: f.key
|
|
2449
2440
|
})
|
|
2450
2441
|
}, null)
|
|
2451
2442
|
}], {
|
|
2452
2443
|
requesting: h
|
|
2453
|
-
} = F(
|
|
2444
|
+
} = F(ye), {
|
|
2454
2445
|
tableRef: V,
|
|
2455
2446
|
formModalRef: _,
|
|
2456
2447
|
keyword: c,
|
|
2457
2448
|
search: i,
|
|
2458
2449
|
reset: p,
|
|
2459
2450
|
refresh: t,
|
|
2460
|
-
openFormModal:
|
|
2451
|
+
openFormModal: v,
|
|
2461
2452
|
editFormModal: u
|
|
2462
2453
|
} = $(U);
|
|
2463
2454
|
return (f, g) => {
|
|
@@ -2473,7 +2464,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2473
2464
|
loading: e(h),
|
|
2474
2465
|
onRefresh: e(p)
|
|
2475
2466
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
2476
|
-
onOpen: e(
|
|
2467
|
+
onOpen: e(v)
|
|
2477
2468
|
}, null, 8, ["onOpen"])]),
|
|
2478
2469
|
content: o(() => [l(M, {
|
|
2479
2470
|
class: "search-bar"
|
|
@@ -2486,7 +2477,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2486
2477
|
clearable: "",
|
|
2487
2478
|
onKeyup: g[1] || (g[1] = _e((d) => e(i)(), ["enter"])),
|
|
2488
2479
|
onClear: g[2] || (g[2] = (d) => e(i)())
|
|
2489
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
|
2480
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
|
|
2490
2481
|
disabled: e(h),
|
|
2491
2482
|
onSearch: g[3] || (g[3] = (d) => e(i)())
|
|
2492
2483
|
}, null, 8, ["disabled"])]),
|
|
@@ -2499,7 +2490,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2499
2490
|
ref: V,
|
|
2500
2491
|
size: "small",
|
|
2501
2492
|
columns: k,
|
|
2502
|
-
url: e(
|
|
2493
|
+
url: e(ye).urls[e(ge)],
|
|
2503
2494
|
"search-param": e(c),
|
|
2504
2495
|
"auto-search": ""
|
|
2505
2496
|
}, null, 8, ["url", "search-param"]), l(Vl, {
|
|
@@ -2544,7 +2535,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2544
2535
|
});
|
|
2545
2536
|
return U({
|
|
2546
2537
|
refresh: p
|
|
2547
|
-
}), (
|
|
2538
|
+
}), (v, u) => {
|
|
2548
2539
|
const f = s("el-select-v2");
|
|
2549
2540
|
return L(), T(f, {
|
|
2550
2541
|
modelValue: e(c),
|
|
@@ -2581,13 +2572,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2581
2572
|
prefix: [{ required: !0, message: a("base.placeholder.input base.prefix"), trigger: "blur" }],
|
|
2582
2573
|
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
|
2583
2574
|
en_name: [{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }]
|
|
2584
|
-
}, { modal: c, title: i, form: p, formData: t, requesting:
|
|
2575
|
+
}, { modal: c, title: i, form: p, formData: t, requesting: v, executing: u, open: f, modify: g, submit: b, closed: M } = J(h, V, se);
|
|
2585
2576
|
return U({
|
|
2586
2577
|
open: f,
|
|
2587
2578
|
modify: g
|
|
2588
2579
|
}), (x, n) => {
|
|
2589
2580
|
const d = s("el-form-item"), r = s("el-input"), y = s("el-form");
|
|
2590
|
-
return L(), T(e(
|
|
2581
|
+
return L(), T(e(ee), {
|
|
2591
2582
|
modelValue: e(c),
|
|
2592
2583
|
"onUpdate:modelValue": n[7] || (n[7] = (m) => B(c) ? c.value = m : null),
|
|
2593
2584
|
title: e(i)("config.site"),
|
|
@@ -2603,7 +2594,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2603
2594
|
model: e(t),
|
|
2604
2595
|
"label-width": "auto",
|
|
2605
2596
|
rules: _,
|
|
2606
|
-
disabled: e(
|
|
2597
|
+
disabled: e(v) || e(u)
|
|
2607
2598
|
}, {
|
|
2608
2599
|
default: o(() => [
|
|
2609
2600
|
l(d, {
|
|
@@ -2742,7 +2733,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2742
2733
|
});
|
|
2743
2734
|
return U({
|
|
2744
2735
|
refresh: p
|
|
2745
|
-
}), (
|
|
2736
|
+
}), (v, u) => {
|
|
2746
2737
|
const f = s("el-select-v2");
|
|
2747
2738
|
return L(), T(f, {
|
|
2748
2739
|
modelValue: e(c),
|
|
@@ -2774,13 +2765,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2774
2765
|
}, _ = {
|
|
2775
2766
|
provider_id: [{ required: !0, message: a("base.placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2776
2767
|
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }]
|
|
2777
|
-
}, { modal: c, title: i, form: p, formData: t, requesting:
|
|
2768
|
+
}, { modal: c, title: i, form: p, formData: t, requesting: v, executing: u, open: f, modify: g, submit: b, closed: M } = J(h, V, fe);
|
|
2778
2769
|
return U({
|
|
2779
2770
|
open: f,
|
|
2780
2771
|
modify: g
|
|
2781
2772
|
}), (x, n) => {
|
|
2782
2773
|
const d = s("el-form-item"), r = s("el-input"), y = s("el-date-picker"), m = s("el-form");
|
|
2783
|
-
return L(), T(e(
|
|
2774
|
+
return L(), T(e(ee), {
|
|
2784
2775
|
modelValue: e(c),
|
|
2785
2776
|
"onUpdate:modelValue": n[4] || (n[4] = (S) => B(c) ? c.value = S : null),
|
|
2786
2777
|
title: e(i)("config.domain"),
|
|
@@ -2796,7 +2787,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2796
2787
|
model: e(t),
|
|
2797
2788
|
"label-width": "auto",
|
|
2798
2789
|
rules: _,
|
|
2799
|
-
disabled: e(
|
|
2790
|
+
disabled: e(v) || e(u)
|
|
2800
2791
|
}, {
|
|
2801
2792
|
default: o(() => [
|
|
2802
2793
|
l(d, {
|
|
@@ -2898,7 +2889,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2898
2889
|
api: se,
|
|
2899
2890
|
isArray: !0
|
|
2900
2891
|
}, {
|
|
2901
|
-
formatOptions: (
|
|
2892
|
+
formatOptions: (v) => v.map((u) => {
|
|
2902
2893
|
var f;
|
|
2903
2894
|
return {
|
|
2904
2895
|
...u,
|
|
@@ -2909,7 +2900,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2909
2900
|
});
|
|
2910
2901
|
return U({
|
|
2911
2902
|
refresh: p
|
|
2912
|
-
}), (
|
|
2903
|
+
}), (v, u) => {
|
|
2913
2904
|
const f = s("el-select-v2");
|
|
2914
2905
|
return L(), T(f, {
|
|
2915
2906
|
modelValue: e(c),
|
|
@@ -2948,14 +2939,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2948
2939
|
path: [{ required: !0, message: a("base.placeholder.input base.path"), trigger: "blur" }],
|
|
2949
2940
|
email: [{ required: !0, message: a("base.placeholder.input base.email"), trigger: "blur" }],
|
|
2950
2941
|
encryption: [{ required: !0, message: a("base.placeholder.input config.encryption"), trigger: "blur" }]
|
|
2951
|
-
}, { modal: c, title: i, form: p, formData: t, requesting:
|
|
2942
|
+
}, { modal: c, title: i, form: p, formData: t, requesting: v, executing: u, open: f, modify: g, submit: b, closed: M } = J(h, V, ue);
|
|
2952
2943
|
return U({
|
|
2953
2944
|
open: f,
|
|
2954
2945
|
modify: g,
|
|
2955
2946
|
formData: t
|
|
2956
2947
|
}), (x, n) => {
|
|
2957
2948
|
const d = s("el-form-item"), r = s("el-radio-button"), y = s("el-radio-group"), m = s("el-input"), S = s("el-form");
|
|
2958
|
-
return L(), T(e(
|
|
2949
|
+
return L(), T(e(ee), {
|
|
2959
2950
|
modelValue: e(c),
|
|
2960
2951
|
"onUpdate:modelValue": n[8] || (n[8] = (A) => B(c) ? c.value = A : null),
|
|
2961
2952
|
title: e(i)("ssl.ssl"),
|
|
@@ -2971,7 +2962,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2971
2962
|
model: e(t),
|
|
2972
2963
|
"label-width": "auto",
|
|
2973
2964
|
rules: _,
|
|
2974
|
-
disabled: e(
|
|
2965
|
+
disabled: e(v) || e(u)
|
|
2975
2966
|
}, {
|
|
2976
2967
|
default: o(() => [
|
|
2977
2968
|
l(d, {
|
|
@@ -3123,13 +3114,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3123
3114
|
key: { required: !0, message: a("base.placeholder.input base.key"), trigger: "blur" },
|
|
3124
3115
|
secret: { required: !0, message: a("base.placeholder.input config.secret"), trigger: "blur" },
|
|
3125
3116
|
end_point: { required: !0, message: a("base.placeholder.input config.endpoint"), trigger: "blur" }
|
|
3126
|
-
}, { modal: c, title: i, form: p, formData: t, requesting:
|
|
3117
|
+
}, { modal: c, title: i, form: p, formData: t, requesting: v, executing: u, open: f, modify: g, submit: b, closed: M } = J(h, V, be);
|
|
3127
3118
|
return U({
|
|
3128
3119
|
open: f,
|
|
3129
3120
|
modify: g
|
|
3130
3121
|
}), (x, n) => {
|
|
3131
3122
|
const d = s("el-input"), r = s("el-form-item"), y = s("el-form");
|
|
3132
|
-
return L(), T(e(
|
|
3123
|
+
return L(), T(e(ee), {
|
|
3133
3124
|
modelValue: e(c),
|
|
3134
3125
|
"onUpdate:modelValue": n[6] || (n[6] = (m) => B(c) ? c.value = m : null),
|
|
3135
3126
|
title: e(i)("config.domain"),
|
|
@@ -3145,7 +3136,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3145
3136
|
model: e(t),
|
|
3146
3137
|
"label-width": "auto",
|
|
3147
3138
|
rules: _,
|
|
3148
|
-
disabled: e(
|
|
3139
|
+
disabled: e(v) || e(u)
|
|
3149
3140
|
}, {
|
|
3150
3141
|
default: o(() => [
|
|
3151
3142
|
l(r, {
|
|
@@ -3270,7 +3261,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3270
3261
|
render: ({
|
|
3271
3262
|
rowData: u
|
|
3272
3263
|
}) => l(s("el-space"), null, {
|
|
3273
|
-
default: () => [l(
|
|
3264
|
+
default: () => [l(le, {
|
|
3274
3265
|
icon: "icon-edit",
|
|
3275
3266
|
t: "",
|
|
3276
3267
|
onModify: () => p({
|
|
@@ -3338,7 +3329,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3338
3329
|
editFormModal: p
|
|
3339
3330
|
} = $(), {
|
|
3340
3331
|
formModalRef: t,
|
|
3341
|
-
openFormModal:
|
|
3332
|
+
openFormModal: v,
|
|
3342
3333
|
editFormModal: u
|
|
3343
3334
|
} = $(), {
|
|
3344
3335
|
formModalRef: f,
|
|
@@ -3372,7 +3363,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3372
3363
|
render: ({
|
|
3373
3364
|
rowData: x
|
|
3374
3365
|
}) => l(s("el-space"), null, {
|
|
3375
|
-
default: () => [l(
|
|
3366
|
+
default: () => [l(le, {
|
|
3376
3367
|
icon: "icon-edit",
|
|
3377
3368
|
t: "",
|
|
3378
3369
|
onModify: () => p({
|
|
@@ -3387,7 +3378,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3387
3378
|
var n;
|
|
3388
3379
|
x.ssl && x.ssl.id ? u({
|
|
3389
3380
|
id: (n = x.ssl) == null ? void 0 : n.id
|
|
3390
|
-
}) : (t.value.formData.domain_id = x.id, t.value.formData.site_id = 0,
|
|
3381
|
+
}) : (t.value.formData.domain_id = x.id, t.value.formData.site_id = 0, v());
|
|
3391
3382
|
}
|
|
3392
3383
|
}, null)]
|
|
3393
3384
|
})
|
|
@@ -3465,7 +3456,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3465
3456
|
formModalRef: i,
|
|
3466
3457
|
refresh: p,
|
|
3467
3458
|
openFormModal: t,
|
|
3468
|
-
editFormModal:
|
|
3459
|
+
editFormModal: v
|
|
3469
3460
|
} = $(), u = [
|
|
3470
3461
|
{
|
|
3471
3462
|
prop: "client",
|
|
@@ -3507,12 +3498,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3507
3498
|
render: ({
|
|
3508
3499
|
rowData: M
|
|
3509
3500
|
}) => l(s("el-space"), null, {
|
|
3510
|
-
default: () => [l(
|
|
3501
|
+
default: () => [l(le, {
|
|
3511
3502
|
size: "default",
|
|
3512
3503
|
icon: "icon-edit",
|
|
3513
3504
|
t: "",
|
|
3514
3505
|
disabled: h.value,
|
|
3515
|
-
onModify: () =>
|
|
3506
|
+
onModify: () => v({
|
|
3516
3507
|
id: M.id
|
|
3517
3508
|
})
|
|
3518
3509
|
}, null), l(Q, {
|
|
@@ -3591,7 +3582,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3591
3582
|
}, 8, ["modelValue"]);
|
|
3592
3583
|
};
|
|
3593
3584
|
}
|
|
3594
|
-
}),
|
|
3585
|
+
}), Ae = W.routineApi("SSLLog", "id"), Sl = /* @__PURE__ */ O({
|
|
3595
3586
|
__name: "SSLLogTableDrawer",
|
|
3596
3587
|
props: {
|
|
3597
3588
|
ssl: {
|
|
@@ -3605,7 +3596,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3605
3596
|
const k = R, {
|
|
3606
3597
|
requesting: h,
|
|
3607
3598
|
executing: V
|
|
3608
|
-
} = F([
|
|
3599
|
+
} = F([Ae, ue]), _ = I(!1), {
|
|
3609
3600
|
tableRef: c,
|
|
3610
3601
|
refresh: i
|
|
3611
3602
|
} = $(), p = [{
|
|
@@ -3627,7 +3618,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3627
3618
|
}], t = () => {
|
|
3628
3619
|
_.value = !0;
|
|
3629
3620
|
};
|
|
3630
|
-
function
|
|
3621
|
+
function v() {
|
|
3631
3622
|
ue.gen({
|
|
3632
3623
|
id: k.ssl.id
|
|
3633
3624
|
}).then((f) => {
|
|
@@ -3667,7 +3658,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3667
3658
|
icon: "icon-key",
|
|
3668
3659
|
disabled: e(V),
|
|
3669
3660
|
loading: e(V),
|
|
3670
|
-
onClick:
|
|
3661
|
+
onClick: v
|
|
3671
3662
|
}, null, 8, ["disabled", "loading"]), l(e(Q), {
|
|
3672
3663
|
size: "default",
|
|
3673
3664
|
type: "primary",
|
|
@@ -3683,7 +3674,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3683
3674
|
ref: c,
|
|
3684
3675
|
size: "small",
|
|
3685
3676
|
"row-key": "id",
|
|
3686
|
-
url: e(
|
|
3677
|
+
url: e(Ae).urls.search,
|
|
3687
3678
|
columns: p,
|
|
3688
3679
|
loading: e(h)
|
|
3689
3680
|
}, null, 8, ["url", "loading"])]),
|
|
@@ -3705,7 +3696,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3705
3696
|
openFormModal: p,
|
|
3706
3697
|
editFormModal: t
|
|
3707
3698
|
} = $(), {
|
|
3708
|
-
formModalRef:
|
|
3699
|
+
formModalRef: v,
|
|
3709
3700
|
openFormModal: u
|
|
3710
3701
|
} = $(), {
|
|
3711
3702
|
formModalRef: f,
|
|
@@ -3743,7 +3734,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3743
3734
|
default: () => [l(s("el-text"), null, {
|
|
3744
3735
|
default: () => {
|
|
3745
3736
|
var y;
|
|
3746
|
-
return [(y = r.ssl) == null ? void 0 : y.renewal_days,
|
|
3737
|
+
return [(y = r.ssl) == null ? void 0 : y.renewal_days, Z(" 天")];
|
|
3747
3738
|
}
|
|
3748
3739
|
}), l(s("el-button"), {
|
|
3749
3740
|
size: "small",
|
|
@@ -3771,7 +3762,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3771
3762
|
cellRenderer: ({
|
|
3772
3763
|
rowData: r
|
|
3773
3764
|
}) => l(s("el-space"), null, {
|
|
3774
|
-
default: () => [l(
|
|
3765
|
+
default: () => [l(le, {
|
|
3775
3766
|
icon: "icon-edit",
|
|
3776
3767
|
t: "",
|
|
3777
3768
|
onModify: () => t({
|
|
@@ -3847,7 +3838,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3847
3838
|
onRefresh: e(i)
|
|
3848
3839
|
}, null, 8, ["onRefresh"]), l(Ml, {
|
|
3849
3840
|
ref_key: "domainTableDrawerRef",
|
|
3850
|
-
ref:
|
|
3841
|
+
ref: v
|
|
3851
3842
|
}, null, 512), l(Dl, {
|
|
3852
3843
|
ref_key: "sslTableDrawerRef",
|
|
3853
3844
|
ref: f
|
|
@@ -3896,7 +3887,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3896
3887
|
reset: i
|
|
3897
3888
|
} = $(U);
|
|
3898
3889
|
return (p, t) => {
|
|
3899
|
-
const
|
|
3890
|
+
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
3900
3891
|
return L(), T(g, {
|
|
3901
3892
|
class: "basic-card flex-full",
|
|
3902
3893
|
"body-class": "flex-1"
|
|
@@ -3911,7 +3902,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3911
3902
|
content: o(() => [l(u, {
|
|
3912
3903
|
class: "search-bar"
|
|
3913
3904
|
}, {
|
|
3914
|
-
default: o(() => [l(
|
|
3905
|
+
default: o(() => [l(v, {
|
|
3915
3906
|
modelValue: e(_).dates,
|
|
3916
3907
|
"onUpdate:modelValue": t[0] || (t[0] = (b) => e(_).dates = b),
|
|
3917
3908
|
class: "basic-search-datetimerange",
|
|
@@ -3923,7 +3914,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3923
3914
|
"end-placeholder": e(a)("base.end_at"),
|
|
3924
3915
|
clearable: !1,
|
|
3925
3916
|
onChange: t[1] || (t[1] = (b) => e(c)())
|
|
3926
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(
|
|
3917
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(oe), {
|
|
3927
3918
|
disabled: e(h),
|
|
3928
3919
|
onSearch: t[2] || (t[2] = (b) => e(c)())
|
|
3929
3920
|
}, null, 8, ["disabled"])]),
|
|
@@ -3974,7 +3965,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3974
3965
|
reset: i
|
|
3975
3966
|
} = $(U);
|
|
3976
3967
|
return (p, t) => {
|
|
3977
|
-
const
|
|
3968
|
+
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
3978
3969
|
return L(), T(g, {
|
|
3979
3970
|
class: "basic-card flex-full",
|
|
3980
3971
|
"body-class": "flex-1"
|
|
@@ -3989,7 +3980,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3989
3980
|
content: o(() => [l(u, {
|
|
3990
3981
|
class: "search-bar"
|
|
3991
3982
|
}, {
|
|
3992
|
-
default: o(() => [l(
|
|
3983
|
+
default: o(() => [l(v, {
|
|
3993
3984
|
modelValue: e(_).dates,
|
|
3994
3985
|
"onUpdate:modelValue": t[0] || (t[0] = (b) => e(_).dates = b),
|
|
3995
3986
|
class: "basic-search-daterange",
|
|
@@ -4001,7 +3992,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4001
3992
|
"end-placeholder": e(a)("base.end_at"),
|
|
4002
3993
|
clearable: !1,
|
|
4003
3994
|
onChange: t[1] || (t[1] = (b) => e(c)())
|
|
4004
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(
|
|
3995
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(oe), {
|
|
4005
3996
|
disabled: e(h),
|
|
4006
3997
|
onSearch: t[2] || (t[2] = (b) => e(c)())
|
|
4007
3998
|
}, null, 8, ["disabled"])]),
|
|
@@ -4052,7 +4043,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4052
4043
|
reset: i
|
|
4053
4044
|
} = $(U);
|
|
4054
4045
|
return (p, t) => {
|
|
4055
|
-
const
|
|
4046
|
+
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
4056
4047
|
return L(), T(g, {
|
|
4057
4048
|
class: "basic-card flex-full",
|
|
4058
4049
|
"body-class": "flex-1"
|
|
@@ -4067,7 +4058,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4067
4058
|
content: o(() => [l(u, {
|
|
4068
4059
|
class: "search-bar"
|
|
4069
4060
|
}, {
|
|
4070
|
-
default: o(() => [l(
|
|
4061
|
+
default: o(() => [l(v, {
|
|
4071
4062
|
modelValue: e(_).dates,
|
|
4072
4063
|
"onUpdate:modelValue": t[0] || (t[0] = (b) => e(_).dates = b),
|
|
4073
4064
|
class: "basic-search-daterange",
|
|
@@ -4079,7 +4070,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4079
4070
|
"end-placeholder": e(a)("base.end_at"),
|
|
4080
4071
|
clearable: !1,
|
|
4081
4072
|
onChange: t[1] || (t[1] = (b) => e(c)())
|
|
4082
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(
|
|
4073
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(oe), {
|
|
4083
4074
|
disabled: e(h),
|
|
4084
4075
|
onSearch: t[2] || (t[2] = (b) => e(c)())
|
|
4085
4076
|
}, null, 8, ["disabled"])]),
|