vue3-curd 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/CURD/types.d.ts +1 -0
- package/dist/src/components/CURD/utils.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/vue3-curd.es.js +159 -149
- package/dist/vue3-curd.es.js.map +1 -1
- package/dist/vue3-curd.umd.js +1 -1
- package/dist/vue3-curd.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/vue3-curd.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElTag as ma, ElImage as He, ElIcon as Pe, ElDialog as Ne, ElTable as st, ElTableColumn as ct, ElCheckbox as ya, ElSwitch as ga, ElText as ut, ElTooltip as it, ElButton as De, ElLoadingDirective as dt, ElPagination as pt, ElUpload as Ke, ElLink as ft, ElInput as We, ElForm as ba, ElRow as va, ElCol as
|
|
2
|
-
import { defineComponent as pe, computed as G, createElementBlock as C, openBlock as s, normalizeClass as qe, unref as o, createElementVNode as te, toDisplayString as B, Fragment as Y, renderList as Q, createBlock as f, createCommentVNode as X, withCtx as b, createTextVNode as L, ref as O, watch as
|
|
1
|
+
import { ElTag as ma, ElImage as He, ElIcon as Pe, ElDialog as Ne, ElTable as st, ElTableColumn as ct, ElCheckbox as ya, ElSwitch as ga, ElText as ut, ElTooltip as it, ElButton as De, ElLoadingDirective as dt, ElPagination as pt, ElUpload as Ke, ElLink as ft, ElInput as We, ElForm as ba, ElRow as va, ElCol as ka, ElFormItem as _a, ElInputNumber as ht, ElSelect as wa, ElOption as Va, ElDatePicker as Sa, ElCheckboxGroup as mt, ElRadioGroup as yt, ElRadio as gt, ElTreeSelect as $a, ElColorPicker as bt, ElCard as Da, ElLoading as Ca, ElMessage as Ve, ElMessageBox as we, ElNotification as Ue } from "element-plus/es";
|
|
2
|
+
import { defineComponent as pe, computed as G, createElementBlock as C, openBlock as s, normalizeClass as qe, unref as o, createElementVNode as te, toDisplayString as B, Fragment as Y, renderList as Q, createBlock as f, createCommentVNode as X, withCtx as b, createTextVNode as L, ref as O, watch as ke, normalizeStyle as fe, createVNode as F, isRef as Se, getCurrentInstance as he, toRaw as Le, onMounted as Qe, resolveDirective as Ta, withDirectives as de, renderSlot as ze, withModifiers as vt, nextTick as Be, TransitionGroup as kt, useCssVars as _t, resolveComponent as wt, vShow as Vt, reactive as St, createSlots as Ye, withKeys as la, normalizeProps as oa, guardReactiveProps as ra } from "vue";
|
|
3
3
|
import { createTypes as $t } from "vue-types";
|
|
4
4
|
import { PictureFilled as Me, VideoPlay as na, Picture as xe } from "@element-plus/icons-vue";
|
|
5
5
|
import Dt from "axios";
|
|
@@ -147,7 +147,7 @@ const Ot = () => {
|
|
|
147
147
|
(l) => l.data,
|
|
148
148
|
(l) => Promise.reject(l)
|
|
149
149
|
), e;
|
|
150
|
-
},
|
|
150
|
+
}, _e = () => (Ae || (Ae = Ot()), Ae), Lt = (e) => {
|
|
151
151
|
Ae = e;
|
|
152
152
|
}, Xe = () => xa(), zt = (e) => {
|
|
153
153
|
xa = e;
|
|
@@ -155,13 +155,13 @@ const Ot = () => {
|
|
|
155
155
|
Je = e || "";
|
|
156
156
|
};
|
|
157
157
|
function ea(e) {
|
|
158
|
-
return
|
|
158
|
+
return _e()({
|
|
159
159
|
url: "/resource/oss/listByIds/" + e,
|
|
160
160
|
method: "get"
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
function Ia(e) {
|
|
164
|
-
return
|
|
164
|
+
return _e()({
|
|
165
165
|
url: "/resource/oss/" + e,
|
|
166
166
|
method: "delete"
|
|
167
167
|
});
|
|
@@ -191,7 +191,7 @@ const Yt = { class: "image-slot" }, Mt = { key: 1 }, Rt = /* @__PURE__ */ pe({
|
|
|
191
191
|
return G(() => {
|
|
192
192
|
const u = l.height;
|
|
193
193
|
return typeof u == "string" ? u : `${u}px`;
|
|
194
|
-
}),
|
|
194
|
+
}), ke(() => l.modelValue, async (u) => {
|
|
195
195
|
if (u) {
|
|
196
196
|
let m;
|
|
197
197
|
Array.isArray(u) ? m = u : m = (await ea(u)).data, t.value = m.map((h) => h.url).join(",");
|
|
@@ -259,7 +259,7 @@ const Yt = { class: "image-slot" }, Mt = { key: 1 }, Rt = /* @__PURE__ */ pe({
|
|
|
259
259
|
), r = G(() => (t.data.fileSuffix || "").toLowerCase()), u = O(!1), m = O(!1), h = () => {
|
|
260
260
|
u.value = !0;
|
|
261
261
|
};
|
|
262
|
-
return
|
|
262
|
+
return ke(() => t.data.url, () => {
|
|
263
263
|
m.value = !1;
|
|
264
264
|
}), (V, i) => {
|
|
265
265
|
const R = Pe, S = He, M = Ge, P = Ne;
|
|
@@ -464,11 +464,17 @@ function al(e, l) {
|
|
|
464
464
|
return !0;
|
|
465
465
|
return !1;
|
|
466
466
|
}
|
|
467
|
-
function tl(e, l) {
|
|
468
|
-
if (
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
467
|
+
function tl(e, l, t) {
|
|
468
|
+
if (l) {
|
|
469
|
+
for (const a in l)
|
|
470
|
+
if (l[a].includes(e[a]))
|
|
471
|
+
return !1;
|
|
472
|
+
}
|
|
473
|
+
if (t) {
|
|
474
|
+
for (const a in t)
|
|
475
|
+
if (!t[a].includes(e[a]))
|
|
476
|
+
return !1;
|
|
477
|
+
}
|
|
472
478
|
return !0;
|
|
473
479
|
}
|
|
474
480
|
function ll(e, l, t, a) {
|
|
@@ -486,35 +492,35 @@ function ol(e) {
|
|
|
486
492
|
}
|
|
487
493
|
a.value = !0;
|
|
488
494
|
try {
|
|
489
|
-
const
|
|
495
|
+
const _ = await R(null), E = await e.listApi(_);
|
|
490
496
|
e.afterQuery && await e.afterQuery(E);
|
|
491
497
|
let x = E.rows || E.data;
|
|
492
498
|
e.treeProps && (x = l == null ? void 0 : l.handleTree(E.data, e.rowKey)), t.value = x, m.value.total = E.total;
|
|
493
499
|
const W = E.total / m.value.pageSize <= 1;
|
|
494
500
|
V.value = W ? Ie.SIMPLE : Ie.FULL, l == null || l.$forceUpdate();
|
|
495
|
-
} catch (
|
|
496
|
-
console.error("Query failed:",
|
|
501
|
+
} catch (_) {
|
|
502
|
+
console.error("Query failed:", _);
|
|
497
503
|
} finally {
|
|
498
504
|
a.value = !1;
|
|
499
505
|
}
|
|
500
506
|
}, R = async (U) => {
|
|
501
507
|
U && (r.value = Re(U));
|
|
502
|
-
let
|
|
508
|
+
let _ = e.queryParams || {};
|
|
503
509
|
if (e.beforeQuery) {
|
|
504
510
|
const E = await e.beforeQuery({});
|
|
505
|
-
|
|
511
|
+
_ = {
|
|
506
512
|
...m.value,
|
|
507
|
-
...
|
|
513
|
+
..._,
|
|
508
514
|
...r.value,
|
|
509
515
|
...E
|
|
510
516
|
};
|
|
511
517
|
} else
|
|
512
|
-
|
|
518
|
+
_ = {
|
|
513
519
|
...m.value,
|
|
514
|
-
...
|
|
520
|
+
..._,
|
|
515
521
|
...r.value
|
|
516
522
|
};
|
|
517
|
-
return
|
|
523
|
+
return _;
|
|
518
524
|
}, S = (U) => {
|
|
519
525
|
U && (r.value = Re(U)), i();
|
|
520
526
|
}, M = (U) => {
|
|
@@ -661,79 +667,79 @@ const rl = (e) => {
|
|
|
661
667
|
handleSizeChange: ee,
|
|
662
668
|
handleSortChange: D,
|
|
663
669
|
handleSelectionChange: U,
|
|
664
|
-
initData:
|
|
670
|
+
initData: _,
|
|
665
671
|
getQueryParams: E
|
|
666
|
-
} = ol(r.dataSource), { initColumnDicts: x } = Ya(), W = O(za), $ = (
|
|
667
|
-
(
|
|
668
|
-
) : []), T = (
|
|
672
|
+
} = ol(r.dataSource), { initColumnDicts: x } = Ya(), W = O(za), $ = (k) => k == null ? void 0 : k[r.dataSource.rowKey], p = G(() => r.dataSource.actions ? r.dataSource.actions.filter(
|
|
673
|
+
(k) => k.action !== "create" && k.action !== "back" && (!k.position || k.position === "table") && Fe(k.permission)
|
|
674
|
+
) : []), T = (k) => {
|
|
669
675
|
var N;
|
|
670
|
-
return (N = r.dataSource.disabledCheckedRowKeys) != null && N.includes($(
|
|
676
|
+
return (N = r.dataSource.disabledCheckedRowKeys) != null && N.includes($(k)) ? !1 : tl(k, r.dataSource.selectionDisable, r.dataSource.selectionEnable);
|
|
671
677
|
}, A = G(() => {
|
|
672
|
-
const
|
|
673
|
-
if (
|
|
674
|
-
return typeof
|
|
678
|
+
const k = r.dataSource.actionColumnWidth;
|
|
679
|
+
if (k != null && k !== "")
|
|
680
|
+
return typeof k == "number" ? `${k}px` : k;
|
|
675
681
|
let N = p.value.length * Qt;
|
|
676
682
|
return N < ca && (N = ca), `${N + 40}px`;
|
|
677
|
-
}), K = (
|
|
683
|
+
}), K = (k, N) => el(k, N), J = (k, N) => al(k, N), ce = (k) => Gt(k), w = (k) => Fe(k == null ? void 0 : k.permission), z = (k) => typeof k.visible == "function" ? !!k.visible(k, r.dataSource) : k.visible !== !1, q = (k) => {
|
|
678
684
|
var ae;
|
|
679
|
-
const N =
|
|
680
|
-
return N || (((ae =
|
|
681
|
-
}, j = (
|
|
682
|
-
const ae = a == null ? void 0 : a.useDict(
|
|
685
|
+
const N = k.align || r.dataSource.align;
|
|
686
|
+
return N || (((ae = k.label) == null ? void 0 : ae.indexOf("時間")) > -1 || !1 || k.type == "dictTag" || k.type == "image" || k.type == "switch" || k.type == "imageUrl" ? "center" : "left");
|
|
687
|
+
}, j = (k, N) => {
|
|
688
|
+
const ae = a == null ? void 0 : a.useDict(k.dictType)[k.dictType];
|
|
683
689
|
if (ae != null) {
|
|
684
|
-
const le = N[
|
|
690
|
+
const le = N[k.prop], oe = ae.filter((be) => be.value == le);
|
|
685
691
|
return oe.length == 0 ? "" : oe[0].label;
|
|
686
|
-
} else console.error(
|
|
687
|
-
}, ne = (
|
|
688
|
-
const ae = W.value[
|
|
692
|
+
} else console.error(k.dictType + " 字典不存在");
|
|
693
|
+
}, ne = (k, N) => {
|
|
694
|
+
const ae = W.value[k.dictType];
|
|
689
695
|
if (ae != null) {
|
|
690
|
-
const le = N[
|
|
696
|
+
const le = N[k.prop], oe = ae.find((be) => be.value == le);
|
|
691
697
|
return oe == null ? "" : oe.label;
|
|
692
|
-
} else console.error(
|
|
693
|
-
}, ue = (
|
|
694
|
-
if (
|
|
695
|
-
const ae = N[
|
|
698
|
+
} else console.error(k.dictType + " 字典不存在");
|
|
699
|
+
}, ue = (k, N) => {
|
|
700
|
+
if (k.data != null) {
|
|
701
|
+
const ae = N[k.prop], le = k.data.find((oe) => oe.value == ae);
|
|
696
702
|
return le == null ? "" : le.label;
|
|
697
703
|
} else console.error("未配置data屬性");
|
|
698
|
-
}, me = (
|
|
699
|
-
if (
|
|
700
|
-
const ae = N[
|
|
704
|
+
}, me = (k, N) => {
|
|
705
|
+
if (k.data != null) {
|
|
706
|
+
const ae = N[k.prop], le = k.data.find((oe) => oe.value == ae);
|
|
701
707
|
return le == null ? "info" : le.tagType;
|
|
702
708
|
} else console.error("未配置data屬性");
|
|
703
|
-
}, se = (
|
|
704
|
-
const N = Array.isArray(
|
|
709
|
+
}, se = (k, N) => Oe(k, N), ge = (k, N) => k.formatter(N, k, je(N, k.prop)) ?? "", d = (k) => {
|
|
710
|
+
const N = Array.isArray(k) ? k : [];
|
|
705
711
|
U(N), c("selectionChange", N);
|
|
706
|
-
}, y = (
|
|
712
|
+
}, y = (k, N, ae) => {
|
|
707
713
|
var le, oe;
|
|
708
|
-
return (oe = (le = r.dataSource).rowClick) == null ? void 0 : oe.call(le,
|
|
709
|
-
}, n = (
|
|
714
|
+
return (oe = (le = r.dataSource).rowClick) == null ? void 0 : oe.call(le, k, N, ae);
|
|
715
|
+
}, n = (k, N) => c("actionEvent", k, N), Ce = () => i.value, v = async () => {
|
|
710
716
|
var N, ae;
|
|
711
717
|
if (!r.dataSource.showSelection || !((N = r.dataSource.checkedRowKeys) != null && N.length)) return;
|
|
712
718
|
await Be();
|
|
713
|
-
const
|
|
714
|
-
if (
|
|
719
|
+
const k = m.value;
|
|
720
|
+
if (k != null && k.toggleRowSelection)
|
|
715
721
|
for (const le of h.value) {
|
|
716
722
|
const oe = $(le);
|
|
717
723
|
if (oe == null) continue;
|
|
718
724
|
const be = String(oe);
|
|
719
|
-
(ae = r.dataSource.checkedRowKeys) != null && ae.includes(be) &&
|
|
725
|
+
(ae = r.dataSource.checkedRowKeys) != null && ae.includes(be) && k.toggleRowSelection(le, !0);
|
|
720
726
|
}
|
|
721
727
|
}, Ja = async () => {
|
|
722
728
|
var N, ae;
|
|
723
729
|
if (!r.dataSource.showSelection || !((N = r.dataSource.disabledCheckedRowKeys) != null && N.length)) return;
|
|
724
730
|
await Be();
|
|
725
|
-
const
|
|
726
|
-
if (
|
|
731
|
+
const k = m.value;
|
|
732
|
+
if (k != null && k.toggleRowSelection)
|
|
727
733
|
for (const le of h.value) {
|
|
728
734
|
const oe = $(le);
|
|
729
735
|
if (oe == null) continue;
|
|
730
736
|
const be = String(oe);
|
|
731
|
-
(ae = r.dataSource.disabledCheckedRowKeys) != null && ae.includes(be) &&
|
|
737
|
+
(ae = r.dataSource.disabledCheckedRowKeys) != null && ae.includes(be) && k.toggleRowSelection(le, !0);
|
|
732
738
|
}
|
|
733
739
|
}, ta = async () => {
|
|
734
|
-
await x(r.dataSource.columns), await
|
|
740
|
+
await x(r.dataSource.columns), await _(), await Ja(), await v();
|
|
735
741
|
};
|
|
736
|
-
return Qe(() => ta()), l({ refreshTable: H, getSelection: Ce, initData: ta, getQueryParams: E }), (
|
|
742
|
+
return Qe(() => ta()), l({ refreshTable: H, getSelection: Ce, initData: ta, getQueryParams: E }), (k, N) => {
|
|
737
743
|
const ae = ct, le = Pe, oe = He, be = ya, Xa = ga, $e = ma, Za = Pa, et = Aa, at = Ge, tt = ut, Te = De, lt = it, ot = st, rt = pt, Ee = Ta("hasPermi"), nt = dt;
|
|
738
744
|
return s(), C("div", null, [
|
|
739
745
|
de((s(), f(ot, {
|
|
@@ -741,7 +747,7 @@ const rl = (e) => {
|
|
|
741
747
|
ref: m,
|
|
742
748
|
data: o(h),
|
|
743
749
|
"row-key": r.dataSource.rowKey,
|
|
744
|
-
"element-loading-text":
|
|
750
|
+
"element-loading-text": k.$t("數據加載中..."),
|
|
745
751
|
stripe: "",
|
|
746
752
|
"tree-props": r.dataSource.treeProps,
|
|
747
753
|
"default-sort": o(P),
|
|
@@ -753,7 +759,7 @@ const rl = (e) => {
|
|
|
753
759
|
"highlight-current-row": ""
|
|
754
760
|
}, {
|
|
755
761
|
empty: b(() => [
|
|
756
|
-
te("div", dl, B(
|
|
762
|
+
te("div", dl, B(k.$t("未查詢到數據")), 1)
|
|
757
763
|
]),
|
|
758
764
|
default: b(() => [
|
|
759
765
|
r.dataSource.showSelection ? (s(), f(ae, {
|
|
@@ -786,7 +792,7 @@ const rl = (e) => {
|
|
|
786
792
|
"class-name": g.bold ? "col-bold" : ""
|
|
787
793
|
}, {
|
|
788
794
|
default: b(({ row: I }) => [
|
|
789
|
-
g.slot ? ze(
|
|
795
|
+
g.slot ? ze(k.$slots, g.slot, {
|
|
790
796
|
key: 0,
|
|
791
797
|
row: I,
|
|
792
798
|
column: g,
|
|
@@ -839,9 +845,9 @@ const rl = (e) => {
|
|
|
839
845
|
_: 1
|
|
840
846
|
}))
|
|
841
847
|
])) : g.type === "date" ? (s(), C(Y, { key: 4 }, [
|
|
842
|
-
L(B(
|
|
848
|
+
L(B(k.parseTime(I[g.prop], "{y}-{m}-{d}")), 1)
|
|
843
849
|
], 64)) : g.type === "timestamp" ? (s(), C(Y, { key: 5 }, [
|
|
844
|
-
L(B(
|
|
850
|
+
L(B(k.parseTime(I[g.prop])), 1)
|
|
845
851
|
], 64)) : g.type === "bool" ? (s(), f(be, {
|
|
846
852
|
key: 6,
|
|
847
853
|
modelValue: I[g.prop],
|
|
@@ -958,7 +964,7 @@ const rl = (e) => {
|
|
|
958
964
|
key: 2,
|
|
959
965
|
align: "center",
|
|
960
966
|
fixed: "right",
|
|
961
|
-
label:
|
|
967
|
+
label: k.$t("操作"),
|
|
962
968
|
width: o(A)
|
|
963
969
|
}, {
|
|
964
970
|
default: b(({ row: g }) => [
|
|
@@ -1034,7 +1040,7 @@ const rl = (e) => {
|
|
|
1034
1040
|
]);
|
|
1035
1041
|
};
|
|
1036
1042
|
}
|
|
1037
|
-
}), ua = /* @__PURE__ */ ye(pl, [["__scopeId", "data-v-
|
|
1043
|
+
}), ua = /* @__PURE__ */ ye(pl, [["__scopeId", "data-v-06fd2a41"]]), fl = { class: "upload-file" }, hl = {
|
|
1038
1044
|
key: 0,
|
|
1039
1045
|
class: "el-upload__tip"
|
|
1040
1046
|
}, ml = { style: { color: "#f56c6c" } }, yl = { style: { color: "#f56c6c" } }, gl = { class: "el-icon-document" }, bl = { class: "ele-upload-list__item-content-action" }, vl = /* @__PURE__ */ pe({
|
|
@@ -1057,7 +1063,7 @@ const rl = (e) => {
|
|
|
1057
1063
|
const t = e, { proxy: a } = he(), c = l, r = O(0), u = O([]), m = Ze(), h = O(m + "/resource/oss/upload"), V = O(Xe()), i = O([]), R = G(
|
|
1058
1064
|
() => t.showTip && (t.fileType || t.fileSize)
|
|
1059
1065
|
), S = O();
|
|
1060
|
-
|
|
1066
|
+
ke(() => t.modelValue, async (E) => {
|
|
1061
1067
|
if (E) {
|
|
1062
1068
|
if (!t.showFileList) return;
|
|
1063
1069
|
let x = 1, W = [];
|
|
@@ -1081,10 +1087,10 @@ const rl = (e) => {
|
|
|
1081
1087
|
E.code === 200 ? (u.value.push({ name: E.data.fileName, url: E.data.url, ossId: E.data.ossId }), D()) : (r.value--, a == null || a.$modal.closeLoading(), a == null || a.$modal.msgError(E.msg), (W = S.value) == null || W.handleRemove(x), D());
|
|
1082
1088
|
}, ee = (E) => {
|
|
1083
1089
|
const x = i.value[E].ossId;
|
|
1084
|
-
Ia(x), i.value.splice(E, 1), c("update:modelValue",
|
|
1090
|
+
Ia(x), i.value.splice(E, 1), c("update:modelValue", _(i.value));
|
|
1085
1091
|
}, D = () => {
|
|
1086
|
-
r.value > 0 && u.value.length === r.value && (i.value = i.value.filter((E) => E.url !== void 0).concat(u.value), u.value = [], r.value = 0, c("update:modelValue",
|
|
1087
|
-
}, U = (E) => E.lastIndexOf("/") > -1 ? E.slice(E.lastIndexOf("/") + 1) : E,
|
|
1092
|
+
r.value > 0 && u.value.length === r.value && (i.value = i.value.filter((E) => E.url !== void 0).concat(u.value), u.value = [], r.value = 0, c("update:modelValue", _(i.value)), a == null || a.$modal.closeLoading());
|
|
1093
|
+
}, U = (E) => E.lastIndexOf("/") > -1 ? E.slice(E.lastIndexOf("/") + 1) : E, _ = (E, x) => {
|
|
1088
1094
|
let W = "";
|
|
1089
1095
|
return x = x || ",", E.forEach(($) => {
|
|
1090
1096
|
$.ossId && (W += $.ossId + x);
|
|
@@ -1130,7 +1136,7 @@ const rl = (e) => {
|
|
|
1130
1136
|
], 64)) : X("", !0),
|
|
1131
1137
|
x[4] || (x[4] = L(" 的文件 "))
|
|
1132
1138
|
])) : X("", !0),
|
|
1133
|
-
e.showFileList ? (s(), f(
|
|
1139
|
+
e.showFileList ? (s(), f(kt, {
|
|
1134
1140
|
key: 1,
|
|
1135
1141
|
class: "upload-file-list el-upload-list el-upload-list--text",
|
|
1136
1142
|
name: "el-fade-in-linear",
|
|
@@ -1170,10 +1176,10 @@ const rl = (e) => {
|
|
|
1170
1176
|
]);
|
|
1171
1177
|
};
|
|
1172
1178
|
}
|
|
1173
|
-
}), Ra = /* @__PURE__ */ ye(vl, [["__scopeId", "data-v-027e6121"]]),
|
|
1179
|
+
}), Ra = /* @__PURE__ */ ye(vl, [["__scopeId", "data-v-027e6121"]]), kl = {
|
|
1174
1180
|
key: 0,
|
|
1175
1181
|
class: "el-upload__tip"
|
|
1176
|
-
},
|
|
1182
|
+
}, _l = { style: { color: "#f56c6c" } }, wl = { style: { color: "#f56c6c" } }, Vl = { style: { color: "#f56c6c" } }, Sl = ["src"], $l = /* @__PURE__ */ pe({
|
|
1177
1183
|
__name: "index",
|
|
1178
1184
|
props: {
|
|
1179
1185
|
modelValue: {
|
|
@@ -1205,11 +1211,11 @@ const rl = (e) => {
|
|
|
1205
1211
|
},
|
|
1206
1212
|
emits: ["update:modelValue"],
|
|
1207
1213
|
setup(e, { emit: l }) {
|
|
1208
|
-
|
|
1214
|
+
_t(($) => ({
|
|
1209
1215
|
"9d14746a": t.height
|
|
1210
1216
|
}));
|
|
1211
1217
|
const t = e, { proxy: a } = he(), c = l, r = O(0), u = O([]), m = O(""), h = O(!1), V = Ze(), i = O(V + "/resource/oss/upload"), R = O(Xe()), S = O([]), M = G(() => t.isShowTip && (t.fileType || t.fileSize || t.imageSize)), P = O(), H = G(() => t.fileType.map(($) => `.${$}`).join(","));
|
|
1212
|
-
|
|
1218
|
+
ke(
|
|
1213
1219
|
() => t.modelValue,
|
|
1214
1220
|
async ($) => {
|
|
1215
1221
|
if ($) {
|
|
@@ -1243,7 +1249,7 @@ const rl = (e) => {
|
|
|
1243
1249
|
a == null || a.$modal.msgError(`上傳文件數量不能超過 ${t.limit} 個!`);
|
|
1244
1250
|
}, D = ($, p) => {
|
|
1245
1251
|
var T;
|
|
1246
|
-
$.code === 200 ? (u.value.push({ name: $.data.fileName, url: $.data.url, ossId: $.data.ossId }),
|
|
1252
|
+
$.code === 200 ? (u.value.push({ name: $.data.fileName, url: $.data.url, ossId: $.data.ossId }), _()) : (r.value--, a == null || a.$modal.closeLoading(), a == null || a.$modal.msgError($.msg), (T = P.value) == null || T.handleRemove(p), _());
|
|
1247
1253
|
}, U = ($) => {
|
|
1248
1254
|
const p = S.value.map((T) => T.name).indexOf($.name);
|
|
1249
1255
|
if (p > -1 && u.value.length === r.value) {
|
|
@@ -1251,7 +1257,7 @@ const rl = (e) => {
|
|
|
1251
1257
|
return Ia(T), S.value.splice(p, 1), c("update:modelValue", W(S.value)), !1;
|
|
1252
1258
|
}
|
|
1253
1259
|
return !0;
|
|
1254
|
-
},
|
|
1260
|
+
}, _ = () => {
|
|
1255
1261
|
r.value > 0 && u.value.length === r.value && (S.value = S.value.filter(($) => $.url !== void 0).concat(u.value), u.value = [], r.value = 0, c("update:modelValue", W(S.value)), a == null || a.$modal.closeLoading());
|
|
1256
1262
|
}, E = () => {
|
|
1257
1263
|
a == null || a.$modal.msgError("上傳圖片失敗"), a == null || a.$modal.closeLoading();
|
|
@@ -1296,11 +1302,11 @@ const rl = (e) => {
|
|
|
1296
1302
|
]),
|
|
1297
1303
|
_: 1
|
|
1298
1304
|
}, 8, ["action", "limit", "accept", "headers", "file-list", "class"]),
|
|
1299
|
-
o(M) ? (s(), C("div",
|
|
1305
|
+
o(M) ? (s(), C("div", kl, [
|
|
1300
1306
|
p[4] || (p[4] = L(" 請上傳 ")),
|
|
1301
1307
|
e.fileSize ? (s(), C(Y, { key: 0 }, [
|
|
1302
1308
|
p[1] || (p[1] = L(" 大小不超過 ")),
|
|
1303
|
-
te("b",
|
|
1309
|
+
te("b", _l, B(e.fileSize) + "MB", 1)
|
|
1304
1310
|
], 64)) : X("", !0),
|
|
1305
1311
|
e.fileType ? (s(), C(Y, { key: 1 }, [
|
|
1306
1312
|
e.fileSize ? (s(), C(Y, { key: 0 }, [
|
|
@@ -1336,14 +1342,14 @@ const rl = (e) => {
|
|
|
1336
1342
|
]);
|
|
1337
1343
|
};
|
|
1338
1344
|
}
|
|
1339
|
-
}), ja = /* @__PURE__ */ ye($l, [["__scopeId", "data-v-c17cf859"]]), Dl = (e) =>
|
|
1345
|
+
}), ja = /* @__PURE__ */ ye($l, [["__scopeId", "data-v-c17cf859"]]), Dl = (e) => _e()({
|
|
1340
1346
|
url: "/app/translation/getByName",
|
|
1341
1347
|
method: "post",
|
|
1342
1348
|
headers: {
|
|
1343
1349
|
repeatSubmit: !1
|
|
1344
1350
|
},
|
|
1345
1351
|
data: { name: e }
|
|
1346
|
-
}), Cl = (e) =>
|
|
1352
|
+
}), Cl = (e) => _e()({
|
|
1347
1353
|
url: "/app/translation/batchAdd",
|
|
1348
1354
|
method: "post",
|
|
1349
1355
|
data: e
|
|
@@ -1411,7 +1417,7 @@ const rl = (e) => {
|
|
|
1411
1417
|
const P = { name: r.value[0].text };
|
|
1412
1418
|
return r.value.forEach((H) => P[H.id] = H.text), P;
|
|
1413
1419
|
}, M = () => a("focus");
|
|
1414
|
-
return
|
|
1420
|
+
return ke(() => c.modelValue, (P) => {
|
|
1415
1421
|
if (P) {
|
|
1416
1422
|
const H = r.value.filter((Z) => Z.selected)[0];
|
|
1417
1423
|
H.text = P, m.value || i(), m.value = !0;
|
|
@@ -1518,7 +1524,7 @@ const rl = (e) => {
|
|
|
1518
1524
|
const S = {};
|
|
1519
1525
|
return l.minHeight && (S.minHeight = `${l.minHeight}px`), l.height && (S.height = `${l.height}px`), S;
|
|
1520
1526
|
}), h = O("");
|
|
1521
|
-
|
|
1527
|
+
ke(
|
|
1522
1528
|
() => l.modelValue,
|
|
1523
1529
|
(S) => {
|
|
1524
1530
|
S !== h.value && (h.value = S || "<p></p>");
|
|
@@ -1711,7 +1717,7 @@ function Yl(e, l) {
|
|
|
1711
1717
|
const R = (M = i.form) == null ? void 0 : M.type, S = ((P = i.form) == null ? void 0 : P.prop) || i.prop;
|
|
1712
1718
|
switch (R) {
|
|
1713
1719
|
case "checkboxCommonDict":
|
|
1714
|
-
Array.isArray(h[S]) && (h[S] = h[S].map((
|
|
1720
|
+
Array.isArray(h[S]) && (h[S] = h[S].map((_) => _[i.form.value] || _));
|
|
1715
1721
|
break;
|
|
1716
1722
|
case "selectDict":
|
|
1717
1723
|
case "radioDict":
|
|
@@ -1764,16 +1770,16 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1764
1770
|
), M = G(() => {
|
|
1765
1771
|
const E = !!c.editData[c.dataSource.rowKey], x = Zt(c.dataSource.columns, E, E);
|
|
1766
1772
|
return Ba(x, "form.order");
|
|
1767
|
-
}), P = G(() => c.dataSource.formInline || !1), H = (
|
|
1768
|
-
if (Array.isArray(
|
|
1769
|
-
return
|
|
1770
|
-
if (
|
|
1773
|
+
}), P = G(() => c.dataSource.formInline || !1), H = (_) => {
|
|
1774
|
+
if (Array.isArray(_.defaultExpandedKeys))
|
|
1775
|
+
return _.defaultExpandedKeys;
|
|
1776
|
+
if (_.autoExpandFirstLevel === !1)
|
|
1771
1777
|
return [];
|
|
1772
|
-
const E =
|
|
1778
|
+
const E = _.data || [], x = _.props || { value: "id" }, W = _.valueKey || x.value || "id";
|
|
1773
1779
|
return Array.isArray(E) ? E.map(($) => $[W]).filter(($) => $ !== void 0) : [];
|
|
1774
1780
|
}, Z = () => Xt(c.dataSource.columns), ee = () => {
|
|
1775
|
-
var
|
|
1776
|
-
(
|
|
1781
|
+
var _;
|
|
1782
|
+
(_ = h.value) == null || _.validate(async (E) => {
|
|
1777
1783
|
var x, W, $, p, T;
|
|
1778
1784
|
if (!E) return !1;
|
|
1779
1785
|
try {
|
|
@@ -1786,23 +1792,23 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1786
1792
|
return !1;
|
|
1787
1793
|
});
|
|
1788
1794
|
}, D = async () => {
|
|
1789
|
-
const
|
|
1790
|
-
if (
|
|
1795
|
+
const _ = u.value;
|
|
1796
|
+
if (_ != null) {
|
|
1791
1797
|
const E = [];
|
|
1792
|
-
for (let x = 0; x <
|
|
1793
|
-
const W =
|
|
1798
|
+
for (let x = 0; x < _.length; x++) {
|
|
1799
|
+
const W = _[x].getTranslate();
|
|
1794
1800
|
E.push(W);
|
|
1795
1801
|
}
|
|
1796
1802
|
await Cl(E);
|
|
1797
1803
|
}
|
|
1798
|
-
}, U = (
|
|
1804
|
+
}, U = (_ = !1) => {
|
|
1799
1805
|
var E;
|
|
1800
|
-
(E = h.value) == null || E.resetFields(), m("close",
|
|
1806
|
+
(E = h.value) == null || E.resetFields(), m("close", _);
|
|
1801
1807
|
};
|
|
1802
|
-
return
|
|
1803
|
-
|
|
1804
|
-
}), (
|
|
1805
|
-
const x = ht, W = Va, $ = wa, p = Sa, T = ja, A = Ra, K = We, J = ya, ce = mt, w = ga, z = gt, q = yt, j = $a, ne = bt, ue =
|
|
1808
|
+
return ke(() => c.modelValue, (_) => {
|
|
1809
|
+
_ && (Z(), R(c.editData)), r.value = _;
|
|
1810
|
+
}), (_, E) => {
|
|
1811
|
+
const x = ht, W = Va, $ = wa, p = Sa, T = ja, A = Ra, K = We, J = ya, ce = mt, w = ga, z = gt, q = yt, j = $a, ne = bt, ue = _a, me = ka, se = va, ge = ba, d = De, y = Ne;
|
|
1806
1812
|
return s(), f(y, {
|
|
1807
1813
|
title: c.action.title || c.action.text,
|
|
1808
1814
|
modelValue: o(r),
|
|
@@ -1819,7 +1825,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1819
1825
|
onClick: E[0] || (E[0] = (n) => U(!1))
|
|
1820
1826
|
}, {
|
|
1821
1827
|
default: b(() => [
|
|
1822
|
-
L(B(
|
|
1828
|
+
L(B(_.$t("關閉")), 1)
|
|
1823
1829
|
]),
|
|
1824
1830
|
_: 1
|
|
1825
1831
|
}),
|
|
@@ -1828,7 +1834,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1828
1834
|
onClick: ee
|
|
1829
1835
|
}, {
|
|
1830
1836
|
default: b(() => [
|
|
1831
|
-
L(B(
|
|
1837
|
+
L(B(_.$t("存儲")), 1)
|
|
1832
1838
|
]),
|
|
1833
1839
|
_: 1
|
|
1834
1840
|
})
|
|
@@ -1870,14 +1876,14 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1870
1876
|
min: n.form.min,
|
|
1871
1877
|
max: n.form.max,
|
|
1872
1878
|
precision: n.form.precision,
|
|
1873
|
-
placeholder:
|
|
1879
|
+
placeholder: _.$t("請輸入")
|
|
1874
1880
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "placeholder"])) : n.form.type === "select" ? (s(), f($, {
|
|
1875
1881
|
key: 1,
|
|
1876
1882
|
multiple: n.form.multiple,
|
|
1877
1883
|
style: { width: "100%" },
|
|
1878
1884
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1879
1885
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1880
|
-
placeholder:
|
|
1886
|
+
placeholder: _.$t("請選擇"),
|
|
1881
1887
|
filterable: n.form.filterable ?? !0
|
|
1882
1888
|
}, {
|
|
1883
1889
|
default: b(() => [
|
|
@@ -1894,7 +1900,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1894
1900
|
style: { width: "100%" },
|
|
1895
1901
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1896
1902
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1897
|
-
placeholder:
|
|
1903
|
+
placeholder: _.$t("請選擇"),
|
|
1898
1904
|
filterable: n.form.filterable ?? !0
|
|
1899
1905
|
}, {
|
|
1900
1906
|
default: b(() => [
|
|
@@ -1911,7 +1917,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1911
1917
|
style: { width: "100%" },
|
|
1912
1918
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1913
1919
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1914
|
-
placeholder:
|
|
1920
|
+
placeholder: _.$t("請選擇"),
|
|
1915
1921
|
filterable: n.form.filterable ?? !0
|
|
1916
1922
|
}, {
|
|
1917
1923
|
default: b(() => [
|
|
@@ -1928,7 +1934,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1928
1934
|
style: { width: "100%" },
|
|
1929
1935
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1930
1936
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1931
|
-
placeholder:
|
|
1937
|
+
placeholder: _.$t("請選擇"),
|
|
1932
1938
|
filterable: n.form.filterable ?? !0
|
|
1933
1939
|
}, {
|
|
1934
1940
|
default: b(() => [
|
|
@@ -1946,7 +1952,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1946
1952
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1947
1953
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1948
1954
|
type: "date",
|
|
1949
|
-
placeholder:
|
|
1955
|
+
placeholder: _.$t("請選擇日期"),
|
|
1950
1956
|
style: { width: "100%" }
|
|
1951
1957
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : n.form.type === "datetime" ? (s(), f(p, {
|
|
1952
1958
|
key: 6,
|
|
@@ -1955,7 +1961,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1955
1961
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1956
1962
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1957
1963
|
type: "datetime",
|
|
1958
|
-
placeholder:
|
|
1964
|
+
placeholder: _.$t("請選擇日期時間"),
|
|
1959
1965
|
style: { width: "100%" }
|
|
1960
1966
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : n.form.type === "daterange" ? (s(), f(p, {
|
|
1961
1967
|
key: 7,
|
|
@@ -1964,9 +1970,9 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1964
1970
|
type: "daterange",
|
|
1965
1971
|
format: "YYYY-MM-DD",
|
|
1966
1972
|
"value-format": "YYYY-MM-DD",
|
|
1967
|
-
"range-separator":
|
|
1968
|
-
"start-placeholder":
|
|
1969
|
-
"end-placeholder":
|
|
1973
|
+
"range-separator": _.$t("至"),
|
|
1974
|
+
"start-placeholder": _.$t("開始日期"),
|
|
1975
|
+
"end-placeholder": _.$t("結束日期"),
|
|
1970
1976
|
style: { width: "100%" }
|
|
1971
1977
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : n.form.type === "timerange" ? (s(), f(p, {
|
|
1972
1978
|
key: 8,
|
|
@@ -1975,9 +1981,9 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1975
1981
|
type: "datetimerange",
|
|
1976
1982
|
format: "YYYY-MM-DD HH:mm",
|
|
1977
1983
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
1978
|
-
"range-separator":
|
|
1979
|
-
"start-placeholder":
|
|
1980
|
-
"end-placeholder":
|
|
1984
|
+
"range-separator": _.$t("至"),
|
|
1985
|
+
"start-placeholder": _.$t("開始時間"),
|
|
1986
|
+
"end-placeholder": _.$t("結束時間"),
|
|
1981
1987
|
style: { width: "100%" }
|
|
1982
1988
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : n.form.type === "image" ? (s(), f(T, {
|
|
1983
1989
|
key: 9,
|
|
@@ -1997,7 +2003,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
1997
2003
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
1998
2004
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
1999
2005
|
type: "password",
|
|
2000
|
-
placeholder:
|
|
2006
|
+
placeholder: _.$t("請輸入")
|
|
2001
2007
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : n.form.type === "checkboxGroup" ? (s(), f(ce, {
|
|
2002
2008
|
key: 12,
|
|
2003
2009
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
@@ -2061,7 +2067,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2061
2067
|
"value-key": n.form.valueKey,
|
|
2062
2068
|
"default-expanded-keys": H(n.form),
|
|
2063
2069
|
filterable: n.form.filterable ?? !0,
|
|
2064
|
-
placeholder:
|
|
2070
|
+
placeholder: _.$t("請選擇"),
|
|
2065
2071
|
"check-strictly": ""
|
|
2066
2072
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "props", "value-key", "default-expanded-keys", "filterable", "placeholder"])) : n.form.type === "radioCommonDict" ? (s(), f(q, {
|
|
2067
2073
|
key: 17,
|
|
@@ -2107,7 +2113,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2107
2113
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
2108
2114
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v
|
|
2109
2115
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
2110
|
-
te("span", Rl, B(
|
|
2116
|
+
te("span", Rl, B(_.$t("需点击选择器中的确定按钮")), 1)
|
|
2111
2117
|
])) : n.form.type === "inputNumber" ? (s(), f(x, {
|
|
2112
2118
|
key: 21,
|
|
2113
2119
|
min: n.form.min || 0,
|
|
@@ -2126,12 +2132,12 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2126
2132
|
ref_for: !0,
|
|
2127
2133
|
ref_key: "translateInputRef",
|
|
2128
2134
|
ref: u,
|
|
2129
|
-
key: o(i)[
|
|
2135
|
+
key: o(i)[_.dataSource.rowKey],
|
|
2130
2136
|
modelValue: o(i)[n.form.prop || n.prop],
|
|
2131
2137
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
2132
2138
|
disabled: n.form.disabled || !1,
|
|
2133
2139
|
type: n.form.type,
|
|
2134
|
-
placeholder:
|
|
2140
|
+
placeholder: _.$t("請輸入"),
|
|
2135
2141
|
rows: n.form.rows || 3,
|
|
2136
2142
|
"show-word-limit": n.form.showWordLimit || !1,
|
|
2137
2143
|
maxlength: n.form.limit || -1
|
|
@@ -2141,7 +2147,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2141
2147
|
"onUpdate:modelValue": (v) => o(i)[n.form.prop || n.prop] = v,
|
|
2142
2148
|
disabled: n.form.disabled || !1,
|
|
2143
2149
|
type: n.form.type,
|
|
2144
|
-
placeholder:
|
|
2150
|
+
placeholder: _.$t("請輸入"),
|
|
2145
2151
|
rows: n.form.rows || 3,
|
|
2146
2152
|
"show-word-limit": n.form.showWordLimit || !1,
|
|
2147
2153
|
maxlength: n.form.limit || -1
|
|
@@ -2211,7 +2217,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2211
2217
|
return u.dataSource.searchActionColSpan;
|
|
2212
2218
|
const p = U.value.length % S.value, A = 24 - (p === 0 ? S.value : p) * M.value;
|
|
2213
2219
|
return A <= 0 ? 24 : A;
|
|
2214
|
-
}), Z = G(() => U.value.length % S.value === 0 ? "15px !important" : "0px !important"), { initSearchDicts: ee } = Ya(), D = O({}), U = O([]),
|
|
2220
|
+
}), Z = G(() => U.value.length % S.value === 0 ? "15px !important" : "0px !important"), { initSearchDicts: ee } = Ya(), D = O({}), U = O([]), _ = () => {
|
|
2215
2221
|
r("actionEvent", { action: "filter" });
|
|
2216
2222
|
}, E = async () => {
|
|
2217
2223
|
try {
|
|
@@ -2254,7 +2260,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2254
2260
|
};
|
|
2255
2261
|
return Qe(() => $()), l({ initData: $, getQueryParams: x }), (p, T) => {
|
|
2256
2262
|
var ge;
|
|
2257
|
-
const A = Sa, K = Va, J = wa, ce = $a, w = We, z =
|
|
2263
|
+
const A = Sa, K = Va, J = wa, ce = $a, w = We, z = _a, q = ka, j = De, ne = va, ue = ba, me = Da, se = Ta("hasPermi");
|
|
2258
2264
|
return o(U).length > 0 && o(P) ? (s(), f(me, {
|
|
2259
2265
|
key: 0,
|
|
2260
2266
|
class: "curd-search-card",
|
|
@@ -2295,7 +2301,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2295
2301
|
"end-placeholder": p.$t("結束日期"),
|
|
2296
2302
|
style: { width: "100%" },
|
|
2297
2303
|
clearable: "",
|
|
2298
|
-
onChange:
|
|
2304
|
+
onChange: _
|
|
2299
2305
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : d.search.type === "timerange" ? (s(), f(A, {
|
|
2300
2306
|
key: 1,
|
|
2301
2307
|
modelValue: o(D)[d.search.prop],
|
|
@@ -2308,7 +2314,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2308
2314
|
"end-placeholder": p.$t("結束時間"),
|
|
2309
2315
|
style: { width: "100%" },
|
|
2310
2316
|
clearable: "",
|
|
2311
|
-
onChange:
|
|
2317
|
+
onChange: _
|
|
2312
2318
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : d.search.type === "selectApi" ? (s(), f(J, {
|
|
2313
2319
|
key: 2,
|
|
2314
2320
|
modelValue: o(D)[d.search.prop],
|
|
@@ -2316,7 +2322,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2316
2322
|
placeholder: p.$t("請選擇"),
|
|
2317
2323
|
style: { width: "100%" },
|
|
2318
2324
|
clearable: "",
|
|
2319
|
-
onChange:
|
|
2325
|
+
onChange: _,
|
|
2320
2326
|
filterable: d.search.filterable ?? !0
|
|
2321
2327
|
}, {
|
|
2322
2328
|
default: b(() => [
|
|
@@ -2334,7 +2340,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2334
2340
|
placeholder: p.$t("請選擇"),
|
|
2335
2341
|
style: { width: "100%" },
|
|
2336
2342
|
clearable: "",
|
|
2337
|
-
onChange:
|
|
2343
|
+
onChange: _,
|
|
2338
2344
|
filterable: d.search.filterable ?? !0
|
|
2339
2345
|
}, {
|
|
2340
2346
|
default: b(() => [
|
|
@@ -2352,7 +2358,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2352
2358
|
placeholder: p.$t("請選擇"),
|
|
2353
2359
|
style: { width: "100%" },
|
|
2354
2360
|
clearable: "",
|
|
2355
|
-
onChange:
|
|
2361
|
+
onChange: _,
|
|
2356
2362
|
filterable: d.search.filterable ?? !0
|
|
2357
2363
|
}, {
|
|
2358
2364
|
default: b(() => [
|
|
@@ -2370,7 +2376,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2370
2376
|
placeholder: p.$t("請選擇"),
|
|
2371
2377
|
style: { width: "100%" },
|
|
2372
2378
|
clearable: "",
|
|
2373
|
-
onChange:
|
|
2379
|
+
onChange: _,
|
|
2374
2380
|
filterable: d.search.filterable ?? !0
|
|
2375
2381
|
}, {
|
|
2376
2382
|
default: b(() => [
|
|
@@ -2393,7 +2399,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2393
2399
|
style: { width: "100%" },
|
|
2394
2400
|
"check-strictly": "",
|
|
2395
2401
|
clearable: "",
|
|
2396
|
-
onChange:
|
|
2402
|
+
onChange: _
|
|
2397
2403
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "props", "value-key", "default-expanded-keys", "placeholder"])) : d.search.type === "number" ? (s(), f(w, {
|
|
2398
2404
|
key: 7,
|
|
2399
2405
|
type: "number",
|
|
@@ -2409,7 +2415,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2409
2415
|
"onUpdate:modelValue": (y) => o(D)[d.search.prop] = y,
|
|
2410
2416
|
style: { width: "100%" },
|
|
2411
2417
|
placeholder: p.$t("請輸入"),
|
|
2412
|
-
onKeyup: la(
|
|
2418
|
+
onKeyup: la(_, ["enter"]),
|
|
2413
2419
|
clearable: ""
|
|
2414
2420
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]))
|
|
2415
2421
|
]),
|
|
@@ -2423,7 +2429,8 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2423
2429
|
var d;
|
|
2424
2430
|
return [
|
|
2425
2431
|
F(j, {
|
|
2426
|
-
onClick:
|
|
2432
|
+
onClick: _,
|
|
2433
|
+
icon: "Search",
|
|
2427
2434
|
plain: ""
|
|
2428
2435
|
}, {
|
|
2429
2436
|
default: b(() => [
|
|
@@ -2433,6 +2440,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2433
2440
|
}),
|
|
2434
2441
|
F(j, {
|
|
2435
2442
|
onClick: W,
|
|
2443
|
+
icon: "Refresh",
|
|
2436
2444
|
plain: ""
|
|
2437
2445
|
}, {
|
|
2438
2446
|
default: b(() => [
|
|
@@ -2540,7 +2548,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2540
2548
|
"end-placeholder": p.$t("結束日期"),
|
|
2541
2549
|
style: { width: "100%" },
|
|
2542
2550
|
clearable: "",
|
|
2543
|
-
onChange:
|
|
2551
|
+
onChange: _
|
|
2544
2552
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : d.search.type === "timerange" ? (s(), f(A, {
|
|
2545
2553
|
key: 1,
|
|
2546
2554
|
modelValue: o(D)[d.search.prop],
|
|
@@ -2553,7 +2561,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2553
2561
|
"end-placeholder": p.$t("結束時間"),
|
|
2554
2562
|
style: { width: "100%" },
|
|
2555
2563
|
clearable: "",
|
|
2556
|
-
onChange:
|
|
2564
|
+
onChange: _
|
|
2557
2565
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : d.search.type === "selectApi" ? (s(), f(J, {
|
|
2558
2566
|
key: 2,
|
|
2559
2567
|
modelValue: o(D)[d.search.prop],
|
|
@@ -2561,7 +2569,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2561
2569
|
placeholder: p.$t("請選擇"),
|
|
2562
2570
|
style: { width: "100%" },
|
|
2563
2571
|
clearable: "",
|
|
2564
|
-
onChange:
|
|
2572
|
+
onChange: _,
|
|
2565
2573
|
filterable: d.search.filterable ?? !0
|
|
2566
2574
|
}, {
|
|
2567
2575
|
default: b(() => [
|
|
@@ -2579,7 +2587,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2579
2587
|
placeholder: p.$t("請選擇"),
|
|
2580
2588
|
style: { width: "100%" },
|
|
2581
2589
|
clearable: "",
|
|
2582
|
-
onChange:
|
|
2590
|
+
onChange: _,
|
|
2583
2591
|
filterable: d.search.filterable ?? !0
|
|
2584
2592
|
}, {
|
|
2585
2593
|
default: b(() => [
|
|
@@ -2597,7 +2605,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2597
2605
|
placeholder: p.$t("請選擇"),
|
|
2598
2606
|
style: { width: "100%" },
|
|
2599
2607
|
clearable: "",
|
|
2600
|
-
onChange:
|
|
2608
|
+
onChange: _,
|
|
2601
2609
|
filterable: d.search.filterable ?? !0
|
|
2602
2610
|
}, {
|
|
2603
2611
|
default: b(() => [
|
|
@@ -2615,7 +2623,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2615
2623
|
placeholder: p.$t("請選擇"),
|
|
2616
2624
|
style: { width: "100%" },
|
|
2617
2625
|
clearable: "",
|
|
2618
|
-
onChange:
|
|
2626
|
+
onChange: _,
|
|
2619
2627
|
filterable: d.search.filterable ?? !0
|
|
2620
2628
|
}, {
|
|
2621
2629
|
default: b(() => [
|
|
@@ -2638,7 +2646,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2638
2646
|
style: { width: "100%" },
|
|
2639
2647
|
"check-strictly": "",
|
|
2640
2648
|
clearable: "",
|
|
2641
|
-
onChange:
|
|
2649
|
+
onChange: _
|
|
2642
2650
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "props", "value-key", "default-expanded-keys", "placeholder"])) : d.search.type === "number" ? (s(), f(w, {
|
|
2643
2651
|
key: 7,
|
|
2644
2652
|
type: "number",
|
|
@@ -2654,7 +2662,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2654
2662
|
"onUpdate:modelValue": (y) => o(D)[d.search.prop] = y,
|
|
2655
2663
|
style: { width: "100%" },
|
|
2656
2664
|
placeholder: p.$t("請輸入"),
|
|
2657
|
-
onKeyup: la(
|
|
2665
|
+
onKeyup: la(_, ["enter"]),
|
|
2658
2666
|
clearable: ""
|
|
2659
2667
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]))
|
|
2660
2668
|
]),
|
|
@@ -2668,8 +2676,9 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2668
2676
|
var d;
|
|
2669
2677
|
return [
|
|
2670
2678
|
F(j, {
|
|
2671
|
-
onClick:
|
|
2679
|
+
onClick: _,
|
|
2672
2680
|
type: "primary",
|
|
2681
|
+
icon: "Search",
|
|
2673
2682
|
plain: ""
|
|
2674
2683
|
}, {
|
|
2675
2684
|
default: b(() => [
|
|
@@ -2680,6 +2689,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2680
2689
|
F(j, {
|
|
2681
2690
|
onClick: W,
|
|
2682
2691
|
type: "warning",
|
|
2692
|
+
icon: "Refresh",
|
|
2683
2693
|
plain: ""
|
|
2684
2694
|
}, {
|
|
2685
2695
|
default: b(() => [
|
|
@@ -2811,7 +2821,7 @@ const Ml = { key: 20 }, Rl = { class: "color-picker-tips" }, jl = /* @__PURE__ *
|
|
|
2811
2821
|
])) : X("", !0);
|
|
2812
2822
|
};
|
|
2813
2823
|
}
|
|
2814
|
-
}), Kl = /* @__PURE__ */ ye(Nl, [["__scopeId", "data-v-
|
|
2824
|
+
}), Kl = /* @__PURE__ */ ye(Nl, [["__scopeId", "data-v-51bb7b43"]]), Ka = {
|
|
2815
2825
|
// ============ 搜索欄 ============
|
|
2816
2826
|
查詢: "查询",
|
|
2817
2827
|
清空: "清空",
|
|
@@ -2973,8 +2983,8 @@ const Ql = { key: 1 }, Gl = /* @__PURE__ */ pe({
|
|
|
2973
2983
|
return (w = R.value) == null ? void 0 : w.initData();
|
|
2974
2984
|
}, U = async (w, z) => {
|
|
2975
2985
|
let q = z;
|
|
2976
|
-
r.dataSource.beforeAction && (q = await r.dataSource.beforeAction(w, z)),
|
|
2977
|
-
},
|
|
2986
|
+
r.dataSource.beforeAction && (q = await r.dataSource.beforeAction(w, z)), _(w, q);
|
|
2987
|
+
}, _ = (w, z) => {
|
|
2978
2988
|
if (typeof w.action == "function") {
|
|
2979
2989
|
w.action(z);
|
|
2980
2990
|
return;
|
|
@@ -3143,7 +3153,7 @@ function Xl(e, l, t) {
|
|
|
3143
3153
|
text: "正在下載數據,請稍後",
|
|
3144
3154
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3145
3155
|
});
|
|
3146
|
-
return
|
|
3156
|
+
return _e().post(e, l, {
|
|
3147
3157
|
transformRequest: [(c) => zl(c)],
|
|
3148
3158
|
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
3149
3159
|
responseType: "blob"
|
|
@@ -3242,13 +3252,13 @@ const Zl = {
|
|
|
3242
3252
|
}
|
|
3243
3253
|
};
|
|
3244
3254
|
function Qa(e) {
|
|
3245
|
-
return
|
|
3255
|
+
return _e()({
|
|
3246
3256
|
url: "/system/dict/data/type/" + e,
|
|
3247
3257
|
method: "get"
|
|
3248
3258
|
});
|
|
3249
3259
|
}
|
|
3250
3260
|
function Ga(e) {
|
|
3251
|
-
return
|
|
3261
|
+
return _e()({
|
|
3252
3262
|
url: "/system/common/dict/data/type/" + e,
|
|
3253
3263
|
method: "get"
|
|
3254
3264
|
});
|
|
@@ -3394,7 +3404,7 @@ export {
|
|
|
3394
3404
|
Xl as download,
|
|
3395
3405
|
Ze as getBaseUrl,
|
|
3396
3406
|
Xe as getGlobalHeaders,
|
|
3397
|
-
|
|
3407
|
+
_e as getRequest,
|
|
3398
3408
|
Fe as hasPermission,
|
|
3399
3409
|
co as install,
|
|
3400
3410
|
no as messages,
|