halo-pc 1.0.35 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-BqULjBoz.js → Article-DSuvpyeC.js} +59 -62
- package/dist/{ArticleFooter-CRepUD0G.js → ArticleFooter-Cx3OC7sV.js} +3 -4
- package/dist/{Autocomplete-DW-EQzP_.js → Autocomplete-1jt0wRMS.js} +1 -1
- package/dist/{Autocomplete-DxWoCy2-.js → Autocomplete-C7CYy8w6.js} +8 -9
- package/dist/{Autocomplete-Dl8yr0gI.js → Autocomplete-DASTUS8d.js} +5 -6
- package/dist/{CSharp-CHmrfPD-.js → CSharp-CebNTVPd.js} +1 -1
- package/dist/{Calender-BX22DnMb.js → Calender-BBILvX8n.js} +4 -4
- package/dist/{Callback-BGchl5Pt.js → Callback-CLA9Ab9q.js} +5 -6
- package/dist/Cascader-DY2zOwsa.js +47 -0
- package/dist/{Cascader-Wmh_fOfd.js → Cascader-DyQ312mS.js} +12 -13
- package/dist/{Checkbox-ClYubr5_.js → Checkbox-CHmMU0Cs.js} +1 -1
- package/dist/{Checkbox-BhDHYVQv.js → Checkbox-CyC_mo50.js} +3 -4
- package/dist/Code-B4Z7WuUc.js +42 -0
- package/dist/Code-BOTf1uZ5.js +60 -0
- package/dist/{Code-Dw8__whP.js → Code-CIFJJJo3.js} +1 -1
- package/dist/Code-Da4PjT9q.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js +63 -0
- package/dist/{Column-CNqrSNAW.js → Column-9A6-8_Y7.js} +23 -19
- package/dist/{Comment-BNLLGPGB.js → Comment-D78rr4-n.js} +34 -30
- package/dist/{Compare-BjIr4vt8.js → Compare-Cb9vYPl5.js} +3 -4
- package/dist/{Compare-C5P2t4Iq.js → Compare-DLiL32cA.js} +3 -4
- package/dist/{Copy-CvBsdMqw.js → Copy-CH2_hawJ.js} +8 -9
- package/dist/Custom-D9qN9bwa.js +59 -0
- package/dist/{DataExport-J7a12xRD.js → DataExport-D8cqXPrh.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BQ0WNRqq.js → DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js} +12 -13
- package/dist/{DataImport-BgrxhdBP.js → DataImport-3KwXYYGw.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-0AgII-Ro.js → DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js} +3 -4
- package/dist/{Date-CqL3Xp1L.js → Date-OZxdofhB.js} +1 -1
- package/dist/{Date-iWorFEXN.js → Date-yHlD-Lw2.js} +8 -9
- package/dist/{DateRange-Cfpeirwq.js → DateRange-BLSxDHKv.js} +3 -4
- package/dist/{DateTime-Dv0U5rlW.js → DateTime-8tbpOKOK.js} +5 -6
- package/dist/{DateTime-fa-BOHE8.js → DateTime-B7GzMj8Q.js} +1 -1
- package/dist/{DateTimeRange-B0pw5ZiA.js → DateTimeRange-COFWmQoO.js} +6 -7
- package/dist/{Daterange-DMGOeSyF.js → Daterange-Cy8l4CfJ.js} +8 -9
- package/dist/{Decimal-ynN-XKqW.js → Decimal-Dw6EtZOm.js} +1 -1
- package/dist/{Delete-DKYI0lCr.js → Delete-DjXSCUKp.js} +15 -16
- package/dist/{Detail-Br-ULMjV.js → Detail-DU8mI4u2.js} +3 -4
- package/dist/{Dictionary-C3z2FWDL.js → Dictionary-CAAvUqf-.js} +10 -6
- package/dist/{Email-B2DsICjF.js → Email-AHWpz5Ck.js} +5 -6
- package/dist/{File-hdUkjji3.js → File-DUxwHR5G.js} +19 -20
- package/dist/Image-BJ5q87B6.js +9 -0
- package/dist/Index-CF44rsZW.js +4 -0
- package/dist/Index-CnFjsuQV.js +4 -0
- package/dist/{Index-ChcEoqTf.js → Index-D223MCYD.js} +35 -36
- package/dist/Index-DCIDLocj.js +4 -0
- package/dist/{Index-ySmCcOc1.js → Index-Jt1omrn-.js} +1 -1
- package/dist/{Index-BQB6vWfH.js → Index-KTv20XtO.js} +1 -1
- package/dist/{Index-Bnw6u3PZ.js → Index-Z8HW5XAm.js} +4 -5
- package/dist/Index-qIfIbiFH.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-CZXsC-E_.js → Index.vue_vue_type_script_setup_true_lang-BznVrY52.js} +27 -25
- package/dist/{Index.vue_vue_type_script_setup_true_lang-GUuR0vzO.js → Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js} +6 -7
- package/dist/{Install-0oA4rPM7.js → Install-C-xxCx9D.js} +10 -11
- package/dist/{Int-CNHen_OB.js → Int-1QpMyTPB.js} +3 -4
- package/dist/{Int-CYCrDfkF.js → Int-BsHpY5Gt.js} +6 -7
- package/dist/List-DW7FpMfd.js +72 -0
- package/dist/Maintaince-CjUfJUr7.js +20 -0
- package/dist/{Markdown-CcnI9mz9.js → Markdown-BZhSwheI.js} +1 -1
- package/dist/{Month-D_9DFUV2.js → Month-BKXtBi6i.js} +1 -1
- package/dist/{Month-N0iGv8-c.js → Month-IJnA7Kgl.js} +8 -9
- package/dist/{Month-BBF1HARy.js → Month-m0FiTmBK.js} +6 -7
- package/dist/{Normal-DwZJydUM.js → Normal-CettIwbU.js} +65 -66
- package/dist/Paging-J9vCBFzM.js +93 -0
- package/dist/{PagingHeader-GXUua6cK.js → PagingHeader-irWrEKGQ.js} +4 -5
- package/dist/{PagingRow-DeZCXdLB.js → PagingRow-Bft1brFD.js} +3 -4
- package/dist/{Racebar-BXFHoJrk.js → Racebar-D3VFwM1V.js} +28 -24
- package/dist/{Radio-nUkqPIGx.js → Radio-C-IwNXnz.js} +1 -1
- package/dist/{Register-DNXmULLI.js → Register-XTfqbbgr.js} +38 -39
- package/dist/{RichText-COY92auQ.js → RichText-D3aLlQph.js} +14 -10
- package/dist/{SearchFooter-B-2TAXcZ.js → SearchFooter-hC7sQBez.js} +1 -1
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js +55 -0
- package/dist/{SearchForm-B1KLbbyY.js → SearchForm-BTux7Adt.js} +1 -1
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js +143 -0
- package/dist/{Select-Bw_B6ufE.js → Select-ClAK8aNJ.js} +10 -11
- package/dist/{Select-CGamhz-L.js → Select-DlM_C-60.js} +1 -1
- package/dist/{Select-D8xfJf8j.js → Select-K1dU20i2.js} +13 -14
- package/dist/{Single-DIveQskP.js → Single-DYDwq041.js} +66 -69
- package/dist/{Statistic-D5iiPISQ.js → Statistic-CidgrAcU.js} +6 -7
- package/dist/{Stock-B3zJIs1k.js → Stock-BFszdaCn.js} +1 -1
- package/dist/{Stock-bO6XUouM.js → Stock-BiuhsKPB.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CCOJ4-No.js → Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js} +6 -7
- package/dist/{Switch-DssI1IBh.js → Switch-TI8J8-E2.js} +1 -1
- package/dist/{Table-BO316Cbq.js → Table-DJOSPNrn.js} +123 -130
- package/dist/{Table-DXcpuTmH.js → Table-DYELgaTY.js} +60 -61
- package/dist/{Text-BCIG-FSm.js → Text-DAliAA9U.js} +1 -1
- package/dist/{Text-Eu5ow8IQ.js → Text-DEv-wMFU.js} +3 -4
- package/dist/Text-Dy6uYSm3.js +49 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js +59 -0
- package/dist/{TextLink-jLpxiMgK.js → TextLink-CKPExcuj.js} +5 -6
- package/dist/{Textarea-Bx3eU0TB.js → Textarea-CEv7HYqY.js} +1 -1
- package/dist/{Time-CwdRY8H-.js → Time-BeTq6Tq3.js} +9 -10
- package/dist/{Timeline-BPtq0iG0.js → Timeline-BI2o8Kug.js} +14 -10
- package/dist/{Tree-DxerBKds.js → Tree-BPeNz1X4.js} +60 -63
- package/dist/{Tree-IuRYghPt.js → Tree-DlIrY3e2.js} +34 -30
- package/dist/{TreeNode-DAY80hF6.js → TreeNode-CzM6Npi5.js} +5 -6
- package/dist/{Update-CSuOw8uK.js → Update-Bv6Lp8LZ.js} +3 -4
- package/dist/{UpdateChild-d6-0uHpZ.js → UpdateChild-mrF1t5G8.js} +3 -4
- package/dist/{Upload-CQoGLh54.js → Upload-B0dBN1oH.js} +18 -14
- package/dist/{Upload-Qrc2AkBp.js → Upload-BCdzJlzR.js} +15 -16
- package/dist/{Year-FnibDcf1.js → Year-2hJSZcj_.js} +12 -13
- package/dist/{Year-DmEcvxnt.js → Year-DLITl-_8.js} +1 -1
- package/dist/assets/{liquidjs-B8dqQyVv.js → liquidjs-C2HVw1Ra.js} +82 -81
- package/dist/main-SNlEeN01.js +10337 -0
- package/dist/main.js +144 -135
- package/dist/style.css +1 -1
- package/esm/coms/business/@types/DriverProps.d.ts +1 -6
- package/esm/coms/business/@types/FormProps.d.ts +0 -12
- package/esm/coms/business/@types/index.d.ts +1 -3
- package/esm/coms/business/Condition.vue.d.ts +6 -3
- package/esm/coms/business/Drawer.vue.d.ts +9 -4
- package/esm/coms/business/Driver.vue.d.ts +1 -0
- package/esm/coms/business/Form.vue.d.ts +1 -5
- package/esm/coms/business/index.d.ts +1 -3
- package/esm/coms/commons/index.d.ts +1 -2
- package/esm/coms/controls/RichText.vue.d.ts +1 -1
- package/esm/coms/drivers/@types/CrudProps.d.ts +22 -0
- package/esm/coms/drivers/@types/DriverBaseProps.d.ts +14 -0
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverFormProps.d.ts +15 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverProps.d.ts +29 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +17 -0
- package/esm/coms/drivers/@types/KindProps.d.ts +21 -0
- package/esm/coms/drivers/@types/index.d.ts +6 -0
- package/esm/coms/drivers/Crud.vue.d.ts +27 -0
- package/esm/coms/drivers/Index.vue.d.ts +114 -0
- package/esm/coms/drivers/Kind.vue.d.ts +33 -0
- package/esm/coms/drivers/index.d.ts +5 -0
- package/esm/coms/globals/@types/WindowEmit.d.ts +14 -0
- package/esm/coms/globals/@types/index.d.ts +2 -1
- package/esm/coms/globals/HeaderTabs.vue.d.ts +6 -3
- package/esm/coms/globals/Window.vue.d.ts +1 -38
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Index.vue.d.ts +7 -3
- package/esm/coms/layouts/Side.vue.d.ts +5 -2
- package/esm/coms/layouts/Top.vue.d.ts +4 -1
- package/esm/coms/lists/Tree.vue.d.ts +4 -3
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/Delete.vue.d.ts +2 -2
- package/esm/coms/pages/List.vue.d.ts +3 -3
- package/esm/coms/pages/Paging.vue.d.ts +4 -3
- package/esm/coms/pages/Single.vue.d.ts +6 -5
- package/esm/coms/pagings/@types/SearchFooterProps.d.ts +10 -0
- package/esm/coms/pagings/@types/SearchFormProps.d.ts +7 -0
- package/esm/coms/pagings/@types/index.d.ts +3 -1
- package/esm/coms/pagings/Article.vue.d.ts +4 -3
- package/esm/coms/pagings/Index.vue.d.ts +4 -3
- package/esm/coms/pagings/SearchFooter.vue.d.ts +6 -109
- package/esm/coms/pagings/SearchForm.vue.d.ts +6 -65
- package/esm/coms/pagings/Table.vue.d.ts +4 -3
- package/esm/coms/panels/Operation.vue.d.ts +3 -2
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/Detail.vue.d.ts +1 -1
- package/esm/coms/partials/PagingHeader.vue.d.ts +3 -3
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/coms/partials/Update.vue.d.ts +1 -1
- package/esm/coms/partials/UpdateChild.vue.d.ts +1 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/repos/index.d.ts +1 -2
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/RouterSvc.d.ts +1 -1
- package/esm/svcs/StandardSvc.d.ts +2 -6
- package/esm/svcs/WindowSvc.d.ts +2 -2
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +11 -11
- package/dist/Cascader-BpXwryCx.js +0 -43
- package/dist/Code-BQxUo4S4.js +0 -38
- package/dist/Code-BjpkNJAb.js +0 -4
- package/dist/Code-Co49-iRF.js +0 -56
- package/dist/Code.vue_vue_type_style_index_0_lang-DNzXcIII.js +0 -60
- package/dist/Custom-QVZ_RHXN.js +0 -62
- package/dist/Image-CwVoPF1W.js +0 -9
- package/dist/Index-BC2FQhAY.js +0 -4
- package/dist/Index-CBDxaC44.js +0 -4
- package/dist/Index-CT0cKXYs.js +0 -4
- package/dist/Index-D1ZbAjix.js +0 -4
- package/dist/List-Ci3F9DOP.js +0 -75
- package/dist/Maintaince-D7QKNnFc.js +0 -16
- package/dist/Paging-bRw8LIxA.js +0 -96
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-97vAug1N.js +0 -55
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-B3LUX2ZJ.js +0 -146
- package/dist/Text-BhvhxnY_.js +0 -55
- package/dist/Text.vue_vue_type_style_index_0_lang-C2rphbrS.js +0 -55
- package/dist/main-BCxKY4GT.js +0 -9933
@@ -1,16 +1,15 @@
|
|
1
|
-
import { defineComponent as xe, toRefs as
|
2
|
-
import {
|
1
|
+
import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as _e, computed as L, watch as we, resolveComponent as D, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as b, Fragment as Ne, renderList as Ke, withDirectives as Re, resolveDynamicComponent as Se, createCommentVNode as C, createTextVNode as _, toDisplayString as k, vShow as $e, nextTick as P } from "vue";
|
2
|
+
import { e as j, f as De, w as A, E as Ue, D as Ie, F as Te, c as G, t as y, b as J, m as Ve, U as w, h as Q, a as qe, M as Le } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import "./assets/liquidjs-B8dqQyVv.js";
|
5
4
|
import "vue-router";
|
6
5
|
import "./assets/intro.js-Cg1adLK7.js";
|
7
|
-
const
|
6
|
+
const Be = { class: "tree-left" }, Ee = {
|
8
7
|
key: 2,
|
9
8
|
class: "ha-empty"
|
10
|
-
},
|
9
|
+
}, ze = {
|
11
10
|
key: 3,
|
12
11
|
class: "tree-add"
|
13
|
-
},
|
12
|
+
}, Ae = /* @__PURE__ */ xe({
|
14
13
|
__name: "Tree",
|
15
14
|
props: {
|
16
15
|
searchData: {},
|
@@ -24,27 +23,27 @@ const Le = { class: "tree-left" }, Be = {
|
|
24
23
|
},
|
25
24
|
emits: ["refresh", "succeed", "search", "navigate"],
|
26
25
|
setup(W, { expose: X, emit: Y }) {
|
27
|
-
let x = Y, Z = W, { route:
|
28
|
-
if (!
|
26
|
+
let x = Y, Z = W, { route: N, module: B, schema: ee, table: m, layout: a, next: p, set: Me, searchData: le } = ge(Z), K = v(), E = v(), U = v(), R = v(), z = v(), te = v(), d = v({ type: null, name: null, url: null, visible: !1 }), S = v(), I = null, r = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), M = () => {
|
27
|
+
if (!K.value)
|
29
28
|
return;
|
30
|
-
let t =
|
29
|
+
let t = K.value.$el.querySelector(".is-context");
|
31
30
|
t && t.classList.remove("is-context");
|
32
31
|
}, re = (t, l, o, n) => {
|
33
32
|
M(), n.vnode.el.classList.add("is-context"), r.value.currentNode = l, I.show(t);
|
34
|
-
},
|
33
|
+
}, $ = (t) => {
|
35
34
|
let l = a.value.parentId, o = { [l]: null };
|
36
35
|
t == "sibling" ? o[l] = r.value.currentNode[l] : t == "child" && (o[l] = r.value.currentNode[a.value.id]);
|
37
|
-
let n =
|
36
|
+
let n = j.encode(o), u;
|
38
37
|
t == "copy" ? u = `${p.value.copy.route}?id=${r.value.currentNode[a.value.id]}&` : u = `${p.value.insert.route}?`, u += `default=${n}`, d.value.url = u, d.value.visible = !0;
|
39
|
-
},
|
38
|
+
}, F = () => {
|
40
39
|
let t = r.value.currentNode[a.value.id], l = r.value.currentNode[a.value.text], o = y("common.confirm_delete", l);
|
41
40
|
Ve.confirm(y("common.tips"), o, { type: "warning" }).then(() => {
|
42
41
|
ae(t);
|
43
42
|
});
|
44
43
|
}, ae = (t) => {
|
45
|
-
let l = a.value.id, o = a.value.data, n =
|
44
|
+
let l = a.value.id, o = a.value.data, n = w.tree.getNextById(t, l, o, "Children");
|
46
45
|
Q.post(p.value.delete.route, [t]).then(() => {
|
47
|
-
|
46
|
+
w.tree.removeById(t, l, o, "Children");
|
48
47
|
let u = null;
|
49
48
|
n && (u = n[l], r.value.currentKey = u, r.value.expandedKeys.push(u)), x("succeed", () => {
|
50
49
|
T(r.value.scrollTop);
|
@@ -53,10 +52,10 @@ const Le = { class: "tree-left" }, Be = {
|
|
53
52
|
}, oe = (t) => {
|
54
53
|
r.value.scrollTop = t.scrollTop;
|
55
54
|
}, T = (t = null, l = null) => {
|
56
|
-
r.value.visible = !1,
|
57
|
-
r.value.visible = !0,
|
55
|
+
r.value.visible = !1, P(() => {
|
56
|
+
r.value.visible = !0, P(() => {
|
58
57
|
if (t == null) {
|
59
|
-
let o =
|
58
|
+
let o = K.value.$el.querySelector(".el-tree-node.is-current");
|
60
59
|
o && o.scrollIntoView({ block: "center", behavior: "smooth" });
|
61
60
|
} else
|
62
61
|
R.value.setScrollTop(t);
|
@@ -74,15 +73,15 @@ const Le = { class: "tree-left" }, Be = {
|
|
74
73
|
}, de = (t, l, o) => {
|
75
74
|
M();
|
76
75
|
let n = t[a.value.id];
|
77
|
-
if (
|
78
|
-
|
76
|
+
if (w.array.pushIfNotExist(r.value.expandedKeys, n), n == r.value.currentKey)
|
77
|
+
U.value.refresh();
|
79
78
|
else {
|
80
|
-
r.value.currentKey = n,
|
81
|
-
let u =
|
79
|
+
r.value.currentKey = n, S.value = V();
|
80
|
+
let u = w.url.getUrl(N.value.fullPath, { id: n });
|
82
81
|
x("navigate", u);
|
83
82
|
}
|
84
83
|
}, ie = (t, l, o) => {
|
85
|
-
|
84
|
+
w.array.remove(r.value.expandedKeys, t[a.value.id]);
|
86
85
|
}, ce = (t, l, o, n) => {
|
87
86
|
let u = {
|
88
87
|
table: a.value.table,
|
@@ -90,7 +89,7 @@ const Le = { class: "tree-left" }, Be = {
|
|
90
89
|
targetId: l.data[a.value.id],
|
91
90
|
position: o
|
92
91
|
};
|
93
|
-
Q.post(a.value.operation.route, u).then((
|
92
|
+
Q.post(a.value.operation.route, u).then((O) => {
|
94
93
|
});
|
95
94
|
}, ve = (t) => {
|
96
95
|
x("search", t);
|
@@ -98,43 +97,41 @@ const Le = { class: "tree-left" }, Be = {
|
|
98
97
|
}, me = (t, l) => t ? l[m.value.text].indexOf(t) !== -1 : !0, pe = () => {
|
99
98
|
x("refresh");
|
100
99
|
}, ye = (t, l) => {
|
101
|
-
|
102
|
-
return !1;
|
103
|
-
C.value.keyboard(t, l);
|
100
|
+
qe.triggerKeyboardHandler(U.value, t, l);
|
104
101
|
}, he = () => {
|
105
102
|
R.value.update();
|
106
103
|
}, V = () => {
|
107
104
|
let t = p.value[a.value.page.toLowerCase()].route;
|
108
105
|
return r.value.currentKey && (t += "?id=" + r.value.currentKey), t;
|
109
106
|
}, be = () => {
|
110
|
-
let t =
|
111
|
-
t == null ? l = a.value.updateKey : l =
|
112
|
-
I = new
|
107
|
+
let t = N.value.query.id, l;
|
108
|
+
t == null ? l = a.value.updateKey : l = A.convert(t, H.value.type), l && (r.value.currentKey = l, r.value.expandedKeys = [l], S.value = V()), T(null, () => {
|
109
|
+
I = new Le(E.value, [R.value.$el, z.value]);
|
113
110
|
});
|
114
111
|
};
|
115
|
-
|
112
|
+
Ce(() => {
|
116
113
|
be();
|
117
114
|
}), _e(() => {
|
118
115
|
I.dispose();
|
119
116
|
}), L(() => {
|
120
|
-
let t = { [a.value.parentId]:
|
121
|
-
return
|
117
|
+
let t = { [a.value.parentId]: N.value.query.id };
|
118
|
+
return j.encode(t);
|
122
119
|
});
|
123
120
|
let ke = L(() => {
|
124
121
|
let t = `/${m.value.name}/tree-node`;
|
125
122
|
return De.getComponent(t, "partial", "tree-node");
|
126
|
-
}),
|
127
|
-
return we(() =>
|
128
|
-
r.value.currentKey =
|
129
|
-
}), X({ refresh: pe,
|
130
|
-
const o =
|
123
|
+
}), H = L(() => m.value.fields.find((l) => l.name == a.value.id));
|
124
|
+
return we(() => N.value, (t, l) => {
|
125
|
+
r.value.currentKey = A.convert(t.query.id, H.value.type), S.value = V();
|
126
|
+
}), X({ refresh: pe, keyboardHandler: ye, resize: he }), (t, l) => {
|
127
|
+
const o = D("el-scrollbar"), n = D("el-tree"), u = D("el-button"), O = D("el-drawer");
|
131
128
|
return i(), g(e(Ue), {
|
132
129
|
class: "tree",
|
133
130
|
width: e(r).width,
|
134
131
|
onResize: l[5] || (l[5] = (s) => e(r).width = s)
|
135
132
|
}, {
|
136
133
|
left: f(() => [
|
137
|
-
c("div",
|
134
|
+
c("div", Be, [
|
138
135
|
e(m).search.length ? (i(), h("div", {
|
139
136
|
key: 0,
|
140
137
|
ref_key: "searchRef",
|
@@ -161,9 +158,9 @@ const Le = { class: "tree-left" }, Be = {
|
|
161
158
|
})
|
162
159
|
], 512)) : (i(), g(e(Te), {
|
163
160
|
key: 1,
|
164
|
-
title: e(
|
161
|
+
title: e(G)(e(B).type, e(B).name)
|
165
162
|
}, null, 8, ["title"])),
|
166
|
-
|
163
|
+
Re(b(o, {
|
167
164
|
ref_key: "scrollbarRef",
|
168
165
|
ref: R,
|
169
166
|
class: "tree-content",
|
@@ -173,7 +170,7 @@ const Le = { class: "tree-left" }, Be = {
|
|
173
170
|
e(r).visible ? (i(), g(n, {
|
174
171
|
key: 0,
|
175
172
|
ref_key: "treeRef",
|
176
|
-
ref:
|
173
|
+
ref: K,
|
177
174
|
"highlight-current": "",
|
178
175
|
"show-checkbox": e(a).checkbox,
|
179
176
|
"expand-on-click-node": !1,
|
@@ -190,7 +187,7 @@ const Le = { class: "tree-left" }, Be = {
|
|
190
187
|
onNodeDrop: e(ce)
|
191
188
|
}, {
|
192
189
|
default: f(({ node: s, data: q }) => [
|
193
|
-
(i(), g(
|
190
|
+
(i(), g(Se(e(ke)), {
|
194
191
|
table: e(m),
|
195
192
|
layout: e(a),
|
196
193
|
row: q,
|
@@ -198,59 +195,59 @@ const Le = { class: "tree-left" }, Be = {
|
|
198
195
|
}, null, 8, ["table", "layout", "row", "node"]))
|
199
196
|
]),
|
200
197
|
_: 1
|
201
|
-
}, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) :
|
198
|
+
}, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : C("", !0),
|
202
199
|
c("ul", {
|
203
200
|
ref_key: "menuRef",
|
204
201
|
ref: E,
|
205
202
|
class: "mouse-context"
|
206
203
|
}, [
|
207
204
|
c("li", {
|
208
|
-
onClick: l[0] || (l[0] = (s) => e(
|
205
|
+
onClick: l[0] || (l[0] = (s) => e($)("child"))
|
209
206
|
}, [
|
210
207
|
l[6] || (l[6] = c("i", { class: "fa fa-plus" }, null, -1)),
|
211
|
-
|
208
|
+
_(k(e(y)("tree.add_sub_item")), 1)
|
212
209
|
]),
|
213
210
|
c("li", {
|
214
|
-
onClick: l[1] || (l[1] = (s) => e(
|
211
|
+
onClick: l[1] || (l[1] = (s) => e($)("sibling"))
|
215
212
|
}, [
|
216
213
|
l[7] || (l[7] = c("i", { class: "fa fa-plus" }, null, -1)),
|
217
|
-
|
214
|
+
_(k(e(y)("tree.add_same_grade")), 1)
|
218
215
|
]),
|
219
216
|
c("li", {
|
220
|
-
onClick: l[2] || (l[2] = (s) => e(
|
217
|
+
onClick: l[2] || (l[2] = (s) => e($)("copy"))
|
221
218
|
}, [
|
222
219
|
l[8] || (l[8] = c("i", { class: "fa fa-copy" }, null, -1)),
|
223
|
-
|
220
|
+
_(k(e(y)("common.copy")), 1)
|
224
221
|
]),
|
225
222
|
e(p).delete ? (i(), h("li", {
|
226
223
|
key: 0,
|
227
224
|
onClick: l[3] || (l[3] = //@ts-ignore
|
228
|
-
(...s) => e(
|
225
|
+
(...s) => e(F) && e(F)(...s))
|
229
226
|
}, [
|
230
227
|
l[9] || (l[9] = c("i", { class: "fa fa-trash" }, null, -1)),
|
231
|
-
|
232
|
-
])) :
|
228
|
+
_(k(e(y)("common.delete")), 1)
|
229
|
+
])) : C("", !0)
|
233
230
|
], 512)
|
234
231
|
]),
|
235
232
|
_: 1
|
236
233
|
}, 8, ["onScroll"]), [
|
237
234
|
[$e, e(a).data.length]
|
238
235
|
]),
|
239
|
-
e(a).data.length ?
|
240
|
-
!e(a).data.length && e(p).insert ? (i(), h("div",
|
236
|
+
e(a).data.length ? C("", !0) : (i(), h("div", Ee, k(e(y)("common.no_data")), 1)),
|
237
|
+
!e(a).data.length && e(p).insert ? (i(), h("div", ze, [
|
241
238
|
b(u, {
|
242
239
|
type: "primary",
|
243
|
-
onClick: e(
|
240
|
+
onClick: e($)
|
244
241
|
}, {
|
245
242
|
icon: f(() => l[10] || (l[10] = [
|
246
243
|
c("i", { class: "fa fa-plus" }, null, -1)
|
247
244
|
])),
|
248
245
|
default: f(() => [
|
249
|
-
|
246
|
+
_(" " + k(e(p).insert.title), 1)
|
250
247
|
]),
|
251
248
|
_: 1
|
252
249
|
}, 8, ["onClick"])
|
253
|
-
])) :
|
250
|
+
])) : C("", !0)
|
254
251
|
])
|
255
252
|
]),
|
256
253
|
default: f(() => [
|
@@ -262,14 +259,14 @@ const Le = { class: "tree-left" }, Be = {
|
|
262
259
|
e(r).currentKey ? (i(), g(e(J), {
|
263
260
|
key: 0,
|
264
261
|
ref_key: "singleRef",
|
265
|
-
ref:
|
266
|
-
url: e(
|
267
|
-
}, null, 8, ["url"])) :
|
262
|
+
ref: U,
|
263
|
+
url: e(S)
|
264
|
+
}, null, 8, ["url"])) : C("", !0)
|
268
265
|
], 512),
|
269
|
-
b(
|
266
|
+
b(O, {
|
270
267
|
size: "60%",
|
271
268
|
"destroy-on-close": "",
|
272
|
-
title: e(
|
269
|
+
title: e(G)(e(d).type, e(d).name),
|
273
270
|
modelValue: e(d).visible,
|
274
271
|
"onUpdate:modelValue": l[4] || (l[4] = (s) => e(d).visible = s)
|
275
272
|
}, {
|
@@ -290,5 +287,5 @@ const Le = { class: "tree-left" }, Be = {
|
|
290
287
|
}
|
291
288
|
});
|
292
289
|
export {
|
293
|
-
|
290
|
+
Ae as default
|
294
291
|
};
|
@@ -1,11 +1,15 @@
|
|
1
1
|
import { defineComponent as J, toRefs as O, ref as k, onMounted as Q, watch as X, nextTick as K, resolveComponent as N, openBlock as _, createElementBlock as C, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Y, createElementVNode as Z, toDisplayString as T, createCommentVNode as F } from "vue";
|
2
|
-
import { U as f,
|
2
|
+
import { U as f, d as P } from "./main-SNlEeN01.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";
|
3
8
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import "./assets/liquidjs-B8dqQyVv.js";
|
5
9
|
const ee = { class: "option-text" }, le = {
|
6
10
|
key: 0,
|
7
11
|
class: "option-suffix"
|
8
|
-
},
|
12
|
+
}, ce = /* @__PURE__ */ J({
|
9
13
|
__name: "Tree",
|
10
14
|
props: {
|
11
15
|
route: {},
|
@@ -18,71 +22,71 @@ const ee = { class: "option-text" }, le = {
|
|
18
22
|
set: {}
|
19
23
|
},
|
20
24
|
setup(S, { expose: U }) {
|
21
|
-
let $ = S, { module: z, schema: te, table:
|
22
|
-
let a = p.value[
|
25
|
+
let $ = S, { module: z, schema: te, table: s, layout: l, set: p } = O($), E = k(), V = k([]), x = k(), w = k(0), g = k([]), R = k(!0), D = (e, r, o) => {
|
26
|
+
let a = p.value[s.value.name].find((n) => n.PermissionId == e[l.value.id]);
|
23
27
|
a && (a[l.value.expand] = !0);
|
24
|
-
}, W = (e, r,
|
25
|
-
let a = p.value[
|
28
|
+
}, W = (e, r, o) => {
|
29
|
+
let a = p.value[s.value.name].find((n) => n.PermissionId == e[l.value.id]);
|
26
30
|
a && (a[l.value.expand] = !1);
|
27
|
-
}, j = (e, r,
|
28
|
-
let a = r.checkedKeys,
|
31
|
+
}, j = (e, r, o) => {
|
32
|
+
let a = r.checkedKeys, n = e[l.value.id], i = f.array.contains(a, n), c = [], u = [], h = f.tree.getChildren(e, "Children").map((t) => t[l.value.id]), m = p.value[s.value.name].map((t) => t[l.value.checked]), v = f.array.intersect(h, m);
|
29
33
|
if (i) {
|
30
34
|
c.push(e[l.value.id]);
|
31
35
|
let t = f.array.except(h, v);
|
32
36
|
t.length && (a.push(...t), c.push(...t));
|
33
37
|
} else
|
34
|
-
|
35
|
-
c.length && q(c),
|
38
|
+
u.push(n), v.length == h.length && (u.push(...h), f.array.remove(a, h));
|
39
|
+
c.length && q(c), u.length && A(u);
|
36
40
|
}, q = (e) => {
|
37
41
|
for (let r = 0; r < e.length; r++) {
|
38
|
-
let
|
39
|
-
|
42
|
+
let o = P.getDefaultRow(s.value);
|
43
|
+
o[l.value.checked] = e[r], p.value[s.value.name].push(o);
|
40
44
|
}
|
41
45
|
}, A = (e) => {
|
42
|
-
let r = p.value[
|
43
|
-
for (let
|
44
|
-
let a = r.find((
|
46
|
+
let r = p.value[s.value.name];
|
47
|
+
for (let o = 0; o < e.length; o++) {
|
48
|
+
let a = r.find((n) => n[l.value.checked] == e[o]);
|
45
49
|
f.array.remove(r, a);
|
46
50
|
}
|
47
51
|
}, G = (e) => {
|
48
|
-
x.value = e.contentRect.width, w.value = Math.ceil(x.value / 300), I(
|
49
|
-
}, I = (e, r,
|
52
|
+
x.value = e.contentRect.width, w.value = Math.ceil(x.value / 300), I(s.value, l.value, p.value);
|
53
|
+
}, I = (e, r, o) => {
|
50
54
|
g.value = P.getLines(r.data, w.value, (a) => [a], () => 1), K(() => {
|
51
|
-
let a =
|
55
|
+
let a = o[e.name].map((i) => i[r.checked]), n = 0;
|
52
56
|
for (let i = 0; i < g.value.length; i++) {
|
53
57
|
let c = g.value[i];
|
54
|
-
for (let
|
55
|
-
let y = V.value[
|
58
|
+
for (let u = 0; u < c.length; u++) {
|
59
|
+
let y = V.value[n], h = c[u].data, m = f.tree.getFlat(h, "Children").map((t) => t[r.id]), v = f.array.intersect(m, a);
|
56
60
|
if (!(v.length == 1 && m.length > 1)) for (let t = 0; t < v.length; t++) {
|
57
61
|
let H = v[t];
|
58
62
|
y.setChecked(H, !0, !1);
|
59
63
|
}
|
60
|
-
|
64
|
+
n++;
|
61
65
|
}
|
62
66
|
}
|
63
67
|
});
|
64
68
|
};
|
65
69
|
return Q(() => {
|
66
|
-
x.value = f.dom.getWidth(E.value), w.value = Math.ceil(x.value / 300), I(
|
67
|
-
}), X(() =>
|
70
|
+
x.value = f.dom.getWidth(E.value), w.value = Math.ceil(x.value / 300), I(s.value, l.value, p.value);
|
71
|
+
}), X(() => s.value, (e, r) => {
|
68
72
|
R.value = !1, K(() => {
|
69
73
|
R.value = !0, I(e, l.value, p.value);
|
70
74
|
});
|
71
75
|
}), U({ resize: G }), (e, r) => {
|
72
|
-
const
|
76
|
+
const o = N("el-tree"), a = N("el-col"), n = N("el-row");
|
73
77
|
return _(), C("div", {
|
74
78
|
ref_key: "layoutRef",
|
75
79
|
ref: E,
|
76
80
|
class: "ha-tree-layout"
|
77
81
|
}, [
|
78
|
-
d(R) ? (_(!0), C(L, { key: 0 }, B(d(g), (i, c) => (_(), M(
|
82
|
+
d(R) ? (_(!0), C(L, { key: 0 }, B(d(g), (i, c) => (_(), M(n, null, {
|
79
83
|
default: b(() => [
|
80
|
-
(_(!0), C(L, null, B(i, ({ data:
|
84
|
+
(_(!0), C(L, null, B(i, ({ data: u, span: y, index: h }, m) => (_(), M(a, {
|
81
85
|
span: y,
|
82
86
|
key: `${c}.${m}`
|
83
87
|
}, {
|
84
88
|
default: b(() => [
|
85
|
-
Y(
|
89
|
+
Y(o, {
|
86
90
|
ref_for: !0,
|
87
91
|
ref_key: "treeRefs",
|
88
92
|
ref: V,
|
@@ -91,7 +95,7 @@ const ee = { class: "option-text" }, le = {
|
|
91
95
|
"default-expand-all": !1,
|
92
96
|
"expand-on-click-node": !1,
|
93
97
|
"node-key": d(l).id,
|
94
|
-
data:
|
98
|
+
data: u,
|
95
99
|
props: { children: "Children", label: d(l).text },
|
96
100
|
disabled: d(z).type == "Detail",
|
97
101
|
onNodeExpand: d(D),
|
@@ -115,5 +119,5 @@ const ee = { class: "option-text" }, le = {
|
|
115
119
|
}
|
116
120
|
});
|
117
121
|
export {
|
118
|
-
|
122
|
+
ce as default
|
119
123
|
};
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import { defineComponent as x, toRefs as h, computed as C, openBlock as i, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
|
2
|
-
import { t as g, U as y } from "./main-
|
2
|
+
import { t as g, U as y } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import "./assets/liquidjs-B8dqQyVv.js";
|
5
4
|
const k = ["title"], v = { class: "number" }, V = {
|
6
5
|
key: 0,
|
7
6
|
class: "option-suffix"
|
8
7
|
}, B = {
|
9
8
|
key: 1,
|
10
9
|
class: "count"
|
11
|
-
},
|
10
|
+
}, T = /* @__PURE__ */ x({
|
12
11
|
__name: "TreeNode",
|
13
12
|
props: {
|
14
13
|
table: {},
|
@@ -17,10 +16,10 @@ const k = ["title"], v = { class: "number" }, V = {
|
|
17
16
|
node: {}
|
18
17
|
},
|
19
18
|
setup(u) {
|
20
|
-
let
|
19
|
+
let c = u, { table: p, layout: n, row: t, node: f } = h(c), m = (l, o) => {
|
21
20
|
let r = (l.parent.data.Children ? l.parent.data.Children.indexOf(o) : l.parent.data.indexOf(o)) + 1;
|
22
21
|
return y.string.padLeft(r, 2, "0");
|
23
|
-
}, _ = C(() =>
|
22
|
+
}, _ = C(() => p.value.fields.find((r) => r.name == n.value.text).control.i18N);
|
24
23
|
return (l, o) => {
|
25
24
|
var r;
|
26
25
|
return i(), s("div", {
|
@@ -35,5 +34,5 @@ const k = ["title"], v = { class: "number" }, V = {
|
|
35
34
|
}
|
36
35
|
});
|
37
36
|
export {
|
38
|
-
|
37
|
+
T as default
|
39
38
|
};
|
@@ -1,11 +1,10 @@
|
|
1
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 {
|
2
|
+
import { J as V, t as u } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import "./assets/liquidjs-B8dqQyVv.js";
|
5
4
|
import "element-plus";
|
6
5
|
import "vue-router";
|
7
6
|
import "./assets/intro.js-Cg1adLK7.js";
|
8
|
-
const
|
7
|
+
const T = /* @__PURE__ */ b({
|
9
8
|
__name: "Update",
|
10
9
|
props: {
|
11
10
|
table: {},
|
@@ -62,5 +61,5 @@ const U = /* @__PURE__ */ b({
|
|
62
61
|
}
|
63
62
|
});
|
64
63
|
export {
|
65
|
-
|
64
|
+
T as default
|
66
65
|
};
|
@@ -1,8 +1,7 @@
|
|
1
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-
|
2
|
+
import { t as d } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
|
5
|
-
const U = /* @__PURE__ */ v({
|
4
|
+
const T = /* @__PURE__ */ v({
|
6
5
|
__name: "UpdateChild",
|
7
6
|
props: {
|
8
7
|
module: {},
|
@@ -84,5 +83,5 @@ const U = /* @__PURE__ */ v({
|
|
84
83
|
}
|
85
84
|
});
|
86
85
|
export {
|
87
|
-
|
86
|
+
T as default
|
88
87
|
};
|
@@ -1,8 +1,12 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
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-SNlEeN01.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";
|
3
8
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
|
5
|
-
const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"], K = /* @__PURE__ */ V({
|
9
|
+
const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"], X = /* @__PURE__ */ b({
|
6
10
|
__name: "Upload",
|
7
11
|
props: {
|
8
12
|
schema: {},
|
@@ -13,12 +17,12 @@ const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"],
|
|
13
17
|
modelValue: {}
|
14
18
|
},
|
15
19
|
setup(f) {
|
16
|
-
let g = f, { table: H, field: L, set: M, row: O, modelValue: _ } =
|
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) => {
|
17
21
|
t.value = !0, m.value = e.url;
|
18
22
|
}, U = () => {
|
19
23
|
if (o.value)
|
20
24
|
if (c.upload.method == "box")
|
21
|
-
|
25
|
+
A.getUploadToken().then((e) => {
|
22
26
|
o.value.split(",").forEach((a) => {
|
23
27
|
let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
24
28
|
p.value.push({ name: a, url: l });
|
@@ -29,29 +33,29 @@ const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"],
|
|
29
33
|
v.file.isImage(e) ? d.value = e : d.value = N.getFileIcon(e);
|
30
34
|
}
|
31
35
|
};
|
32
|
-
|
36
|
+
w(() => {
|
33
37
|
U();
|
34
38
|
});
|
35
39
|
let o = x(() => _.value);
|
36
|
-
return (e,
|
40
|
+
return (e, i) => {
|
37
41
|
const a = C("el-dialog");
|
38
|
-
return
|
39
|
-
(
|
42
|
+
return u(), n("div", S, [
|
43
|
+
(u(!0), n(B, null, E(s(p), (l, V) => (u(), n("img", {
|
40
44
|
class: "detail-image",
|
41
45
|
src: l.url,
|
42
46
|
onClick: (T) => s(h)(l),
|
43
47
|
alt: l.name,
|
44
|
-
key:
|
48
|
+
key: V
|
45
49
|
}, null, 8, j))), 128)),
|
46
50
|
F(a, {
|
47
51
|
draggable: "",
|
48
52
|
"append-to-body": "",
|
49
53
|
top: "5vh",
|
50
54
|
modelValue: s(t),
|
51
|
-
"onUpdate:modelValue":
|
55
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => R(t) ? t.value = l : t = l)
|
52
56
|
}, {
|
53
57
|
default: $(() => [
|
54
|
-
|
58
|
+
y("img", {
|
55
59
|
width: "100%",
|
56
60
|
src: s(m)
|
57
61
|
}, null, 8, z)
|
@@ -63,5 +67,5 @@ const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"],
|
|
63
67
|
}
|
64
68
|
});
|
65
69
|
export {
|
66
|
-
|
70
|
+
X as default
|
67
71
|
};
|