halo-pc 1.0.38 → 1.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-H_clf90b.js → Article-DZlstqWL.js} +32 -31
- package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-BkduiKh8.js} +4 -3
- package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-0Yf6lJQ7.js} +12 -11
- package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-DMKnFezN.js} +1 -1
- package/dist/Autocomplete-bc-9LfGa.js +50 -0
- package/dist/{CSharp-CZOchOE-.js → CSharp-q8eOBm4y.js} +1 -1
- package/dist/{Calender-BoQV7bhA.js → Calender-CseGNCuW.js} +4 -4
- package/dist/Callback-D_dFJlfv.js +21 -0
- package/dist/{Cascader-DMhl98vw.js → Cascader-BG5ev35M.js} +28 -27
- package/dist/Cascader-Dzeoz7ss.js +47 -0
- package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CsCA6iQb.js} +1 -1
- package/dist/{Checkbox-DtrXMDBR.js → Checkbox-dw8RNAGt.js} +14 -13
- package/dist/{Code-DDacfgvl.js → Code-BE8YLGaE.js} +1 -1
- package/dist/Code-BRe68AIa.js +42 -0
- package/dist/Code-C5QfTMNw.js +60 -0
- package/dist/Code-_XoN6vQE.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +63 -0
- package/dist/Column-C-NHhT2v.js +75 -0
- package/dist/{Comment-Ixu0gPk3.js → Comment-kTmfTlbF.js} +25 -19
- package/dist/{Compare-C1uq4lgK.js → Compare-DVWaiCUC.js} +10 -9
- package/dist/{Compare-NN40QJWm.js → Compare-DlyQBCat.js} +11 -10
- package/dist/{Copy-BcfSvyWG.js → Copy-DQFJy3uX.js} +12 -11
- package/dist/{Custom-Dn9_vPuD.js → Custom-D5HoD0nQ.js} +22 -21
- package/dist/{DataExport-DNGgWqsx.js → DataExport-Um1wXyRe.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js} +25 -24
- package/dist/{DataImport-CI9eM5T1.js → DataImport-CPMLup4P.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js} +40 -39
- package/dist/{Date-CZGbZKjB.js → Date-BhZ8ltgp.js} +9 -8
- package/dist/{Date-CGyzi8yX.js → Date-Cj9lCW_Y.js} +1 -1
- package/dist/{DateRange-MbbkmZ_Y.js → DateRange-Bw_Oyawz.js} +10 -9
- package/dist/{DateTime-DqUOXGWH.js → DateTime-BU6JaBPk.js} +9 -8
- package/dist/{DateTime-DHrHmRLL.js → DateTime-Cv-SRE88.js} +1 -1
- package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-B4Ah6LQY.js} +12 -11
- package/dist/{Daterange-DLHJuRur.js → Daterange-CSZe4XGO.js} +9 -8
- package/dist/{Decimal-BUJuuvfr.js → Decimal-DSDuwW9Z.js} +1 -1
- package/dist/{Delete-BGMk0orl.js → Delete-CjPgg-5G.js} +20 -19
- package/dist/{Detail-D4KzWdHQ.js → Detail-gj--ICe8.js} +8 -7
- package/dist/{Dictionary-Esd3ERAq.js → Dictionary-Ck_02mWa.js} +15 -9
- package/dist/{Email-C9K09hwC.js → Email-BSQbDvh1.js} +12 -11
- package/dist/{File-ai1eYO7v.js → File-FW4usX43.js} +44 -43
- package/dist/{Image-CfY4G1Yn.js → Image-DiAw_6jM.js} +1 -1
- package/dist/Index-B_5hshjJ.js +4 -0
- package/dist/{Index-DYHrSEZ5.js → Index-BibWDRoP.js} +1 -1
- package/dist/Index-BtlD6ocN.js +4 -0
- package/dist/Index-C3f38zw0.js +4 -0
- package/dist/Index-CB_TnEaw.js +4 -0
- package/dist/{Index-B5o7uf36.js → Index-Dq5Vp-ts.js} +16 -15
- package/dist/{Index-S1btGSGD.js → Index-MUgqP8jJ.js} +1 -1
- package/dist/Index-hgTZyQps.js +174 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js → Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js} +20 -14
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js} +7 -6
- package/dist/{Install-D-MgafyF.js → Install-Cpp3BDCS.js} +14 -13
- package/dist/{Int-CnvfCxgn.js → Int-Ck1SvK7R.js} +10 -9
- package/dist/{Int-D3RqVcmN.js → Int-DcQsipaO.js} +14 -13
- package/dist/{List-DA4SO_le.js → List-hWB41wF_.js} +19 -18
- package/dist/Maintaince-l-Tdveur.js +20 -0
- package/dist/{Markdown-hax8By5O.js → Markdown-BEUz4VZ7.js} +1 -1
- package/dist/{Month-BDkwv-vc.js → Month-DJGGGrZr.js} +12 -11
- package/dist/Month-DkafiRHq.js +38 -0
- package/dist/{Month-CnVTSnyK.js → Month-DmUiyF1G.js} +1 -1
- package/dist/{Normal-DoE9t7d7.js → Normal-ACcTHsXb.js} +53 -52
- package/dist/Paging-Vfz2RDBo.js +93 -0
- package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-DDkmqv98.js} +36 -35
- package/dist/{PagingRow-CSB-kwMz.js → PagingRow-B4Nfa2Vk.js} +20 -19
- package/dist/{Racebar-Bc-dDRss.js → Racebar-LfnPLNOY.js} +31 -25
- package/dist/{Radio-CMGOtMnx.js → Radio-DcEZI4m7.js} +1 -1
- package/dist/{Register-8wi0uixs.js → Register-B4x_zgyH.js} +61 -60
- package/dist/RichText-B1Iogpgr.js +47 -0
- package/dist/{SearchFooter-DOC21dmS.js → SearchFooter-CmM8qnxP.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js → SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js} +3 -3
- package/dist/{SearchForm-BMTSPce_.js → SearchForm-DU5QLTbe.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js} +32 -31
- package/dist/{Select-DAxdpZlO.js → Select-C3gUeHmu.js} +16 -15
- package/dist/{Select-MBD4Simw.js → Select-CMxubJIV.js} +1 -1
- package/dist/{Select-DnFyey0n.js → Select-DrDDVJtz.js} +22 -21
- package/dist/{Single-D6x6VV_B.js → Single-De-YyuVk.js} +75 -74
- package/dist/{Statistic-BS_DA72m.js → Statistic-SvjQ7uGI.js} +30 -29
- package/dist/{Stock-CtmevqBK.js → Stock-C2b9p3-N.js} +1 -1
- package/dist/{Stock-CbucObTu.js → Stock-XZkBSQw1.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js} +18 -17
- package/dist/{Switch-BlXAy9qH.js → Switch-PJT-5dDt.js} +1 -1
- package/dist/{Table-Da9gan1Y.js → Table-CkoZ8OjZ.js} +62 -61
- package/dist/{Table-CqsfAMh7.js → Table-Dy1H2IHN.js} +74 -73
- package/dist/Text-Bt5jL_KV.js +49 -0
- package/dist/{Text-CbZlEVTJ.js → Text-CytgR_l_.js} +12 -11
- package/dist/Text-vHouxGHU.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +59 -0
- package/dist/{TextLink-SAnZ7BfX.js → TextLink-DINdFWzs.js} +11 -10
- package/dist/{Textarea-DphCUpXp.js → Textarea-DakZXfN6.js} +1 -1
- package/dist/{Time-DjE8yYdK.js → Time-Bn1Av2wo.js} +11 -10
- package/dist/{Timeline-D11vjkpZ.js → Timeline-B32cUvwI.js} +19 -13
- package/dist/{Tree-kich05vY.js → Tree-BGfHm4k_.js} +80 -79
- package/dist/{Tree-DK73Ou_F.js → Tree-BItAXuSC.js} +41 -35
- package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-DmiM_a2n.js} +11 -10
- package/dist/{Update-D2Plm_AG.js → Update-DSTmaeT8.js} +15 -14
- package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-BgBJJwT3.js} +21 -20
- package/dist/{Upload-B87EDynn.js → Upload-DMqlcxCt.js} +47 -46
- package/dist/Upload-DpQu3z1T.js +71 -0
- package/dist/{Year-C93IJgc8.js → Year-Cv92J5pF.js} +9 -8
- package/dist/{Year-BPFmIiPX.js → Year-DckBNPK_.js} +1 -1
- package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C2HVw1Ra.js +2901 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-KNkwb0pq.js +10515 -0
- package/dist/main.js +46 -45
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Autocomplete-BF9x0F4f.js +0 -49
- package/dist/Callback-79Bw4RwY.js +0 -20
- package/dist/Cascader-D1Ou5OSg.js +0 -41
- package/dist/Code-B8ISTTYK.js +0 -54
- package/dist/Code-BMlBvnqa.js +0 -4
- package/dist/Code-DIGn8Raz.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
- package/dist/Column-DjA11efs.js +0 -69
- package/dist/Index-CH3nwnPZ.js +0 -4
- package/dist/Index-CTjDkp7e.js +0 -4
- package/dist/Index-DSZ8wa7U.js +0 -4
- package/dist/Index-DVdiF3gr.js +0 -4
- package/dist/Index-DsZPtDYE.js +0 -173
- package/dist/Maintaince-BIgEbjrq.js +0 -14
- package/dist/Month-5lTUiWin.js +0 -37
- package/dist/Paging-5qsCTRWy.js +0 -92
- package/dist/RichText-BR4Kvx0J.js +0 -41
- package/dist/Text-C72NLZMt.js +0 -48
- package/dist/Text-CHvsKR9H.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +0 -53
- package/dist/Upload-CHPjMGFZ.js +0 -65
- package/dist/main-nvsTmKXH.js +0 -16321
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as b, toRefs as C, ref as x, resolveComponent as g, openBlock as v, createBlock as y, unref as e, withCtx as o, createVNode as r, createSlots as N, createTextVNode as m, toDisplayString as c, createElementVNode as
|
2
|
-
import {
|
1
|
+
import { defineComponent as b, toRefs as C, ref as x, resolveComponent as g, openBlock as v, createBlock as y, unref as e, withCtx as o, createVNode as r, createSlots as N, createTextVNode as m, toDisplayString as c, createElementVNode as p } from "vue";
|
2
|
+
import { J as V, t as u } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
3
4
|
import "element-plus";
|
4
5
|
import "vue-router";
|
5
6
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const
|
7
|
+
const T = /* @__PURE__ */ b({
|
7
8
|
__name: "Update",
|
8
9
|
props: {
|
9
10
|
table: {},
|
@@ -12,44 +13,44 @@ const R = /* @__PURE__ */ b({
|
|
12
13
|
set: {}
|
13
14
|
},
|
14
15
|
emits: ["submit", "close"],
|
15
|
-
setup(
|
16
|
+
setup(f, { expose: d, emit: _ }) {
|
16
17
|
let n = _;
|
17
|
-
C(
|
18
|
-
let l = x(!1),
|
19
|
-
l.value = !0, n("submit",
|
18
|
+
C(f);
|
19
|
+
let l = x(!1), i = (s) => {
|
20
|
+
l.value = !0, n("submit", s, null, (t) => {
|
20
21
|
l.value = !1;
|
21
22
|
});
|
22
23
|
}, k = () => {
|
23
24
|
n("close");
|
24
25
|
};
|
25
|
-
return d({ submit:
|
26
|
+
return d({ submit: i }), (s, t) => {
|
26
27
|
const a = g("el-button");
|
27
28
|
return v(), y(e(V), { padding: 5 }, {
|
28
29
|
default: o(() => [
|
29
30
|
r(a, {
|
30
31
|
type: "primary",
|
31
32
|
loading: e(l),
|
32
|
-
onClick: e(
|
33
|
+
onClick: e(i)
|
33
34
|
}, N({
|
34
35
|
default: o(() => [
|
35
|
-
m(" " + c(e(
|
36
|
+
m(" " + c(e(u)("common.confirm")), 1)
|
36
37
|
]),
|
37
38
|
_: 2
|
38
39
|
}, [
|
39
40
|
e(l) ? void 0 : {
|
40
41
|
name: "icon",
|
41
42
|
fn: o(() => [
|
42
|
-
t[0] || (t[0] =
|
43
|
+
t[0] || (t[0] = p("i", { class: "fa fa-check" }, null, -1))
|
43
44
|
]),
|
44
45
|
key: "0"
|
45
46
|
}
|
46
47
|
]), 1032, ["loading", "onClick"]),
|
47
48
|
r(a, { onClick: e(k) }, {
|
48
49
|
icon: o(() => t[1] || (t[1] = [
|
49
|
-
|
50
|
+
p("i", { class: "fa fa-chevron-left" }, null, -1)
|
50
51
|
])),
|
51
52
|
default: o(() => [
|
52
|
-
m(" " + c(e(
|
53
|
+
m(" " + c(e(u)("common.back")), 1)
|
53
54
|
]),
|
54
55
|
_: 1
|
55
56
|
}, 8, ["onClick"])
|
@@ -60,5 +61,5 @@ const R = /* @__PURE__ */ b({
|
|
60
61
|
}
|
61
62
|
});
|
62
63
|
export {
|
63
|
-
|
64
|
+
T as default
|
64
65
|
};
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent as v, toRefs as x, resolveComponent as N, unref as e, openBlock as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as v, toRefs as x, resolveComponent as N, unref as e, openBlock as s, createElementBlock as V, Fragment as B, createBlock as m, withCtx as l, createElementVNode as r, createTextVNode as p, toDisplayString as o, createVNode as c, createCommentVNode as h } from "vue";
|
2
|
+
import { t as d } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const T = /* @__PURE__ */ v({
|
4
5
|
__name: "UpdateChild",
|
5
6
|
props: {
|
6
7
|
module: {},
|
@@ -9,20 +10,20 @@ const S = /* @__PURE__ */ v({
|
|
9
10
|
selection: {}
|
10
11
|
},
|
11
12
|
emits: ["add", "insert", "copy", "remove"],
|
12
|
-
setup(
|
13
|
-
let
|
14
|
-
|
13
|
+
setup(u, { emit: f }) {
|
14
|
+
let i = f, y = u, { module: k, table: D, set: E, selection: n } = x(y), C = () => {
|
15
|
+
i("add");
|
15
16
|
}, b = () => {
|
16
|
-
|
17
|
+
i("insert");
|
17
18
|
}, g = () => {
|
18
|
-
|
19
|
+
i("copy");
|
19
20
|
}, _ = () => {
|
20
|
-
|
21
|
+
i("remove");
|
21
22
|
};
|
22
23
|
return (w, t) => {
|
23
|
-
const
|
24
|
-
return e(k).type != "Detail" ? (
|
25
|
-
e(n).length == 0 ? (
|
24
|
+
const a = N("el-button");
|
25
|
+
return e(k).type != "Detail" ? (s(), V(B, { key: 0 }, [
|
26
|
+
e(n).length == 0 ? (s(), m(a, {
|
26
27
|
key: 0,
|
27
28
|
type: "primary",
|
28
29
|
plain: "",
|
@@ -32,10 +33,10 @@ const S = /* @__PURE__ */ v({
|
|
32
33
|
r("i", { class: "fa fa-plus" }, null, -1)
|
33
34
|
])),
|
34
35
|
default: l(() => [
|
35
|
-
|
36
|
+
p(" " + o(e(d)("update.add")), 1)
|
36
37
|
]),
|
37
38
|
_: 1
|
38
|
-
}, 8, ["onClick"])) : (
|
39
|
+
}, 8, ["onClick"])) : (s(), m(a, {
|
39
40
|
key: 1,
|
40
41
|
type: "primary",
|
41
42
|
plain: "",
|
@@ -45,11 +46,11 @@ const S = /* @__PURE__ */ v({
|
|
45
46
|
r("i", { class: "fa fa-share" }, null, -1)
|
46
47
|
])),
|
47
48
|
default: l(() => [
|
48
|
-
|
49
|
+
p(" " + o(e(d)("update.insert")), 1)
|
49
50
|
]),
|
50
51
|
_: 1
|
51
52
|
}, 8, ["onClick"])),
|
52
|
-
c(
|
53
|
+
c(a, {
|
53
54
|
type: "primary",
|
54
55
|
plain: "",
|
55
56
|
disabled: e(n).length == 0,
|
@@ -59,11 +60,11 @@ const S = /* @__PURE__ */ v({
|
|
59
60
|
r("i", { class: "fa fa-copy" }, null, -1)
|
60
61
|
])),
|
61
62
|
default: l(() => [
|
62
|
-
|
63
|
+
p(" " + o(e(d)("common.copy")) + "(" + o(e(n).length) + ") ", 1)
|
63
64
|
]),
|
64
65
|
_: 1
|
65
66
|
}, 8, ["disabled", "onClick"]),
|
66
|
-
c(
|
67
|
+
c(a, {
|
67
68
|
type: "danger",
|
68
69
|
plain: "",
|
69
70
|
disabled: e(n).length == 0,
|
@@ -73,7 +74,7 @@ const S = /* @__PURE__ */ v({
|
|
73
74
|
r("i", { class: "fa fa-trash" }, null, -1)
|
74
75
|
])),
|
75
76
|
default: l(() => [
|
76
|
-
|
77
|
+
p(" " + o(e(d)("common.delete")) + "(" + o(e(n).length) + ") ", 1)
|
77
78
|
]),
|
78
79
|
_: 1
|
79
80
|
}, 8, ["disabled", "onClick"])
|
@@ -82,5 +83,5 @@ const S = /* @__PURE__ */ v({
|
|
82
83
|
}
|
83
84
|
});
|
84
85
|
export {
|
85
|
-
|
86
|
+
T as default
|
86
87
|
};
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as W, toRefs as X, ref as p, onMounted as Y, computed as x, watch as Z, resolveComponent as k, openBlock as
|
2
|
-
import {
|
1
|
+
import { defineComponent as W, toRefs as X, ref as p, onMounted as Y, computed as x, watch as Z, resolveComponent as k, openBlock as R, createElementBlock as N, normalizeClass as ee, unref as t, createVNode as S, withCtx as U, createBlock as le, createTextVNode as ae, toDisplayString as te, isRef as oe, createElementVNode as re } from "vue";
|
2
|
+
import { t as ue, x as I, y as ne, h as F, m as ie, U as i, w as T, z as P, A as z, B as se } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
3
4
|
const de = {
|
4
5
|
key: 0,
|
5
6
|
class: "fa fa-upload"
|
6
|
-
}, pe = ["src"],
|
7
|
+
}, pe = ["src"], he = /* @__PURE__ */ W({
|
7
8
|
__name: "Upload",
|
8
9
|
props: {
|
9
10
|
schema: {},
|
@@ -14,50 +15,50 @@ const de = {
|
|
14
15
|
modelValue: {}
|
15
16
|
},
|
16
17
|
emits: ["submit", "change", "update:modelValue"],
|
17
|
-
setup(
|
18
|
-
let h =
|
18
|
+
setup(C, { emit: O }) {
|
19
|
+
let h = O, $ = C, { table: d, field: u, row: g, set: me, modelValue: E } = X($), m = p(!1), j = p({}), c = p([]), A = p(), H = p(), f = !0, y = p({ action: "", data: null }), L = (e) => {
|
19
20
|
let l = se.getUploadToken();
|
20
21
|
e.forEach((o) => {
|
21
|
-
let a = `${
|
22
|
+
let a = `${P.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
|
22
23
|
c.value.push({ name: o[1], url: a });
|
23
24
|
});
|
24
|
-
},
|
25
|
-
|
25
|
+
}, q = async (e) => {
|
26
|
+
f = !1;
|
26
27
|
let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
|
27
|
-
y.value.action =
|
28
|
+
y.value.action = I.api.url + l;
|
28
29
|
let o = new ne();
|
29
|
-
o.path = l, o.method = "POST", await
|
30
|
+
o.path = l, o.method = "POST", await F.prepareAsync(o);
|
30
31
|
let a = o.getHeader("Authorization");
|
31
32
|
return j.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (ie.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
32
|
-
},
|
33
|
-
|
34
|
-
let a = [e.name.replace(
|
35
|
-
return
|
33
|
+
}, D = (e, l) => {
|
34
|
+
f = !1;
|
35
|
+
let a = [e.name.replace(I.api.url, "")];
|
36
|
+
return F.post("/upload/delete", { files: a }).then(({ data: r }) => {
|
36
37
|
let n = l.indexOf(e), _ = i.array.removeIndex(s.value, n, ",");
|
37
38
|
if (h("update:modelValue", _), u.value.control.name) {
|
38
|
-
let
|
39
|
-
|
39
|
+
let v = d.value.fields.find((w) => w.name == u.value.control.name), b = T.getValue(r.value, n, d.value, v), V = i.array.removeIndex(b, n, ",");
|
40
|
+
T.setValue(V, r.value, d.value, n, v);
|
40
41
|
}
|
41
42
|
return Promise.resolve();
|
42
43
|
}).catch(() => Promise.reject());
|
43
|
-
},
|
44
|
-
m.value = !0,
|
45
|
-
},
|
46
|
-
},
|
47
|
-
|
44
|
+
}, M = (e) => {
|
45
|
+
m.value = !0, A.value = e.url;
|
46
|
+
}, G = (e, l, o) => {
|
47
|
+
}, J = (e, l) => {
|
48
|
+
F.handleResponseBody(e).then((o) => {
|
48
49
|
let { name: a, url: r } = o.data[0];
|
49
|
-
|
50
|
+
P.upload.method == "box" || i.file.isImage(r) || (l.url = z.getFileIcon(r));
|
50
51
|
let _ = i.array.split(s.value, ",", r).join(",");
|
51
52
|
if (s.value = _, u.value.control.name) {
|
52
|
-
let
|
53
|
-
g.value[
|
53
|
+
let v = d.value.fields.find((w) => w.name == u.value.control.name), b = g.value[v.value], V = i.array.split(b, ",", a);
|
54
|
+
g.value[v.value] = V.join(",");
|
54
55
|
}
|
55
56
|
}).catch(() => {
|
56
57
|
c.value = [];
|
57
58
|
}).finally(() => {
|
58
|
-
|
59
|
+
f = !0;
|
59
60
|
});
|
60
|
-
},
|
61
|
+
}, B = () => {
|
61
62
|
if (c.value = [], !s.value)
|
62
63
|
return;
|
63
64
|
let e = i.array.split(s.value, ","), l = [];
|
@@ -66,15 +67,15 @@ const de = {
|
|
66
67
|
l = i.array.split(r, ",");
|
67
68
|
}
|
68
69
|
let o = i.array.combine(e, l);
|
69
|
-
if (
|
70
|
-
|
70
|
+
if (P.upload.method == "box")
|
71
|
+
L(o);
|
71
72
|
else {
|
72
|
-
let a = i.url.httpOrHttps(s.value) ? s.value :
|
73
|
-
i.file.isImage(a) ? r.url = a : r.url =
|
73
|
+
let a = i.url.httpOrHttps(s.value) ? s.value : I.api.url + s.value, r = { name: a, url: null };
|
74
|
+
i.file.isImage(a) ? r.url = a : r.url = z.getFileIcon(a), c.value.push(r);
|
74
75
|
}
|
75
76
|
};
|
76
77
|
Y(() => {
|
77
|
-
|
78
|
+
B();
|
78
79
|
});
|
79
80
|
let s = x({
|
80
81
|
get() {
|
@@ -83,31 +84,31 @@ const de = {
|
|
83
84
|
set(e) {
|
84
85
|
h("update:modelValue", e), h("change", e);
|
85
86
|
}
|
86
|
-
}),
|
87
|
+
}), K = x(() => u.value.control.preview ? "picture-card" : null), Q = x(() => Q);
|
87
88
|
return Z(() => s.value, (e, l) => {
|
88
|
-
|
89
|
+
f && B();
|
89
90
|
}), (e, l) => {
|
90
91
|
const o = k("el-button"), a = k("el-upload"), r = k("el-dialog");
|
91
|
-
return
|
92
|
+
return R(), N("div", {
|
92
93
|
class: ee(t(u).control.preview ? "control-file-preview" : "control-file")
|
93
94
|
}, [
|
94
|
-
|
95
|
+
S(a, {
|
95
96
|
ref_key: "uploadRef",
|
96
|
-
ref:
|
97
|
-
"list-type": t(
|
97
|
+
ref: H,
|
98
|
+
"list-type": t(K),
|
98
99
|
action: t(y).action,
|
99
100
|
headers: t(j),
|
100
101
|
data: t(y).data,
|
101
102
|
"file-list": t(c),
|
102
|
-
"before-upload": t(
|
103
|
-
"before-remove": t(
|
104
|
-
"on-preview": t(
|
105
|
-
"on-success": t(
|
106
|
-
"on-progress": t(
|
103
|
+
"before-upload": t(q),
|
104
|
+
"before-remove": t(D),
|
105
|
+
"on-preview": t(M),
|
106
|
+
"on-success": t(J),
|
107
|
+
"on-progress": t(G),
|
107
108
|
disabled: t(u).readonly
|
108
109
|
}, {
|
109
110
|
default: U(() => [
|
110
|
-
t(u).control.preview ? (
|
111
|
+
t(u).control.preview ? (R(), N("i", de)) : (R(), le(o, {
|
111
112
|
key: 1,
|
112
113
|
icon: "el-icon-upload",
|
113
114
|
type: "primary"
|
@@ -120,7 +121,7 @@ const de = {
|
|
120
121
|
]),
|
121
122
|
_: 1
|
122
123
|
}, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
|
123
|
-
|
124
|
+
S(r, {
|
124
125
|
draggable: "",
|
125
126
|
"append-to-body": "",
|
126
127
|
modelValue: t(m),
|
@@ -129,7 +130,7 @@ const de = {
|
|
129
130
|
default: U(() => [
|
130
131
|
re("img", {
|
131
132
|
width: "100%",
|
132
|
-
src: t(
|
133
|
+
src: t(A),
|
133
134
|
alt: ""
|
134
135
|
}, null, 8, pe)
|
135
136
|
]),
|
@@ -140,5 +141,5 @@ const de = {
|
|
140
141
|
}
|
141
142
|
});
|
142
143
|
export {
|
143
|
-
|
144
|
+
he as default
|
144
145
|
};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { defineComponent as b, toRefs as k, ref as r, onMounted as w, computed as x, resolveComponent as C, openBlock as u, createElementBlock as n, Fragment as B, renderList as E, unref as s, createVNode as F, isRef as R, withCtx as $, createElementVNode as y } from "vue";
|
2
|
+
import { z as c, B as A, U as v, x as I, A as N } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/liquidjs-C2HVw1Ra.js";
|
4
|
+
import "./assets/underscore-B0BCaBxV.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
8
|
+
import "./assets/moment-h96o7c8I.js";
|
9
|
+
const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"], X = /* @__PURE__ */ b({
|
10
|
+
__name: "Upload",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
setup(f) {
|
20
|
+
let g = f, { table: H, field: L, set: M, row: O, modelValue: _ } = k(g), d = r(), t = r(!1), p = r([]), m = r(), h = (e) => {
|
21
|
+
t.value = !0, m.value = e.url;
|
22
|
+
}, U = () => {
|
23
|
+
if (o.value)
|
24
|
+
if (c.upload.method == "box")
|
25
|
+
A.getUploadToken().then((e) => {
|
26
|
+
o.value.split(",").forEach((a) => {
|
27
|
+
let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
28
|
+
p.value.push({ name: a, url: l });
|
29
|
+
});
|
30
|
+
});
|
31
|
+
else {
|
32
|
+
let e = v.url.httpOrHttps(o.value) ? o.value : I.api.url + o.value;
|
33
|
+
v.file.isImage(e) ? d.value = e : d.value = N.getFileIcon(e);
|
34
|
+
}
|
35
|
+
};
|
36
|
+
w(() => {
|
37
|
+
U();
|
38
|
+
});
|
39
|
+
let o = x(() => _.value);
|
40
|
+
return (e, i) => {
|
41
|
+
const a = C("el-dialog");
|
42
|
+
return u(), n("div", S, [
|
43
|
+
(u(!0), n(B, null, E(s(p), (l, V) => (u(), n("img", {
|
44
|
+
class: "detail-image",
|
45
|
+
src: l.url,
|
46
|
+
onClick: (T) => s(h)(l),
|
47
|
+
alt: l.name,
|
48
|
+
key: V
|
49
|
+
}, null, 8, j))), 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) => R(t) ? t.value = l : t = l)
|
56
|
+
}, {
|
57
|
+
default: $(() => [
|
58
|
+
y("img", {
|
59
|
+
width: "100%",
|
60
|
+
src: s(m)
|
61
|
+
}, null, 8, z)
|
62
|
+
]),
|
63
|
+
_: 1
|
64
|
+
}, 8, ["modelValue"])
|
65
|
+
]);
|
66
|
+
};
|
67
|
+
}
|
68
|
+
});
|
69
|
+
export {
|
70
|
+
X as default
|
71
|
+
};
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
|
2
|
+
import { n as k } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const B = /* @__PURE__ */ f({
|
4
5
|
__name: "Year",
|
5
6
|
props: {
|
6
7
|
schema: {},
|
@@ -11,8 +12,8 @@ const x = /* @__PURE__ */ f({
|
|
11
12
|
modelValue: {}
|
12
13
|
},
|
13
14
|
emits: ["submit", "change", "update:modelValue"],
|
14
|
-
setup(
|
15
|
-
let o = d,
|
15
|
+
setup(m, { emit: d }) {
|
16
|
+
let o = d, p = m, { table: u, field: a, row: C, set: y, modelValue: s } = _(p), c = () => {
|
16
17
|
o("submit");
|
17
18
|
}, l = h({
|
18
19
|
get() {
|
@@ -26,16 +27,16 @@ const x = /* @__PURE__ */ f({
|
|
26
27
|
const i = V("el-date-picker");
|
27
28
|
return b(), g(i, {
|
28
29
|
type: "year",
|
29
|
-
placeholder: e(
|
30
|
+
placeholder: e(k)(e(u).name, e(a).name),
|
30
31
|
"value-format": "YYYY",
|
31
32
|
disabled: e(a).control.readonly,
|
32
33
|
onChange: e(c),
|
33
34
|
modelValue: e(l),
|
34
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
35
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => Y(l) ? l.value = r : l = r)
|
35
36
|
}, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
|
36
37
|
};
|
37
38
|
}
|
38
39
|
});
|
39
40
|
export {
|
40
|
-
|
41
|
+
B as default
|
41
42
|
};
|
@@ -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-vHouxGHU.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),
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import { g as $ } from "./clipboard-DjQPoCBJ.js";
|
2
|
+
var A = { exports: {} };
|
3
|
+
(function(d) {
|
4
|
+
var I = function() {
|
5
|
+
function l(n, t) {
|
6
|
+
return t != null && n instanceof t;
|
7
|
+
}
|
8
|
+
var v;
|
9
|
+
try {
|
10
|
+
v = Map;
|
11
|
+
} catch {
|
12
|
+
v = function() {
|
13
|
+
};
|
14
|
+
}
|
15
|
+
var _;
|
16
|
+
try {
|
17
|
+
_ = Set;
|
18
|
+
} catch {
|
19
|
+
_ = function() {
|
20
|
+
};
|
21
|
+
}
|
22
|
+
var y;
|
23
|
+
try {
|
24
|
+
y = Promise;
|
25
|
+
} catch {
|
26
|
+
y = function() {
|
27
|
+
};
|
28
|
+
}
|
29
|
+
function o(n, t, u, x, E) {
|
30
|
+
typeof t == "object" && (u = t.depth, x = t.prototype, E = t.includeNonEnumerable, t = t.circular);
|
31
|
+
var B = [], R = [], U = typeof Buffer < "u";
|
32
|
+
typeof t > "u" && (t = !0), typeof u > "u" && (u = 1 / 0);
|
33
|
+
function r(e, c) {
|
34
|
+
if (e === null)
|
35
|
+
return null;
|
36
|
+
if (c === 0)
|
37
|
+
return e;
|
38
|
+
var f, g;
|
39
|
+
if (typeof e != "object")
|
40
|
+
return e;
|
41
|
+
if (l(e, v))
|
42
|
+
f = new v();
|
43
|
+
else if (l(e, _))
|
44
|
+
f = new _();
|
45
|
+
else if (l(e, y))
|
46
|
+
f = new y(function(a, b) {
|
47
|
+
e.then(function(j) {
|
48
|
+
a(r(j, c - 1));
|
49
|
+
}, function(j) {
|
50
|
+
b(r(j, c - 1));
|
51
|
+
});
|
52
|
+
});
|
53
|
+
else if (o.__isArray(e))
|
54
|
+
f = [];
|
55
|
+
else if (o.__isRegExp(e))
|
56
|
+
f = new RegExp(e.source, h(e)), e.lastIndex && (f.lastIndex = e.lastIndex);
|
57
|
+
else if (o.__isDate(e))
|
58
|
+
f = new Date(e.getTime());
|
59
|
+
else {
|
60
|
+
if (U && Buffer.isBuffer(e))
|
61
|
+
return Buffer.allocUnsafe ? f = Buffer.allocUnsafe(e.length) : f = new Buffer(e.length), e.copy(f), f;
|
62
|
+
l(e, Error) ? f = Object.create(e) : typeof x > "u" ? (g = Object.getPrototypeOf(e), f = Object.create(g)) : (f = Object.create(x), g = x);
|
63
|
+
}
|
64
|
+
if (t) {
|
65
|
+
var S = B.indexOf(e);
|
66
|
+
if (S != -1)
|
67
|
+
return R[S];
|
68
|
+
B.push(e), R.push(f);
|
69
|
+
}
|
70
|
+
l(e, v) && e.forEach(function(a, b) {
|
71
|
+
var j = r(b, c - 1), k = r(a, c - 1);
|
72
|
+
f.set(j, k);
|
73
|
+
}), l(e, _) && e.forEach(function(a) {
|
74
|
+
var b = r(a, c - 1);
|
75
|
+
f.add(b);
|
76
|
+
});
|
77
|
+
for (var i in e) {
|
78
|
+
var D;
|
79
|
+
g && (D = Object.getOwnPropertyDescriptor(g, i)), !(D && D.set == null) && (f[i] = r(e[i], c - 1));
|
80
|
+
}
|
81
|
+
if (Object.getOwnPropertySymbols)
|
82
|
+
for (var m = Object.getOwnPropertySymbols(e), i = 0; i < m.length; i++) {
|
83
|
+
var w = m[i], s = Object.getOwnPropertyDescriptor(e, w);
|
84
|
+
s && !s.enumerable && !E || (f[w] = r(e[w], c - 1), s.enumerable || Object.defineProperty(f, w, {
|
85
|
+
enumerable: !1
|
86
|
+
}));
|
87
|
+
}
|
88
|
+
if (E)
|
89
|
+
for (var C = Object.getOwnPropertyNames(e), i = 0; i < C.length; i++) {
|
90
|
+
var P = C[i], s = Object.getOwnPropertyDescriptor(e, P);
|
91
|
+
s && s.enumerable || (f[P] = r(e[P], c - 1), Object.defineProperty(f, P, {
|
92
|
+
enumerable: !1
|
93
|
+
}));
|
94
|
+
}
|
95
|
+
return f;
|
96
|
+
}
|
97
|
+
return r(n, u);
|
98
|
+
}
|
99
|
+
o.clonePrototype = function(t) {
|
100
|
+
if (t === null)
|
101
|
+
return null;
|
102
|
+
var u = function() {
|
103
|
+
};
|
104
|
+
return u.prototype = t, new u();
|
105
|
+
};
|
106
|
+
function O(n) {
|
107
|
+
return Object.prototype.toString.call(n);
|
108
|
+
}
|
109
|
+
o.__objToStr = O;
|
110
|
+
function F(n) {
|
111
|
+
return typeof n == "object" && O(n) === "[object Date]";
|
112
|
+
}
|
113
|
+
o.__isDate = F;
|
114
|
+
function T(n) {
|
115
|
+
return typeof n == "object" && O(n) === "[object Array]";
|
116
|
+
}
|
117
|
+
o.__isArray = T;
|
118
|
+
function M(n) {
|
119
|
+
return typeof n == "object" && O(n) === "[object RegExp]";
|
120
|
+
}
|
121
|
+
o.__isRegExp = M;
|
122
|
+
function h(n) {
|
123
|
+
var t = "";
|
124
|
+
return n.global && (t += "g"), n.ignoreCase && (t += "i"), n.multiline && (t += "m"), t;
|
125
|
+
}
|
126
|
+
return o.__getRegExpFlags = h, o;
|
127
|
+
}();
|
128
|
+
d.exports && (d.exports = I);
|
129
|
+
})(A);
|
130
|
+
var q = A.exports;
|
131
|
+
const G = /* @__PURE__ */ $(q);
|
132
|
+
export {
|
133
|
+
G as c
|
134
|
+
};
|