hs-admin-ui 17.2.3 → 17.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{bcIcon-CvOc0Hco.js → bcIcon-CA1a5Joo.js} +1 -1
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js → bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js} +7617 -7613
- package/dist/{components-lL8hACv3.js → components-DRfETb8t.js} +1 -1
- package/dist/element-plus-ui.mjs +11 -11
- package/dist/h5.mjs +32 -32
- package/dist/{index-CUgkMch8.js → index-Bk4xbWSy.js} +66 -66
- package/dist/{index-WwUkzEdf.js → index-DUUJjEV9.js} +2414 -2414
- package/dist/{index-BnSUQzIk.js → index-DfoQejeF.js} +2 -2
- package/dist/{index-B8U2y1zY.js → index-PK0nQ_BF.js} +1 -1
- package/dist/index.mjs +60 -59
- package/dist/{setting-DNQUEWy6.js → setting-FgdvO5Ve.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{table-fJKEZxHb.js → table-Ba1RyNrI.js} +2 -2
- package/dist/vxe-table-ui.mjs +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b8 as ge, dS as i, dT as qi } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
|
|
2
2
|
import { watch as Dt, reactive as wl, nextTick as fe, h as g, defineComponent as Ko, ref as je, inject as Lo, createCommentVNode as lt, onMounted as Jl, onUnmounted as en, provide as Ql, TransitionGroup as Bn, computed as Pe, Teleport as Xi, onActivated as ic, onDeactivated as ac, onBeforeUnmount as cc, resolveComponent as dc } from "vue";
|
|
3
3
|
function vt(e) {
|
|
4
4
|
return e && e.enabled !== !1;
|
package/dist/element-plus-ui.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { W as N,
|
|
3
|
-
import "./index-
|
|
4
|
-
import { p as d } from "./index-
|
|
1
|
+
import { aU as r, b2 as u, b3 as l, b4 as m, H as E, aS as c } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
|
|
2
|
+
import { W as N, b6 as i, b7 as s, ax as M } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
|
|
3
|
+
import "./index-PK0nQ_BF.js";
|
|
4
|
+
import { p as d } from "./index-DfoQejeF.js";
|
|
5
5
|
import "vue";
|
|
6
|
-
import { i as
|
|
7
|
-
function
|
|
6
|
+
import { i as A } from "./index-Bk4xbWSy.js";
|
|
7
|
+
function _(a, e) {
|
|
8
8
|
r.value = e == null ? void 0 : e.NEXT_NAME, u.value = e == null ? void 0 : e.IS_DEV, l.value = e == null ? void 0 : e.currentRoute, m.value = e == null ? void 0 : e.currentRouter, E.has(a, "_context.directives.loading") || a.directive("loading", c.directive), a.use(d);
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
11
|
N as ElMessage,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
i as ElMessageBox,
|
|
13
|
+
s as ElNotification,
|
|
14
|
+
A as Utils,
|
|
15
|
+
M as mathTool,
|
|
16
|
+
_ as useHsAdminUi
|
|
17
17
|
};
|
package/dist/h5.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { defineComponent as z, computed as S, ref as I, shallowRef as te, reactive as A, watch as le, resolveDirective as ne, withDirectives as oe, createElementBlock as F, openBlock as L, createElementVNode as p, createBlock as G, createCommentVNode as re, createVNode as n, unref as a, withCtx as i, createTextVNode as
|
|
3
|
-
import { K as Y, H as
|
|
1
|
+
import { j as W, b as X, i as J, E as Z, a as y, h as ee, f as ae } from "./index-PK0nQ_BF.js";
|
|
2
|
+
import { defineComponent as z, computed as S, ref as I, shallowRef as te, reactive as A, watch as le, resolveDirective as ne, withDirectives as oe, createElementBlock as F, openBlock as L, createElementVNode as p, createBlock as G, createCommentVNode as re, createVNode as n, unref as a, withCtx as i, createTextVNode as N, onMounted as se, onUnmounted as ie, toDisplayString as O, Fragment as de, renderList as ue } from "vue";
|
|
3
|
+
import { K as Y, H as P, ba as H, S as T, ak as K, M as j, a4 as Q, E as pe, bg as ce, aQ as _, bh as q, aS as me } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
|
|
4
4
|
const fe = {
|
|
5
5
|
class: "upload-wrapper",
|
|
6
6
|
"element-loading-text": "上传中..."
|
|
@@ -41,11 +41,11 @@ const fe = {
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
emits: ["success"],
|
|
44
|
-
setup(u, { emit:
|
|
45
|
-
const c = u, x = Y(),
|
|
44
|
+
setup(u, { emit: k }) {
|
|
45
|
+
const c = u, x = Y(), E = S(() => x.limit || c.limit), m = S(() => {
|
|
46
46
|
var e;
|
|
47
47
|
return ((e = x.proxy) == null ? void 0 : e.replace("/", "")) || c.proxy.replace("/", "");
|
|
48
|
-
}), f = S(() =>
|
|
48
|
+
}), f = S(() => P.pick(x, ["company_id"])), g = I(!1), l = k, d = te(), s = A({
|
|
49
49
|
loading: !1,
|
|
50
50
|
preview: !1,
|
|
51
51
|
index: 0,
|
|
@@ -57,7 +57,7 @@ const fe = {
|
|
|
57
57
|
(e) => {
|
|
58
58
|
setTimeout(() => {
|
|
59
59
|
const o = document.querySelector(".upload-wrapper .el-upload--picture-card");
|
|
60
|
-
o && (o.style.display = e >=
|
|
60
|
+
o && (o.style.display = e >= E.value && e > 0 ? "none" : "inline-flex");
|
|
61
61
|
}, 100);
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -65,12 +65,12 @@ const fe = {
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
function D() {
|
|
68
|
-
return
|
|
68
|
+
return j({
|
|
69
69
|
url: `${window.location.origin}/${m.value}/sys/get_pub_token`
|
|
70
70
|
}).then((e) => `Bearer ${e == null ? void 0 : e.data}`);
|
|
71
71
|
}
|
|
72
72
|
async function B() {
|
|
73
|
-
if (
|
|
73
|
+
if (P.isEmpty(c.headers))
|
|
74
74
|
return D().then((e) => {
|
|
75
75
|
s.headers = {
|
|
76
76
|
Authorization: e
|
|
@@ -107,7 +107,7 @@ const fe = {
|
|
|
107
107
|
if (s.loading = !1, !h.length)
|
|
108
108
|
return;
|
|
109
109
|
const U = await D();
|
|
110
|
-
|
|
110
|
+
j({
|
|
111
111
|
url: `${window.location.origin}/${m.value}/pub_token/mobile_attach_push`,
|
|
112
112
|
method: "post",
|
|
113
113
|
headers: {
|
|
@@ -115,7 +115,7 @@ const fe = {
|
|
|
115
115
|
},
|
|
116
116
|
data: {
|
|
117
117
|
attach_paths: h,
|
|
118
|
-
...
|
|
118
|
+
...P.pick(x, ["company_id", "user_id"])
|
|
119
119
|
}
|
|
120
120
|
}).then(() => {
|
|
121
121
|
g.value = !0, l("success", { result: h, file: o, files: b });
|
|
@@ -125,7 +125,7 @@ const fe = {
|
|
|
125
125
|
const b = ne("loading");
|
|
126
126
|
return oe((L(), F("div", fe, [
|
|
127
127
|
p("div", ge, [
|
|
128
|
-
n(a(
|
|
128
|
+
n(a(W), {
|
|
129
129
|
ref_key: "uploadRef",
|
|
130
130
|
ref: d,
|
|
131
131
|
"file-list": s.fileList,
|
|
@@ -136,8 +136,8 @@ const fe = {
|
|
|
136
136
|
data: f.value,
|
|
137
137
|
action: m.value + u.action,
|
|
138
138
|
headers: s.headers,
|
|
139
|
-
limit:
|
|
140
|
-
multiple:
|
|
139
|
+
limit: E.value,
|
|
140
|
+
multiple: E.value > 1,
|
|
141
141
|
"auto-upload": !1,
|
|
142
142
|
disabled: g.value,
|
|
143
143
|
"on-preview": M,
|
|
@@ -172,21 +172,21 @@ const fe = {
|
|
|
172
172
|
_: 1
|
|
173
173
|
}, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple", "disabled"])
|
|
174
174
|
]),
|
|
175
|
-
s.preview ? (L(), G(a(
|
|
175
|
+
s.preview ? (L(), G(a(X), {
|
|
176
176
|
key: 0,
|
|
177
177
|
"url-list": R.value,
|
|
178
178
|
"show-progress": "",
|
|
179
179
|
"initial-index": s.index,
|
|
180
180
|
onClose: o[1] || (o[1] = (h) => s.preview = !1)
|
|
181
181
|
}, null, 8, ["url-list", "initial-index"])) : re("", !0),
|
|
182
|
-
n(a(
|
|
182
|
+
n(a(H), {
|
|
183
183
|
disabled: g.value,
|
|
184
184
|
size: "large",
|
|
185
185
|
type: "primary",
|
|
186
186
|
onClick: r
|
|
187
187
|
}, {
|
|
188
188
|
default: i(() => [...o[3] || (o[3] = [
|
|
189
|
-
|
|
189
|
+
N("上传", -1)
|
|
190
190
|
])]),
|
|
191
191
|
_: 1
|
|
192
192
|
}, 8, ["disabled"])
|
|
@@ -195,7 +195,7 @@ const fe = {
|
|
|
195
195
|
]);
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
}), ye = /* @__PURE__ */
|
|
198
|
+
}), ye = /* @__PURE__ */ Q(he, [["__scopeId", "data-v-096fc7c1"]]), ve = [
|
|
199
199
|
{ label: "男", value: "男" },
|
|
200
200
|
{ label: "女", value: "女" }
|
|
201
201
|
], v = {
|
|
@@ -259,7 +259,7 @@ const fe = {
|
|
|
259
259
|
idCard: [v.idCardPattern],
|
|
260
260
|
age: [v.agePattern],
|
|
261
261
|
captcha: [v.captcha, v.captchaLength]
|
|
262
|
-
}, _e = { class: "member-register-page" }, we = { class: "page-header" }, xe = { class: "page-subtitle" }, Ce = { class: "form-container" }, Ve = { class: "form-content" }, Ie = { class: "sms-code-wrapper" },
|
|
262
|
+
}, _e = { class: "member-register-page" }, we = { class: "page-header" }, xe = { class: "page-subtitle" }, Ce = { class: "form-container" }, Ve = { class: "form-content" }, Ie = { class: "sms-code-wrapper" }, ke = { class: "submit-area" }, Ee = /* @__PURE__ */ z({
|
|
263
263
|
__name: "MemberRegister",
|
|
264
264
|
props: {
|
|
265
265
|
proxy: {
|
|
@@ -268,7 +268,7 @@ const fe = {
|
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
270
|
setup(u) {
|
|
271
|
-
const { countdownText:
|
|
271
|
+
const { countdownText: k, isCountingDown: c, stopCountdown: x, sendSmsCode: E } = M(), m = I(), f = I(!1), g = u, l = A({
|
|
272
272
|
name: "",
|
|
273
273
|
gender: "男",
|
|
274
274
|
phone: "",
|
|
@@ -393,7 +393,7 @@ const fe = {
|
|
|
393
393
|
])
|
|
394
394
|
]),
|
|
395
395
|
p("main", Ce, [
|
|
396
|
-
n(a(
|
|
396
|
+
n(a(J), { class: "form-scroll" }, {
|
|
397
397
|
default: i(() => [
|
|
398
398
|
p("div", Ve, [
|
|
399
399
|
n(a(Z), {
|
|
@@ -469,7 +469,7 @@ const fe = {
|
|
|
469
469
|
border: ""
|
|
470
470
|
}, {
|
|
471
471
|
default: i(() => [
|
|
472
|
-
|
|
472
|
+
N(O(e.label), 1)
|
|
473
473
|
]),
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1032, ["value"]))), 128))
|
|
@@ -537,15 +537,15 @@ const fe = {
|
|
|
537
537
|
clearable: "",
|
|
538
538
|
class: "sms-code-input"
|
|
539
539
|
}, null, 8, ["modelValue", "placeholder", "maxlength"]),
|
|
540
|
-
n(a(
|
|
540
|
+
n(a(H), {
|
|
541
541
|
type: "primary",
|
|
542
542
|
disabled: a(c),
|
|
543
543
|
loading: f.value,
|
|
544
544
|
class: "sms-code-btn",
|
|
545
|
-
onClick: a(
|
|
545
|
+
onClick: a(E)
|
|
546
546
|
}, {
|
|
547
547
|
default: i(() => [
|
|
548
|
-
|
|
548
|
+
N(O(a(k)), 1)
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
551
|
}, 8, ["disabled", "loading", "onClick"])
|
|
@@ -556,8 +556,8 @@ const fe = {
|
|
|
556
556
|
]),
|
|
557
557
|
_: 1
|
|
558
558
|
}, 8, ["model", "rules"]),
|
|
559
|
-
p("div",
|
|
560
|
-
n(a(
|
|
559
|
+
p("div", ke, [
|
|
560
|
+
n(a(H), {
|
|
561
561
|
type: "primary",
|
|
562
562
|
round: "",
|
|
563
563
|
class: "submit-btn",
|
|
@@ -565,7 +565,7 @@ const fe = {
|
|
|
565
565
|
onClick: R
|
|
566
566
|
}, {
|
|
567
567
|
default: i(() => [...t[9] || (t[9] = [
|
|
568
|
-
|
|
568
|
+
N(" 提交 ", -1)
|
|
569
569
|
])]),
|
|
570
570
|
_: 1
|
|
571
571
|
}, 8, ["loading"])
|
|
@@ -577,16 +577,16 @@ const fe = {
|
|
|
577
577
|
])
|
|
578
578
|
]));
|
|
579
579
|
}
|
|
580
|
-
}), Se = /* @__PURE__ */
|
|
580
|
+
}), Se = /* @__PURE__ */ Q(Ee, [["__scopeId", "data-v-992af5c2"]]), Le = {
|
|
581
581
|
Upload: ye,
|
|
582
582
|
MemberRegister: Se
|
|
583
583
|
};
|
|
584
584
|
function De(u) {
|
|
585
|
-
for (const [
|
|
586
|
-
u.component(`H${
|
|
585
|
+
for (const [k, c] of Object.entries(Le))
|
|
586
|
+
u.component(`H${k}`, c);
|
|
587
587
|
}
|
|
588
588
|
function Re(u) {
|
|
589
|
-
|
|
589
|
+
P.has(u, "_context.directives.loading") || u.directive("loading", me.directive), u.use(De);
|
|
590
590
|
}
|
|
591
591
|
export {
|
|
592
592
|
Re as useHsAdminUi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as v, X as F, H as y,
|
|
1
|
+
import { S as v, X as F, H as y, ay as P, J as L, dU as K, M as A, dV as ne, dW as C, dX as h, ab as R, T as le, bf as re, aq as oe, af as D, ak as se, b3 as ie, b4 as ue, dY as ce, W as de, b6 as fe, b7 as ge, b2 as me, dZ as pe, aU as ye, aT as be, d_ as he, d$ as ve, e0 as _e, e1 as xe, e2 as we, e3 as De, e4 as Ce, e5 as Ee, e6 as Ae, an as Se, Z as Ne, L as Te, e7 as Be, e8 as Fe, a5 as Pe, e9 as Me, ea as je, eb as Ie, ec as Le, ed as Re, K as Oe, ee as ke, ef as Ye, eg as $e, eh as Ue, ei as Ke, ej as He, ek as qe, el as We, ax as Je, em as ze, en as Ze, ad as Qe, eo as Ve, ep as Xe, eq as Ge, er as et, es as tt, V as at, am as nt, N as lt, et as rt, eu as ot, ao as st, ev as it, ew as ut, au as ct, ex as dt, ey as ft, ez as gt, eA as mt, eB as pt, eC as yt, eD as bt, eE as ht, eF as vt, eG as _t, eH as xt, eI as wt, eJ as Dt, eK as Ct, eL as Et, eM as At, eN as St, eO as Nt, eP as Tt, eQ as Bt, eR as Ft, eS as Pt, eT as Mt, eU as jt, eV as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
|
|
2
2
|
import { ref as Lt, onBeforeUnmount as Rt, nextTick as Ot } from "vue";
|
|
3
|
-
function
|
|
3
|
+
function kt(t, e) {
|
|
4
4
|
const n = M(t), a = M(e);
|
|
5
5
|
let l = 0;
|
|
6
6
|
const o = n.length;
|
|
@@ -37,8 +37,8 @@ function M(t, e) {
|
|
|
37
37
|
else
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
|
-
let
|
|
41
|
-
function
|
|
40
|
+
let q = "127.0.0.1", W = 54321, f;
|
|
41
|
+
function Yt(t, e, n = "ws") {
|
|
42
42
|
return f || (f = new ws(t, e, {
|
|
43
43
|
automaticOpen: !1,
|
|
44
44
|
//是否自动连接标志(true|false),默认为true
|
|
@@ -62,7 +62,7 @@ function $t(t, e, n = "ws") {
|
|
|
62
62
|
typeof a.detail == "object" ? (typeof a.detail.message == "string" && f.log("遇到一个错误: " + a.detail.message, a), typeof a.detail.data == "string" && f.log("遇到一个错误: " + a.detail.message, a)) : typeof a.data == "string" ? f.log("遇到一个错误: " + a.data, a) : f.log("遇到一个错误", a);
|
|
63
63
|
}, f);
|
|
64
64
|
}
|
|
65
|
-
const O = () =>
|
|
65
|
+
const O = () => Yt(q, W);
|
|
66
66
|
function J() {
|
|
67
67
|
const t = O();
|
|
68
68
|
return t.open(), new Promise((e, n) => {
|
|
@@ -72,7 +72,7 @@ function J() {
|
|
|
72
72
|
function z(t) {
|
|
73
73
|
return J().then(() => {
|
|
74
74
|
const e = O(), n = function(l, o) {
|
|
75
|
-
e.protocol === "ws" && (e.setHost(
|
|
75
|
+
e.protocol === "ws" && (e.setHost(q), e.setPort(W)), e.protocol, e.open();
|
|
76
76
|
}, a = function(l) {
|
|
77
77
|
e.log("SENT: <br/>" + l), e.log("正在发送消息..."), e.send(l);
|
|
78
78
|
};
|
|
@@ -84,7 +84,7 @@ function z(t) {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
async function Z(t, e) {
|
|
87
|
-
var x, g,
|
|
87
|
+
var x, g, N, T;
|
|
88
88
|
if (!t.config_info)
|
|
89
89
|
return v.warning("请先添加模板!"), Promise.reject();
|
|
90
90
|
const n = JSON.parse(t.config_info) || {};
|
|
@@ -139,12 +139,12 @@ async function Z(t, e) {
|
|
|
139
139
|
return;
|
|
140
140
|
let p = K(e[i]);
|
|
141
141
|
l.本单合计金额大写 = p, l.本单合计金额 = e.commodity_sum || e.delivery_sum;
|
|
142
|
-
}), o = ((
|
|
142
|
+
}), o = ((N = n.tableData) == null ? void 0 : N.map((i) => ({
|
|
143
143
|
type: i.type,
|
|
144
144
|
size: i.type === "Str" ? 255 : 0,
|
|
145
145
|
name: i.name,
|
|
146
146
|
required: !1
|
|
147
|
-
}))) || [], r = ((
|
|
147
|
+
}))) || [], r = ((T = e == null ? void 0 : e.detail) == null ? void 0 : T.map((i) => {
|
|
148
148
|
var w;
|
|
149
149
|
let p = {};
|
|
150
150
|
return (w = n.tableData) == null || w.forEach((b) => {
|
|
@@ -190,7 +190,7 @@ async function Z(t, e) {
|
|
|
190
190
|
Data: u.length ? u : [{}]
|
|
191
191
|
}), console.log("trimPrintData整理打印数据=>>>>>", m), m;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function $t(t) {
|
|
194
194
|
return new Promise((e, n) => {
|
|
195
195
|
try {
|
|
196
196
|
let a = document.createElement("canvas"), l = a.getContext("2d"), o = new Image();
|
|
@@ -205,7 +205,7 @@ function kt(t) {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
async function Ut(t, e) {
|
|
208
|
-
const n = await L.get("userInfo"), a = await
|
|
208
|
+
const n = await L.get("userInfo"), a = await A({
|
|
209
209
|
url: `/${n.project_code}-web/pri/print_template/get_template_by_code`,
|
|
210
210
|
method: "get",
|
|
211
211
|
params: {
|
|
@@ -245,7 +245,7 @@ function Q(t, e, n = ["id"]) {
|
|
|
245
245
|
Object.keys(t).includes(a) ? typeof e[a] == "object" && !Array.isArray(e[a]) ? Q(t[a], e[a]) : t[a] = e[a] : n.includes(a) && (t[a] = e[a]);
|
|
246
246
|
return t;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function qt(t) {
|
|
249
249
|
const e = Lt(!1), n = () => {
|
|
250
250
|
e.value = C.isFullscreen;
|
|
251
251
|
};
|
|
@@ -259,10 +259,10 @@ function Wt(t) {
|
|
|
259
259
|
C.off("change", n);
|
|
260
260
|
}), { isFullPage: e, toggle: a };
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function S(t, e) {
|
|
263
263
|
if (!t)
|
|
264
264
|
return "";
|
|
265
|
-
let n = t.getDay(), a =
|
|
265
|
+
let n = t.getDay(), a = V(t), l = Math.floor((t.getMonth() + 3) / 3).toString();
|
|
266
266
|
const o = {
|
|
267
267
|
"Y+": t.getFullYear().toString(),
|
|
268
268
|
// 年
|
|
@@ -299,7 +299,7 @@ function A(t, e) {
|
|
|
299
299
|
}
|
|
300
300
|
return e;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function V(t) {
|
|
303
303
|
let e = new Date(t.getTime()), n = e.getDay() || 7;
|
|
304
304
|
e.setDate(e.getDate() - n + 1 + 5);
|
|
305
305
|
let a = new Date(e.getFullYear(), 0, 1), l = a.getDay(), o = 1;
|
|
@@ -307,7 +307,7 @@ function X(t) {
|
|
|
307
307
|
let r = Math.ceil((e.valueOf() - a.valueOf()) / 864e5);
|
|
308
308
|
return Math.ceil(r / 7);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Wt(t, e = "YYYY-mm-dd") {
|
|
311
311
|
let n, a, l = (/* @__PURE__ */ new Date()).getTime();
|
|
312
312
|
if (typeof t == "string" || typeof t == "object" ? n = new Date(t).getTime() : n = t, l = Number.parseInt(`${l - n}`), l < 1e4)
|
|
313
313
|
return "刚刚";
|
|
@@ -321,19 +321,19 @@ function qt(t, e = "YYYY-mm-dd") {
|
|
|
321
321
|
return a = Math.floor(l / 864e5), `${a}天前`;
|
|
322
322
|
{
|
|
323
323
|
let o = t;
|
|
324
|
-
return (typeof t == "string" || typeof t == "object") && (o = new Date(t)),
|
|
324
|
+
return (typeof t == "string" || typeof t == "object") && (o = new Date(t)), S(o, e);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
function Jt(t) {
|
|
328
328
|
let e = new Date(t).getHours();
|
|
329
329
|
return e < 6 ? "凌晨好" : e < 9 ? "早上好" : e < 12 ? "上午好" : e < 14 ? "中午好" : e < 17 ? "下午好" : e < 19 ? "傍晚好" : e < 22 ? "晚上好" : "夜里好";
|
|
330
330
|
}
|
|
331
|
-
const zt = (t, e, n) => n ? `${n}%` : "-", Zt = (t, e, n) => n ?
|
|
331
|
+
const zt = (t, e, n) => n ? `${n}%` : "-", Zt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd") : "-", Qt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd HH:MM:SS") : "-", Vt = (t, e, n) => {
|
|
332
332
|
if (!n)
|
|
333
333
|
return "-";
|
|
334
334
|
let a = 0;
|
|
335
|
-
return typeof t == "number" && (a = t), typeof n == "number" && (a = n),
|
|
336
|
-
},
|
|
335
|
+
return typeof t == "number" && (a = t), typeof n == "number" && (a = n), S(new Date(a * 1e3), "HH:MM:SS");
|
|
336
|
+
}, Xt = (t = "0", e = 4) => Number.parseFloat(t).toFixed(e), Gt = (t = "0") => Number.parseFloat(t).toFixed(2), ea = (t) => {
|
|
337
337
|
let e = t && t.toUpperCase();
|
|
338
338
|
const n = {
|
|
339
339
|
11: "北京",
|
|
@@ -421,7 +421,7 @@ function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tabl
|
|
|
421
421
|
e
|
|
422
422
|
);
|
|
423
423
|
async function s(c, _) {
|
|
424
|
-
return
|
|
424
|
+
return A({
|
|
425
425
|
url: `/${_}-web/pub/excel/export_model_assign`,
|
|
426
426
|
responseType: "blob",
|
|
427
427
|
method: "post",
|
|
@@ -517,22 +517,22 @@ function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tabl
|
|
|
517
517
|
"BY",
|
|
518
518
|
"BZ"
|
|
519
519
|
];
|
|
520
|
-
let
|
|
520
|
+
let N = "";
|
|
521
521
|
c.forEach((i, p) => {
|
|
522
522
|
d[i.title] = g[p + 1], x.push(i.field);
|
|
523
523
|
}), _.forEach((i, p) => {
|
|
524
524
|
let w = { A: p + 1 };
|
|
525
525
|
x.forEach((b, ae) => {
|
|
526
|
-
w[g[ae + 1]] =
|
|
526
|
+
w[g[ae + 1]] = T(i[b]);
|
|
527
527
|
}), m.push(w);
|
|
528
528
|
});
|
|
529
|
-
function
|
|
529
|
+
function T(i) {
|
|
530
530
|
return i == "1" ? "开启" : i == "0" ? "关闭" : i;
|
|
531
531
|
}
|
|
532
532
|
return {
|
|
533
533
|
titles_json_data: JSON.stringify(d),
|
|
534
534
|
infoData_json_data: JSON.stringify(m),
|
|
535
|
-
isNumerical:
|
|
535
|
+
isNumerical: N
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -555,7 +555,7 @@ function la(t) {
|
|
|
555
555
|
r[`_old_${s}`] = r[`_old_${s}`] || r[s], r[s] = r[`_old_${s}`], r[s] = c({ row: r, column: { field: s } }) || "";
|
|
556
556
|
});
|
|
557
557
|
}), r));
|
|
558
|
-
return
|
|
558
|
+
return A({
|
|
559
559
|
url: `/${t.projectCode}-web/pri/easyexcel/export_model_assign`,
|
|
560
560
|
responseType: "blob",
|
|
561
561
|
method: "post",
|
|
@@ -572,7 +572,7 @@ function la(t) {
|
|
|
572
572
|
const s = new Blob([r], {
|
|
573
573
|
type: "application/vnd.ms-excel"
|
|
574
574
|
});
|
|
575
|
-
|
|
575
|
+
k(s, t.template_name + ".xlsx");
|
|
576
576
|
});
|
|
577
577
|
});
|
|
578
578
|
}
|
|
@@ -613,7 +613,7 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
|
|
|
613
613
|
});
|
|
614
614
|
c.length > 0 && (u.qry_json_data = JSON.stringify(c));
|
|
615
615
|
const _ = t.projectCode.replace("-web", "");
|
|
616
|
-
return
|
|
616
|
+
return A({
|
|
617
617
|
url: `/${_}-web${e}`,
|
|
618
618
|
responseType: "blob",
|
|
619
619
|
method: "post",
|
|
@@ -625,7 +625,7 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
|
|
|
625
625
|
const m = new Blob([d], {
|
|
626
626
|
type: "application/vnd.ms-excel"
|
|
627
627
|
});
|
|
628
|
-
|
|
628
|
+
k(m, t.template_name + ".xlsx");
|
|
629
629
|
});
|
|
630
630
|
});
|
|
631
631
|
}
|
|
@@ -633,7 +633,7 @@ function oa(t) {
|
|
|
633
633
|
const e = document.createElement("a");
|
|
634
634
|
e.href = t.url, e.download = t.name, e.style.display = "none", document.body.appendChild(e), e.click(), document.body.removeChild(e);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function k(t, e) {
|
|
637
637
|
let n = document.createElement("a");
|
|
638
638
|
n.href = window.URL.createObjectURL(t), n.download = /\./.test(e) ? e : e + ".xlsx", document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
639
639
|
}
|
|
@@ -831,15 +831,15 @@ const ma = (t, e, n) => {
|
|
|
831
831
|
const a = e.toLowerCase();
|
|
832
832
|
return t.filter((l) => n(l).some((r) => r && r.toLowerCase().includes(a)));
|
|
833
833
|
};
|
|
834
|
-
let
|
|
834
|
+
let X;
|
|
835
835
|
const pa = 60 * 1e3;
|
|
836
|
-
let
|
|
837
|
-
const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g,
|
|
836
|
+
let Y = !1, j = !1, B;
|
|
837
|
+
const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g, $ = /index-(.*?)\.js/g, G = async () => fetch("/index.html?timestep=" + Date.now()).then((t) => t.text()).then((t) => {
|
|
838
838
|
var n, a;
|
|
839
|
-
const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) =>
|
|
840
|
-
return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match(
|
|
841
|
-
}), ee = () =>
|
|
842
|
-
t && t !=
|
|
839
|
+
const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) => $.test(l));
|
|
840
|
+
return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match($)) || [], "0", "") : "";
|
|
841
|
+
}), ee = () => G().then((t) => {
|
|
842
|
+
t && t != X && !Y && (Y = !0, te(), se.confirm("系统版本更新了,是否立即刷新页面?", "提示", {
|
|
843
843
|
confirmButtonText: "立即刷新",
|
|
844
844
|
cancelButtonText: "稍后刷新",
|
|
845
845
|
type: "warning",
|
|
@@ -856,8 +856,8 @@ function te() {
|
|
|
856
856
|
B && (clearTimeout(B), B = 0);
|
|
857
857
|
}
|
|
858
858
|
async function ba() {
|
|
859
|
-
return
|
|
860
|
-
|
|
859
|
+
return G().then((t) => {
|
|
860
|
+
X = t, I(), document.addEventListener("visibilitychange", () => {
|
|
861
861
|
j = document.hidden, j ? te() : (ee(), I());
|
|
862
862
|
});
|
|
863
863
|
});
|
|
@@ -906,28 +906,28 @@ const U = (t) => {
|
|
|
906
906
|
convertCurrency: K,
|
|
907
907
|
copyText: Ht,
|
|
908
908
|
dataURLtoBlob: sa,
|
|
909
|
-
dateFormatHMS:
|
|
909
|
+
dateFormatHMS: Vt,
|
|
910
910
|
dateFormatYMD: Zt,
|
|
911
911
|
dateFormatYMDHMS: Qt,
|
|
912
912
|
decimalDigits: we,
|
|
913
913
|
decrypt: aa,
|
|
914
914
|
deepClone: De,
|
|
915
915
|
div: Ce,
|
|
916
|
-
downloadFile:
|
|
916
|
+
downloadFile: k,
|
|
917
917
|
elSvg: Ee,
|
|
918
918
|
encrypt: ta,
|
|
919
|
-
encryptionTool:
|
|
919
|
+
encryptionTool: Ae,
|
|
920
920
|
exportAllData: ra,
|
|
921
921
|
exportSelectedData: la,
|
|
922
922
|
exportSelectedDownloadFile: na,
|
|
923
923
|
fixedNumAccuracy: P,
|
|
924
924
|
formatAxis: Jt,
|
|
925
|
-
formatDate:
|
|
926
|
-
formatPast:
|
|
925
|
+
formatDate: S,
|
|
926
|
+
formatPast: Wt,
|
|
927
927
|
fuzzySearch: ma,
|
|
928
|
-
getAuthFieldsByMid:
|
|
929
|
-
getColumnWidthConfig:
|
|
930
|
-
getConfig:
|
|
928
|
+
getAuthFieldsByMid: Se,
|
|
929
|
+
getColumnWidthConfig: Ne,
|
|
930
|
+
getConfig: Te,
|
|
931
931
|
getDataDictListByMid: Be,
|
|
932
932
|
getDataType: Fe,
|
|
933
933
|
getDictListByMid: Pe,
|
|
@@ -938,28 +938,28 @@ const U = (t) => {
|
|
|
938
938
|
getStoreSystemParams: Ie,
|
|
939
939
|
getSystemParams: Le,
|
|
940
940
|
getTableDataType: Re,
|
|
941
|
-
getUrlBase64:
|
|
941
|
+
getUrlBase64: $t,
|
|
942
942
|
getUrlParams: Oe,
|
|
943
|
-
getWeek:
|
|
944
|
-
globalComponentSize:
|
|
945
|
-
handleEmpty:
|
|
946
|
-
handleOpenLink:
|
|
943
|
+
getWeek: V,
|
|
944
|
+
globalComponentSize: ke,
|
|
945
|
+
handleEmpty: Ye,
|
|
946
|
+
handleOpenLink: $e,
|
|
947
947
|
iframeMessage: Ue,
|
|
948
948
|
isLegalNumber: Ke,
|
|
949
949
|
isMobile: He,
|
|
950
950
|
isObjectValueEqual: H,
|
|
951
|
-
isToNumber:
|
|
951
|
+
isToNumber: qe,
|
|
952
952
|
isUpdate: ba,
|
|
953
|
-
judementSameArr:
|
|
954
|
-
lazyImg:
|
|
953
|
+
judementSameArr: kt,
|
|
954
|
+
lazyImg: We,
|
|
955
955
|
lodash: y,
|
|
956
956
|
mathTool: Je,
|
|
957
957
|
message: ze,
|
|
958
958
|
messageBox: Ze,
|
|
959
959
|
mittBus: Qe,
|
|
960
|
-
notification:
|
|
961
|
-
numberToChinese:
|
|
962
|
-
other:
|
|
960
|
+
notification: Ve,
|
|
961
|
+
numberToChinese: Xe,
|
|
962
|
+
other: Ge,
|
|
963
963
|
percentFormat: zt,
|
|
964
964
|
popupPlugin: et,
|
|
965
965
|
print: Ut,
|
|
@@ -967,9 +967,9 @@ const U = (t) => {
|
|
|
967
967
|
push: tt,
|
|
968
968
|
removeConfig: at,
|
|
969
969
|
removeDuplicate: M,
|
|
970
|
-
request:
|
|
971
|
-
scale2Format:
|
|
972
|
-
scaleFormat:
|
|
970
|
+
request: A,
|
|
971
|
+
scale2Format: Gt,
|
|
972
|
+
scaleFormat: Xt,
|
|
973
973
|
sendMsg: z,
|
|
974
974
|
setColumnWidthConfig: nt,
|
|
975
975
|
setConfig: lt,
|
|
@@ -987,7 +987,7 @@ const U = (t) => {
|
|
|
987
987
|
useMittBus: ct,
|
|
988
988
|
useRequest: dt,
|
|
989
989
|
useTitle: ft,
|
|
990
|
-
useToggleFullPage:
|
|
990
|
+
useToggleFullPage: qt,
|
|
991
991
|
verifiyNumberInteger: gt,
|
|
992
992
|
verifyAccount: mt,
|
|
993
993
|
verifyAndSpace: pt,
|
|
@@ -1001,10 +1001,10 @@ const U = (t) => {
|
|
|
1001
1001
|
verifyNumberCnUppercase: Dt,
|
|
1002
1002
|
verifyNumberComma: Ct,
|
|
1003
1003
|
verifyNumberIntegerAndFloat: Et,
|
|
1004
|
-
verifyNumberPercentage:
|
|
1005
|
-
verifyNumberPercentageFloat:
|
|
1006
|
-
verifyPassword:
|
|
1007
|
-
verifyPasswordPowerful:
|
|
1004
|
+
verifyNumberPercentage: At,
|
|
1005
|
+
verifyNumberPercentageFloat: St,
|
|
1006
|
+
verifyPassword: Nt,
|
|
1007
|
+
verifyPasswordPowerful: Tt,
|
|
1008
1008
|
verifyPasswordStrength: Bt,
|
|
1009
1009
|
verifyPhone: Ft,
|
|
1010
1010
|
verifyPostalCode: Pt,
|