halo-pc 1.0.27 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
- package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
- package/dist/Autocomplete-CD6CsF2X.js +54 -0
- package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
- package/dist/Autocomplete-DkkUx0lx.js +53 -0
- package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
- package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
- package/dist/Callback-BRrShVCU.js +26 -0
- package/dist/Cascader-CurlPJsQ.js +87 -0
- package/dist/Cascader-i3KkCfFF.js +47 -0
- package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
- package/dist/Checkbox-CNMzO79X.js +76 -0
- package/dist/Code-BdDjNSqs.js +42 -0
- package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
- package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
- package/dist/Code-CqA6bVSZ.js +60 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
- package/dist/Column-BCz-Xp-3.js +75 -0
- package/dist/Comment-BoOQfrxv.js +104 -0
- package/dist/Compare-ChJu8LUo.js +44 -0
- package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
- package/dist/Copy-DBUSr3OW.js +49 -0
- package/dist/Custom-CNQIPMHT.js +57 -0
- package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
- package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
- package/dist/Date-BnRTPDSJ.js +43 -0
- package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
- package/dist/DateRange-BPQ2TOXk.js +63 -0
- package/dist/DateTime-CsZdXjmB.js +44 -0
- package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
- package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
- package/dist/Daterange-DCyMLI8G.js +63 -0
- package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
- package/dist/Delete-Di56R5Tf.js +62 -0
- package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
- package/dist/Dictionary-B8OMis9G.js +59 -0
- package/dist/Email-CCZH8SDT.js +54 -0
- package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
- package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
- package/dist/Index-B6sevgc6.js +4 -0
- package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
- package/dist/Index-CZYVZtFI.js +178 -0
- package/dist/Index-Cch9emdC.js +4 -0
- package/dist/Index-CfpZf8By.js +4 -0
- package/dist/Index-Cn3HXkPm.js +4 -0
- package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
- package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
- package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
- package/dist/Int-C5AxmjK0.js +46 -0
- package/dist/Int-RoCJiPje.js +44 -0
- package/dist/List-DJuE2QHL.js +79 -0
- package/dist/Maintaince-CdqWSHAZ.js +20 -0
- package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
- package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
- package/dist/Month-OH6snasK.js +43 -0
- package/dist/Month-iU9F-vQ5.js +44 -0
- package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
- package/dist/Paging-CYU3sSbD.js +99 -0
- package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
- package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
- package/dist/QueryApi-C3h4tWd0.js +20 -0
- package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
- package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
- package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
- package/dist/RichText-BkhW8muI.js +47 -0
- package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-BDe_uXW2.js} +1 -1
- package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
- package/dist/Select-BEgPZsaR.js +117 -0
- package/dist/Select-CY1CA4pv.js +86 -0
- package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
- package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
- package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
- package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
- package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
- package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
- package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
- package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
- package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
- package/dist/Text-BefOYKkr.js +4 -0
- package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
- package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
- package/dist/TextLink-DoArgh5L.js +65 -0
- package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
- package/dist/Time-D8Ikb-KB.js +43 -0
- package/dist/Timeline-BEt6ygzA.js +59 -0
- package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
- package/dist/Tree-ftxBqmRQ.js +122 -0
- package/dist/TreeNode-XITOvihe.js +42 -0
- package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
- package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
- package/dist/Upload-BlnOvJFg.js +150 -0
- package/dist/Upload-kUYBfIS2.js +72 -0
- package/dist/UploadApi-RRAsIVG7.js +20 -0
- package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
- package/dist/Year-Cre43mQI.js +47 -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/main-KTzfgTac.js +9105 -0
- package/dist/main.js +139 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Autocomplete-C9RS9-qw.js +0 -48
- package/dist/Autocomplete-DIucpEpj.js +0 -49
- package/dist/Callback-D6G_933H.js +0 -20
- package/dist/Cascader-C6t8Q18c.js +0 -41
- package/dist/Cascader-F_XWwXKY.js +0 -81
- package/dist/Checkbox-ipHs0O-8.js +0 -70
- package/dist/Code-DKtqow6y.js +0 -36
- package/dist/Code-LeguA9RL.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
- package/dist/Column-BeQwafyN.js +0 -70
- package/dist/Comment-DIcCHP9F.js +0 -98
- package/dist/Compare-Dzqm7kPE.js +0 -38
- package/dist/Copy-iLieXx22.js +0 -43
- package/dist/Custom-BGtEDHlD.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
- package/dist/Date-CNOCOcNz.js +0 -37
- package/dist/DateRange-CaIiObxN.js +0 -57
- package/dist/DateTime-CH6J1GoP.js +0 -38
- package/dist/Daterange-BUSKAGlK.js +0 -57
- package/dist/Delete-BeFC0gjD.js +0 -57
- package/dist/Dictionary-CsBiv-CI.js +0 -55
- package/dist/Email-Dwa6x3jW.js +0 -48
- package/dist/Index-Bpe7pY2Z.js +0 -4
- package/dist/Index-CUYQxzNd.js +0 -174
- package/dist/Index-DMnL8F7Y.js +0 -4
- package/dist/Index-DNG25ox2.js +0 -4
- package/dist/Index-DqUNI6MV.js +0 -4
- package/dist/Int-BFv18KXi.js +0 -38
- package/dist/Int-C0ijmdYS.js +0 -41
- package/dist/List-CfQzWq_5.js +0 -74
- package/dist/Maintaince-BzDEwQcU.js +0 -14
- package/dist/Month-Bp_Pfi_b.js +0 -37
- package/dist/Month-CKkjwzza.js +0 -38
- package/dist/Paging-DpoBp7x_.js +0 -95
- package/dist/QueryApi-VwISnk96.js +0 -13
- package/dist/RichText-CNahMrfb.js +0 -41
- package/dist/Select-BeNZqAP1.js +0 -112
- package/dist/Select-CqOE6uI8.js +0 -80
- package/dist/Text-5803XWI6.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
- package/dist/TextLink-TYXcDAlo.js +0 -59
- package/dist/Time-Dd-Trib4.js +0 -37
- package/dist/Timeline-D6LCIkQp.js +0 -53
- package/dist/Tree-BKmFZrK3.js +0 -118
- package/dist/TreeNode-L_A5ZKy0.js +0 -37
- package/dist/Upload-DJRh4a7g.js +0 -68
- package/dist/Upload-Ozg_nOpI.js +0 -147
- package/dist/UploadApi-DVx69g-F.js +0 -13
- package/dist/Year-D7XGe2So.js +0 -41
- package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
- package/dist/main-DB_sVyZe.js +0 -3620
@@ -0,0 +1,43 @@
|
|
1
|
+
import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as b, unref as e, isRef as g } 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 { k } from "./main-KTzfgTac.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const j = /* @__PURE__ */ c({
|
10
|
+
__name: "Time",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
emits: ["submit", "change", "update:modelValue"],
|
20
|
+
setup(p, { emit: d }) {
|
21
|
+
let o = d, i = p, { table: n, field: m, set: x, modelValue: s } = f(i), t = _({
|
22
|
+
get() {
|
23
|
+
return s.value;
|
24
|
+
},
|
25
|
+
set(l) {
|
26
|
+
o("update:modelValue", l), o("change", l);
|
27
|
+
}
|
28
|
+
});
|
29
|
+
return (l, a) => {
|
30
|
+
const u = V("el-time-select");
|
31
|
+
return h(), b(u, {
|
32
|
+
type: "time",
|
33
|
+
placeholder: e(k)(e(n).name, e(m).name),
|
34
|
+
disabled: e(m).control.readonly,
|
35
|
+
modelValue: e(t),
|
36
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => g(t) ? t.value = r : t = r)
|
37
|
+
}, null, 8, ["placeholder", "disabled", "modelValue"]);
|
38
|
+
};
|
39
|
+
}
|
40
|
+
});
|
41
|
+
export {
|
42
|
+
j as default
|
43
|
+
};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { defineComponent as h, toRefs as y, resolveComponent as l, openBlock as t, createBlock as n, unref as e, withCtx as o, createElementVNode as a, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } 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 { _ as H, I as g } from "./main-KTzfgTac.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const C = { class: "timeline-layout" }, B = ["innerHTML"], L = {
|
10
|
+
key: 0,
|
11
|
+
class: "timeline-detail"
|
12
|
+
}, w = /* @__PURE__ */ h({
|
13
|
+
__name: "Timeline",
|
14
|
+
props: {
|
15
|
+
searchData: {},
|
16
|
+
route: {},
|
17
|
+
module: {},
|
18
|
+
schema: {},
|
19
|
+
table: {},
|
20
|
+
layout: {},
|
21
|
+
next: {},
|
22
|
+
set: {}
|
23
|
+
},
|
24
|
+
setup(_) {
|
25
|
+
let p = _, { module: T, schema: b, table: m, layout: i, next: E, set: r } = y(p);
|
26
|
+
return (M, N) => {
|
27
|
+
const u = l("el-timeline-item"), d = l("el-timeline"), f = l("el-empty");
|
28
|
+
return t(), n(e(H), { class: "timeline" }, {
|
29
|
+
default: o(() => [
|
30
|
+
a("div", C, [
|
31
|
+
e(r)[e(m).name].length > 0 ? (t(), n(d, {
|
32
|
+
key: 0,
|
33
|
+
reverse: !1
|
34
|
+
}, {
|
35
|
+
default: o(() => [
|
36
|
+
(t(!0), c(k, null, x(e(r)[e(m).name], (s) => (t(), n(u, {
|
37
|
+
timestamp: s[e(i).time]
|
38
|
+
}, {
|
39
|
+
default: o(() => [
|
40
|
+
a("div", {
|
41
|
+
innerHTML: e(g).getHtml(s[e(i).text])
|
42
|
+
}, null, 8, B)
|
43
|
+
]),
|
44
|
+
_: 2
|
45
|
+
}, 1032, ["timestamp"]))), 256))
|
46
|
+
]),
|
47
|
+
_: 1
|
48
|
+
})) : (t(), n(f, { key: 1 }))
|
49
|
+
]),
|
50
|
+
e(m).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
});
|
54
|
+
};
|
55
|
+
}
|
56
|
+
});
|
57
|
+
export {
|
58
|
+
w as default
|
59
|
+
};
|
@@ -1,15 +1,19 @@
|
|
1
|
-
import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed 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 Ue, x as j, J as De, G as Ie, K as Ve, b as F, t as p, a as G, m as qe, T as J, h as Q, A as W, U as Le, M as Be } from "./main-KTzfgTac.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: {},
|
@@ -22,112 +26,112 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
22
26
|
set: {}
|
23
27
|
},
|
24
28
|
emits: ["refresh", "succeed", "search", "navigate"],
|
25
|
-
setup(
|
26
|
-
let
|
29
|
+
setup(X, { expose: Y, emit: Z }) {
|
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(), U = 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, U.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
|
-
|
47
|
+
}, oe = (l) => {
|
48
|
+
let t = r.value.id, o = r.value.data, n = J.getNextById(l, t, o, "Children");
|
49
|
+
Q.post(y.value.delete.route, [l]).then(() => {
|
50
|
+
J.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
|
+
D(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
|
+
}, D = (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
|
+
D(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 = I();
|
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
|
+
}, I = () => {
|
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
|
-
|
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 = I()), D(null, () => {
|
115
|
+
U = new Be(B.value, [S.value.$el, E.value]);
|
112
116
|
});
|
113
117
|
};
|
114
118
|
Ce(() => {
|
115
|
-
|
119
|
+
be();
|
116
120
|
}), we(() => {
|
117
|
-
|
118
|
-
}),
|
119
|
-
let l = { [
|
120
|
-
return
|
121
|
+
U.dispose();
|
122
|
+
}), q(() => {
|
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 Ue.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 =
|
128
|
-
}),
|
129
|
-
const
|
130
|
-
return i(), g(e(
|
131
|
+
a.value.currentKey = j.convert(l.query.id, M.value.type), R.value = I();
|
132
|
+
}), Y({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
|
133
|
+
const o = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), A = T("el-drawer");
|
134
|
+
return i(), g(e(De), {
|
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" }, Oe = /* @__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(Ie), {
|
150
154
|
schema: e(le),
|
151
155
|
table: e(m),
|
152
156
|
field: s,
|
@@ -158,11 +162,11 @@ const Ee = { class: "tree-left" }, Oe = /* @__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" }, Oe = /* @__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" }, Oe = /* @__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
|
-
[Te, e(
|
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" }, Oe = /* @__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(G), {
|
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(G), {
|
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" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
|
|
289
293
|
}
|
290
294
|
});
|
291
295
|
export {
|
292
|
-
|
296
|
+
tl as default
|
293
297
|
};
|
@@ -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 H, createCommentVNode as M } from "vue";
|
2
|
+
import { E as le, A as _, T as A, s as D } from "./main-KTzfgTac.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 = A.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 = D.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 = D.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 = A.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, H(t[d(l).text]), 1),
|
106
|
+
d(l).suffix ? (k(), w("div", ae, H(t[d(l).suffix]), 1)) : M("", !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)) : M("", !0)
|
116
|
+
], 512);
|
117
|
+
};
|
118
|
+
}
|
119
|
+
});
|
120
|
+
export {
|
121
|
+
he as default
|
122
|
+
};
|
@@ -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-KTzfgTac.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
|
+
};
|