@unizhen/ui 0.1.105 → 0.1.107
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 +403 -408
- 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: "全部展开",
|
|
@@ -5425,50 +5425,44 @@ var xm = /*#__PURE__*/ W(hm, [["render", bm]]), Sm = /* @__PURE__ */ new WeakMap
|
|
|
5425
5425
|
}
|
|
5426
5426
|
}), wm = { class: "uz-flex uz-justify-between uz-gap-2" }, Tm = {
|
|
5427
5427
|
key: 0,
|
|
5428
|
-
class: "uz-flex uz-items-start uz-justify-between uz-gap-
|
|
5429
|
-
}, Em = { class: "uz-flex-1" },
|
|
5428
|
+
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
5429
|
+
}, Em = { key: 0 }, Dm = { class: "uz-flex-1" }, Om = {
|
|
5430
5430
|
key: 1,
|
|
5431
5431
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
5432
|
-
},
|
|
5432
|
+
}, km = {
|
|
5433
5433
|
key: 0,
|
|
5434
5434
|
class: "uz-search-fields-collapse"
|
|
5435
5435
|
};
|
|
5436
|
-
function
|
|
5436
|
+
function Am(n, s, c, d, f, p) {
|
|
5437
5437
|
let m = O("NButton"), h = O("NButtonGroup"), g = O("NGridItem"), v = O("NInputGroupLabel"), y = O("NPopover"), b = O("UzFormItem"), x = O("NInputGroup"), C = O("NGrid"), w = O("CaretDown"), T = O("NIcon"), ee = O("Search"), te = O("Refresh"), j = k("media");
|
|
5438
5438
|
return S(), a("div", {
|
|
5439
5439
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
5440
5440
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
5441
|
-
}, [o("div", wm, [n.enableHeader ? (S(), a("div", Tm, [
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
n.tabList && n.tabList.length > 0 ? (S(), r(g, {
|
|
5450
|
-
key: 0,
|
|
5451
|
-
span: n.gridSpan
|
|
5441
|
+
}, [o("div", wm, [n.enableHeader ? (S(), a("div", Tm, [
|
|
5442
|
+
D(n.$slots, "header"),
|
|
5443
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", Em, [u(h, null, {
|
|
5444
|
+
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
5445
|
+
key: e.value,
|
|
5446
|
+
type: n.tabButtonType(e),
|
|
5447
|
+
secondary: "",
|
|
5448
|
+
onClick: (t) => n.tabItemChange(e.value)
|
|
5452
5449
|
}, {
|
|
5453
|
-
default: P(() => [
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
n.offset > -1 ? (S(), r(g, {
|
|
5468
|
-
key: 1,
|
|
5450
|
+
default: P(() => [l(A(e.label), 1)]),
|
|
5451
|
+
_: 2
|
|
5452
|
+
}, 1032, ["type", "onClick"]))), 128))]),
|
|
5453
|
+
_: 1
|
|
5454
|
+
})])) : i("", !0),
|
|
5455
|
+
F((S(), a("div", Dm, [u(C, {
|
|
5456
|
+
"x-gap": "8",
|
|
5457
|
+
"y-gap": "8",
|
|
5458
|
+
cols: n.cols,
|
|
5459
|
+
"collapsed-rows": 1,
|
|
5460
|
+
collapsed: !0
|
|
5461
|
+
}, {
|
|
5462
|
+
default: P(() => [n.offset > -1 ? (S(), r(g, {
|
|
5463
|
+
key: 0,
|
|
5469
5464
|
offset: n.offset
|
|
5470
|
-
}, null, 8, ["offset"])) : i("", !0),
|
|
5471
|
-
n.collapsed ? (S(!0), a(e, { key: 2 }, E(n.itemData, (e, t) => (S(), r(g, {
|
|
5465
|
+
}, null, 8, ["offset"])) : i("", !0), n.collapsed ? (S(!0), a(e, { key: 1 }, E(n.itemData, (e, t) => (S(), r(g, {
|
|
5472
5466
|
key: `${t}_${Date.now()}`,
|
|
5473
5467
|
span: e.search.show ? e.search.span === 1 ? n.gridSpan : e.search.span || n.gridSpan : 0
|
|
5474
5468
|
}, {
|
|
@@ -5492,13 +5486,13 @@ function km(n, s, c, d, f, p) {
|
|
|
5492
5486
|
_: 2
|
|
5493
5487
|
}, 1024)]),
|
|
5494
5488
|
_: 2
|
|
5495
|
-
}, 1032, ["span"]))), 128)) : i("", !0)
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5489
|
+
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
5490
|
+
_: 1
|
|
5491
|
+
}, 8, ["cols"])])), [[j]])
|
|
5492
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", Om, [
|
|
5499
5493
|
n.more ? (S(), r(m, {
|
|
5500
5494
|
key: 0,
|
|
5501
|
-
|
|
5495
|
+
secondary: "",
|
|
5502
5496
|
onClick: n.showMore
|
|
5503
5497
|
}, {
|
|
5504
5498
|
icon: P(() => [u(T, { class: _(["uz-search-more", n.collapsed ? void 0 : "uz-search-rotate"]) }, {
|
|
@@ -5545,7 +5539,7 @@ function km(n, s, c, d, f, p) {
|
|
|
5545
5539
|
})) : i("", !0),
|
|
5546
5540
|
D(n.$slots, "action")
|
|
5547
5541
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
5548
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
5542
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", km, [u(C, {
|
|
5549
5543
|
"x-gap": "8",
|
|
5550
5544
|
"y-gap": "8",
|
|
5551
5545
|
cols: 4
|
|
@@ -5580,13 +5574,13 @@ function km(n, s, c, d, f, p) {
|
|
|
5580
5574
|
_: 1
|
|
5581
5575
|
})], 32);
|
|
5582
5576
|
}
|
|
5583
|
-
var
|
|
5577
|
+
var jm = /*#__PURE__*/ W(Cm, [["render", Am]]), Mm = f({
|
|
5584
5578
|
name: "UzSearchMobileBar",
|
|
5585
5579
|
components: {
|
|
5586
5580
|
NIcon: V,
|
|
5587
5581
|
NButton: R,
|
|
5588
5582
|
NDrawer: ue,
|
|
5589
|
-
NDrawerContent:
|
|
5583
|
+
NDrawerContent: de,
|
|
5590
5584
|
NGrid: ge,
|
|
5591
5585
|
NGridItem: _e,
|
|
5592
5586
|
NInputGroup: xe,
|
|
@@ -5671,10 +5665,10 @@ var Am = /*#__PURE__*/ W(Cm, [["render", km]]), jm = f({
|
|
|
5671
5665
|
clearAll: l
|
|
5672
5666
|
};
|
|
5673
5667
|
}
|
|
5674
|
-
}),
|
|
5675
|
-
function
|
|
5668
|
+
}), Nm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, Pm = { class: "uz-flex uz-gap-2" }, Fm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5669
|
+
function Im(t, n, s, c, d, f) {
|
|
5676
5670
|
let p = O("Search"), m = O("NIcon"), h = O("NButton"), g = O("NInputGroupLabel"), _ = O("UzFormItem"), v = O("NInputGroup"), y = O("NGridItem"), b = O("NGrid"), x = O("Refresh"), C = O("NDrawerContent"), w = O("NDrawer");
|
|
5677
|
-
return S(), a(e, null, [o("div",
|
|
5671
|
+
return S(), a(e, null, [o("div", Nm, [D(t.$slots, "header"), o("div", Pm, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), r(h, {
|
|
5678
5672
|
key: 0,
|
|
5679
5673
|
secondary: "",
|
|
5680
5674
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -5699,7 +5693,7 @@ function Fm(t, n, s, c, d, f) {
|
|
|
5699
5693
|
title: "查询",
|
|
5700
5694
|
closable: ""
|
|
5701
5695
|
}, {
|
|
5702
|
-
footer: P(() => [o("div",
|
|
5696
|
+
footer: P(() => [o("div", Fm, [u(h, {
|
|
5703
5697
|
secondary: "",
|
|
5704
5698
|
loading: t.loading,
|
|
5705
5699
|
onClick: t.clearAll,
|
|
@@ -5754,7 +5748,7 @@ function Fm(t, n, s, c, d, f) {
|
|
|
5754
5748
|
_: 1
|
|
5755
5749
|
}, 8, ["show"])], 64);
|
|
5756
5750
|
}
|
|
5757
|
-
var
|
|
5751
|
+
var Lm = /*#__PURE__*/ W(Mm, [["render", Im]]), Rm = /(?<=\[)(.+?)(?=\])/g, zm = {
|
|
5758
5752
|
index: 1,
|
|
5759
5753
|
selection: 0,
|
|
5760
5754
|
pagination: 1,
|
|
@@ -5772,10 +5766,10 @@ var Im = /*#__PURE__*/ W(jm, [["render", Fm]]), Lm = /(?<=\[)(.+?)(?=\])/g, Rm =
|
|
|
5772
5766
|
placement: "right",
|
|
5773
5767
|
summary: ""
|
|
5774
5768
|
};
|
|
5775
|
-
function
|
|
5769
|
+
function Bm(e) {
|
|
5776
5770
|
return Function("return " + e)();
|
|
5777
5771
|
}
|
|
5778
|
-
var
|
|
5772
|
+
var Vm = () => new Promise((e) => {
|
|
5779
5773
|
let t = window.localStorage.getItem("city");
|
|
5780
5774
|
if (t) e(JSON.parse(t));
|
|
5781
5775
|
else {
|
|
@@ -5788,9 +5782,9 @@ var Bm = () => new Promise((e) => {
|
|
|
5788
5782
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
5789
5783
|
}, 500);
|
|
5790
5784
|
}
|
|
5791
|
-
}),
|
|
5785
|
+
}), Hm = async (e, t, n) => {
|
|
5792
5786
|
if (t && typeof t == "string") {
|
|
5793
|
-
let r = t.match(
|
|
5787
|
+
let r = t.match(Rm);
|
|
5794
5788
|
if (r && t.indexOf("return") === -1) {
|
|
5795
5789
|
let t = r[0].split(":");
|
|
5796
5790
|
if (t[0] === "date") return (t) => fd(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -5811,7 +5805,7 @@ var Bm = () => new Promise((e) => {
|
|
|
5811
5805
|
}
|
|
5812
5806
|
}
|
|
5813
5807
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
5814
|
-
},
|
|
5808
|
+
}, Um = (e, t, n) => {
|
|
5815
5809
|
let r = t.map((t) => {
|
|
5816
5810
|
let r = [], i = t.id;
|
|
5817
5811
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -5824,35 +5818,35 @@ var Bm = () => new Promise((e) => {
|
|
|
5824
5818
|
};
|
|
5825
5819
|
});
|
|
5826
5820
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5827
|
-
},
|
|
5828
|
-
function
|
|
5829
|
-
|
|
5821
|
+
}, Wm = /* @__PURE__ */ new Map();
|
|
5822
|
+
function Gm() {
|
|
5823
|
+
Wm.clear();
|
|
5830
5824
|
}
|
|
5831
|
-
async function
|
|
5825
|
+
async function Km(e, t = !1) {
|
|
5832
5826
|
let n = e.split("."), r = !1;
|
|
5833
|
-
return n.length > 1 && (
|
|
5827
|
+
return n.length > 1 && (Wm.has(n[0]) && !t ? r = U(Wm.get(n[0])) : (r = await bf({ tableId: n[0] }), Wm.set(n[0], r))), {
|
|
5834
5828
|
sourceData: r,
|
|
5835
5829
|
n
|
|
5836
5830
|
};
|
|
5837
5831
|
}
|
|
5838
|
-
async function
|
|
5832
|
+
async function qm(e) {
|
|
5839
5833
|
return new Promise((t, n) => {
|
|
5840
5834
|
let r = X(`dynamicTable_${e}`, !1);
|
|
5841
|
-
r &&
|
|
5835
|
+
r && Wm.has(`dynamicTable_${e}`) ? t(r) : yf(e, r ? r.createTime : null).then((n) => {
|
|
5842
5836
|
if (n) {
|
|
5843
5837
|
let r = {
|
|
5844
5838
|
createTime: n.createTime,
|
|
5845
5839
|
tableTitle: n.tableTitle,
|
|
5846
5840
|
viewJson: n.viewJson
|
|
5847
5841
|
};
|
|
5848
|
-
Y(`dynamicTable_${e}`, r, 0),
|
|
5849
|
-
} else
|
|
5842
|
+
Y(`dynamicTable_${e}`, r, 0), Wm.set(`dynamicTable_${e}`, !0), cd("tables_"), t(n);
|
|
5843
|
+
} else Wm.set(`dynamicTable_${e}`, !0), t(r);
|
|
5850
5844
|
}).catch(() => {
|
|
5851
5845
|
n();
|
|
5852
5846
|
});
|
|
5853
5847
|
});
|
|
5854
5848
|
}
|
|
5855
|
-
var
|
|
5849
|
+
var Jm = (e) => e.map((e) => {
|
|
5856
5850
|
let t = {};
|
|
5857
5851
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
5858
5852
|
i: e.input,
|
|
@@ -5927,7 +5921,7 @@ var qm = (e) => e.map((e) => {
|
|
|
5927
5921
|
p: { s: +!!e.form.expand.show }
|
|
5928
5922
|
}
|
|
5929
5923
|
};
|
|
5930
|
-
}),
|
|
5924
|
+
}), Ym = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5931
5925
|
let t = {};
|
|
5932
5926
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
5933
5927
|
input: e.i,
|
|
@@ -6002,12 +5996,12 @@ var qm = (e) => e.map((e) => {
|
|
|
6002
5996
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
6003
5997
|
}
|
|
6004
5998
|
};
|
|
6005
|
-
}),
|
|
5999
|
+
}), Xm = (e) => ({
|
|
6006
6000
|
f: e.fetch,
|
|
6007
6001
|
n: e.fetchFn,
|
|
6008
6002
|
o: e.when_drawer_open,
|
|
6009
6003
|
b: e.when_before_save
|
|
6010
|
-
}),
|
|
6004
|
+
}), Zm = (e) => e ? e.fetch ? e : {
|
|
6011
6005
|
fetch: e.f,
|
|
6012
6006
|
fetchFn: e.n,
|
|
6013
6007
|
when_drawer_open: e.o,
|
|
@@ -6017,7 +6011,7 @@ var qm = (e) => e.map((e) => {
|
|
|
6017
6011
|
fetchFn: "",
|
|
6018
6012
|
when_drawer_open: "",
|
|
6019
6013
|
when_before_save: ""
|
|
6020
|
-
},
|
|
6014
|
+
}, Qm = (e) => ({
|
|
6021
6015
|
i: e.index,
|
|
6022
6016
|
s: e.selection,
|
|
6023
6017
|
p: e.pagination,
|
|
@@ -6033,7 +6027,7 @@ var qm = (e) => e.map((e) => {
|
|
|
6033
6027
|
h: e.drawerHeight,
|
|
6034
6028
|
l: e.placement,
|
|
6035
6029
|
r: e.summary
|
|
6036
|
-
}),
|
|
6030
|
+
}), $m = (e) => {
|
|
6037
6031
|
let t = {};
|
|
6038
6032
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
6039
6033
|
index: e.i,
|
|
@@ -6051,9 +6045,9 @@ var qm = (e) => e.map((e) => {
|
|
|
6051
6045
|
drawerHeight: e.h,
|
|
6052
6046
|
placement: e.l,
|
|
6053
6047
|
summary: e.r
|
|
6054
|
-
}), Object.assign({},
|
|
6048
|
+
}), Object.assign({}, zm, U(t));
|
|
6055
6049
|
};
|
|
6056
|
-
function
|
|
6050
|
+
function eh(e, t, n, r) {
|
|
6057
6051
|
return new Promise(async (i, a) => {
|
|
6058
6052
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
6059
6053
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -6088,21 +6082,21 @@ function $m(e, t, n, r) {
|
|
|
6088
6082
|
disabled: !0
|
|
6089
6083
|
}];
|
|
6090
6084
|
if (e.params.immediately || r) {
|
|
6091
|
-
let { sourceData: t, n: r } = await
|
|
6085
|
+
let { sourceData: t, n: r } = await Km(e.source);
|
|
6092
6086
|
if (t && Array.isArray(t)) {
|
|
6093
6087
|
if (e.sourceFn) {
|
|
6094
6088
|
let r = e.sourceFn;
|
|
6095
6089
|
n = Function("sourceData", r)(t);
|
|
6096
|
-
} else n =
|
|
6090
|
+
} else n = Um(e, t, r);
|
|
6097
6091
|
}
|
|
6098
6092
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
6099
|
-
let { sourceData: t, n } = await
|
|
6093
|
+
let { sourceData: t, n } = await Km(e.source);
|
|
6100
6094
|
if (t && Array.isArray(t)) {
|
|
6101
6095
|
if (e.sourceFn) {
|
|
6102
6096
|
let n = e.sourceFn;
|
|
6103
6097
|
return Function("sourceData", n)(t);
|
|
6104
6098
|
}
|
|
6105
|
-
return
|
|
6099
|
+
return Um(e, t, n);
|
|
6106
6100
|
}
|
|
6107
6101
|
};
|
|
6108
6102
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -6136,27 +6130,27 @@ function $m(e, t, n, r) {
|
|
|
6136
6130
|
J(e);
|
|
6137
6131
|
}
|
|
6138
6132
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
6139
|
-
let t = await
|
|
6133
|
+
let t = await Vm();
|
|
6140
6134
|
e.params.options = t;
|
|
6141
6135
|
}
|
|
6142
6136
|
if (e.input === "subTable" && e.params.link) {
|
|
6143
|
-
let t = await
|
|
6137
|
+
let t = await qm(e.params.link).catch(() => {
|
|
6144
6138
|
a();
|
|
6145
6139
|
});
|
|
6146
6140
|
if (t) try {
|
|
6147
6141
|
let n = rt.parse(t.viewJson);
|
|
6148
6142
|
n.suffix && (e._suffix = Hf(n.suffix));
|
|
6149
|
-
let r =
|
|
6143
|
+
let r = Ym(n.table);
|
|
6150
6144
|
r.forEach((e) => {
|
|
6151
6145
|
e.table.sorter = !1;
|
|
6152
6146
|
});
|
|
6153
6147
|
let i = r.filter((e) => e.input === "subTable");
|
|
6154
6148
|
if (i) for await (let e of i) {
|
|
6155
|
-
let t = await
|
|
6149
|
+
let t = await qm(e.params.link).catch(() => {
|
|
6156
6150
|
a();
|
|
6157
6151
|
});
|
|
6158
6152
|
if (t) try {
|
|
6159
|
-
let n = rt.parse(t.viewJson), r =
|
|
6153
|
+
let n = rt.parse(t.viewJson), r = Ym(n.table);
|
|
6160
6154
|
r.forEach((e) => {
|
|
6161
6155
|
e.table.sorter = !1;
|
|
6162
6156
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -6190,7 +6184,7 @@ function $m(e, t, n, r) {
|
|
|
6190
6184
|
});
|
|
6191
6185
|
});
|
|
6192
6186
|
}
|
|
6193
|
-
async function
|
|
6187
|
+
async function th(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
6194
6188
|
let s = 0, c = [], l = [], u = {
|
|
6195
6189
|
key: "",
|
|
6196
6190
|
link: "",
|
|
@@ -6205,25 +6199,25 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6205
6199
|
for await (let [e, s] of m.entries()) {
|
|
6206
6200
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
6207
6201
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
6208
|
-
let { sourceData: t, n } = await
|
|
6202
|
+
let { sourceData: t, n } = await Km(s.source, a && e === 0);
|
|
6209
6203
|
if (t && Array.isArray(t)) {
|
|
6210
6204
|
if (s.sourceFn) {
|
|
6211
6205
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
6212
6206
|
s.params.options = n(t);
|
|
6213
|
-
} else s.params.options =
|
|
6207
|
+
} else s.params.options = Um(s, t, n);
|
|
6214
6208
|
}
|
|
6215
6209
|
} else s.params.options = [{
|
|
6216
6210
|
label: "加载中......",
|
|
6217
6211
|
value: "loading",
|
|
6218
6212
|
disabled: !0
|
|
6219
6213
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
6220
|
-
let { sourceData: e, n: t } = await
|
|
6214
|
+
let { sourceData: e, n: t } = await Km(s.source);
|
|
6221
6215
|
if (e && Array.isArray(e)) {
|
|
6222
6216
|
if (s.sourceFn) {
|
|
6223
6217
|
let t = s.sourceFn;
|
|
6224
6218
|
return Function("sourceData", t)(e);
|
|
6225
6219
|
}
|
|
6226
|
-
return
|
|
6220
|
+
return Um(s, e, t);
|
|
6227
6221
|
}
|
|
6228
6222
|
};
|
|
6229
6223
|
}
|
|
@@ -6246,7 +6240,7 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6246
6240
|
tooltip: !0,
|
|
6247
6241
|
"line-clamp": s.table.clamp ?? 0
|
|
6248
6242
|
} : !1,
|
|
6249
|
-
render: s.table.render ? await
|
|
6243
|
+
render: s.table.render ? await Hm(s.key, s.table.render, i) : void 0,
|
|
6250
6244
|
show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
6251
6245
|
pin: !!s.table.fixed,
|
|
6252
6246
|
fixTemp: s.table.fixed
|
|
@@ -6281,34 +6275,34 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6281
6275
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
6282
6276
|
if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
6283
6277
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
6284
|
-
let { sourceData: e, n: t } = await
|
|
6278
|
+
let { sourceData: e, n: t } = await Km(s.search.source);
|
|
6285
6279
|
if (e && Array.isArray(e)) {
|
|
6286
6280
|
if (s.sourceFn) {
|
|
6287
6281
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
6288
6282
|
s.params.options = n(e);
|
|
6289
|
-
} else s.params.options =
|
|
6283
|
+
} else s.params.options = Um(s, e, t);
|
|
6290
6284
|
}
|
|
6291
6285
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
6292
|
-
let { sourceData: e, n: t } = await
|
|
6286
|
+
let { sourceData: e, n: t } = await Km(s.search.source);
|
|
6293
6287
|
if (e && Array.isArray(e)) {
|
|
6294
6288
|
if (s.sourceFn) {
|
|
6295
6289
|
let t = s.sourceFn;
|
|
6296
6290
|
return Function("sourceData", t)(e);
|
|
6297
6291
|
}
|
|
6298
|
-
return
|
|
6292
|
+
return Um(s, e, t);
|
|
6299
6293
|
}
|
|
6300
6294
|
};
|
|
6301
6295
|
}
|
|
6302
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
6296
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Bm(s.search.defaultValue))), s.search.show) {
|
|
6303
6297
|
let e = U(s);
|
|
6304
6298
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
6305
|
-
let { sourceData: t, n } = await
|
|
6299
|
+
let { sourceData: t, n } = await Km(e.source || e.search.source);
|
|
6306
6300
|
if (t && Array.isArray(t)) {
|
|
6307
6301
|
if (e.sourceFn) {
|
|
6308
6302
|
let n = e.sourceFn;
|
|
6309
6303
|
return Function("sourceData", n)(t);
|
|
6310
6304
|
}
|
|
6311
|
-
return
|
|
6305
|
+
return Um(e, t, n);
|
|
6312
6306
|
}
|
|
6313
6307
|
}), c.push({
|
|
6314
6308
|
input: e.input,
|
|
@@ -6362,12 +6356,12 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6362
6356
|
}
|
|
6363
6357
|
//#endregion
|
|
6364
6358
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
6365
|
-
var
|
|
6359
|
+
var nh = f({
|
|
6366
6360
|
name: "UzSpin",
|
|
6367
6361
|
components: {
|
|
6368
6362
|
NButton: R,
|
|
6369
6363
|
NSpin: Ne,
|
|
6370
|
-
NEllipsis:
|
|
6364
|
+
NEllipsis: B
|
|
6371
6365
|
},
|
|
6372
6366
|
emits: ["update:value"],
|
|
6373
6367
|
props: {
|
|
@@ -6408,7 +6402,7 @@ var th = f({
|
|
|
6408
6402
|
});
|
|
6409
6403
|
//#endregion
|
|
6410
6404
|
//#region components/spin/index.vue
|
|
6411
|
-
function
|
|
6405
|
+
function rh(e, t, n, i, a, s) {
|
|
6412
6406
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
6413
6407
|
return S(), r(f, { show: e.value }, {
|
|
6414
6408
|
description: P(() => [
|
|
@@ -6436,7 +6430,7 @@ function nh(e, t, n, i, a, s) {
|
|
|
6436
6430
|
_: 3
|
|
6437
6431
|
}, 8, ["show"]);
|
|
6438
6432
|
}
|
|
6439
|
-
var
|
|
6433
|
+
var ih = /*#__PURE__*/ W(nh, [["render", rh]]), ah = f({
|
|
6440
6434
|
name: "UzTableExpand",
|
|
6441
6435
|
components: {
|
|
6442
6436
|
NDataTable: se,
|
|
@@ -6462,8 +6456,8 @@ var rh = /*#__PURE__*/ W(th, [["render", nh]]), ih = f({
|
|
|
6462
6456
|
} catch (e) {
|
|
6463
6457
|
J(e);
|
|
6464
6458
|
}
|
|
6465
|
-
|
|
6466
|
-
let { tableColumns: r } = await
|
|
6459
|
+
qm(e.data.link).then(async (e) => {
|
|
6460
|
+
let { tableColumns: r } = await th(Ym(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
6467
6461
|
...e,
|
|
6468
6462
|
sorter: !1,
|
|
6469
6463
|
resizable: !1
|
|
@@ -6484,7 +6478,7 @@ var rh = /*#__PURE__*/ W(th, [["render", nh]]), ih = f({
|
|
|
6484
6478
|
});
|
|
6485
6479
|
//#endregion
|
|
6486
6480
|
//#region components/table/components/expand.vue
|
|
6487
|
-
function
|
|
6481
|
+
function oh(e, t, n, i, a, o) {
|
|
6488
6482
|
let s = O("NDataTable");
|
|
6489
6483
|
return S(), r(s, {
|
|
6490
6484
|
columns: e.columns,
|
|
@@ -6503,18 +6497,18 @@ function ah(e, t, n, i, a, o) {
|
|
|
6503
6497
|
"scroll-x"
|
|
6504
6498
|
]);
|
|
6505
6499
|
}
|
|
6506
|
-
var
|
|
6500
|
+
var sh = /*#__PURE__*/ W(ah, [["render", oh]]), ch = f({
|
|
6507
6501
|
components: { NSkeleton: je },
|
|
6508
6502
|
setup() {
|
|
6509
6503
|
return {};
|
|
6510
6504
|
}
|
|
6511
|
-
}),
|
|
6512
|
-
function
|
|
6505
|
+
}), lh = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, uh = { class: "uz-flex uz-justify-between" }, dh = { class: "uz-flex uz-gap-1" };
|
|
6506
|
+
function fh(e, t, n, r, i, s) {
|
|
6513
6507
|
let c = O("NSkeleton");
|
|
6514
|
-
return S(), a("div",
|
|
6508
|
+
return S(), a("div", lh, [o("div", uh, [u(c, {
|
|
6515
6509
|
width: 120,
|
|
6516
6510
|
size: "medium"
|
|
6517
|
-
}), o("div",
|
|
6511
|
+
}), o("div", dh, [
|
|
6518
6512
|
u(c, {
|
|
6519
6513
|
width: 180,
|
|
6520
6514
|
size: "medium"
|
|
@@ -6547,7 +6541,7 @@ function dh(e, t, n, r, i, s) {
|
|
|
6547
6541
|
}
|
|
6548
6542
|
//#endregion
|
|
6549
6543
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
6550
|
-
var
|
|
6544
|
+
var ph = f({
|
|
6551
6545
|
name: "UzTable",
|
|
6552
6546
|
components: {
|
|
6553
6547
|
NDataTable: se,
|
|
@@ -6560,10 +6554,10 @@ var fh = f({
|
|
|
6560
6554
|
GridDots: ns,
|
|
6561
6555
|
Plus: fc,
|
|
6562
6556
|
VueDraggable: nt,
|
|
6563
|
-
UzSpin:
|
|
6557
|
+
UzSpin: ih,
|
|
6564
6558
|
UzIcon: Ru,
|
|
6565
|
-
TableExpand:
|
|
6566
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
6559
|
+
TableExpand: sh,
|
|
6560
|
+
SkeletonLoading: /* @__PURE__ */ W(ch, [["render", fh]])
|
|
6567
6561
|
},
|
|
6568
6562
|
props: {
|
|
6569
6563
|
id: {
|
|
@@ -6703,7 +6697,7 @@ var fh = f({
|
|
|
6703
6697
|
fetchFn: "",
|
|
6704
6698
|
when_drawer_open: "",
|
|
6705
6699
|
when_before_save: ""
|
|
6706
|
-
}), L = T(
|
|
6700
|
+
}), L = T($m()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
6707
6701
|
t("update:rowKeys", {
|
|
6708
6702
|
keys: e,
|
|
6709
6703
|
rows: U(n)
|
|
@@ -6728,59 +6722,72 @@ var fh = f({
|
|
|
6728
6722
|
return (t) => e(t, p);
|
|
6729
6723
|
}
|
|
6730
6724
|
return t && typeof t == "function" ? t : () => [];
|
|
6731
|
-
}),
|
|
6725
|
+
}), de = (t) => {
|
|
6726
|
+
let n = e.id || o.params.id, r;
|
|
6727
|
+
if (e.fetch) r = e.fetch({
|
|
6728
|
+
...t,
|
|
6729
|
+
tableId: n
|
|
6730
|
+
});
|
|
6731
|
+
else if (I.value.fetchFn) {
|
|
6732
|
+
let e = I.value.fetchFn;
|
|
6733
|
+
r = Function("POST", "queryData", e)(Q, { ...t });
|
|
6734
|
+
} else r = bf({
|
|
6735
|
+
...t,
|
|
6736
|
+
tableId: n
|
|
6737
|
+
});
|
|
6738
|
+
return r;
|
|
6739
|
+
}, fe = (t) => {
|
|
6740
|
+
let n = e.id || o.params.id, r;
|
|
6741
|
+
if (e.fetch) r = e.fetch({
|
|
6742
|
+
id: t.id,
|
|
6743
|
+
tableId: n
|
|
6744
|
+
});
|
|
6745
|
+
else if (I.value.fetchFn) {
|
|
6746
|
+
let e = I.value.fetchFn;
|
|
6747
|
+
r = Function("POST", "queryData", e)(Q, { id: t.id });
|
|
6748
|
+
} else r = bf({
|
|
6749
|
+
id: t.id,
|
|
6750
|
+
tableId: n
|
|
6751
|
+
});
|
|
6752
|
+
return r;
|
|
6753
|
+
}, B = (n = !1) => {
|
|
6732
6754
|
let r = e.id || o.params.id;
|
|
6733
6755
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
6734
6756
|
let i = U(k.value);
|
|
6735
|
-
|
|
6757
|
+
n && delete i.orderby, I.value.fetch ? Tf([I.value.fetch], "", i).then((e) => {
|
|
6758
|
+
let n = dd(e);
|
|
6759
|
+
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);
|
|
6760
|
+
}).catch(() => {
|
|
6761
|
+
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
6762
|
+
}) : de(i).then((e) => {
|
|
6736
6763
|
let n = dd(e);
|
|
6737
6764
|
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
6765
|
}).catch(() => {
|
|
6739
6766
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
6740
6767
|
});
|
|
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", "queryData", e)(Q, { ...i });
|
|
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) => {
|
|
6768
|
+
}, pe = (e) => {
|
|
6762
6769
|
k.value.query.page = e, u.value && (u.value.scrollTop = 0), ud(), B();
|
|
6763
|
-
},
|
|
6770
|
+
}, me = () => {
|
|
6764
6771
|
let e = k.value.query.page + 1;
|
|
6765
6772
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
6766
|
-
},
|
|
6773
|
+
}, he = (e) => {
|
|
6767
6774
|
k.value.query.pageSize = e, k.value.query.page = 1, ud(), B();
|
|
6768
|
-
},
|
|
6775
|
+
}, ge = (e) => {
|
|
6769
6776
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
6770
|
-
},
|
|
6777
|
+
}, _e = () => {
|
|
6771
6778
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
6772
6779
|
f.value?.addAndEdit(e.id || o.params.id, async () => {
|
|
6773
|
-
let { form: e } = await
|
|
6780
|
+
let { form: e } = await xe();
|
|
6774
6781
|
return {
|
|
6775
6782
|
form: e,
|
|
6776
6783
|
data: {}
|
|
6777
6784
|
};
|
|
6778
|
-
}, L.value, I.value, 0,
|
|
6779
|
-
},
|
|
6780
|
-
e.show = !e.show,
|
|
6781
|
-
},
|
|
6785
|
+
}, L.value, I.value, 0, Me);
|
|
6786
|
+
}, V = (e) => {
|
|
6787
|
+
e.show = !e.show, je();
|
|
6788
|
+
}, ve = (e) => {
|
|
6782
6789
|
k.value.params = e, B();
|
|
6783
|
-
},
|
|
6790
|
+
}, ye = () => [{
|
|
6784
6791
|
title: "创建人/时间",
|
|
6785
6792
|
key: "createTime",
|
|
6786
6793
|
resizable: !0,
|
|
@@ -6798,28 +6805,21 @@ var fh = f({
|
|
|
6798
6805
|
ellipsis: !0,
|
|
6799
6806
|
width: 180,
|
|
6800
6807
|
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => fd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
6801
|
-
}],
|
|
6802
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
6808
|
+
}], 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) => {
|
|
6809
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await eh(N.value, e, () => f.value?.getFormValues());
|
|
6803
6810
|
return x.value = t, {
|
|
6804
6811
|
form: t,
|
|
6805
6812
|
fillingDefaultValue: n,
|
|
6806
6813
|
formDefaultValue: r
|
|
6807
6814
|
};
|
|
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]);
|
|
6815
|
+
}, Se = async (e) => new Promise((t, n) => {
|
|
6816
|
+
fe(e).then((e) => {
|
|
6817
|
+
t(e && e[0]);
|
|
6818
6818
|
}).catch(() => {
|
|
6819
|
-
|
|
6819
|
+
n();
|
|
6820
6820
|
});
|
|
6821
|
-
}),
|
|
6822
|
-
let n = await
|
|
6821
|
+
}), Ce = async (e, t) => {
|
|
6822
|
+
let n = await Se(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await xe(n || {}), a = {
|
|
6823
6823
|
...n,
|
|
6824
6824
|
...i
|
|
6825
6825
|
};
|
|
@@ -6840,19 +6840,19 @@ var fh = f({
|
|
|
6840
6840
|
form: r,
|
|
6841
6841
|
data: a
|
|
6842
6842
|
};
|
|
6843
|
-
},
|
|
6843
|
+
}, we = (n, r) => {
|
|
6844
6844
|
let i = U(n.onClick), a = e.id || o.params.id;
|
|
6845
6845
|
if (n.disabled) {
|
|
6846
6846
|
if (typeof n.disabled == "string") {
|
|
6847
6847
|
let e = Function("rowData", "rowIndex", n.disabled);
|
|
6848
|
-
n.disabled = (t, r) => e(t, r) ||
|
|
6848
|
+
n.disabled = (t, r) => e(t, r) || be(n.key);
|
|
6849
6849
|
} else if (typeof n.disabled == "function") {
|
|
6850
6850
|
let e = U(n);
|
|
6851
|
-
n.disabled = (t, r) => e.disabled(t, r) ||
|
|
6851
|
+
n.disabled = (t, r) => e.disabled(t, r) || be(n.key);
|
|
6852
6852
|
}
|
|
6853
|
-
} else n.disabled = () =>
|
|
6853
|
+
} else n.disabled = () => be(n.key);
|
|
6854
6854
|
if (n.loading = _.value, n.type !== "group" && n.optionsType) n.onClick = async (e) => {
|
|
6855
|
-
|
|
6855
|
+
Se(e).then((r) => {
|
|
6856
6856
|
if (n.optionsType === "drawer:insider") {
|
|
6857
6857
|
if (i) try {
|
|
6858
6858
|
Function("rowData", "POST", "fnNotification", i)(r, Q, c).then((e) => {
|
|
@@ -6871,6 +6871,7 @@ var fh = f({
|
|
|
6871
6871
|
onClick: n.onClick,
|
|
6872
6872
|
optionsSource: n.optionsSource,
|
|
6873
6873
|
mainFormValue: r,
|
|
6874
|
+
tableData: () => E.value,
|
|
6874
6875
|
children: () => e,
|
|
6875
6876
|
callback: null
|
|
6876
6877
|
});
|
|
@@ -6879,12 +6880,12 @@ var fh = f({
|
|
|
6879
6880
|
else if (n.type !== "group" && n.action === "detailInside") {
|
|
6880
6881
|
let t = U(n.onClick);
|
|
6881
6882
|
n.onClick = (n) => {
|
|
6882
|
-
f.value?.addAndEdit(e.id || o.params.id, () =>
|
|
6883
|
+
f.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, I.value, 2, Me);
|
|
6883
6884
|
};
|
|
6884
6885
|
} else if (n.type !== "group" && n.action === "editInside") {
|
|
6885
6886
|
let t = U(n.onClick);
|
|
6886
6887
|
n.onClick = (n) => {
|
|
6887
|
-
f.value?.addAndEdit(e.id || o.params.id, () =>
|
|
6888
|
+
f.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, I.value, 1, Me);
|
|
6888
6889
|
};
|
|
6889
6890
|
} else if (n.type !== "group" && n.action === "deleteInside") {
|
|
6890
6891
|
let t = U(n.onClick);
|
|
@@ -6930,21 +6931,14 @@ var fh = f({
|
|
|
6930
6931
|
}).catch(() => null);
|
|
6931
6932
|
};
|
|
6932
6933
|
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") {
|
|
6934
|
+
let e = U(n.onClick);
|
|
6935
|
+
n.onClick = (t) => {
|
|
6936
|
+
fe(t).then((t) => {
|
|
6937
|
+
let r = t && t[0];
|
|
6938
|
+
Tf([n.action], r.id, r).then((t) => {
|
|
6939
|
+
if (e && typeof e == "string") {
|
|
6946
6940
|
try {
|
|
6947
|
-
Function("rowData", "res",
|
|
6941
|
+
Function("rowData", "res", e)(r, t).then((e) => {
|
|
6948
6942
|
c.success({
|
|
6949
6943
|
content: e,
|
|
6950
6944
|
duration: 3e3
|
|
@@ -6957,8 +6951,8 @@ var fh = f({
|
|
|
6957
6951
|
}
|
|
6958
6952
|
return;
|
|
6959
6953
|
}
|
|
6960
|
-
if (
|
|
6961
|
-
|
|
6954
|
+
if (e && typeof e == "function") {
|
|
6955
|
+
e(r, t, () => {
|
|
6962
6956
|
c.success({
|
|
6963
6957
|
content: () => s("Notice.success"),
|
|
6964
6958
|
duration: 3e3
|
|
@@ -6979,9 +6973,9 @@ var fh = f({
|
|
|
6979
6973
|
}).catch(() => null);
|
|
6980
6974
|
};
|
|
6981
6975
|
}
|
|
6982
|
-
},
|
|
6983
|
-
re.value = !1,
|
|
6984
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
6976
|
+
}, Te = async () => {
|
|
6977
|
+
re.value = !1, Gm();
|
|
6978
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await th(N.value, e.child, 0, () => ({}), ae);
|
|
6985
6979
|
!l.value && L.value.index && n.unshift({
|
|
6986
6980
|
title: "#",
|
|
6987
6981
|
key: "index",
|
|
@@ -7007,11 +7001,11 @@ var fh = f({
|
|
|
7007
7001
|
options: ["all", "none"]
|
|
7008
7002
|
});
|
|
7009
7003
|
let c = e.id || o.params.id;
|
|
7010
|
-
if (!l.value && L.value.commonTime && n.push(...
|
|
7004
|
+
if (!l.value && L.value.commonTime && n.push(...ye()), e.enableAction === !0 && P.value && P.value.length > 0) {
|
|
7011
7005
|
let e = U(P.value);
|
|
7012
7006
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
7013
|
-
|
|
7014
|
-
}) :
|
|
7007
|
+
we(e, i);
|
|
7008
|
+
}) : we(t, i);
|
|
7015
7009
|
let t = {
|
|
7016
7010
|
title: () => s("Common.action"),
|
|
7017
7011
|
key: "action",
|
|
@@ -7049,8 +7043,8 @@ var fh = f({
|
|
|
7049
7043
|
fixed: "left",
|
|
7050
7044
|
filter: "default",
|
|
7051
7045
|
filterOptionValue: null,
|
|
7052
|
-
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick:
|
|
7053
|
-
renderExpand: (e) => p(
|
|
7046
|
+
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
7047
|
+
renderExpand: (e) => p(sh, {
|
|
7054
7048
|
data: a,
|
|
7055
7049
|
value: e
|
|
7056
7050
|
})
|
|
@@ -7059,13 +7053,13 @@ var fh = f({
|
|
|
7059
7053
|
u.forEach((e) => {
|
|
7060
7054
|
e.show && (d += Number(e.width || 140));
|
|
7061
7055
|
}), S.value = u, ee.value = r, D.value = d;
|
|
7062
|
-
},
|
|
7056
|
+
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
7063
7057
|
if (e.height) {
|
|
7064
|
-
let t =
|
|
7058
|
+
let t = Ee(e.height);
|
|
7065
7059
|
A.value = t, te.value = t;
|
|
7066
7060
|
return;
|
|
7067
7061
|
}
|
|
7068
|
-
},
|
|
7062
|
+
}, Oe = (t) => {
|
|
7069
7063
|
let n = e.id || o.params.id;
|
|
7070
7064
|
if (n) {
|
|
7071
7065
|
let e = 0;
|
|
@@ -7076,7 +7070,7 @@ var fh = f({
|
|
|
7076
7070
|
data: JSON.stringify(t)
|
|
7077
7071
|
}).catch(() => null);
|
|
7078
7072
|
}
|
|
7079
|
-
}, { run:
|
|
7073
|
+
}, { run: ke } = yp(Oe), { run: Ae } = yp((e, t) => {
|
|
7080
7074
|
let n = [];
|
|
7081
7075
|
S.value.forEach((r) => {
|
|
7082
7076
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -7086,8 +7080,8 @@ var fh = f({
|
|
|
7086
7080
|
fixed: r.fixed,
|
|
7087
7081
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
7088
7082
|
});
|
|
7089
|
-
}),
|
|
7090
|
-
}),
|
|
7083
|
+
}), Oe(n);
|
|
7084
|
+
}), je = () => {
|
|
7091
7085
|
let e = [];
|
|
7092
7086
|
S.value.forEach((t) => {
|
|
7093
7087
|
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
@@ -7097,8 +7091,8 @@ var fh = f({
|
|
|
7097
7091
|
fixed: t.fixed,
|
|
7098
7092
|
width: t.width
|
|
7099
7093
|
});
|
|
7100
|
-
}),
|
|
7101
|
-
},
|
|
7094
|
+
}), ke(e);
|
|
7095
|
+
}, Me = (t, n, r) => {
|
|
7102
7096
|
let i, a = e.id || o.params.id;
|
|
7103
7097
|
i = e.formFetch ? e.formFetch({
|
|
7104
7098
|
tableId: a,
|
|
@@ -7111,22 +7105,22 @@ var fh = f({
|
|
|
7111
7105
|
}).catch((e) => {
|
|
7112
7106
|
r(e);
|
|
7113
7107
|
});
|
|
7114
|
-
},
|
|
7108
|
+
}, Ne = () => {
|
|
7115
7109
|
y.value = "", N.value = [], P.value = [], F.value = [], I.value = {
|
|
7116
7110
|
fetch: null,
|
|
7117
7111
|
fetchFn: "",
|
|
7118
7112
|
when_drawer_open: "",
|
|
7119
7113
|
when_before_save: ""
|
|
7120
|
-
}, L.value =
|
|
7121
|
-
},
|
|
7114
|
+
}, L.value = $m();
|
|
7115
|
+
}, Pe = (t) => {
|
|
7122
7116
|
let n = rt.parse(t.viewJson);
|
|
7123
|
-
y.value = t.tableTitle, N.value =
|
|
7117
|
+
y.value = t.tableTitle, N.value = Ym(n.table), P.value = Hf(e.actions || n.action);
|
|
7124
7118
|
let r = Hf(n.suffix || []);
|
|
7125
|
-
F.value = r.filter((e) => e.main).map((e) => (
|
|
7126
|
-
let i =
|
|
7119
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = Zm(n.trigger);
|
|
7120
|
+
let i = $m(e.options ?? n.option);
|
|
7127
7121
|
t.tableTitle && i.title && pd(t.tableTitle), L.value = i;
|
|
7128
|
-
},
|
|
7129
|
-
v.value = !1,
|
|
7122
|
+
}, Fe = async () => {
|
|
7123
|
+
v.value = !1, Ne();
|
|
7130
7124
|
let t = e.id || o.params.id;
|
|
7131
7125
|
if (k.value = {
|
|
7132
7126
|
params: [],
|
|
@@ -7141,12 +7135,12 @@ var fh = f({
|
|
|
7141
7135
|
ne.value = s("Notice.network"), re.value = !0;
|
|
7142
7136
|
return;
|
|
7143
7137
|
}
|
|
7144
|
-
|
|
7145
|
-
|
|
7138
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = $m(e.options), await Te()) : await qm(t).then(async (e) => {
|
|
7139
|
+
Pe(e), await Te();
|
|
7146
7140
|
}).catch((e) => {
|
|
7147
7141
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
7148
7142
|
});
|
|
7149
|
-
},
|
|
7143
|
+
}, Ie = (e) => {
|
|
7150
7144
|
if (e.type !== "group" && e.optionsType) {
|
|
7151
7145
|
let n = U(e.onClick);
|
|
7152
7146
|
e.onClick = () => {
|
|
@@ -7159,6 +7153,7 @@ var fh = f({
|
|
|
7159
7153
|
onClick: n,
|
|
7160
7154
|
optionsSource: e.optionsSource,
|
|
7161
7155
|
mainFormValue: () => z.value,
|
|
7156
|
+
tableData: () => E.value,
|
|
7162
7157
|
children: null,
|
|
7163
7158
|
callback: null
|
|
7164
7159
|
});
|
|
@@ -7177,7 +7172,7 @@ var fh = f({
|
|
|
7177
7172
|
}
|
|
7178
7173
|
};
|
|
7179
7174
|
}
|
|
7180
|
-
},
|
|
7175
|
+
}, Le = () => {
|
|
7181
7176
|
if (_.value) return;
|
|
7182
7177
|
_.value = !0;
|
|
7183
7178
|
let t = e.id || o.params.id;
|
|
@@ -7185,30 +7180,30 @@ var fh = f({
|
|
|
7185
7180
|
table_id: t,
|
|
7186
7181
|
data: null
|
|
7187
7182
|
}).catch(() => null).finally(() => {
|
|
7188
|
-
|
|
7183
|
+
Te(), _.value = !1;
|
|
7189
7184
|
}));
|
|
7190
|
-
},
|
|
7191
|
-
|
|
7192
|
-
},
|
|
7185
|
+
}, Re = (e, t, n) => {
|
|
7186
|
+
Ae(e, n.key);
|
|
7187
|
+
}, ze = () => {
|
|
7193
7188
|
O.value = E.value.map((e) => e.id);
|
|
7194
|
-
},
|
|
7189
|
+
}, Be = () => {
|
|
7195
7190
|
O.value = [];
|
|
7196
7191
|
};
|
|
7197
7192
|
return r({
|
|
7198
|
-
rebuild:
|
|
7193
|
+
rebuild: Fe,
|
|
7199
7194
|
init: B,
|
|
7200
|
-
nextPage:
|
|
7195
|
+
nextPage: me
|
|
7201
7196
|
}), b(async () => {
|
|
7202
|
-
await
|
|
7197
|
+
await Fe(), g(() => {
|
|
7203
7198
|
d.value?.scrollTo({
|
|
7204
7199
|
left: 0,
|
|
7205
7200
|
right: 0
|
|
7206
7201
|
});
|
|
7207
7202
|
});
|
|
7208
7203
|
}), M(() => e.height, () => {
|
|
7209
|
-
|
|
7204
|
+
De();
|
|
7210
7205
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
7211
|
-
ud(), await
|
|
7206
|
+
ud(), await Fe();
|
|
7212
7207
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
7213
7208
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
7214
7209
|
ie.value = t, z.value = n;
|
|
@@ -7235,38 +7230,38 @@ var fh = f({
|
|
|
7235
7230
|
checkRowKeys: ie,
|
|
7236
7231
|
route: o,
|
|
7237
7232
|
rowKey: oe,
|
|
7238
|
-
pageChange:
|
|
7239
|
-
pageSizeChange:
|
|
7240
|
-
pageSorter:
|
|
7241
|
-
showChange:
|
|
7242
|
-
submit:
|
|
7243
|
-
handleAdd:
|
|
7244
|
-
handleColumnChange:
|
|
7233
|
+
pageChange: pe,
|
|
7234
|
+
pageSizeChange: he,
|
|
7235
|
+
pageSorter: ge,
|
|
7236
|
+
showChange: V,
|
|
7237
|
+
submit: ve,
|
|
7238
|
+
handleAdd: _e,
|
|
7239
|
+
handleColumnChange: je,
|
|
7245
7240
|
handleCheckRowKeys: ce,
|
|
7246
7241
|
handleExpandedRowKeys: le,
|
|
7247
|
-
checkRole:
|
|
7248
|
-
rebuild:
|
|
7242
|
+
checkRole: be,
|
|
7243
|
+
rebuild: Fe,
|
|
7249
7244
|
summaryFn: ue,
|
|
7250
7245
|
handleMobileCheckRowKeys: se,
|
|
7251
|
-
isTypeofNumber:
|
|
7252
|
-
resetFilter:
|
|
7253
|
-
handleColumnResize:
|
|
7246
|
+
isTypeofNumber: Ee,
|
|
7247
|
+
resetFilter: Le,
|
|
7248
|
+
handleColumnResize: Re,
|
|
7254
7249
|
expandedRowKeys: O,
|
|
7255
|
-
handleExpandAll:
|
|
7256
|
-
handleContractAll:
|
|
7250
|
+
handleExpandAll: ze,
|
|
7251
|
+
handleContractAll: Be,
|
|
7257
7252
|
doPortChange: () => {
|
|
7258
7253
|
B();
|
|
7259
7254
|
}
|
|
7260
7255
|
};
|
|
7261
7256
|
}
|
|
7262
|
-
}),
|
|
7257
|
+
}), mh = { class: "uz-com-title" }, hh = {
|
|
7263
7258
|
ref: "mRef",
|
|
7264
7259
|
class: "uz-table-m-content"
|
|
7265
|
-
},
|
|
7260
|
+
}, gh = {
|
|
7266
7261
|
key: 1,
|
|
7267
7262
|
class: "uz-transform-fade-in"
|
|
7268
|
-
},
|
|
7269
|
-
function
|
|
7263
|
+
}, _h = { class: "uz-com-title" }, vh = ["data-index"];
|
|
7264
|
+
function yh(t, n, c, d, f, p) {
|
|
7270
7265
|
let m = O("SkeletonLoading"), h = O("NButton"), g = O("Plus"), y = O("NIcon"), b = O("UzActionButton"), x = O("UzSearchMobileBar"), C = O("UzTableMobile"), w = O("Filter"), T = O("NCheckbox"), k = O("GridDots"), ee = O("VueDraggable"), te = O("NPopover"), M = O("UzTableFile"), N = O("UzSearchBar"), I = O("NDataTable"), L = O("NSpin"), R = O("UzTableDrawer");
|
|
7271
7266
|
return S(), a("div", {
|
|
7272
7267
|
class: "uz-table",
|
|
@@ -7331,7 +7326,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7331
7326
|
key: "0"
|
|
7332
7327
|
} : {
|
|
7333
7328
|
name: "header",
|
|
7334
|
-
fn: P(() => [o("div",
|
|
7329
|
+
fn: P(() => [o("div", mh, A(t.title), 1)]),
|
|
7335
7330
|
key: "1"
|
|
7336
7331
|
}]), 1032, [
|
|
7337
7332
|
"data",
|
|
@@ -7339,7 +7334,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7339
7334
|
"cache",
|
|
7340
7335
|
"loading",
|
|
7341
7336
|
"onOnUpdate:value"
|
|
7342
|
-
]), o("div",
|
|
7337
|
+
]), o("div", hh, [u(C, {
|
|
7343
7338
|
tableColumns: t.tableCols,
|
|
7344
7339
|
tableData: t.tableData,
|
|
7345
7340
|
tableQueries: t.tableQueries,
|
|
@@ -7357,7 +7352,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7357
7352
|
"minH",
|
|
7358
7353
|
"maxH",
|
|
7359
7354
|
"onUpdate:rowKeys"
|
|
7360
|
-
])], 512)], 2)) : (S(), a("div",
|
|
7355
|
+
])], 512)], 2)) : (S(), a("div", gh, [u(N, {
|
|
7361
7356
|
data: t.searchData,
|
|
7362
7357
|
id: t.id || t.route.params.id,
|
|
7363
7358
|
cache: t.tableOption.cache,
|
|
@@ -7412,7 +7407,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7412
7407
|
_: 1
|
|
7413
7408
|
})]),
|
|
7414
7409
|
_: 1
|
|
7415
|
-
})], 8,
|
|
7410
|
+
})], 8, vh)), [[j, !e.hide]])), 128)), u(h, {
|
|
7416
7411
|
block: "",
|
|
7417
7412
|
tertiary: "",
|
|
7418
7413
|
loading: t.loading,
|
|
@@ -7466,7 +7461,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7466
7461
|
key: "0"
|
|
7467
7462
|
} : {
|
|
7468
7463
|
name: "header",
|
|
7469
|
-
fn: P(() => [o("div",
|
|
7464
|
+
fn: P(() => [o("div", _h, A(t.title), 1)]),
|
|
7470
7465
|
key: "1"
|
|
7471
7466
|
}]), 1032, [
|
|
7472
7467
|
"data",
|
|
@@ -7527,7 +7522,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7527
7522
|
u(R, { ref: "drawerRef" }, null, 512)
|
|
7528
7523
|
], 4);
|
|
7529
7524
|
}
|
|
7530
|
-
var
|
|
7525
|
+
var bh = /*#__PURE__*/ W(ph, [["render", yh]]), xh = f({
|
|
7531
7526
|
name: "UzTableChild",
|
|
7532
7527
|
components: {
|
|
7533
7528
|
NSpin: Ne,
|
|
@@ -7557,7 +7552,7 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7557
7552
|
emits: ["update:value"],
|
|
7558
7553
|
setup(e, { emit: t, expose: r }) {
|
|
7559
7554
|
let i = m("emitSuffix"), a = m("modules"), o = m("mainFormValue"), s = m("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ze(), u = T(), d = T(), f = T(), h = T(!1), _ = T(!0), v = T([]), b = T({ child: [] }), x = T(""), S = T({}), C = T([]), w = T(void 0), E = async (t, n) => {
|
|
7560
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
7555
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await eh(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
7561
7556
|
return S.value = r, i;
|
|
7562
7557
|
}, D = async (t) => {
|
|
7563
7558
|
if (h.value) return;
|
|
@@ -7588,7 +7583,7 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7588
7583
|
});
|
|
7589
7584
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
7590
7585
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
7591
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
7586
|
+
let { tableColumns: r, tableWidth: i } = await th(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
7592
7587
|
r.unshift({
|
|
7593
7588
|
title: " ",
|
|
7594
7589
|
key: "index",
|
|
@@ -7764,14 +7759,14 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7764
7759
|
}
|
|
7765
7760
|
};
|
|
7766
7761
|
}
|
|
7767
|
-
}),
|
|
7762
|
+
}), Sh = { class: "uz-flex-1 uz-w-full" }, Ch = { class: "uz-flex uz-justify-between" }, wh = { class: "uz-com-title" }, Th = {
|
|
7768
7763
|
key: 0,
|
|
7769
7764
|
class: "uz-table-asterisk"
|
|
7770
|
-
},
|
|
7771
|
-
function
|
|
7765
|
+
}, Eh = { class: "uz-flex uz-gap-2" }, Dh = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7766
|
+
function Oh(t, n, c, d, f, p) {
|
|
7772
7767
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("Plus"), y = O("NDataTable"), b = O("NForm");
|
|
7773
|
-
return S(), a("div",
|
|
7774
|
-
o("div",
|
|
7768
|
+
return S(), a("div", Sh, [
|
|
7769
|
+
o("div", Ch, [o("div", wh, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", Th, " \xA0* ")) : i("", !0)]), o("div", Eh, [
|
|
7775
7770
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
7776
7771
|
key: e.key,
|
|
7777
7772
|
type: e.color,
|
|
@@ -7844,7 +7839,7 @@ function Dh(t, n, c, d, f, p) {
|
|
|
7844
7839
|
"scroll-x",
|
|
7845
7840
|
"class",
|
|
7846
7841
|
"row-class-name"
|
|
7847
|
-
])) : i("", !0), o("div",
|
|
7842
|
+
])) : i("", !0), o("div", Dh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7848
7843
|
key: 0,
|
|
7849
7844
|
type: "success",
|
|
7850
7845
|
secondary: "",
|
|
@@ -7873,7 +7868,7 @@ function Dh(t, n, c, d, f, p) {
|
|
|
7873
7868
|
}, 8, ["model"])
|
|
7874
7869
|
]);
|
|
7875
7870
|
}
|
|
7876
|
-
var
|
|
7871
|
+
var kh = /*#__PURE__*/ W(xh, [["render", Oh]]), Ah = f({
|
|
7877
7872
|
name: "UzTableQuestChild",
|
|
7878
7873
|
components: { NDataTable: se },
|
|
7879
7874
|
props: {
|
|
@@ -7901,7 +7896,7 @@ var Oh = /*#__PURE__*/ W(bh, [["render", Dh]]), kh = f({
|
|
|
7901
7896
|
}), o.value = t, i.value = !1;
|
|
7902
7897
|
}
|
|
7903
7898
|
}, l = async (i) => {
|
|
7904
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
7899
|
+
let { tableColumns: c, tableWidth: l } = await th(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
7905
7900
|
c.unshift({
|
|
7906
7901
|
title: " ",
|
|
7907
7902
|
key: "index",
|
|
@@ -7975,11 +7970,11 @@ var Oh = /*#__PURE__*/ W(bh, [["render", Dh]]), kh = f({
|
|
|
7975
7970
|
tableScrollX: s
|
|
7976
7971
|
};
|
|
7977
7972
|
}
|
|
7978
|
-
}),
|
|
7979
|
-
function
|
|
7973
|
+
}), jh = { class: "uz-flex-1 uz-w-full" }, Mh = { class: "uz-flex uz-justify-between" }, Nh = { class: "uz-com-title" };
|
|
7974
|
+
function Ph(e, t, n, r, i, s) {
|
|
7980
7975
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
7981
|
-
return S(), a("div",
|
|
7982
|
-
o("div",
|
|
7976
|
+
return S(), a("div", jh, [
|
|
7977
|
+
o("div", Mh, [o("div", Nh, A(e.item.label), 1)]),
|
|
7983
7978
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
7984
7979
|
u(c, {
|
|
7985
7980
|
columns: e.columns,
|
|
@@ -8001,11 +7996,11 @@ function Nh(e, t, n, r, i, s) {
|
|
|
8001
7996
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
8002
7997
|
]);
|
|
8003
7998
|
}
|
|
8004
|
-
var
|
|
7999
|
+
var Fh = /*#__PURE__*/ W(Ah, [["render", Ph]]), Ih = f({
|
|
8005
8000
|
name: "UzTableDrawer",
|
|
8006
8001
|
components: {
|
|
8007
8002
|
NButton: R,
|
|
8008
|
-
NDrawerContent:
|
|
8003
|
+
NDrawerContent: de,
|
|
8009
8004
|
NDrawer: ue,
|
|
8010
8005
|
NSkeleton: je,
|
|
8011
8006
|
NSpin: Ne,
|
|
@@ -8073,11 +8068,11 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8073
8068
|
linkFn: t
|
|
8074
8069
|
};
|
|
8075
8070
|
let r = e.split(".")[0];
|
|
8076
|
-
|
|
8071
|
+
qm(r).then((e) => {
|
|
8077
8072
|
g(async () => {
|
|
8078
8073
|
let t = rt.parse(e.viewJson);
|
|
8079
|
-
d.value =
|
|
8080
|
-
let { form: i } = await
|
|
8074
|
+
d.value = $m(t.option), u.value = !0;
|
|
8075
|
+
let { form: i } = await eh(Ym(t.table), n);
|
|
8081
8076
|
y.value = t.trigger, n && w(n);
|
|
8082
8077
|
let a = X(`tables_cache_link_${r}`, !1);
|
|
8083
8078
|
a && (c.value = a), g(() => {
|
|
@@ -8138,7 +8133,7 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8138
8133
|
tableId: n,
|
|
8139
8134
|
...e
|
|
8140
8135
|
}).then(() => {
|
|
8141
|
-
|
|
8136
|
+
Gm(), bf({ tableId: n }).then((e) => {
|
|
8142
8137
|
let r = l.value.link.split("."), i;
|
|
8143
8138
|
if (l.value.linkFn) {
|
|
8144
8139
|
let t = l.value.linkFn;
|
|
@@ -8171,11 +8166,11 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8171
8166
|
}
|
|
8172
8167
|
};
|
|
8173
8168
|
}
|
|
8174
|
-
}),
|
|
8169
|
+
}), Lh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Rh = {
|
|
8175
8170
|
key: 0,
|
|
8176
8171
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
8177
|
-
},
|
|
8178
|
-
function
|
|
8172
|
+
}, zh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Bh = { class: "uz-flex uz-gap-2" };
|
|
8173
|
+
function Vh(t, n, c, d, f, p) {
|
|
8179
8174
|
let m = O("NSkeleton"), h = O("UzForm"), g = O("UzSpin"), _ = O("NSpin"), v = O("NButton"), y = O("NPopover"), b = O("NDrawerContent"), x = O("NDrawer"), C = O("UzOcr"), w = O("NModal");
|
|
8180
8175
|
return S(), a(e, null, [u(x, {
|
|
8181
8176
|
show: t.drawer,
|
|
@@ -8201,7 +8196,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8201
8196
|
message: t.spinMsg,
|
|
8202
8197
|
status: t.spinStatus
|
|
8203
8198
|
}, {
|
|
8204
|
-
default: P(() => [o("div",
|
|
8199
|
+
default: P(() => [o("div", Lh, [t.skeletonShow ? (S(), a("div", Rh, [
|
|
8205
8200
|
u(m, {
|
|
8206
8201
|
size: "large",
|
|
8207
8202
|
style: { height: "156px" }
|
|
@@ -8264,7 +8259,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8264
8259
|
_: 2
|
|
8265
8260
|
}, [t.formStatus === 2 ? void 0 : {
|
|
8266
8261
|
name: "footer",
|
|
8267
|
-
fn: P(() => [o("div",
|
|
8262
|
+
fn: P(() => [o("div", zh, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
8268
8263
|
key: 0,
|
|
8269
8264
|
loading: t.spinShow,
|
|
8270
8265
|
type: "success",
|
|
@@ -8273,7 +8268,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8273
8268
|
}, {
|
|
8274
8269
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
8275
8270
|
_: 1
|
|
8276
|
-
}, 8, ["loading"])), o("div",
|
|
8271
|
+
}, 8, ["loading"])), o("div", Bh, [
|
|
8277
8272
|
u(v, {
|
|
8278
8273
|
loading: t.spinShow,
|
|
8279
8274
|
class: "uz-drawer-button",
|
|
@@ -8341,7 +8336,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8341
8336
|
_: 1
|
|
8342
8337
|
}, 8, ["show"])], 64);
|
|
8343
8338
|
}
|
|
8344
|
-
var
|
|
8339
|
+
var Hh = /*#__PURE__*/ W(Ih, [["render", Vh]]), Uh = f({
|
|
8345
8340
|
name: "UzTableMobileList",
|
|
8346
8341
|
props: {
|
|
8347
8342
|
tableData: {
|
|
@@ -8359,12 +8354,12 @@ var Vh = /*#__PURE__*/ W(Fh, [["render", Bh]]), Hh = f({
|
|
|
8359
8354
|
},
|
|
8360
8355
|
emits: ["update:row-keys"],
|
|
8361
8356
|
setup() {}
|
|
8362
|
-
}),
|
|
8357
|
+
}), Wh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Gh = {
|
|
8363
8358
|
key: 1,
|
|
8364
8359
|
class: "uz-table-mobile-group-txt"
|
|
8365
8360
|
};
|
|
8366
|
-
function
|
|
8367
|
-
return S(), a("div",
|
|
8361
|
+
function Kh(t, n, s, c, l, u) {
|
|
8362
|
+
return S(), a("div", Wh, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
8368
8363
|
key: n.key,
|
|
8369
8364
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
8370
8365
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -8375,11 +8370,11 @@ function Gh(t, n, s, c, l, u) {
|
|
|
8375
8370
|
class: "mobile"
|
|
8376
8371
|
})) : i("", !0)], 64)) : (S(), a(e, { key: 1 }, [o("div", { class: _(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: _(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (S(), r(ee(() => {
|
|
8377
8372
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
8378
|
-
}), { key: 0 })) : (S(), a("div",
|
|
8373
|
+
}), { key: 0 })) : (S(), a("div", Gh, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
8379
8374
|
}
|
|
8380
8375
|
//#endregion
|
|
8381
8376
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
8382
|
-
var
|
|
8377
|
+
var qh = f({
|
|
8383
8378
|
name: "UzTableMobile",
|
|
8384
8379
|
components: {
|
|
8385
8380
|
NCheckbox: ie,
|
|
@@ -8387,7 +8382,7 @@ var Kh = f({
|
|
|
8387
8382
|
NPagination: Te,
|
|
8388
8383
|
NCheckboxGroup: z,
|
|
8389
8384
|
NRadioGroup: ke,
|
|
8390
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
8385
|
+
UzTableMobileList: /* @__PURE__ */ W(Uh, [["render", Kh], ["__scopeId", "data-v-84c394fe"]])
|
|
8391
8386
|
},
|
|
8392
8387
|
props: {
|
|
8393
8388
|
tableData: {
|
|
@@ -8434,17 +8429,17 @@ var Kh = f({
|
|
|
8434
8429
|
}
|
|
8435
8430
|
};
|
|
8436
8431
|
}
|
|
8437
|
-
}),
|
|
8432
|
+
}), Jh = {
|
|
8438
8433
|
key: 0,
|
|
8439
8434
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8440
|
-
},
|
|
8435
|
+
}, Yh = {
|
|
8441
8436
|
key: 0,
|
|
8442
8437
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8443
|
-
},
|
|
8438
|
+
}, Xh = {
|
|
8444
8439
|
key: 0,
|
|
8445
8440
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8446
8441
|
};
|
|
8447
|
-
function
|
|
8442
|
+
function Zh(t, n, o, s, c, l) {
|
|
8448
8443
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
8449
8444
|
return t.selection === 2 ? (S(), r(m, {
|
|
8450
8445
|
key: 0,
|
|
@@ -8471,7 +8466,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8471
8466
|
"tableColumns"
|
|
8472
8467
|
])]),
|
|
8473
8468
|
_: 2
|
|
8474
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8469
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Jh, [u(p, {
|
|
8475
8470
|
page: t.tableQueries.query.page,
|
|
8476
8471
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8477
8472
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8513,7 +8508,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8513
8508
|
"tableColumns"
|
|
8514
8509
|
])]),
|
|
8515
8510
|
_: 2
|
|
8516
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8511
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Yh, [u(p, {
|
|
8517
8512
|
page: t.tableQueries.query.page,
|
|
8518
8513
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8519
8514
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8548,7 +8543,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8548
8543
|
"tableData",
|
|
8549
8544
|
"tableIndex",
|
|
8550
8545
|
"tableColumns"
|
|
8551
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8546
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Xh, [u(p, {
|
|
8552
8547
|
page: t.tableQueries.query.page,
|
|
8553
8548
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8554
8549
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8561,10 +8556,10 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8561
8556
|
"onUpdate:page"
|
|
8562
8557
|
])])) : i("", !0)], 4));
|
|
8563
8558
|
}
|
|
8564
|
-
var
|
|
8559
|
+
var Qh = /*#__PURE__*/ W(qh, [["render", Zh], ["__scopeId", "data-v-70b54e3b"]]), $h = f({
|
|
8565
8560
|
name: "UzTableFile",
|
|
8566
8561
|
components: {
|
|
8567
|
-
NDropdown:
|
|
8562
|
+
NDropdown: fe,
|
|
8568
8563
|
NButton: R,
|
|
8569
8564
|
NModal: we,
|
|
8570
8565
|
NUpload: ze,
|
|
@@ -8710,11 +8705,11 @@ var Zh = /*#__PURE__*/ W(Kh, [["render", Xh], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
8710
8705
|
}
|
|
8711
8706
|
};
|
|
8712
8707
|
}
|
|
8713
|
-
}),
|
|
8708
|
+
}), eg = { class: "uz-file-port-modal" }, tg = {
|
|
8714
8709
|
key: 1,
|
|
8715
8710
|
class: "uz-file-port-panel"
|
|
8716
|
-
},
|
|
8717
|
-
function
|
|
8711
|
+
}, ng = { class: "uz-flex uz-justify-between" };
|
|
8712
|
+
function rg(t, n, i, s, c, d) {
|
|
8718
8713
|
let f = O("FileText"), p = O("NIcon"), m = O("NButton"), h = O("NDropdown"), g = O("NUpload"), _ = O("NSpace"), v = O("NDataTable"), y = O("NModal");
|
|
8719
8714
|
return S(), a(e, null, [u(h, {
|
|
8720
8715
|
trigger: "hover",
|
|
@@ -8749,8 +8744,8 @@ function ng(t, n, i, s, c, d) {
|
|
|
8749
8744
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
8750
8745
|
_: 1
|
|
8751
8746
|
}, 8, ["onClick"])]),
|
|
8752
|
-
default: P(() => [o("div",
|
|
8753
|
-
t.rawFile ? (S(), a("div",
|
|
8747
|
+
default: P(() => [o("div", eg, [
|
|
8748
|
+
t.rawFile ? (S(), a("div", tg, [
|
|
8754
8749
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
8755
8750
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8756
8751
|
viewBox: "0 0 24 24",
|
|
@@ -8797,7 +8792,7 @@ function ng(t, n, i, s, c, d) {
|
|
|
8797
8792
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), o("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
|
|
8798
8793
|
_: 1
|
|
8799
8794
|
}, 8, ["on-before-upload"])),
|
|
8800
|
-
o("div",
|
|
8795
|
+
o("div", ng, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
8801
8796
|
onClick: t.init,
|
|
8802
8797
|
loading: t.loading,
|
|
8803
8798
|
secondary: ""
|
|
@@ -8820,7 +8815,7 @@ function ng(t, n, i, s, c, d) {
|
|
|
8820
8815
|
_: 1
|
|
8821
8816
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
8822
8817
|
}
|
|
8823
|
-
var
|
|
8818
|
+
var ig = /*#__PURE__*/ W($h, [["render", rg], ["__scopeId", "data-v-669e3267"]]), $ = w({
|
|
8824
8819
|
page: {
|
|
8825
8820
|
label: "首页",
|
|
8826
8821
|
key: "/",
|
|
@@ -8831,7 +8826,7 @@ var rg = /*#__PURE__*/ W(Qh, [["render", ng], ["__scopeId", "data-v-669e3267"]])
|
|
|
8831
8826
|
active: "/",
|
|
8832
8827
|
thumbnail: []
|
|
8833
8828
|
});
|
|
8834
|
-
function
|
|
8829
|
+
function ag(e) {
|
|
8835
8830
|
$.cache = e.cache, $.page = {
|
|
8836
8831
|
label: e.label,
|
|
8837
8832
|
key: e.key,
|
|
@@ -8846,14 +8841,14 @@ function ig(e) {
|
|
|
8846
8841
|
closable: !1
|
|
8847
8842
|
}];
|
|
8848
8843
|
}
|
|
8849
|
-
function
|
|
8844
|
+
function og(e) {
|
|
8850
8845
|
$.active = e, G.push(e), Y($.cache, $, 0);
|
|
8851
8846
|
}
|
|
8852
|
-
function
|
|
8847
|
+
function sg(e, t) {
|
|
8853
8848
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
8854
8849
|
n && (n.key = t, $.active = t, Y($.cache, $, 0));
|
|
8855
8850
|
}
|
|
8856
|
-
function
|
|
8851
|
+
function cg(e) {
|
|
8857
8852
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
8858
8853
|
t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
8859
8854
|
...e,
|
|
@@ -8861,7 +8856,7 @@ function sg(e) {
|
|
|
8861
8856
|
closable: !0
|
|
8862
8857
|
}), G.push(e.key));
|
|
8863
8858
|
}
|
|
8864
|
-
function
|
|
8859
|
+
function lg(e) {
|
|
8865
8860
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
8866
8861
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
8867
8862
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
@@ -8869,12 +8864,12 @@ function cg(e) {
|
|
|
8869
8864
|
}
|
|
8870
8865
|
Y($.cache, $, 0);
|
|
8871
8866
|
}
|
|
8872
|
-
function
|
|
8867
|
+
function ug() {
|
|
8873
8868
|
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
|
|
8874
8869
|
}
|
|
8875
8870
|
//#endregion
|
|
8876
8871
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
8877
|
-
var
|
|
8872
|
+
var dg = f({
|
|
8878
8873
|
name: "UzThumbnail",
|
|
8879
8874
|
components: {
|
|
8880
8875
|
NTabs: Ie,
|
|
@@ -8896,29 +8891,29 @@ var ug = f({
|
|
|
8896
8891
|
setup(e, { slots: t }) {
|
|
8897
8892
|
let n = T(!!t.prefix), r = Je();
|
|
8898
8893
|
return b(() => {
|
|
8899
|
-
|
|
8894
|
+
ag(e.option), $.active !== r.path && sg(r.path, r.fullPath);
|
|
8900
8895
|
}), M(() => r, (e) => {
|
|
8901
|
-
$.active === r.path &&
|
|
8896
|
+
$.active === r.path && sg(e.path, e.fullPath);
|
|
8902
8897
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
8903
|
-
|
|
8898
|
+
ag(e);
|
|
8904
8899
|
}, { deep: !0 }), {
|
|
8905
8900
|
thumbnailStore: $,
|
|
8906
8901
|
isSlotPrefix: n,
|
|
8907
8902
|
handleClose: (e) => {
|
|
8908
|
-
|
|
8903
|
+
lg(e);
|
|
8909
8904
|
},
|
|
8910
8905
|
handleChange: (e) => {
|
|
8911
|
-
|
|
8906
|
+
og(e);
|
|
8912
8907
|
},
|
|
8913
8908
|
handleClear: () => {
|
|
8914
|
-
|
|
8909
|
+
ug();
|
|
8915
8910
|
}
|
|
8916
8911
|
};
|
|
8917
8912
|
}
|
|
8918
8913
|
});
|
|
8919
8914
|
//#endregion
|
|
8920
8915
|
//#region components/thumbnail/index.vue
|
|
8921
|
-
function
|
|
8916
|
+
function fg(t, n, i, o, c, d) {
|
|
8922
8917
|
let f = O("NTabPane"), p = O("Trash"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
8923
8918
|
return S(), r(v, {
|
|
8924
8919
|
value: t.thumbnailStore.active,
|
|
@@ -8967,33 +8962,33 @@ function dg(t, n, i, o, c, d) {
|
|
|
8967
8962
|
"on-update:value"
|
|
8968
8963
|
]);
|
|
8969
8964
|
}
|
|
8970
|
-
var
|
|
8971
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
8972
|
-
var
|
|
8965
|
+
var pg = /*#__PURE__*/ W(dg, [["render", fg]]), mg = "#007AFF", hg = "#0A84FF", gg = "#FF9500", _g = "#FF9F0A", vg = "#28CD41", yg = "#32D74B", bg = "#FFCC00", xg = "#FFD60A", Sg = "#FF3B30", Cg = "#FF453A";
|
|
8966
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = hg, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = _g, H.common.successColor = "#32D74B", H.common.successColorHover = yg, H.common.warningColor = "#FFD60A", H.common.successColorHover = xg, H.common.errorColor = "#FF453A", H.common.errorColorHover = Cg, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31", H.Scrollbar.width = "8px", H.Scrollbar.height = "8px", H.Scrollbar.borderRadius = "8px", H.Scrollbar.color = "#686873";
|
|
8967
|
+
var wg = {
|
|
8973
8968
|
common: {
|
|
8974
8969
|
inputColor: "rgba(var(--input))",
|
|
8975
8970
|
borderColor: "rgba(var(--border), 0.7)",
|
|
8976
8971
|
borderRadius: "var(--borderRadius)",
|
|
8977
|
-
primaryColor:
|
|
8978
|
-
primaryColorHover:
|
|
8979
|
-
primaryColorPressed:
|
|
8980
|
-
primaryColorSuppl:
|
|
8981
|
-
infoColor:
|
|
8982
|
-
infoColorHover:
|
|
8983
|
-
infoColorPressed:
|
|
8984
|
-
infoColorSuppl:
|
|
8985
|
-
successColor:
|
|
8986
|
-
successColorHover:
|
|
8987
|
-
successColorPressed:
|
|
8988
|
-
successColorSuppl:
|
|
8989
|
-
warningColor:
|
|
8990
|
-
warningColorHover:
|
|
8991
|
-
warningColorPressed:
|
|
8992
|
-
warningColorSuppl:
|
|
8993
|
-
errorColor:
|
|
8994
|
-
errorColorHover:
|
|
8995
|
-
errorColorPressed:
|
|
8996
|
-
errorColorSuppl:
|
|
8972
|
+
primaryColor: mg,
|
|
8973
|
+
primaryColorHover: hg,
|
|
8974
|
+
primaryColorPressed: mg,
|
|
8975
|
+
primaryColorSuppl: mg,
|
|
8976
|
+
infoColor: gg,
|
|
8977
|
+
infoColorHover: _g,
|
|
8978
|
+
infoColorPressed: gg,
|
|
8979
|
+
infoColorSuppl: gg,
|
|
8980
|
+
successColor: vg,
|
|
8981
|
+
successColorHover: yg,
|
|
8982
|
+
successColorPressed: vg,
|
|
8983
|
+
successColorSuppl: vg,
|
|
8984
|
+
warningColor: bg,
|
|
8985
|
+
warningColorHover: xg,
|
|
8986
|
+
warningColorPressed: bg,
|
|
8987
|
+
warningColorSuppl: bg,
|
|
8988
|
+
errorColor: Sg,
|
|
8989
|
+
errorColorHover: Cg,
|
|
8990
|
+
errorColorPressed: Sg,
|
|
8991
|
+
errorColorSuppl: Sg,
|
|
8997
8992
|
cardColor: "#fff"
|
|
8998
8993
|
},
|
|
8999
8994
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -9007,7 +9002,7 @@ var Cg = {
|
|
|
9007
9002
|
borderRadius: "8px",
|
|
9008
9003
|
color: "#c0c0c0"
|
|
9009
9004
|
}
|
|
9010
|
-
},
|
|
9005
|
+
}, Tg = H, Eg = f({
|
|
9011
9006
|
name: "UzWrap",
|
|
9012
9007
|
components: { NConfigProvider: oe },
|
|
9013
9008
|
setup() {
|
|
@@ -9015,14 +9010,14 @@ var Cg = {
|
|
|
9015
9010
|
zhCN: We,
|
|
9016
9011
|
dateZhCN: He,
|
|
9017
9012
|
commonStore: q,
|
|
9018
|
-
lightTheme:
|
|
9019
|
-
darkTheme:
|
|
9013
|
+
lightTheme: wg,
|
|
9014
|
+
darkTheme: Tg
|
|
9020
9015
|
};
|
|
9021
9016
|
}
|
|
9022
9017
|
});
|
|
9023
9018
|
//#endregion
|
|
9024
9019
|
//#region components/wrap/index.vue
|
|
9025
|
-
function
|
|
9020
|
+
function Dg(e, t, n, i, a, o) {
|
|
9026
9021
|
let s = O("NConfigProvider");
|
|
9027
9022
|
return S(), r(s, {
|
|
9028
9023
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -9041,10 +9036,10 @@ function Eg(e, t, n, i, a, o) {
|
|
|
9041
9036
|
"date-locale"
|
|
9042
9037
|
]);
|
|
9043
9038
|
}
|
|
9044
|
-
var
|
|
9039
|
+
var Og = /*#__PURE__*/ W(Eg, [["render", Dg]]);
|
|
9045
9040
|
//#endregion
|
|
9046
9041
|
//#region components/ocr/preprocess.ts
|
|
9047
|
-
function
|
|
9042
|
+
function kg(e) {
|
|
9048
9043
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
9049
9044
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
9050
9045
|
let r = 0;
|
|
@@ -9059,7 +9054,7 @@ function Og(e) {
|
|
|
9059
9054
|
}
|
|
9060
9055
|
return c;
|
|
9061
9056
|
}
|
|
9062
|
-
function
|
|
9057
|
+
function Ag(e, t) {
|
|
9063
9058
|
return new Promise((n, r) => {
|
|
9064
9059
|
let i = new Image();
|
|
9065
9060
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -9092,7 +9087,7 @@ function kg(e, t) {
|
|
|
9092
9087
|
}
|
|
9093
9088
|
let u = t.threshold;
|
|
9094
9089
|
if (t.binarize) {
|
|
9095
|
-
t.autoThreshold && (u =
|
|
9090
|
+
t.autoThreshold && (u = kg(l));
|
|
9096
9091
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
9097
9092
|
let n = l[t] < u ? 0 : 255;
|
|
9098
9093
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -9115,7 +9110,7 @@ function kg(e, t) {
|
|
|
9115
9110
|
}
|
|
9116
9111
|
//#endregion
|
|
9117
9112
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
9118
|
-
var
|
|
9113
|
+
var jg = f({
|
|
9119
9114
|
name: "UzOcr",
|
|
9120
9115
|
components: {
|
|
9121
9116
|
NButton: R,
|
|
@@ -9152,7 +9147,7 @@ var Ag = f({
|
|
|
9152
9147
|
tessedit_char_blacklist: "|"
|
|
9153
9148
|
}), a.value), v = async () => {
|
|
9154
9149
|
if (f.value) try {
|
|
9155
|
-
let e = await
|
|
9150
|
+
let e = await Ag(f.value, {
|
|
9156
9151
|
enabled: o.value,
|
|
9157
9152
|
scale: s.value,
|
|
9158
9153
|
grayscale: !0,
|
|
@@ -9189,7 +9184,7 @@ var Ag = f({
|
|
|
9189
9184
|
t.value = !0, r.value = e("OCR.analysis");
|
|
9190
9185
|
let a = n;
|
|
9191
9186
|
if (o.value || s.value > 1) try {
|
|
9192
|
-
let e = await
|
|
9187
|
+
let e = await Ag(n, {
|
|
9193
9188
|
enabled: o.value,
|
|
9194
9189
|
scale: s.value,
|
|
9195
9190
|
grayscale: !0,
|
|
@@ -9251,25 +9246,25 @@ var Ag = f({
|
|
|
9251
9246
|
t: e
|
|
9252
9247
|
};
|
|
9253
9248
|
}
|
|
9254
|
-
}),
|
|
9249
|
+
}), Mg = { class: "uz-ocr" }, Ng = { class: "uz-ocr-left-col" }, Pg = { class: "uz-ocr-upload-card" }, Fg = { class: "uz-ocr-upload-title" }, Ig = {
|
|
9255
9250
|
key: 1,
|
|
9256
9251
|
class: "uz-ocr-preview-panel"
|
|
9257
|
-
},
|
|
9252
|
+
}, Lg = { class: "uz-ocr-preview-box" }, Rg = ["src"], zg = {
|
|
9258
9253
|
key: 0,
|
|
9259
9254
|
class: "uz-ocr-threshold-badge"
|
|
9260
|
-
},
|
|
9255
|
+
}, Bg = { class: "uz-ocr-preview-box" }, Vg = ["src"], Hg = { class: "uz-ocr-settings-form" }, Ug = { class: "uz-settings-row" }, Wg = { class: "uz-settings-label" }, Gg = {
|
|
9261
9256
|
key: 0,
|
|
9262
9257
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
9263
|
-
},
|
|
9258
|
+
}, Kg = { class: "uz-settings-row" }, qg = { class: "uz-settings-label" }, Jg = { class: "uz-settings-row" }, Yg = { class: "uz-settings-label" }, Xg = { class: "uz-ocr-right-col" }, Zg = { class: "uz-ocr-result-header" }, Qg = { class: "uz-result-title" }, $g = {
|
|
9264
9259
|
key: 0,
|
|
9265
9260
|
class: "uz-ocr-empty-state"
|
|
9266
|
-
},
|
|
9261
|
+
}, e_ = { class: "uz-empty-text" }, t_ = {
|
|
9267
9262
|
key: 1,
|
|
9268
9263
|
class: "uz-ocr-result-tabs"
|
|
9269
9264
|
};
|
|
9270
|
-
function
|
|
9265
|
+
function n_(e, t, n, s, c, d) {
|
|
9271
9266
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
9272
|
-
return S(), a("div",
|
|
9267
|
+
return S(), a("div", Mg, [o("div", Ng, [e.rawImage ? (S(), a("div", Ig, [u(m, {
|
|
9273
9268
|
value: e.imagePreviewTab,
|
|
9274
9269
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
9275
9270
|
type: "segment",
|
|
@@ -9279,21 +9274,21 @@ function t_(e, t, n, s, c, d) {
|
|
|
9279
9274
|
name: "processed",
|
|
9280
9275
|
tab: e.t("OCR.previewProcessed")
|
|
9281
9276
|
}, {
|
|
9282
|
-
default: P(() => [o("div",
|
|
9277
|
+
default: P(() => [o("div", Lg, [o("img", {
|
|
9283
9278
|
src: e.processedImage,
|
|
9284
9279
|
alt: "Processed Preview",
|
|
9285
9280
|
class: "uz-ocr-preview-img"
|
|
9286
|
-
}, null, 8,
|
|
9281
|
+
}, null, 8, Rg), e.preEnabled && e.preBinarize ? (S(), a("div", zg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
9287
9282
|
_: 1
|
|
9288
9283
|
}, 8, ["tab"]), u(p, {
|
|
9289
9284
|
name: "raw",
|
|
9290
9285
|
tab: e.t("OCR.previewRaw")
|
|
9291
9286
|
}, {
|
|
9292
|
-
default: P(() => [o("div",
|
|
9287
|
+
default: P(() => [o("div", Bg, [o("img", {
|
|
9293
9288
|
src: e.rawImage,
|
|
9294
9289
|
alt: "Raw Preview",
|
|
9295
9290
|
class: "uz-ocr-preview-img"
|
|
9296
|
-
}, null, 8,
|
|
9291
|
+
}, null, 8, Vg)])]),
|
|
9297
9292
|
_: 1
|
|
9298
9293
|
}, 8, ["tab"])]),
|
|
9299
9294
|
_: 1
|
|
@@ -9327,7 +9322,7 @@ function t_(e, t, n, s, c, d) {
|
|
|
9327
9322
|
"directory-dnd": "",
|
|
9328
9323
|
class: "uz-w-full"
|
|
9329
9324
|
}, {
|
|
9330
|
-
default: P(() => [o("div",
|
|
9325
|
+
default: P(() => [o("div", Pg, [
|
|
9331
9326
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
9332
9327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9333
9328
|
viewBox: "0 0 24 24",
|
|
@@ -9335,27 +9330,27 @@ function t_(e, t, n, s, c, d) {
|
|
|
9335
9330
|
height: "40",
|
|
9336
9331
|
fill: "currentColor"
|
|
9337
9332
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
9338
|
-
o("div",
|
|
9333
|
+
o("div", Fg, A(e.t("OCR.scan")), 1),
|
|
9339
9334
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
9340
9335
|
])]),
|
|
9341
9336
|
_: 1
|
|
9342
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
9337
|
+
}, 8, ["on-before-upload"])), o("div", Hg, [o("div", Ug, [o("span", Wg, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
9343
9338
|
value: e.preEnabled,
|
|
9344
9339
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
9345
9340
|
size: "small"
|
|
9346
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
9341
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", Gg, [o("div", Kg, [o("span", qg, A(e.t("OCR.scale")), 1), u(v, {
|
|
9347
9342
|
value: e.preScale,
|
|
9348
9343
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
9349
9344
|
options: e.scaleOptions,
|
|
9350
9345
|
size: "small",
|
|
9351
9346
|
class: "uz-settings-select"
|
|
9352
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
9347
|
+
}, null, 8, ["value", "options"])]), o("div", Jg, [o("span", Yg, A(e.t("OCR.contrast")), 1), u(_, {
|
|
9353
9348
|
value: e.preContrast,
|
|
9354
9349
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
9355
9350
|
size: "small"
|
|
9356
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
9351
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", Xg, [o("div", Zg, [o("span", Qg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (S(), a("div", t_, A(e.fullText), 1)) : (S(), a("div", $g, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", e_, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
9357
9352
|
}
|
|
9358
|
-
var
|
|
9353
|
+
var r_ = /*#__PURE__*/ W(jg, [["render", n_], ["__scopeId", "data-v-c7224ff5"]]), i_ = /* @__PURE__ */ dt({
|
|
9359
9354
|
AccessPoint: () => gt,
|
|
9360
9355
|
Activity: () => bt,
|
|
9361
9356
|
Adjustments: () => wt,
|
|
@@ -9495,45 +9490,45 @@ var n_ = /*#__PURE__*/ W(Ag, [["render", t_], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
9495
9490
|
UzFormItemTimesPicker: () => vp,
|
|
9496
9491
|
UzFormItemUpload: () => up,
|
|
9497
9492
|
UzIcon: () => Ru,
|
|
9498
|
-
UzOcr: () =>
|
|
9499
|
-
UzSearchBar: () =>
|
|
9500
|
-
UzSearchMobileBar: () =>
|
|
9501
|
-
UzSpin: () =>
|
|
9502
|
-
UzTable: () =>
|
|
9503
|
-
UzTableChild: () =>
|
|
9504
|
-
UzTableDrawer: () =>
|
|
9505
|
-
UzTableFile: () =>
|
|
9506
|
-
UzTableMobile: () =>
|
|
9507
|
-
UzTableQuestChild: () =>
|
|
9508
|
-
UzThumbnail: () =>
|
|
9509
|
-
UzWrap: () =>
|
|
9493
|
+
UzOcr: () => r_,
|
|
9494
|
+
UzSearchBar: () => jm,
|
|
9495
|
+
UzSearchMobileBar: () => Lm,
|
|
9496
|
+
UzSpin: () => ih,
|
|
9497
|
+
UzTable: () => bh,
|
|
9498
|
+
UzTableChild: () => kh,
|
|
9499
|
+
UzTableDrawer: () => Hh,
|
|
9500
|
+
UzTableFile: () => ig,
|
|
9501
|
+
UzTableMobile: () => Qh,
|
|
9502
|
+
UzTableQuestChild: () => Fh,
|
|
9503
|
+
UzThumbnail: () => pg,
|
|
9504
|
+
UzWrap: () => Og,
|
|
9510
9505
|
X: () => Hl,
|
|
9511
9506
|
commonStore: () => q,
|
|
9512
9507
|
fnActionReduction: () => Hf,
|
|
9513
9508
|
fnActionSimplify: () => Vf,
|
|
9514
|
-
fnAddThumbnail: () =>
|
|
9515
|
-
fnClearAllThumbnail: () =>
|
|
9516
|
-
fnDeleteThumbnail: () =>
|
|
9517
|
-
fnGetTableData: () =>
|
|
9518
|
-
fnOptionReduction: () =>
|
|
9519
|
-
fnOptionSimplify: () =>
|
|
9520
|
-
fnPrepareFormData: () =>
|
|
9521
|
-
fnPrepareTableData: () =>
|
|
9509
|
+
fnAddThumbnail: () => cg,
|
|
9510
|
+
fnClearAllThumbnail: () => ug,
|
|
9511
|
+
fnDeleteThumbnail: () => lg,
|
|
9512
|
+
fnGetTableData: () => qm,
|
|
9513
|
+
fnOptionReduction: () => $m,
|
|
9514
|
+
fnOptionSimplify: () => Qm,
|
|
9515
|
+
fnPrepareFormData: () => eh,
|
|
9516
|
+
fnPrepareTableData: () => th,
|
|
9522
9517
|
fnRenderAction: () => Pf,
|
|
9523
9518
|
fnSetLang: () => Hu,
|
|
9524
9519
|
fnSetTheme: () => Uu,
|
|
9525
|
-
fnSetThumbnail: () =>
|
|
9526
|
-
fnTableReduction: () =>
|
|
9527
|
-
fnTableSimplify: () =>
|
|
9528
|
-
fnTriggersReduction: () =>
|
|
9529
|
-
fnTriggersSimplify: () =>
|
|
9520
|
+
fnSetThumbnail: () => og,
|
|
9521
|
+
fnTableReduction: () => Ym,
|
|
9522
|
+
fnTableSimplify: () => Jm,
|
|
9523
|
+
fnTriggersReduction: () => Zm,
|
|
9524
|
+
fnTriggersSimplify: () => Xm,
|
|
9530
9525
|
i18n: () => K
|
|
9531
|
-
}),
|
|
9532
|
-
function
|
|
9533
|
-
|
|
9526
|
+
}), a_ = 3840, o_ = 2160, s_ = w({ scale: 1 });
|
|
9527
|
+
function c_(e, t) {
|
|
9528
|
+
a_ = e, o_ = t;
|
|
9534
9529
|
}
|
|
9535
|
-
function
|
|
9536
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
9530
|
+
function l_() {
|
|
9531
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = a_, i = o_, a = parseFloat((r / i).toFixed(5));
|
|
9537
9532
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
9538
9533
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
9539
9534
|
e = t > 1 ? 1 : t;
|
|
@@ -9541,17 +9536,17 @@ function c_() {
|
|
|
9541
9536
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
9542
9537
|
e = n > 1 ? 1 : n;
|
|
9543
9538
|
}
|
|
9544
|
-
|
|
9539
|
+
s_.scale = e;
|
|
9545
9540
|
}
|
|
9546
|
-
function
|
|
9547
|
-
let e = $e(
|
|
9541
|
+
function u_() {
|
|
9542
|
+
let e = $e(l_, 200);
|
|
9548
9543
|
return e(), window.addEventListener("resize", e), () => {
|
|
9549
|
-
|
|
9544
|
+
a_ = 3840, o_ = 2160, window.removeEventListener("resize", e);
|
|
9550
9545
|
};
|
|
9551
9546
|
}
|
|
9552
9547
|
//#endregion
|
|
9553
9548
|
//#region components/hooks/useThrottleFn.ts
|
|
9554
|
-
function
|
|
9549
|
+
function d_(e, t = 1e3) {
|
|
9555
9550
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
9556
9551
|
return x(() => {
|
|
9557
9552
|
i.value.cancel();
|
|
@@ -9563,14 +9558,14 @@ function u_(e, t = 1e3) {
|
|
|
9563
9558
|
}
|
|
9564
9559
|
//#endregion
|
|
9565
9560
|
//#region components/hooks/useLocalStorage.ts
|
|
9566
|
-
function
|
|
9561
|
+
function f_(e, t) {
|
|
9567
9562
|
return [T(X(e, t?.defaultValue)), (n) => {
|
|
9568
9563
|
n === void 0 ? sd(e) : Y(e, n, t?.expired || "1 Day");
|
|
9569
9564
|
}];
|
|
9570
9565
|
}
|
|
9571
9566
|
//#endregion
|
|
9572
9567
|
//#region components/hooks/useQuery.ts
|
|
9573
|
-
function
|
|
9568
|
+
function p_(e, t, n) {
|
|
9574
9569
|
let r = `useQuery-${e}`, i = T(), a = T(), o = T(), s = T(!1), c = T("idle"), l = T(), u = T(0), d = T(0), f = () => {
|
|
9575
9570
|
mf(), clearInterval(o.value), o.value = null;
|
|
9576
9571
|
}, p = async () => {
|
|
@@ -9636,26 +9631,26 @@ function f_(e, t, n) {
|
|
|
9636
9631
|
}
|
|
9637
9632
|
//#endregion
|
|
9638
9633
|
//#region package.json
|
|
9639
|
-
var
|
|
9640
|
-
async function
|
|
9634
|
+
var m_ = "0.1.107", h_;
|
|
9635
|
+
async function g_() {
|
|
9641
9636
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
9642
9637
|
method: "HEAD",
|
|
9643
9638
|
cache: "no-cache"
|
|
9644
9639
|
});
|
|
9645
9640
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
9646
9641
|
}
|
|
9647
|
-
async function g_() {
|
|
9648
|
-
let e = await h_();
|
|
9649
|
-
m_ !== e && Wu(!0);
|
|
9650
|
-
}
|
|
9651
9642
|
async function __() {
|
|
9652
|
-
|
|
9653
|
-
|
|
9643
|
+
let e = await g_();
|
|
9644
|
+
h_ !== e && Wu(!0);
|
|
9645
|
+
}
|
|
9646
|
+
async function v_() {
|
|
9647
|
+
h_ = await g_(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
9648
|
+
__();
|
|
9654
9649
|
}, 6e4);
|
|
9655
9650
|
}
|
|
9656
9651
|
//#endregion
|
|
9657
9652
|
//#region components/create.ts
|
|
9658
|
-
function
|
|
9653
|
+
function y_({ components: e = [] } = {}) {
|
|
9659
9654
|
let t = [];
|
|
9660
9655
|
function n(e, t, n) {
|
|
9661
9656
|
e.component(t) || e.component(t, n);
|
|
@@ -9668,16 +9663,16 @@ function v_({ components: e = [] } = {}) {
|
|
|
9668
9663
|
});
|
|
9669
9664
|
}), i)) {
|
|
9670
9665
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = X("theme", !1), l = X("lang", s);
|
|
9671
|
-
Gu(e), Vu(o), Hu(l), Uu(c), K.global.locale.value = l, a &&
|
|
9666
|
+
Gu(e), Vu(o), Hu(l), Uu(c), K.global.locale.value = l, a && v_(), t && rf(r, t, n);
|
|
9672
9667
|
}
|
|
9673
9668
|
}
|
|
9674
9669
|
return {
|
|
9675
|
-
version:
|
|
9670
|
+
version: m_,
|
|
9676
9671
|
install: r
|
|
9677
9672
|
};
|
|
9678
9673
|
}
|
|
9679
9674
|
//#endregion
|
|
9680
9675
|
//#region components/preset.ts
|
|
9681
|
-
var
|
|
9676
|
+
var b_ = y_({ components: Object.keys(i_).map((e) => i_[e]) }), x_ = b_.install;
|
|
9682
9677
|
//#endregion
|
|
9683
|
-
export { gt as AccessPoint, bt as Activity, wt as Adjustments, Ot as AdjustmentsHorizontal, Mt as Affiliate, It as Alarm, Bt as AlertCircle, Wt as ApiApp, Qt as AppWindow, Jt as Apps, nn as Archive, sn as ArrowNarrowLeft, dn as AspectRatio, hn as Atom, yn as Atom2, Cn as Award, gf as BLOB, Dn as Barcode, jn as Basket, Fn as Bell, zn as Bluetooth, Un as Book2, wu as Books, qn as Box, Zn as BrandAsana, Iu as BrandStackoverflow, tr as Briefcase, ar as Building, lr as BuildingArch, cu as BuildingWarehouse, _f as CUSTOM, _r as Calculator, xr as Calendar, Tr as CalendarPlus, kr as CalendarStats, Nr as Camera, Lr as CaretDown, Vr as CaretUp, Gr as ChartArea, Yr as ChartBar, $r as ChartBubble, ri as ChartDonut, si as ChartLine, di as ChartPie, hi as ChartRadar, eu as CheckMark, yi as Checkbox, Ci as CheckupList, Xl as CircleMinus, Di as Clipboard, ji as ClipboardCheck, Fi as ClipboardList, zi as ClipboardPlus, Ui as Clock, qi as Cloud, Zi as CloudDownload, ta as CloudUpload, aa as Command, Ou as Confetti, gu as Container, la as Copy, pr as Cpu, pa as CreditCard, _a as Crosshair, xa as CurrencyYen, bu as Dashboard, Ta as Database, ka as DatabaseExport, Na as DatabaseImport, La as DeviceAnalytics, Va as DeviceDesktop, Ga as DeviceDesktopAnalytics, Ya as DeviceLaptop, $a as DeviceMobile, ro as Diamond, so as Dots, fo as DotsVertical, go as Edit, bo as Eraser, wo as Eye, vf as FILE, Oo as File, Mo as FileAlert, Io as FileAnalytics, Bo as FileText, Wo as Filter, hf as GET, Jo as GitCompare, Qo as GitPullRequest, ns as GridDots, os as Home, zu as IconList, us as Id, ms as LayoutSidebarLeftCollapse, vs as LayoutSidebarLeftExpand, Ss as Link, Es as List, As as ListCheck, Ps as ListDetails, Rs as Mail, Hs as Map, Ks as MapPin, fu as Menu2, iu as Message2, Mu as MinusRound, Xs as MoonStars, Q as POST, ec as Paperclip, ic as Photo, cc as PhotoOff, fc as Plus, gc as Presentation, bc as PresentationAnalytics, wc as Printer, Oc as Qrcode, Mc as Refresh, Ic as Report, Bc as ReportAnalytics, Wc as ReportMoney, Jc as ReportSearch, Qc as Search, nl as Settings, ol as SmartHome, ul as Sun, ml as TransferIn, vl as TransferOut, Sl as Trash, El as User, Kl as UserCircle, Al as UserMinus, Pl as UserPlus, Rl as Users, ft as UzActionButton, Gf as UzBack, Op as UzBom, xm as UzCamera, mm as UzCircle, ip as UzDraggableForm, $f as UzForm, Yf as UzFormItem, mp as UzFormItemImage, vp as UzFormItemTimesPicker, up as UzFormItemUpload, Ru as UzIcon,
|
|
9678
|
+
export { gt as AccessPoint, bt as Activity, wt as Adjustments, Ot as AdjustmentsHorizontal, Mt as Affiliate, It as Alarm, Bt as AlertCircle, Wt as ApiApp, Qt as AppWindow, Jt as Apps, nn as Archive, sn as ArrowNarrowLeft, dn as AspectRatio, hn as Atom, yn as Atom2, Cn as Award, gf as BLOB, Dn as Barcode, jn as Basket, Fn as Bell, zn as Bluetooth, Un as Book2, wu as Books, qn as Box, Zn as BrandAsana, Iu as BrandStackoverflow, tr as Briefcase, ar as Building, lr as BuildingArch, cu as BuildingWarehouse, _f as CUSTOM, _r as Calculator, xr as Calendar, Tr as CalendarPlus, kr as CalendarStats, Nr as Camera, Lr as CaretDown, Vr as CaretUp, Gr as ChartArea, Yr as ChartBar, $r as ChartBubble, ri as ChartDonut, si as ChartLine, di as ChartPie, hi as ChartRadar, eu as CheckMark, yi as Checkbox, Ci as CheckupList, Xl as CircleMinus, Di as Clipboard, ji as ClipboardCheck, Fi as ClipboardList, zi as ClipboardPlus, Ui as Clock, qi as Cloud, Zi as CloudDownload, ta as CloudUpload, aa as Command, Ou as Confetti, gu as Container, la as Copy, pr as Cpu, pa as CreditCard, _a as Crosshair, xa as CurrencyYen, bu as Dashboard, Ta as Database, ka as DatabaseExport, Na as DatabaseImport, La as DeviceAnalytics, Va as DeviceDesktop, Ga as DeviceDesktopAnalytics, Ya as DeviceLaptop, $a as DeviceMobile, ro as Diamond, so as Dots, fo as DotsVertical, go as Edit, bo as Eraser, wo as Eye, vf as FILE, Oo as File, Mo as FileAlert, Io as FileAnalytics, Bo as FileText, Wo as Filter, hf as GET, Jo as GitCompare, Qo as GitPullRequest, ns as GridDots, os as Home, zu as IconList, us as Id, ms as LayoutSidebarLeftCollapse, vs as LayoutSidebarLeftExpand, Ss as Link, Es as List, As as ListCheck, Ps as ListDetails, Rs as Mail, Hs as Map, Ks as MapPin, fu as Menu2, iu as Message2, Mu as MinusRound, Xs as MoonStars, Q as POST, ec as Paperclip, ic as Photo, cc as PhotoOff, fc as Plus, gc as Presentation, bc as PresentationAnalytics, wc as Printer, Oc as Qrcode, Mc as Refresh, Ic as Report, Bc as ReportAnalytics, Wc as ReportMoney, Jc as ReportSearch, Qc as Search, nl as Settings, ol as SmartHome, ul as Sun, ml as TransferIn, vl as TransferOut, Sl as Trash, El as User, Kl as UserCircle, Al as UserMinus, Pl as UserPlus, Rl as Users, ft as UzActionButton, Gf as UzBack, Op as UzBom, xm as UzCamera, mm as UzCircle, ip as UzDraggableForm, $f as UzForm, Yf as UzFormItem, mp as UzFormItemImage, vp as UzFormItemTimesPicker, up as UzFormItemUpload, Ru as UzIcon, r_ as UzOcr, jm as UzSearchBar, Lm as UzSearchMobileBar, ih as UzSpin, bh as UzTable, kh as UzTableChild, Hh as UzTableDrawer, ig as UzTableFile, Qh as UzTableMobile, Fh as UzTableQuestChild, pg as UzThumbnail, Og as UzWrap, Hl as X, q as commonStore, y_ as create, Tg as darkTheme, b_ as default, Hf as fnActionReduction, Vf as fnActionSimplify, cg as fnAddThumbnail, mf as fnCancelFetch, ug as fnClearAllThumbnail, l_ as fnComputedScale, Bu as fnCreateRouter, sd as fnDelStorage, ld as fnDelStorageAll, cd as fnDelStorageByPrefix, lg as fnDeleteThumbnail, od as fnDialog, J as fnErrorLog, yd as fnFilterByPinyinInitials, fd as fnFormatTime, gd as fnFormatUnits, hd as fnFullScreen, X as fnGetStorage, qm as fnGetTableData, u_ as fnListenerScale, ad as fnNotification, $m as fnOptionReduction, Qm as fnOptionSimplify, dd as fnPageModel2Naive, eh as fnPrepareFormData, th as fnPrepareTableData, Pf as fnRenderAction, ud as fnScrollTop, Hu as fnSetLang, c_ as fnSetNormalWidthAndHeight, Y as fnSetStorage, Uu as fnSetTheme, og as fnSetThumbnail, Ym as fnTableReduction, Jm as fnTableSimplify, md as fnThrottle, pd as fnTitle, Zm as fnTriggersReduction, Xm as fnTriggersSimplify, K as i18n, x_ as install, wg as lightTheme, bd as mergeColumns, G as router, s_ as scaleStore, yp as useDebounceFn, f_ as useLocalStorage, p_ as useQuery, d_ as useThrottleFn };
|