halo-pc 1.0.21 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-4S7jNdlM.js +200 -0
- package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
- package/dist/Autocomplete-B9SJNrNq.js +53 -0
- package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
- package/dist/Autocomplete-BZNDoWFj.js +54 -0
- package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
- package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
- package/dist/Callback-xlj8oj2-.js +26 -0
- package/dist/Cascader-Cwi5mukb.js +87 -0
- package/dist/Cascader-D1RbjsMs.js +47 -0
- package/dist/Checkbox-DFnVivE9.js +76 -0
- package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
- package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
- package/dist/Code-CEafFSlR.js +4 -0
- package/dist/Code-CTmcyEEu.js +60 -0
- package/dist/Code-DEOvcbgy.js +42 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
- package/dist/Column-zAYqqGgI.js +74 -0
- package/dist/Comment-BZTVtxyP.js +104 -0
- package/dist/Compare-DMDVEK_Q.js +63 -0
- package/dist/Compare-Dy_YDKN2.js +43 -0
- package/dist/Copy-KA_-9J5g.js +49 -0
- package/dist/Custom-BpQzSpoK.js +57 -0
- package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
- package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js} +64 -60
- package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
- package/dist/Date-yqT5zILQ.js +43 -0
- package/dist/DateRange-CUQsaLxD.js +63 -0
- package/dist/DateTime-DcerQByM.js +44 -0
- package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
- package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
- package/dist/Daterange-DY2i3jwP.js +63 -0
- package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
- package/dist/Delete-CXnvlNw9.js +62 -0
- package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
- package/dist/Dictionary-DtXqTf_k.js +59 -0
- package/dist/Email-ofMPw09E.js +54 -0
- package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
- package/dist/Image-BwJO-IEo.js +9 -0
- package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
- package/dist/Index-Bwy9Q7qy.js +4 -0
- package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
- package/dist/Index-Ch5_Jqsf.js +4 -0
- package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
- package/dist/Index-DnNVMYOZ.js +4 -0
- package/dist/Index-j9BffBys.js +178 -0
- package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
- package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
- package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
- package/dist/Int-BWcRpPzt.js +44 -0
- package/dist/Int-BYyavcrM.js +46 -0
- package/dist/List-BejoBArm.js +79 -0
- package/dist/Maintaince-Dlh2ICnO.js +20 -0
- package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
- package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
- package/dist/Month-Cf8e0cin.js +43 -0
- package/dist/Month-DaYaF2WK.js +44 -0
- package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
- package/dist/Paging-DoQ_cXwj.js +99 -0
- package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
- package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
- package/dist/QueryApi-CPQ67lb4.js +20 -0
- package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
- package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
- package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
- package/dist/RichText-Cj5QP79L.js +47 -0
- package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
- package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
- package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
- package/dist/Select-DFLY8nGY.js +86 -0
- package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
- package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
- package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
- package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
- package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
- package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
- package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
- package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
- package/dist/Text-C05EoDxO.js +59 -0
- package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
- package/dist/Text-DqapEwUL.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
- package/dist/TextLink-CQ_46bry.js +65 -0
- package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
- package/dist/Time-DxyveGcA.js +43 -0
- package/dist/Timeline-C1xOEcU4.js +59 -0
- package/dist/Tree-BK6p6Ake.js +122 -0
- package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
- package/dist/TreeNode-C84IoqkK.js +42 -0
- package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
- package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
- package/dist/Upload-CK-ALAKV.js +72 -0
- package/dist/Upload-CRpCHz3m.js +150 -0
- package/dist/UploadApi-B-7WPVHD.js +20 -0
- package/dist/Year-BOL9ynRU.js +47 -0
- package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -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/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-CnPQ_RYM.js +8948 -0
- package/dist/main.js +130 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Article-D3N6eVpH.js +0 -195
- package/dist/Autocomplete-C1Q-qo5y.js +0 -49
- package/dist/Autocomplete-C_t_3Onz.js +0 -48
- package/dist/Callback-BcjLHYz6.js +0 -20
- package/dist/Cascader-BMs1Kw-s.js +0 -81
- package/dist/Cascader-BoZLMQjq.js +0 -41
- package/dist/Checkbox-DeuCkQ_E.js +0 -70
- package/dist/Code-CmB3ZGnM.js +0 -54
- package/dist/Code-Q9ETcIfA.js +0 -36
- package/dist/Code-hiW76EUm.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
- package/dist/Column-K0p0pVuf.js +0 -69
- package/dist/Comment-B_jDWUXE.js +0 -98
- package/dist/Compare-CziDSVLD.js +0 -37
- package/dist/Compare-DFDzyQIR.js +0 -57
- package/dist/Copy-gHXEFE58.js +0 -43
- package/dist/Custom-DS1OrDHT.js +0 -51
- package/dist/Date-BOrgXdKV.js +0 -37
- package/dist/DateRange-Clg_We_d.js +0 -57
- package/dist/DateTime-Ba-L9NIq.js +0 -38
- package/dist/Daterange-Gaj6hNOK.js +0 -57
- package/dist/Delete-HzVURBlh.js +0 -57
- package/dist/Dictionary-DKnp-UJn.js +0 -55
- package/dist/Email-CpOxaSSw.js +0 -48
- package/dist/Image-DRIunv3_.js +0 -9
- package/dist/Index-DSKuNKCT.js +0 -4
- package/dist/Index-QIBRYf1L.js +0 -4
- package/dist/Index-ZOfKMgat.js +0 -4
- package/dist/Index-bxLda8lZ.js +0 -174
- package/dist/Int-DmNjhEfK.js +0 -38
- package/dist/Int-nUzbSSOv.js +0 -41
- package/dist/List-gNI3y_wH.js +0 -74
- package/dist/Maintaince-pTASKuMA.js +0 -14
- package/dist/Month-CHfaIo8p.js +0 -38
- package/dist/Month-DgztqRaq.js +0 -37
- package/dist/Paging-CBgVct8q.js +0 -95
- package/dist/QueryApi-Wf86Sm6m.js +0 -13
- package/dist/RichText-Cc_jptgY.js +0 -41
- package/dist/Select-wxKjwxJj.js +0 -80
- package/dist/Text-DgZjeg-u.js +0 -4
- package/dist/Text-GuLK7BYX.js +0 -53
- package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
- package/dist/TextLink-B_Ur1pg0.js +0 -59
- package/dist/Time-CmyrAm3i.js +0 -37
- package/dist/Timeline-B85T2wBn.js +0 -53
- package/dist/Tree-OqvNLgYj.js +0 -118
- package/dist/TreeNode-Ba2f55wK.js +0 -37
- package/dist/Upload-D9HeSZCg.js +0 -68
- package/dist/Upload-DXADyB6r.js +0 -147
- package/dist/UploadApi-DAT-xdsM.js +0 -13
- package/dist/Year-Dx_qNPrz.js +0 -41
- package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
- package/dist/main-COiaaxGk.js +0 -3542
@@ -0,0 +1,122 @@
|
|
1
|
+
import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as V, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as K, renderList as L, createBlock as B, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as D, createCommentVNode as H } from "vue";
|
2
|
+
import { D as le, A as _, T as M, s as A } from "./main-CnPQ_RYM.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
const te = { class: "option-text" }, ae = {
|
9
|
+
key: 0,
|
10
|
+
class: "option-suffix"
|
11
|
+
}, he = /* @__PURE__ */ Q({
|
12
|
+
__name: "Tree",
|
13
|
+
props: {
|
14
|
+
route: {},
|
15
|
+
validateErrors: {},
|
16
|
+
module: {},
|
17
|
+
schema: {},
|
18
|
+
table: {},
|
19
|
+
layout: {},
|
20
|
+
next: {},
|
21
|
+
set: {}
|
22
|
+
},
|
23
|
+
setup(F, { expose: P }) {
|
24
|
+
let S = F, { module: $, schema: re, table: u, layout: l, set: p } = U(S), E = m(), T = m([]), x = m(), y = m(0), g = m([]), R = m(!0), z = (e, r, o) => {
|
25
|
+
let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
|
26
|
+
a && (a[l.value.expand] = !0);
|
27
|
+
}, W = (e, r, o) => {
|
28
|
+
let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
|
29
|
+
a && (a[l.value.expand] = !1);
|
30
|
+
}, j = (e, r, o) => {
|
31
|
+
let a = r.checkedKeys, n = e[l.value.id], i = _.contains(a, n), c = [], s = [], h = M.getChildren(e, "Children").map((t) => t[l.value.id]), f = p.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, f);
|
32
|
+
if (i) {
|
33
|
+
c.push(e[l.value.id]);
|
34
|
+
let t = _.except(h, v);
|
35
|
+
t.length && (a.push(...t), c.push(...t));
|
36
|
+
} else
|
37
|
+
s.push(n), v.length == h.length && (s.push(...h), _.remove(a, h));
|
38
|
+
c.length && q(c), s.length && G(s);
|
39
|
+
}, q = (e) => {
|
40
|
+
for (let r = 0; r < e.length; r++) {
|
41
|
+
let o = A.getDefaultRow(u.value);
|
42
|
+
o[l.value.checked] = e[r], p.value[u.value.name].push(o);
|
43
|
+
}
|
44
|
+
}, G = (e) => {
|
45
|
+
let r = p.value[u.value.name];
|
46
|
+
for (let o = 0; o < e.length; o++) {
|
47
|
+
let a = r.find((n) => n[l.value.checked] == e[o]);
|
48
|
+
_.remove(r, a);
|
49
|
+
}
|
50
|
+
}, J = (e) => {
|
51
|
+
x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
|
52
|
+
}, I = (e, r, o) => {
|
53
|
+
g.value = A.getLines(r.data, y.value, (a) => [a], () => 1), V(() => {
|
54
|
+
let a = o[e.name].map((i) => i[r.checked]), n = 0;
|
55
|
+
for (let i = 0; i < g.value.length; i++) {
|
56
|
+
let c = g.value[i];
|
57
|
+
for (let s = 0; s < c.length; s++) {
|
58
|
+
let C = T.value[n], h = c[s].data, f = M.getFlat(h, "Children").map((t) => t[r.id]), v = _.intersect(f, a);
|
59
|
+
if (!(v.length == 1 && f.length > 1)) for (let t = 0; t < v.length; t++) {
|
60
|
+
let O = v[t];
|
61
|
+
C.setChecked(O, !0, !1);
|
62
|
+
}
|
63
|
+
n++;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
});
|
67
|
+
};
|
68
|
+
return X(() => {
|
69
|
+
x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
|
70
|
+
}), Y(() => u.value, (e, r) => {
|
71
|
+
R.value = !1, V(() => {
|
72
|
+
R.value = !0, I(e, l.value, p.value);
|
73
|
+
});
|
74
|
+
}), P({ resize: J }), (e, r) => {
|
75
|
+
const o = N("el-tree"), a = N("el-col"), n = N("el-row");
|
76
|
+
return k(), w("div", {
|
77
|
+
ref_key: "layoutRef",
|
78
|
+
ref: E,
|
79
|
+
class: "ha-tree-layout"
|
80
|
+
}, [
|
81
|
+
d(R) ? (k(!0), w(K, { key: 0 }, L(d(g), (i, c) => (k(), B(n, null, {
|
82
|
+
default: b(() => [
|
83
|
+
(k(!0), w(K, null, L(i, ({ data: s, span: C, index: h }, f) => (k(), B(a, {
|
84
|
+
span: C,
|
85
|
+
key: `${c}.${f}`
|
86
|
+
}, {
|
87
|
+
default: b(() => [
|
88
|
+
Z(o, {
|
89
|
+
ref_for: !0,
|
90
|
+
ref_key: "treeRefs",
|
91
|
+
ref: T,
|
92
|
+
"show-checkbox": "",
|
93
|
+
"highlight-current": "",
|
94
|
+
"default-expand-all": !1,
|
95
|
+
"expand-on-click-node": !1,
|
96
|
+
"node-key": d(l).id,
|
97
|
+
data: s,
|
98
|
+
props: { children: "Children", label: d(l).text },
|
99
|
+
disabled: d($).type == "Detail",
|
100
|
+
onNodeExpand: d(z),
|
101
|
+
onNodeCollapse: d(W),
|
102
|
+
onCheck: (v, t) => d(j)(v, t, h)
|
103
|
+
}, {
|
104
|
+
default: b(({ node: v, data: t }) => [
|
105
|
+
ee("div", te, D(t[d(l).text]), 1),
|
106
|
+
d(l).suffix ? (k(), w("div", ae, D(t[d(l).suffix]), 1)) : H("", !0)
|
107
|
+
]),
|
108
|
+
_: 2
|
109
|
+
}, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
|
110
|
+
]),
|
111
|
+
_: 2
|
112
|
+
}, 1032, ["span"]))), 128))
|
113
|
+
]),
|
114
|
+
_: 2
|
115
|
+
}, 1024))), 256)) : H("", !0)
|
116
|
+
], 512);
|
117
|
+
};
|
118
|
+
}
|
119
|
+
});
|
120
|
+
export {
|
121
|
+
he as default
|
122
|
+
};
|
@@ -1,15 +1,19 @@
|
|
1
|
-
import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as q, watch as Ne, resolveComponent as
|
2
|
-
import {
|
3
|
-
import
|
1
|
+
import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as q, watch as Ne, resolveComponent as T, 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 Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as b, vShow as Te, nextTick as O } from "vue";
|
2
|
+
import { c as P, d as Ie, w as j, I as Ue, E as De, J as Ve, b as F, t as p, a as J, m as qe, T as G, h as Q, A as W, U as Le, M as Be } from "./main-CnPQ_RYM.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
5
|
+
import "./assets/clone-BZn0cTAu.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
8
|
import "vue-router";
|
5
9
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const Ee = { class: "tree-left" },
|
10
|
+
const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), He = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Me = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Ae = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Oe = {
|
7
11
|
key: 2,
|
8
12
|
class: "ha-empty"
|
9
|
-
},
|
13
|
+
}, Pe = {
|
10
14
|
key: 3,
|
11
15
|
class: "tree-add"
|
12
|
-
},
|
16
|
+
}, je = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), tl = /* @__PURE__ */ xe({
|
13
17
|
__name: "Tree",
|
14
18
|
props: {
|
15
19
|
searchData: {},
|
@@ -23,111 +27,111 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
23
27
|
},
|
24
28
|
emits: ["refresh", "succeed", "search", "navigate"],
|
25
29
|
setup(X, { expose: Y, emit: Z }) {
|
26
|
-
let
|
30
|
+
let k = Z, ee = X, { route: N, module: L, schema: le, table: m, layout: r, next: y, set: Fe, searchData: te } = ge(ee), K = v(), B = v(), x = v(), S = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), I = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), z = () => {
|
27
31
|
if (!K.value)
|
28
32
|
return;
|
29
33
|
let l = K.value.$el.querySelector(".is-context");
|
30
34
|
l && l.classList.remove("is-context");
|
31
|
-
},
|
32
|
-
|
35
|
+
}, re = (l, t, o, n) => {
|
36
|
+
z(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, I.show(l);
|
33
37
|
}, $ = (l) => {
|
34
|
-
let t =
|
35
|
-
l == "sibling" ?
|
36
|
-
let n =
|
37
|
-
l == "copy" && (u += "&id=" + a.value.currentNode[
|
38
|
-
},
|
39
|
-
let l = a.value.currentNode[
|
40
|
-
|
41
|
-
|
38
|
+
let t = r.value.parentId, o = { [t]: null };
|
39
|
+
l == "sibling" ? o[t] = a.value.currentNode[t] : l == "child" && (o[t] = a.value.currentNode[r.value.id]);
|
40
|
+
let n = P.encode(o), u = `${y.value.insert.route}?default=${n}`;
|
41
|
+
l == "copy" && (u += "&id=" + a.value.currentNode[r.value.id]), d.value.url = u, d.value.visible = !0;
|
42
|
+
}, H = () => {
|
43
|
+
let l = a.value.currentNode[r.value.id], t = a.value.currentNode[r.value.text], o = p("common.confirm_delete", t);
|
44
|
+
qe.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
|
45
|
+
oe(l);
|
42
46
|
});
|
43
|
-
},
|
44
|
-
let t =
|
45
|
-
|
46
|
-
G.removeById(l, t,
|
47
|
+
}, oe = (l) => {
|
48
|
+
let t = r.value.id, o = r.value.data, n = G.getNextById(l, t, o, "Children");
|
49
|
+
Q.post(y.value.delete.route, [l]).then(() => {
|
50
|
+
G.removeById(l, t, o, "Children");
|
47
51
|
let u = null;
|
48
|
-
n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)),
|
49
|
-
|
52
|
+
n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), k("succeed", () => {
|
53
|
+
U(a.value.scrollTop);
|
50
54
|
});
|
51
55
|
});
|
52
56
|
}, ne = (l) => {
|
53
57
|
a.value.scrollTop = l.scrollTop;
|
54
|
-
},
|
55
|
-
a.value.visible = !1,
|
56
|
-
a.value.visible = !0,
|
58
|
+
}, U = (l = null, t = null) => {
|
59
|
+
a.value.visible = !1, O(() => {
|
60
|
+
a.value.visible = !0, O(() => {
|
57
61
|
if (l == null) {
|
58
|
-
let
|
59
|
-
|
62
|
+
let o = K.value.$el.querySelector(".el-tree-node.is-current");
|
63
|
+
o && o.scrollIntoView({ block: "center", behavior: "smooth" });
|
60
64
|
} else
|
61
65
|
S.value.setScrollTop(l);
|
62
66
|
t && t();
|
63
67
|
});
|
64
68
|
});
|
65
69
|
}, ue = () => {
|
66
|
-
d.value.visible = !1,
|
67
|
-
|
70
|
+
d.value.visible = !1, k("succeed", () => {
|
71
|
+
U(a.value.scrollTop);
|
68
72
|
});
|
69
73
|
}, se = (l) => {
|
70
74
|
d.value.type = l.module.type, d.value.name = l.module.name;
|
71
75
|
}, de = () => {
|
72
76
|
d.value.visible = !1;
|
73
|
-
}, ie = (l, t,
|
74
|
-
|
75
|
-
let n = l[
|
76
|
-
if (
|
77
|
+
}, ie = (l, t, o) => {
|
78
|
+
z();
|
79
|
+
let n = l[r.value.id];
|
80
|
+
if (W.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
|
77
81
|
x.value.refresh();
|
78
82
|
else {
|
79
|
-
a.value.currentKey = n, R.value =
|
80
|
-
let u =
|
81
|
-
|
83
|
+
a.value.currentKey = n, R.value = D();
|
84
|
+
let u = Le.getUrl(N.value.fullPath, { id: n });
|
85
|
+
k("navigate", u);
|
82
86
|
}
|
83
|
-
}, ce = (l, t,
|
84
|
-
|
85
|
-
}, ve = (l, t,
|
87
|
+
}, ce = (l, t, o) => {
|
88
|
+
W.remove(a.value.expandedKeys, l[r.value.id]);
|
89
|
+
}, ve = (l, t, o, n) => {
|
86
90
|
let u = {
|
87
|
-
table:
|
88
|
-
id: l.data[
|
89
|
-
targetId: t.data[
|
90
|
-
position:
|
91
|
+
table: r.value.table,
|
92
|
+
id: l.data[r.value.id],
|
93
|
+
targetId: t.data[r.value.id],
|
94
|
+
position: o
|
91
95
|
};
|
92
|
-
|
96
|
+
Q.post(r.value.operation.route, u).then((A) => {
|
93
97
|
});
|
94
98
|
}, fe = (l) => {
|
95
|
-
|
99
|
+
k("search", l);
|
96
100
|
}, me = (l) => {
|
97
101
|
}, pe = (l, t) => l ? t[m.value.text].indexOf(l) !== -1 : !0, ye = () => {
|
98
|
-
|
102
|
+
k("refresh");
|
99
103
|
}, he = (l, t) => {
|
100
104
|
if (!x.value || !x.value.keyboard)
|
101
105
|
return !1;
|
102
106
|
x.value.keyboard(l, t);
|
103
107
|
}, _e = () => {
|
104
108
|
S.value.update();
|
105
|
-
},
|
106
|
-
let l = y.value[
|
109
|
+
}, D = () => {
|
110
|
+
let l = y.value[r.value.page.toLowerCase()].route;
|
107
111
|
return a.value.currentKey && (l += "?id=" + a.value.currentKey), l;
|
108
|
-
},
|
112
|
+
}, be = () => {
|
109
113
|
let l = N.value.query.id, t;
|
110
|
-
l == null ? t =
|
111
|
-
I = new
|
114
|
+
l == null ? t = r.value.updateKey : t = j.convert(l, M.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = D()), U(null, () => {
|
115
|
+
I = new Be(B.value, [S.value.$el, E.value]);
|
112
116
|
});
|
113
117
|
};
|
114
118
|
Ce(() => {
|
115
|
-
|
119
|
+
be();
|
116
120
|
}), we(() => {
|
117
121
|
I.dispose();
|
118
122
|
}), q(() => {
|
119
|
-
let l = { [
|
120
|
-
return
|
123
|
+
let l = { [r.value.parentId]: N.value.query.id };
|
124
|
+
return P.encode(l);
|
121
125
|
});
|
122
|
-
let
|
126
|
+
let ke = q(() => {
|
123
127
|
let l = `/${m.value.name}/tree-node`;
|
124
|
-
return
|
125
|
-
}),
|
128
|
+
return Ie.getComponent(l, "partial", "tree-node");
|
129
|
+
}), M = q(() => m.value.fields.find((t) => t.name == r.value.id));
|
126
130
|
return Ne(() => N.value, (l, t) => {
|
127
|
-
a.value.currentKey =
|
131
|
+
a.value.currentKey = j.convert(l.query.id, M.value.type), R.value = D();
|
128
132
|
}), Y({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
|
129
|
-
const
|
130
|
-
return i(), g(e(
|
133
|
+
const o = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), A = T("el-drawer");
|
134
|
+
return i(), g(e(Ue), {
|
131
135
|
class: "tree",
|
132
136
|
width: e(a).width,
|
133
137
|
onResize: t[5] || (t[5] = (s) => e(a).width = s)
|
@@ -140,13 +144,13 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
140
144
|
ref: ae,
|
141
145
|
class: "tree-search"
|
142
146
|
}, [
|
143
|
-
_(
|
147
|
+
_(o, null, {
|
144
148
|
default: f(() => [
|
145
|
-
(i(!0), h(Ke, null, Se(e(m).search, (s,
|
149
|
+
(i(!0), h(Ke, null, Se(e(m).search, (s, V) => (i(), h("div", {
|
146
150
|
class: "search-field",
|
147
|
-
key:
|
151
|
+
key: V
|
148
152
|
}, [
|
149
|
-
_(e(
|
153
|
+
_(e(De), {
|
150
154
|
schema: e(le),
|
151
155
|
table: e(m),
|
152
156
|
field: s,
|
@@ -158,11 +162,11 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
158
162
|
]),
|
159
163
|
_: 1
|
160
164
|
})
|
161
|
-
], 512)) : (i(), g(e(
|
165
|
+
], 512)) : (i(), g(e(Ve), {
|
162
166
|
key: 1,
|
163
|
-
title: e(
|
167
|
+
title: e(F)(e(L).type, e(L).name)
|
164
168
|
}, null, 8, ["title"])),
|
165
|
-
Re(_(
|
169
|
+
Re(_(o, {
|
166
170
|
ref_key: "scrollbarRef",
|
167
171
|
ref: S,
|
168
172
|
class: "tree-content",
|
@@ -174,25 +178,25 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
174
178
|
ref_key: "treeRef",
|
175
179
|
ref: K,
|
176
180
|
"highlight-current": "",
|
177
|
-
"show-checkbox": e(
|
181
|
+
"show-checkbox": e(r).checkbox,
|
178
182
|
"expand-on-click-node": !1,
|
179
|
-
draggable: !!e(
|
180
|
-
data: e(
|
181
|
-
"node-key": e(
|
183
|
+
draggable: !!e(r).operation,
|
184
|
+
data: e(r).data,
|
185
|
+
"node-key": e(r).id,
|
182
186
|
"current-node-key": e(a).currentKey,
|
183
|
-
props: { children: "Children", label: e(
|
187
|
+
props: { children: "Children", label: e(r).text },
|
184
188
|
"filter-node-method": e(pe),
|
185
189
|
"default-expanded-keys": e(a).expandedKeys,
|
186
190
|
onNodeClick: e(ie),
|
187
|
-
onNodeContextmenu: e(
|
191
|
+
onNodeContextmenu: e(re),
|
188
192
|
onNodeCollapse: e(ce),
|
189
193
|
onNodeDrop: e(ve)
|
190
194
|
}, {
|
191
|
-
default: f(({ node: s, data:
|
192
|
-
(i(), g($e(e(
|
195
|
+
default: f(({ node: s, data: V }) => [
|
196
|
+
(i(), g($e(e(ke)), {
|
193
197
|
table: e(m),
|
194
|
-
layout: e(
|
195
|
-
row:
|
198
|
+
layout: e(r),
|
199
|
+
row: V,
|
196
200
|
node: s
|
197
201
|
}, null, 8, ["table", "layout", "row", "node"]))
|
198
202
|
]),
|
@@ -206,46 +210,46 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
206
210
|
c("li", {
|
207
211
|
onClick: t[0] || (t[0] = (s) => e($)("child"))
|
208
212
|
}, [
|
209
|
-
|
210
|
-
w(
|
213
|
+
ze,
|
214
|
+
w(b(e(p)("tree.add_sub_item")), 1)
|
211
215
|
]),
|
212
216
|
c("li", {
|
213
217
|
onClick: t[1] || (t[1] = (s) => e($)("sibling"))
|
214
218
|
}, [
|
215
|
-
|
216
|
-
w(
|
219
|
+
He,
|
220
|
+
w(b(e(p)("tree.add_same_grade")), 1)
|
217
221
|
]),
|
218
222
|
c("li", {
|
219
223
|
onClick: t[2] || (t[2] = (s) => e($)("copy"))
|
220
224
|
}, [
|
221
|
-
|
222
|
-
w(
|
225
|
+
Me,
|
226
|
+
w(b(e(p)("common.copy")), 1)
|
223
227
|
]),
|
224
228
|
e(y).delete ? (i(), h("li", {
|
225
229
|
key: 0,
|
226
230
|
onClick: t[3] || (t[3] = //@ts-ignore
|
227
|
-
(...s) => e(
|
231
|
+
(...s) => e(H) && e(H)(...s))
|
228
232
|
}, [
|
229
|
-
|
230
|
-
w(
|
233
|
+
Ae,
|
234
|
+
w(b(e(p)("common.delete")), 1)
|
231
235
|
])) : C("", !0)
|
232
236
|
], 512)
|
233
237
|
]),
|
234
238
|
_: 1
|
235
239
|
}, 8, ["onScroll"]), [
|
236
|
-
[
|
240
|
+
[Te, e(r).data.length]
|
237
241
|
]),
|
238
|
-
e(
|
239
|
-
!e(
|
242
|
+
e(r).data.length ? C("", !0) : (i(), h("div", Oe, b(e(p)("common.no_data")), 1)),
|
243
|
+
!e(r).data.length && e(y).insert ? (i(), h("div", Pe, [
|
240
244
|
_(u, {
|
241
245
|
type: "primary",
|
242
246
|
onClick: e($)
|
243
247
|
}, {
|
244
248
|
icon: f(() => [
|
245
|
-
|
249
|
+
je
|
246
250
|
]),
|
247
251
|
default: f(() => [
|
248
|
-
w(" " +
|
252
|
+
w(" " + b(e(y).insert.title), 1)
|
249
253
|
]),
|
250
254
|
_: 1
|
251
255
|
}, 8, ["onClick"])
|
@@ -258,22 +262,22 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
258
262
|
ref: E,
|
259
263
|
class: "tree-detail"
|
260
264
|
}, [
|
261
|
-
e(a).currentKey ? (i(), g(e(
|
265
|
+
e(a).currentKey ? (i(), g(e(J), {
|
262
266
|
key: 0,
|
263
267
|
ref_key: "singleRef",
|
264
268
|
ref: x,
|
265
269
|
url: e(R)
|
266
270
|
}, null, 8, ["url"])) : C("", !0)
|
267
271
|
], 512),
|
268
|
-
_(
|
272
|
+
_(A, {
|
269
273
|
size: "60%",
|
270
274
|
"destroy-on-close": "",
|
271
|
-
title: e(
|
275
|
+
title: e(F)(e(d).type, e(d).name),
|
272
276
|
modelValue: e(d).visible,
|
273
277
|
"onUpdate:modelValue": t[4] || (t[4] = (s) => e(d).visible = s)
|
274
278
|
}, {
|
275
279
|
default: f(() => [
|
276
|
-
_(e(
|
280
|
+
_(e(J), {
|
277
281
|
url: e(d).url,
|
278
282
|
onLoaded: e(se),
|
279
283
|
onSucceed: e(ue),
|
@@ -289,5 +293,5 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
289
293
|
}
|
290
294
|
});
|
291
295
|
export {
|
292
|
-
|
296
|
+
tl as default
|
293
297
|
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { defineComponent as x, toRefs as h, computed as C, openBlock as a, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as d } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { t as g, S as y } from "./main-CnPQ_RYM.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
const k = ["title"], v = { class: "number" }, S = {
|
9
|
+
key: 0,
|
10
|
+
class: "option-suffix"
|
11
|
+
}, V = {
|
12
|
+
key: 1,
|
13
|
+
class: "count"
|
14
|
+
}, H = /* @__PURE__ */ x({
|
15
|
+
__name: "TreeNode",
|
16
|
+
props: {
|
17
|
+
table: {},
|
18
|
+
layout: {},
|
19
|
+
row: {},
|
20
|
+
node: {}
|
21
|
+
},
|
22
|
+
setup(p) {
|
23
|
+
let u = p, { table: c, layout: r, row: t, node: m } = h(u), f = (o, l) => {
|
24
|
+
let n = (o.parent.data.Children ? o.parent.data.Children.indexOf(l) : o.parent.data.indexOf(l)) + 1;
|
25
|
+
return y.padLeft(n, 2, "0");
|
26
|
+
}, _ = C(() => c.value.fields.find((n) => n.name == r.value.text).control.i18N);
|
27
|
+
return (o, l) => {
|
28
|
+
var n;
|
29
|
+
return a(), s("div", {
|
30
|
+
title: e(t)[e(r).title]
|
31
|
+
}, [
|
32
|
+
N("span", v, i(e(f)(e(m), e(t))), 1),
|
33
|
+
b(" " + i((n = e(_)) != null && n.value ? e(g)(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
|
34
|
+
e(r).suffix ? (a(), s("span", S, i(e(t)[e(r).suffix]), 1)) : d("", !0),
|
35
|
+
e(t).Children && e(t).Children.length > 0 ? (a(), s("span", V, "(" + i(e(t).Children.length) + ")", 1)) : d("", !0)
|
36
|
+
], 8, k);
|
37
|
+
};
|
38
|
+
}
|
39
|
+
});
|
40
|
+
export {
|
41
|
+
H as default
|
42
|
+
};
|
@@ -1,9 +1,14 @@
|
|
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
|
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 s, createSlots as y, createTextVNode as a, toDisplayString as r, createElementVNode as p } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { N, t as m } from "./main-CnPQ_RYM.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "vue-router";
|
5
10
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__PURE__ */ p("i", { class: "fa fa-chevron-left" }, null, -1),
|
11
|
+
const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__PURE__ */ p("i", { class: "fa fa-chevron-left" }, null, -1), A = /* @__PURE__ */ b({
|
7
12
|
__name: "Update",
|
8
13
|
props: {
|
9
14
|
table: {},
|
@@ -12,27 +17,27 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
|
|
12
17
|
set: {}
|
13
18
|
},
|
14
19
|
emits: ["submit", "close"],
|
15
|
-
setup(
|
20
|
+
setup(u, { expose: f, emit: _ }) {
|
16
21
|
let n = _;
|
17
|
-
C(
|
18
|
-
let o = h(!1),
|
19
|
-
o.value = !0, n("submit",
|
22
|
+
C(u);
|
23
|
+
let o = h(!1), i = (l) => {
|
24
|
+
o.value = !0, n("submit", l, null, (k) => {
|
20
25
|
o.value = !1;
|
21
26
|
});
|
22
27
|
}, d = () => {
|
23
28
|
n("close");
|
24
29
|
};
|
25
|
-
return
|
30
|
+
return f({ submit: i }), (l, k) => {
|
26
31
|
const c = x("el-button");
|
27
32
|
return g(), v(e(N), { padding: 5 }, {
|
28
33
|
default: t(() => [
|
29
|
-
|
34
|
+
s(c, {
|
30
35
|
type: "primary",
|
31
36
|
loading: e(o),
|
32
|
-
onClick: e(
|
37
|
+
onClick: e(i)
|
33
38
|
}, y({
|
34
39
|
default: t(() => [
|
35
|
-
|
40
|
+
a(" " + r(e(m)("common.confirm")), 1)
|
36
41
|
]),
|
37
42
|
_: 2
|
38
43
|
}, [
|
@@ -44,12 +49,12 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
|
|
44
49
|
key: "0"
|
45
50
|
}
|
46
51
|
]), 1032, ["loading", "onClick"]),
|
47
|
-
|
52
|
+
s(c, { onClick: e(d) }, {
|
48
53
|
icon: t(() => [
|
49
54
|
B
|
50
55
|
]),
|
51
56
|
default: t(() => [
|
52
|
-
|
57
|
+
a(" " + r(e(m)("common.back")), 1)
|
53
58
|
]),
|
54
59
|
_: 1
|
55
60
|
}, 8, ["onClick"])
|
@@ -60,5 +65,5 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
|
|
60
65
|
}
|
61
66
|
});
|
62
67
|
export {
|
63
|
-
|
68
|
+
A as default
|
64
69
|
};
|