@utogether/components 3.0.0-beta.1 → 3.0.0-beta.2
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/components.es.js +379 -380
- package/dist/components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ne, getCurrentInstance as Ke, computed as xe, resolveComponent as W, openBlock as
|
|
1
|
+
import { defineComponent as ne, getCurrentInstance as Ke, computed as xe, resolveComponent as W, openBlock as O, createBlock as be, unref as ge, withCtx as X, createTextVNode as Nn, toDisplayString as Q, createElementBlock as P, Fragment as ve, renderList as me, createVNode as z, mergeProps as Ue, createCommentVNode as de, ref as B, reactive as qe, createElementVNode as N, onMounted as ft, createSlots as vo, toHandlers as An, withDirectives as Le, vModelText as ai, normalizeClass as Xe, renderSlot as ot, pushScopeId as yo, popScopeId as bo, normalizeStyle as pe, useAttrs as On, nextTick as _t, onUnmounted as _o, onBeforeMount as rn, toRaw as wo, useCssVars as Do, resolveDirective as li, withModifiers as en, vShow as Ve, createStaticVNode as si, toRef as ri, watch as Dt, h as Ye } from "vue";
|
|
2
2
|
import { useI18n as it } from "vue-i18n";
|
|
3
3
|
import { throttle as mn, toDateString as ae, isEmpty as Nt, clone as Ce, isString as xt, isFunction as kn, isObject as ci, timestamp as qn } from "xe-utils";
|
|
4
4
|
import { withInstall as Ee, cookies as Pe, useRender as Co, storageLocal as xo, warnMessage as Bt, formatRules as ut, formatItems as Pn, successMessage as tn, dbstorage as Xn, i18nColums as Eo, errorMessage as ui, formatGridItems as ko, iconSet as di, lunarCalendar as jt } from "@utogether/utils";
|
|
@@ -48,7 +48,7 @@ const fi = {
|
|
|
48
48
|
}, 2e3), v = e;
|
|
49
49
|
return (b, x) => {
|
|
50
50
|
const g = W("vxe-button"), f = W("el-popconfirm");
|
|
51
|
-
return b.children.length ? (
|
|
51
|
+
return b.children.length ? (O(), be(g, {
|
|
52
52
|
key: 0,
|
|
53
53
|
disabled: b.auth && !ge(i)(b.auth) || b.disabled,
|
|
54
54
|
status: b.status,
|
|
@@ -58,7 +58,7 @@ const fi = {
|
|
|
58
58
|
Nn(Q(l.value.content), 1)
|
|
59
59
|
]),
|
|
60
60
|
dropdowns: X(() => [
|
|
61
|
-
(
|
|
61
|
+
(O(!0), P(ve, null, me(b.children, (M) => (O(), be(g, {
|
|
62
62
|
key: M.code,
|
|
63
63
|
disabled: M.auth && !ge(i)(M.auth) || M.disabled,
|
|
64
64
|
status: M.status || "primary",
|
|
@@ -69,7 +69,7 @@ const fi = {
|
|
|
69
69
|
}, null, 8, ["disabled", "status", "content", "icon", "mode", "onClick"]))), 128))
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
|
-
}, 8, ["disabled", "status"])) : b.type === "primary" && !b.visible ? (
|
|
72
|
+
}, 8, ["disabled", "status"])) : b.type === "primary" && !b.visible ? (O(), be(g, {
|
|
73
73
|
key: 1,
|
|
74
74
|
disabled: b.auth && !ge(i)(b.auth) || b.disabled,
|
|
75
75
|
status: b.status,
|
|
@@ -78,8 +78,8 @@ const fi = {
|
|
|
78
78
|
icon: `${l.value.icon || s(l.value)} ri-1x`,
|
|
79
79
|
loading: b.loading,
|
|
80
80
|
onClick: ge(d)
|
|
81
|
-
}, null, 8, ["disabled", "status", "mode", "content", "icon", "loading", "onClick"])) : b.type === "pop" && !b.visible ? (
|
|
82
|
-
z(f,
|
|
81
|
+
}, null, 8, ["disabled", "status", "mode", "content", "icon", "loading", "onClick"])) : b.type === "pop" && !b.visible ? (O(), P("div", fi, [
|
|
82
|
+
z(f, Ue({
|
|
83
83
|
"confirm-button-text": b.$t("message.btn.confirm"),
|
|
84
84
|
"cancel-button-text": b.$t("message.btn.cancel"),
|
|
85
85
|
"icon-color": "#E6A23C",
|
|
@@ -118,7 +118,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
118
118
|
...yi,
|
|
119
119
|
props: {
|
|
120
120
|
record: { default: () => ({}) },
|
|
121
|
-
|
|
121
|
+
defaultParams: { default: () => ({}) },
|
|
122
122
|
code: {},
|
|
123
123
|
field: {},
|
|
124
124
|
displayName: {},
|
|
@@ -132,7 +132,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
132
132
|
},
|
|
133
133
|
emits: ["clear", "change"],
|
|
134
134
|
setup(n, { emit: e }) {
|
|
135
|
-
const t = n, i = Ke().appContext.config.globalProperties.$serviceApi, a = 600, l =
|
|
135
|
+
const t = n, i = Ke().appContext.config.globalProperties.$serviceApi, a = 600, l = B(!1), s = B(a), r = B(""), c = qe({
|
|
136
136
|
loading: !1,
|
|
137
137
|
border: !0,
|
|
138
138
|
pagerConfig: {},
|
|
@@ -155,7 +155,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
155
155
|
{},
|
|
156
156
|
C,
|
|
157
157
|
D,
|
|
158
|
-
t.
|
|
158
|
+
t.defaultParams
|
|
159
159
|
);
|
|
160
160
|
if (_.pageNum = (m == null ? void 0 : m.currentPage) || 1, _.pageSize = (m == null ? void 0 : m.pageSize) || 20, !t.readonly) {
|
|
161
161
|
const { field: I, displayName: Y } = t;
|
|
@@ -170,7 +170,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
170
170
|
},
|
|
171
171
|
checkboxConfig: {},
|
|
172
172
|
columns: []
|
|
173
|
-
}), d =
|
|
173
|
+
}), d = B(null);
|
|
174
174
|
let u, v = [];
|
|
175
175
|
const b = (m) => (v.filter(
|
|
176
176
|
(D) => ["date", "month"].includes(D.fieldType) && D.isSearch
|
|
@@ -238,7 +238,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
238
238
|
formatter: _ === "date" ? ["formatDate"] : D.fieldType === "dictCode" ? I : null
|
|
239
239
|
};
|
|
240
240
|
}), t.multiple ? c.columns.unshift({ type: "checkbox", width: 45, align: "center" }) : c.columns.unshift({ type: "radio", width: 45, align: "center" });
|
|
241
|
-
}, T =
|
|
241
|
+
}, T = B(null), p = async () => {
|
|
242
242
|
c.loading = !0;
|
|
243
243
|
const m = "/upfm/v1/lovViewHeader/detailByViewCode", [C, D] = await Fn(
|
|
244
244
|
i.get(m, { lovCode: t.code })
|
|
@@ -259,9 +259,9 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
259
259
|
}, R = ({ type: m }) => {
|
|
260
260
|
}, $ = e;
|
|
261
261
|
return (m, C) => {
|
|
262
|
-
const D = W("vxe-grid"), _ = W("vxe-button"), I = W("vxe-modal"), Y = W("el-dialog"),
|
|
263
|
-
return
|
|
264
|
-
m.mode === "vxe" ? (
|
|
262
|
+
const D = W("vxe-grid"), _ = W("vxe-button"), I = W("vxe-modal"), Y = W("el-dialog"), U = W("vxe-input");
|
|
263
|
+
return O(), P("div", gi, [
|
|
264
|
+
m.mode === "vxe" ? (O(), be(I, {
|
|
265
265
|
key: 0,
|
|
266
266
|
modelValue: l.value,
|
|
267
267
|
"onUpdate:modelValue": C[0] || (C[0] = (le) => l.value = le),
|
|
@@ -275,7 +275,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
275
275
|
"before-hide-method": R
|
|
276
276
|
}, {
|
|
277
277
|
default: X(() => [
|
|
278
|
-
z(D,
|
|
278
|
+
z(D, Ue({
|
|
279
279
|
ref_key: "xgrid",
|
|
280
280
|
ref: T
|
|
281
281
|
}, c, {
|
|
@@ -298,7 +298,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
298
298
|
}, null, 8, ["content"])
|
|
299
299
|
]),
|
|
300
300
|
_: 1
|
|
301
|
-
}, 8, ["modelValue", "width", "title"])) : (
|
|
301
|
+
}, 8, ["modelValue", "width", "title"])) : (O(), be(Y, {
|
|
302
302
|
key: 1,
|
|
303
303
|
modelValue: l.value,
|
|
304
304
|
"onUpdate:modelValue": C[1] || (C[1] = (le) => l.value = le),
|
|
@@ -311,7 +311,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
311
311
|
}, {
|
|
312
312
|
default: X(() => [
|
|
313
313
|
N("div", vi, [
|
|
314
|
-
z(D,
|
|
314
|
+
z(D, Ue({
|
|
315
315
|
ref_key: "xgrid",
|
|
316
316
|
ref: T
|
|
317
317
|
}, c, {
|
|
@@ -336,7 +336,7 @@ const gi = { class: "ut-lov-wrapper" }, vi = { style: { height: "360px" } }, yi
|
|
|
336
336
|
]),
|
|
337
337
|
_: 1
|
|
338
338
|
}, 8, ["modelValue", "width", "title"])),
|
|
339
|
-
z(
|
|
339
|
+
z(U, {
|
|
340
340
|
modelValue: m.record[d.value || m.field],
|
|
341
341
|
"onUpdate:modelValue": C[2] || (C[2] = (le) => m.record[d.value || m.field] = le),
|
|
342
342
|
clearable: !m.disabled && m.clearable,
|
|
@@ -401,18 +401,17 @@ const So = (n, e, t) => {
|
|
|
401
401
|
}, Mi = /* @__PURE__ */ ne({
|
|
402
402
|
...Ti,
|
|
403
403
|
props: {
|
|
404
|
-
baseUrl: {},
|
|
405
404
|
sourceTable: { default: "" },
|
|
406
405
|
sourceId: { default: "" },
|
|
407
406
|
dataStatus: { default: "detail" },
|
|
408
407
|
title: {},
|
|
409
408
|
watermarkCode: { default: "" },
|
|
410
409
|
permissionPreFix: { default: "file" },
|
|
411
|
-
maxHeight: { default:
|
|
410
|
+
maxHeight: { default: 300 },
|
|
412
411
|
showTitle: { type: Boolean, default: !0 }
|
|
413
412
|
},
|
|
414
413
|
setup(n) {
|
|
415
|
-
const e = n, t =
|
|
414
|
+
const e = n, t = B(null), o = Ke(), i = o.appContext.config.globalProperties.$serviceApi, a = o.appContext.config.globalProperties.$viewerApi, l = o.appContext.config.globalProperties.$url, s = o.appContext.config.globalProperties.$mode, r = "/ufil/v1/attachment", c = ["png", "jpg", "jpeg", "webp", "gif"];
|
|
416
415
|
let d;
|
|
417
416
|
const u = [
|
|
418
417
|
{ field: "fileName", title: "message.fileName" },
|
|
@@ -506,14 +505,14 @@ const So = (n, e, t) => {
|
|
|
506
505
|
}, f = async () => {
|
|
507
506
|
const w = t.value.getData().filter((p) => c.includes(p.fileExtend)), T = [];
|
|
508
507
|
(d == null ? void 0 : d.watermarkTrigger) == "preview" ? await w.forEachSync(async (p) => {
|
|
509
|
-
const y = `${
|
|
508
|
+
const y = `${l}/ufil${p.realpath}}`, k = await Ci(y, d);
|
|
510
509
|
T.push({ src: k, "data-source": k });
|
|
511
510
|
}) : w.forEach((p) => {
|
|
512
|
-
const y = `${
|
|
511
|
+
const y = `${l}/ufil${p.realpath}`;
|
|
513
512
|
console.log(y), T.push({ src: y, "data-source": y });
|
|
514
513
|
}), a({ options: { toolbar: !0, url: "data-source" }, images: T });
|
|
515
514
|
}, M = (w) => {
|
|
516
|
-
const T =
|
|
515
|
+
const T = l + "/ufil" + w.realpath, p = document.createElement("a");
|
|
517
516
|
p.style.display = "none";
|
|
518
517
|
const y = w.fileName.split(".");
|
|
519
518
|
p.href = T, p.setAttribute("download", y[0]), document.body.appendChild(p), p.click(), document.body.removeChild(p);
|
|
@@ -525,8 +524,8 @@ const So = (n, e, t) => {
|
|
|
525
524
|
e.watermarkCode && g();
|
|
526
525
|
}), (w, T) => {
|
|
527
526
|
const p = W("ut-divider"), y = W("ut-button"), k = W("vxe-grid");
|
|
528
|
-
return
|
|
529
|
-
z(k,
|
|
527
|
+
return O(), P("div", Ei, [
|
|
528
|
+
z(k, Ue({
|
|
530
529
|
ref_key: "xGrid",
|
|
531
530
|
ref: t
|
|
532
531
|
}, b), vo({
|
|
@@ -537,20 +536,20 @@ const So = (n, e, t) => {
|
|
|
537
536
|
auth: w.permissionPreFix + "Del",
|
|
538
537
|
status: "danger",
|
|
539
538
|
icon: "ri-delete-bin-5-fill",
|
|
540
|
-
content: "
|
|
539
|
+
content: "delete",
|
|
541
540
|
onTap: (E) => x(h)
|
|
542
541
|
}, null, 8, ["disabled", "auth", "onTap"]),
|
|
543
|
-
["png", "jpeg", "jpg"].includes(h.fileExtend) ? (
|
|
542
|
+
["png", "jpeg", "jpg"].includes(h.fileExtend) ? (O(), be(y, {
|
|
544
543
|
key: 0,
|
|
545
544
|
auth: w.permissionPreFix + "Preview",
|
|
546
545
|
icon: "ri-search-line",
|
|
547
|
-
content: "
|
|
546
|
+
content: "preview",
|
|
548
547
|
onTap: T[0] || (T[0] = (E) => f())
|
|
549
|
-
}, null, 8, ["auth"])) : (
|
|
548
|
+
}, null, 8, ["auth"])) : (O(), be(y, {
|
|
550
549
|
key: 1,
|
|
551
550
|
auth: w.permissionPreFix + "Download",
|
|
552
551
|
icon: "ri-download-2-fill",
|
|
553
|
-
content: "
|
|
552
|
+
content: "download",
|
|
554
553
|
onTap: (E) => M(h)
|
|
555
554
|
}, null, 8, ["auth", "onTap"]))
|
|
556
555
|
])
|
|
@@ -844,7 +843,7 @@ oe.valueOf = function() {
|
|
|
844
843
|
var Ri = Mo();
|
|
845
844
|
const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
846
845
|
name: "UtUpload"
|
|
847
|
-
},
|
|
846
|
+
}, Vi = /* @__PURE__ */ ne({
|
|
848
847
|
...Wi,
|
|
849
848
|
props: {
|
|
850
849
|
defaultParams: { default: () => ({}) },
|
|
@@ -857,7 +856,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
857
856
|
},
|
|
858
857
|
emits: ["close"],
|
|
859
858
|
setup(n, { emit: e }) {
|
|
860
|
-
const t = n, i = Ke().appContext.config.globalProperties.$serviceApi, { t: a } = it(), l =
|
|
859
|
+
const t = n, i = Ke().appContext.config.globalProperties.$serviceApi, { t: a } = it(), l = B(!1);
|
|
861
860
|
let s = qe({
|
|
862
861
|
filename: "数据模板",
|
|
863
862
|
errorField: "errorMsg",
|
|
@@ -871,7 +870,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
871
870
|
fixed: "left"
|
|
872
871
|
};
|
|
873
872
|
return D.unshift(_), D;
|
|
874
|
-
}, d =
|
|
873
|
+
}, d = B({ pageSize: 200, currentPage: 1, total: 0 }), u = [
|
|
875
874
|
"Sizes",
|
|
876
875
|
"PrevJump",
|
|
877
876
|
"PrevPage",
|
|
@@ -880,7 +879,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
880
879
|
"NextJump",
|
|
881
880
|
"FullJump",
|
|
882
881
|
"Total"
|
|
883
|
-
], v = window.innerHeight - 90, b =
|
|
882
|
+
], v = window.innerHeight - 90, b = B();
|
|
884
883
|
let x = [];
|
|
885
884
|
const f = qe({
|
|
886
885
|
border: !0,
|
|
@@ -977,7 +976,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
977
976
|
x = D.$table.getTableData().fullData, c().filter(
|
|
978
977
|
(I) => !I.type && I.mapField !== t.options.errorField
|
|
979
978
|
).forEach((I) => {
|
|
980
|
-
const Y = x.findIndex((
|
|
979
|
+
const Y = x.findIndex((U) => U[I.field] === I.field);
|
|
981
980
|
Y !== -1 && x.splice(Y, 1);
|
|
982
981
|
}), t.columns.forEach((I) => {
|
|
983
982
|
(I.dateFormatter || I.valueType === "number") && x.forEach((Y) => {
|
|
@@ -1005,8 +1004,8 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1005
1004
|
D.push(...t.templateData);
|
|
1006
1005
|
else {
|
|
1007
1006
|
const Y = {};
|
|
1008
|
-
c().filter((
|
|
1009
|
-
Y[
|
|
1007
|
+
c().filter((U) => U.type !== "checkbox").forEach((U) => {
|
|
1008
|
+
Y[U.field] = "案例";
|
|
1010
1009
|
}), D.push(Y);
|
|
1011
1010
|
}
|
|
1012
1011
|
const _ = {
|
|
@@ -1048,7 +1047,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1048
1047
|
});
|
|
1049
1048
|
D.forEach((I) => {
|
|
1050
1049
|
const Y = x.findIndex(
|
|
1051
|
-
(
|
|
1050
|
+
(U) => U._X_ROW_KEY === I._X_ROW_KEY
|
|
1052
1051
|
);
|
|
1053
1052
|
Y !== -1 && x.splice(Y, 1);
|
|
1054
1053
|
}), f.data = x;
|
|
@@ -1074,9 +1073,9 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1074
1073
|
return ft(() => {
|
|
1075
1074
|
s = Object.assign(s, t.options);
|
|
1076
1075
|
}), (D, _) => {
|
|
1077
|
-
const I = W("el-option"), Y = W("el-select"),
|
|
1078
|
-
return
|
|
1079
|
-
z(Te,
|
|
1076
|
+
const I = W("el-option"), Y = W("el-select"), U = W("el-date-picker"), le = W("vxe-pager"), Te = W("vxe-grid");
|
|
1077
|
+
return O(), P("div", null, [
|
|
1078
|
+
z(Te, Ue({
|
|
1080
1079
|
ref_key: "xgrid",
|
|
1081
1080
|
ref: b
|
|
1082
1081
|
}, f, An(M)), vo({
|
|
@@ -1097,7 +1096,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1097
1096
|
me(D.columns, (G) => ({
|
|
1098
1097
|
name: G.field,
|
|
1099
1098
|
fn: X(({ row: ie }) => [
|
|
1100
|
-
G.dictCode && !G.disabled ? (
|
|
1099
|
+
G.dictCode && !G.disabled ? (O(), be(Y, {
|
|
1101
1100
|
key: 0,
|
|
1102
1101
|
modelValue: ie[G.field],
|
|
1103
1102
|
"onUpdate:modelValue": (se) => ie[G.field] = se,
|
|
@@ -1107,22 +1106,22 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1107
1106
|
default: X(() => {
|
|
1108
1107
|
var se;
|
|
1109
1108
|
return [
|
|
1110
|
-
(
|
|
1111
|
-
key:
|
|
1112
|
-
value:
|
|
1113
|
-
label:
|
|
1109
|
+
(O(!0), P(ve, null, me((se = ge(r)[G.dictCode]) == null ? void 0 : se.children, (A) => (O(), be(I, {
|
|
1110
|
+
key: A.dictCode,
|
|
1111
|
+
value: A.dictCode,
|
|
1112
|
+
label: A.dictName
|
|
1114
1113
|
}, null, 8, ["value", "label"]))), 128))
|
|
1115
1114
|
];
|
|
1116
1115
|
}),
|
|
1117
1116
|
_: 2
|
|
1118
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])) : ["date", "month", "datetime"].includes(G.dataType) && !G.disabled ? (
|
|
1117
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : ["date", "month", "datetime"].includes(G.dataType) && !G.disabled ? (O(), be(U, {
|
|
1119
1118
|
key: 1,
|
|
1120
1119
|
modelValue: ie[G.field],
|
|
1121
1120
|
"onUpdate:modelValue": (se) => ie[G.field] = se,
|
|
1122
1121
|
modelModifiers: { trim: !0 },
|
|
1123
1122
|
type: G.dataType,
|
|
1124
1123
|
"value-format": "YYYY-MM-DD hh:mm:ss"
|
|
1125
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type"])) : !G.da && !G.disabled ? Le((
|
|
1124
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type"])) : !G.da && !G.disabled ? Le((O(), P("input", {
|
|
1126
1125
|
key: 2,
|
|
1127
1126
|
"onUpdate:modelValue": (se) => ie[G.field] = se,
|
|
1128
1127
|
class: "ut-input"
|
|
@@ -1133,7 +1132,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1133
1132
|
void 0,
|
|
1134
1133
|
{ trim: !0 }
|
|
1135
1134
|
]
|
|
1136
|
-
]) : l.value ? (
|
|
1135
|
+
]) : l.value ? (O(), P("span", ji, Q(ie[G.field]), 1)) : (O(), P("span", zi, Q(ie[G.field]), 1))
|
|
1137
1136
|
])
|
|
1138
1137
|
}))
|
|
1139
1138
|
]), 1040)
|
|
@@ -1145,7 +1144,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1145
1144
|
for (const [o, i] of e)
|
|
1146
1145
|
t[o] = i;
|
|
1147
1146
|
return t;
|
|
1148
|
-
},
|
|
1147
|
+
}, Hi = /* @__PURE__ */ at(Vi, [["__scopeId", "data-v-49711ece"]]), Ui = Ee(Hi), qi = { class: "ut-content" }, Xi = { key: 0 }, Gi = { class: "ut-right-panel" }, Ki = { class: "ut-content-body" }, Ji = {
|
|
1149
1148
|
name: "UtContent"
|
|
1150
1149
|
}, Qi = /* @__PURE__ */ ne({
|
|
1151
1150
|
...Ji,
|
|
@@ -1154,17 +1153,17 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1154
1153
|
},
|
|
1155
1154
|
emits: ["close"],
|
|
1156
1155
|
setup(n, { emit: e }) {
|
|
1157
|
-
const t =
|
|
1156
|
+
const t = B(window.top === window.self), o = e, i = () => {
|
|
1158
1157
|
o("close");
|
|
1159
1158
|
};
|
|
1160
1159
|
return (a, l) => {
|
|
1161
1160
|
const s = W("ut-button");
|
|
1162
|
-
return
|
|
1163
|
-
t.value ? (
|
|
1161
|
+
return O(), P("div", qi, [
|
|
1162
|
+
t.value ? (O(), P("div", {
|
|
1164
1163
|
key: 0,
|
|
1165
1164
|
class: Xe(["ut-content-top", a.title ? "justify-between" : "justify-end"])
|
|
1166
1165
|
}, [
|
|
1167
|
-
a.title ? (
|
|
1166
|
+
a.title ? (O(), P("span", Xi, Q(a.title), 1)) : de("", !0),
|
|
1168
1167
|
N("div", Gi, [
|
|
1169
1168
|
ot(a.$slots, "header", {}, void 0, !0),
|
|
1170
1169
|
z(s, {
|
|
@@ -1189,7 +1188,7 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1189
1188
|
title: { default: "分割线" }
|
|
1190
1189
|
},
|
|
1191
1190
|
setup(n) {
|
|
1192
|
-
return (e, t) => (
|
|
1191
|
+
return (e, t) => (O(), P("div", na, [
|
|
1193
1192
|
N("div", oa, [
|
|
1194
1193
|
ia,
|
|
1195
1194
|
N("span", aa, Q(e.title), 1)
|
|
@@ -1215,14 +1214,14 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1215
1214
|
d.auth && !i(d.auth) || d.disabled || c("command", d.code);
|
|
1216
1215
|
}, l = ["primary", "success", "warning"], s = (d) => {
|
|
1217
1216
|
const { content: u, code: v } = d;
|
|
1218
|
-
return /.*[\u4e00-\u9fa5]+.*$/.test(u) ? u : t("message.btn" + (u || v || "edit"));
|
|
1217
|
+
return /.*[\u4e00-\u9fa5]+.*$/.test(u) ? u : t("message.btn." + (u || v || "edit"));
|
|
1219
1218
|
}, r = (d) => {
|
|
1220
1219
|
var u, v;
|
|
1221
1220
|
return (u = d.code) != null && u.toLowerCase().includes("print") ? "ri-printer-fill" : (v = d.code) != null && v.toLowerCase().includes("look") ? "ri-eye-fill" : "ri-edit-2-fill";
|
|
1222
1221
|
}, c = e;
|
|
1223
1222
|
return (d, u) => {
|
|
1224
1223
|
const v = W("IconifyIconOffline"), b = W("el-icon"), x = W("vxe-button"), g = W("el-dropdown-item"), f = W("el-dropdown-menu"), M = W("el-dropdown");
|
|
1225
|
-
return
|
|
1224
|
+
return O(), be(M, {
|
|
1226
1225
|
trigger: d.trigger,
|
|
1227
1226
|
size: "small",
|
|
1228
1227
|
class: "ut-dropdown"
|
|
@@ -1230,11 +1229,11 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1230
1229
|
dropdown: X(() => [
|
|
1231
1230
|
z(f, { class: "ut-dropdown-menu" }, {
|
|
1232
1231
|
default: X(() => [
|
|
1233
|
-
(
|
|
1232
|
+
(O(!0), P(ve, null, me(d.buttons, (w, T) => (O(), be(g, {
|
|
1234
1233
|
key: w.code
|
|
1235
1234
|
}, {
|
|
1236
1235
|
default: X(() => [
|
|
1237
|
-
w.visible !== !1 ? (
|
|
1236
|
+
w.visible !== !1 ? (O(), be(x, {
|
|
1238
1237
|
key: 0,
|
|
1239
1238
|
disabled: w.disabled || w.auth && !ge(i)(w.auth),
|
|
1240
1239
|
status: w.status || l[T],
|
|
@@ -1284,14 +1283,14 @@ const Yi = ["onUpdate:modelValue"], zi = { key: 3 }, ji = { key: 4 }, Wi = {
|
|
|
1284
1283
|
dataStatus: { default: "detail" }
|
|
1285
1284
|
},
|
|
1286
1285
|
setup(n, { expose: e }) {
|
|
1287
|
-
const t = n, o =
|
|
1286
|
+
const t = n, o = B(void 0), { t: i } = it(), a = xe(() => t.items.length ? ut(t.items, i) : {}), l = xe(() => t.items.length ? Pn(t.items, t.dataStatus, 6) : t.items);
|
|
1288
1287
|
return e({
|
|
1289
1288
|
validateForm: (r) => {
|
|
1290
1289
|
o.value.validate(r);
|
|
1291
1290
|
}
|
|
1292
1291
|
}), (r, c) => {
|
|
1293
1292
|
const d = W("vxe-form");
|
|
1294
|
-
return
|
|
1293
|
+
return O(), P("div", null, [
|
|
1295
1294
|
z(d, {
|
|
1296
1295
|
ref_key: "xForm",
|
|
1297
1296
|
ref: o,
|
|
@@ -1378,11 +1377,11 @@ function ba(n, e) {
|
|
|
1378
1377
|
return t;
|
|
1379
1378
|
}
|
|
1380
1379
|
var _a = "1.15.0";
|
|
1381
|
-
function
|
|
1380
|
+
function He(n) {
|
|
1382
1381
|
if (typeof window < "u" && window.navigator)
|
|
1383
1382
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
1384
1383
|
}
|
|
1385
|
-
var Je =
|
|
1384
|
+
var Je = He(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Yt = He(/Edge/i), Jn = He(/firefox/i), At = He(/safari/i) && !He(/chrome/i) && !He(/android/i), Io = He(/iP(ad|od|hone)/i), $o = He(/chrome/i) && He(/android/i), No = {
|
|
1386
1385
|
capture: !1,
|
|
1387
1386
|
passive: !1
|
|
1388
1387
|
};
|
|
@@ -1432,7 +1431,7 @@ function Ie(n, e, t) {
|
|
|
1432
1431
|
n.className = (o + (t ? " " + e : "")).replace(Qn, " ");
|
|
1433
1432
|
}
|
|
1434
1433
|
}
|
|
1435
|
-
function
|
|
1434
|
+
function V(n, e, t) {
|
|
1436
1435
|
var o = n && n.style;
|
|
1437
1436
|
if (o) {
|
|
1438
1437
|
if (t === void 0)
|
|
@@ -1446,7 +1445,7 @@ function Ct(n, e) {
|
|
|
1446
1445
|
t = n;
|
|
1447
1446
|
else
|
|
1448
1447
|
do {
|
|
1449
|
-
var o =
|
|
1448
|
+
var o = V(n, "transform");
|
|
1450
1449
|
o && o !== "none" && (t = o + " " + t);
|
|
1451
1450
|
} while (!e && (n = n.parentNode));
|
|
1452
1451
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
@@ -1471,9 +1470,9 @@ function _e(n, e, t, o, i) {
|
|
|
1471
1470
|
var a, l, s, r, c, d, u;
|
|
1472
1471
|
if (n !== window && n.parentNode && n !== je() ? (a = n.getBoundingClientRect(), l = a.top, s = a.left, r = a.bottom, c = a.right, d = a.height, u = a.width) : (l = 0, s = 0, r = window.innerHeight, c = window.innerWidth, d = window.innerHeight, u = window.innerWidth), (e || t) && n !== window && (i = i || n.parentNode, !Je))
|
|
1473
1472
|
do
|
|
1474
|
-
if (i && i.getBoundingClientRect && (
|
|
1473
|
+
if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || t && V(i, "position") !== "static")) {
|
|
1475
1474
|
var v = i.getBoundingClientRect();
|
|
1476
|
-
l -= v.top + parseInt(
|
|
1475
|
+
l -= v.top + parseInt(V(i, "border-top-width")), s -= v.left + parseInt(V(i, "border-left-width")), r = l + a.height, c = s + a.width;
|
|
1477
1476
|
break;
|
|
1478
1477
|
}
|
|
1479
1478
|
while (i = i.parentNode);
|
|
@@ -1502,7 +1501,7 @@ function Zn(n, e, t) {
|
|
|
1502
1501
|
}
|
|
1503
1502
|
function Et(n, e, t, o) {
|
|
1504
1503
|
for (var i = 0, a = 0, l = n.children; a < l.length; ) {
|
|
1505
|
-
if (l[a].style.display !== "none" && l[a] !==
|
|
1504
|
+
if (l[a].style.display !== "none" && l[a] !== H.ghost && (o || l[a] !== H.dragged) && Re(l[a], t.draggable, n, !1)) {
|
|
1506
1505
|
if (i === e)
|
|
1507
1506
|
return l[a];
|
|
1508
1507
|
i++;
|
|
@@ -1512,7 +1511,7 @@ function Et(n, e, t, o) {
|
|
|
1512
1511
|
return null;
|
|
1513
1512
|
}
|
|
1514
1513
|
function Ln(n, e) {
|
|
1515
|
-
for (var t = n.lastElementChild; t && (t ===
|
|
1514
|
+
for (var t = n.lastElementChild; t && (t === H.ghost || V(t, "display") === "none" || e && !nn(t, e)); )
|
|
1516
1515
|
t = t.previousElementSibling;
|
|
1517
1516
|
return t || null;
|
|
1518
1517
|
}
|
|
@@ -1521,7 +1520,7 @@ function Oe(n, e) {
|
|
|
1521
1520
|
if (!n || !n.parentNode)
|
|
1522
1521
|
return -1;
|
|
1523
1522
|
for (; n = n.previousElementSibling; )
|
|
1524
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !==
|
|
1523
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== H.clone && (!e || nn(n, e)) && t++;
|
|
1525
1524
|
return t;
|
|
1526
1525
|
}
|
|
1527
1526
|
function eo(n) {
|
|
@@ -1546,7 +1545,7 @@ function nt(n, e) {
|
|
|
1546
1545
|
var t = n, o = !1;
|
|
1547
1546
|
do
|
|
1548
1547
|
if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
|
|
1549
|
-
var i =
|
|
1548
|
+
var i = V(t);
|
|
1550
1549
|
if (t.clientWidth < t.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
1551
1550
|
if (!t.getBoundingClientRect || t === document.body) return je();
|
|
1552
1551
|
if (o || e) return t;
|
|
@@ -1594,7 +1593,7 @@ function Ea() {
|
|
|
1594
1593
|
if (n = [], !!this.options.animation) {
|
|
1595
1594
|
var o = [].slice.call(this.el.children);
|
|
1596
1595
|
o.forEach(function(i) {
|
|
1597
|
-
if (!(
|
|
1596
|
+
if (!(V(i, "display") === "none" || i === H.ghost)) {
|
|
1598
1597
|
n.push({
|
|
1599
1598
|
target: i,
|
|
1600
1599
|
rect: _e(i)
|
|
@@ -1636,10 +1635,10 @@ function Ea() {
|
|
|
1636
1635
|
},
|
|
1637
1636
|
animate: function(o, i, a, l) {
|
|
1638
1637
|
if (l) {
|
|
1639
|
-
|
|
1638
|
+
V(o, "transition", ""), V(o, "transform", "");
|
|
1640
1639
|
var s = Ct(this.el), r = s && s.a, c = s && s.d, d = (i.left - a.left) / (r || 1), u = (i.top - a.top) / (c || 1);
|
|
1641
|
-
o.animatingX = !!d, o.animatingY = !!u,
|
|
1642
|
-
|
|
1640
|
+
o.animatingX = !!d, o.animatingY = !!u, V(o, "transform", "translate3d(" + d + "px," + u + "px,0)"), this.forRepaintDummy = ka(o), V(o, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
1641
|
+
V(o, "transition", ""), V(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
1643
1642
|
}, l);
|
|
1644
1643
|
}
|
|
1645
1644
|
}
|
|
@@ -1719,7 +1718,7 @@ function Ta(n) {
|
|
|
1719
1718
|
}
|
|
1720
1719
|
var Ma = ["evt"], Se = function(e, t) {
|
|
1721
1720
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, a = ba(o, Ma);
|
|
1722
|
-
zt.pluginEvent.bind(
|
|
1721
|
+
zt.pluginEvent.bind(H)(e, t, We({
|
|
1723
1722
|
dragEl: F,
|
|
1724
1723
|
parentEl: fe,
|
|
1725
1724
|
ghostEl: q,
|
|
@@ -1730,7 +1729,7 @@ var Ma = ["evt"], Se = function(e, t) {
|
|
|
1730
1729
|
cloneHidden: tt,
|
|
1731
1730
|
dragStarted: Mt,
|
|
1732
1731
|
putSortable: we,
|
|
1733
|
-
activeSortable:
|
|
1732
|
+
activeSortable: H.active,
|
|
1734
1733
|
originalEvent: i,
|
|
1735
1734
|
oldIndex: wt,
|
|
1736
1735
|
oldDraggableIndex: Pt,
|
|
@@ -1765,7 +1764,7 @@ function ke(n) {
|
|
|
1765
1764
|
newDraggableIndex: et
|
|
1766
1765
|
}, n));
|
|
1767
1766
|
}
|
|
1768
|
-
var F, fe, q, ce, rt, Gt, ue, tt, wt, $e, Pt, et, Wt, we, bt = !1, on = !1, an = [], lt, Fe, vn, yn, to, no, Mt, yt, Ft, Lt = !1,
|
|
1767
|
+
var F, fe, q, ce, rt, Gt, ue, tt, wt, $e, Pt, et, Wt, we, bt = !1, on = !1, an = [], lt, Fe, vn, yn, to, no, Mt, yt, Ft, Lt = !1, Vt = !1, Kt, De, bn = [], Sn = !1, ln = [], un = typeof document < "u", Ht = Io, oo = Yt || Je ? "cssFloat" : "float", Ia = un && !$o && !Io && "draggable" in document.createElement("div"), Lo = function() {
|
|
1769
1768
|
if (un) {
|
|
1770
1769
|
if (Je)
|
|
1771
1770
|
return !1;
|
|
@@ -1773,7 +1772,7 @@ var F, fe, q, ce, rt, Gt, ue, tt, wt, $e, Pt, et, Wt, we, bt = !1, on = !1, an =
|
|
|
1773
1772
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
1774
1773
|
}
|
|
1775
1774
|
}(), Bo = function(e, t) {
|
|
1776
|
-
var o =
|
|
1775
|
+
var o = V(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a = Et(e, 0, t), l = Et(e, 1, t), s = a && V(a), r = l && V(l), c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + _e(a).width, d = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + _e(l).width;
|
|
1777
1776
|
if (o.display === "flex")
|
|
1778
1777
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1779
1778
|
if (o.display === "grid")
|
|
@@ -1817,9 +1816,9 @@ var F, fe, q, ce, rt, Gt, ue, tt, wt, $e, Pt, et, Wt, we, bt = !1, on = !1, an =
|
|
|
1817
1816
|
name: i
|
|
1818
1817
|
}), o.name = i.name, o.checkPull = t(i.pull, !0), o.checkPut = t(i.put), o.revertClone = i.revertClone, e.group = o;
|
|
1819
1818
|
}, Yo = function() {
|
|
1820
|
-
!Lo && q &&
|
|
1819
|
+
!Lo && q && V(q, "display", "none");
|
|
1821
1820
|
}, zo = function() {
|
|
1822
|
-
!Lo && q &&
|
|
1821
|
+
!Lo && q && V(q, "display", "");
|
|
1823
1822
|
};
|
|
1824
1823
|
un && !$o && document.addEventListener("click", function(n) {
|
|
1825
1824
|
if (on)
|
|
@@ -1839,7 +1838,7 @@ var st = function(e) {
|
|
|
1839
1838
|
}, Aa = function(e) {
|
|
1840
1839
|
F && F.parentNode[Ne]._isOutsideThisEl(e.target);
|
|
1841
1840
|
};
|
|
1842
|
-
function
|
|
1841
|
+
function H(n, e) {
|
|
1843
1842
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
1844
1843
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
1845
1844
|
this.el = n, this.options = e = Ge({}, e), n[Ne] = this;
|
|
@@ -1885,7 +1884,7 @@ function V(n, e) {
|
|
|
1885
1884
|
x: 0,
|
|
1886
1885
|
y: 0
|
|
1887
1886
|
},
|
|
1888
|
-
supportPointer:
|
|
1887
|
+
supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && !At,
|
|
1889
1888
|
emptyInsertThreshold: 5
|
|
1890
1889
|
};
|
|
1891
1890
|
zt.initializePlugins(this, n, t);
|
|
@@ -1896,9 +1895,9 @@ function V(n, e) {
|
|
|
1896
1895
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
1897
1896
|
this.nativeDraggable = e.forceFallback ? !1 : Ia, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? ee(n, "pointerdown", this._onTapStart) : (ee(n, "mousedown", this._onTapStart), ee(n, "touchstart", this._onTapStart)), this.nativeDraggable && (ee(n, "dragover", this), ee(n, "dragenter", this)), an.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Ge(this, Ea());
|
|
1898
1897
|
}
|
|
1899
|
-
|
|
1898
|
+
H.prototype = /** @lends Sortable.prototype */
|
|
1900
1899
|
{
|
|
1901
|
-
constructor:
|
|
1900
|
+
constructor: H,
|
|
1902
1901
|
_isOutsideThisEl: function(e) {
|
|
1903
1902
|
!this.el.contains(e) && e !== this.el && (yt = null);
|
|
1904
1903
|
},
|
|
@@ -1947,14 +1946,14 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
1947
1946
|
var i = this, a = i.el, l = i.options, s = a.ownerDocument, r;
|
|
1948
1947
|
if (o && !F && o.parentNode === a) {
|
|
1949
1948
|
var c = _e(o);
|
|
1950
|
-
if (ce = a, F = o, fe = F.parentNode, rt = F.nextSibling, Gt = o, Wt = l.group,
|
|
1949
|
+
if (ce = a, F = o, fe = F.parentNode, rt = F.nextSibling, Gt = o, Wt = l.group, H.dragged = F, lt = {
|
|
1951
1950
|
target: F,
|
|
1952
1951
|
clientX: (t || e).clientX,
|
|
1953
1952
|
clientY: (t || e).clientY
|
|
1954
1953
|
}, to = lt.clientX - c.left, no = lt.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, F.style["will-change"] = "all", r = function() {
|
|
1955
1954
|
if (Se("delayEnded", i, {
|
|
1956
1955
|
evt: e
|
|
1957
|
-
}),
|
|
1956
|
+
}), H.eventCanceled) {
|
|
1958
1957
|
i._onDrop();
|
|
1959
1958
|
return;
|
|
1960
1959
|
}
|
|
@@ -1968,7 +1967,7 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
1968
1967
|
}), ee(s, "dragover", st), ee(s, "mousemove", st), ee(s, "touchmove", st), ee(s, "mouseup", i._onDrop), ee(s, "touchend", i._onDrop), ee(s, "touchcancel", i._onDrop), Jn && this.nativeDraggable && (this.options.touchStartThreshold = 4, F.draggable = !0), Se("delayStart", this, {
|
|
1969
1968
|
evt: e
|
|
1970
1969
|
}), l.delay && (!l.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Yt || Je))) {
|
|
1971
|
-
if (
|
|
1970
|
+
if (H.eventCanceled) {
|
|
1972
1971
|
this._onDrop();
|
|
1973
1972
|
return;
|
|
1974
1973
|
}
|
|
@@ -2003,7 +2002,7 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2003
2002
|
evt: t
|
|
2004
2003
|
}), this.nativeDraggable && ee(document, "dragover", Aa);
|
|
2005
2004
|
var o = this.options;
|
|
2006
|
-
!e && Ie(F, o.dragClass, !1), Ie(F, o.ghostClass, !0),
|
|
2005
|
+
!e && Ie(F, o.dragClass, !1), Ie(F, o.ghostClass, !0), H.active = this, e && this._appendGhost(), ke({
|
|
2007
2006
|
sortable: this,
|
|
2008
2007
|
name: "start",
|
|
2009
2008
|
originalEvent: t
|
|
@@ -2035,8 +2034,8 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2035
2034
|
},
|
|
2036
2035
|
_onTouchMove: function(e) {
|
|
2037
2036
|
if (lt) {
|
|
2038
|
-
var t = this.options, o = t.fallbackTolerance, i = t.fallbackOffset, a = e.touches ? e.touches[0] : e, l = q && Ct(q, !0), s = q && l && l.a, r = q && l && l.d, c =
|
|
2039
|
-
if (!
|
|
2037
|
+
var t = this.options, o = t.fallbackTolerance, i = t.fallbackOffset, a = e.touches ? e.touches[0] : e, l = q && Ct(q, !0), s = q && l && l.a, r = q && l && l.d, c = Ht && De && eo(De), d = (a.clientX - lt.clientX + i.x) / (s || 1) + (c ? c[0] - bn[0] : 0) / (s || 1), u = (a.clientY - lt.clientY + i.y) / (r || 1) + (c ? c[1] - bn[1] : 0) / (r || 1);
|
|
2038
|
+
if (!H.active && !bt) {
|
|
2040
2039
|
if (o && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < o)
|
|
2041
2040
|
return;
|
|
2042
2041
|
this._onDragStart(e, !0);
|
|
@@ -2051,43 +2050,43 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2051
2050
|
f: u
|
|
2052
2051
|
};
|
|
2053
2052
|
var v = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
2054
|
-
|
|
2053
|
+
V(q, "webkitTransform", v), V(q, "mozTransform", v), V(q, "msTransform", v), V(q, "transform", v), vn = d, yn = u, Fe = a;
|
|
2055
2054
|
}
|
|
2056
2055
|
e.cancelable && e.preventDefault();
|
|
2057
2056
|
}
|
|
2058
2057
|
},
|
|
2059
2058
|
_appendGhost: function() {
|
|
2060
2059
|
if (!q) {
|
|
2061
|
-
var e = this.options.fallbackOnBody ? document.body : ce, t = _e(F, !0,
|
|
2062
|
-
if (
|
|
2063
|
-
for (De = e;
|
|
2060
|
+
var e = this.options.fallbackOnBody ? document.body : ce, t = _e(F, !0, Ht, !0, e), o = this.options;
|
|
2061
|
+
if (Ht) {
|
|
2062
|
+
for (De = e; V(De, "position") === "static" && V(De, "transform") === "none" && De !== document; )
|
|
2064
2063
|
De = De.parentNode;
|
|
2065
2064
|
De !== document.body && De !== document.documentElement ? (De === document && (De = je()), t.top += De.scrollTop, t.left += De.scrollLeft) : De = je(), bn = eo(De);
|
|
2066
2065
|
}
|
|
2067
|
-
q = F.cloneNode(!0), Ie(q, o.ghostClass, !1), Ie(q, o.fallbackClass, !0), Ie(q, o.dragClass, !0),
|
|
2066
|
+
q = F.cloneNode(!0), Ie(q, o.ghostClass, !1), Ie(q, o.fallbackClass, !0), Ie(q, o.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", Ht ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), H.ghost = q, e.appendChild(q), V(q, "transform-origin", to / parseInt(q.style.width) * 100 + "% " + no / parseInt(q.style.height) * 100 + "%");
|
|
2068
2067
|
}
|
|
2069
2068
|
},
|
|
2070
2069
|
_onDragStart: function(e, t) {
|
|
2071
2070
|
var o = this, i = e.dataTransfer, a = o.options;
|
|
2072
2071
|
if (Se("dragStart", this, {
|
|
2073
2072
|
evt: e
|
|
2074
|
-
}),
|
|
2073
|
+
}), H.eventCanceled) {
|
|
2075
2074
|
this._onDrop();
|
|
2076
2075
|
return;
|
|
2077
2076
|
}
|
|
2078
|
-
Se("setupClone", this),
|
|
2079
|
-
Se("clone", o), !
|
|
2077
|
+
Se("setupClone", this), H.eventCanceled || (ue = Fo(F), ue.removeAttribute("id"), ue.draggable = !1, ue.style["will-change"] = "", this._hideClone(), Ie(ue, this.options.chosenClass, !1), H.clone = ue), o.cloneId = Jt(function() {
|
|
2078
|
+
Se("clone", o), !H.eventCanceled && (o.options.removeCloneOnHide || ce.insertBefore(ue, F), o._hideClone(), ke({
|
|
2080
2079
|
sortable: o,
|
|
2081
2080
|
name: "clone"
|
|
2082
2081
|
}));
|
|
2083
|
-
}), !t && Ie(F, a.dragClass, !0), t ? (on = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (Z(document, "mouseup", o._onDrop), Z(document, "touchend", o._onDrop), Z(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, F)), ee(document, "drop", o),
|
|
2082
|
+
}), !t && Ie(F, a.dragClass, !0), t ? (on = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (Z(document, "mouseup", o._onDrop), Z(document, "touchend", o._onDrop), Z(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, F)), ee(document, "drop", o), V(F, "transform", "translateZ(0)")), bt = !0, o._dragStartId = Jt(o._dragStarted.bind(o, t, e)), ee(document, "selectstart", o), Mt = !0, At && V(document.body, "user-select", "none");
|
|
2084
2083
|
},
|
|
2085
2084
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2086
2085
|
_onDragOver: function(e) {
|
|
2087
|
-
var t = this.el, o = e.target, i, a, l, s = this.options, r = s.group, c =
|
|
2086
|
+
var t = this.el, o = e.target, i, a, l, s = this.options, r = s.group, c = H.active, d = Wt === r, u = s.sort, v = we || c, b, x = this, g = !1;
|
|
2088
2087
|
if (Sn) return;
|
|
2089
|
-
function f(
|
|
2090
|
-
Se(
|
|
2088
|
+
function f(U, le) {
|
|
2089
|
+
Se(U, x, We({
|
|
2091
2090
|
evt: e,
|
|
2092
2091
|
isOwner: d,
|
|
2093
2092
|
axis: b ? "vertical" : "horizontal",
|
|
@@ -2099,7 +2098,7 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2099
2098
|
target: o,
|
|
2100
2099
|
completed: w,
|
|
2101
2100
|
onMove: function(G, ie) {
|
|
2102
|
-
return
|
|
2101
|
+
return Ut(ce, t, F, i, G, _e(G), e, ie);
|
|
2103
2102
|
},
|
|
2104
2103
|
changed: T
|
|
2105
2104
|
}, le));
|
|
@@ -2107,12 +2106,12 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2107
2106
|
function M() {
|
|
2108
2107
|
f("dragOverAnimationCapture"), x.captureAnimationState(), x !== v && v.captureAnimationState();
|
|
2109
2108
|
}
|
|
2110
|
-
function w(
|
|
2109
|
+
function w(U) {
|
|
2111
2110
|
return f("dragOverCompleted", {
|
|
2112
|
-
insertion:
|
|
2113
|
-
}),
|
|
2111
|
+
insertion: U
|
|
2112
|
+
}), U && (d ? c._hideClone() : c._showClone(x), x !== v && (Ie(F, we ? we.options.ghostClass : c.options.ghostClass, !1), Ie(F, s.ghostClass, !0)), we !== x && x !== H.active ? we = x : x === H.active && we && (we = null), v === x && (x._ignoreWhileAnimating = o), x.animateAll(function() {
|
|
2114
2113
|
f("dragOverAnimationComplete"), x._ignoreWhileAnimating = null;
|
|
2115
|
-
}), x !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === F && !F.animated || o === t && !o.animated) && (yt = null), !s.dragoverBubble && !e.rootEl && o !== document && (F.parentNode[Ne]._isOutsideThisEl(e.target), !
|
|
2114
|
+
}), x !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === F && !F.animated || o === t && !o.animated) && (yt = null), !s.dragoverBubble && !e.rootEl && o !== document && (F.parentNode[Ne]._isOutsideThisEl(e.target), !U && st(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
|
|
2116
2115
|
}
|
|
2117
2116
|
function T() {
|
|
2118
2117
|
$e = Oe(F), et = Oe(F, s.draggable), ke({
|
|
@@ -2124,44 +2123,44 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2124
2123
|
originalEvent: e
|
|
2125
2124
|
});
|
|
2126
2125
|
}
|
|
2127
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = Re(o, s.draggable, t, !0), f("dragOver"),
|
|
2126
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = Re(o, s.draggable, t, !0), f("dragOver"), H.eventCanceled) return g;
|
|
2128
2127
|
if (F.contains(e.target) || o.animated && o.animatingX && o.animatingY || x._ignoreWhileAnimating === o)
|
|
2129
2128
|
return w(!1);
|
|
2130
2129
|
if (on = !1, c && !s.disabled && (d ? u || (l = fe !== ce) : we === this || (this.lastPutMode = Wt.checkPull(this, c, F, e)) && r.checkPut(this, c, F, e))) {
|
|
2131
|
-
if (b = this._getDirection(e, o) === "vertical", i = _e(F), f("dragOverValid"),
|
|
2130
|
+
if (b = this._getDirection(e, o) === "vertical", i = _e(F), f("dragOverValid"), H.eventCanceled) return g;
|
|
2132
2131
|
if (l)
|
|
2133
|
-
return fe = ce, M(), this._hideClone(), f("revert"),
|
|
2132
|
+
return fe = ce, M(), this._hideClone(), f("revert"), H.eventCanceled || (rt ? ce.insertBefore(F, rt) : ce.appendChild(F)), w(!0);
|
|
2134
2133
|
var p = Ln(t, s.draggable);
|
|
2135
2134
|
if (!p || La(e, b, this) && !p.animated) {
|
|
2136
2135
|
if (p === F)
|
|
2137
2136
|
return w(!1);
|
|
2138
|
-
if (p && t === e.target && (o = p), o && (a = _e(o)),
|
|
2137
|
+
if (p && t === e.target && (o = p), o && (a = _e(o)), Ut(ce, t, F, i, o, a, e, !!o) !== !1)
|
|
2139
2138
|
return M(), p && p.nextSibling ? t.insertBefore(F, p.nextSibling) : t.appendChild(F), fe = t, T(), w(!0);
|
|
2140
2139
|
} else if (p && Fa(e, b, this)) {
|
|
2141
2140
|
var y = Et(t, 0, s, !0);
|
|
2142
2141
|
if (y === F)
|
|
2143
2142
|
return w(!1);
|
|
2144
|
-
if (o = y, a = _e(o),
|
|
2143
|
+
if (o = y, a = _e(o), Ut(ce, t, F, i, o, a, e, !1) !== !1)
|
|
2145
2144
|
return M(), t.insertBefore(F, y), fe = t, T(), w(!0);
|
|
2146
2145
|
} else if (o.parentNode === t) {
|
|
2147
2146
|
a = _e(o);
|
|
2148
2147
|
var k = 0, h, E = F.parentNode !== t, S = !$a(F.animated && F.toRect || i, o.animated && o.toRect || a, b), R = b ? "top" : "left", $ = Zn(o, "top", "top") || Zn(F, "top", "top"), m = $ ? $.scrollTop : void 0;
|
|
2149
|
-
yt !== o && (h = a[R], Lt = !1,
|
|
2148
|
+
yt !== o && (h = a[R], Lt = !1, Vt = !S && s.invertSwap || E), k = Ba(e, o, a, b, S ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Vt, yt === o);
|
|
2150
2149
|
var C;
|
|
2151
2150
|
if (k !== 0) {
|
|
2152
2151
|
var D = Oe(F);
|
|
2153
2152
|
do
|
|
2154
2153
|
D -= k, C = fe.children[D];
|
|
2155
|
-
while (C && (
|
|
2154
|
+
while (C && (V(C, "display") === "none" || C === q));
|
|
2156
2155
|
}
|
|
2157
2156
|
if (k === 0 || C === o)
|
|
2158
2157
|
return w(!1);
|
|
2159
2158
|
yt = o, Ft = k;
|
|
2160
2159
|
var _ = o.nextElementSibling, I = !1;
|
|
2161
2160
|
I = k === 1;
|
|
2162
|
-
var Y =
|
|
2161
|
+
var Y = Ut(ce, t, F, i, o, a, e, I);
|
|
2163
2162
|
if (Y !== !1)
|
|
2164
|
-
return (Y === 1 || Y === -1) && (I = Y === 1), Sn = !0, setTimeout(Pa, 30), M(), I && !_ ? t.appendChild(F) : o.parentNode.insertBefore(F, I ? _ : o), $ && Po($, 0, m - $.scrollTop), fe = F.parentNode, h !== void 0 && !
|
|
2163
|
+
return (Y === 1 || Y === -1) && (I = Y === 1), Sn = !0, setTimeout(Pa, 30), M(), I && !_ ? t.appendChild(F) : o.parentNode.insertBefore(F, I ? _ : o), $ && Po($, 0, m - $.scrollTop), fe = F.parentNode, h !== void 0 && !Vt && (Kt = Math.abs(h - _e(o)[R])), T(), w(!0);
|
|
2165
2164
|
}
|
|
2166
2165
|
if (t.contains(F))
|
|
2167
2166
|
return w(!1);
|
|
@@ -2180,11 +2179,11 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2180
2179
|
var t = this.el, o = this.options;
|
|
2181
2180
|
if ($e = Oe(F), et = Oe(F, o.draggable), Se("drop", this, {
|
|
2182
2181
|
evt: e
|
|
2183
|
-
}), fe = F && F.parentNode, $e = Oe(F), et = Oe(F, o.draggable),
|
|
2182
|
+
}), fe = F && F.parentNode, $e = Oe(F), et = Oe(F, o.draggable), H.eventCanceled) {
|
|
2184
2183
|
this._nulling();
|
|
2185
2184
|
return;
|
|
2186
2185
|
}
|
|
2187
|
-
bt = !1,
|
|
2186
|
+
bt = !1, Vt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Tn(this.cloneId), Tn(this._dragStartId), this.nativeDraggable && (Z(document, "drop", this), Z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), At && V(document.body, "user-select", ""), V(F, "transform", ""), e && (Mt && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (ce === fe || we && we.lastPutMode !== "clone") && ue && ue.parentNode && ue.parentNode.removeChild(ue), F && (this.nativeDraggable && Z(F, "dragend", this), _n(F), F.style["will-change"] = "", Mt && !bt && Ie(F, we ? we.options.ghostClass : this.options.ghostClass, !1), Ie(F, this.options.chosenClass, !1), ke({
|
|
2188
2187
|
sortable: this,
|
|
2189
2188
|
name: "unchoose",
|
|
2190
2189
|
toEl: fe,
|
|
@@ -2223,7 +2222,7 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2223
2222
|
name: "sort",
|
|
2224
2223
|
toEl: fe,
|
|
2225
2224
|
originalEvent: e
|
|
2226
|
-
})),
|
|
2225
|
+
})), H.active && (($e == null || $e === -1) && ($e = wt, et = Pt), ke({
|
|
2227
2226
|
sortable: this,
|
|
2228
2227
|
name: "end",
|
|
2229
2228
|
toEl: fe,
|
|
@@ -2231,7 +2230,7 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2231
2230
|
}), this.save()))), this._nulling();
|
|
2232
2231
|
},
|
|
2233
2232
|
_nulling: function() {
|
|
2234
|
-
Se("nulling", this), ce = F = fe = q = rt = ue = Gt = tt = lt = Fe = Mt = $e = et = wt = Pt = yt = Ft = we = Wt =
|
|
2233
|
+
Se("nulling", this), ce = F = fe = q = rt = ue = Gt = tt = lt = Fe = Mt = $e = et = wt = Pt = yt = Ft = we = Wt = H.dragged = H.ghost = H.clone = H.active = null, ln.forEach(function(e) {
|
|
2235
2234
|
e.checked = !0;
|
|
2236
2235
|
}), ln.length = vn = yn = 0;
|
|
2237
2236
|
},
|
|
@@ -2313,8 +2312,8 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2313
2312
|
},
|
|
2314
2313
|
_hideClone: function() {
|
|
2315
2314
|
if (!tt) {
|
|
2316
|
-
if (Se("hideClone", this),
|
|
2317
|
-
|
|
2315
|
+
if (Se("hideClone", this), H.eventCanceled) return;
|
|
2316
|
+
V(ue, "display", "none"), this.options.removeCloneOnHide && ue.parentNode && ue.parentNode.removeChild(ue), tt = !0;
|
|
2318
2317
|
}
|
|
2319
2318
|
},
|
|
2320
2319
|
_showClone: function(e) {
|
|
@@ -2323,15 +2322,15 @@ V.prototype = /** @lends Sortable.prototype */
|
|
|
2323
2322
|
return;
|
|
2324
2323
|
}
|
|
2325
2324
|
if (tt) {
|
|
2326
|
-
if (Se("showClone", this),
|
|
2327
|
-
F.parentNode == ce && !this.options.group.revertClone ? ce.insertBefore(ue, F) : rt ? ce.insertBefore(ue, rt) : ce.appendChild(ue), this.options.group.revertClone && this.animate(F, ue),
|
|
2325
|
+
if (Se("showClone", this), H.eventCanceled) return;
|
|
2326
|
+
F.parentNode == ce && !this.options.group.revertClone ? ce.insertBefore(ue, F) : rt ? ce.insertBefore(ue, rt) : ce.appendChild(ue), this.options.group.revertClone && this.animate(F, ue), V(ue, "display", ""), tt = !1;
|
|
2328
2327
|
}
|
|
2329
2328
|
}
|
|
2330
2329
|
};
|
|
2331
2330
|
function Oa(n) {
|
|
2332
2331
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
2333
2332
|
}
|
|
2334
|
-
function
|
|
2333
|
+
function Ut(n, e, t, o, i, a, l, s) {
|
|
2335
2334
|
var r, c = n[Ne], d = c.options.onMove, u;
|
|
2336
2335
|
return window.CustomEvent && !Je && !Yt ? r = new CustomEvent("move", {
|
|
2337
2336
|
bubbles: !0,
|
|
@@ -2387,12 +2386,12 @@ function Tn(n) {
|
|
|
2387
2386
|
return clearTimeout(n);
|
|
2388
2387
|
}
|
|
2389
2388
|
un && ee(document, "touchmove", function(n) {
|
|
2390
|
-
(
|
|
2389
|
+
(H.active || bt) && n.cancelable && n.preventDefault();
|
|
2391
2390
|
});
|
|
2392
|
-
|
|
2391
|
+
H.utils = {
|
|
2393
2392
|
on: ee,
|
|
2394
2393
|
off: Z,
|
|
2395
|
-
css:
|
|
2394
|
+
css: V,
|
|
2396
2395
|
find: Ao,
|
|
2397
2396
|
is: function(e, t) {
|
|
2398
2397
|
return !!Re(e, t, e, !1);
|
|
@@ -2408,22 +2407,22 @@ V.utils = {
|
|
|
2408
2407
|
detectDirection: Bo,
|
|
2409
2408
|
getChild: Et
|
|
2410
2409
|
};
|
|
2411
|
-
|
|
2410
|
+
H.get = function(n) {
|
|
2412
2411
|
return n[Ne];
|
|
2413
2412
|
};
|
|
2414
|
-
|
|
2413
|
+
H.mount = function() {
|
|
2415
2414
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
2416
2415
|
e[t] = arguments[t];
|
|
2417
2416
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
2418
2417
|
if (!o.prototype || !o.prototype.constructor)
|
|
2419
2418
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
2420
|
-
o.utils && (
|
|
2419
|
+
o.utils && (H.utils = We(We({}, H.utils), o.utils)), zt.mount(o);
|
|
2421
2420
|
});
|
|
2422
2421
|
};
|
|
2423
|
-
|
|
2424
|
-
return new
|
|
2422
|
+
H.create = function(n, e) {
|
|
2423
|
+
return new H(n, e);
|
|
2425
2424
|
};
|
|
2426
|
-
|
|
2425
|
+
H.version = _a;
|
|
2427
2426
|
var ye = [], It, Mn, In = !1, wn, Dn, sn, $t;
|
|
2428
2427
|
function ja() {
|
|
2429
2428
|
function n() {
|
|
@@ -2491,16 +2490,16 @@ var Cn = Oo(function(n, e, t, o) {
|
|
|
2491
2490
|
Mn !== t && (Mn = t, Qt(), It = e.scroll, d = e.scrollFn, It === !0 && (It = nt(t, !0)));
|
|
2492
2491
|
var u = 0, v = It;
|
|
2493
2492
|
do {
|
|
2494
|
-
var b = v, x = _e(b), g = x.top, f = x.bottom, M = x.left, w = x.right, T = x.width, p = x.height, y = void 0, k = void 0, h = b.scrollWidth, E = b.scrollHeight, S =
|
|
2493
|
+
var b = v, x = _e(b), g = x.top, f = x.bottom, M = x.left, w = x.right, T = x.width, p = x.height, y = void 0, k = void 0, h = b.scrollWidth, E = b.scrollHeight, S = V(b), R = b.scrollLeft, $ = b.scrollTop;
|
|
2495
2494
|
b === r ? (y = T < h && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), k = p < E && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (y = T < h && (S.overflowX === "auto" || S.overflowX === "scroll"), k = p < E && (S.overflowY === "auto" || S.overflowY === "scroll"));
|
|
2496
2495
|
var m = y && (Math.abs(w - i) <= l && R + T < h) - (Math.abs(M - i) <= l && !!R), C = k && (Math.abs(f - a) <= l && $ + p < E) - (Math.abs(g - a) <= l && !!$);
|
|
2497
2496
|
if (!ye[u])
|
|
2498
2497
|
for (var D = 0; D <= u; D++)
|
|
2499
2498
|
ye[D] || (ye[D] = {});
|
|
2500
2499
|
(ye[u].vx != m || ye[u].vy != C || ye[u].el !== b) && (ye[u].el = b, ye[u].vx = m, ye[u].vy = C, clearInterval(ye[u].pid), (m != 0 || C != 0) && (c = !0, ye[u].pid = setInterval((function() {
|
|
2501
|
-
o && this.layer === 0 &&
|
|
2500
|
+
o && this.layer === 0 && H.active._onTouchMove(sn);
|
|
2502
2501
|
var _ = ye[this.layer].vy ? ye[this.layer].vy * s : 0, I = ye[this.layer].vx ? ye[this.layer].vx * s : 0;
|
|
2503
|
-
typeof d == "function" && d.call(
|
|
2502
|
+
typeof d == "function" && d.call(H.dragged.parentNode[Ne], I, _, n, sn, ye[this.layer].el) !== "continue" || Po(ye[this.layer].el, I, _);
|
|
2504
2503
|
}).bind({
|
|
2505
2504
|
layer: u
|
|
2506
2505
|
}), 24))), u++;
|
|
@@ -2550,12 +2549,12 @@ Rn.prototype = {
|
|
|
2550
2549
|
Ge(Rn, {
|
|
2551
2550
|
pluginName: "removeOnSpill"
|
|
2552
2551
|
});
|
|
2553
|
-
|
|
2554
|
-
|
|
2552
|
+
H.mount(new ja());
|
|
2553
|
+
H.mount(Rn, Bn);
|
|
2555
2554
|
const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e) => (n.forEach((t) => {
|
|
2556
2555
|
var o;
|
|
2557
2556
|
t.auth = e && e[t.code] || t.auth, t.name ? (xn == null ? void 0 : xn.i18nEnabled) === "Y" && !t.name.startsWith("message.") && (t.name = `message.btn.${t.name}`) : t.name = `message.btn.${t.code}`, (o = t.dropdowns) != null && o.length && Wo(t.dropdowns, e);
|
|
2558
|
-
}), n),
|
|
2557
|
+
}), n), Vo = (n, e, t) => {
|
|
2559
2558
|
const o = { pageNum: 1, pageSize: 1e5 }, i = Yn();
|
|
2560
2559
|
Object.assign(o, t, i, n.defaultParams || {});
|
|
2561
2560
|
const a = Xo(o, n.items), { url: l } = n;
|
|
@@ -2570,7 +2569,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2570
2569
|
d(u);
|
|
2571
2570
|
});
|
|
2572
2571
|
});
|
|
2573
|
-
},
|
|
2572
|
+
}, Ho = (n, e, t, o, i) => {
|
|
2574
2573
|
if (i) return Xa();
|
|
2575
2574
|
for (const u in e)
|
|
2576
2575
|
e[u] && xt(e[u]) && (e[u] = e[u].trim());
|
|
@@ -2580,7 +2579,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2580
2579
|
if (!r) return null;
|
|
2581
2580
|
const c = xt(r) ? r : r.fetch || r.restful, d = r.fetch ? "post" : "get";
|
|
2582
2581
|
return c ? o[d](c, s) : null;
|
|
2583
|
-
},
|
|
2582
|
+
}, Uo = (n, e, t) => {
|
|
2584
2583
|
const { url: o } = t;
|
|
2585
2584
|
if (!o) return null;
|
|
2586
2585
|
const i = xt(o) ? o : o.del || o.restful;
|
|
@@ -2625,7 +2624,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2625
2624
|
r && i.toField ? (o[i.fromField] = ae(r[0], lo), o[i.toField] = ae(r[1], so)) : r && (o[`${i.field}From`] = ae(r[0], lo), o[`${i.field}To`] = ae(r[1], so)), delete o[i.field];
|
|
2626
2625
|
}
|
|
2627
2626
|
}), o;
|
|
2628
|
-
}, Yn = () => Pe.get(ao) ? JSON.parse(Pe.get(ao)) : {},
|
|
2627
|
+
}, Yn = () => Pe.get(ao) ? JSON.parse(Pe.get(ao)) : {}, Va = [
|
|
2629
2628
|
{
|
|
2630
2629
|
code: "insert_actived",
|
|
2631
2630
|
name: "add",
|
|
@@ -2645,7 +2644,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2645
2644
|
icon: "vxe-icon-save",
|
|
2646
2645
|
auth: "edit"
|
|
2647
2646
|
}
|
|
2648
|
-
],
|
|
2647
|
+
], Ha = [
|
|
2649
2648
|
{
|
|
2650
2649
|
code: "add",
|
|
2651
2650
|
name: "add",
|
|
@@ -2660,7 +2659,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2660
2659
|
icon: "vxe-icon-delete",
|
|
2661
2660
|
auth: "del"
|
|
2662
2661
|
}
|
|
2663
|
-
],
|
|
2662
|
+
], Ua = [
|
|
2664
2663
|
{ field: "createdByName", width: 90, visible: !1 },
|
|
2665
2664
|
{ field: "creationDate", width: 140, visible: !1 },
|
|
2666
2665
|
{ field: "lastUpdatedByName", width: 90, visible: !1 },
|
|
@@ -2691,7 +2690,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2691
2690
|
}, n;
|
|
2692
2691
|
}
|
|
2693
2692
|
let a = Ce(t.buttons || [], !0);
|
|
2694
|
-
(t.mode !== "form" ? Ce(
|
|
2693
|
+
(t.mode !== "form" ? Ce(Va, !0) : Ce(Ha, !0)).reverse().forEach((d) => {
|
|
2695
2694
|
!a.some((u) => u.code === d.code) && a.unshift(d), t.authPrefix && !["print", "export"].includes(d.auth) && (d.auth = t.authPrefix + d.auth.slice(0, 1).toLocaleUpperCase() + d.auth.slice(1).toLocaleLowerCase());
|
|
2696
2695
|
}), a = Wo(a, e.auth).filter((d) => {
|
|
2697
2696
|
var v;
|
|
@@ -2793,10 +2792,10 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2793
2792
|
setup(n, { emit: e }) {
|
|
2794
2793
|
const t = n, o = Ke(), i = o.appContext.config.globalProperties.$serviceApi, a = o.appContext.config.globalProperties.$hasAuthority, l = Co(), { t: s } = it();
|
|
2795
2794
|
console.log("view ======", t.view);
|
|
2796
|
-
const r =
|
|
2795
|
+
const r = B(null), c = B(""), d = B(!1), u = B(!1), v = B(!1), b = B(!1), x = B(!0), g = B({}), f = Pe.get("loginer");
|
|
2797
2796
|
let M, w, T;
|
|
2798
|
-
const p =
|
|
2799
|
-
const
|
|
2797
|
+
const p = B([]), y = xe(() => t.items.length ? ut(h(), s) : {}), k = xe(() => t.items.length ? Pn(h(), "update") : t.items), h = () => {
|
|
2798
|
+
const A = [
|
|
2800
2799
|
{ field: "title", title: "方案名称", required: !0 },
|
|
2801
2800
|
{
|
|
2802
2801
|
field: "isPrivate",
|
|
@@ -2804,38 +2803,38 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2804
2803
|
itemRender: l.renderSwitch("Y")
|
|
2805
2804
|
}
|
|
2806
2805
|
];
|
|
2807
|
-
return
|
|
2808
|
-
}, E = (
|
|
2806
|
+
return A.push(...Ce(t.items, !0)), A.filter((L) => L.field !== "dataFlat");
|
|
2807
|
+
}, E = (A) => {
|
|
2809
2808
|
w = null;
|
|
2810
|
-
const
|
|
2809
|
+
const L = A.select;
|
|
2811
2810
|
p.value.forEach((j) => {
|
|
2812
2811
|
j.select = !1;
|
|
2813
|
-
}),
|
|
2812
|
+
}), A.select = !L, x.value = L, w = L ? w : A, A.id === "add" && (x.value = !0, S());
|
|
2814
2813
|
}, S = () => {
|
|
2815
2814
|
g.value = { isPrivate: "Y", item: {} }, u.value = !0;
|
|
2816
|
-
}, R = (
|
|
2815
|
+
}, R = (A, L) => {
|
|
2817
2816
|
g.value = {
|
|
2818
|
-
title:
|
|
2819
|
-
isPrivate:
|
|
2820
|
-
item:
|
|
2821
|
-
...
|
|
2822
|
-
}, M =
|
|
2817
|
+
title: A.title,
|
|
2818
|
+
isPrivate: A.isPrivate,
|
|
2819
|
+
item: A,
|
|
2820
|
+
...A.content
|
|
2821
|
+
}, M = L, u.value = !0;
|
|
2823
2822
|
}, $ = () => {
|
|
2824
|
-
r.value.validate(async (
|
|
2825
|
-
if (!
|
|
2826
|
-
const
|
|
2823
|
+
r.value.validate(async (A) => {
|
|
2824
|
+
if (!A) {
|
|
2825
|
+
const L = _();
|
|
2827
2826
|
b.value = !0;
|
|
2828
|
-
const j =
|
|
2827
|
+
const j = L.id ? "put" : "post", [J, K] = await Fn(i[j](En, [L]));
|
|
2829
2828
|
b.value = !1, J || (K[0].select = !1, K[0].content = JSON.parse(K[0].content), j === "post" ? p.value.splice(p.value.length - 1, 0, K[0]) : p.value.splice(M, 1, K[0]), T = Ce(p.value, !0), tn(), u.value = !1);
|
|
2830
2829
|
}
|
|
2831
2830
|
});
|
|
2832
2831
|
}, m = () => {
|
|
2833
2832
|
v.value = !0;
|
|
2834
|
-
const
|
|
2833
|
+
const A = Pe.get("kCookies_param") ? JSON.parse(Pe.get("kCookies_param")) : {}, L = Object.assign(
|
|
2835
2834
|
{ pageSize: 50, pageNum: 1, userName: f, viewCode: t.view },
|
|
2836
|
-
|
|
2835
|
+
A
|
|
2837
2836
|
);
|
|
2838
|
-
i.get(En,
|
|
2837
|
+
i.get(En, L).then((j) => {
|
|
2839
2838
|
const J = j.list;
|
|
2840
2839
|
I(J), T = Ce(p.value, !0);
|
|
2841
2840
|
}).finally(() => {
|
|
@@ -2846,49 +2845,49 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2846
2845
|
}, D = () => {
|
|
2847
2846
|
u.value ? (g.value = {}, u.value = !1) : (d.value = !1, se("close"));
|
|
2848
2847
|
}, _ = () => {
|
|
2849
|
-
const
|
|
2848
|
+
const A = g.value, { title: L, isPrivate: j } = A, J = Pe.get("kCookies_param") ? JSON.parse(Pe.get("kCookies_param")) : {}, K = {
|
|
2850
2849
|
...g.value.item,
|
|
2851
2850
|
...J,
|
|
2852
|
-
title:
|
|
2851
|
+
title: L,
|
|
2853
2852
|
isPrivate: j,
|
|
2854
2853
|
viewCode: t.view,
|
|
2855
2854
|
content: "",
|
|
2856
2855
|
userName: f
|
|
2857
2856
|
};
|
|
2858
|
-
delete
|
|
2857
|
+
delete A.title, delete A.isPrivate, delete A.item;
|
|
2859
2858
|
const re = {};
|
|
2860
|
-
for (const Ae in
|
|
2861
|
-
|
|
2859
|
+
for (const Ae in A)
|
|
2860
|
+
A[Ae] && (re[Ae] = A[Ae]);
|
|
2862
2861
|
return K.content = JSON.stringify(re), K;
|
|
2863
|
-
}, I = (
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
}),
|
|
2867
|
-
}, Y = (
|
|
2862
|
+
}, I = (A) => {
|
|
2863
|
+
A.forEach((L) => {
|
|
2864
|
+
L.select = !1, L.content = JSON.parse(L.content);
|
|
2865
|
+
}), A.push({ id: "add" }), p.value = A;
|
|
2866
|
+
}, Y = (A) => {
|
|
2868
2867
|
var j;
|
|
2869
|
-
return (j = k.value.find((J) => J.field ===
|
|
2870
|
-
},
|
|
2868
|
+
return (j = k.value.find((J) => J.field === A)) == null ? void 0 : j.title;
|
|
2869
|
+
}, U = (A, L) => {
|
|
2871
2870
|
var J, K, re, Ae, Qe;
|
|
2872
|
-
const j = (J = t.items) == null ? void 0 : J.find((te) => te.field ===
|
|
2873
|
-
return (K = j == null ? void 0 : j.itemRender) != null && K.dictCode && ((Qe = (Ae = (re = j == null ? void 0 : j.itemRender) == null ? void 0 : re.options) == null ? void 0 : Ae.find((te) => te.dictCode ===
|
|
2874
|
-
}, le = async (
|
|
2871
|
+
const j = (J = t.items) == null ? void 0 : J.find((te) => te.field === A);
|
|
2872
|
+
return (K = j == null ? void 0 : j.itemRender) != null && K.dictCode && ((Qe = (Ae = (re = j == null ? void 0 : j.itemRender) == null ? void 0 : re.options) == null ? void 0 : Ae.find((te) => te.dictCode === L)) == null ? void 0 : Qe.dictName) || L;
|
|
2873
|
+
}, le = async (A, L) => {
|
|
2875
2874
|
if (await ct.modal.confirm(
|
|
2876
|
-
`继续操作将删除查询方案【${
|
|
2875
|
+
`继续操作将删除查询方案【${A.title}】`
|
|
2877
2876
|
) === "confirm") {
|
|
2878
2877
|
v.value = !0;
|
|
2879
|
-
const J = Ce(
|
|
2878
|
+
const J = Ce(A, !0);
|
|
2880
2879
|
J.content = JSON.stringify(J.content), i.delete(En, [J]).then(() => {
|
|
2881
|
-
p.value.splice(
|
|
2880
|
+
p.value.splice(L, 1), T = Ce(p.value, !0), tn();
|
|
2882
2881
|
}).finally(() => {
|
|
2883
2882
|
v.value = !1;
|
|
2884
2883
|
});
|
|
2885
2884
|
}
|
|
2886
2885
|
}, Te = () => {
|
|
2887
2886
|
p.value = T.filter(
|
|
2888
|
-
(
|
|
2887
|
+
(A) => A.id === "add" || A.title.includes(c.value)
|
|
2889
2888
|
);
|
|
2890
|
-
}, G = (
|
|
2891
|
-
["Enter", "NumpadEnter"].includes(
|
|
2889
|
+
}, G = (A) => {
|
|
2890
|
+
["Enter", "NumpadEnter"].includes(A.$event.code) && Te();
|
|
2892
2891
|
}, ie = () => {
|
|
2893
2892
|
c.value = "", p.value = Ce(T, !0);
|
|
2894
2893
|
};
|
|
@@ -2896,17 +2895,17 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2896
2895
|
const se = e;
|
|
2897
2896
|
return ft(() => {
|
|
2898
2897
|
d.value = !0;
|
|
2899
|
-
}), (
|
|
2898
|
+
}), (A, L) => {
|
|
2900
2899
|
const j = W("el-popover"), J = W("el-scrollbar"), K = W("vxe-input"), re = W("ut-button"), Ae = W("vxe-modal"), Qe = W("vxe-form");
|
|
2901
|
-
return
|
|
2900
|
+
return O(), P("div", Ga, [
|
|
2902
2901
|
z(Ae, {
|
|
2903
2902
|
modelValue: d.value,
|
|
2904
|
-
"onUpdate:modelValue":
|
|
2903
|
+
"onUpdate:modelValue": L[4] || (L[4] = (te) => d.value = te),
|
|
2905
2904
|
loading: v.value,
|
|
2906
2905
|
width: "820",
|
|
2907
2906
|
height: "360",
|
|
2908
2907
|
"show-footer": "",
|
|
2909
|
-
onClose:
|
|
2908
|
+
onClose: L[5] || (L[5] = (te) => D())
|
|
2910
2909
|
}, {
|
|
2911
2910
|
title: X(() => [
|
|
2912
2911
|
N("div", null, [
|
|
@@ -2930,26 +2929,26 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2930
2929
|
]),
|
|
2931
2930
|
default: X(() => [
|
|
2932
2931
|
N("div", el, [
|
|
2933
|
-
(
|
|
2932
|
+
(O(!0), P(ve, null, me(p.value, (te, St) => (O(), P("div", {
|
|
2934
2933
|
key: te.id,
|
|
2935
2934
|
class: "card",
|
|
2936
2935
|
style: pe({ width: p.value.length === 1 ? "100%" : "" }),
|
|
2937
2936
|
onClick: (Be) => E(te)
|
|
2938
2937
|
}, [
|
|
2939
|
-
te.id !== "add" ? (
|
|
2938
|
+
te.id !== "add" ? (O(), P("div", {
|
|
2940
2939
|
key: 0,
|
|
2941
2940
|
class: Xe(["flex flex-col justify-between card-content card2", { selectCard: te.select }])
|
|
2942
2941
|
}, [
|
|
2943
2942
|
N("div", nl, [
|
|
2944
2943
|
N("span", ol, Q(te.title) + "(" + Q(te.userName === ge(f) ? "自己" : te.userName) + ")", 1),
|
|
2945
2944
|
N("div", il, [
|
|
2946
|
-
te.userName === ge(f) || ge(a)("fetch") ? (
|
|
2945
|
+
te.userName === ge(f) || ge(a)("fetch") ? (O(), P("div", {
|
|
2947
2946
|
key: 0,
|
|
2948
2947
|
class: "flex items-center justify-center",
|
|
2949
2948
|
style: { color: "#fff", "background-color": "rgb(29 78 216)", "border-radius": "8px", width: "16px", height: "16px", "margin-left": "12px" },
|
|
2950
2949
|
onClick: (Be) => R(te, St)
|
|
2951
2950
|
}, " ✔ ", 8, al)) : de("", !0),
|
|
2952
|
-
te.userName === ge(f) || ge(a)("fetch") ? (
|
|
2951
|
+
te.userName === ge(f) || ge(a)("fetch") ? (O(), P("div", {
|
|
2953
2952
|
key: 1,
|
|
2954
2953
|
class: "flex items-center justify-center",
|
|
2955
2954
|
style: { color: "#fff", "background-color": "rgb(185 28 28)", "border-radius": "8px", width: "16px", height: "16px", "margin-left": "12px" },
|
|
@@ -2962,20 +2961,20 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2962
2961
|
class: "w-full overflow-y-auto"
|
|
2963
2962
|
}, {
|
|
2964
2963
|
default: X(() => [
|
|
2965
|
-
(
|
|
2964
|
+
(O(!0), P(ve, null, me(te.content, (Be, ht) => (O(), P("span", {
|
|
2966
2965
|
key: Be,
|
|
2967
2966
|
style: { "line-height": "2rem", height: "33.333%" },
|
|
2968
2967
|
class: "inline-block w-1/2"
|
|
2969
2968
|
}, [
|
|
2970
2969
|
N("span", sl, [
|
|
2971
|
-
N("span", rl, Q(
|
|
2972
|
-
N("span", cl, Q(
|
|
2970
|
+
N("span", rl, Q(A.$t(Y(ht))) + ":", 1),
|
|
2971
|
+
N("span", cl, Q(U(ht, Be)), 1)
|
|
2973
2972
|
])
|
|
2974
2973
|
]))), 128))
|
|
2975
2974
|
]),
|
|
2976
2975
|
_: 2
|
|
2977
2976
|
}, 1024)
|
|
2978
|
-
], 2)) : (
|
|
2977
|
+
], 2)) : (O(), P("div", ul, fl))
|
|
2979
2978
|
], 12, tl))), 128))
|
|
2980
2979
|
])
|
|
2981
2980
|
]),
|
|
@@ -2983,7 +2982,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2983
2982
|
N("div", pl, [
|
|
2984
2983
|
z(K, {
|
|
2985
2984
|
modelValue: c.value,
|
|
2986
|
-
"onUpdate:modelValue":
|
|
2985
|
+
"onUpdate:modelValue": L[0] || (L[0] = (te) => c.value = te),
|
|
2987
2986
|
placeholder: "请录入方案标题",
|
|
2988
2987
|
type: "search",
|
|
2989
2988
|
onSearchClick: Te,
|
|
@@ -2994,19 +2993,19 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
2994
2993
|
content: "reset",
|
|
2995
2994
|
status: "info",
|
|
2996
2995
|
icon: "ri-refresh-line",
|
|
2997
|
-
onTap:
|
|
2996
|
+
onTap: L[1] || (L[1] = (te) => ie())
|
|
2998
2997
|
}),
|
|
2999
2998
|
z(re, {
|
|
3000
2999
|
content: "cancel",
|
|
3001
3000
|
status: "warning",
|
|
3002
3001
|
icon: "ri-close-line",
|
|
3003
|
-
onTap:
|
|
3002
|
+
onTap: L[2] || (L[2] = (te) => D())
|
|
3004
3003
|
}),
|
|
3005
3004
|
z(re, {
|
|
3006
3005
|
disabled: x.value,
|
|
3007
3006
|
content: "confirm",
|
|
3008
3007
|
icon: "ri-save-3-line",
|
|
3009
|
-
onTap:
|
|
3008
|
+
onTap: L[3] || (L[3] = (te) => C())
|
|
3010
3009
|
}, null, 8, ["disabled"])
|
|
3011
3010
|
])
|
|
3012
3011
|
]),
|
|
@@ -3014,13 +3013,13 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3014
3013
|
}, 8, ["modelValue", "loading"]),
|
|
3015
3014
|
z(Ae, {
|
|
3016
3015
|
modelValue: u.value,
|
|
3017
|
-
"onUpdate:modelValue":
|
|
3016
|
+
"onUpdate:modelValue": L[7] || (L[7] = (te) => u.value = te),
|
|
3018
3017
|
loading: b.value,
|
|
3019
3018
|
width: "360",
|
|
3020
3019
|
height: "420",
|
|
3021
3020
|
title: "查询方案新增",
|
|
3022
3021
|
"show-footer": "",
|
|
3023
|
-
onClose:
|
|
3022
|
+
onClose: L[8] || (L[8] = (te) => D())
|
|
3024
3023
|
}, {
|
|
3025
3024
|
default: X(() => [
|
|
3026
3025
|
z(Qe, {
|
|
@@ -3039,7 +3038,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3039
3038
|
content: "cancel",
|
|
3040
3039
|
status: "warning",
|
|
3041
3040
|
icon: "ri-close-line",
|
|
3042
|
-
onTap:
|
|
3041
|
+
onTap: L[6] || (L[6] = (te) => D())
|
|
3043
3042
|
}),
|
|
3044
3043
|
z(re, {
|
|
3045
3044
|
content: "confirm",
|
|
@@ -3071,24 +3070,24 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3071
3070
|
setup(n, { expose: e, emit: t }) {
|
|
3072
3071
|
const o = zn(On()), i = "U_TABLE_COLUMNN_SORT";
|
|
3073
3072
|
let a;
|
|
3074
|
-
const l = {}, s = Ke(), r = s.appContext.config.globalProperties.$hasAuthority, c = s.appContext.config.globalProperties.$serviceApi, d = s.parent.type.name, u = s.appContext.config.globalProperties.$mode, v = n, { t: b } = it(), x =
|
|
3075
|
-
props: { type: "
|
|
3073
|
+
const l = {}, s = Ke(), r = s.appContext.config.globalProperties.$hasAuthority, c = s.appContext.config.globalProperties.$serviceApi, d = s.parent.type.name, u = s.appContext.config.globalProperties.$mode, v = n, { t: b } = it(), x = B(null), g = B(!1), f = {
|
|
3074
|
+
props: { type: "text", icon: "vxe-icon-setting" },
|
|
3076
3075
|
events: {
|
|
3077
|
-
click: () => {
|
|
3078
|
-
g.value = !0;
|
|
3076
|
+
click: (A, L) => {
|
|
3077
|
+
L.name === "favorite" && (g.value = !0);
|
|
3079
3078
|
}
|
|
3080
3079
|
}
|
|
3081
3080
|
}, M = () => v.columns.length ? ut(v.columns, b) : {}, w = () => {
|
|
3082
|
-
const
|
|
3081
|
+
const A = v.columns;
|
|
3083
3082
|
if (o.gridId) {
|
|
3084
|
-
const j =
|
|
3085
|
-
J !== -1 ?
|
|
3083
|
+
const j = Ua.filter((K) => !A.some((re) => re.field === K.field)).map((K) => (o.format && ["lastUpdateDate", "creationDate"].includes(K.field) && (K.formatter = o.format, K.width = 90), K)), J = A.findIndex((K) => K.field === "operate");
|
|
3084
|
+
J !== -1 ? A.splice(J, 0, ...j) : A.push(...j);
|
|
3086
3085
|
}
|
|
3087
|
-
const
|
|
3088
|
-
return Eo(
|
|
3086
|
+
const L = o.gridId ? y(A) : A;
|
|
3087
|
+
return Eo(L);
|
|
3089
3088
|
};
|
|
3090
|
-
Xn.getItem(i).then((
|
|
3091
|
-
a =
|
|
3089
|
+
Xn.getItem(i).then((A) => {
|
|
3090
|
+
a = A, T.columns = w();
|
|
3092
3091
|
});
|
|
3093
3092
|
const T = qe({
|
|
3094
3093
|
border: !0,
|
|
@@ -3101,7 +3100,7 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3101
3100
|
sortConfig: { multiple: !0, trigger: "cell" },
|
|
3102
3101
|
height: u ? void 0 : window.innerHeight - 90,
|
|
3103
3102
|
checkboxConfig: {
|
|
3104
|
-
checkMethod: ({ row:
|
|
3103
|
+
checkMethod: ({ row: A }) => Jo(A, v),
|
|
3105
3104
|
checkRowKeys: v.checkRowKeys
|
|
3106
3105
|
},
|
|
3107
3106
|
loading: !1,
|
|
@@ -3112,10 +3111,10 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3112
3111
|
autoLoad: v.autoLoad,
|
|
3113
3112
|
// 接收 Promise
|
|
3114
3113
|
ajax: {
|
|
3115
|
-
queryAll: ({ form:
|
|
3116
|
-
query: ({ page:
|
|
3117
|
-
delete: ({ body: { removeRecords:
|
|
3118
|
-
save: ({ body:
|
|
3114
|
+
queryAll: ({ form: A }) => Vo(v, c, A),
|
|
3115
|
+
query: ({ page: A, form: L }) => Ho(v, L, A, c, u),
|
|
3116
|
+
delete: ({ body: { removeRecords: A } }) => Uo(c, A, v),
|
|
3117
|
+
save: ({ body: A }) => Promise.all(qo(c, A, v))
|
|
3119
3118
|
}
|
|
3120
3119
|
},
|
|
3121
3120
|
columns: o.gridId ? [] : w(),
|
|
@@ -3124,12 +3123,12 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3124
3123
|
Ce(v.items, !0),
|
|
3125
3124
|
d && v.url ? f : d
|
|
3126
3125
|
) : v.items;
|
|
3127
|
-
function y(
|
|
3128
|
-
const
|
|
3129
|
-
return
|
|
3126
|
+
function y(A) {
|
|
3127
|
+
const L = a ? a[o.gridId] : {};
|
|
3128
|
+
return L ? A.map((j, J) => {
|
|
3130
3129
|
const K = (J + 1) * 10;
|
|
3131
|
-
return j._sort =
|
|
3132
|
-
}).sort((j, J) => j._sort - J._sort) :
|
|
3130
|
+
return j._sort = L[j.field] || K, l[j.field] = j._sort, j;
|
|
3131
|
+
}).sort((j, J) => j._sort - J._sort) : A;
|
|
3133
3132
|
}
|
|
3134
3133
|
const k = () => {
|
|
3135
3134
|
v.items.length && (T.formConfig = {
|
|
@@ -3139,40 +3138,40 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3139
3138
|
rules: ut(v.items, b),
|
|
3140
3139
|
validConfig: { showMessage: !1 }
|
|
3141
3140
|
});
|
|
3142
|
-
const
|
|
3143
|
-
Object.assign(T,
|
|
3141
|
+
const A = Go(T, v, o, r);
|
|
3142
|
+
Object.assign(T, A), o.gridId && (T.id = o.gridId, T.customConfig = {
|
|
3144
3143
|
storage: !0,
|
|
3145
3144
|
mode: "popup",
|
|
3146
|
-
checkMethod({ column:
|
|
3147
|
-
return !(
|
|
3145
|
+
checkMethod({ column: L }) {
|
|
3146
|
+
return !(L.field === "operate" || ["checkbox", "radio"].includes(L.type));
|
|
3148
3147
|
},
|
|
3149
3148
|
modalOptions: {
|
|
3150
3149
|
width: 750,
|
|
3151
3150
|
height: "75%"
|
|
3152
3151
|
}
|
|
3153
|
-
}), o.mergeFooter && (T.showFooter = !0, T.footerMethod = ({ columns:
|
|
3152
|
+
}), o.mergeFooter && (T.showFooter = !0, T.footerMethod = ({ columns: L, data: j }) => Ko({ columns: L, data: j }, o.mergeFooter));
|
|
3154
3153
|
}, h = () => {
|
|
3155
3154
|
x.value.commitProxy("query");
|
|
3156
3155
|
}, E = () => (T.editRules = M(), x.value.refreshColumn()), S = () => {
|
|
3157
3156
|
T.loading = !0;
|
|
3158
3157
|
}, R = () => {
|
|
3159
3158
|
T.loading = !1;
|
|
3160
|
-
}, $ = () => wo(x.value), m = () => x.value.getTableData().fullData, C = (
|
|
3161
|
-
const
|
|
3162
|
-
return
|
|
3159
|
+
}, $ = () => wo(x.value), m = () => x.value.getTableData().fullData, C = (A = !1) => {
|
|
3160
|
+
const L = v.columns[0].type, j = L === "radio" ? x.value.getRadioRecord(A) : x.value.getCheckboxRecords(A);
|
|
3161
|
+
return L === "checkbox" && !j.length ? (Bt(b("message.tip_selectedRecord")), []) : L === "radio" && !j ? (Bt(b("message.tip_selectedRecord")), null) : j;
|
|
3163
3162
|
};
|
|
3164
3163
|
let D;
|
|
3165
3164
|
const _ = () => {
|
|
3166
|
-
const
|
|
3167
|
-
D =
|
|
3168
|
-
|
|
3165
|
+
const A = x.value;
|
|
3166
|
+
D = H.create(
|
|
3167
|
+
A.$el.querySelector(
|
|
3169
3168
|
".body--wrapper>.vxe-table--header .vxe-header--row"
|
|
3170
3169
|
),
|
|
3171
3170
|
{
|
|
3172
3171
|
disabled: !o.gridId,
|
|
3173
3172
|
handle: ".vxe-header--column",
|
|
3174
|
-
onEnd: async (
|
|
3175
|
-
const j =
|
|
3173
|
+
onEnd: async (L) => {
|
|
3174
|
+
const j = L.item, J = L.newIndex, K = L.oldIndex, { fullColumn: re, tableColumn: Ae } = A.getTableColumn(), Qe = j.parentNode, te = re[J], St = re[K];
|
|
3176
3175
|
let Be = !1, ht = "固定列";
|
|
3177
3176
|
if (te.fixed ? Be = !1 : J === 0 || ["checkbox", "radio"].includes(St.type) ? (ht = "勾选列", Be = !0) : (St.field === "operate" || J === re.length - 1) && (Be = !0, ht = "操作列"), Be) {
|
|
3178
3177
|
const Ze = Qe.children[K];
|
|
@@ -3181,21 +3180,21 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3181
3180
|
Ze && Ze.nextElementSibling
|
|
3182
3181
|
), ui(ht + "不允许拖动!");
|
|
3183
3182
|
}
|
|
3184
|
-
const fn =
|
|
3183
|
+
const fn = A.getColumnIndex(Ae[K]), pn = A.getColumnIndex(Ae[J]), Wn = re.splice(fn, 1)[0];
|
|
3185
3184
|
re.splice(pn, 0, Wn);
|
|
3186
|
-
const Tt = pn - fn > 0 ? 1 : -1,
|
|
3185
|
+
const Tt = pn - fn > 0 ? 1 : -1, Vn = (pn + 1) * 10, Hn = (fn + 1) * 10, Un = Vn + 1 * Tt;
|
|
3187
3186
|
for (const Ze in l) {
|
|
3188
3187
|
const gt = l[Ze];
|
|
3189
|
-
(Tt > 0 && gt <
|
|
3188
|
+
(Tt > 0 && gt < Un && gt > Hn || Tt < 0 && gt > Un && gt < Hn) && (l[Ze] = gt - 10 * Tt);
|
|
3190
3189
|
}
|
|
3191
|
-
l[Wn.field] =
|
|
3190
|
+
l[Wn.field] = Vn, Xn.setItem(i, { [o.gridId]: l }), A.loadColumn(re);
|
|
3192
3191
|
}
|
|
3193
3192
|
}
|
|
3194
3193
|
);
|
|
3195
|
-
}, I = (
|
|
3194
|
+
}, I = (A) => {
|
|
3196
3195
|
g.value = !1;
|
|
3197
|
-
const { form:
|
|
3198
|
-
Object.assign(
|
|
3196
|
+
const { form: L } = x.value.getProxyInfo();
|
|
3197
|
+
Object.assign(L, A), h();
|
|
3199
3198
|
};
|
|
3200
3199
|
e({
|
|
3201
3200
|
getTableData: m,
|
|
@@ -3206,18 +3205,18 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3206
3205
|
showLoading: S,
|
|
3207
3206
|
hiddenLoading: R
|
|
3208
3207
|
});
|
|
3209
|
-
const Y = ({ code:
|
|
3210
|
-
se("buttonClick",
|
|
3211
|
-
},
|
|
3212
|
-
se("cellClick",
|
|
3213
|
-
}, le = (
|
|
3214
|
-
se("cellDbclick",
|
|
3215
|
-
}, Te = (
|
|
3216
|
-
se("editEctivated",
|
|
3208
|
+
const Y = ({ code: A }) => {
|
|
3209
|
+
se("buttonClick", A);
|
|
3210
|
+
}, U = (A) => {
|
|
3211
|
+
se("cellClick", A);
|
|
3212
|
+
}, le = (A) => {
|
|
3213
|
+
se("cellDbclick", A);
|
|
3214
|
+
}, Te = (A) => {
|
|
3215
|
+
se("editEctivated", A);
|
|
3217
3216
|
}, G = () => {
|
|
3218
3217
|
window.onresize = () => (() => {
|
|
3219
|
-
let
|
|
3220
|
-
o.mode !== "inline" && !(o != null && o.height) && (
|
|
3218
|
+
let A = (o == null ? void 0 : o.height) || window.innerHeight - 90;
|
|
3219
|
+
o.mode !== "inline" && !(o != null && o.height) && (A = window.innerHeight - 180), T.height = A < 240 ? 240 : A;
|
|
3221
3220
|
})();
|
|
3222
3221
|
};
|
|
3223
3222
|
let ie;
|
|
@@ -3231,25 +3230,25 @@ const Wa = "kSysConfig", ao = "kCookies_param", xn = xo.getItem(Wa), Wo = (n, e)
|
|
|
3231
3230
|
k(), G();
|
|
3232
3231
|
});
|
|
3233
3232
|
const se = t;
|
|
3234
|
-
return (
|
|
3233
|
+
return (A, L) => {
|
|
3235
3234
|
const j = W("vxe-grid");
|
|
3236
|
-
return
|
|
3237
|
-
z(j,
|
|
3235
|
+
return O(), P("div", vl, [
|
|
3236
|
+
z(j, Ue({
|
|
3238
3237
|
ref_key: "xgrid",
|
|
3239
3238
|
ref: x
|
|
3240
3239
|
}, T, { class: "ut-grid-wrapper" }, An(ge(o).events || {}), {
|
|
3241
3240
|
onToolbarButtonClick: Y,
|
|
3242
3241
|
onToolbarToolClick: Y,
|
|
3243
|
-
onCellClick:
|
|
3242
|
+
onCellClick: U,
|
|
3244
3243
|
onCellDblclick: le,
|
|
3245
3244
|
onEditActivated: Te
|
|
3246
3245
|
}), null, 16),
|
|
3247
|
-
g.value && v.url ? (
|
|
3246
|
+
g.value && v.url ? (O(), be(gl, {
|
|
3248
3247
|
key: 0,
|
|
3249
|
-
items:
|
|
3248
|
+
items: A.items,
|
|
3250
3249
|
view: ge(d),
|
|
3251
3250
|
onSearch: I,
|
|
3252
|
-
onClose:
|
|
3251
|
+
onClose: L[0] || (L[0] = (J) => g.value = !1)
|
|
3253
3252
|
}, null, 8, ["items", "view"])) : de("", !0)
|
|
3254
3253
|
]);
|
|
3255
3254
|
};
|
|
@@ -3274,7 +3273,7 @@ const _l = {
|
|
|
3274
3273
|
},
|
|
3275
3274
|
emits: ["close", "confirm"],
|
|
3276
3275
|
setup(n, { expose: e, emit: t }) {
|
|
3277
|
-
const o = n, i = zn(On()), a =
|
|
3276
|
+
const o = n, i = zn(On()), a = B(!1), s = Ke().appContext.config.globalProperties.$serviceApi, r = xe(() => o.items.length ? ut(o.items, d) : {}), c = xe(() => o.items.length ? Pn(o.items, o.dataStatus) : o.items), { t: d } = it(), u = B(!1), v = B(null), b = () => {
|
|
3278
3277
|
v.value.validate(async (p) => {
|
|
3279
3278
|
if (!p) {
|
|
3280
3279
|
const { record: y, url: k, method: h } = o;
|
|
@@ -3305,8 +3304,8 @@ const _l = {
|
|
|
3305
3304
|
w();
|
|
3306
3305
|
}), (p, y) => {
|
|
3307
3306
|
const k = W("vxe-form"), h = W("ut-button"), E = W("vxe-modal");
|
|
3308
|
-
return
|
|
3309
|
-
z(E,
|
|
3307
|
+
return O(), P("div", null, [
|
|
3308
|
+
z(E, Ue({
|
|
3310
3309
|
modelValue: u.value,
|
|
3311
3310
|
"onUpdate:modelValue": y[0] || (y[0] = (S) => u.value = S),
|
|
3312
3311
|
title: p.title,
|
|
@@ -3322,7 +3321,7 @@ const _l = {
|
|
|
3322
3321
|
onClose: M
|
|
3323
3322
|
}), {
|
|
3324
3323
|
default: X(() => [
|
|
3325
|
-
z(k,
|
|
3324
|
+
z(k, Ue({
|
|
3326
3325
|
ref_key: "xForm",
|
|
3327
3326
|
ref: v,
|
|
3328
3327
|
data: p.record,
|
|
@@ -3376,7 +3375,7 @@ const _l = {
|
|
|
3376
3375
|
},
|
|
3377
3376
|
emits: ["close", "confirm", "actived", "buttonClick"],
|
|
3378
3377
|
setup(n, { expose: e, emit: t }) {
|
|
3379
|
-
const o = zn(On()), i = n, a =
|
|
3378
|
+
const o = zn(On()), i = n, a = B(!1), l = B(null), s = Ke(), r = s.appContext.config.globalProperties.$hasAuthority, c = s.appContext.config.globalProperties.$serviceApi, d = s.appContext.config.globalProperties.$mode, { t: u } = it(), v = () => {
|
|
3380
3379
|
const $ = i.columns.map((m) => (i.editable ? !m.type && !m.editRender && i.editable && m.editable && (m.editRender = { name: "VxeInput" }) : m.editRender = { enabled: !1 }, m));
|
|
3381
3380
|
return Eo($);
|
|
3382
3381
|
}, b = () => i.items.length ? ko(Ce(i.items, !0)) : i.items, x = () => i.columns.length ? ut(i.columns, u) : {}, g = qe({
|
|
@@ -3394,9 +3393,9 @@ const _l = {
|
|
|
3394
3393
|
// 查询是需要启用表单代理
|
|
3395
3394
|
autoLoad: i.autoLoad,
|
|
3396
3395
|
ajax: {
|
|
3397
|
-
queryAll: ({ form: $ }) =>
|
|
3398
|
-
query: ({ page: $, form: m }) =>
|
|
3399
|
-
delete: ({ body: { removeRecords: $ } }) =>
|
|
3396
|
+
queryAll: ({ form: $ }) => Vo(i, c, $),
|
|
3397
|
+
query: ({ page: $, form: m }) => Ho(i, m, $, c, d),
|
|
3398
|
+
delete: ({ body: { removeRecords: $ } }) => Uo(c, $, i),
|
|
3400
3399
|
save: ({ body: $ }) => Promise.all(qo(c, $, i))
|
|
3401
3400
|
}
|
|
3402
3401
|
},
|
|
@@ -3460,7 +3459,7 @@ const _l = {
|
|
|
3460
3459
|
a.value = !0, R();
|
|
3461
3460
|
}), ($, m) => {
|
|
3462
3461
|
const C = W("vxe-grid"), D = W("ut-button"), _ = W("vxe-modal");
|
|
3463
|
-
return
|
|
3462
|
+
return O(), P("div", null, [
|
|
3464
3463
|
z(_, {
|
|
3465
3464
|
modelValue: a.value,
|
|
3466
3465
|
"onUpdate:modelValue": m[0] || (m[0] = (I) => a.value = I),
|
|
@@ -3475,7 +3474,7 @@ const _l = {
|
|
|
3475
3474
|
}, {
|
|
3476
3475
|
default: X(() => [
|
|
3477
3476
|
ot($.$slots, "default"),
|
|
3478
|
-
z(C,
|
|
3477
|
+
z(C, Ue({
|
|
3479
3478
|
ref_key: "xGrid",
|
|
3480
3479
|
ref: l
|
|
3481
3480
|
}, g, { resizable: "" }, An(ge(o).events || {}), {
|
|
@@ -3524,7 +3523,7 @@ const _l = {
|
|
|
3524
3523
|
return {
|
|
3525
3524
|
Authorization: "Bearer " + JSON.parse(b).accessToken
|
|
3526
3525
|
};
|
|
3527
|
-
}), i =
|
|
3526
|
+
}), i = B([]), a = B(!1), l = B("flex"), s = (v) => t.beforeUpload ? t.beforeUpload(v) : (a.value = !0, !0), r = (v) => {
|
|
3528
3527
|
if (t.onSuccess)
|
|
3529
3528
|
return t.onSuccess(v);
|
|
3530
3529
|
{
|
|
@@ -3539,7 +3538,7 @@ const _l = {
|
|
|
3539
3538
|
}, u = e;
|
|
3540
3539
|
return (v, b) => {
|
|
3541
3540
|
const x = W("el-upload"), g = li("spinning");
|
|
3542
|
-
return Le((
|
|
3541
|
+
return Le((O(), P("div", kl, [
|
|
3543
3542
|
z(x, {
|
|
3544
3543
|
"file-list": i.value,
|
|
3545
3544
|
"onUpdate:fileList": b[0] || (b[0] = (f) => i.value = f),
|
|
@@ -3580,7 +3579,7 @@ const _l = {
|
|
|
3580
3579
|
return (i, a) => {
|
|
3581
3580
|
var s, r;
|
|
3582
3581
|
const l = W("el-tooltip");
|
|
3583
|
-
return
|
|
3582
|
+
return O(), P("div", null, [
|
|
3584
3583
|
N("div", {
|
|
3585
3584
|
ref: "cells",
|
|
3586
3585
|
class: "cell detail_click",
|
|
@@ -3595,7 +3594,7 @@ const _l = {
|
|
|
3595
3594
|
style: pe({ color: i.row.color }),
|
|
3596
3595
|
class: "cell-value"
|
|
3597
3596
|
}, [
|
|
3598
|
-
i.column.shrink ? (
|
|
3597
|
+
i.column.shrink ? (O(), P("span", {
|
|
3599
3598
|
key: 0,
|
|
3600
3599
|
class: "trigger",
|
|
3601
3600
|
onClick: a[0] || (a[0] = en((c) => t(), ["stop", "prevent"]))
|
|
@@ -3606,11 +3605,11 @@ const _l = {
|
|
|
3606
3605
|
class: "open-icon"
|
|
3607
3606
|
}, null, 4)
|
|
3608
3607
|
], 512), [
|
|
3609
|
-
[
|
|
3608
|
+
[Ve, (s = i.row[i.options.children]) == null ? void 0 : s.length]
|
|
3610
3609
|
])
|
|
3611
3610
|
])) : de("", !0),
|
|
3612
|
-
i.row.g_level && i.column.shrink && i.row[i.column.field] && !i.row[i.options.children] && !i.column.showFooter ? (
|
|
3613
|
-
i.column.showTooltip && ((r = i.row[i.column.field]) == null ? void 0 : r.length) > 12 ? (
|
|
3611
|
+
i.row.g_level && i.column.shrink && i.row[i.column.field] && !i.row[i.options.children] && !i.column.showFooter ? (O(), P("span", Nl)) : de("", !0),
|
|
3612
|
+
i.column.showTooltip && ((r = i.row[i.column.field]) == null ? void 0 : r.length) > 12 ? (O(), be(l, {
|
|
3614
3613
|
key: 2,
|
|
3615
3614
|
effect: "dark",
|
|
3616
3615
|
content: i.row[i.column.field],
|
|
@@ -3620,7 +3619,7 @@ const _l = {
|
|
|
3620
3619
|
N("span", Al, Q(o(i.row, i.column)), 1)
|
|
3621
3620
|
]),
|
|
3622
3621
|
_: 1
|
|
3623
|
-
}, 8, ["content"])) : (
|
|
3622
|
+
}, 8, ["content"])) : (O(), P("span", Ol, Q(o(i.row, i.column)), 1))
|
|
3624
3623
|
], 4)
|
|
3625
3624
|
], 4)
|
|
3626
3625
|
]);
|
|
@@ -3675,8 +3674,8 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3675
3674
|
return (s, r) => {
|
|
3676
3675
|
var d;
|
|
3677
3676
|
const c = W("gante-table-cell", !0);
|
|
3678
|
-
return
|
|
3679
|
-
(
|
|
3677
|
+
return O(), P("div", Fl, [
|
|
3678
|
+
(O(!0), P(ve, null, me(s.tasks, (u) => (O(), P("div", {
|
|
3680
3679
|
key: u.id,
|
|
3681
3680
|
class: "ut-gante-row"
|
|
3682
3681
|
}, [
|
|
@@ -3686,7 +3685,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3686
3685
|
onMouseleave: (v) => a(v, u),
|
|
3687
3686
|
onDblclick: en((v) => l(u), ["prevent"])
|
|
3688
3687
|
}, [
|
|
3689
|
-
(
|
|
3688
|
+
(O(!0), P(ve, null, me(s.columns, (v) => (O(), P("div", {
|
|
3690
3689
|
key: v.field,
|
|
3691
3690
|
class: "ut-gante-column"
|
|
3692
3691
|
}, [
|
|
@@ -3697,7 +3696,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3697
3696
|
}, null, 8, ["row", "column", "options"])
|
|
3698
3697
|
]))), 128))
|
|
3699
3698
|
], 42, Ll),
|
|
3700
|
-
u[s.options.children] && u.open ? (
|
|
3699
|
+
u[s.options.children] && u.open ? (O(), be(c, {
|
|
3701
3700
|
key: 0,
|
|
3702
3701
|
tasks: u[s.options.children],
|
|
3703
3702
|
columns: s.columns,
|
|
@@ -3705,9 +3704,9 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3705
3704
|
children: "Y"
|
|
3706
3705
|
}, null, 8, ["tasks", "columns", "options"])) : de("", !0)
|
|
3707
3706
|
]))), 128)),
|
|
3708
|
-
s.children !== "Y" && s.options.showFooter && ((d = s.tasks) != null && d.length) ? (
|
|
3707
|
+
s.children !== "Y" && s.options.showFooter && ((d = s.tasks) != null && d.length) ? (O(), P("div", Bl, [
|
|
3709
3708
|
N("div", Rl, [
|
|
3710
|
-
(
|
|
3709
|
+
(O(!0), P(ve, null, me(s.columns, (u) => (O(), P("div", {
|
|
3711
3710
|
key: u.field,
|
|
3712
3711
|
class: "ut-gante-column"
|
|
3713
3712
|
}, [
|
|
@@ -3728,7 +3727,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3728
3727
|
window.navigator.userAgent.indexOf("MSIE 8") > -1 ? (t += e.offsetLeft, o += e.offsetTop) : (t += e.offsetLeft + e.clientLeft, o += e.offsetTop + e.clientTop), e = e.offsetParent;
|
|
3729
3728
|
const i = {};
|
|
3730
3729
|
return i.x = t, i.y = o, i;
|
|
3731
|
-
}, jl = { class: "gante-thead" }, Wl = ["onMousedown"],
|
|
3730
|
+
}, jl = { class: "gante-thead" }, Wl = ["onMousedown"], Vl = { class: "gante-tbody" }, Hl = /* @__PURE__ */ ne({
|
|
3732
3731
|
__name: "gante-table",
|
|
3733
3732
|
props: {
|
|
3734
3733
|
columns: { default: () => [] },
|
|
@@ -3737,7 +3736,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3737
3736
|
},
|
|
3738
3737
|
emits: ["onDragEnd"],
|
|
3739
3738
|
setup(n, { emit: e }) {
|
|
3740
|
-
const t = n, o =
|
|
3739
|
+
const t = n, o = B(0), i = B(!1), a = B(0), l = B(null), s = xe(() => t.columns.filter((p) => p.showColumn !== "N"));
|
|
3741
3740
|
let r = 0, c = 0;
|
|
3742
3741
|
const d = { current_index: -1, mouseDown: !1 }, u = (p) => {
|
|
3743
3742
|
let y = -200;
|
|
@@ -3814,7 +3813,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3814
3813
|
a.value++;
|
|
3815
3814
|
});
|
|
3816
3815
|
const T = e;
|
|
3817
|
-
return (p, y) => (
|
|
3816
|
+
return (p, y) => (O(), P("div", {
|
|
3818
3817
|
ref_key: "gante_table",
|
|
3819
3818
|
ref: l,
|
|
3820
3819
|
class: "gante-table",
|
|
@@ -3822,7 +3821,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3822
3821
|
"on:DOMMouseScrollPassive": u
|
|
3823
3822
|
}, [
|
|
3824
3823
|
N("div", jl, [
|
|
3825
|
-
(
|
|
3824
|
+
(O(!0), P(ve, null, me(s.value, (k, h) => (O(), P("div", {
|
|
3826
3825
|
key: k.field,
|
|
3827
3826
|
class: "gante-th",
|
|
3828
3827
|
onMousedown: (E) => x(E, h),
|
|
@@ -3834,7 +3833,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3834
3833
|
style: pe(w(k))
|
|
3835
3834
|
}, [
|
|
3836
3835
|
Nn(Q(k.label) + " ", 1),
|
|
3837
|
-
k.sort_type ? (
|
|
3836
|
+
k.sort_type ? (O(), P("span", {
|
|
3838
3837
|
key: 0,
|
|
3839
3838
|
class: Xe([{
|
|
3840
3839
|
ascend: k.sort_type == "asc",
|
|
@@ -3844,8 +3843,8 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3844
3843
|
], 4)
|
|
3845
3844
|
], 40, Wl))), 128))
|
|
3846
3845
|
]),
|
|
3847
|
-
N("div",
|
|
3848
|
-
(
|
|
3846
|
+
N("div", Vl, [
|
|
3847
|
+
(O(), be(zl, {
|
|
3849
3848
|
key: a.value,
|
|
3850
3849
|
tasks: p.data,
|
|
3851
3850
|
columns: s.value,
|
|
@@ -3856,11 +3855,11 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3856
3855
|
id: "gante-table-column-resize-proxy",
|
|
3857
3856
|
style: pe({ left: o.value + "px" })
|
|
3858
3857
|
}, null, 4), [
|
|
3859
|
-
[
|
|
3858
|
+
[Ve, i.value]
|
|
3860
3859
|
])
|
|
3861
3860
|
], 544));
|
|
3862
3861
|
}
|
|
3863
|
-
}),
|
|
3862
|
+
}), Ul = {
|
|
3864
3863
|
"data-drag": "true",
|
|
3865
3864
|
class: "ganter_drag_hover"
|
|
3866
3865
|
}, ql = {
|
|
@@ -3876,7 +3875,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
3876
3875
|
options: { default: () => ({}) }
|
|
3877
3876
|
},
|
|
3878
3877
|
setup(n) {
|
|
3879
|
-
const e = n, t = qe(e.task), o =
|
|
3878
|
+
const e = n, t = qe(e.task), o = B(!1);
|
|
3880
3879
|
let i = qe({
|
|
3881
3880
|
startX: 0,
|
|
3882
3881
|
// 开始的位置
|
|
@@ -4047,7 +4046,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4047
4046
|
}, x = (f) => {
|
|
4048
4047
|
he.emit("onGanteItemDblclick", f);
|
|
4049
4048
|
}, g = (f) => f && ae(f, e.options.dateFormat);
|
|
4050
|
-
return (f, M) => (
|
|
4049
|
+
return (f, M) => (O(), P("div", {
|
|
4051
4050
|
style: pe({
|
|
4052
4051
|
cursor: ge(i).mouseDown ? "grabbing" : "grab",
|
|
4053
4052
|
width: t.width ? t.width + "px" : 0,
|
|
@@ -4067,21 +4066,21 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4067
4066
|
class: "left-drag-line",
|
|
4068
4067
|
onMousedown: M[0] || (M[0] = en((w) => d(w, "left"), ["stop"]))
|
|
4069
4068
|
}, null, 544), [
|
|
4070
|
-
[
|
|
4069
|
+
[Ve, o.value]
|
|
4071
4070
|
]),
|
|
4072
4071
|
Le(N("span", {
|
|
4073
4072
|
"data-drag": "true",
|
|
4074
4073
|
class: "right-drag-line",
|
|
4075
4074
|
onMousedown: M[1] || (M[1] = en((w) => d(w, "right"), ["stop"]))
|
|
4076
4075
|
}, null, 544), [
|
|
4077
|
-
[
|
|
4076
|
+
[Ve, o.value]
|
|
4078
4077
|
]),
|
|
4079
|
-
Le(N("div",
|
|
4080
|
-
[
|
|
4078
|
+
Le(N("div", Ul, null, 512), [
|
|
4079
|
+
[Ve, o.value]
|
|
4081
4080
|
])
|
|
4082
4081
|
], 38));
|
|
4083
4082
|
}
|
|
4084
|
-
}), Gl = /* @__PURE__ */ at(Xl, [["__scopeId", "data-v-
|
|
4083
|
+
}), Gl = /* @__PURE__ */ at(Xl, [["__scopeId", "data-v-0c1728f8"]]), Kl = { class: "ganteview-content" }, Jl = ["onMouseenter", "onMouseleave"], Ql = /* @__PURE__ */ N("span", { style: { display: "none" } }, "1", -1), Zl = { class: "ganteview-ones gante-bottom-wrapper" }, es = ["innerHTML"], ts = {
|
|
4085
4084
|
name: "GanteTimelineChunk"
|
|
4086
4085
|
}, ns = /* @__PURE__ */ ne({
|
|
4087
4086
|
...ts,
|
|
@@ -4104,8 +4103,8 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4104
4103
|
}
|
|
4105
4104
|
return (o, i) => {
|
|
4106
4105
|
const a = W("gante-timeline-chunk", !0);
|
|
4107
|
-
return
|
|
4108
|
-
(
|
|
4106
|
+
return O(), P("div", Kl, [
|
|
4107
|
+
(O(!0), P(ve, null, me(o.tasks, (l, s) => (O(), P("div", {
|
|
4109
4108
|
key: s,
|
|
4110
4109
|
class: "ganteview-ones"
|
|
4111
4110
|
}, [
|
|
@@ -4114,7 +4113,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4114
4113
|
onMouseenter: (r) => e(l),
|
|
4115
4114
|
onMouseleave: (r) => t(l)
|
|
4116
4115
|
}, [
|
|
4117
|
-
l.start_time ? (
|
|
4116
|
+
l.start_time ? (O(), be(Gl, {
|
|
4118
4117
|
key: 0,
|
|
4119
4118
|
start_time: o.start_time,
|
|
4120
4119
|
end_time: o.end_time,
|
|
@@ -4124,7 +4123,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4124
4123
|
options: o.options
|
|
4125
4124
|
}, null, 8, ["start_time", "end_time", "task", "columns", "time_1px", "options"])) : de("", !0)
|
|
4126
4125
|
], 42, Jl),
|
|
4127
|
-
l[o.options.children] ? Le((
|
|
4126
|
+
l[o.options.children] ? Le((O(), be(a, {
|
|
4128
4127
|
key: 0,
|
|
4129
4128
|
start_time: o.start_time,
|
|
4130
4129
|
end_time: o.end_time,
|
|
@@ -4138,16 +4137,16 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4138
4137
|
]),
|
|
4139
4138
|
_: 2
|
|
4140
4139
|
}, 1032, ["start_time", "end_time", "columns", "time_1px", "options", "tasks"])), [
|
|
4141
|
-
[
|
|
4140
|
+
[Ve, l.open]
|
|
4142
4141
|
]) : de("", !0)
|
|
4143
4142
|
]))), 128)),
|
|
4144
4143
|
N("div", Zl, [
|
|
4145
|
-
(
|
|
4144
|
+
(O(!0), P(ve, null, me(o.dateRange, (l) => (O(), P("div", {
|
|
4146
4145
|
key: l.title,
|
|
4147
4146
|
class: "ganteview-item gante-bottom-item",
|
|
4148
4147
|
style: pe({ width: o.options.cellWidth + "px" })
|
|
4149
4148
|
}, [
|
|
4150
|
-
o.dayilySummary ? (
|
|
4149
|
+
o.dayilySummary ? (O(), P("div", {
|
|
4151
4150
|
key: 0,
|
|
4152
4151
|
innerHTML: o.dayilySummary[l.title]
|
|
4153
4152
|
}, null, 8, es)) : de("", !0)
|
|
@@ -4172,7 +4171,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4172
4171
|
options: { default: () => ({}) }
|
|
4173
4172
|
},
|
|
4174
4173
|
setup(n, { expose: e }) {
|
|
4175
|
-
const t = n, o =
|
|
4174
|
+
const t = n, o = B([]), i = B([]), a = B(0), l = B(0), s = B(!1), r = B(""), c = B(null), d = B({
|
|
4176
4175
|
width: 0,
|
|
4177
4176
|
left: 0
|
|
4178
4177
|
});
|
|
@@ -4264,13 +4263,13 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4264
4263
|
for (let R = 0; R <= h; ) {
|
|
4265
4264
|
const $ = y;
|
|
4266
4265
|
let m = f($, 3), C = f($, 1), D = !1, _ = "";
|
|
4267
|
-
const I = y.getFullYear(), Y = y.getMonth(),
|
|
4266
|
+
const I = y.getFullYear(), Y = y.getMonth(), U = y.getDate();
|
|
4268
4267
|
if (t.options.timeScale === 1) {
|
|
4269
|
-
if (y = new Date(I, Y,
|
|
4268
|
+
if (y = new Date(I, Y, U + 1), ($.getDay() == 0 || $.getDay() == 6) && (D = !0), (S = t.calendarOption) != null && S.list) {
|
|
4270
4269
|
const { lunar_day: Te, reset_day: G } = p(C);
|
|
4271
4270
|
D = G === "Y", _ = Te;
|
|
4272
4271
|
}
|
|
4273
|
-
} else t.options.timeScale === 2 ? (y = new Date(I, Y,
|
|
4272
|
+
} else t.options.timeScale === 2 ? (y = new Date(I, Y, U + 7), C = f($, 1) + "~" + f(new Date(I, Y, U - 1), 1)) : t.options.timeScale === 3 ? (y = new Date(I, Y + 1, 1), m = f($, 4), C = f($, 2)) : t.options.timeScale === 4 ? (y = new Date(I, Y + 3, 1), m = T($.getMonth(), "month"), C = f($, 1) + "~" + f(new Date(I, Y, 0), 1)) : t.options.timeScale === 5 && (y = new Date(I, Y + 6, 1), m = T($.getMonth(), "year"), C = f($, 1) + "~" + f(new Date(I, Y, 0), 1));
|
|
4274
4273
|
const le = (y.getTime() - $.getTime()) / k;
|
|
4275
4274
|
R = y.getTime(), R <= h && E.push({
|
|
4276
4275
|
left: ($.getTime() - u.getTime()) / k,
|
|
@@ -4292,7 +4291,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4292
4291
|
const k = (h = t.calendarOption) == null ? void 0 : h.list.find((E) => E.date === y);
|
|
4293
4292
|
return { lunar_day: k == null ? void 0 : k.lunarDay, reset_day: k == null ? void 0 : k.isRestDay };
|
|
4294
4293
|
};
|
|
4295
|
-
return e({ initTimeline: g }), (y, k) => (
|
|
4294
|
+
return e({ initTimeline: g }), (y, k) => (O(), P("div", {
|
|
4296
4295
|
ref_key: "ganteview",
|
|
4297
4296
|
ref: c,
|
|
4298
4297
|
class: "ganteview-box"
|
|
@@ -4301,13 +4300,13 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4301
4300
|
class: "ganteview",
|
|
4302
4301
|
onScrollPassive: x
|
|
4303
4302
|
}, [
|
|
4304
|
-
r.value ? (
|
|
4303
|
+
r.value ? (O(), P("div", os, Q(r.value), 1)) : de("", !0),
|
|
4305
4304
|
N("div", {
|
|
4306
4305
|
style: pe({ width: a.value + "px" }),
|
|
4307
4306
|
class: "ganteview-header"
|
|
4308
4307
|
}, [
|
|
4309
4308
|
N("div", is, [
|
|
4310
|
-
(
|
|
4309
|
+
(O(!0), P(ve, null, me(o.value, (h) => (O(), P("div", {
|
|
4311
4310
|
key: h.id,
|
|
4312
4311
|
class: "ganteview-headercell",
|
|
4313
4312
|
title: h.date,
|
|
@@ -4315,7 +4314,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4315
4314
|
}, Q(h.date), 13, as))), 128))
|
|
4316
4315
|
]),
|
|
4317
4316
|
N("div", ls, [
|
|
4318
|
-
(
|
|
4317
|
+
(O(!0), P(ve, null, me(i.value, (h) => (O(), P("div", {
|
|
4319
4318
|
key: h.id,
|
|
4320
4319
|
class: "ganteview-headercell",
|
|
4321
4320
|
title: h.title,
|
|
@@ -4340,7 +4339,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4340
4339
|
tasks: y.tasks
|
|
4341
4340
|
}, {
|
|
4342
4341
|
default: X(() => [
|
|
4343
|
-
(
|
|
4342
|
+
(O(!0), P(ve, null, me(i.value, (h, E) => (O(), P("div", {
|
|
4344
4343
|
key: E,
|
|
4345
4344
|
class: "flex items-end ganteview-column",
|
|
4346
4345
|
style: pe({
|
|
@@ -4359,12 +4358,12 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4359
4358
|
]),
|
|
4360
4359
|
_: 1
|
|
4361
4360
|
}, 8, ["columns", "start_time", "end_time", "time_1px", "dayily-summary", "date-range", "options", "style", "tasks"]), [
|
|
4362
|
-
[
|
|
4361
|
+
[Ve, s.value]
|
|
4363
4362
|
])
|
|
4364
4363
|
], 32)
|
|
4365
4364
|
], 512));
|
|
4366
4365
|
}
|
|
4367
|
-
}), cs = /* @__PURE__ */ at(rs, [["__scopeId", "data-v-
|
|
4366
|
+
}), cs = /* @__PURE__ */ at(rs, [["__scopeId", "data-v-cc102932"]]), us = {
|
|
4368
4367
|
name: "GanteSplit"
|
|
4369
4368
|
}, ds = /* @__PURE__ */ ne({
|
|
4370
4369
|
...us,
|
|
@@ -4375,7 +4374,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4375
4374
|
},
|
|
4376
4375
|
emits: ["onDragEnd"],
|
|
4377
4376
|
setup(n, { emit: e }) {
|
|
4378
|
-
const t = n, o =
|
|
4377
|
+
const t = n, o = B(!1), i = B(0), a = B("");
|
|
4379
4378
|
let l = !1;
|
|
4380
4379
|
function s(x) {
|
|
4381
4380
|
if (l) {
|
|
@@ -4412,7 +4411,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4412
4411
|
return f.show || f.show === void 0 ? f : v(x + 1);
|
|
4413
4412
|
}
|
|
4414
4413
|
const b = e;
|
|
4415
|
-
return (x, g) => (
|
|
4414
|
+
return (x, g) => (O(), P("div", {
|
|
4416
4415
|
ref_key: "usplit",
|
|
4417
4416
|
ref: a,
|
|
4418
4417
|
style: pe({ left: Number(x.left) ? x.left + "px" : x.left }),
|
|
@@ -4423,7 +4422,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4423
4422
|
style: pe({ left: i.value + "px" }),
|
|
4424
4423
|
class: "ut-gante-split-resize"
|
|
4425
4424
|
}, null, 4), [
|
|
4426
|
-
[
|
|
4425
|
+
[Ve, o.value]
|
|
4427
4426
|
])
|
|
4428
4427
|
], 36));
|
|
4429
4428
|
}
|
|
@@ -4448,7 +4447,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4448
4447
|
setup(n, { expose: e }) {
|
|
4449
4448
|
const t = n;
|
|
4450
4449
|
let o = 0;
|
|
4451
|
-
const i =
|
|
4450
|
+
const i = B(0), a = qe({
|
|
4452
4451
|
tableWidth: 360,
|
|
4453
4452
|
timeScale: 1,
|
|
4454
4453
|
// 时间刻度 1:日, 2周, 3月, 4季, 5年
|
|
@@ -4477,7 +4476,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4477
4476
|
// 唯一标识字段
|
|
4478
4477
|
footerLabel: "合计"
|
|
4479
4478
|
// showFooter为true时生效
|
|
4480
|
-
}), l =
|
|
4479
|
+
}), l = B(300), s = B(300), r = B(!1), c = B(/* @__PURE__ */ new Date()), d = B(""), u = B(!1), v = B(0), b = B(0), x = B(null), g = B(null);
|
|
4481
4480
|
let f;
|
|
4482
4481
|
ft(() => {
|
|
4483
4482
|
h(), S(), M();
|
|
@@ -4506,17 +4505,17 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4506
4505
|
D(t.tasks), o = 0, I(t.tasks);
|
|
4507
4506
|
function D(Y) {
|
|
4508
4507
|
Y.sort(_(m));
|
|
4509
|
-
for (const
|
|
4510
|
-
|
|
4508
|
+
for (const U of Y)
|
|
4509
|
+
U[a.children] && D(U[a.children]);
|
|
4511
4510
|
}
|
|
4512
4511
|
function _(Y) {
|
|
4513
|
-
return function(
|
|
4514
|
-
return C == "asc" ?
|
|
4512
|
+
return function(U, le) {
|
|
4513
|
+
return C == "asc" ? U[Y] - le[Y] : (console.log(le, Y), le[Y] - U[Y]);
|
|
4515
4514
|
};
|
|
4516
4515
|
}
|
|
4517
4516
|
function I(Y) {
|
|
4518
|
-
for (const
|
|
4519
|
-
|
|
4517
|
+
for (const U of Y)
|
|
4518
|
+
U[a.children] ? (o++, U.seqNo = U.seqNo || o, I(U[a.children])) : (o++, U.seqNo = U.seqNo || o);
|
|
4520
4519
|
}
|
|
4521
4520
|
}, p = (m) => {
|
|
4522
4521
|
console.log("展开", m.show_calendar), m.changeDate && (c.value = m.changeDate), r.value = m.show_calendar, console.log(r.value), m.calendar_left != null && (l.value = m.calendar_left), m.calendar_top != null && (s.value = m.calendar_top), m.change_value != null && (d.value = m.change_value.argument);
|
|
@@ -4572,7 +4571,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4572
4571
|
const D = C === "start" ? "00:00:00" : "23:59:59";
|
|
4573
4572
|
return m = `${ae(m, "yyyy-MM-dd")} ${D}`, new Date(m).getTime();
|
|
4574
4573
|
};
|
|
4575
|
-
return e({ initGante: h }), (m, C) => (
|
|
4574
|
+
return e({ initGante: h }), (m, C) => (O(), P("div", fs, [
|
|
4576
4575
|
ot(m.$slots, "header"),
|
|
4577
4576
|
N("div", {
|
|
4578
4577
|
ref_key: "xgante",
|
|
@@ -4583,7 +4582,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4583
4582
|
style: pe({ width: Number(i.value) ? i.value + "px" : i.value }),
|
|
4584
4583
|
class: "gante-out-op"
|
|
4585
4584
|
}, [
|
|
4586
|
-
m.title ? (
|
|
4585
|
+
m.title ? (O(), P("div", ps, Q(m.title), 1)) : de("", !0),
|
|
4587
4586
|
N("div", ms, Q(ge(ae)(v.value, "yyyy-MM-dd")) + " ~ " + Q(ge(ae)(b.value, "yyyy-MM-dd")), 1),
|
|
4588
4587
|
N("div", hs, [
|
|
4589
4588
|
ot(m.$slots, "colorTip"),
|
|
@@ -4594,7 +4593,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4594
4593
|
style: pe({ width: Number(i.value) ? i.value + "px" : i.value }),
|
|
4595
4594
|
class: "gante-table-box"
|
|
4596
4595
|
}, [
|
|
4597
|
-
z(
|
|
4596
|
+
z(Hl, {
|
|
4598
4597
|
columns: m.columns,
|
|
4599
4598
|
"show-loading": u.value,
|
|
4600
4599
|
data: m.tasks,
|
|
@@ -4647,7 +4646,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4647
4646
|
},
|
|
4648
4647
|
emits: ["update:modelValue"],
|
|
4649
4648
|
setup(n, { emit: e }) {
|
|
4650
|
-
const t = n, o = e, i =
|
|
4649
|
+
const t = n, o = e, i = B(!1), a = ri(t, "modelValue"), l = B(Object.keys(di.icons)), s = B("ri-"), r = B(), c = Ce(l.value, !0), d = B(35), u = B(1), v = B(0), b = B(""), x = () => {
|
|
4651
4650
|
r.value = "corner-down-right-fill", a.value && (r.value = a.value.split(":")[1]);
|
|
4652
4651
|
}, g = xe(() => u.value === 1 ? c.filter((h) => h.includes(b.value)).slice(u.value - 1, d.value) : c.filter((h) => h.includes(b.value)).slice(
|
|
4653
4652
|
d.value * (u.value - 1),
|
|
@@ -4690,7 +4689,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4690
4689
|
y(), x();
|
|
4691
4690
|
}), (h, E) => {
|
|
4692
4691
|
const S = W("IconifyIconOffline"), R = W("el-input"), $ = W("el-divider"), m = W("el-scrollbar"), C = W("el-pagination"), D = W("vxe-button"), _ = W("el-popover");
|
|
4693
|
-
return
|
|
4692
|
+
return O(), P("div", _s, [
|
|
4694
4693
|
z(R, {
|
|
4695
4694
|
modelValue: a.value,
|
|
4696
4695
|
"onUpdate:modelValue": E[2] || (E[2] = (I) => a.value = I),
|
|
@@ -4699,7 +4698,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4699
4698
|
class: "u-icon-input relative"
|
|
4700
4699
|
}, {
|
|
4701
4700
|
append: X(() => [
|
|
4702
|
-
a.value ? (
|
|
4701
|
+
a.value ? (O(), P("span", {
|
|
4703
4702
|
key: 0,
|
|
4704
4703
|
class: "u-icon-close item-center justify-center text-sm hidden absolute",
|
|
4705
4704
|
onClick: p
|
|
@@ -4740,12 +4739,12 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4740
4739
|
z(m, { height: "220px" }, {
|
|
4741
4740
|
default: X(() => [
|
|
4742
4741
|
N("ul", Ds, [
|
|
4743
|
-
(
|
|
4742
|
+
(O(!0), P(ve, null, me(g.value, (I, Y) => (O(), P("li", {
|
|
4744
4743
|
key: Y,
|
|
4745
4744
|
title: I,
|
|
4746
4745
|
class: "icon-item p-2 cursor-pointer mr-2 mt-1 flex justify-center items-center border border-[#e5e7eb]",
|
|
4747
4746
|
style: pe(f.value(I)),
|
|
4748
|
-
onClick: (
|
|
4747
|
+
onClick: (U) => M(I)
|
|
4749
4748
|
}, [
|
|
4750
4749
|
N("i", {
|
|
4751
4750
|
class: Xe([s.value + I, "w-5 h-5 text-xl"])
|
|
@@ -4801,7 +4800,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4801
4800
|
/* @__PURE__ */ N("th", null, "五"),
|
|
4802
4801
|
/* @__PURE__ */ N("th", { class: "op-calendar-pc-table-weekend" }, "六"),
|
|
4803
4802
|
/* @__PURE__ */ N("th", { class: "op-calendar-pc-table-weekend" }, "日")
|
|
4804
|
-
], -1),
|
|
4803
|
+
], -1), Vs = { class: "op-calendar-pc-relative" }, Hs = ["date"], Us = {
|
|
4805
4804
|
key: 0,
|
|
4806
4805
|
class: "op-calendar-pc-table-holiday-sign"
|
|
4807
4806
|
}, qs = {
|
|
@@ -4837,7 +4836,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4837
4836
|
}
|
|
4838
4837
|
},
|
|
4839
4838
|
setup(n) {
|
|
4840
|
-
const e =
|
|
4839
|
+
const e = B(""), t = B([]), o = n, i = B(""), a = B(""), l = B("2023"), s = B(""), r = [], c = B({}), d = /* @__PURE__ */ new Date();
|
|
4841
4840
|
c.value = jt.solar2lunar(
|
|
4842
4841
|
d.getFullYear(),
|
|
4843
4842
|
d.getMonth() + 1,
|
|
@@ -4870,12 +4869,12 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4870
4869
|
I = I == 0 ? 7 : I;
|
|
4871
4870
|
for (let Y = 1; Y < I; Y++) {
|
|
4872
4871
|
_ = Me(_).subtract(1, "day").format("YYYY-MM-DD");
|
|
4873
|
-
const { day:
|
|
4872
|
+
const { day: U, month: le, year: Te } = p(_), G = jt.solar2lunar(Te, le, U);
|
|
4874
4873
|
if (G === -1) return {};
|
|
4875
4874
|
let { Term: ie } = G;
|
|
4876
|
-
const { IDayCn: se, IMonthCn:
|
|
4877
|
-
E[j] && E[j][
|
|
4878
|
-
const { isWorkDay: K, isRestDay: re } = T(J, j,
|
|
4875
|
+
const { IDayCn: se, IMonthCn: A, cDay: L, cMonth: j, cYear: J } = G;
|
|
4876
|
+
E[j] && E[j][L] && (ie = E[j][L]), h[A] && h[A][se] && (ie = h[A][se]);
|
|
4877
|
+
const { isWorkDay: K, isRestDay: re } = T(J, j, L);
|
|
4879
4878
|
m.push({
|
|
4880
4879
|
day: _.split("-")[2],
|
|
4881
4880
|
date: _,
|
|
@@ -4890,15 +4889,15 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4890
4889
|
}
|
|
4891
4890
|
_ = [S, R, $].join("-"), m = m.reverse();
|
|
4892
4891
|
for (let Y = 0; Y <= C - I; Y++) {
|
|
4893
|
-
const { day:
|
|
4892
|
+
const { day: U, month: le, year: Te } = p(_), G = jt.solar2lunar(Te, le, U);
|
|
4894
4893
|
if (G === -1) return {};
|
|
4895
4894
|
let { Term: ie } = G;
|
|
4896
|
-
const { IDayCn: se, IMonthCn:
|
|
4897
|
-
E[j] && E[j][
|
|
4898
|
-
const { isWorkDay: K, isRestDay: re } = T(J, j,
|
|
4895
|
+
const { IDayCn: se, IMonthCn: A, cDay: L, cMonth: j, cYear: J } = G;
|
|
4896
|
+
E[j] && E[j][L] && (ie = E[j][L]), h[A] && h[A][se] && (ie = h[A][se]);
|
|
4897
|
+
const { isWorkDay: K, isRestDay: re } = T(J, j, L);
|
|
4899
4898
|
m.push({
|
|
4900
4899
|
date: _,
|
|
4901
|
-
day:
|
|
4900
|
+
day: U,
|
|
4902
4901
|
d_day: ie || se,
|
|
4903
4902
|
isSelectClass: e.value == _,
|
|
4904
4903
|
otherMonth: le != a.value,
|
|
@@ -4965,7 +4964,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4965
4964
|
};
|
|
4966
4965
|
return (S, R) => {
|
|
4967
4966
|
const $ = W("el-option"), m = W("el-select");
|
|
4968
|
-
return
|
|
4967
|
+
return O(), P("div", Ms, [
|
|
4969
4968
|
N("div", Is, [
|
|
4970
4969
|
N("div", $s, [
|
|
4971
4970
|
N("div", Ns, [
|
|
@@ -4979,7 +4978,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4979
4978
|
onChange: f
|
|
4980
4979
|
}, {
|
|
4981
4980
|
default: X(() => [
|
|
4982
|
-
(
|
|
4981
|
+
(O(!0), P(ve, null, me(n.statutoryHoliday, (C) => (O(), be($, {
|
|
4983
4982
|
key: C.date,
|
|
4984
4983
|
value: C.date,
|
|
4985
4984
|
label: C.name
|
|
@@ -4996,7 +4995,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
4996
4995
|
onChange: b
|
|
4997
4996
|
}, {
|
|
4998
4997
|
default: X(() => [
|
|
4999
|
-
(
|
|
4998
|
+
(O(), P(ve, null, me(r, (C) => z($, {
|
|
5000
4999
|
key: C.value,
|
|
5001
5000
|
value: C.value,
|
|
5002
5001
|
label: C.text
|
|
@@ -5018,7 +5017,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5018
5017
|
onChange: x
|
|
5019
5018
|
}, {
|
|
5020
5019
|
default: X(() => [
|
|
5021
|
-
(
|
|
5020
|
+
(O(), P(ve, null, me(u, (C) => z($, {
|
|
5022
5021
|
key: C.value,
|
|
5023
5022
|
value: C.value,
|
|
5024
5023
|
label: C.text
|
|
@@ -5042,11 +5041,11 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5042
5041
|
N("table", js, [
|
|
5043
5042
|
N("tbody", null, [
|
|
5044
5043
|
Ws,
|
|
5045
|
-
(
|
|
5046
|
-
(
|
|
5044
|
+
(O(!0), P(ve, null, me(t.value, (C, D) => (O(), P("tr", { key: D }, [
|
|
5045
|
+
(O(!0), P(ve, null, me(C, (_) => (O(), P("td", {
|
|
5047
5046
|
key: _.date
|
|
5048
5047
|
}, [
|
|
5049
|
-
N("div",
|
|
5048
|
+
N("div", Vs, [
|
|
5050
5049
|
N("a", {
|
|
5051
5050
|
href: "javascript:void(0);",
|
|
5052
5051
|
class: Xe({
|
|
@@ -5060,11 +5059,11 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5060
5059
|
date: _.date,
|
|
5061
5060
|
onClick: y
|
|
5062
5061
|
}, [
|
|
5063
|
-
_.isWorkDay ? (
|
|
5064
|
-
_.isRestDay ? (
|
|
5062
|
+
_.isWorkDay ? (O(), P("span", Us, "班")) : de("", !0),
|
|
5063
|
+
_.isRestDay ? (O(), P("span", qs, "休")) : de("", !0),
|
|
5065
5064
|
N("span", Xs, Q(_.day), 1),
|
|
5066
5065
|
N("span", Gs, Q(_.d_day), 1)
|
|
5067
|
-
], 10,
|
|
5066
|
+
], 10, Hs)
|
|
5068
5067
|
])
|
|
5069
5068
|
]))), 128))
|
|
5070
5069
|
]))), 128))
|
|
@@ -5080,8 +5079,8 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5080
5079
|
N("span", null, Q(c.value.gzYear) + "年 " + Q(c.value.animal), 1),
|
|
5081
5080
|
N("span", null, Q(c.value.gzMonth) + "月 " + Q(c.value.gzDay) + "日", 1)
|
|
5082
5081
|
]),
|
|
5083
|
-
c.value.lunarFestival ? (
|
|
5084
|
-
c.value.festival ? (
|
|
5082
|
+
c.value.lunarFestival ? (O(), P("p", er, Q(c.value.lunarFestival), 1)) : de("", !0),
|
|
5083
|
+
c.value.festival ? (O(), P("p", tr, Q(c.value.festival), 1)) : de("", !0),
|
|
5085
5084
|
nr
|
|
5086
5085
|
])
|
|
5087
5086
|
]),
|
|
@@ -5196,7 +5195,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5196
5195
|
d3ccc4f2: n.secondFlipColor,
|
|
5197
5196
|
a8bbf00e: n.secondFlipBackgroundColor
|
|
5198
5197
|
}));
|
|
5199
|
-
const e = n, t =
|
|
5198
|
+
const e = n, t = B(Math.trunc((/* @__PURE__ */ new Date()).getTime() / 1e3)), o = B(0), i = B(), a = B(0), l = B(!1), s = B([
|
|
5200
5199
|
{
|
|
5201
5200
|
current: 0,
|
|
5202
5201
|
previous: 0,
|
|
@@ -5277,13 +5276,13 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5277
5276
|
}, 1e3);
|
|
5278
5277
|
}), _o(() => {
|
|
5279
5278
|
clearInterval(i.value);
|
|
5280
|
-
}), (g, f) => (
|
|
5281
|
-
(
|
|
5279
|
+
}), (g, f) => (O(), P("div", sr, [
|
|
5280
|
+
(O(!0), P(ve, null, me(s.value, (M) => Le((O(), P("span", {
|
|
5282
5281
|
key: M.label,
|
|
5283
5282
|
id: M.elementId,
|
|
5284
5283
|
class: "flip-clock__piece"
|
|
5285
5284
|
}, [
|
|
5286
|
-
n.flipAnimation ? (
|
|
5285
|
+
n.flipAnimation ? (O(), P("div", cr, [
|
|
5287
5286
|
N("span", {
|
|
5288
5287
|
class: "flip-clock__card flip-card",
|
|
5289
5288
|
style: pe(n.countdownSize ? `font-size:${n.countdownSize}` : "")
|
|
@@ -5302,16 +5301,16 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5302
5301
|
"data-value": c(M.previous)
|
|
5303
5302
|
}, null, 8, pr)
|
|
5304
5303
|
], 4)
|
|
5305
|
-
])) : (
|
|
5304
|
+
])) : (O(), P("div", mr, [
|
|
5306
5305
|
N("span", hr, Q(c(M.current)), 1)
|
|
5307
5306
|
])),
|
|
5308
|
-
n.showLabels ? (
|
|
5307
|
+
n.showLabels ? (O(), P("span", {
|
|
5309
5308
|
key: 2,
|
|
5310
5309
|
class: "flip-clock__slot",
|
|
5311
5310
|
style: pe(n.labelSize ? `font-size:${n.labelSize}` : "")
|
|
5312
5311
|
}, Q(M.label), 5)) : de("", !0)
|
|
5313
5312
|
], 8, rr)), [
|
|
5314
|
-
[
|
|
5313
|
+
[Ve, M.show]
|
|
5315
5314
|
])), 128))
|
|
5316
5315
|
]));
|
|
5317
5316
|
}
|
|
@@ -5319,7 +5318,7 @@ const he = Pl(), Fl = { class: "ut-gante-tbody" }, Ll = ["onMouseenter", "onMous
|
|
|
5319
5318
|
hi,
|
|
5320
5319
|
_i,
|
|
5321
5320
|
Ii,
|
|
5322
|
-
|
|
5321
|
+
Ui,
|
|
5323
5322
|
ea,
|
|
5324
5323
|
ua,
|
|
5325
5324
|
pa,
|
|
@@ -5666,7 +5665,7 @@ const go = ne({
|
|
|
5666
5665
|
...t
|
|
5667
5666
|
}, n);
|
|
5668
5667
|
}
|
|
5669
|
-
}),
|
|
5668
|
+
}), Vr = ne({
|
|
5670
5669
|
name: "IconOffline",
|
|
5671
5670
|
components: { IconifyIcon: go },
|
|
5672
5671
|
props: {
|
|
@@ -5688,7 +5687,7 @@ const go = ne({
|
|
|
5688
5687
|
{ default: () => [] }
|
|
5689
5688
|
);
|
|
5690
5689
|
}
|
|
5691
|
-
}),
|
|
5690
|
+
}), Hr = ne({
|
|
5692
5691
|
name: "FontIcon",
|
|
5693
5692
|
props: {
|
|
5694
5693
|
icon: {
|
|
@@ -5735,7 +5734,7 @@ function Qr(n, e) {
|
|
|
5735
5734
|
return ne({
|
|
5736
5735
|
name: "FontIcon",
|
|
5737
5736
|
render() {
|
|
5738
|
-
return Ye(
|
|
5737
|
+
return Ye(Hr, { icon: i, iconType: a, ...e });
|
|
5739
5738
|
}
|
|
5740
5739
|
});
|
|
5741
5740
|
} else return typeof n == "function" || typeof (n == null ? void 0 : n.render) == "function" ? n : n.startsWith("vxe") ? ne({
|
|
@@ -5746,7 +5745,7 @@ function Qr(n, e) {
|
|
|
5746
5745
|
}) : ne({
|
|
5747
5746
|
name: "OfflineIcon",
|
|
5748
5747
|
render() {
|
|
5749
|
-
return Ye(
|
|
5748
|
+
return Ye(Vr, { icon: n, ...e });
|
|
5750
5749
|
}
|
|
5751
5750
|
});
|
|
5752
5751
|
}
|
|
@@ -5755,8 +5754,8 @@ const Zr = {
|
|
|
5755
5754
|
};
|
|
5756
5755
|
export {
|
|
5757
5756
|
Zr as default,
|
|
5758
|
-
|
|
5759
|
-
|
|
5757
|
+
Vr as iconOffline,
|
|
5758
|
+
Hr as iconfont,
|
|
5760
5759
|
Qr as useRenderIcon
|
|
5761
5760
|
};
|
|
5762
5761
|
//# sourceMappingURL=components.es.js.map
|