halo-pc 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
- package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
- package/dist/Autocomplete-C3d_yunJ.js +52 -0
- package/dist/Autocomplete-H0_xgWsN.js +53 -0
- package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
- package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
- package/dist/Callback-oU2ap8v9.js +24 -0
- package/dist/Cascader-ClSabtOx.js +45 -0
- package/dist/Cascader-DRErYyH6.js +84 -0
- package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
- package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
- package/dist/Code-B2DrYXDa.js +58 -0
- package/dist/Code-BgqGTky1.js +40 -0
- package/dist/Code-Cv1pm18C.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
- package/dist/Column-Dgs0SdWX.js +71 -0
- package/dist/Comment-Cy6lpmqk.js +102 -0
- package/dist/Compare-5cTiHEdo.js +30 -0
- package/dist/Compare-CWeuLw9n.js +60 -0
- package/dist/Copy-C6WEtRhC.js +47 -0
- package/dist/Custom-QDHQJoxC.js +53 -0
- package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
- package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
- package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
- package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
- package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
- package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
- package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
- package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
- package/dist/Delete-B-k4PTWk.js +59 -0
- package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
- package/dist/Dictionary-BUmany6B.js +59 -0
- package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
- package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
- package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
- package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
- package/dist/Index-Cgets8DK.js +4 -0
- package/dist/Index-DGnHsBz4.js +4 -0
- package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
- package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
- package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
- package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
- package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
- package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
- package/dist/List-Om6OdbbR.js +76 -0
- package/dist/Maintaince-CrfEX-5B.js +19 -0
- package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
- package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
- package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
- package/dist/Paging-C_StoYuZ.js +94 -0
- package/dist/QueryApi-BrYyIwqV.js +18 -0
- package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
- package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
- package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
- package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
- package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
- package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
- package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
- package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
- package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
- package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
- package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
- package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
- package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
- package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
- package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
- package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
- package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
- package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
- package/dist/TextLink-C_lFWaZv.js +66 -0
- package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
- package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
- package/dist/Tree-CDD2Nd6q.js +121 -0
- package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
- package/dist/TreeNode-BM8-GyIc.js +38 -0
- package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
- package/dist/Upload-F6HXe76H.js +71 -0
- package/dist/Upload-kwwpaDe6.js +147 -0
- package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
- package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
- package/dist/main-B8RC13GR.js +6528 -0
- package/dist/main.js +113 -113
- package/dist/style.css +1 -1
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
- package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
- package/dist/vendor-clone-BPtCWdXG.js +134 -0
- package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
- package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
- package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
- package/dist/vendor-moment-h96o7c8I.js +2578 -0
- package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
- package/dist/vendor-state-local-CEworIRt.js +131 -0
- package/dist/vendor-underscore-DVTek3G4.js +1070 -0
- package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
- package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
- package/esm/coms/controls/Text.vue.d.ts +1 -1
- package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
- package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
- package/esm/coms/pages/Delete.vue.d.ts +2 -2
- package/esm/coms/pages/Single.vue.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
- package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +2 -2
- package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -2
- package/esm/main.d.ts +4 -3
- package/esm/services/ServiceFactory.d.ts +3 -0
- package/esm/types/PcOptions.d.ts +18 -0
- package/esm/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/Autocomplete-DqKo5NiJ.js +0 -49
- package/dist/Autocomplete-K5ipzchR.js +0 -48
- package/dist/Callback-PyCjejiv.js +0 -20
- package/dist/Cascader-B9lLRKjA.js +0 -80
- package/dist/Cascader-BNvlqc5t.js +0 -41
- package/dist/Code-BdK547kD.js +0 -4
- package/dist/Code-DfFF-84i.js +0 -36
- package/dist/Code-LFQVJotC.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
- package/dist/Column-DVjYrrr7.js +0 -67
- package/dist/Comment-Do7Mjpjr.js +0 -98
- package/dist/Compare-C_iDn27Q.js +0 -56
- package/dist/Compare-CrX3yfD4.js +0 -26
- package/dist/Copy-_sbdQvHJ.js +0 -43
- package/dist/Custom-DarpQFG8.js +0 -49
- package/dist/Delete-BY3vAVWa.js +0 -55
- package/dist/Dictionary-DpQuFYQ5.js +0 -55
- package/dist/Index-B_a_HzsB.js +0 -4
- package/dist/Index-Cx2J_P37.js +0 -4
- package/dist/List-BjdY1rMk.js +0 -72
- package/dist/Maintaince-DzYzyrAc.js +0 -15
- package/dist/Paging-BMPtLi8P.js +0 -90
- package/dist/QueryApi-CbP5cCyH.js +0 -13
- package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
- package/dist/TextLink-BZW-y_FS.js +0 -62
- package/dist/Tree-CLpCeirT.js +0 -117
- package/dist/TreeNode-C16N8jqm.js +0 -34
- package/dist/Upload-DvWyjK3a.js +0 -143
- package/dist/Upload-SEu1V1yX.js +0 -67
- package/dist/main-QtNG6p7a.js +0 -16673
- package/dist/vendor-pinia-yrN6kSxh.js +0 -861
- package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,8 +1,12 @@
|
|
1
|
-
import { defineComponent as k, toRefs as b, ref as C, resolveComponent as h, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as
|
2
|
-
import
|
1
|
+
import { defineComponent as k, toRefs as b, ref as C, resolveComponent as h, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as a, createSlots as y, createTextVNode as c, toDisplayString as r, createElementVNode as m } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { w as x } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
3
7
|
import "vue-router";
|
4
|
-
import "./vendor-intro.js-
|
5
|
-
const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1),
|
8
|
+
import "./vendor-intro.js-CZkClzQO.js";
|
9
|
+
const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1), j = /* @__PURE__ */ k({
|
6
10
|
__name: "Update",
|
7
11
|
props: {
|
8
12
|
table: {},
|
@@ -14,24 +18,24 @@ const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__
|
|
14
18
|
setup(p, { expose: u, emit: f }) {
|
15
19
|
let l = f;
|
16
20
|
b(p);
|
17
|
-
let o = C(!1),
|
21
|
+
let o = C(!1), i = (n) => {
|
18
22
|
o.value = !0, l("submit", n, null, (_) => {
|
19
23
|
o.value = !1;
|
20
24
|
});
|
21
25
|
}, d = () => {
|
22
26
|
l("close");
|
23
27
|
};
|
24
|
-
return u({ submit:
|
25
|
-
const
|
28
|
+
return u({ submit: i }), (n, _) => {
|
29
|
+
const s = h("el-button");
|
26
30
|
return g(), v(e(x), { padding: 5 }, {
|
27
31
|
default: t(() => [
|
28
|
-
|
32
|
+
a(s, {
|
29
33
|
type: "primary",
|
30
34
|
loading: e(o),
|
31
|
-
onClick: e(
|
35
|
+
onClick: e(i)
|
32
36
|
}, y({
|
33
37
|
default: t(() => [
|
34
|
-
|
38
|
+
c(" " + r(n.t("common.confirm")), 1)
|
35
39
|
]),
|
36
40
|
_: 2
|
37
41
|
}, [
|
@@ -43,12 +47,12 @@ const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__
|
|
43
47
|
key: "0"
|
44
48
|
}
|
45
49
|
]), 1032, ["loading", "onClick"]),
|
46
|
-
|
50
|
+
a(s, { onClick: e(d) }, {
|
47
51
|
icon: t(() => [
|
48
52
|
V
|
49
53
|
]),
|
50
54
|
default: t(() => [
|
51
|
-
|
55
|
+
c(" " + r(n.t("common.back")), 1)
|
52
56
|
]),
|
53
57
|
_: 1
|
54
58
|
}, 8, ["onClick"])
|
@@ -59,5 +63,5 @@ const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__
|
|
59
63
|
}
|
60
64
|
});
|
61
65
|
export {
|
62
|
-
|
66
|
+
j as default
|
63
67
|
};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as S, openBlock as n, createElementBlock as u, Fragment as x, renderList as C, unref as s, createVNode as F, isRef as E, withCtx as H, createElementVNode as $ } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { d as y, g as B, f as I, F as N, U as R } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
import "./QueryApi-BrYyIwqV.js";
|
8
|
+
import { U as j } from "./UploadApi-D2W_aGKA.js";
|
9
|
+
const A = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"], Z = /* @__PURE__ */ V({
|
10
|
+
__name: "Upload",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
setup(g) {
|
20
|
+
let v = g, { table: O, field: T, set: q, row: z, modelValue: f } = b(v), d = y(), p = r(), t = r(!1), m = r([]), c = r(), _ = (e) => {
|
21
|
+
t.value = !0, c.value = e.url;
|
22
|
+
}, h = () => {
|
23
|
+
if (o.value)
|
24
|
+
if (d.upload.method == "box")
|
25
|
+
j.getUploadToken().then((e) => {
|
26
|
+
o.value.split(",").forEach((a) => {
|
27
|
+
let l = `${d.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
28
|
+
m.value.push({ name: a, url: l });
|
29
|
+
});
|
30
|
+
});
|
31
|
+
else {
|
32
|
+
let e = B.httpOrHttps(o.value) ? o.value : I.api.url + o.value;
|
33
|
+
N.isImage(e) ? p.value = e : p.value = R.getFileIcon(e);
|
34
|
+
}
|
35
|
+
};
|
36
|
+
k(() => {
|
37
|
+
h();
|
38
|
+
});
|
39
|
+
let o = w(() => f.value);
|
40
|
+
return (e, i) => {
|
41
|
+
const a = S("el-dialog");
|
42
|
+
return n(), u("div", A, [
|
43
|
+
(n(!0), u(x, null, C(s(m), (l, U) => (n(), u("img", {
|
44
|
+
class: "detail-image",
|
45
|
+
src: l.url,
|
46
|
+
onClick: (D) => s(_)(l),
|
47
|
+
alt: l.name,
|
48
|
+
key: U
|
49
|
+
}, null, 8, L))), 128)),
|
50
|
+
F(a, {
|
51
|
+
draggable: "",
|
52
|
+
"append-to-body": "",
|
53
|
+
top: "5vh",
|
54
|
+
modelValue: s(t),
|
55
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => E(t) ? t.value = l : t = l)
|
56
|
+
}, {
|
57
|
+
default: H(() => [
|
58
|
+
$("img", {
|
59
|
+
width: "100%",
|
60
|
+
src: s(c)
|
61
|
+
}, null, 8, M)
|
62
|
+
]),
|
63
|
+
_: 1
|
64
|
+
}, 8, ["modelValue"])
|
65
|
+
]);
|
66
|
+
};
|
67
|
+
}
|
68
|
+
});
|
69
|
+
export {
|
70
|
+
Z as default
|
71
|
+
};
|
@@ -0,0 +1,147 @@
|
|
1
|
+
import { defineComponent as Y, toRefs as Z, ref as p, onMounted as ee, computed as x, watch as le, resolveComponent as S, openBlock as k, createElementBlock as A, normalizeClass as te, unref as t, createVNode as N, withCtx as F, createBlock as ae, createTextVNode as oe, toDisplayString as re, isRef as ue, createElementVNode as ie } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import { d as ne, e as se, f as I, m as de, h as P, A as s, C as B, F as H, U as T, g as pe } from "./main-B8RC13GR.js";
|
5
|
+
import "xlsx-js-style";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
import "./QueryApi-BrYyIwqV.js";
|
8
|
+
import { U as me } from "./UploadApi-D2W_aGKA.js";
|
9
|
+
const ce = {
|
10
|
+
key: 0,
|
11
|
+
class: "fa fa-upload"
|
12
|
+
}, ve = ["src"], xe = /* @__PURE__ */ Y({
|
13
|
+
__name: "Upload",
|
14
|
+
props: {
|
15
|
+
schema: {},
|
16
|
+
table: {},
|
17
|
+
field: {},
|
18
|
+
set: {},
|
19
|
+
row: {},
|
20
|
+
modelValue: {}
|
21
|
+
},
|
22
|
+
emits: ["submit", "change", "update:modelValue"],
|
23
|
+
setup($, { emit: z }) {
|
24
|
+
let g = z, E = $, { table: d, field: r, row: h, set: fe, modelValue: L } = Z(E), b = ne(), O = se(), m = p(!1), C = p({}), c = p([]), R = p(), D = p(), f = !0, _ = p({ action: "", data: null }), M = (e) => {
|
25
|
+
me.getUploadToken().then((l) => {
|
26
|
+
e.forEach((u) => {
|
27
|
+
let a = `${b.upload.address}/api/objects/download?slug=${u[0]}&token=${l}`;
|
28
|
+
c.value.push({ name: u[1], url: a });
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}, q = async (e) => {
|
32
|
+
f = !1;
|
33
|
+
let l = `/upload?table=${d.value.name}&field=${r.value.name}`;
|
34
|
+
return _.value.action = I.api.url + l, C.value.Authorization = await O.getAuthorization(l), r.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (de.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
35
|
+
}, G = (e, l) => {
|
36
|
+
f = !1;
|
37
|
+
let a = [e.name.replace(I.api.url, "")];
|
38
|
+
return P.post("/upload/delete", { files: a }).then(({ data: o }) => {
|
39
|
+
let i = l.indexOf(e), V = s.removeIndex(n.value, i, ",");
|
40
|
+
if (g("update:modelValue", V), r.value.control.name) {
|
41
|
+
let v = d.value.fields.find((U) => U.name == r.value.control.name), y = B.getValue(o.value, i, d.value, v), w = s.removeIndex(y, i, ",");
|
42
|
+
B.setValue(w, o.value, d.value, i, v);
|
43
|
+
}
|
44
|
+
return Promise.resolve();
|
45
|
+
}).catch(() => Promise.reject());
|
46
|
+
}, J = (e) => {
|
47
|
+
m.value = !0, R.value = e.url;
|
48
|
+
}, K = (e, l, u) => {
|
49
|
+
}, Q = (e, l) => {
|
50
|
+
P.handleResponseBody(e).then((u) => {
|
51
|
+
let { name: a, url: o } = u.data[0];
|
52
|
+
b.upload.method == "box" || H.isImage(o) || (l.url = T.getFileIcon(o));
|
53
|
+
let V = s.split(n.value, ",", o).join(",");
|
54
|
+
if (n.value = V, r.value.control.name) {
|
55
|
+
let v = d.value.fields.find((U) => U.name == r.value.control.name), y = h.value[v.value], w = s.split(y, ",", a);
|
56
|
+
h.value[v.value] = w.join(",");
|
57
|
+
}
|
58
|
+
}).catch(() => {
|
59
|
+
c.value = [];
|
60
|
+
}).finally(() => {
|
61
|
+
f = !0;
|
62
|
+
});
|
63
|
+
}, j = () => {
|
64
|
+
if (c.value = [], !n.value)
|
65
|
+
return;
|
66
|
+
let e = s.split(n.value, ","), l = [];
|
67
|
+
if (r.value.control.name) {
|
68
|
+
let a = d.value.fields.find((i) => i.name == r.value.control.name), o = h.value[a.name];
|
69
|
+
l = s.split(o, ",");
|
70
|
+
}
|
71
|
+
let u = s.combine(e, l);
|
72
|
+
if (b.upload.method == "box")
|
73
|
+
M(u);
|
74
|
+
else {
|
75
|
+
let a = pe.httpOrHttps(n.value) ? n.value : I.api.url + n.value, o = { name: a, url: null };
|
76
|
+
H.isImage(a) ? o.url = a : o.url = T.getFileIcon(a), c.value.push(o);
|
77
|
+
}
|
78
|
+
};
|
79
|
+
ee(() => {
|
80
|
+
j();
|
81
|
+
});
|
82
|
+
let n = x({
|
83
|
+
get() {
|
84
|
+
return L.value;
|
85
|
+
},
|
86
|
+
set(e) {
|
87
|
+
g("update:modelValue", e), g("change", e);
|
88
|
+
}
|
89
|
+
}), W = x(() => r.value.control.preview ? "picture-card" : null), X = x(() => X);
|
90
|
+
return le(() => n.value, (e, l) => {
|
91
|
+
f && j();
|
92
|
+
}), (e, l) => {
|
93
|
+
const u = S("el-button"), a = S("el-upload"), o = S("el-dialog");
|
94
|
+
return k(), A("div", {
|
95
|
+
class: te(t(r).control.preview ? "control-file-preview" : "control-file")
|
96
|
+
}, [
|
97
|
+
N(a, {
|
98
|
+
ref_key: "uploadRef",
|
99
|
+
ref: D,
|
100
|
+
"list-type": t(W),
|
101
|
+
action: t(_).action,
|
102
|
+
headers: t(C),
|
103
|
+
data: t(_).data,
|
104
|
+
"file-list": t(c),
|
105
|
+
"before-upload": t(q),
|
106
|
+
"before-remove": t(G),
|
107
|
+
"on-preview": t(J),
|
108
|
+
"on-success": t(Q),
|
109
|
+
"on-progress": t(K),
|
110
|
+
disabled: t(r).readonly
|
111
|
+
}, {
|
112
|
+
default: F(() => [
|
113
|
+
t(r).control.preview ? (k(), A("i", ce)) : (k(), ae(u, {
|
114
|
+
key: 1,
|
115
|
+
icon: "el-icon-upload",
|
116
|
+
type: "primary"
|
117
|
+
}, {
|
118
|
+
default: F(() => [
|
119
|
+
oe(re(e.t("common.click_upload")), 1)
|
120
|
+
]),
|
121
|
+
_: 1
|
122
|
+
}))
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
}, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
|
126
|
+
N(o, {
|
127
|
+
draggable: "",
|
128
|
+
"append-to-body": "",
|
129
|
+
modelValue: t(m),
|
130
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => ue(m) ? m.value = i : m = i)
|
131
|
+
}, {
|
132
|
+
default: F(() => [
|
133
|
+
ie("img", {
|
134
|
+
width: "100%",
|
135
|
+
src: t(R),
|
136
|
+
alt: ""
|
137
|
+
}, null, 8, ve)
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
}, 8, ["modelValue"])
|
141
|
+
], 2);
|
142
|
+
};
|
143
|
+
}
|
144
|
+
});
|
145
|
+
export {
|
146
|
+
xe as default
|
147
|
+
};
|
@@ -1,6 +1,11 @@
|
|
1
|
-
import
|
1
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
2
|
+
import "./vendor-moment-h96o7c8I.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import { h as o, a as t } from "./main-B8RC13GR.js";
|
5
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
6
|
+
import "vue";
|
2
7
|
let e = null;
|
3
|
-
class
|
8
|
+
class u {
|
4
9
|
/**
|
5
10
|
* 获取上传令牌,过期自动获取
|
6
11
|
*/
|
@@ -9,5 +14,5 @@ class i {
|
|
9
14
|
}
|
10
15
|
}
|
11
16
|
export {
|
12
|
-
|
17
|
+
u as U
|
13
18
|
};
|
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = i(() => import("./Text-
|
13
|
+
let r = i(() => import("./Text-BFZc81F2.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
14
|
return (x, t) => (V(), b(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(n),
|