halo-pc 1.0.36 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CSL7LnKj.js → Article-H_clf90b.js} +56 -59
- package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-BLi4TNA7.js} +3 -4
- package/dist/Autocomplete-BF9x0F4f.js +49 -0
- package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-CcIzTPSr.js} +11 -12
- package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-DMm6oI1g.js} +1 -1
- package/dist/{CSharp-CMmXPS2i.js → CSharp-CZOchOE-.js} +1 -1
- package/dist/Calender-BoQV7bhA.js +10 -0
- package/dist/Callback-79Bw4RwY.js +20 -0
- package/dist/Cascader-D1Ou5OSg.js +41 -0
- package/dist/{Cascader-CeQ0jUxU.js → Cascader-DMhl98vw.js} +25 -26
- package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-C6t6S7ii.js} +1 -1
- package/dist/{Checkbox--pNX7Slb.js → Checkbox-DtrXMDBR.js} +13 -14
- package/dist/Code-B8ISTTYK.js +54 -0
- package/dist/Code-BMlBvnqa.js +4 -0
- package/dist/{Code-C6A3DOQp.js → Code-DDacfgvl.js} +1 -1
- package/dist/Code-DIGn8Raz.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
- package/dist/Column-DjA11efs.js +69 -0
- package/dist/{Comment-T5XWLthu.js → Comment-Ixu0gPk3.js} +29 -35
- package/dist/{Compare-KV2Q7Tb7.js → Compare-C1uq4lgK.js} +7 -8
- package/dist/{Compare-jjtb6UdZ.js → Compare-NN40QJWm.js} +9 -10
- package/dist/{Copy-Ck1HeTdy.js → Copy-BcfSvyWG.js} +11 -12
- package/dist/Custom-Dn9_vPuD.js +58 -0
- package/dist/{DataExport-BY1fIwSd.js → DataExport-DNGgWqsx.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
- package/dist/{DataImport--xUxoWAq.js → DataImport-CI9eM5T1.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
- package/dist/{Date-C3H04U5q.js → Date-CGyzi8yX.js} +1 -1
- package/dist/{Date-DRk7BsnD.js → Date-CZGbZKjB.js} +8 -9
- package/dist/{DateRange-CICZ9gVp.js → DateRange-MbbkmZ_Y.js} +9 -10
- package/dist/{DateTime-DXHkaHtE.js → DateTime-DHrHmRLL.js} +1 -1
- package/dist/{DateTime-CjTCtAm4.js → DateTime-DqUOXGWH.js} +8 -9
- package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-DgXQkZLx.js} +11 -12
- package/dist/{Daterange-cmpjJVxl.js → Daterange-DLHJuRur.js} +8 -9
- package/dist/{Decimal-BzR8o8bv.js → Decimal-BUJuuvfr.js} +1 -1
- package/dist/{Delete-B2VzOnk8.js → Delete-BGMk0orl.js} +19 -20
- package/dist/{Detail-ayakHymC.js → Detail-D4KzWdHQ.js} +7 -8
- package/dist/Dictionary-Esd3ERAq.js +55 -0
- package/dist/{Email-BbipkOFP.js → Email-C9K09hwC.js} +9 -10
- package/dist/{File-B131KRit.js → File-ai1eYO7v.js} +49 -50
- package/dist/Image-CfY4G1Yn.js +9 -0
- package/dist/{Index-BnudlpyF.js → Index-B5o7uf36.js} +15 -16
- package/dist/Index-CH3nwnPZ.js +4 -0
- package/dist/Index-CTjDkp7e.js +4 -0
- package/dist/Index-DSZ8wa7U.js +4 -0
- package/dist/Index-DVdiF3gr.js +4 -0
- package/dist/{Index-Bps1k5-m.js → Index-DYHrSEZ5.js} +1 -1
- package/dist/Index-DsZPtDYE.js +173 -0
- package/dist/{Index-B20QLMmF.js → Index-S1btGSGD.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +8 -9
- package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +19 -27
- package/dist/{Install-BnCA1XK8.js → Install-D-MgafyF.js} +13 -14
- package/dist/{Int-BSA4Srky.js → Int-CnvfCxgn.js} +9 -10
- package/dist/{Int-BlwraOyw.js → Int-D3RqVcmN.js} +13 -14
- package/dist/List-DA4SO_le.js +71 -0
- package/dist/Maintaince-BIgEbjrq.js +14 -0
- package/dist/{Markdown-Can2d8HC.js → Markdown-hax8By5O.js} +1 -1
- package/dist/Month-5lTUiWin.js +37 -0
- package/dist/{Month-ClTpaaAr.js → Month-BDkwv-vc.js} +12 -13
- package/dist/{Month-Dyt_wc8r.js → Month-CnVTSnyK.js} +1 -1
- package/dist/{Normal-DBRpkCNs.js → Normal-DoE9t7d7.js} +73 -74
- package/dist/Paging-5qsCTRWy.js +92 -0
- package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-BFtE6jSy.js} +35 -36
- package/dist/{PagingRow-CqAYVjxH.js → PagingRow-CSB-kwMz.js} +19 -20
- package/dist/{Racebar-BhRmArVA.js → Racebar-Bc-dDRss.js} +26 -32
- package/dist/{Radio-DCVAYEgh.js → Radio-CMGOtMnx.js} +1 -1
- package/dist/{Register-Dr5HF0B6.js → Register-8wi0uixs.js} +54 -55
- package/dist/RichText-BR4Kvx0J.js +41 -0
- package/dist/{SearchFooter-D02JAZez.js → SearchFooter-DOC21dmS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
- package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BMTSPce_.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +38 -41
- package/dist/{Select-ChwyjjbN.js → Select-DAxdpZlO.js} +8 -9
- package/dist/{Select-DK5-x-rC.js → Select-DnFyey0n.js} +23 -24
- package/dist/{Select-CaGb3SAi.js → Select-MBD4Simw.js} +1 -1
- package/dist/{Single-DIyLnILS.js → Single-D6x6VV_B.js} +85 -88
- package/dist/{Statistic-ArzDDFwp.js → Statistic-BS_DA72m.js} +22 -23
- package/dist/{Stock-DapT2McI.js → Stock-CbucObTu.js} +1 -1
- package/dist/{Stock-CsVIZtQ4.js → Stock-CtmevqBK.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +12 -13
- package/dist/{Switch-B0VJc80B.js → Switch-BlXAy9qH.js} +1 -1
- package/dist/{Table-C5kHBVpV.js → Table-CqsfAMh7.js} +84 -87
- package/dist/{Table-Cwe8QuVi.js → Table-Da9gan1Y.js} +78 -79
- package/dist/Text-C72NLZMt.js +48 -0
- package/dist/Text-CHvsKR9H.js +4 -0
- package/dist/{Text-CK1PT6x8.js → Text-CbZlEVTJ.js} +10 -11
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
- package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-SAnZ7BfX.js} +10 -11
- package/dist/{Textarea-C6Pi4p9b.js → Textarea-DphCUpXp.js} +1 -1
- package/dist/{Time-DWG3pwjK.js → Time-DjE8yYdK.js} +10 -11
- package/dist/{Timeline-Bqq3rFbX.js → Timeline-D11vjkpZ.js} +13 -19
- package/dist/Tree-DK73Ou_F.js +117 -0
- package/dist/{Tree-CU2UHknq.js → Tree-kich05vY.js} +99 -102
- package/dist/{TreeNode-DD-YfbgL.js → TreeNode-Dx6cZ31Z.js} +10 -11
- package/dist/{Update-BdbT4B2n.js → Update-D2Plm_AG.js} +14 -15
- package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-BXV7QqaP.js} +20 -21
- package/dist/{Upload-CKHSikDI.js → Upload-B87EDynn.js} +44 -45
- package/dist/Upload-CHPjMGFZ.js +65 -0
- package/dist/{Year-nGY1S5_T.js → Year-BPFmIiPX.js} +1 -1
- package/dist/{Year-CnA4ZUPj.js → Year-C93IJgc8.js} +8 -9
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-nvsTmKXH.js +16321 -0
- package/dist/main.js +137 -136
- package/dist/style.css +1 -1
- package/esm/coms/business/Form.vue.d.ts +2 -1
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
- package/esm/coms/drivers/@types/index.d.ts +3 -1
- package/esm/coms/drivers/Index.vue.d.ts +26 -29
- package/esm/coms/drivers/Kind.vue.d.ts +8 -8
- 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 +2 -1
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/List.vue.d.ts +1 -1
- package/esm/coms/pages/Paging.vue.d.ts +2 -1
- package/esm/coms/pages/Single.vue.d.ts +2 -1
- package/esm/coms/pagings/Article.vue.d.ts +2 -1
- package/esm/coms/pagings/Index.vue.d.ts +2 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +9 -9
- package/dist/Autocomplete-Buw1Hs35.js +0 -50
- package/dist/Calender-P8tmSbW2.js +0 -10
- package/dist/Callback-SEWVfpG_.js +0 -21
- package/dist/Cascader-DWNTommi.js +0 -47
- package/dist/Code-CQSTwwc4.js +0 -4
- package/dist/Code-CXMdFELH.js +0 -42
- package/dist/Code-THGJ7IzI.js +0 -60
- package/dist/Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js +0 -63
- package/dist/Column-CucHIBYv.js +0 -75
- package/dist/Custom-CkyWaXAB.js +0 -61
- package/dist/Dictionary-BiSpx7nU.js +0 -61
- package/dist/Image-Cb1PzLpD.js +0 -9
- package/dist/Index-2vdi0Nq0.js +0 -4
- package/dist/Index-BOKSKn0N.js +0 -4
- package/dist/Index-CymZGuJo.js +0 -174
- package/dist/Index-Cz0Ti6rP.js +0 -4
- package/dist/Index-Dhg6Vts6.js +0 -4
- package/dist/List-BnT_8B_q.js +0 -74
- package/dist/Maintaince-CwL7tseR.js +0 -20
- package/dist/Month-CRmTCjQr.js +0 -38
- package/dist/Paging-ByJhfHCh.js +0 -95
- package/dist/RichText-Dj93TxtW.js +0 -47
- package/dist/Text-D2P-_cQT.js +0 -54
- package/dist/Text-oKVRjuSR.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-epPB32IU.js +0 -59
- package/dist/Tree-DRUGEHR3.js +0 -123
- package/dist/Upload-BCGGzOTn.js +0 -71
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/main-BLb5AIWJ.js +0 -10249
@@ -1,14 +1,8 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as I, toRefs as U, ref as y, onMounted as M, onUnmounted as $, openBlock as F, createElementBlock as N, createVNode as O, unref as d, createElementVNode as V, nextTick as P } from "vue";
|
2
2
|
import * as T from "echarts";
|
3
|
-
import {
|
4
|
-
import "./
|
5
|
-
|
6
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
7
|
-
import "./assets/clone-BZn0cTAu.js";
|
8
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
9
|
-
import "./assets/moment-h96o7c8I.js";
|
10
|
-
import { _ as j } from "./SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js";
|
11
|
-
const re = /* @__PURE__ */ H({
|
3
|
+
import { Z as W, d as h } from "./main-nvsTmKXH.js";
|
4
|
+
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js";
|
5
|
+
const X = /* @__PURE__ */ I({
|
12
6
|
__name: "Racebar",
|
13
7
|
props: {
|
14
8
|
searchData: {},
|
@@ -21,24 +15,24 @@ const re = /* @__PURE__ */ H({
|
|
21
15
|
set: {}
|
22
16
|
},
|
23
17
|
emits: ["search"],
|
24
|
-
setup(R, { expose: k, emit:
|
25
|
-
let w = R, { route:
|
18
|
+
setup(R, { expose: k, emit: j }) {
|
19
|
+
let w = R, { route: q, module: G, schema: A, table: D, layout: e, set: f, searchData: L } = U(w), m = y(), x = y(), b = y();
|
26
20
|
y({ width: null, height: null });
|
27
|
-
let o = null, S = null, s = [], n = 0, a, { app:
|
21
|
+
let o = null, S = null, s = [], n = 0, a, { app: B } = W.sys, C = () => {
|
28
22
|
}, z = () => {
|
29
23
|
var t;
|
30
|
-
let l =
|
31
|
-
|
32
|
-
let v = l -
|
33
|
-
v && (
|
34
|
-
},
|
24
|
+
let l = h.dom.getHeight(b.value), g = h.dom.getHeight((t = x.value) == null ? void 0 : t.$el), p = h.dom.getWidth(b.value);
|
25
|
+
p && (m.value.style.width = Math.floor(p) + "px");
|
26
|
+
let v = l - g - 1;
|
27
|
+
v && (m.value.style.height = v + "px");
|
28
|
+
}, E = (l) => {
|
35
29
|
x.value.resize(l), P(() => {
|
36
30
|
z(), o == null || o.resize();
|
37
31
|
});
|
38
|
-
},
|
39
|
-
let l =
|
40
|
-
s =
|
41
|
-
function
|
32
|
+
}, H = () => {
|
33
|
+
let l = h.array.distinct(f.value[D.value.name], (t) => t[e.value.legend]);
|
34
|
+
s = h.array.distinct(f.value[e.value.table], (t) => t[e.value.date]);
|
35
|
+
function g() {
|
42
36
|
let t = s[n], i = [];
|
43
37
|
for (let r = 0; r < l.length; ++r) {
|
44
38
|
let _ = l[r], u = f.value[e.value.table].find((c) => c[e.value.legend] == _ && c[e.value.date] == t);
|
@@ -46,7 +40,7 @@ const re = /* @__PURE__ */ H({
|
|
46
40
|
}
|
47
41
|
return i;
|
48
42
|
}
|
49
|
-
let
|
43
|
+
let p = g();
|
50
44
|
a = {
|
51
45
|
title: { textStyle: { color: "#777" } },
|
52
46
|
tooltip: { axisPointer: { type: "shadow" } },
|
@@ -85,7 +79,7 @@ const re = /* @__PURE__ */ H({
|
|
85
79
|
realtimeSort: !0,
|
86
80
|
name: e.value.title,
|
87
81
|
type: "bar",
|
88
|
-
data:
|
82
|
+
data: p,
|
89
83
|
label: {
|
90
84
|
show: !0,
|
91
85
|
precision: 0,
|
@@ -124,7 +118,7 @@ const re = /* @__PURE__ */ H({
|
|
124
118
|
z: 100
|
125
119
|
}]
|
126
120
|
}
|
127
|
-
},
|
121
|
+
}, B.theme == "dark" && (a.title.textStyle.color = "rgba(255,255,255,0.8)", a.legend.textStyle.color = "rgba(255,255,255,.72)", a.xAxis.axisLabel.color = "rgba(255,255,255,.72)", a.xAxis.splitLine.lineStyle.color = "rgba(110,117,130,0.2)", a.yAxis.axisLabel.color = "rgba(255,255,255,.72)", a.series[0].label.color = "rgba(255,255,255,.72)"), o.setOption(a), n++;
|
128
122
|
function v() {
|
129
123
|
let t = s[n], i = a.series[0].data;
|
130
124
|
for (let r = 0; r < i.length; ++r) {
|
@@ -138,31 +132,31 @@ const re = /* @__PURE__ */ H({
|
|
138
132
|
}, 3e3);
|
139
133
|
};
|
140
134
|
return M(() => {
|
141
|
-
z(), o = T.init(
|
135
|
+
z(), o = T.init(m.value), H();
|
142
136
|
}), $(() => {
|
143
137
|
clearInterval(S), o.dispose();
|
144
|
-
}), k({ resize:
|
138
|
+
}), k({ resize: E }), (l, g) => (F(), N("div", {
|
145
139
|
ref_key: "raceBarRef",
|
146
140
|
ref: b,
|
147
141
|
class: "race-bar-layout"
|
148
142
|
}, [
|
149
|
-
O(
|
143
|
+
O(Z, {
|
150
144
|
ref_key: "searchRef",
|
151
145
|
ref: x,
|
152
146
|
schema: d(A),
|
153
147
|
table: d(D),
|
154
148
|
layout: d(e),
|
155
|
-
"search-data": d(
|
156
|
-
onSearch: d(
|
149
|
+
"search-data": d(L),
|
150
|
+
onSearch: d(C)
|
157
151
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSearch"]),
|
158
152
|
V("div", {
|
159
153
|
ref_key: "chartRef",
|
160
|
-
ref:
|
154
|
+
ref: m,
|
161
155
|
class: "race-bar"
|
162
156
|
}, null, 512)
|
163
157
|
], 512));
|
164
158
|
}
|
165
159
|
});
|
166
160
|
export {
|
167
|
-
|
161
|
+
X as default
|
168
162
|
};
|
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ p({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = u(() => import("./Dictionary-
|
13
|
+
let r = u(() => import("./Dictionary-Esd3ERAq.js")), s = a, { schema: m, table: n, field: d, set: i, row: f, modelValue: l } = c(s);
|
14
14
|
return (_, o) => (V(), b(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(n),
|
@@ -1,78 +1,77 @@
|
|
1
|
-
import { defineComponent as I, ref as i, onMounted as
|
1
|
+
import { defineComponent as I, ref as i, onMounted as J, watch as Q, resolveComponent as m, openBlock as w, createElementBlock as Z, createVNode as f, unref as l, withCtx as d, createElementVNode as r, toDisplayString as F, isRef as V, createBlock as y, withKeys as j, normalizeClass as K, withModifiers as G, createTextVNode as W, nextTick as T } from "vue";
|
2
2
|
import { useRoute as X } from "vue-router";
|
3
|
-
import {
|
4
|
-
import "./assets/moment-h96o7c8I.js";
|
3
|
+
import { M as Y, J as ee, K as le, f as se, d as g, _ as B, r as te } from "./main-nvsTmKXH.js";
|
5
4
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const oe = { class: "login-container" }, ae = { class: "title-container" }, re = { class: "title" }, ne = ["innerHTML"],
|
5
|
+
const oe = { class: "login-container" }, ae = { class: "title-container" }, re = { class: "title" }, ne = ["innerHTML"], me = /* @__PURE__ */ I({
|
7
6
|
__name: "Register",
|
8
7
|
setup(ie) {
|
9
|
-
let b = i(!1), n = i({ email: "", password: "", confirmPassword: "", position: 0 }), u = i("password"), a = i(!1), _ = i(!1), v = i({ jigsaw: null, content: null }),
|
10
|
-
g.string.isEmail(e) ?
|
11
|
-
},
|
12
|
-
g.string.isPassword(e) ?
|
13
|
-
},
|
14
|
-
g.string.isPassword(e) ? e !=
|
15
|
-
}, x = (
|
16
|
-
let { shiftKey: e, key:
|
17
|
-
|
8
|
+
let b = i(!1), n = i({ email: "", password: "", confirmPassword: "", position: 0 }), u = i("password"), a = i(!1), _ = i(!1), v = i({ jigsaw: null, content: null }), R = i(), C = i(), k = i(), h = i(), M = X(), U = (t, e, s) => {
|
9
|
+
g.string.isEmail(e) ? s() : s(new Error("邮箱格式不正确"));
|
10
|
+
}, q = (t, e, s) => {
|
11
|
+
g.string.isPassword(e) ? s() : s(new Error("密码格式不正确"));
|
12
|
+
}, L = (t, e, s, p) => {
|
13
|
+
g.string.isPassword(e) ? e != p.password ? s(new Error("两次密码不一致")) : s() : s(new Error("密码格式不正确"));
|
14
|
+
}, x = (t) => {
|
15
|
+
let { shiftKey: e, key: s } = t;
|
16
|
+
s && s.length == 1 && (e && s >= "a" && s <= "z" || !e && s >= "A" && s <= "Z" ? a.value = !0 : a.value = !1), s == "CapsLock" && a.value == !0 && (a.value = !1);
|
18
17
|
}, c = () => {
|
19
|
-
u.value == "password" ? u.value = "" : u.value = "password",
|
18
|
+
u.value == "password" ? u.value = "" : u.value = "password", T(() => {
|
20
19
|
k.value.focus();
|
21
20
|
});
|
22
21
|
}, N = () => {
|
23
|
-
|
24
|
-
if (!
|
22
|
+
R.value.validate((t) => {
|
23
|
+
if (!t)
|
25
24
|
return !1;
|
26
25
|
b.value = !0;
|
27
26
|
});
|
28
27
|
}, P = () => {
|
29
28
|
E();
|
30
|
-
}, O = (
|
31
|
-
_.value = !0, n.value.position =
|
32
|
-
|
29
|
+
}, O = (t) => {
|
30
|
+
_.value = !0, n.value.position = t, B.post("/user/register", n.value).then(({ data: e }) => {
|
31
|
+
te.toBackUrl();
|
33
32
|
}).catch((e) => {
|
34
|
-
throw P(),
|
33
|
+
throw P(), h.value.error(), e;
|
35
34
|
}).finally(() => {
|
36
|
-
|
35
|
+
T(() => {
|
37
36
|
_.value = !1;
|
38
37
|
});
|
39
38
|
});
|
40
|
-
}, $ = (
|
41
|
-
B.get("/user/captcha").then(({ data:
|
42
|
-
v.value.jigsaw = g.image.base64(
|
39
|
+
}, $ = (t) => Object.keys(t).reduce((e, s) => (e[s] = t[s], e), {}), E = () => {
|
40
|
+
B.get("/user/captcha").then(({ data: t, message: e }) => {
|
41
|
+
v.value.jigsaw = g.image.base64(t.jigsaw), v.value.content = g.image.base64(t.content);
|
43
42
|
});
|
44
43
|
};
|
45
|
-
return
|
46
|
-
Y.setI18nTitle("common.register"), E(), n.value.email == "" ?
|
47
|
-
}),
|
48
|
-
const e =
|
44
|
+
return J(() => {
|
45
|
+
Y.setI18nTitle("common.register"), E(), n.value.email == "" ? C.value.focus() : n.value.password == "" && k.value.focus();
|
46
|
+
}), Q(M, function(t) {
|
47
|
+
const e = t.query;
|
49
48
|
e && $(e);
|
50
|
-
}), (
|
51
|
-
const
|
52
|
-
return w(),
|
49
|
+
}), (t, e) => {
|
50
|
+
const s = m("el-input"), p = m("el-form-item"), z = m("el-tooltip"), H = m("el-button"), S = m("el-form");
|
51
|
+
return w(), Z("div", oe, [
|
53
52
|
f(S, {
|
54
53
|
ref_key: "formRef",
|
55
|
-
ref:
|
54
|
+
ref: R,
|
56
55
|
class: "login-form",
|
57
56
|
autocomplete: "on",
|
58
57
|
"label-position": "left",
|
59
58
|
model: l(n)
|
60
59
|
}, {
|
61
|
-
default:
|
60
|
+
default: d(() => [
|
62
61
|
r("div", ae, [
|
63
|
-
r("h3", re,
|
62
|
+
r("h3", re, F(l(ee)("title")), 1)
|
64
63
|
]),
|
65
|
-
f(
|
64
|
+
f(p, {
|
66
65
|
prop: "email",
|
67
|
-
rules: [{ required: !0, trigger: "blur", message: "邮箱不能为空" }, { trigger: "blur", validator: l(
|
66
|
+
rules: [{ required: !0, trigger: "blur", message: "邮箱不能为空" }, { trigger: "blur", validator: l(U) }]
|
68
67
|
}, {
|
69
|
-
default:
|
68
|
+
default: d(() => [
|
70
69
|
e[8] || (e[8] = r("span", { class: "svg-container" }, [
|
71
70
|
r("i", { class: "fa fa-user" })
|
72
71
|
], -1)),
|
73
|
-
f(
|
72
|
+
f(s, {
|
74
73
|
ref_key: "emailRef",
|
75
|
-
ref:
|
74
|
+
ref: C,
|
76
75
|
modelValue: l(n).email,
|
77
76
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => l(n).email = o),
|
78
77
|
placeholder: "邮箱",
|
@@ -91,16 +90,16 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
91
90
|
placement: "right",
|
92
91
|
manual: ""
|
93
92
|
}, {
|
94
|
-
default:
|
95
|
-
f(
|
93
|
+
default: d(() => [
|
94
|
+
f(p, {
|
96
95
|
prop: "password",
|
97
|
-
rules: [{ required: !0, trigger: "blur", message: "密码不能为空" }, { trigger: "blur", validator: l(
|
96
|
+
rules: [{ required: !0, trigger: "blur", message: "密码不能为空" }, { trigger: "blur", validator: l(q) }]
|
98
97
|
}, {
|
99
|
-
default:
|
98
|
+
default: d(() => [
|
100
99
|
e[9] || (e[9] = r("span", { class: "svg-container" }, [
|
101
100
|
r("i", { class: "fa fa-key" })
|
102
101
|
], -1)),
|
103
|
-
(w(), y(
|
102
|
+
(w(), y(s, {
|
104
103
|
ref: "password",
|
105
104
|
key: l(u),
|
106
105
|
type: l(u),
|
@@ -119,7 +118,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
119
118
|
(...o) => l(c) && l(c)(...o))
|
120
119
|
}, [
|
121
120
|
r("i", {
|
122
|
-
class:
|
121
|
+
class: K(l(u) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
123
122
|
}, null, 2)
|
124
123
|
])
|
125
124
|
]),
|
@@ -128,15 +127,15 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
128
127
|
]),
|
129
128
|
_: 1
|
130
129
|
}, 8, ["modelValue"]),
|
131
|
-
f(
|
130
|
+
f(p, {
|
132
131
|
prop: "confirmPassword",
|
133
|
-
rules: [{ required: !0, trigger: "blur", message: "确认密码不能为空" }, { trigger: "blur", validator: (o, A, D) => l(
|
132
|
+
rules: [{ required: !0, trigger: "blur", message: "确认密码不能为空" }, { trigger: "blur", validator: (o, A, D) => l(L)(o, A, D, l(n)) }]
|
134
133
|
}, {
|
135
|
-
default:
|
134
|
+
default: d(() => [
|
136
135
|
e[10] || (e[10] = r("span", { class: "svg-container" }, [
|
137
136
|
r("i", { class: "fa fa-key" })
|
138
137
|
], -1)),
|
139
|
-
(w(), y(
|
138
|
+
(w(), y(s, {
|
140
139
|
ref_key: "passwordRef",
|
141
140
|
ref: k,
|
142
141
|
key: l(u),
|
@@ -156,7 +155,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
156
155
|
(...o) => l(c) && l(c)(...o))
|
157
156
|
}, [
|
158
157
|
r("i", {
|
159
|
-
class:
|
158
|
+
class: K(l(u) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
160
159
|
}, null, 2)
|
161
160
|
])
|
162
161
|
]),
|
@@ -165,7 +164,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
165
164
|
l(b) ? (w(), y(l(le), {
|
166
165
|
key: 1,
|
167
166
|
ref_key: "captchaRef",
|
168
|
-
ref:
|
167
|
+
ref: h,
|
169
168
|
content: l(v).content,
|
170
169
|
jigsaw: l(v).jigsaw,
|
171
170
|
onRefresh: l(P),
|
@@ -174,9 +173,9 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
174
173
|
key: 0,
|
175
174
|
type: "primary",
|
176
175
|
loading: l(_),
|
177
|
-
onClick:
|
176
|
+
onClick: G(l(N), ["prevent"])
|
178
177
|
}, {
|
179
|
-
default:
|
178
|
+
default: d(() => e[11] || (e[11] = [
|
180
179
|
W("注册 ")
|
181
180
|
])),
|
182
181
|
_: 1
|
@@ -186,12 +185,12 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
|
|
186
185
|
}, 8, ["model"]),
|
187
186
|
r("div", {
|
188
187
|
class: "powered-by",
|
189
|
-
innerHTML: l(
|
188
|
+
innerHTML: l(se)("sys.powered_by")
|
190
189
|
}, null, 8, ne)
|
191
190
|
]);
|
192
191
|
};
|
193
192
|
}
|
194
193
|
});
|
195
194
|
export {
|
196
|
-
|
195
|
+
me as default
|
197
196
|
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent as g, mergeModels as x, toRefs as R, useModel as S, ref as p, onMounted as M, computed as m, watch as v, openBlock as w, createBlock as b, unref as r, normalizeStyle as k, isRef as B } from "vue";
|
2
|
+
import { R as C } from "./main-nvsTmKXH.js";
|
3
|
+
const O = /* @__PURE__ */ g({
|
4
|
+
__name: "RichText",
|
5
|
+
props: /* @__PURE__ */ x({
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {}
|
11
|
+
}, {
|
12
|
+
modelValue: {},
|
13
|
+
modelModifiers: {}
|
14
|
+
}),
|
15
|
+
emits: ["update:modelValue"],
|
16
|
+
setup(n) {
|
17
|
+
let f = n, { field: e, table: h, set: _, row: s } = R(f), u = S(n, "modelValue"), t = p({ readonly: !1, scrollTop: 0 }), i = p(), y = (l) => {
|
18
|
+
a.value != null && (s.value[a.value.name] = l.scrollTop);
|
19
|
+
}, T = () => e.value.control.height ? `height: ${e.value.control.height}px` : "min-height: 300px;", V = () => {
|
20
|
+
t.value.readonly = e.value.control.readonly, t.value.scrollTop = d.value, i.value = T();
|
21
|
+
};
|
22
|
+
M(() => {
|
23
|
+
V();
|
24
|
+
});
|
25
|
+
let d = m(() => a.value ? s.value[a.value.name] : null), a = m(() => e.value.control.scrollTop ? h.value.fields.find((o) => o.name == e.value.control.scrollTop) : null);
|
26
|
+
return v(() => d.value, (l, o) => {
|
27
|
+
t.value.scrollTop = l;
|
28
|
+
}), v(() => e.value.control.readonly, (l, o) => {
|
29
|
+
t.value.readonly = l;
|
30
|
+
}), (l, o) => (w(), b(r(C), {
|
31
|
+
style: k(r(i)),
|
32
|
+
options: r(t),
|
33
|
+
onScroll: r(y),
|
34
|
+
modelValue: r(u),
|
35
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => B(u) ? u.value = c : u = c)
|
36
|
+
}, null, 8, ["style", "options", "onScroll", "modelValue"]));
|
37
|
+
}
|
38
|
+
});
|
39
|
+
export {
|
40
|
+
O as default
|
41
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as g, toRefs as b, computed as C, openBlock as a, createElementBlock as E, createBlock as k, resolveDynamicComponent as B, unref as e } from "vue";
|
2
|
-
import {
|
2
|
+
import { c as D } from "./main-nvsTmKXH.js";
|
3
3
|
const I = { class: "search-footer" }, H = /* @__PURE__ */ g({
|
4
4
|
__name: "SearchFooter",
|
5
5
|
props: {
|
@@ -12,8 +12,8 @@ const I = { class: "search-footer" }, H = /* @__PURE__ */ g({
|
|
12
12
|
searchData: {}
|
13
13
|
},
|
14
14
|
emits: ["search", "succeed", "add", "remove", "copy", "show-import", "show-export"],
|
15
|
-
setup(
|
16
|
-
let t =
|
15
|
+
setup(c, { emit: r }) {
|
16
|
+
let t = r, s = c, { schema: l, table: n, layout: p, set: m, next: h, selection: d, searchData: R } = b(s), i = (o) => {
|
17
17
|
t("search", o);
|
18
18
|
}, u = () => {
|
19
19
|
t("succeed");
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const ue = /* @__PURE__ */ I({
|
1
|
+
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as M, watch as Q, resolveComponent as m, openBlock as n, createBlock as i, withCtx as r, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as w, createVNode as x, createTextVNode as N, toDisplayString as Y, createCommentVNode as Z } from "vue";
|
2
|
+
import { d as ee, m as T, w as te, p as ae } from "./main-nvsTmKXH.js";
|
3
|
+
const oe = /* @__PURE__ */ I({
|
5
4
|
__name: "SearchForm",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -10,19 +9,19 @@ const ue = /* @__PURE__ */ I({
|
|
10
9
|
searchData: {}
|
11
10
|
},
|
12
11
|
emits: ["change", "submit", "mounted"],
|
13
|
-
setup(
|
14
|
-
let
|
15
|
-
|
16
|
-
},
|
17
|
-
|
12
|
+
setup(W, { expose: E, emit: L }) {
|
13
|
+
let C = L, U = W, { schema: F, table: u, layout: V, searchData: b } = J(U), k = p(), y = p(), $ = p(), d = p(), j = (e) => {
|
14
|
+
C("change", e);
|
15
|
+
}, S = (e = null) => {
|
16
|
+
C("submit");
|
18
17
|
}, z = (e, t) => {
|
19
18
|
let l = e == "*" ? null : e;
|
20
|
-
b.value[u.value.name][t.name] = l,
|
19
|
+
b.value[u.value.name][t.name] = l, S();
|
21
20
|
}, R = () => {
|
22
|
-
k.value && (
|
21
|
+
k.value && (y.value = k.value.$el.clientWidth);
|
23
22
|
}, O = (e) => {
|
24
23
|
R();
|
25
|
-
},
|
24
|
+
}, B = () => {
|
26
25
|
let e = V.value.tabs;
|
27
26
|
if (e)
|
28
27
|
for (let t = 0; t < e.length; t++) {
|
@@ -30,17 +29,15 @@ const ue = /* @__PURE__ */ I({
|
|
30
29
|
d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
|
31
30
|
}
|
32
31
|
};
|
33
|
-
d.value = ee.object.clone(b.value),
|
34
|
-
R(), P(()
|
35
|
-
w("mounted");
|
36
|
-
});
|
32
|
+
d.value = ee.object.clone(b.value), B(), K(async () => {
|
33
|
+
R(), await P(), C("mounted");
|
37
34
|
});
|
38
|
-
let q =
|
39
|
-
if (!
|
35
|
+
let q = M(() => {
|
36
|
+
if (!y.value)
|
40
37
|
return [];
|
41
|
-
let e = Math.ceil(
|
42
|
-
return
|
43
|
-
}),
|
38
|
+
let e = Math.ceil(y.value / 200), t = T.expandSearch(F.value), l = V.value.tabs ?? [], c = t.filter((h) => l.indexOf(h.name) == -1);
|
39
|
+
return T.getLines(c, e, (h) => h, () => 1);
|
40
|
+
}), D = M(() => {
|
44
41
|
let e = [], t = V.value.tabs;
|
45
42
|
return t && t.forEach((l) => {
|
46
43
|
let c = u.value.fields.find((f) => f.name == l);
|
@@ -48,9 +45,9 @@ const ue = /* @__PURE__ */ I({
|
|
48
45
|
}), e;
|
49
46
|
});
|
50
47
|
return Q(() => b.value, (e, t) => {
|
51
|
-
|
52
|
-
}),
|
53
|
-
const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"),
|
48
|
+
B();
|
49
|
+
}), E({ resize: O }), (e, t) => {
|
50
|
+
const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"), h = m("el-col"), A = m("el-row"), G = m("el-form"), H = m("el-scrollbar");
|
54
51
|
return n(), i(H, {
|
55
52
|
"max-height": "200px",
|
56
53
|
class: "search-form"
|
@@ -66,13 +63,13 @@ const ue = /* @__PURE__ */ I({
|
|
66
63
|
}, ["prevent"]))
|
67
64
|
}, {
|
68
65
|
default: r(() => [
|
69
|
-
(n(!0), v(g, null,
|
66
|
+
(n(!0), v(g, null, w(a(D), (s, _) => (n(), i(f, {
|
70
67
|
class: "search-tab",
|
71
68
|
label: s.label,
|
72
69
|
"label-width": 50
|
73
70
|
}, {
|
74
71
|
default: r(() => [
|
75
|
-
|
72
|
+
x(c, {
|
76
73
|
ref_for: !0,
|
77
74
|
ref_key: "tabRefs",
|
78
75
|
ref: $,
|
@@ -81,17 +78,17 @@ const ue = /* @__PURE__ */ I({
|
|
81
78
|
"onUpdate:modelValue": (o) => a(d)[a(u).name][s.name] = o
|
82
79
|
}, {
|
83
80
|
default: r(() => [
|
84
|
-
|
81
|
+
x(l, { value: "*" }, {
|
85
82
|
default: r(() => t[1] || (t[1] = [
|
86
|
-
|
83
|
+
N("全部")
|
87
84
|
])),
|
88
85
|
_: 1
|
89
86
|
}),
|
90
|
-
(n(!0), v(g, null,
|
87
|
+
(n(!0), v(g, null, w(s.control.data.data, (o) => (n(), i(l, {
|
91
88
|
value: o.value
|
92
89
|
}, {
|
93
90
|
default: r(() => [
|
94
|
-
|
91
|
+
N(Y(o.text), 1)
|
95
92
|
]),
|
96
93
|
_: 2
|
97
94
|
}, 1032, ["value"]))), 256))
|
@@ -101,26 +98,26 @@ const ue = /* @__PURE__ */ I({
|
|
101
98
|
]),
|
102
99
|
_: 2
|
103
100
|
}, 1032, ["label"]))), 256)),
|
104
|
-
(n(!0), v(g, null,
|
101
|
+
(n(!0), v(g, null, w(a(q), (s) => (n(), i(A, {
|
105
102
|
class: "search-row",
|
106
|
-
label: a(
|
103
|
+
label: a(D).length ? "其它" : "",
|
107
104
|
"label-width": 50,
|
108
105
|
gutter: 5
|
109
106
|
}, {
|
110
107
|
default: r(() => [
|
111
|
-
(n(!0), v(g, null,
|
108
|
+
(n(!0), v(g, null, w(s, ({ data: _, span: o }, le) => (n(), i(h, { span: o }, {
|
112
109
|
default: r(() => [
|
113
|
-
|
114
|
-
label: a(te)(
|
110
|
+
x(f, {
|
111
|
+
label: a(te)(_.table.name, _.name)
|
115
112
|
}, {
|
116
113
|
default: r(() => [
|
117
|
-
|
118
|
-
schema: a(
|
119
|
-
table:
|
120
|
-
field:
|
114
|
+
x(a(ae), {
|
115
|
+
schema: a(F),
|
116
|
+
table: _.table,
|
117
|
+
field: _,
|
121
118
|
"search-data": a(b),
|
122
119
|
onChange: a(j),
|
123
|
-
onSubmit: a(
|
120
|
+
onSubmit: a(S)
|
124
121
|
}, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
|
125
122
|
]),
|
126
123
|
_: 2
|
@@ -141,5 +138,5 @@ const ue = /* @__PURE__ */ I({
|
|
141
138
|
}
|
142
139
|
});
|
143
140
|
export {
|
144
|
-
|
141
|
+
oe as _
|
145
142
|
};
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as M, withModifiers as N, isRef as F, withCtx as p, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } from "vue";
|
2
|
-
import {
|
3
|
-
import "./assets/moment-h96o7c8I.js";
|
2
|
+
import { f as z, w as A, _ as G } from "./main-nvsTmKXH.js";
|
4
3
|
const H = { class: "option-text" }, I = {
|
5
4
|
key: 0,
|
6
5
|
class: "option-suffix"
|
7
|
-
},
|
6
|
+
}, T = /* @__PURE__ */ K({
|
8
7
|
__name: "Select",
|
9
8
|
props: {
|
10
9
|
schema: {},
|
@@ -15,9 +14,9 @@ const H = { class: "option-text" }, I = {
|
|
15
14
|
},
|
16
15
|
emits: ["change", "submit", "update:modelValue"],
|
17
16
|
setup(v, { emit: x }) {
|
18
|
-
let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b),
|
17
|
+
let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), w = d(!1), i = d(), m = d(a.value.control.data.data), k = () => {
|
19
18
|
r("submit");
|
20
|
-
},
|
19
|
+
}, C = () => {
|
21
20
|
}, B = (l) => {
|
22
21
|
i.value = l, D();
|
23
22
|
}, D = () => {
|
@@ -28,7 +27,7 @@ const H = { class: "option-text" }, I = {
|
|
28
27
|
}), G.post(a.value.control.data.route, l).then(({ data: o }) => {
|
29
28
|
m.value = o;
|
30
29
|
}).finally(() => {
|
31
|
-
|
30
|
+
w.value = !1;
|
32
31
|
});
|
33
32
|
}, n = S({
|
34
33
|
get() {
|
@@ -53,8 +52,8 @@ const H = { class: "option-text" }, I = {
|
|
53
52
|
"loading-text": "加载中",
|
54
53
|
"remote-method": t(B),
|
55
54
|
disabled: t(a).control.readonly,
|
56
|
-
onKeyup: M(N(t(
|
57
|
-
onChange: t(
|
55
|
+
onKeyup: M(N(t(k), ["alt"]), ["enter", "native"]),
|
56
|
+
onChange: t(C),
|
58
57
|
modelValue: t(n),
|
59
58
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
|
60
59
|
}, {
|
@@ -77,5 +76,5 @@ const H = { class: "option-text" }, I = {
|
|
77
76
|
}
|
78
77
|
});
|
79
78
|
export {
|
80
|
-
|
79
|
+
T as default
|
81
80
|
};
|