halo-pc 1.0.15 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-BZph3Slr.js +194 -0
- package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BW_G0Irk.js} +17 -24
- package/dist/Autocomplete-CuAwiHhE.js +49 -0
- package/dist/Autocomplete-Dw1r9LjJ.js +48 -0
- package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-qmcT2ECx.js} +1 -1
- package/dist/{CSharp-BGzxI5QJ.js → CSharp-BWYY3ixE.js} +1 -1
- package/dist/{Calender-DkBPl9bM.js → Calender-CGxlpOR0.js} +3 -3
- package/dist/Callback-phrGGQ_Q.js +20 -0
- package/dist/Cascader-CT7ASkSy.js +41 -0
- package/dist/Cascader-CsJ1jVBY.js +81 -0
- package/dist/{Checkbox-CuRjXSPc.js → Checkbox-BOC7ECAx.js} +1 -1
- package/dist/Checkbox-BePH3x-V.js +70 -0
- package/dist/Code-CE-Fe7WB.js +36 -0
- package/dist/{Code-BlwPnx9J.js → Code-CWxVzJHq.js} +1 -1
- package/dist/Code-CqLG9fEE.js +54 -0
- package/dist/Code-TBB9w4CV.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-oiyt3bsp.js +59 -0
- package/dist/Column-Ctyq9hqP.js +68 -0
- package/dist/Comment-RyVJJjTd.js +98 -0
- package/dist/Compare-DEccApnU.js +56 -0
- package/dist/Compare-ZBeSkf8f.js +26 -0
- package/dist/Copy-CNJ1TZJl.js +43 -0
- package/dist/Custom-DHvr_EJi.js +51 -0
- package/dist/{DataExport-C0jItlVY.js → DataExport-39v2Wzii.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-Bmm7IDoz.js} +34 -40
- package/dist/{DataImport-BfBkneEy.js → DataImport-C1O_zTRs.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CGKObmMj.js} +54 -59
- package/dist/{Date-B8b9JXpP.js → Date-BAk-TE4a.js} +1 -1
- package/dist/Date-CsIPLFzI.js +37 -0
- package/dist/DateRange-BXSMqDJ0.js +57 -0
- package/dist/DateTime-2RoBkqWb.js +38 -0
- package/dist/{DateTime-DjhuyxFC.js → DateTime-DSiPx95t.js} +1 -1
- package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-l6kVSbZe.js} +13 -20
- package/dist/Daterange-DRq9WIRI.js +57 -0
- package/dist/{Decimal-DqMMTfvl.js → Decimal-DGia5Sy8.js} +1 -1
- package/dist/Delete-B7X35s7r.js +56 -0
- package/dist/{Detail-C-OFWPso.js → Detail-wJXhceca.js} +16 -23
- package/dist/Dictionary-CUFHT-1d.js +55 -0
- package/dist/Email-BqiiArN8.js +48 -0
- package/dist/{File-C2fLmTcj.js → File-DngRHLmK.js} +40 -47
- package/dist/Image-D3FNAo-5.js +9 -0
- package/dist/Index-B3hh_9-f.js +4 -0
- package/dist/{Index-D7DerkIw.js → Index-B4bG41Qh.js} +1 -1
- package/dist/Index-BJ4rN3ua.js +4 -0
- package/dist/Index-C3EFws1o.js +4 -0
- package/dist/Index-ChQl4mWS.js +70 -0
- package/dist/{Index-B90giDWQ.js → Index-D6WfgZso.js} +1 -1
- package/dist/Index-Dec7ANPo.js +173 -0
- package/dist/{Index-CQURvmzd.js → Index-yxohMYWu.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-BzE42p5R.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-CCvdKImo.js} +14 -21
- package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js} +30 -36
- package/dist/{Install-Cqj44p9F.js → Install-DvLkDt-G.js} +20 -27
- package/dist/{Int-Bj3Gagp5.js → Int-CTZDyiRf.js} +9 -16
- package/dist/Int-DUxDmxeN.js +41 -0
- package/dist/List-DhQAnj6h.js +73 -0
- package/dist/Maintaince-DlOgC995.js +14 -0
- package/dist/{Markdown-COY9enBf.js → Markdown-BBZs8Oeu.js} +1 -1
- package/dist/Month-BOpeFNyJ.js +37 -0
- package/dist/Month-CGeJVL3p.js +38 -0
- package/dist/{Month-B7jIGlKI.js → Month-UvBNgDPi.js} +1 -1
- package/dist/{Normal-B8YL2DeI.js → Normal-AYl3k_ON.js} +43 -49
- package/dist/Paging-B45u8Pwz.js +94 -0
- package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-BKtQX0FN.js} +37 -44
- package/dist/{PagingRow-CHDlm8UI.js → PagingRow-C1sBqbWn.js} +21 -28
- package/dist/QueryApi-DwKYCq-u.js +13 -0
- package/dist/{Racebar-ClsuYbRj.js → Racebar-DEHtOLFI.js} +43 -49
- package/dist/{Radio-C6j5nvI9.js → Radio-i6CjikAh.js} +1 -1
- package/dist/{Register-BnwfjjXP.js → Register-SHm6xbyk.js} +74 -80
- package/dist/RichText-Bxc-XIY-.js +41 -0
- package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-Co8AjPaU.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CL0CnYJg.js} +1 -1
- package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CMiBnK26.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-OBkIrjUP.js} +34 -40
- package/dist/{Select-BiFIpc5-.js → Select-B-gNnoDq.js} +1 -1
- package/dist/Select-DuecGTXX.js +111 -0
- package/dist/{Select-Z8b2t5QQ.js → Select-t1xYHXcV.js} +19 -26
- package/dist/{Single-DdcVVH9V.js → Single-Da4zGSt4.js} +116 -122
- package/dist/{Statistic-B7niMPBf.js → Statistic-MUCQAxl_.js} +25 -31
- package/dist/{Stock-CRsu1vcy.js → Stock-C0gpktjX.js} +1 -1
- package/dist/{Stock-xm8v4vDf.js → Stock-CFVyfAIN.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-B-uQM5GU.js} +26 -32
- package/dist/{Switch-BaER4xWy.js → Switch-CT0S6MHJ.js} +1 -1
- package/dist/{Table-C2dYPoGi.js → Table-CU6q8l3a.js} +54 -61
- package/dist/{Table-a5uj25Nj.js → Table-NC8CrrxW.js} +63 -68
- package/dist/Text-Bx4cfjya.js +52 -0
- package/dist/{Text-CMEzogZ8.js → Text-ChJQSLGE.js} +1 -1
- package/dist/Text-ChdZDU0g.js +53 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BZNDg39p.js +53 -0
- package/dist/TextLink-DIHx9sjo.js +59 -0
- package/dist/{Textarea-DAICkidp.js → Textarea-CRi6hLdT.js} +1 -1
- package/dist/Time-Cn6eQVUQ.js +37 -0
- package/dist/Timeline-DpEcUmkJ.js +53 -0
- package/dist/{Tree-BwQkDP2T.js → Tree-B0Rqvp37.js} +73 -79
- package/dist/Tree-nr0ZIvCA.js +117 -0
- package/dist/TreeNode-e51TMrSj.js +37 -0
- package/dist/{Update-BZe92EwV.js → Update-QF8Zkcdq.js} +13 -20
- package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-DouQaV7E.js} +19 -26
- package/dist/Upload-0ba29Dyr.js +67 -0
- package/dist/Upload-BXj28BSA.js +146 -0
- package/dist/UploadApi-Boq1A5E-.js +13 -0
- package/dist/Year-DuBH5ghc.js +41 -0
- package/dist/{Year-2tcz8PDF.js → Year-x4NXoaB_.js} +1 -1
- package/dist/main-RFuk2-Bk.js +19837 -0
- package/dist/main.js +54 -56
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/Article-BH4dl6Bf.js +0 -201
- package/dist/Autocomplete-DYxWYClO.js +0 -55
- package/dist/Autocomplete-SOenNkH4.js +0 -54
- package/dist/Callback-B57W83N1.js +0 -27
- package/dist/Cascader-BI6T7N-q.js +0 -88
- package/dist/Cascader-BoN_F8v4.js +0 -48
- package/dist/Checkbox-DdolP6wO.js +0 -77
- package/dist/Code--y8oCkjX.js +0 -43
- package/dist/Code-C48Gf7gU.js +0 -61
- package/dist/Code-DiOQvIZv.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
- package/dist/Column-BNGw36Iq.js +0 -75
- package/dist/Comment-D37SdQb6.js +0 -105
- package/dist/Compare-C09T8aaU.js +0 -33
- package/dist/Compare-CnnCTG12.js +0 -63
- package/dist/Copy-DNrXXJRQ.js +0 -50
- package/dist/Custom--I04Jyzr.js +0 -58
- package/dist/Date-TKW4HbCJ.js +0 -44
- package/dist/DateRange-JCP1Eokf.js +0 -64
- package/dist/DateTime-DVOVXS_f.js +0 -45
- package/dist/Daterange-CqHXC9JN.js +0 -64
- package/dist/Delete-PcTE_3Cp.js +0 -63
- package/dist/Dictionary-Cfhmc2OQ.js +0 -60
- package/dist/Email-Rj-ZvdfJ.js +0 -55
- package/dist/Image-zgBgvAup.js +0 -9
- package/dist/Index-9fyKz8TT.js +0 -4
- package/dist/Index-CAlWNb2l.js +0 -179
- package/dist/Index-CjFLlnmH.js +0 -4
- package/dist/Index-Cr2WAY6Z.js +0 -76
- package/dist/Index-Izl4chSJ.js +0 -4
- package/dist/Int-dlbcQ6_t.js +0 -47
- package/dist/List-BsAOvgmQ.js +0 -80
- package/dist/Maintaince-DjSvIfbu.js +0 -21
- package/dist/Month-BhNUuzcc.js +0 -44
- package/dist/Month-KDuTRSA0.js +0 -45
- package/dist/Paging-BlFnu-w0.js +0 -100
- package/dist/QueryApi-Bc_kmvgs.js +0 -21
- package/dist/RichText-BImFNkHQ.js +0 -48
- package/dist/Select-f15Y0Ko-.js +0 -118
- package/dist/Text-CqKE2xDo.js +0 -59
- package/dist/Text-DfqLW_KH.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
- package/dist/TextLink-XJurKE8Q.js +0 -66
- package/dist/Time-BmdIHgOY.js +0 -44
- package/dist/Timeline-BOPAiaK-.js +0 -60
- package/dist/Tree-BR8gmBBa.js +0 -123
- package/dist/TreeNode-CdBVgaRW.js +0 -43
- package/dist/Upload-BtErvzEO.js +0 -151
- package/dist/Upload-vPTA8ndw.js +0 -73
- package/dist/UploadApi-CpwS4Kf1.js +0 -21
- package/dist/Year-CVqwpSLR.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,20 +1,14 @@
|
|
1
|
-
import { defineComponent as xe, toRefs as
|
2
|
-
import {
|
3
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
5
|
-
import "./assets/clone-BZn0cTAu.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
1
|
+
import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as L, watch as Ne, resolveComponent as D, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Re, withDirectives as Se, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as k, vShow as De, nextTick as j } from "vue";
|
2
|
+
import { l as A, c as Ie, g as F, n as Te, m as Ue, x as Ve, a as M, U as p, _ as G, v as Le, R as H, L as J, i as Q, W as qe, A as Be } from "./main-RFuk2-Bk.js";
|
9
3
|
import "vue-router";
|
10
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
11
|
-
const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1),
|
5
|
+
const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Oe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Pe = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), We = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), je = {
|
12
6
|
key: 2,
|
13
7
|
class: "ha-empty"
|
14
|
-
},
|
8
|
+
}, Ae = {
|
15
9
|
key: 3,
|
16
10
|
class: "tree-add"
|
17
|
-
},
|
11
|
+
}, Fe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Xe = /* @__PURE__ */ xe({
|
18
12
|
__name: "Tree",
|
19
13
|
props: {
|
20
14
|
searchData: {},
|
@@ -28,7 +22,7 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
28
22
|
},
|
29
23
|
emits: ["refresh", "succeed", "search", "navigate"],
|
30
24
|
setup(X, { expose: Y, emit: Z }) {
|
31
|
-
let
|
25
|
+
let b = Z, ee = X, { route: N, module: q, schema: le, table: m, layout: r, next: y, set: Me, searchData: te } = ge(ee), K = v(), B = v(), x = v(), R = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), S = v(), I = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), z = () => {
|
32
26
|
if (!K.value)
|
33
27
|
return;
|
34
28
|
let l = K.value.$el.querySelector(".is-context");
|
@@ -38,38 +32,38 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
38
32
|
}, $ = (l) => {
|
39
33
|
let t = r.value.parentId, o = { [t]: null };
|
40
34
|
l == "sibling" ? o[t] = a.value.currentNode[t] : l == "child" && (o[t] = a.value.currentNode[r.value.id]);
|
41
|
-
let n =
|
35
|
+
let n = A.encode(o), u = `${y.value.insert.route}?default=${n}`;
|
42
36
|
l == "copy" && (u += "&id=" + a.value.currentNode[r.value.id]), d.value.url = u, d.value.visible = !0;
|
43
|
-
},
|
37
|
+
}, O = () => {
|
44
38
|
let l = a.value.currentNode[r.value.id], t = a.value.currentNode[r.value.text], o = p("common.confirm_delete", t);
|
45
|
-
|
39
|
+
Le.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
|
46
40
|
oe(l);
|
47
41
|
});
|
48
42
|
}, oe = (l) => {
|
49
|
-
let t = r.value.id, o = r.value.data, n =
|
50
|
-
|
51
|
-
|
43
|
+
let t = r.value.id, o = r.value.data, n = H.getNextById(l, t, o, "Children");
|
44
|
+
J.post(y.value.delete.route, [l]).then(() => {
|
45
|
+
H.removeById(l, t, o, "Children");
|
52
46
|
let u = null;
|
53
|
-
n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)),
|
54
|
-
|
47
|
+
n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), b("succeed", () => {
|
48
|
+
T(a.value.scrollTop);
|
55
49
|
});
|
56
50
|
});
|
57
51
|
}, ne = (l) => {
|
58
52
|
a.value.scrollTop = l.scrollTop;
|
59
|
-
},
|
60
|
-
a.value.visible = !1,
|
61
|
-
a.value.visible = !0,
|
53
|
+
}, T = (l = null, t = null) => {
|
54
|
+
a.value.visible = !1, j(() => {
|
55
|
+
a.value.visible = !0, j(() => {
|
62
56
|
if (l == null) {
|
63
57
|
let o = K.value.$el.querySelector(".el-tree-node.is-current");
|
64
58
|
o && o.scrollIntoView({ block: "center", behavior: "smooth" });
|
65
59
|
} else
|
66
|
-
|
60
|
+
R.value.setScrollTop(l);
|
67
61
|
t && t();
|
68
62
|
});
|
69
63
|
});
|
70
64
|
}, ue = () => {
|
71
|
-
d.value.visible = !1,
|
72
|
-
|
65
|
+
d.value.visible = !1, b("succeed", () => {
|
66
|
+
T(a.value.scrollTop);
|
73
67
|
});
|
74
68
|
}, se = (l) => {
|
75
69
|
d.value.type = l.module.type, d.value.name = l.module.name;
|
@@ -78,15 +72,15 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
78
72
|
}, ie = (l, t, o) => {
|
79
73
|
z();
|
80
74
|
let n = l[r.value.id];
|
81
|
-
if (
|
75
|
+
if (Q.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
|
82
76
|
x.value.refresh();
|
83
77
|
else {
|
84
|
-
a.value.currentKey = n,
|
85
|
-
let u =
|
86
|
-
|
78
|
+
a.value.currentKey = n, S.value = U();
|
79
|
+
let u = qe.getUrl(N.value.fullPath, { id: n });
|
80
|
+
b("navigate", u);
|
87
81
|
}
|
88
82
|
}, ce = (l, t, o) => {
|
89
|
-
|
83
|
+
Q.remove(a.value.expandedKeys, l[r.value.id]);
|
90
84
|
}, ve = (l, t, o, n) => {
|
91
85
|
let u = {
|
92
86
|
table: r.value.table,
|
@@ -94,45 +88,45 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
94
88
|
targetId: t.data[r.value.id],
|
95
89
|
position: o
|
96
90
|
};
|
97
|
-
|
91
|
+
J.post(r.value.operation.route, u).then((W) => {
|
98
92
|
});
|
99
93
|
}, fe = (l) => {
|
100
|
-
|
94
|
+
b("search", l);
|
101
95
|
}, me = (l) => {
|
102
96
|
}, pe = (l, t) => l ? t[m.value.text].indexOf(l) !== -1 : !0, ye = () => {
|
103
|
-
|
97
|
+
b("refresh");
|
104
98
|
}, he = (l, t) => {
|
105
99
|
if (!x.value || !x.value.keyboard)
|
106
100
|
return !1;
|
107
101
|
x.value.keyboard(l, t);
|
108
102
|
}, _e = () => {
|
109
|
-
|
110
|
-
},
|
103
|
+
R.value.update();
|
104
|
+
}, U = () => {
|
111
105
|
let l = y.value[r.value.page.toLowerCase()].route;
|
112
106
|
return a.value.currentKey && (l += "?id=" + a.value.currentKey), l;
|
113
|
-
},
|
107
|
+
}, ke = () => {
|
114
108
|
let l = N.value.query.id, t;
|
115
|
-
l == null ? t = r.value.updateKey : t =
|
116
|
-
I = new Be(B.value, [
|
109
|
+
l == null ? t = r.value.updateKey : t = F.convert(l, P.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], S.value = U()), T(null, () => {
|
110
|
+
I = new Be(B.value, [R.value.$el, E.value]);
|
117
111
|
});
|
118
112
|
};
|
119
|
-
|
120
|
-
|
113
|
+
Ce(() => {
|
114
|
+
ke();
|
121
115
|
}), we(() => {
|
122
116
|
I.dispose();
|
123
|
-
}),
|
117
|
+
}), L(() => {
|
124
118
|
let l = { [r.value.parentId]: N.value.query.id };
|
125
|
-
return
|
119
|
+
return A.encode(l);
|
126
120
|
});
|
127
|
-
let
|
121
|
+
let be = L(() => {
|
128
122
|
let l = `/${m.value.name}/tree-node`;
|
129
123
|
return Ie.getComponent(l, "partial", "tree-node");
|
130
|
-
}),
|
124
|
+
}), P = L(() => m.value.fields.find((t) => t.name == r.value.id));
|
131
125
|
return Ne(() => N.value, (l, t) => {
|
132
|
-
a.value.currentKey =
|
126
|
+
a.value.currentKey = F.convert(l.query.id, P.value.type), S.value = U();
|
133
127
|
}), Y({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
|
134
|
-
const o =
|
135
|
-
return i(),
|
128
|
+
const o = D("el-scrollbar"), n = D("el-tree"), u = D("el-button"), W = D("el-drawer");
|
129
|
+
return i(), g(e(Te), {
|
136
130
|
class: "tree",
|
137
131
|
width: e(a).width,
|
138
132
|
onResize: t[5] || (t[5] = (s) => e(a).width = s)
|
@@ -147,11 +141,11 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
147
141
|
}, [
|
148
142
|
_(o, null, {
|
149
143
|
default: f(() => [
|
150
|
-
(i(!0), h(Ke, null,
|
144
|
+
(i(!0), h(Ke, null, Re(e(m).search, (s, V) => (i(), h("div", {
|
151
145
|
class: "search-field",
|
152
146
|
key: V
|
153
147
|
}, [
|
154
|
-
_(e(
|
148
|
+
_(e(Ue), {
|
155
149
|
schema: e(le),
|
156
150
|
table: e(m),
|
157
151
|
field: s,
|
@@ -163,18 +157,18 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
163
157
|
]),
|
164
158
|
_: 1
|
165
159
|
})
|
166
|
-
], 512)) : (i(),
|
160
|
+
], 512)) : (i(), g(e(Ve), {
|
167
161
|
key: 1,
|
168
|
-
title: e(
|
162
|
+
title: e(M)(e(q).type, e(q).name)
|
169
163
|
}, null, 8, ["title"])),
|
170
|
-
|
164
|
+
Se(_(o, {
|
171
165
|
ref_key: "scrollbarRef",
|
172
|
-
ref:
|
166
|
+
ref: R,
|
173
167
|
class: "tree-content",
|
174
168
|
onScroll: e(ne)
|
175
169
|
}, {
|
176
170
|
default: f(() => [
|
177
|
-
e(a).visible ? (i(),
|
171
|
+
e(a).visible ? (i(), g(n, {
|
178
172
|
key: 0,
|
179
173
|
ref_key: "treeRef",
|
180
174
|
ref: K,
|
@@ -194,7 +188,7 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
194
188
|
onNodeDrop: e(ve)
|
195
189
|
}, {
|
196
190
|
default: f(({ node: s, data: V }) => [
|
197
|
-
(i(),
|
191
|
+
(i(), g($e(e(be)), {
|
198
192
|
table: e(m),
|
199
193
|
layout: e(r),
|
200
194
|
row: V,
|
@@ -202,7 +196,7 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
202
196
|
}, null, 8, ["table", "layout", "row", "node"]))
|
203
197
|
]),
|
204
198
|
_: 1
|
205
|
-
}, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) :
|
199
|
+
}, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : C("", !0),
|
206
200
|
c("ul", {
|
207
201
|
ref_key: "menuRef",
|
208
202
|
ref: B,
|
@@ -212,49 +206,49 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
212
206
|
onClick: t[0] || (t[0] = (s) => e($)("child"))
|
213
207
|
}, [
|
214
208
|
ze,
|
215
|
-
w(
|
209
|
+
w(k(e(p)("tree.add_sub_item")), 1)
|
216
210
|
]),
|
217
211
|
c("li", {
|
218
212
|
onClick: t[1] || (t[1] = (s) => e($)("sibling"))
|
219
213
|
}, [
|
220
|
-
|
221
|
-
w(
|
214
|
+
Oe,
|
215
|
+
w(k(e(p)("tree.add_same_grade")), 1)
|
222
216
|
]),
|
223
217
|
c("li", {
|
224
218
|
onClick: t[2] || (t[2] = (s) => e($)("copy"))
|
225
219
|
}, [
|
226
|
-
|
227
|
-
w(
|
220
|
+
Pe,
|
221
|
+
w(k(e(p)("common.copy")), 1)
|
228
222
|
]),
|
229
223
|
e(y).delete ? (i(), h("li", {
|
230
224
|
key: 0,
|
231
225
|
onClick: t[3] || (t[3] = //@ts-ignore
|
232
|
-
(...s) => e(
|
226
|
+
(...s) => e(O) && e(O)(...s))
|
233
227
|
}, [
|
234
|
-
|
235
|
-
w(
|
236
|
-
])) :
|
228
|
+
We,
|
229
|
+
w(k(e(p)("common.delete")), 1)
|
230
|
+
])) : C("", !0)
|
237
231
|
], 512)
|
238
232
|
]),
|
239
233
|
_: 1
|
240
234
|
}, 8, ["onScroll"]), [
|
241
|
-
[
|
235
|
+
[De, e(r).data.length]
|
242
236
|
]),
|
243
|
-
e(r).data.length ?
|
244
|
-
!e(r).data.length && e(y).insert ? (i(), h("div",
|
237
|
+
e(r).data.length ? C("", !0) : (i(), h("div", je, k(e(p)("common.no_data")), 1)),
|
238
|
+
!e(r).data.length && e(y).insert ? (i(), h("div", Ae, [
|
245
239
|
_(u, {
|
246
240
|
type: "primary",
|
247
241
|
onClick: e($)
|
248
242
|
}, {
|
249
243
|
icon: f(() => [
|
250
|
-
|
244
|
+
Fe
|
251
245
|
]),
|
252
246
|
default: f(() => [
|
253
|
-
w(" " +
|
247
|
+
w(" " + k(e(y).insert.title), 1)
|
254
248
|
]),
|
255
249
|
_: 1
|
256
250
|
}, 8, ["onClick"])
|
257
|
-
])) :
|
251
|
+
])) : C("", !0)
|
258
252
|
])
|
259
253
|
]),
|
260
254
|
default: f(() => [
|
@@ -263,22 +257,22 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
263
257
|
ref: E,
|
264
258
|
class: "tree-detail"
|
265
259
|
}, [
|
266
|
-
e(a).currentKey ? (i(),
|
260
|
+
e(a).currentKey ? (i(), g(e(G), {
|
267
261
|
key: 0,
|
268
262
|
ref_key: "singleRef",
|
269
263
|
ref: x,
|
270
|
-
url: e(
|
271
|
-
}, null, 8, ["url"])) :
|
264
|
+
url: e(S)
|
265
|
+
}, null, 8, ["url"])) : C("", !0)
|
272
266
|
], 512),
|
273
|
-
_(
|
267
|
+
_(W, {
|
274
268
|
size: "60%",
|
275
269
|
"destroy-on-close": "",
|
276
|
-
title: e(
|
270
|
+
title: e(M)(e(d).type, e(d).name),
|
277
271
|
modelValue: e(d).visible,
|
278
272
|
"onUpdate:modelValue": t[4] || (t[4] = (s) => e(d).visible = s)
|
279
273
|
}, {
|
280
274
|
default: f(() => [
|
281
|
-
_(e(
|
275
|
+
_(e(G), {
|
282
276
|
url: e(d).url,
|
283
277
|
onLoaded: e(se),
|
284
278
|
onSucceed: e(ue),
|
@@ -294,5 +288,5 @@ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
294
288
|
}
|
295
289
|
});
|
296
290
|
export {
|
297
|
-
|
291
|
+
Xe as default
|
298
292
|
};
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as K, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as T, createCommentVNode as F } from "vue";
|
2
|
+
import { N as le, i as _, R as P, s as S } from "./main-RFuk2-Bk.js";
|
3
|
+
const te = { class: "option-text" }, ae = {
|
4
|
+
key: 0,
|
5
|
+
class: "option-suffix"
|
6
|
+
}, de = /* @__PURE__ */ Q({
|
7
|
+
__name: "Tree",
|
8
|
+
props: {
|
9
|
+
route: {},
|
10
|
+
validateErrors: {},
|
11
|
+
module: {},
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
layout: {},
|
15
|
+
next: {},
|
16
|
+
set: {}
|
17
|
+
},
|
18
|
+
setup($, { expose: z }) {
|
19
|
+
let D = $, { module: W, schema: ne, table: u, layout: l, set: f } = U(D), E = m(), V = m([]), x = m(), y = m(0), g = m([]), R = m(!0), j = (e, n, o) => {
|
20
|
+
let a = f.value[u.value.name].find((r) => r.PermissionId == e[l.value.id]);
|
21
|
+
a && (a[l.value.expand] = !0);
|
22
|
+
}, q = (e, n, o) => {
|
23
|
+
let a = f.value[u.value.name].find((r) => r.PermissionId == e[l.value.id]);
|
24
|
+
a && (a[l.value.expand] = !1);
|
25
|
+
}, A = (e, n, o) => {
|
26
|
+
let a = n.checkedKeys, r = e[l.value.id], i = _.contains(a, r), c = [], s = [], h = P.getChildren(e, "Children").map((t) => t[l.value.id]), p = f.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, p);
|
27
|
+
if (i) {
|
28
|
+
c.push(e[l.value.id]);
|
29
|
+
let t = _.except(h, v);
|
30
|
+
t.length && (a.push(...t), c.push(...t));
|
31
|
+
} else
|
32
|
+
s.push(r), v.length == h.length && (s.push(...h), _.remove(a, h));
|
33
|
+
c.length && G(c), s.length && H(s);
|
34
|
+
}, G = (e) => {
|
35
|
+
for (let n = 0; n < e.length; n++) {
|
36
|
+
let o = S.getDefaultRow(u.value);
|
37
|
+
o[l.value.checked] = e[n], f.value[u.value.name].push(o);
|
38
|
+
}
|
39
|
+
}, H = (e) => {
|
40
|
+
let n = f.value[u.value.name];
|
41
|
+
for (let o = 0; o < e.length; o++) {
|
42
|
+
let a = n.find((r) => r[l.value.checked] == e[o]);
|
43
|
+
_.remove(n, a);
|
44
|
+
}
|
45
|
+
}, J = (e) => {
|
46
|
+
x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, f.value);
|
47
|
+
}, I = (e, n, o) => {
|
48
|
+
g.value = S.getLines(n.data, y.value, (a) => [a], () => 1), K(() => {
|
49
|
+
let a = o[e.name].map((i) => i[n.checked]), r = 0;
|
50
|
+
for (let i = 0; i < g.value.length; i++) {
|
51
|
+
let c = g.value[i];
|
52
|
+
for (let s = 0; s < c.length; s++) {
|
53
|
+
let C = V.value[r], h = c[s].data, p = P.getFlat(h, "Children").map((t) => t[n.id]), v = _.intersect(p, a);
|
54
|
+
if (!(v.length == 1 && p.length > 1)) for (let t = 0; t < v.length; t++) {
|
55
|
+
let O = v[t];
|
56
|
+
C.setChecked(O, !0, !1);
|
57
|
+
}
|
58
|
+
r++;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
});
|
62
|
+
};
|
63
|
+
return X(() => {
|
64
|
+
x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, f.value);
|
65
|
+
}), Y(() => u.value, (e, n) => {
|
66
|
+
R.value = !1, K(() => {
|
67
|
+
R.value = !0, I(e, l.value, f.value);
|
68
|
+
});
|
69
|
+
}), z({ resize: J }), (e, n) => {
|
70
|
+
const o = N("el-tree"), a = N("el-col"), r = N("el-row");
|
71
|
+
return k(), w("div", {
|
72
|
+
ref_key: "layoutRef",
|
73
|
+
ref: E,
|
74
|
+
class: "ha-tree-layout"
|
75
|
+
}, [
|
76
|
+
d(R) ? (k(!0), w(L, { key: 0 }, B(d(g), (i, c) => (k(), M(r, null, {
|
77
|
+
default: b(() => [
|
78
|
+
(k(!0), w(L, null, B(i, ({ data: s, span: C, index: h }, p) => (k(), M(a, {
|
79
|
+
span: C,
|
80
|
+
key: `${c}.${p}`
|
81
|
+
}, {
|
82
|
+
default: b(() => [
|
83
|
+
Z(o, {
|
84
|
+
ref_for: !0,
|
85
|
+
ref_key: "treeRefs",
|
86
|
+
ref: V,
|
87
|
+
"show-checkbox": "",
|
88
|
+
"highlight-current": "",
|
89
|
+
"default-expand-all": !1,
|
90
|
+
"expand-on-click-node": !1,
|
91
|
+
"node-key": d(l).id,
|
92
|
+
data: s,
|
93
|
+
props: { children: "Children", label: d(l).text },
|
94
|
+
disabled: d(W).type == "Detail",
|
95
|
+
onNodeExpand: d(j),
|
96
|
+
onNodeCollapse: d(q),
|
97
|
+
onCheck: (v, t) => d(A)(v, t, h)
|
98
|
+
}, {
|
99
|
+
default: b(({ node: v, data: t }) => [
|
100
|
+
ee("div", te, T(t[d(l).text]), 1),
|
101
|
+
d(l).suffix ? (k(), w("div", ae, T(t[d(l).suffix]), 1)) : F("", !0)
|
102
|
+
]),
|
103
|
+
_: 2
|
104
|
+
}, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
|
105
|
+
]),
|
106
|
+
_: 2
|
107
|
+
}, 1032, ["span"]))), 128))
|
108
|
+
]),
|
109
|
+
_: 2
|
110
|
+
}, 1024))), 256)) : F("", !0)
|
111
|
+
], 512);
|
112
|
+
};
|
113
|
+
}
|
114
|
+
});
|
115
|
+
export {
|
116
|
+
de as default
|
117
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent as x, toRefs as h, computed as C, openBlock as s, createElementBlock as i, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
|
2
|
+
import { U as y, X as g } from "./main-RFuk2-Bk.js";
|
3
|
+
const k = ["title"], v = { class: "number" }, V = {
|
4
|
+
key: 0,
|
5
|
+
class: "option-suffix"
|
6
|
+
}, B = {
|
7
|
+
key: 1,
|
8
|
+
class: "count"
|
9
|
+
}, O = /* @__PURE__ */ x({
|
10
|
+
__name: "TreeNode",
|
11
|
+
props: {
|
12
|
+
table: {},
|
13
|
+
layout: {},
|
14
|
+
row: {},
|
15
|
+
node: {}
|
16
|
+
},
|
17
|
+
setup(u) {
|
18
|
+
let c = u, { table: p, layout: n, row: t, node: f } = h(c), m = (r, o) => {
|
19
|
+
let l = (r.parent.data.Children ? r.parent.data.Children.indexOf(o) : r.parent.data.indexOf(o)) + 1;
|
20
|
+
return g.padLeft(l, 2, "0");
|
21
|
+
}, _ = C(() => p.value.fields.find((l) => l.name == n.value.text).control.i18N);
|
22
|
+
return (r, o) => {
|
23
|
+
var l;
|
24
|
+
return s(), i("div", {
|
25
|
+
title: e(t)[e(n).title]
|
26
|
+
}, [
|
27
|
+
N("span", v, a(e(m)(e(f), e(t))), 1),
|
28
|
+
b(" " + a((l = e(_)) != null && l.value ? e(y)(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
|
29
|
+
e(n).suffix ? (s(), i("span", V, a(e(t)[e(n).suffix]), 1)) : d("", !0),
|
30
|
+
e(t).Children && e(t).Children.length > 0 ? (s(), i("span", B, "(" + a(e(t).Children.length) + ")", 1)) : d("", !0)
|
31
|
+
], 8, k);
|
32
|
+
};
|
33
|
+
}
|
34
|
+
});
|
35
|
+
export {
|
36
|
+
O as default
|
37
|
+
};
|
@@ -1,15 +1,8 @@
|
|
1
|
-
import { defineComponent as b, toRefs as C, ref as h, resolveComponent as x, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as
|
2
|
-
import "./
|
3
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
-
import "./assets/clone-BZn0cTAu.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import { N, t as m } from "./main-BS_9gx1M.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
1
|
+
import { defineComponent as b, toRefs as C, ref as h, resolveComponent as x, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as a, createSlots as y, createTextVNode as i, toDisplayString as r, createElementVNode as p } from "vue";
|
2
|
+
import { F as N, U as m } from "./main-RFuk2-Bk.js";
|
10
3
|
import "vue-router";
|
11
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
12
|
-
const
|
5
|
+
const U = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), V = /* @__PURE__ */ p("i", { class: "fa fa-chevron-left" }, null, -1), F = /* @__PURE__ */ b({
|
13
6
|
__name: "Update",
|
14
7
|
props: {
|
15
8
|
table: {},
|
@@ -21,41 +14,41 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
|
|
21
14
|
setup(u, { expose: f, emit: _ }) {
|
22
15
|
let n = _;
|
23
16
|
C(u);
|
24
|
-
let o = h(!1),
|
25
|
-
o.value = !0, n("submit",
|
17
|
+
let o = h(!1), l = (s) => {
|
18
|
+
o.value = !0, n("submit", s, null, (k) => {
|
26
19
|
o.value = !1;
|
27
20
|
});
|
28
21
|
}, d = () => {
|
29
22
|
n("close");
|
30
23
|
};
|
31
|
-
return f({ submit:
|
24
|
+
return f({ submit: l }), (s, k) => {
|
32
25
|
const c = x("el-button");
|
33
26
|
return g(), v(e(N), { padding: 5 }, {
|
34
27
|
default: t(() => [
|
35
|
-
|
28
|
+
a(c, {
|
36
29
|
type: "primary",
|
37
30
|
loading: e(o),
|
38
|
-
onClick: e(
|
31
|
+
onClick: e(l)
|
39
32
|
}, y({
|
40
33
|
default: t(() => [
|
41
|
-
|
34
|
+
i(" " + r(e(m)("common.confirm")), 1)
|
42
35
|
]),
|
43
36
|
_: 2
|
44
37
|
}, [
|
45
38
|
e(o) ? void 0 : {
|
46
39
|
name: "icon",
|
47
40
|
fn: t(() => [
|
48
|
-
|
41
|
+
U
|
49
42
|
]),
|
50
43
|
key: "0"
|
51
44
|
}
|
52
45
|
]), 1032, ["loading", "onClick"]),
|
53
|
-
|
46
|
+
a(c, { onClick: e(d) }, {
|
54
47
|
icon: t(() => [
|
55
|
-
|
48
|
+
V
|
56
49
|
]),
|
57
50
|
default: t(() => [
|
58
|
-
|
51
|
+
i(" " + r(e(m)("common.back")), 1)
|
59
52
|
]),
|
60
53
|
_: 1
|
61
54
|
}, 8, ["onClick"])
|