@vancone/console-component 0.1.1-beta.31 → 0.1.1-beta.32
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/package.json
CHANGED
|
@@ -26,7 +26,7 @@ var xe = (e, t, o) => new Promise((n, s) => {
|
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as A, createElementVNode as y, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as x, Fragment as
|
|
29
|
+
import { openBlock as p, createElementBlock as A, createElementVNode as y, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as x, Fragment as ie, renderList as fe, toDisplayString as D, normalizeStyle as je, ref as V, onMounted as Dt, createBlock as I, createTextVNode as K, createCommentVNode as J, nextTick as He, resolveDynamicComponent as st, effectScope as Ft, markRaw as Me, toRaw as We, hasInjectionContext as Co, inject as ko, getCurrentInstance as xo, watch as Ee, isRef as Je, isReactive as gt, toRef as ct, computed as Te, getCurrentScope as $o, onScopeDispose as Eo, toRefs as xt, createStaticVNode as Oo, normalizeClass as Rt, resolveDirective as Gt, withDirectives as Lt } from "vue";
|
|
30
30
|
import { useRoute as Ke, useRouter as it } from "vue-router";
|
|
31
31
|
import Po from "axios";
|
|
32
32
|
import { ElMessage as ut, ElMessageBox as $t } from "element-plus";
|
|
@@ -168,10 +168,10 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
|
|
|
168
168
|
}, {
|
|
169
169
|
default: d(() => [
|
|
170
170
|
y("div", nn, [
|
|
171
|
-
(p(!0), A(
|
|
171
|
+
(p(!0), A(ie, null, fe(t, (f) => (p(), A("div", sn, [
|
|
172
172
|
y("h1", null, D(f.name), 1),
|
|
173
173
|
y("div", rn, [
|
|
174
|
-
(p(!0), A(
|
|
174
|
+
(p(!0), A(ie, null, fe(f.apps, (w) => {
|
|
175
175
|
var $, N;
|
|
176
176
|
return p(), A("a", {
|
|
177
177
|
style: je([{ "text-decoration": "none" }, { pointerEvents: (($ = w.homepageUrl) == null ? void 0 : $.length) > 0 ? "auto" : "none" }]),
|
|
@@ -421,7 +421,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
421
421
|
function B() {
|
|
422
422
|
window.open(a.helpDocUrl, "_blank");
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function ce(R) {
|
|
425
425
|
if (R === "allProjects")
|
|
426
426
|
alert("show all projects");
|
|
427
427
|
else
|
|
@@ -433,7 +433,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
433
433
|
}
|
|
434
434
|
return (R, G) => {
|
|
435
435
|
const ee = E("el-icon"), _ = E("el-dropdown-item"), h = E("el-dropdown-menu"), S = E("el-dropdown"), P = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), C = E("el-menu-item"), O = E("el-menu"), L = E("el-drawer");
|
|
436
|
-
return p(), A(
|
|
436
|
+
return p(), A(ie, null, [
|
|
437
437
|
y("div", $n, [
|
|
438
438
|
y("div", En, [
|
|
439
439
|
y("div", {
|
|
@@ -448,12 +448,12 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
448
448
|
a.headerProjectConfig ? (p(), I(S, {
|
|
449
449
|
key: 0,
|
|
450
450
|
placement: "bottom-start",
|
|
451
|
-
onCommand:
|
|
451
|
+
onCommand: ce
|
|
452
452
|
}, {
|
|
453
453
|
dropdown: d(() => [
|
|
454
454
|
m(h, { style: { width: "300px" } }, {
|
|
455
455
|
default: d(() => [
|
|
456
|
-
(p(!0), A(
|
|
456
|
+
(p(!0), A(ie, null, fe(i.value, (U) => (p(), I(_, {
|
|
457
457
|
command: U.id
|
|
458
458
|
}, {
|
|
459
459
|
default: d(() => [
|
|
@@ -615,7 +615,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
615
615
|
"popper-style": "height: 80px; left: -165px"
|
|
616
616
|
}, {
|
|
617
617
|
default: d(() => [
|
|
618
|
-
(p(!0), A(
|
|
618
|
+
(p(!0), A(ie, null, fe(N, (U) => (p(), A("div", {
|
|
619
619
|
class: "select-list",
|
|
620
620
|
onClick: (T) => F(U.id)
|
|
621
621
|
}, [
|
|
@@ -683,7 +683,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
|
|
|
683
683
|
];
|
|
684
684
|
}),
|
|
685
685
|
default: d(() => [
|
|
686
|
-
(p(!0), A(
|
|
686
|
+
(p(!0), A(ie, null, fe(o.menu.children, (a) => (p(), I(s, {
|
|
687
687
|
key: a.path,
|
|
688
688
|
route: a,
|
|
689
689
|
menu: a
|
|
@@ -914,7 +914,7 @@ function Qn(e, t, o, n) {
|
|
|
914
914
|
}, 4e4);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function le(e, t) {
|
|
918
918
|
const o = "🍍 " + e;
|
|
919
919
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
920
920
|
}
|
|
@@ -923,20 +923,20 @@ function bt(e) {
|
|
|
923
923
|
}
|
|
924
924
|
function to() {
|
|
925
925
|
if (!("clipboard" in navigator))
|
|
926
|
-
return
|
|
926
|
+
return le("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
927
927
|
}
|
|
928
928
|
function oo(e) {
|
|
929
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
929
|
+
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;
|
|
930
930
|
}
|
|
931
931
|
function Xn(e) {
|
|
932
932
|
return xe(this, null, function* () {
|
|
933
933
|
if (!to())
|
|
934
934
|
try {
|
|
935
|
-
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
935
|
+
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), le("Global state copied to clipboard.");
|
|
936
936
|
} catch (t) {
|
|
937
937
|
if (oo(t))
|
|
938
938
|
return;
|
|
939
|
-
|
|
939
|
+
le("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
}
|
|
@@ -944,11 +944,11 @@ function Zn(e) {
|
|
|
944
944
|
return xe(this, null, function* () {
|
|
945
945
|
if (!to())
|
|
946
946
|
try {
|
|
947
|
-
no(e, JSON.parse(yield navigator.clipboard.readText())),
|
|
947
|
+
no(e, JSON.parse(yield navigator.clipboard.readText())), le("Global state pasted from clipboard.");
|
|
948
948
|
} catch (t) {
|
|
949
949
|
if (oo(t))
|
|
950
950
|
return;
|
|
951
|
-
|
|
951
|
+
le("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
952
952
|
}
|
|
953
953
|
});
|
|
954
954
|
}
|
|
@@ -959,7 +959,7 @@ function es(e) {
|
|
|
959
959
|
type: "text/plain;charset=utf-8"
|
|
960
960
|
}), "pinia-state.json");
|
|
961
961
|
} catch (t) {
|
|
962
|
-
|
|
962
|
+
le("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
965
|
}
|
|
@@ -986,9 +986,9 @@ function os(e) {
|
|
|
986
986
|
if (!o)
|
|
987
987
|
return;
|
|
988
988
|
const { text: n, file: s } = o;
|
|
989
|
-
no(e, JSON.parse(n)),
|
|
989
|
+
no(e, JSON.parse(n)), le(`Global state imported from "${s.name}".`);
|
|
990
990
|
} catch (t) {
|
|
991
|
-
|
|
991
|
+
le("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
994
|
}
|
|
@@ -1088,7 +1088,7 @@ function is(e, t) {
|
|
|
1088
1088
|
componentStateTypes: nt,
|
|
1089
1089
|
app: e
|
|
1090
1090
|
}, (o) => {
|
|
1091
|
-
typeof o.now != "function" &&
|
|
1091
|
+
typeof o.now != "function" && le("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.addTimelineLayer({
|
|
1092
1092
|
id: Ne,
|
|
1093
1093
|
label: "Pinia 🍍",
|
|
1094
1094
|
color: 15064968
|
|
@@ -1133,7 +1133,7 @@ function is(e, t) {
|
|
|
1133
1133
|
tooltip: 'Reset the state (with "$reset")',
|
|
1134
1134
|
action: (n) => {
|
|
1135
1135
|
const s = t._s.get(n);
|
|
1136
|
-
s ? typeof s.$reset != "function" ?
|
|
1136
|
+
s ? typeof s.$reset != "function" ? le(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), le(`Store "${n}" reset.`)) : le(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
]
|
|
@@ -1192,7 +1192,7 @@ function is(e, t) {
|
|
|
1192
1192
|
if (n.app === e && n.inspectorId === ue) {
|
|
1193
1193
|
const r = n.nodeId === ot ? t : t._s.get(n.nodeId);
|
|
1194
1194
|
if (!r)
|
|
1195
|
-
return
|
|
1195
|
+
return le(`store "${n.nodeId}" not found`, "error");
|
|
1196
1196
|
const { path: l } = n;
|
|
1197
1197
|
bt(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Ge = !1, n.set(r, l, n.state.value), Ge = !0;
|
|
1198
1198
|
}
|
|
@@ -1200,10 +1200,10 @@ function is(e, t) {
|
|
|
1200
1200
|
if (n.type.startsWith("🍍")) {
|
|
1201
1201
|
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1202
1202
|
if (!r)
|
|
1203
|
-
return
|
|
1203
|
+
return le(`store "${s}" not found`, "error");
|
|
1204
1204
|
const { path: l } = n;
|
|
1205
1205
|
if (l[0] !== "state")
|
|
1206
|
-
return
|
|
1206
|
+
return le(`Invalid path for store "${s}":
|
|
1207
1207
|
${l}
|
|
1208
1208
|
Only state can be modified.`);
|
|
1209
1209
|
l[0] = "$state", Ge = !1, n.set(r, l, n.state.value), Ge = !0;
|
|
@@ -1337,8 +1337,8 @@ function cs(e, t) {
|
|
|
1337
1337
|
});
|
|
1338
1338
|
const { $dispose: r } = t;
|
|
1339
1339
|
t.$dispose = () => {
|
|
1340
|
-
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges &&
|
|
1341
|
-
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges &&
|
|
1340
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && le(`Disposed "${t.$id}" store 🗑`);
|
|
1341
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && le(`"${t.$id}" store installed 🆕`);
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
1344
|
let ro = 0, Pe;
|
|
@@ -1490,7 +1490,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1490
1490
|
Z === C && (f = !0);
|
|
1491
1491
|
}), w = !0, Re($, c, n.state.value[e]);
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1493
|
+
const ce = r ? function() {
|
|
1494
1494
|
const { state: c } = o, C = c ? c() : {};
|
|
1495
1495
|
this.$patch((O) => {
|
|
1496
1496
|
_e(O, C);
|
|
@@ -1543,7 +1543,7 @@ function ht(e, t, o = {}, n, s, r) {
|
|
|
1543
1543
|
$id: e,
|
|
1544
1544
|
$onAction: Vt.bind(null, N),
|
|
1545
1545
|
$patch: B,
|
|
1546
|
-
$reset:
|
|
1546
|
+
$reset: ce,
|
|
1547
1547
|
$subscribe(u, c = {}) {
|
|
1548
1548
|
const C = Vt($, u, c.detached, () => O()), O = l.run(() => Ee(() => n.state.value[e], (L) => {
|
|
1549
1549
|
(c.flush === "sync" ? w : f) && u({
|
|
@@ -1918,7 +1918,7 @@ const po = /* @__PURE__ */ hs("console", {
|
|
|
1918
1918
|
router: ""
|
|
1919
1919
|
}, {
|
|
1920
1920
|
default: d(() => [
|
|
1921
|
-
(p(!0), A(
|
|
1921
|
+
(p(!0), A(ie, null, fe(x(Ot), (a) => (p(), I(Rn, {
|
|
1922
1922
|
key: a.path,
|
|
1923
1923
|
menu: a
|
|
1924
1924
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -1939,7 +1939,7 @@ const po = /* @__PURE__ */ hs("console", {
|
|
|
1939
1939
|
const t = po(yt), o = Ke(), n = V(t.menu.collapsed), s = V(), r = e;
|
|
1940
1940
|
return (l, a) => {
|
|
1941
1941
|
const i = E("router-view"), f = E("el-scrollbar");
|
|
1942
|
-
return p(), A(
|
|
1942
|
+
return p(), A(ie, null, [
|
|
1943
1943
|
x(o).query.embedded !== "true" ? (p(), I(Wt, {
|
|
1944
1944
|
key: 0,
|
|
1945
1945
|
title: r.title,
|
|
@@ -2049,7 +2049,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2049
2049
|
deep: !0
|
|
2050
2050
|
}
|
|
2051
2051
|
), (a, i) => (p(), A("div", Ls, [
|
|
2052
|
-
(p(!0), A(
|
|
2052
|
+
(p(!0), A(ie, null, fe(s.cards, (f) => (p(), A("div", {
|
|
2053
2053
|
class: Rt(["card", { "card-selected": r.value === f.key }]),
|
|
2054
2054
|
onClick: (w) => l(f)
|
|
2055
2055
|
}, [
|
|
@@ -2132,8 +2132,8 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2132
2132
|
if (Y === "select") {
|
|
2133
2133
|
if (z) {
|
|
2134
2134
|
let se = `${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=${te}`;
|
|
2135
|
-
const
|
|
2136
|
-
|
|
2135
|
+
const ae = (j = v == null ? void 0 : v.selectAttributes) == null ? void 0 : j.queryParamName, me = (H = v == null ? void 0 : v.selectAttributes) == null ? void 0 : H.queryParamValueField;
|
|
2136
|
+
ae && (se = `${se}?${ae}=${s.id}`), me || Ce(se, "GET", {}).then(({ data: he }) => {
|
|
2137
2137
|
var oe;
|
|
2138
2138
|
if ((oe = S.formItemAttributes) != null && oe.selectAttributes) {
|
|
2139
2139
|
let ge = [];
|
|
@@ -2145,8 +2145,8 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2145
2145
|
});
|
|
2146
2146
|
} else if (ne) {
|
|
2147
2147
|
let W = ne;
|
|
2148
|
-
const se = (g = v == null ? void 0 : v.selectAttributes) == null ? void 0 : g.queryParamName,
|
|
2149
|
-
se && (
|
|
2148
|
+
const se = (g = v == null ? void 0 : v.selectAttributes) == null ? void 0 : g.queryParamName, ae = (k = v == null ? void 0 : v.selectAttributes) == null ? void 0 : k.queryParamValueField;
|
|
2149
|
+
se && (ae ? W = `${W}?${se}=${r[ae]}` : W = `${W}?${se}=${s.id}`, console.log("Use select option API, url = %s, queryParamValueField = %s, formData = %o", W, ae, r)), Ce(W, "GET", {}).then(({ data: me }) => {
|
|
2150
2150
|
var he;
|
|
2151
2151
|
if ((he = S.formItemAttributes) != null && he.selectAttributes) {
|
|
2152
2152
|
let oe = [];
|
|
@@ -2199,7 +2199,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2199
2199
|
return r[_.prop];
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function ce(_) {
|
|
2203
2203
|
var h;
|
|
2204
2204
|
return ((h = _.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
|
|
2205
2205
|
}
|
|
@@ -2260,14 +2260,14 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2260
2260
|
inline: !s.disableInline
|
|
2261
2261
|
}, {
|
|
2262
2262
|
default: d(() => [
|
|
2263
|
-
(p(!0), A(
|
|
2263
|
+
(p(!0), A(ie, null, fe($.value, (b) => (p(), I(L, {
|
|
2264
2264
|
class: "form-item",
|
|
2265
2265
|
style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2266
2266
|
prop: b.prop,
|
|
2267
2267
|
label: Z(b)
|
|
2268
2268
|
}, {
|
|
2269
2269
|
default: d(() => {
|
|
2270
|
-
var j, H, g, k, v, Y, z, te, ne, re, Q, W, se,
|
|
2270
|
+
var j, H, g, k, v, Y, z, te, ne, re, Q, W, se, ae, me, he;
|
|
2271
2271
|
return [
|
|
2272
2272
|
R("input", b) ? (p(), I(S, {
|
|
2273
2273
|
key: 0,
|
|
@@ -2275,7 +2275,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2275
2275
|
modelValue: r[b.prop],
|
|
2276
2276
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2277
2277
|
placeholder: (j = b.formItemAttributes) == null ? void 0 : j.placeholder,
|
|
2278
|
-
disabled:
|
|
2278
|
+
disabled: ce(b)
|
|
2279
2279
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
|
|
2280
2280
|
w(b) ? (p(), A("span", Ws, D(B(b)), 1)) : J("", !0),
|
|
2281
2281
|
G(b, "switch") ? (p(), I(P, {
|
|
@@ -2300,13 +2300,13 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2300
2300
|
"default-first-option": (z = (Y = b.formItemAttributes) == null ? void 0 : Y.selectAttributes) == null ? void 0 : z.allowCreate,
|
|
2301
2301
|
modelValue: r[b.prop],
|
|
2302
2302
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2303
|
-
disabled:
|
|
2303
|
+
disabled: ce(b),
|
|
2304
2304
|
onChange: (oe) => ee(b)
|
|
2305
2305
|
}, {
|
|
2306
2306
|
default: d(() => {
|
|
2307
2307
|
var oe, ge;
|
|
2308
2308
|
return [
|
|
2309
|
-
(p(!0), A(
|
|
2309
|
+
(p(!0), A(ie, null, fe((ge = (oe = b.formItemAttributes) == null ? void 0 : oe.selectAttributes) == null ? void 0 : ge.options, (Ie) => (p(), I(c, {
|
|
2310
2310
|
value: Ie.value,
|
|
2311
2311
|
label: Ie.label
|
|
2312
2312
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -2320,7 +2320,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2320
2320
|
"onUpdate:modelValue": (oe) => r[b.prop] = oe,
|
|
2321
2321
|
min: (re = (ne = (te = b.formItemAttributes) == null ? void 0 : te.inputNumber) == null ? void 0 : ne.min) != null ? re : Number.NEGATIVE_INFINITY,
|
|
2322
2322
|
max: (se = (W = (Q = b.formItemAttributes) == null ? void 0 : Q.inputNumber) == null ? void 0 : W.max) != null ? se : Number.POSITIVE_INFINITY,
|
|
2323
|
-
step: (he = (me = (
|
|
2323
|
+
step: (he = (me = (ae = b.formItemAttributes) == null ? void 0 : ae.inputNumber) == null ? void 0 : me.step) != null ? he : 1,
|
|
2324
2324
|
"value-on-clear": -10
|
|
2325
2325
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : J("", !0)
|
|
2326
2326
|
];
|
|
@@ -2334,7 +2334,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2334
2334
|
]);
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
|
-
}), ho = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-
|
|
2337
|
+
}), ho = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-32d25b13"]]), Ys = { class: "console-dialog__body" }, Ks = {
|
|
2338
2338
|
key: 0,
|
|
2339
2339
|
class: "process-view"
|
|
2340
2340
|
}, Qs = { class: "operation-button-wrapper" }, go = /* @__PURE__ */ Se({
|
|
@@ -2383,11 +2383,11 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
|
|
|
2383
2383
|
style: je({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2384
2384
|
}, [
|
|
2385
2385
|
y("div", Qs, [
|
|
2386
|
-
(p(!0), A(
|
|
2387
|
-
onClick: (R) =>
|
|
2386
|
+
(p(!0), A(ie, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ce) => (p(), I(F, {
|
|
2387
|
+
onClick: (R) => ce.function(a.value.formData)
|
|
2388
2388
|
}, {
|
|
2389
2389
|
default: d(() => [
|
|
2390
|
-
K(D(x(n)(
|
|
2390
|
+
K(D(x(n)(ce.label)), 1)
|
|
2391
2391
|
]),
|
|
2392
2392
|
_: 2
|
|
2393
2393
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2470,7 +2470,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2470
2470
|
setup(e, { expose: t }) {
|
|
2471
2471
|
const { t: o } = rt.global, n = e, s = de([]), r = de({
|
|
2472
2472
|
showPane: !0
|
|
2473
|
-
}), l = V(""), a = V(!0), i = V(!1), f = it(), w = V(""), $ = de([]), N = de([]), M = V(), q = V([]), F = V("create"), Z = V(!0), B = V(!1),
|
|
2473
|
+
}), l = V(""), a = V(!0), i = V(!1), f = it(), w = V(""), $ = de([]), N = de([]), M = V(), q = V([]), F = V("create"), Z = V(!0), B = V(!1), ce = V(""), R = de({
|
|
2474
2474
|
pageSize: 10,
|
|
2475
2475
|
pageNo: 1,
|
|
2476
2476
|
totalElements: 0
|
|
@@ -2528,7 +2528,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2528
2528
|
}
|
|
2529
2529
|
function P() {
|
|
2530
2530
|
var g, k;
|
|
2531
|
-
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((g = r.functions) == null ? void 0 : g.create) !== void 0 ? (k = r.functions) == null || k.create() : (F.value = "create",
|
|
2531
|
+
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((g = r.functions) == null ? void 0 : g.create) !== void 0 ? (k = r.functions) == null || k.create() : (F.value = "create", ce.value = "", i.value = !0);
|
|
2532
2532
|
}
|
|
2533
2533
|
function u(g, k) {
|
|
2534
2534
|
n.model.api && Ce(n.model.api, "DELETE", k.id).then(({ data: v }) => {
|
|
@@ -2571,7 +2571,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2571
2571
|
query: {
|
|
2572
2572
|
id: k.id
|
|
2573
2573
|
}
|
|
2574
|
-
}) : (
|
|
2574
|
+
}) : (ce.value = k.id, F.value = "update", i.value = !0);
|
|
2575
2575
|
}
|
|
2576
2576
|
function U() {
|
|
2577
2577
|
var v;
|
|
@@ -2674,7 +2674,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2674
2674
|
refresh: S,
|
|
2675
2675
|
updateConfigAndRefresh: h
|
|
2676
2676
|
}), (g, k) => {
|
|
2677
|
-
const v = E("el-checkbox"), Y = E("el-badge"), z = E("el-button"), te = E("el-dropdown-item"), ne = E("el-dropdown-menu"), re = E("el-dropdown"), Q = E("el-icon"), W = E("el-tooltip"), se = E("el-input"),
|
|
2677
|
+
const v = E("el-checkbox"), Y = E("el-badge"), z = E("el-button"), te = E("el-dropdown-item"), ne = E("el-dropdown-menu"), re = E("el-dropdown"), Q = E("el-icon"), W = E("el-tooltip"), se = E("el-input"), ae = E("el-table-column"), me = E("router-link"), he = E("el-tag"), oe = E("el-popconfirm"), ge = E("el-table"), Ie = E("el-pagination"), _o = Gt("loading");
|
|
2678
2678
|
return p(), A("div", {
|
|
2679
2679
|
class: Rt({ "table-view-wrapper": r.showPane })
|
|
2680
2680
|
}, [
|
|
@@ -2876,14 +2876,14 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2876
2876
|
default: d(() => {
|
|
2877
2877
|
var pe;
|
|
2878
2878
|
return [
|
|
2879
|
-
r.readOnly ? J("", !0) : (p(), I(
|
|
2879
|
+
r.readOnly ? J("", !0) : (p(), I(ae, {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
type: "selection",
|
|
2882
2882
|
width: "50"
|
|
2883
2883
|
})),
|
|
2884
|
-
(p(!0), A(
|
|
2884
|
+
(p(!0), A(ie, null, fe(G.value, (X) => {
|
|
2885
2885
|
var Oe;
|
|
2886
|
-
return p(), I(
|
|
2886
|
+
return p(), I(ae, {
|
|
2887
2887
|
prop: X.prop,
|
|
2888
2888
|
label: b(X),
|
|
2889
2889
|
width: (Oe = X.tableColumnAttributes) == null ? void 0 : Oe.width,
|
|
@@ -2922,7 +2922,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2922
2922
|
_: 2
|
|
2923
2923
|
}, 1032, ["prop", "label", "width"]);
|
|
2924
2924
|
}), 256)),
|
|
2925
|
-
r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), I(
|
|
2925
|
+
r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), I(ae, {
|
|
2926
2926
|
key: 1,
|
|
2927
2927
|
label: x(o)("common.table.operation"),
|
|
2928
2928
|
width: "120"
|
|
@@ -2962,13 +2962,13 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
2962
2962
|
]),
|
|
2963
2963
|
_: 1
|
|
2964
2964
|
}, 8, ["label"])) : J("", !0),
|
|
2965
|
-
r.operations !== void 0 && !r.readOnly ? (p(), I(
|
|
2965
|
+
r.operations !== void 0 && !r.readOnly ? (p(), I(ae, {
|
|
2966
2966
|
key: 2,
|
|
2967
2967
|
label: x(o)("common.table.operation"),
|
|
2968
2968
|
width: "120"
|
|
2969
2969
|
}, {
|
|
2970
2970
|
default: d((X) => [
|
|
2971
|
-
(p(!0), A(
|
|
2971
|
+
(p(!0), A(ie, null, fe(r.operations, (Oe) => (p(), I(z, {
|
|
2972
2972
|
class: "operation-button",
|
|
2973
2973
|
link: "",
|
|
2974
2974
|
type: "primary",
|
|
@@ -3008,7 +3008,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3008
3008
|
m(go, {
|
|
3009
3009
|
model: g.model,
|
|
3010
3010
|
mode: F.value,
|
|
3011
|
-
id:
|
|
3011
|
+
id: ce.value,
|
|
3012
3012
|
afterSubmitFunc: S,
|
|
3013
3013
|
visible: i.value,
|
|
3014
3014
|
"onUpdate:visible": k[2] || (k[2] = (pe) => i.value = pe)
|
|
@@ -3025,7 +3025,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3025
3025
|
const { t } = Qe(), o = Ke(), n = it(), s = Te(() => o.query.id), r = V(!1), l = V(!1), a = V("view"), i = V(), f = V(-1), w = V(), $ = V(), N = V("summary"), M = V(""), q = V(""), F = V(""), Z = V(0), B = de({
|
|
3026
3026
|
api: "",
|
|
3027
3027
|
fields: []
|
|
3028
|
-
}),
|
|
3028
|
+
}), ce = de([]);
|
|
3029
3029
|
let R = [];
|
|
3030
3030
|
Ee([
|
|
3031
3031
|
() => n.currentRoute.value,
|
|
@@ -3087,7 +3087,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3087
3087
|
}
|
|
3088
3088
|
function h() {
|
|
3089
3089
|
var O, L, U;
|
|
3090
|
-
|
|
3090
|
+
ce.splice(0);
|
|
3091
3091
|
const u = o.params.model;
|
|
3092
3092
|
if (be.value[u] === void 0) {
|
|
3093
3093
|
console.warn("Detail page model not exist:", u);
|
|
@@ -3101,7 +3101,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3101
3101
|
if (C)
|
|
3102
3102
|
for (let T of C) {
|
|
3103
3103
|
const b = Le(be.value[T.modelKey]);
|
|
3104
|
-
if (
|
|
3104
|
+
if (ce.push(b), T.type === "table") {
|
|
3105
3105
|
b.tableConfig || (b.tableConfig = {});
|
|
3106
3106
|
let j = b.tableConfig;
|
|
3107
3107
|
j.showPane = !1, T.modelRelationType === "associated" ? _(T, b, j) : T.modelRelationType === "child" && (R.push({
|
|
@@ -3156,7 +3156,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3156
3156
|
return (u, c) => {
|
|
3157
3157
|
var v, Y, z, te, ne, re;
|
|
3158
3158
|
const C = E("el-page-header"), O = E("el-button"), L = E("el-icon"), U = E("el-dropdown-item"), T = E("el-dropdown-menu"), b = E("el-dropdown"), j = E("el-tag"), H = E("el-tab-pane"), g = E("el-tabs"), k = E("el-dialog");
|
|
3159
|
-
return p(), A(
|
|
3159
|
+
return p(), A(ie, null, [
|
|
3160
3160
|
y("div", ar, [
|
|
3161
3161
|
m(C, {
|
|
3162
3162
|
onClick: c[0] || (c[0] = (Q) => x(n).back())
|
|
@@ -3188,8 +3188,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3188
3188
|
default: d(() => {
|
|
3189
3189
|
var Q, W;
|
|
3190
3190
|
return [
|
|
3191
|
-
(p(!0), A(
|
|
3192
|
-
onClick: (
|
|
3191
|
+
(p(!0), A(ie, null, fe((W = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : W.operationButtons, (se) => (p(), I(U, {
|
|
3192
|
+
onClick: (ae) => se.function(i.value.formData)
|
|
3193
3193
|
}, {
|
|
3194
3194
|
default: d(() => [
|
|
3195
3195
|
K(D(x(t)(se.label)), 1)
|
|
@@ -3278,10 +3278,10 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3278
3278
|
]),
|
|
3279
3279
|
_: 1
|
|
3280
3280
|
}, 8, ["label"]),
|
|
3281
|
-
(p(!0), A(
|
|
3282
|
-
var
|
|
3281
|
+
(p(!0), A(ie, null, fe((W = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : W.tabs, (se) => {
|
|
3282
|
+
var ae;
|
|
3283
3283
|
return p(), I(H, {
|
|
3284
|
-
label: x(t)((
|
|
3284
|
+
label: x(t)((ae = se.name) != null ? ae : "")
|
|
3285
3285
|
}, null, 8, ["label"]);
|
|
3286
3286
|
}), 256))
|
|
3287
3287
|
];
|
|
@@ -3292,7 +3292,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3292
3292
|
key: 0,
|
|
3293
3293
|
ref_key: "tabPaneTableRef",
|
|
3294
3294
|
ref: w,
|
|
3295
|
-
model:
|
|
3295
|
+
model: ce[f.value]
|
|
3296
3296
|
}, null, 8, ["model"])) : J("", !0),
|
|
3297
3297
|
m(k, {
|
|
3298
3298
|
modelValue: l.value,
|
|
@@ -3386,7 +3386,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
|
|
|
3386
3386
|
}), (w, $) => {
|
|
3387
3387
|
var M;
|
|
3388
3388
|
const N = E("el-scrollbar");
|
|
3389
|
-
return p(), A(
|
|
3389
|
+
return p(), A(ie, null, [
|
|
3390
3390
|
y("h1", gr, D(x(t)((M = l.name) != null ? M : "")), 1),
|
|
3391
3391
|
m(N, null, {
|
|
3392
3392
|
default: d(() => {
|