@unizhen/ui 0.1.104 → 0.1.106
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/lib/ui.js +125 -124
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createStaticVNode as c, createTextVNode as l, createVNode as u, defineAsyncComponent as d, defineComponent as f, h as p, inject as m, markRaw as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as b, onUnmounted as x, openBlock as S, provide as C, reactive as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as k, resolveDynamicComponent as ee, toDisplayString as A, useId as te, vShow as j, watch as M, watchEffect as N, withCtx as P, withDirectives as F, withKeys as I, withModifiers as L } from "vue";
|
|
2
|
-
import { NButton as R, NButtonGroup as ne, NCascader as re, NCheckbox as ie, NCheckboxGroup as z, NColorPicker as ae, NConfigProvider as oe, NDataTable as se, NDatePicker as ce, NDivider as le, NDrawer as ue, NDrawerContent as
|
|
2
|
+
import { NButton as R, NButtonGroup as ne, NCascader as re, NCheckbox as ie, NCheckboxGroup as z, NColorPicker as ae, NConfigProvider as oe, NDataTable as se, NDatePicker as ce, NDivider as le, NDrawer as ue, NDrawerContent as de, NDropdown as fe, NEllipsis as B, NFlex as pe, NForm as me, NFormItem as he, NGrid as ge, NGridItem as _e, NIcon as V, NImage as ve, NImageGroup as ye, NInput as be, NInputGroup as xe, NInputGroupLabel as Se, NInputNumber as Ce, NModal as we, NPagination as Te, NPopconfirm as Ee, NPopover as De, NRadio as Oe, NRadioGroup as ke, NSelect as Ae, NSkeleton as je, NSpace as Me, NSpin as Ne, NSwitch as Pe, NTabPane as Fe, NTabs as Ie, NTimePicker as Le, NTooltip as Re, NUpload as ze, NUploadDragger as Be, createDiscreteApi as Ve, darkTheme as H, dateZhCN as He, useNotification as Ue, zhCN as We } from "naive-ui";
|
|
3
3
|
import Ge from "axios";
|
|
4
4
|
import { createRouter as Ke, createWebHistory as qe, useRoute as Je, useRouter as Ye } from "vue-router";
|
|
5
5
|
import { createI18n as Xe, useI18n as Ze } from "vue-i18n";
|
|
@@ -2937,7 +2937,7 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = f({
|
|
|
2937
2937
|
NCheckboxGroup: z,
|
|
2938
2938
|
NCascader: re,
|
|
2939
2939
|
NTooltip: Re,
|
|
2940
|
-
NDropdown:
|
|
2940
|
+
NDropdown: fe
|
|
2941
2941
|
},
|
|
2942
2942
|
props: {
|
|
2943
2943
|
item: {
|
|
@@ -4648,7 +4648,7 @@ var bp = [
|
|
|
4648
4648
|
}, []);
|
|
4649
4649
|
S(n(a.value));
|
|
4650
4650
|
}, E = {
|
|
4651
|
-
title: () => p(
|
|
4651
|
+
title: () => p(fe, {
|
|
4652
4652
|
trigger: "click",
|
|
4653
4653
|
options: [{
|
|
4654
4654
|
label: "全部展开",
|
|
@@ -5586,7 +5586,7 @@ var Am = /*#__PURE__*/ W(Cm, [["render", km]]), jm = f({
|
|
|
5586
5586
|
NIcon: V,
|
|
5587
5587
|
NButton: R,
|
|
5588
5588
|
NDrawer: ue,
|
|
5589
|
-
NDrawerContent:
|
|
5589
|
+
NDrawerContent: de,
|
|
5590
5590
|
NGrid: ge,
|
|
5591
5591
|
NGridItem: _e,
|
|
5592
5592
|
NInputGroup: xe,
|
|
@@ -6367,7 +6367,7 @@ var th = f({
|
|
|
6367
6367
|
components: {
|
|
6368
6368
|
NButton: R,
|
|
6369
6369
|
NSpin: Ne,
|
|
6370
|
-
NEllipsis:
|
|
6370
|
+
NEllipsis: B
|
|
6371
6371
|
},
|
|
6372
6372
|
emits: ["update:value"],
|
|
6373
6373
|
props: {
|
|
@@ -6728,59 +6728,72 @@ var fh = f({
|
|
|
6728
6728
|
return (t) => e(t, p);
|
|
6729
6729
|
}
|
|
6730
6730
|
return t && typeof t == "function" ? t : () => [];
|
|
6731
|
-
}),
|
|
6731
|
+
}), de = (t) => {
|
|
6732
|
+
let n = e.id || o.params.id, r;
|
|
6733
|
+
if (e.fetch) r = e.fetch({
|
|
6734
|
+
...t,
|
|
6735
|
+
tableId: n
|
|
6736
|
+
});
|
|
6737
|
+
else if (I.value.fetchFn) {
|
|
6738
|
+
let e = I.value.fetchFn;
|
|
6739
|
+
r = Function("POST", "queryData", e)(Q, { ...t });
|
|
6740
|
+
} else r = bf({
|
|
6741
|
+
...t,
|
|
6742
|
+
tableId: n
|
|
6743
|
+
});
|
|
6744
|
+
return r;
|
|
6745
|
+
}, fe = (t) => {
|
|
6746
|
+
let n = e.id || o.params.id, r;
|
|
6747
|
+
if (e.fetch) r = e.fetch({
|
|
6748
|
+
id: t.id,
|
|
6749
|
+
tableId: n
|
|
6750
|
+
});
|
|
6751
|
+
else if (I.value.fetchFn) {
|
|
6752
|
+
let e = I.value.fetchFn;
|
|
6753
|
+
r = Function("POST", "queryData", e)(Q, { id: t.id });
|
|
6754
|
+
} else r = bf({
|
|
6755
|
+
id: t.id,
|
|
6756
|
+
tableId: n
|
|
6757
|
+
});
|
|
6758
|
+
return r;
|
|
6759
|
+
}, B = (n = !1) => {
|
|
6732
6760
|
let r = e.id || o.params.id;
|
|
6733
6761
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
6734
6762
|
let i = U(k.value);
|
|
6735
|
-
|
|
6763
|
+
n && delete i.orderby, I.value.fetch ? Tf([I.value.fetch], "", i).then((e) => {
|
|
6764
|
+
let n = dd(e);
|
|
6765
|
+
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && Y(`tables_${r}`, k.value);
|
|
6766
|
+
}).catch(() => {
|
|
6767
|
+
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
6768
|
+
}) : de(i).then((e) => {
|
|
6736
6769
|
let n = dd(e);
|
|
6737
6770
|
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && Y(`tables_${r}`, k.value);
|
|
6738
6771
|
}).catch(() => {
|
|
6739
6772
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
6740
6773
|
});
|
|
6741
|
-
|
|
6742
|
-
let n;
|
|
6743
|
-
if (e.fetch) n = e.fetch({
|
|
6744
|
-
...i,
|
|
6745
|
-
tableId: r
|
|
6746
|
-
});
|
|
6747
|
-
else if (I.value.fetchFn) {
|
|
6748
|
-
let e = I.value.fetchFn;
|
|
6749
|
-
n = Function("POST", e);
|
|
6750
|
-
} else n = bf({
|
|
6751
|
-
...i,
|
|
6752
|
-
tableId: r
|
|
6753
|
-
});
|
|
6754
|
-
n.then((e) => {
|
|
6755
|
-
let n = dd(e);
|
|
6756
|
-
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && Y(`tables_${r}`, k.value);
|
|
6757
|
-
}).catch(() => {
|
|
6758
|
-
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
6759
|
-
});
|
|
6760
|
-
}
|
|
6761
|
-
}, de = (e) => {
|
|
6774
|
+
}, pe = (e) => {
|
|
6762
6775
|
k.value.query.page = e, u.value && (u.value.scrollTop = 0), ud(), B();
|
|
6763
|
-
},
|
|
6776
|
+
}, me = () => {
|
|
6764
6777
|
let e = k.value.query.page + 1;
|
|
6765
6778
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
6766
|
-
},
|
|
6779
|
+
}, he = (e) => {
|
|
6767
6780
|
k.value.query.pageSize = e, k.value.query.page = 1, ud(), B();
|
|
6768
|
-
},
|
|
6781
|
+
}, ge = (e) => {
|
|
6769
6782
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
6770
|
-
},
|
|
6783
|
+
}, _e = () => {
|
|
6771
6784
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
6772
6785
|
f.value?.addAndEdit(e.id || o.params.id, async () => {
|
|
6773
|
-
let { form: e } = await
|
|
6786
|
+
let { form: e } = await xe();
|
|
6774
6787
|
return {
|
|
6775
6788
|
form: e,
|
|
6776
6789
|
data: {}
|
|
6777
6790
|
};
|
|
6778
|
-
}, L.value, I.value, 0,
|
|
6779
|
-
},
|
|
6780
|
-
e.show = !e.show,
|
|
6781
|
-
},
|
|
6791
|
+
}, L.value, I.value, 0, Me);
|
|
6792
|
+
}, V = (e) => {
|
|
6793
|
+
e.show = !e.show, je();
|
|
6794
|
+
}, ve = (e) => {
|
|
6782
6795
|
k.value.params = e, B();
|
|
6783
|
-
},
|
|
6796
|
+
}, ye = () => [{
|
|
6784
6797
|
title: "创建人/时间",
|
|
6785
6798
|
key: "createTime",
|
|
6786
6799
|
resizable: !0,
|
|
@@ -6798,28 +6811,21 @@ var fh = f({
|
|
|
6798
6811
|
ellipsis: !0,
|
|
6799
6812
|
width: 180,
|
|
6800
6813
|
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => fd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
6801
|
-
}],
|
|
6814
|
+
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !j.value || j.value && j.value[0] === "*" ? !1 : !j.value?.includes(t), xe = async (e) => {
|
|
6802
6815
|
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await $m(N.value, e, () => f.value?.getFormValues());
|
|
6803
6816
|
return x.value = t, {
|
|
6804
6817
|
form: t,
|
|
6805
6818
|
fillingDefaultValue: n,
|
|
6806
6819
|
formDefaultValue: r
|
|
6807
6820
|
};
|
|
6808
|
-
},
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
id: t.id,
|
|
6812
|
-
tableId: i
|
|
6813
|
-
}) : bf({
|
|
6814
|
-
id: t.id,
|
|
6815
|
-
tableId: i
|
|
6816
|
-
}), a.then((e) => {
|
|
6817
|
-
n(e && e[0]);
|
|
6821
|
+
}, Se = async (e) => new Promise((t, n) => {
|
|
6822
|
+
fe(e).then((e) => {
|
|
6823
|
+
t(e && e[0]);
|
|
6818
6824
|
}).catch(() => {
|
|
6819
|
-
|
|
6825
|
+
n();
|
|
6820
6826
|
});
|
|
6821
|
-
}),
|
|
6822
|
-
let n = await
|
|
6827
|
+
}), Ce = async (e, t) => {
|
|
6828
|
+
let n = await Se(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await xe(n || {}), a = {
|
|
6823
6829
|
...n,
|
|
6824
6830
|
...i
|
|
6825
6831
|
};
|
|
@@ -6840,19 +6846,19 @@ var fh = f({
|
|
|
6840
6846
|
form: r,
|
|
6841
6847
|
data: a
|
|
6842
6848
|
};
|
|
6843
|
-
},
|
|
6849
|
+
}, we = (n, r) => {
|
|
6844
6850
|
let i = U(n.onClick), a = e.id || o.params.id;
|
|
6845
6851
|
if (n.disabled) {
|
|
6846
6852
|
if (typeof n.disabled == "string") {
|
|
6847
6853
|
let e = Function("rowData", "rowIndex", n.disabled);
|
|
6848
|
-
n.disabled = (t, r) => e(t, r) ||
|
|
6854
|
+
n.disabled = (t, r) => e(t, r) || be(n.key);
|
|
6849
6855
|
} else if (typeof n.disabled == "function") {
|
|
6850
6856
|
let e = U(n);
|
|
6851
|
-
n.disabled = (t, r) => e.disabled(t, r) ||
|
|
6857
|
+
n.disabled = (t, r) => e.disabled(t, r) || be(n.key);
|
|
6852
6858
|
}
|
|
6853
|
-
} else n.disabled = () =>
|
|
6859
|
+
} else n.disabled = () => be(n.key);
|
|
6854
6860
|
if (n.loading = _.value, n.type !== "group" && n.optionsType) n.onClick = async (e) => {
|
|
6855
|
-
|
|
6861
|
+
Se(e).then((r) => {
|
|
6856
6862
|
if (n.optionsType === "drawer:insider") {
|
|
6857
6863
|
if (i) try {
|
|
6858
6864
|
Function("rowData", "POST", "fnNotification", i)(r, Q, c).then((e) => {
|
|
@@ -6871,6 +6877,7 @@ var fh = f({
|
|
|
6871
6877
|
onClick: n.onClick,
|
|
6872
6878
|
optionsSource: n.optionsSource,
|
|
6873
6879
|
mainFormValue: r,
|
|
6880
|
+
tableData: () => E.value,
|
|
6874
6881
|
children: () => e,
|
|
6875
6882
|
callback: null
|
|
6876
6883
|
});
|
|
@@ -6879,12 +6886,12 @@ var fh = f({
|
|
|
6879
6886
|
else if (n.type !== "group" && n.action === "detailInside") {
|
|
6880
6887
|
let t = U(n.onClick);
|
|
6881
6888
|
n.onClick = (n) => {
|
|
6882
|
-
f.value?.addAndEdit(e.id || o.params.id, () =>
|
|
6889
|
+
f.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, I.value, 2, Me);
|
|
6883
6890
|
};
|
|
6884
6891
|
} else if (n.type !== "group" && n.action === "editInside") {
|
|
6885
6892
|
let t = U(n.onClick);
|
|
6886
6893
|
n.onClick = (n) => {
|
|
6887
|
-
f.value?.addAndEdit(e.id || o.params.id, () =>
|
|
6894
|
+
f.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, I.value, 1, Me);
|
|
6888
6895
|
};
|
|
6889
6896
|
} else if (n.type !== "group" && n.action === "deleteInside") {
|
|
6890
6897
|
let t = U(n.onClick);
|
|
@@ -6930,21 +6937,14 @@ var fh = f({
|
|
|
6930
6937
|
}).catch(() => null);
|
|
6931
6938
|
};
|
|
6932
6939
|
else if (n.type !== "group" && n.action) {
|
|
6933
|
-
let
|
|
6934
|
-
n.onClick = (
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
}) : bf({
|
|
6940
|
-
id: r.id,
|
|
6941
|
-
tableId: a
|
|
6942
|
-
}), i.then((e) => {
|
|
6943
|
-
let r = e && e[0];
|
|
6944
|
-
Tf([n.action], r.id, r).then((e) => {
|
|
6945
|
-
if (t && typeof t == "string") {
|
|
6940
|
+
let e = U(n.onClick);
|
|
6941
|
+
n.onClick = (t) => {
|
|
6942
|
+
fe(t).then((t) => {
|
|
6943
|
+
let r = t && t[0];
|
|
6944
|
+
Tf([n.action], r.id, r).then((t) => {
|
|
6945
|
+
if (e && typeof e == "string") {
|
|
6946
6946
|
try {
|
|
6947
|
-
Function("rowData", "res",
|
|
6947
|
+
Function("rowData", "res", e)(r, t).then((e) => {
|
|
6948
6948
|
c.success({
|
|
6949
6949
|
content: e,
|
|
6950
6950
|
duration: 3e3
|
|
@@ -6957,8 +6957,8 @@ var fh = f({
|
|
|
6957
6957
|
}
|
|
6958
6958
|
return;
|
|
6959
6959
|
}
|
|
6960
|
-
if (
|
|
6961
|
-
|
|
6960
|
+
if (e && typeof e == "function") {
|
|
6961
|
+
e(r, t, () => {
|
|
6962
6962
|
c.success({
|
|
6963
6963
|
content: () => s("Notice.success"),
|
|
6964
6964
|
duration: 3e3
|
|
@@ -6979,7 +6979,7 @@ var fh = f({
|
|
|
6979
6979
|
}).catch(() => null);
|
|
6980
6980
|
};
|
|
6981
6981
|
}
|
|
6982
|
-
},
|
|
6982
|
+
}, Te = async () => {
|
|
6983
6983
|
re.value = !1, Wm();
|
|
6984
6984
|
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await eh(N.value, e.child, 0, () => ({}), ae);
|
|
6985
6985
|
!l.value && L.value.index && n.unshift({
|
|
@@ -7007,11 +7007,11 @@ var fh = f({
|
|
|
7007
7007
|
options: ["all", "none"]
|
|
7008
7008
|
});
|
|
7009
7009
|
let c = e.id || o.params.id;
|
|
7010
|
-
if (!l.value && L.value.commonTime && n.push(...
|
|
7010
|
+
if (!l.value && L.value.commonTime && n.push(...ye()), e.enableAction === !0 && P.value && P.value.length > 0) {
|
|
7011
7011
|
let e = U(P.value);
|
|
7012
7012
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
7013
|
-
|
|
7014
|
-
}) :
|
|
7013
|
+
we(e, i);
|
|
7014
|
+
}) : we(t, i);
|
|
7015
7015
|
let t = {
|
|
7016
7016
|
title: () => s("Common.action"),
|
|
7017
7017
|
key: "action",
|
|
@@ -7049,7 +7049,7 @@ var fh = f({
|
|
|
7049
7049
|
fixed: "left",
|
|
7050
7050
|
filter: "default",
|
|
7051
7051
|
filterOptionValue: null,
|
|
7052
|
-
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick:
|
|
7052
|
+
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
7053
7053
|
renderExpand: (e) => p(oh, {
|
|
7054
7054
|
data: a,
|
|
7055
7055
|
value: e
|
|
@@ -7059,13 +7059,13 @@ var fh = f({
|
|
|
7059
7059
|
u.forEach((e) => {
|
|
7060
7060
|
e.show && (d += Number(e.width || 140));
|
|
7061
7061
|
}), S.value = u, ee.value = r, D.value = d;
|
|
7062
|
-
},
|
|
7062
|
+
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
7063
7063
|
if (e.height) {
|
|
7064
|
-
let t =
|
|
7064
|
+
let t = Ee(e.height);
|
|
7065
7065
|
A.value = t, te.value = t;
|
|
7066
7066
|
return;
|
|
7067
7067
|
}
|
|
7068
|
-
},
|
|
7068
|
+
}, Oe = (t) => {
|
|
7069
7069
|
let n = e.id || o.params.id;
|
|
7070
7070
|
if (n) {
|
|
7071
7071
|
let e = 0;
|
|
@@ -7076,7 +7076,7 @@ var fh = f({
|
|
|
7076
7076
|
data: JSON.stringify(t)
|
|
7077
7077
|
}).catch(() => null);
|
|
7078
7078
|
}
|
|
7079
|
-
}, { run:
|
|
7079
|
+
}, { run: ke } = yp(Oe), { run: Ae } = yp((e, t) => {
|
|
7080
7080
|
let n = [];
|
|
7081
7081
|
S.value.forEach((r) => {
|
|
7082
7082
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -7086,8 +7086,8 @@ var fh = f({
|
|
|
7086
7086
|
fixed: r.fixed,
|
|
7087
7087
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
7088
7088
|
});
|
|
7089
|
-
}),
|
|
7090
|
-
}),
|
|
7089
|
+
}), Oe(n);
|
|
7090
|
+
}), je = () => {
|
|
7091
7091
|
let e = [];
|
|
7092
7092
|
S.value.forEach((t) => {
|
|
7093
7093
|
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
@@ -7097,8 +7097,8 @@ var fh = f({
|
|
|
7097
7097
|
fixed: t.fixed,
|
|
7098
7098
|
width: t.width
|
|
7099
7099
|
});
|
|
7100
|
-
}),
|
|
7101
|
-
},
|
|
7100
|
+
}), ke(e);
|
|
7101
|
+
}, Me = (t, n, r) => {
|
|
7102
7102
|
let i, a = e.id || o.params.id;
|
|
7103
7103
|
i = e.formFetch ? e.formFetch({
|
|
7104
7104
|
tableId: a,
|
|
@@ -7111,22 +7111,22 @@ var fh = f({
|
|
|
7111
7111
|
}).catch((e) => {
|
|
7112
7112
|
r(e);
|
|
7113
7113
|
});
|
|
7114
|
-
},
|
|
7114
|
+
}, Ne = () => {
|
|
7115
7115
|
y.value = "", N.value = [], P.value = [], F.value = [], I.value = {
|
|
7116
7116
|
fetch: null,
|
|
7117
7117
|
fetchFn: "",
|
|
7118
7118
|
when_drawer_open: "",
|
|
7119
7119
|
when_before_save: ""
|
|
7120
7120
|
}, L.value = Qm();
|
|
7121
|
-
},
|
|
7121
|
+
}, Pe = (t) => {
|
|
7122
7122
|
let n = rt.parse(t.viewJson);
|
|
7123
7123
|
y.value = t.tableTitle, N.value = Jm(n.table), P.value = Hf(e.actions || n.action);
|
|
7124
7124
|
let r = Hf(n.suffix || []);
|
|
7125
|
-
F.value = r.filter((e) => e.main).map((e) => (
|
|
7125
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = Xm(n.trigger);
|
|
7126
7126
|
let i = Qm(e.options ?? n.option);
|
|
7127
7127
|
t.tableTitle && i.title && pd(t.tableTitle), L.value = i;
|
|
7128
|
-
},
|
|
7129
|
-
v.value = !1,
|
|
7128
|
+
}, Fe = async () => {
|
|
7129
|
+
v.value = !1, Ne();
|
|
7130
7130
|
let t = e.id || o.params.id;
|
|
7131
7131
|
if (k.value = {
|
|
7132
7132
|
params: [],
|
|
@@ -7141,12 +7141,12 @@ var fh = f({
|
|
|
7141
7141
|
ne.value = s("Notice.network"), re.value = !0;
|
|
7142
7142
|
return;
|
|
7143
7143
|
}
|
|
7144
|
-
|
|
7145
|
-
|
|
7144
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = Qm(e.options), await Te()) : await Km(t).then(async (e) => {
|
|
7145
|
+
Pe(e), await Te();
|
|
7146
7146
|
}).catch((e) => {
|
|
7147
7147
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
7148
7148
|
});
|
|
7149
|
-
},
|
|
7149
|
+
}, Ie = (e) => {
|
|
7150
7150
|
if (e.type !== "group" && e.optionsType) {
|
|
7151
7151
|
let n = U(e.onClick);
|
|
7152
7152
|
e.onClick = () => {
|
|
@@ -7159,6 +7159,7 @@ var fh = f({
|
|
|
7159
7159
|
onClick: n,
|
|
7160
7160
|
optionsSource: e.optionsSource,
|
|
7161
7161
|
mainFormValue: () => z.value,
|
|
7162
|
+
tableData: () => E.value,
|
|
7162
7163
|
children: null,
|
|
7163
7164
|
callback: null
|
|
7164
7165
|
});
|
|
@@ -7177,7 +7178,7 @@ var fh = f({
|
|
|
7177
7178
|
}
|
|
7178
7179
|
};
|
|
7179
7180
|
}
|
|
7180
|
-
},
|
|
7181
|
+
}, Le = () => {
|
|
7181
7182
|
if (_.value) return;
|
|
7182
7183
|
_.value = !0;
|
|
7183
7184
|
let t = e.id || o.params.id;
|
|
@@ -7185,30 +7186,30 @@ var fh = f({
|
|
|
7185
7186
|
table_id: t,
|
|
7186
7187
|
data: null
|
|
7187
7188
|
}).catch(() => null).finally(() => {
|
|
7188
|
-
|
|
7189
|
+
Te(), _.value = !1;
|
|
7189
7190
|
}));
|
|
7190
|
-
},
|
|
7191
|
-
|
|
7192
|
-
},
|
|
7191
|
+
}, Re = (e, t, n) => {
|
|
7192
|
+
Ae(e, n.key);
|
|
7193
|
+
}, ze = () => {
|
|
7193
7194
|
O.value = E.value.map((e) => e.id);
|
|
7194
|
-
},
|
|
7195
|
+
}, Be = () => {
|
|
7195
7196
|
O.value = [];
|
|
7196
7197
|
};
|
|
7197
7198
|
return r({
|
|
7198
|
-
rebuild:
|
|
7199
|
+
rebuild: Fe,
|
|
7199
7200
|
init: B,
|
|
7200
|
-
nextPage:
|
|
7201
|
+
nextPage: me
|
|
7201
7202
|
}), b(async () => {
|
|
7202
|
-
await
|
|
7203
|
+
await Fe(), g(() => {
|
|
7203
7204
|
d.value?.scrollTo({
|
|
7204
7205
|
left: 0,
|
|
7205
7206
|
right: 0
|
|
7206
7207
|
});
|
|
7207
7208
|
});
|
|
7208
7209
|
}), M(() => e.height, () => {
|
|
7209
|
-
|
|
7210
|
+
De();
|
|
7210
7211
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
7211
|
-
ud(), await
|
|
7212
|
+
ud(), await Fe();
|
|
7212
7213
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
7213
7214
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
7214
7215
|
ie.value = t, z.value = n;
|
|
@@ -7235,25 +7236,25 @@ var fh = f({
|
|
|
7235
7236
|
checkRowKeys: ie,
|
|
7236
7237
|
route: o,
|
|
7237
7238
|
rowKey: oe,
|
|
7238
|
-
pageChange:
|
|
7239
|
-
pageSizeChange:
|
|
7240
|
-
pageSorter:
|
|
7241
|
-
showChange:
|
|
7242
|
-
submit:
|
|
7243
|
-
handleAdd:
|
|
7244
|
-
handleColumnChange:
|
|
7239
|
+
pageChange: pe,
|
|
7240
|
+
pageSizeChange: he,
|
|
7241
|
+
pageSorter: ge,
|
|
7242
|
+
showChange: V,
|
|
7243
|
+
submit: ve,
|
|
7244
|
+
handleAdd: _e,
|
|
7245
|
+
handleColumnChange: je,
|
|
7245
7246
|
handleCheckRowKeys: ce,
|
|
7246
7247
|
handleExpandedRowKeys: le,
|
|
7247
|
-
checkRole:
|
|
7248
|
-
rebuild:
|
|
7248
|
+
checkRole: be,
|
|
7249
|
+
rebuild: Fe,
|
|
7249
7250
|
summaryFn: ue,
|
|
7250
7251
|
handleMobileCheckRowKeys: se,
|
|
7251
|
-
isTypeofNumber:
|
|
7252
|
-
resetFilter:
|
|
7253
|
-
handleColumnResize:
|
|
7252
|
+
isTypeofNumber: Ee,
|
|
7253
|
+
resetFilter: Le,
|
|
7254
|
+
handleColumnResize: Re,
|
|
7254
7255
|
expandedRowKeys: O,
|
|
7255
|
-
handleExpandAll:
|
|
7256
|
-
handleContractAll:
|
|
7256
|
+
handleExpandAll: ze,
|
|
7257
|
+
handleContractAll: Be,
|
|
7257
7258
|
doPortChange: () => {
|
|
7258
7259
|
B();
|
|
7259
7260
|
}
|
|
@@ -8005,7 +8006,7 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8005
8006
|
name: "UzTableDrawer",
|
|
8006
8007
|
components: {
|
|
8007
8008
|
NButton: R,
|
|
8008
|
-
NDrawerContent:
|
|
8009
|
+
NDrawerContent: de,
|
|
8009
8010
|
NDrawer: ue,
|
|
8010
8011
|
NSkeleton: je,
|
|
8011
8012
|
NSpin: Ne,
|
|
@@ -8564,7 +8565,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8564
8565
|
var Zh = /*#__PURE__*/ W(Kh, [["render", Xh], ["__scopeId", "data-v-70b54e3b"]]), Qh = f({
|
|
8565
8566
|
name: "UzTableFile",
|
|
8566
8567
|
components: {
|
|
8567
|
-
NDropdown:
|
|
8568
|
+
NDropdown: fe,
|
|
8568
8569
|
NButton: R,
|
|
8569
8570
|
NModal: we,
|
|
8570
8571
|
NUpload: ze,
|
|
@@ -9636,7 +9637,7 @@ function f_(e, t, n) {
|
|
|
9636
9637
|
}
|
|
9637
9638
|
//#endregion
|
|
9638
9639
|
//#region package.json
|
|
9639
|
-
var p_ = "0.1.
|
|
9640
|
+
var p_ = "0.1.106", m_;
|
|
9640
9641
|
async function h_() {
|
|
9641
9642
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
9642
9643
|
method: "HEAD",
|