@vancone/console-component 0.1.1-beta.50 → 0.1.1-beta.52
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
|
@@ -1526,11 +1526,11 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1526
1526
|
const S = function() {
|
|
1527
1527
|
Qe(n);
|
|
1528
1528
|
const $ = Array.from(arguments), D = [], j = [];
|
|
1529
|
-
function A(
|
|
1530
|
-
D.push(
|
|
1529
|
+
function A(H) {
|
|
1530
|
+
D.push(H);
|
|
1531
1531
|
}
|
|
1532
|
-
function v(
|
|
1533
|
-
j.push(
|
|
1532
|
+
function v(H) {
|
|
1533
|
+
j.push(H);
|
|
1534
1534
|
}
|
|
1535
1535
|
Re(N, {
|
|
1536
1536
|
args: $,
|
|
@@ -1542,10 +1542,10 @@ function bt(e, t, o = {}, n, s, r) {
|
|
|
1542
1542
|
let z;
|
|
1543
1543
|
try {
|
|
1544
1544
|
z = d.apply(this && this.$id === e ? this : u, $);
|
|
1545
|
-
} catch (
|
|
1546
|
-
throw Re(j,
|
|
1545
|
+
} catch (H) {
|
|
1546
|
+
throw Re(j, H), H;
|
|
1547
1547
|
}
|
|
1548
|
-
return z instanceof Promise ? z.then((
|
|
1548
|
+
return z instanceof Promise ? z.then((H) => (Re(D, H), H)).catch((H) => (Re(j, H), Promise.reject(H))) : (Re(D, z), z);
|
|
1549
1549
|
};
|
|
1550
1550
|
return S[Dt] = !0, S[gt] = c, S;
|
|
1551
1551
|
}, _ = /* @__PURE__ */ Te({
|
|
@@ -2144,18 +2144,18 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2144
2144
|
const _ = s.model.fields;
|
|
2145
2145
|
let I = {};
|
|
2146
2146
|
_ == null || _.forEach((u) => {
|
|
2147
|
-
var O, L, d, c, S, $, D, j, A, v, z,
|
|
2147
|
+
var O, L, d, c, S, $, D, j, A, v, z, H, y;
|
|
2148
2148
|
if (r[u.prop] = null, u.visible !== !1 && ((O = u.formItem) == null ? void 0 : O.visible) !== !1) {
|
|
2149
2149
|
if (((L = u.formItem) == null ? void 0 : L.defaultValue) !== void 0 ? r[u.prop] = (d = u.formItem) == null ? void 0 : d.defaultValue : r[u.prop] = void 0, s.mode !== "view") {
|
|
2150
2150
|
let J = (c = u.formItem) == null ? void 0 : c.validationRule;
|
|
2151
2151
|
J !== void 0 && (I[u.prop] = J), ze(i), Object.assign(i, I);
|
|
2152
2152
|
}
|
|
2153
|
-
const f = u.formItem, U = f == null ? void 0 : f.type, q = (S = f == null ? void 0 : f.select) == null ? void 0 : S.useDatableDict,
|
|
2153
|
+
const f = u.formItem, U = f == null ? void 0 : f.type, q = (S = f == null ? void 0 : f.select) == null ? void 0 : S.useDatableDict, W = ($ = f == null ? void 0 : f.select) == null ? void 0 : $.dictId, te = (D = f == null ? void 0 : f.select) == null ? void 0 : D.api, re = (j = f == null ? void 0 : f.select) == null ? void 0 : j.valueMappingField, ue = (A = f == null ? void 0 : f.select) == null ? void 0 : A.labelMappingField;
|
|
2154
2154
|
if (U === "select") {
|
|
2155
2155
|
if (q) {
|
|
2156
|
-
let
|
|
2156
|
+
let Y = `${Ie(() => 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=${W}`;
|
|
2157
2157
|
const ne = (v = f == null ? void 0 : f.select) == null ? void 0 : v.queryParamName, se = (z = f == null ? void 0 : f.select) == null ? void 0 : z.queryParamValueField;
|
|
2158
|
-
ne && (
|
|
2158
|
+
ne && (Y = `${Y}?${ne}=${s.id}`), se || Se(Y, "GET", {}).then(({ data: ae }) => {
|
|
2159
2159
|
var fe;
|
|
2160
2160
|
if ((fe = u.formItem) != null && fe.select) {
|
|
2161
2161
|
let de = [];
|
|
@@ -2167,8 +2167,8 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2167
2167
|
});
|
|
2168
2168
|
} else if (te) {
|
|
2169
2169
|
let J = te;
|
|
2170
|
-
const
|
|
2171
|
-
|
|
2170
|
+
const Y = (H = f == null ? void 0 : f.select) == null ? void 0 : H.queryParamName, ne = (y = f == null ? void 0 : f.select) == null ? void 0 : y.queryParamValueField;
|
|
2171
|
+
Y && (J = `${J}?${Y}=${s.id}`), ne || Se(J, "GET", {}).then(({ data: se }) => {
|
|
2172
2172
|
var ae;
|
|
2173
2173
|
if ((ae = u.formItem) != null && ae.select) {
|
|
2174
2174
|
let fe = [];
|
|
@@ -2297,7 +2297,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2297
2297
|
label: G(v)
|
|
2298
2298
|
}, {
|
|
2299
2299
|
default: m(() => {
|
|
2300
|
-
var z,
|
|
2300
|
+
var z, H, y, f, U, q, W, te, re, ue, J, Y, ne, se, ae, fe, de, Ve, et, tt;
|
|
2301
2301
|
return [
|
|
2302
2302
|
oe("input", v) ? (p(), E(u, {
|
|
2303
2303
|
key: 0,
|
|
@@ -2341,9 +2341,9 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2341
2341
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : F("", !0),
|
|
2342
2342
|
P(v, "select") && _.mode !== "view" ? (p(), E(S, {
|
|
2343
2343
|
key: 6,
|
|
2344
|
-
multiple: (y = (
|
|
2344
|
+
multiple: (y = (H = v.formItem) == null ? void 0 : H.select) == null ? void 0 : y.multiple,
|
|
2345
2345
|
"collapse-tags": (U = (f = v.formItem) == null ? void 0 : f.select) == null ? void 0 : U.multiple,
|
|
2346
|
-
filterable: (
|
|
2346
|
+
filterable: (W = (q = v.formItem) == null ? void 0 : q.select) == null ? void 0 : W.allowCreate,
|
|
2347
2347
|
"allow-create": (re = (te = v.formItem) == null ? void 0 : te.select) == null ? void 0 : re.allowCreate,
|
|
2348
2348
|
"default-first-option": (J = (ue = v.formItem) == null ? void 0 : ue.select) == null ? void 0 : J.allowCreate,
|
|
2349
2349
|
modelValue: r[v.prop],
|
|
@@ -2367,7 +2367,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
|
|
|
2367
2367
|
style: { width: "100%" },
|
|
2368
2368
|
modelValue: r[v.prop],
|
|
2369
2369
|
"onUpdate:modelValue": (le) => r[v.prop] = le,
|
|
2370
|
-
min: (se = (ne = (
|
|
2370
|
+
min: (se = (ne = (Y = v.formItem) == null ? void 0 : Y.inputNumber) == null ? void 0 : ne.min) != null ? se : Number.NEGATIVE_INFINITY,
|
|
2371
2371
|
max: (de = (fe = (ae = v.formItem) == null ? void 0 : ae.inputNumber) == null ? void 0 : fe.max) != null ? de : Number.POSITIVE_INFINITY,
|
|
2372
2372
|
step: (tt = (et = (Ve = v.formItem) == null ? void 0 : Ve.inputNumber) == null ? void 0 : et.step) != null ? tt : 1,
|
|
2373
2373
|
"value-on-clear": -10
|
|
@@ -2532,40 +2532,40 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2532
2532
|
function _(y, f) {
|
|
2533
2533
|
var te, re, ue, J;
|
|
2534
2534
|
let U = f.row[y.prop];
|
|
2535
|
-
const q = (re = (te = y.tableColumn) == null ? void 0 : te.functions) == null ? void 0 : re.transformValue,
|
|
2535
|
+
const q = (re = (te = y.tableColumn) == null ? void 0 : te.functions) == null ? void 0 : re.transformValue, W = (ue = y.tableColumn) == null ? void 0 : ue.transformValueMappings;
|
|
2536
2536
|
if (q)
|
|
2537
2537
|
U = q(U);
|
|
2538
|
-
else if (
|
|
2539
|
-
for (let
|
|
2540
|
-
if (U ===
|
|
2541
|
-
U = o(
|
|
2538
|
+
else if (W && W.length > 0) {
|
|
2539
|
+
for (let Y of W)
|
|
2540
|
+
if (U === Y.value) {
|
|
2541
|
+
U = o(Y.label);
|
|
2542
2542
|
break;
|
|
2543
2543
|
}
|
|
2544
2544
|
} else if (((J = y.formItem) == null ? void 0 : J.type) === "select") {
|
|
2545
|
-
const
|
|
2546
|
-
if (
|
|
2547
|
-
if (
|
|
2548
|
-
U = f.row[
|
|
2549
|
-
else if (
|
|
2550
|
-
for (let ne of
|
|
2545
|
+
const Y = y.formItem.select;
|
|
2546
|
+
if (Y) {
|
|
2547
|
+
if (Y.viewModeLabelField)
|
|
2548
|
+
U = f.row[Y.viewModeLabelField];
|
|
2549
|
+
else if (Y.options && Y.options.length > 0) {
|
|
2550
|
+
for (let ne of Y.options)
|
|
2551
2551
|
if (ne.value === f.row[y.prop]) {
|
|
2552
2552
|
U = ne.label;
|
|
2553
2553
|
break;
|
|
2554
2554
|
}
|
|
2555
|
-
} else if (
|
|
2556
|
-
if (P[
|
|
2557
|
-
let se = `${Ie(() => 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=${
|
|
2555
|
+
} else if (Y.useDatableDict && Y.dictId) {
|
|
2556
|
+
if (P[Y.dictId] === void 0) {
|
|
2557
|
+
let se = `${Ie(() => 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=${Y.dictId}`;
|
|
2558
2558
|
Se(se, "GET", {}).then(({ data: ae }) => {
|
|
2559
2559
|
let fe = [];
|
|
2560
|
-
Array.isArray(ae.data) ? fe = ae.data : ae.data.list && Array.isArray(ae.data.list) && (fe = ae.data.list), P[
|
|
2561
|
-
for (let de of P[
|
|
2560
|
+
Array.isArray(ae.data) ? fe = ae.data : ae.data.list && Array.isArray(ae.data.list) && (fe = ae.data.list), P[Y.dictId] = fe;
|
|
2561
|
+
for (let de of P[Y.dictId])
|
|
2562
2562
|
if (de.dbOrdinal == U) {
|
|
2563
2563
|
U = de.value;
|
|
2564
2564
|
break;
|
|
2565
2565
|
}
|
|
2566
2566
|
});
|
|
2567
2567
|
} else
|
|
2568
|
-
for (let ne of P[
|
|
2568
|
+
for (let ne of P[Y.dictId])
|
|
2569
2569
|
if (ne.dbOrdinal == U) {
|
|
2570
2570
|
U = ne.value;
|
|
2571
2571
|
break;
|
|
@@ -2588,8 +2588,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2588
2588
|
return;
|
|
2589
2589
|
ze(r), Object.assign(r, (f = n.model.tableConfig) != null ? f : {}), r.display = (U = r.display) != null ? U : {}, r.display.advancedSearch !== !0 && (r.display.advancedSearch = !1), r.display.fileTaskButton !== !0 && (r.display.fileTaskButton = !1), r.display.pagination !== !1 && (r.display.pagination = !0), r.display.pane !== !1 && (r.display.pane = !0), r.display.searchBox !== !1 && (r.display.searchBox = !0), s.splice(0, s.length, ...n.model.fields), l.value = (q = n.model.route) != null ? q : "";
|
|
2590
2590
|
let y = ot({}, r.queryParams);
|
|
2591
|
-
y.pageSize = oe.pageSize, y.pageNo = oe.pageNo, y.search = h.value, Se(n.model.api, "GET", y).then(({ data:
|
|
2592
|
-
const { list: te, totalCount: re } =
|
|
2591
|
+
y.pageSize = oe.pageSize, y.pageNo = oe.pageNo, y.search = h.value, Se(n.model.api, "GET", y).then(({ data: W }) => {
|
|
2592
|
+
const { list: te, totalCount: re } = W.data;
|
|
2593
2593
|
b.splice(0, b.length, ...te), oe.totalElements = re, G.value = !1;
|
|
2594
2594
|
});
|
|
2595
2595
|
}
|
|
@@ -2658,7 +2658,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2658
2658
|
function z(y) {
|
|
2659
2659
|
y ? (ee.value = !0, x.splice(0, x.length, ...b), b.splice(0, b.length, ...M.value)) : (ee.value = !1, b.splice(0, b.length, ...x));
|
|
2660
2660
|
}
|
|
2661
|
-
function
|
|
2661
|
+
function H() {
|
|
2662
2662
|
var te;
|
|
2663
2663
|
if (M.value.length === 0) {
|
|
2664
2664
|
It.alert("Select rows before printing", "Print", {
|
|
@@ -2679,8 +2679,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2679
2679
|
let U = `<table><tr>${y}</tr>${f}</table>`;
|
|
2680
2680
|
const q = document.createElement("iframe");
|
|
2681
2681
|
q.style.display = "none", document.body.appendChild(q);
|
|
2682
|
-
const
|
|
2683
|
-
|
|
2682
|
+
const W = q.contentDocument || ((te = q.contentWindow) == null ? void 0 : te.document);
|
|
2683
|
+
W == null || W.open(), W == null || W.write(`
|
|
2684
2684
|
<!DOCTYPE html>
|
|
2685
2685
|
<html>
|
|
2686
2686
|
<head>
|
|
@@ -2729,7 +2729,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2729
2729
|
<\/script>
|
|
2730
2730
|
</body>
|
|
2731
2731
|
</html>
|
|
2732
|
-
`),
|
|
2732
|
+
`), W == null || W.close();
|
|
2733
2733
|
}
|
|
2734
2734
|
return Oe(() => n.model, () => {
|
|
2735
2735
|
O();
|
|
@@ -2742,7 +2742,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2742
2742
|
updateConfigAndRefresh: u
|
|
2743
2743
|
}), (y, f) => {
|
|
2744
2744
|
var le, qe, Be;
|
|
2745
|
-
const U = k("el-checkbox"), q = k("el-badge"),
|
|
2745
|
+
const U = k("el-checkbox"), q = k("el-badge"), W = k("el-button"), te = k("el-dropdown-item"), re = k("el-dropdown-menu"), ue = k("el-dropdown"), J = k("el-icon"), Y = k("el-tooltip"), ne = k("el-input"), se = k("el-table-column"), ae = k("router-link"), fe = k("el-tag"), de = k("el-popconfirm"), Ve = k("el-table"), et = k("el-pagination"), tt = qt("loading");
|
|
2746
2746
|
return p(), V("div", {
|
|
2747
2747
|
class: zt({ "table-view-wrapper": (le = r.display) == null ? void 0 : le.pane })
|
|
2748
2748
|
}, [
|
|
@@ -2764,7 +2764,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2764
2764
|
]),
|
|
2765
2765
|
_: 1
|
|
2766
2766
|
}, 8, ["value"])) : F("", !0),
|
|
2767
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), E(
|
|
2767
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), E(W, {
|
|
2768
2768
|
key: 1,
|
|
2769
2769
|
type: "primary",
|
|
2770
2770
|
onClick: L
|
|
@@ -2777,7 +2777,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2777
2777
|
}),
|
|
2778
2778
|
_: 1
|
|
2779
2779
|
})) : F("", !0),
|
|
2780
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), E(
|
|
2780
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), E(W, {
|
|
2781
2781
|
key: 2,
|
|
2782
2782
|
disabled: M.value.length == 0,
|
|
2783
2783
|
type: "danger",
|
|
@@ -2792,7 +2792,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2792
2792
|
}),
|
|
2793
2793
|
_: 1
|
|
2794
2794
|
}, 8, ["disabled"])) : F("", !0),
|
|
2795
|
-
g(
|
|
2795
|
+
g(W, {
|
|
2796
2796
|
icon: C(Yt),
|
|
2797
2797
|
style: { width: "28px" },
|
|
2798
2798
|
onClick: O
|
|
@@ -2848,7 +2848,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2848
2848
|
})
|
|
2849
2849
|
]),
|
|
2850
2850
|
default: m(() => [
|
|
2851
|
-
g(
|
|
2851
|
+
g(W, { style: { width: "28px" } }, {
|
|
2852
2852
|
icon: m(() => [
|
|
2853
2853
|
g(C(rr))
|
|
2854
2854
|
]),
|
|
@@ -2866,7 +2866,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2866
2866
|
default: m(() => [
|
|
2867
2867
|
g(te, {
|
|
2868
2868
|
icon: C(Ao),
|
|
2869
|
-
onClick:
|
|
2869
|
+
onClick: H
|
|
2870
2870
|
}, {
|
|
2871
2871
|
default: m(() => f[7] || (f[7] = [
|
|
2872
2872
|
Q("打印")
|
|
@@ -2887,14 +2887,14 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2887
2887
|
})
|
|
2888
2888
|
]),
|
|
2889
2889
|
default: m(() => [
|
|
2890
|
-
g(
|
|
2890
|
+
g(W, {
|
|
2891
2891
|
icon: C(Ro),
|
|
2892
2892
|
style: { width: "28px" }
|
|
2893
2893
|
}, null, 8, ["icon"])
|
|
2894
2894
|
]),
|
|
2895
2895
|
_: 1
|
|
2896
2896
|
}),
|
|
2897
|
-
r.tooltip ? (p(), E(
|
|
2897
|
+
r.tooltip ? (p(), E(Y, {
|
|
2898
2898
|
key: 4,
|
|
2899
2899
|
effect: "dark",
|
|
2900
2900
|
content: C(o)(r.tooltip),
|
|
@@ -2918,7 +2918,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2918
2918
|
"onUpdate:modelValue": f[0] || (f[0] = (he) => h.value = he)
|
|
2919
2919
|
}, {
|
|
2920
2920
|
append: m(() => [
|
|
2921
|
-
g(
|
|
2921
|
+
g(W, {
|
|
2922
2922
|
style: { "margin-left": "-20px" },
|
|
2923
2923
|
icon: C(Ht),
|
|
2924
2924
|
onClick: O
|
|
@@ -2926,7 +2926,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
2926
2926
|
]),
|
|
2927
2927
|
_: 1
|
|
2928
2928
|
}, 8, ["placeholder", "modelValue"]),
|
|
2929
|
-
(Be = r.display) != null && Be.advancedSearch ? (p(), E(
|
|
2929
|
+
(Be = r.display) != null && Be.advancedSearch ? (p(), E(W, {
|
|
2930
2930
|
key: 0,
|
|
2931
2931
|
type: "text"
|
|
2932
2932
|
}, {
|
|
@@ -3000,7 +3000,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3000
3000
|
width: "120"
|
|
3001
3001
|
}, {
|
|
3002
3002
|
default: m((Z) => [
|
|
3003
|
-
r.updatable !== !1 ? (p(), E(
|
|
3003
|
+
r.updatable !== !1 ? (p(), E(W, {
|
|
3004
3004
|
key: 0,
|
|
3005
3005
|
link: "",
|
|
3006
3006
|
type: "primary",
|
|
@@ -3017,7 +3017,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3017
3017
|
onConfirm: (Ee) => d(Z.$index, Z.row)
|
|
3018
3018
|
}, {
|
|
3019
3019
|
reference: m(() => [
|
|
3020
|
-
r.deletable !== !1 ? (p(), E(
|
|
3020
|
+
r.deletable !== !1 ? (p(), E(W, {
|
|
3021
3021
|
key: 0,
|
|
3022
3022
|
link: "",
|
|
3023
3023
|
type: "primary",
|
|
@@ -3040,7 +3040,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3040
3040
|
width: "120"
|
|
3041
3041
|
}, {
|
|
3042
3042
|
default: m((Z) => [
|
|
3043
|
-
(p(!0), V(ce, null, ge(r.operations, (Ee) => (p(), E(
|
|
3043
|
+
(p(!0), V(ce, null, ge(r.operations, (Ee) => (p(), E(W, {
|
|
3044
3044
|
class: "operation-button",
|
|
3045
3045
|
link: "",
|
|
3046
3046
|
type: "primary",
|
|
@@ -3136,8 +3136,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3136
3136
|
var y;
|
|
3137
3137
|
let v = (y = P[h.value].api) == null ? void 0 : y.replace("/select", "");
|
|
3138
3138
|
v = v == null ? void 0 : v.substring(v.lastIndexOf("/"));
|
|
3139
|
-
const z = B.api + "/" + s.value + v,
|
|
3140
|
-
be.delete(`${z}/${
|
|
3139
|
+
const z = B.api + "/" + s.value + v, H = A.map((f) => f.id);
|
|
3140
|
+
be.delete(`${z}/${H.join(",")}`).then(({ data: f }) => {
|
|
3141
3141
|
f.code === 0 && b.value.refresh();
|
|
3142
3142
|
});
|
|
3143
3143
|
}, S.operations = [
|
|
@@ -3148,8 +3148,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3148
3148
|
var y;
|
|
3149
3149
|
let z = (y = P[h.value].api) == null ? void 0 : y.replace("/select", "");
|
|
3150
3150
|
z = z == null ? void 0 : z.substring(z.lastIndexOf("/"));
|
|
3151
|
-
const
|
|
3152
|
-
Se(
|
|
3151
|
+
const H = B.api + "/" + s.value + z;
|
|
3152
|
+
Se(H, "DELETE", v.id).then(() => {
|
|
3153
3153
|
b.value.refresh();
|
|
3154
3154
|
});
|
|
3155
3155
|
}
|
|
@@ -3176,18 +3176,25 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3176
3176
|
if (oe.push(v), A.type === "table") {
|
|
3177
3177
|
v.tableConfig || (v.tableConfig = {});
|
|
3178
3178
|
let z = v.tableConfig;
|
|
3179
|
-
z.display = {
|
|
3179
|
+
if (z.display = {
|
|
3180
3180
|
pane: !1
|
|
3181
|
-
}, A.modelRelationType === "associated"
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3181
|
+
}, A.modelRelationType === "associated")
|
|
3182
|
+
I(A, v, z);
|
|
3183
|
+
else if (A.modelRelationType === "child") {
|
|
3184
|
+
P.push({
|
|
3185
|
+
fields: []
|
|
3186
|
+
}), v.formConfig === void 0 && (v.formConfig = {}), v.formConfig.functions === void 0 && (v.formConfig.functions = {});
|
|
3187
|
+
const H = v.formConfig.functions.beforeSubmit;
|
|
3188
|
+
A.queryParamName && (v.formConfig.functions.beforeSubmit = (y) => {
|
|
3189
|
+
y[A.queryParamName] = s.value, H !== void 0 && H();
|
|
3190
|
+
});
|
|
3191
|
+
}
|
|
3192
|
+
z.queryParams || (z.queryParams = {}), A.queryParamName && (z.queryParams[A.queryParamName] = s.value), A.queryParams && Object.assign(z.queryParams, A.queryParams), z.readOnly = (j = A.readOnly) != null ? j : !1, A.includeFields && (v.fields = v.fields.filter((H) => {
|
|
3186
3193
|
var y;
|
|
3187
|
-
return (y = A.includeFields) == null ? void 0 : y.includes(
|
|
3188
|
-
})), A.excludeFields && (v.fields = v.fields.filter((
|
|
3194
|
+
return (y = A.includeFields) == null ? void 0 : y.includes(H.prop);
|
|
3195
|
+
})), A.excludeFields && (v.fields = v.fields.filter((H) => {
|
|
3189
3196
|
var y;
|
|
3190
|
-
return !((y = A.excludeFields) != null && y.includes(
|
|
3197
|
+
return !((y = A.excludeFields) != null && y.includes(H.prop));
|
|
3191
3198
|
})), A.tooltip && (z.tooltip = A.tooltip);
|
|
3192
3199
|
}
|
|
3193
3200
|
}
|
|
@@ -3228,8 +3235,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3228
3235
|
i.value.refresh();
|
|
3229
3236
|
}
|
|
3230
3237
|
return (d, c) => {
|
|
3231
|
-
var U, q,
|
|
3232
|
-
const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), j = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), z = k("el-tag"),
|
|
3238
|
+
var U, q, W, te, re, ue;
|
|
3239
|
+
const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), j = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), z = k("el-tag"), H = k("el-tab-pane"), y = k("el-tabs"), f = k("el-dialog");
|
|
3233
3240
|
return p(), V(ce, null, [
|
|
3234
3241
|
w("div", dr, [
|
|
3235
3242
|
g(S, {
|
|
@@ -3260,9 +3267,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3260
3267
|
dropdown: m(() => [
|
|
3261
3268
|
g(A, null, {
|
|
3262
3269
|
default: m(() => {
|
|
3263
|
-
var J,
|
|
3270
|
+
var J, Y;
|
|
3264
3271
|
return [
|
|
3265
|
-
(p(!0), V(ce, null, ge((
|
|
3272
|
+
(p(!0), V(ce, null, ge((Y = (J = B.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : Y.operationButtons, (ne) => (p(), E(j, {
|
|
3266
3273
|
onClick: (se) => ne.function(i.value.formData)
|
|
3267
3274
|
}, {
|
|
3268
3275
|
default: m(() => [
|
|
@@ -3307,7 +3314,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3307
3314
|
})
|
|
3308
3315
|
])
|
|
3309
3316
|
]),
|
|
3310
|
-
(te = (
|
|
3317
|
+
(te = (W = B.pageConfig) == null ? void 0 : W.detailPage) != null && te.infoCard ? (p(), V("div", fr, [
|
|
3311
3318
|
w("div", mr, [
|
|
3312
3319
|
(p(), E(it((re = B.pageConfig.detailPage.infoCard.icon) != null ? re : ""), { class: "icon" }))
|
|
3313
3320
|
]),
|
|
@@ -3334,9 +3341,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3334
3341
|
onTabClick: K
|
|
3335
3342
|
}, {
|
|
3336
3343
|
default: m(() => {
|
|
3337
|
-
var J,
|
|
3344
|
+
var J, Y;
|
|
3338
3345
|
return [
|
|
3339
|
-
g(
|
|
3346
|
+
g(H, {
|
|
3340
3347
|
label: C(t)("common.basic.summary"),
|
|
3341
3348
|
name: "summary"
|
|
3342
3349
|
}, {
|
|
@@ -3352,9 +3359,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3352
3359
|
]),
|
|
3353
3360
|
_: 1
|
|
3354
3361
|
}, 8, ["label"]),
|
|
3355
|
-
(p(!0), V(ce, null, ge((
|
|
3362
|
+
(p(!0), V(ce, null, ge((Y = (J = B.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : Y.tabs, (ne) => {
|
|
3356
3363
|
var se;
|
|
3357
|
-
return p(), E(
|
|
3364
|
+
return p(), E(H, {
|
|
3358
3365
|
label: C(t)((se = ne.name) != null ? se : "")
|
|
3359
3366
|
}, null, 8, ["label"]);
|
|
3360
3367
|
}), 256))
|
|
@@ -3417,7 +3424,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
|
|
|
3417
3424
|
], 64);
|
|
3418
3425
|
};
|
|
3419
3426
|
}
|
|
3420
|
-
}), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-
|
|
3427
|
+
}), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-d48c0eb5"]]), wr = { class: "page-title" }, Sr = /* @__PURE__ */ Ce({
|
|
3421
3428
|
__name: "TablePage",
|
|
3422
3429
|
setup(e) {
|
|
3423
3430
|
const { t } = Ze(), o = Xe(), n = pt(), s = T(), r = T([]), l = me({
|