yc-vep-ui 0.5.12 → 0.5.14
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/entry-BqAJ6nqo.js +3348 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useTable.d.ts +1 -1
- package/dist/index.css +2 -3
- package/dist/utils/index.js +1 -1
- package/dist/vep-ui.js +1 -1
- package/package.json +1 -1
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV-BEA1XUga-BNWQWI9F.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV-BEA1XUga.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH.js +0 -467
- package/dist/entry-Cv7k3S6e.js +0 -269774
|
@@ -0,0 +1,3348 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isVNode as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as D, resolveDynamicComponent as O, setBlockTracking as k, shallowRef as A, toDisplayString as j, toRaw as M, toValue as N, unref as P, useAttrs as F, useCssVars as ee, useModel as te, watch as I, watchEffect as L, withCtx as R, withDirectives as z, withKeys as ne, withModifiers as B } from "vue";
|
|
2
|
+
import { AiEditor as re } from "aieditor";
|
|
3
|
+
import "aieditor/dist/style.css";
|
|
4
|
+
import { useAsyncState as ie, useFetch as ae } from "@vueuse/core";
|
|
5
|
+
import oe from "jsencrypt";
|
|
6
|
+
import { PageAgent as se } from "page-agent";
|
|
7
|
+
//#region \0rolldown/runtime.js
|
|
8
|
+
var ce = Object.defineProperty, V = (e, t) => {
|
|
9
|
+
let n = {};
|
|
10
|
+
for (var r in e) ce(n, r, {
|
|
11
|
+
get: e[r],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
return t || ce(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
15
|
+
}, le = { style: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
"align-items": "center",
|
|
18
|
+
gap: "4px"
|
|
19
|
+
} }, ue = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, de = /* @__PURE__ */ u({
|
|
20
|
+
__name: "index",
|
|
21
|
+
props: {
|
|
22
|
+
title: {},
|
|
23
|
+
bodyClass: {},
|
|
24
|
+
hideBorder: { type: Boolean },
|
|
25
|
+
icon: {}
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
ee((e) => ({ v0439edef: i.value }));
|
|
29
|
+
let i = t(() => e.hideBorder ? "1px solid #e5e7eb" : "none");
|
|
30
|
+
return (t, i) => {
|
|
31
|
+
let o = E("el-icon"), l = E("el-card");
|
|
32
|
+
return x(), n(l, h(t.$attrs, { class: {
|
|
33
|
+
"ui-card": !0,
|
|
34
|
+
hideBorder: e.hideBorder
|
|
35
|
+
} }), s({
|
|
36
|
+
default: R(() => [a("div", ue, [T(t.$slots, "default", {}, void 0, !0)])]),
|
|
37
|
+
_: 2
|
|
38
|
+
}, [e.title && e.title?.length > 0 ? {
|
|
39
|
+
name: "header",
|
|
40
|
+
fn: R(() => [a("div", le, [e.icon ? (x(), n(o, { key: 0 }, {
|
|
41
|
+
default: R(() => [(x(), n(O(e.icon), { color: "#2563eb" }))]),
|
|
42
|
+
_: 1
|
|
43
|
+
})) : r("", !0), i[0] || (k(-1, !0), (i[0] = a("h4", { style: { margin: "0px" } }, [c(j(e.title), 1)])).cacheIndex = 0, k(1), i[0])])]),
|
|
44
|
+
key: "0"
|
|
45
|
+
} : void 0]), 1040, ["class"]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}), H = (e, t) => {
|
|
49
|
+
let n = e.__vccOpts || e;
|
|
50
|
+
for (let [e, r] of t) n[e] = r;
|
|
51
|
+
return n;
|
|
52
|
+
}, fe = /* @__PURE__ */ V({ default: () => pe }), pe = /* @__PURE__ */ H(de, [["__scopeId", "data-v-b079ca0d"]]);
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/utils/components.ts
|
|
55
|
+
function me() {
|
|
56
|
+
return d()?.appContext.config.globalProperties.$message || null;
|
|
57
|
+
}
|
|
58
|
+
var U = {
|
|
59
|
+
get Button() {
|
|
60
|
+
return $()?.resolveComponent?.("el-button") || "el-button";
|
|
61
|
+
},
|
|
62
|
+
get Link() {
|
|
63
|
+
return $()?.resolveComponent?.("el-link") || "el-link";
|
|
64
|
+
},
|
|
65
|
+
get Tag() {
|
|
66
|
+
return $()?.resolveComponent?.("el-tag") || "el-tag";
|
|
67
|
+
},
|
|
68
|
+
get Select() {
|
|
69
|
+
return $()?.resolveComponent?.("el-select") || "el-select";
|
|
70
|
+
},
|
|
71
|
+
get DatePicker() {
|
|
72
|
+
return $()?.resolveComponent?.("el-date-picker") || "el-date-picker";
|
|
73
|
+
},
|
|
74
|
+
get Input() {
|
|
75
|
+
return $()?.resolveComponent?.("el-input") || "el-input";
|
|
76
|
+
},
|
|
77
|
+
get InputTag() {
|
|
78
|
+
return $()?.resolveComponent?.("el-input-tag") || "el-input-tag";
|
|
79
|
+
},
|
|
80
|
+
get TimeSelect() {
|
|
81
|
+
return $()?.resolveComponent?.("el-time-select") || "el-time-select";
|
|
82
|
+
},
|
|
83
|
+
get InputNumber() {
|
|
84
|
+
return $()?.resolveComponent?.("el-input-number") || "el-input-number";
|
|
85
|
+
},
|
|
86
|
+
get RadioGroup() {
|
|
87
|
+
return $()?.resolveComponent?.("el-radio-group") || "el-radio-group";
|
|
88
|
+
},
|
|
89
|
+
get Text() {
|
|
90
|
+
return $()?.resolveComponent?.("el-text") || "el-text";
|
|
91
|
+
},
|
|
92
|
+
get Card() {
|
|
93
|
+
return $()?.resolveComponent?.("el-card") || "el-card";
|
|
94
|
+
},
|
|
95
|
+
get Table() {
|
|
96
|
+
return $()?.resolveComponent?.("el-table") || "el-table";
|
|
97
|
+
},
|
|
98
|
+
get TableColumn() {
|
|
99
|
+
return $()?.resolveComponent?.("el-table-column") || "el-table-column";
|
|
100
|
+
},
|
|
101
|
+
get Pagination() {
|
|
102
|
+
return $()?.resolveComponent?.("el-pagination") || "el-pagination";
|
|
103
|
+
},
|
|
104
|
+
get Form() {
|
|
105
|
+
return $()?.resolveComponent?.("el-form") || "el-form";
|
|
106
|
+
},
|
|
107
|
+
get FormItem() {
|
|
108
|
+
return $()?.resolveComponent?.("el-form-item") || "el-form-item";
|
|
109
|
+
},
|
|
110
|
+
get Row() {
|
|
111
|
+
return $()?.resolveComponent?.("el-row") || "el-row";
|
|
112
|
+
},
|
|
113
|
+
get Col() {
|
|
114
|
+
return $()?.resolveComponent?.("el-col") || "el-col";
|
|
115
|
+
},
|
|
116
|
+
get Icon() {
|
|
117
|
+
return $()?.resolveComponent?.("el-icon") || "el-icon";
|
|
118
|
+
},
|
|
119
|
+
get TreeV2() {
|
|
120
|
+
return $()?.resolveComponent?.("el-tree-v2") || "el-tree-v2";
|
|
121
|
+
},
|
|
122
|
+
get Dropdown() {
|
|
123
|
+
return $()?.resolveComponent?.("el-dropdown") || "el-dropdown";
|
|
124
|
+
},
|
|
125
|
+
get DropdownMenu() {
|
|
126
|
+
return $()?.resolveComponent?.("el-dropdown-menu") || "el-dropdown-menu";
|
|
127
|
+
},
|
|
128
|
+
get DropdownItem() {
|
|
129
|
+
return $()?.resolveComponent?.("el-dropdown-item") || "el-dropdown-item";
|
|
130
|
+
},
|
|
131
|
+
get Dialog() {
|
|
132
|
+
return $()?.resolveComponent?.("el-dialog") || "el-dialog";
|
|
133
|
+
},
|
|
134
|
+
get ButtonGroup() {
|
|
135
|
+
return $()?.resolveComponent?.("el-button-group") || "el-button-group";
|
|
136
|
+
},
|
|
137
|
+
get Descriptions() {
|
|
138
|
+
return $()?.resolveComponent?.("el-descriptions") || "el-descriptions";
|
|
139
|
+
},
|
|
140
|
+
get DescriptionsItem() {
|
|
141
|
+
return $()?.resolveComponent?.("el-descriptions-item") || "el-descriptions-item";
|
|
142
|
+
},
|
|
143
|
+
get Switch() {
|
|
144
|
+
return $()?.resolveComponent?.("el-switch") || "el-switch";
|
|
145
|
+
},
|
|
146
|
+
get Message() {
|
|
147
|
+
return me() || {
|
|
148
|
+
error: (e) => console.error("[Message.error]", e),
|
|
149
|
+
success: (e) => console.log("[Message.success]", e),
|
|
150
|
+
warning: (e) => console.warn("[Message.warning]", e)
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/components/utils/render.ts
|
|
156
|
+
function W() {
|
|
157
|
+
let e = $();
|
|
158
|
+
return e?.h ? e.h : function(e, t, n) {
|
|
159
|
+
return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function he(e) {
|
|
163
|
+
let t = W();
|
|
164
|
+
return t ? t("div", { style: {
|
|
165
|
+
display: "flex",
|
|
166
|
+
flexDirection: "row",
|
|
167
|
+
flexWrap: "wrap",
|
|
168
|
+
gap: "8px"
|
|
169
|
+
} }, (Array.isArray(e) ? e : [e]).map((e) => {
|
|
170
|
+
let { text: n, ...r } = e;
|
|
171
|
+
return t(U.Button, {
|
|
172
|
+
link: !0,
|
|
173
|
+
size: "small",
|
|
174
|
+
...r,
|
|
175
|
+
type: e.type || "default"
|
|
176
|
+
}, () => n);
|
|
177
|
+
})) : null;
|
|
178
|
+
}
|
|
179
|
+
function ge(e) {
|
|
180
|
+
let t = W();
|
|
181
|
+
return t ? Array.isArray(e) ? t("div", { style: {
|
|
182
|
+
display: "flex",
|
|
183
|
+
gap: "8px",
|
|
184
|
+
flexDirection: "row",
|
|
185
|
+
flexWrap: "wrap"
|
|
186
|
+
} }, e.map((e) => t(U.Link, {
|
|
187
|
+
...e,
|
|
188
|
+
type: e.type || "primary"
|
|
189
|
+
}, () => t(U.Text, {
|
|
190
|
+
lineClamp: e?.lineClamp,
|
|
191
|
+
type: e.type || "primary"
|
|
192
|
+
}, () => e.prop)))) : t(U.Link, {
|
|
193
|
+
...e,
|
|
194
|
+
type: e.type || "primary"
|
|
195
|
+
}, () => t(U.Text, {
|
|
196
|
+
lineClamp: e?.lineClamp,
|
|
197
|
+
type: e.type || "primary"
|
|
198
|
+
}, () => e.prop)) : null;
|
|
199
|
+
}
|
|
200
|
+
function _e(e) {
|
|
201
|
+
let t = W();
|
|
202
|
+
if (!t) return null;
|
|
203
|
+
let n = e.text === void 0 ? e.prop : e.text;
|
|
204
|
+
return t("div", { style: {
|
|
205
|
+
display: "flex",
|
|
206
|
+
gap: "4px",
|
|
207
|
+
flexDirection: "row",
|
|
208
|
+
flexWrap: "wrap",
|
|
209
|
+
alignItems: "center"
|
|
210
|
+
} }, (Array.isArray(n) ? n : [n || ""]).map((n) => t(U.Tag, e, () => n)));
|
|
211
|
+
}
|
|
212
|
+
function ve(e) {
|
|
213
|
+
let t = W();
|
|
214
|
+
return t ? t(U.Switch, { ...e }) : null;
|
|
215
|
+
}
|
|
216
|
+
function ye(e) {
|
|
217
|
+
let t = W();
|
|
218
|
+
return t ? t(U.Select, {
|
|
219
|
+
style: { minWidth: "160px" },
|
|
220
|
+
...e,
|
|
221
|
+
placeholder: "请选择",
|
|
222
|
+
filterable: !0
|
|
223
|
+
}) : null;
|
|
224
|
+
}
|
|
225
|
+
function be(e) {
|
|
226
|
+
let t = W();
|
|
227
|
+
if (!t) return null;
|
|
228
|
+
let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
229
|
+
return t(U.DatePicker, {
|
|
230
|
+
format: n,
|
|
231
|
+
valueFormat: n,
|
|
232
|
+
startPlaceholder: "开始时间",
|
|
233
|
+
endPlaceholder: "结束时间",
|
|
234
|
+
...e,
|
|
235
|
+
placeholder: "请选择",
|
|
236
|
+
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function xe(e) {
|
|
240
|
+
let t = W();
|
|
241
|
+
if (!t) return null;
|
|
242
|
+
let { start: n = "00:00", end: r = "23:30", ...i } = e;
|
|
243
|
+
return t(U.TimeSelect, {
|
|
244
|
+
start: n,
|
|
245
|
+
end: r,
|
|
246
|
+
...i,
|
|
247
|
+
placeholder: "请选择",
|
|
248
|
+
filterable: !0
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function Se(e) {
|
|
252
|
+
let t = W();
|
|
253
|
+
return t ? t(U.Input, {
|
|
254
|
+
...e,
|
|
255
|
+
placeholder: "请输入"
|
|
256
|
+
}) : null;
|
|
257
|
+
}
|
|
258
|
+
function Ce(e) {
|
|
259
|
+
let t = W();
|
|
260
|
+
if (!t) return null;
|
|
261
|
+
let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
|
|
262
|
+
...e?.style || {},
|
|
263
|
+
width: "100%"
|
|
264
|
+
};
|
|
265
|
+
return t(U.InputNumber, {
|
|
266
|
+
align: n,
|
|
267
|
+
style: a,
|
|
268
|
+
controlsPosition: r,
|
|
269
|
+
placeholder: "请输入",
|
|
270
|
+
...i
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function we(e) {
|
|
274
|
+
let t = W();
|
|
275
|
+
if (!t) return null;
|
|
276
|
+
let { rows: n = 1, ...r } = e;
|
|
277
|
+
return t(U.Input, {
|
|
278
|
+
placeholder: "请输入",
|
|
279
|
+
rows: n,
|
|
280
|
+
...r,
|
|
281
|
+
type: "textarea"
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
function Te(e) {
|
|
285
|
+
let t = W();
|
|
286
|
+
return t ? t(U.InputTag, {
|
|
287
|
+
placeholder: "请输入",
|
|
288
|
+
...e,
|
|
289
|
+
clearable: !1
|
|
290
|
+
}) : null;
|
|
291
|
+
}
|
|
292
|
+
function Ee(e) {
|
|
293
|
+
let t = W();
|
|
294
|
+
return t ? t(En || Tn, e) : null;
|
|
295
|
+
}
|
|
296
|
+
function De(e) {
|
|
297
|
+
let t = W();
|
|
298
|
+
return t ? t(U.RadioGroup, e) : null;
|
|
299
|
+
}
|
|
300
|
+
function Oe(e) {
|
|
301
|
+
let t = W();
|
|
302
|
+
return t ? t(U.Text, e, () => typeof e == "string" ? e : e.prop ?? "") : null;
|
|
303
|
+
}
|
|
304
|
+
function ke(e) {
|
|
305
|
+
let t = W();
|
|
306
|
+
return t ? t(Hr || Vr, {
|
|
307
|
+
placeholder: "请选择",
|
|
308
|
+
...e,
|
|
309
|
+
searchable: !0
|
|
310
|
+
}) : null;
|
|
311
|
+
}
|
|
312
|
+
function Ae(e) {
|
|
313
|
+
let t = W();
|
|
314
|
+
return t ? t(pi || fi, e) : null;
|
|
315
|
+
}
|
|
316
|
+
var je = {
|
|
317
|
+
button: he,
|
|
318
|
+
link: ge,
|
|
319
|
+
tag: _e,
|
|
320
|
+
switch: ve,
|
|
321
|
+
select: ye,
|
|
322
|
+
datePicker: be,
|
|
323
|
+
timeSelect: xe,
|
|
324
|
+
input: Se,
|
|
325
|
+
inputNumber: Ce,
|
|
326
|
+
textarea: we,
|
|
327
|
+
inputTag: Te,
|
|
328
|
+
editor: Ee,
|
|
329
|
+
radio: De,
|
|
330
|
+
text: Oe,
|
|
331
|
+
staffSelect: ke,
|
|
332
|
+
upload: Ae
|
|
333
|
+
}, Me = /* @__PURE__ */ u({
|
|
334
|
+
name: "UiColumn",
|
|
335
|
+
__name: "UiColumn",
|
|
336
|
+
props: {
|
|
337
|
+
key: {},
|
|
338
|
+
data: {},
|
|
339
|
+
column: {},
|
|
340
|
+
align: {},
|
|
341
|
+
size: {}
|
|
342
|
+
},
|
|
343
|
+
emits: ["update:data"],
|
|
344
|
+
setup(t, { emit: r }) {
|
|
345
|
+
let a = r, o = t;
|
|
346
|
+
function s(e, t, n) {
|
|
347
|
+
let r = {};
|
|
348
|
+
Object.keys(je).forEach((i) => {
|
|
349
|
+
let o = i;
|
|
350
|
+
r[o] = (r) => {
|
|
351
|
+
let i = Array.isArray(r) ? r : {
|
|
352
|
+
placeholder: "请输入",
|
|
353
|
+
filterable: !0,
|
|
354
|
+
...r,
|
|
355
|
+
prop: r?.prop || e[n.prop],
|
|
356
|
+
modelValue: r?.prop || e[n.prop],
|
|
357
|
+
onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
|
|
358
|
+
onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
|
|
359
|
+
};
|
|
360
|
+
return je[o](i);
|
|
361
|
+
};
|
|
362
|
+
});
|
|
363
|
+
let i = n.render ? n.render({
|
|
364
|
+
data: e,
|
|
365
|
+
index: t,
|
|
366
|
+
h: r,
|
|
367
|
+
column: n
|
|
368
|
+
}) : null;
|
|
369
|
+
return i ? typeof i == "object" ? i : f("div", { innerHTML: String(i) }) : null;
|
|
370
|
+
}
|
|
371
|
+
return (r, a) => {
|
|
372
|
+
let l = E("UiColumn", !0), u = E("el-table-column"), d = E("el-text");
|
|
373
|
+
return t.column?.children && t.column?.children?.length > 0 ? (x(), n(u, {
|
|
374
|
+
key: 0,
|
|
375
|
+
label: t.column.label,
|
|
376
|
+
align: o.align
|
|
377
|
+
}, {
|
|
378
|
+
default: R(() => [(x(!0), i(e, null, w(t.column.children, (e) => (x(), n(l, h({
|
|
379
|
+
column: e,
|
|
380
|
+
data: o.data
|
|
381
|
+
}, { ref_for: !0 }, r.$attrs, { align: o.align }), null, 16, [
|
|
382
|
+
"column",
|
|
383
|
+
"data",
|
|
384
|
+
"align"
|
|
385
|
+
]))), 256))]),
|
|
386
|
+
_: 1
|
|
387
|
+
}, 8, ["label", "align"])) : (x(), n(u, {
|
|
388
|
+
key: 1,
|
|
389
|
+
prop: String(t.column.prop),
|
|
390
|
+
label: t.column.label,
|
|
391
|
+
"column-key": String(t.column.prop),
|
|
392
|
+
align: o.align,
|
|
393
|
+
width: t.column.width,
|
|
394
|
+
"show-overflow-tooltip": t.column.showOverflowTooltip
|
|
395
|
+
}, {
|
|
396
|
+
default: R(({ row: e, $index: r }) => [t.column.render ? (x(), n(O(s(e, r, t.column)), {
|
|
397
|
+
key: 0,
|
|
398
|
+
align: o.align,
|
|
399
|
+
size: o.size
|
|
400
|
+
}, null, 8, ["align", "size"])) : (x(), n(d, {
|
|
401
|
+
key: 1,
|
|
402
|
+
"line-clamp": t.column?.lineClamp || 2
|
|
403
|
+
}, {
|
|
404
|
+
default: R(() => [c(j(e[t.column.prop]), 1)]),
|
|
405
|
+
_: 2
|
|
406
|
+
}, 1032, ["line-clamp"]))]),
|
|
407
|
+
_: 1
|
|
408
|
+
}, 8, [
|
|
409
|
+
"prop",
|
|
410
|
+
"label",
|
|
411
|
+
"column-key",
|
|
412
|
+
"align",
|
|
413
|
+
"width",
|
|
414
|
+
"show-overflow-tooltip"
|
|
415
|
+
]));
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
}), Ne = /* @__PURE__ */ u({
|
|
419
|
+
__name: "index",
|
|
420
|
+
props: {
|
|
421
|
+
loading: {
|
|
422
|
+
type: [Boolean, Object],
|
|
423
|
+
default: !1
|
|
424
|
+
},
|
|
425
|
+
border: {
|
|
426
|
+
type: Boolean,
|
|
427
|
+
default: !1
|
|
428
|
+
},
|
|
429
|
+
size: { default: "default" },
|
|
430
|
+
data: { default: () => S([]) },
|
|
431
|
+
columns: {},
|
|
432
|
+
align: { default: "left" },
|
|
433
|
+
hidePagination: {
|
|
434
|
+
type: Boolean,
|
|
435
|
+
default: !1
|
|
436
|
+
},
|
|
437
|
+
pagination: { default: () => S({
|
|
438
|
+
page: 1,
|
|
439
|
+
pageSize: 10,
|
|
440
|
+
total: 0,
|
|
441
|
+
pageSizes: [
|
|
442
|
+
10,
|
|
443
|
+
20,
|
|
444
|
+
50
|
|
445
|
+
]
|
|
446
|
+
}) },
|
|
447
|
+
currentChange: { type: Function },
|
|
448
|
+
selectionChange: { type: Function },
|
|
449
|
+
selectable: { type: Function },
|
|
450
|
+
defaultCheckedKeys: {},
|
|
451
|
+
rowKey: {}
|
|
452
|
+
},
|
|
453
|
+
emits: ["pagination"],
|
|
454
|
+
setup(a, { emit: s }) {
|
|
455
|
+
let c = s, l = o(a, [
|
|
456
|
+
"loading",
|
|
457
|
+
"border",
|
|
458
|
+
"align",
|
|
459
|
+
"hidePagination",
|
|
460
|
+
"pagination",
|
|
461
|
+
"data",
|
|
462
|
+
"size"
|
|
463
|
+
]), u = C(), d = t(() => N(l.columns)?.some((e) => e.type === "index")), f = t(() => N(l.columns)?.some((e) => e.type === "selection")), p = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
|
|
464
|
+
I(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
|
|
465
|
+
!e?.length || !t?.length || g(() => {
|
|
466
|
+
if (!u.value) return;
|
|
467
|
+
let n = t.filter((t) => e.includes(t.id));
|
|
468
|
+
u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
|
|
469
|
+
});
|
|
470
|
+
}, { immediate: !0 });
|
|
471
|
+
function m(e, t) {
|
|
472
|
+
a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", N(a.pagination));
|
|
473
|
+
}
|
|
474
|
+
function _(e, t, n) {
|
|
475
|
+
a.data[e] && (a.data[e] = {
|
|
476
|
+
...a.data[e],
|
|
477
|
+
[t]: n
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
return (t, o) => {
|
|
481
|
+
let s = E("el-table-column"), c = E("el-table"), g = E("el-pagination"), v = D("loading");
|
|
482
|
+
return x(), i("div", null, [
|
|
483
|
+
z((x(), n(c, h({ border: a.border }, t.$attrs, {
|
|
484
|
+
data: a.data,
|
|
485
|
+
lazy: !0,
|
|
486
|
+
class: "ui-table",
|
|
487
|
+
fit: "",
|
|
488
|
+
ref_key: "tableRef",
|
|
489
|
+
ref: u
|
|
490
|
+
}), {
|
|
491
|
+
default: R(() => [
|
|
492
|
+
f.value ? (x(), n(s, {
|
|
493
|
+
key: 0,
|
|
494
|
+
type: "selection",
|
|
495
|
+
selectable: l.selectable,
|
|
496
|
+
"column-key": "selection_0",
|
|
497
|
+
align: a.align,
|
|
498
|
+
fixed: "left"
|
|
499
|
+
}, null, 8, ["selectable", "align"])) : r("", !0),
|
|
500
|
+
d.value ? (x(), n(s, {
|
|
501
|
+
key: 1,
|
|
502
|
+
fixed: "left",
|
|
503
|
+
type: "index",
|
|
504
|
+
label: "序号",
|
|
505
|
+
width: "60",
|
|
506
|
+
"column-key": "index_1",
|
|
507
|
+
align: a.align
|
|
508
|
+
}, null, 8, ["align"])) : r("", !0),
|
|
509
|
+
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(Me, {
|
|
510
|
+
key: t + "column_" + e?.prop?.toString(),
|
|
511
|
+
column: e,
|
|
512
|
+
data: a.data,
|
|
513
|
+
align: a.align,
|
|
514
|
+
"onUpdate:data": _,
|
|
515
|
+
size: a.size
|
|
516
|
+
}, null, 8, [
|
|
517
|
+
"column",
|
|
518
|
+
"data",
|
|
519
|
+
"align",
|
|
520
|
+
"size"
|
|
521
|
+
]))), 128))
|
|
522
|
+
]),
|
|
523
|
+
_: 1
|
|
524
|
+
}, 16, ["border", "data"])), [[v, a.loading]]),
|
|
525
|
+
a.hidePagination ? r("", !0) : (x(), n(g, {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: "ui-pagination",
|
|
528
|
+
size: "small",
|
|
529
|
+
background: "",
|
|
530
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
531
|
+
"page-sizes": a.pagination?.pageSizes || [
|
|
532
|
+
10,
|
|
533
|
+
20,
|
|
534
|
+
50
|
|
535
|
+
],
|
|
536
|
+
"page-size": a.pagination.pageSize,
|
|
537
|
+
"onUpdate:pageSize": o[0] ||= (e) => a.pagination.pageSize = e,
|
|
538
|
+
"current-page": a.pagination.page,
|
|
539
|
+
"onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
|
|
540
|
+
total: a.pagination.total,
|
|
541
|
+
"onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
|
|
542
|
+
onChange: m
|
|
543
|
+
}, null, 8, [
|
|
544
|
+
"page-sizes",
|
|
545
|
+
"page-size",
|
|
546
|
+
"current-page",
|
|
547
|
+
"total"
|
|
548
|
+
])),
|
|
549
|
+
T(t.$slots, "default", {}, void 0, !0)
|
|
550
|
+
]);
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
}), Pe = /* @__PURE__ */ V({ default: () => Fe }), Fe = /* @__PURE__ */ H(Ne, [["__scopeId", "data-v-bba6a39a"]]), Ie = ["src"], Le = /* @__PURE__ */ u({
|
|
554
|
+
__name: "Icon",
|
|
555
|
+
props: {
|
|
556
|
+
name: {},
|
|
557
|
+
url: {},
|
|
558
|
+
size: {}
|
|
559
|
+
},
|
|
560
|
+
setup(e) {
|
|
561
|
+
return (t, a) => e.name ? (x(), n(O(t.$attrs.component || e.name), h({ key: 0 }, t.$attrs, { style: {
|
|
562
|
+
width: "100%",
|
|
563
|
+
height: "100%"
|
|
564
|
+
} }), null, 16)) : e.url ? (x(), i("img", {
|
|
565
|
+
key: 1,
|
|
566
|
+
src: e.url,
|
|
567
|
+
style: v({
|
|
568
|
+
width: e.size,
|
|
569
|
+
height: e.size
|
|
570
|
+
})
|
|
571
|
+
}, null, 12, Ie)) : r("", !0);
|
|
572
|
+
}
|
|
573
|
+
}), Re = {
|
|
574
|
+
style: {
|
|
575
|
+
width: "100%",
|
|
576
|
+
height: "100%"
|
|
577
|
+
},
|
|
578
|
+
t: "1779702889490",
|
|
579
|
+
class: "icon",
|
|
580
|
+
viewBox: "0 0 1024 1024",
|
|
581
|
+
version: "1.1",
|
|
582
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
583
|
+
"p-id": "8979"
|
|
584
|
+
}, ze = /* @__PURE__ */ u({
|
|
585
|
+
__name: "Search",
|
|
586
|
+
setup(e) {
|
|
587
|
+
return (e, t) => (x(), i("svg", Re, [...t[0] ||= [a("path", {
|
|
588
|
+
d: "M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z",
|
|
589
|
+
"p-id": "8980"
|
|
590
|
+
}, null, -1)]]));
|
|
591
|
+
}
|
|
592
|
+
}), Be = {
|
|
593
|
+
style: {
|
|
594
|
+
width: "100%",
|
|
595
|
+
height: "100%"
|
|
596
|
+
},
|
|
597
|
+
viewBox: "0 0 1024 1024",
|
|
598
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
599
|
+
}, Ve = /* @__PURE__ */ u({
|
|
600
|
+
__name: "CloseBold",
|
|
601
|
+
setup(e) {
|
|
602
|
+
return (e, t) => (x(), i("svg", Be, [...t[0] ||= [a("path", {
|
|
603
|
+
d: "M512 476.25l256-256 33.75 33.75-256 256 256 256-33.75 33.75-256-256-256 256-33.75-33.75 256-256-256-256L256 220.25l256 256z",
|
|
604
|
+
fill: "currentColor"
|
|
605
|
+
}, null, -1)]]));
|
|
606
|
+
}
|
|
607
|
+
}), He = {}, Ue = {
|
|
608
|
+
style: {
|
|
609
|
+
width: "100%",
|
|
610
|
+
height: "100%"
|
|
611
|
+
},
|
|
612
|
+
viewBox: "0 0 1024 1024",
|
|
613
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
614
|
+
};
|
|
615
|
+
function We(e, t) {
|
|
616
|
+
return x(), i("svg", Ue, [...t[0] ||= [a("path", {
|
|
617
|
+
d: "M557.8 512l248.3-248.3c18.8-18.8 18.8-49.6 0-68.8-18.8-18.8-49.6-18.8-68.8 0L512 443.2 263.7 194.9c-18.8-18.8-49.6-18.8-68.8 0-18.8 18.8-18.8 49.6 0 68.8L443.2 512 194.9 760.3c-18.8 18.8-18.8 49.6 0 68.8 18.8 18.8 49.6 18.8 68.8 0L512 580.8l248.3 248.3c18.8 18.8 49.6 18.8 68.8 0 18.8-18.8 18.8-49.6 0-68.8L557.8 512z",
|
|
618
|
+
fill: "currentColor"
|
|
619
|
+
}, null, -1)]]);
|
|
620
|
+
}
|
|
621
|
+
var Ge = /* @__PURE__ */ H(He, [["render", We]]), Ke = {
|
|
622
|
+
style: {
|
|
623
|
+
width: "100%",
|
|
624
|
+
height: "100%"
|
|
625
|
+
},
|
|
626
|
+
t: "1779703362484",
|
|
627
|
+
class: "icon",
|
|
628
|
+
viewBox: "0 0 1024 1024",
|
|
629
|
+
version: "1.1",
|
|
630
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
631
|
+
"p-id": "10092"
|
|
632
|
+
}, qe = /* @__PURE__ */ u({
|
|
633
|
+
__name: "User",
|
|
634
|
+
setup(e) {
|
|
635
|
+
return (e, t) => (x(), i("svg", Ke, [...t[0] ||= [a("path", {
|
|
636
|
+
d: "M512 512c141.385 0 256-114.615 256-256S653.385 0 512 0 256 114.615 256 256s114.615 256 256 256zM366.336 110.336C405.244 71.428 456.976 50 512 50s106.756 21.428 145.664 60.336S718 200.976 718 256s-21.428 106.756-60.336 145.664S567.024 462 512 462s-106.756-21.428-145.664-60.336S306 311.024 306 256s21.428-106.756 60.336-145.664z",
|
|
637
|
+
fill: "#999999",
|
|
638
|
+
"p-id": "10093"
|
|
639
|
+
}, null, -1), a("path", {
|
|
640
|
+
d: "M716.903 474C669.947 527.911 590.06 562.11 512 562.11S354.053 527.911 307.097 474C184.731 524.207 112 620.226 112 730.426 112 892.563 291.087 1024 512 1024c220.914 0 400-131.438 400-293.574 0-110.2-72.731-206.22-195.097-256.426z m48.356 423.705c-32.252 23.672-70.063 42.335-112.384 55.473C608.365 966.994 560.969 974 512 974c-48.968 0-96.365-7.006-140.874-20.822-42.321-13.138-80.132-31.801-112.384-55.473C196.357 851.919 162 792.512 162 730.426c0-21.672 3.545-42.928 10.538-63.177 6.961-20.159 17.368-39.432 30.933-57.281 22.865-30.09 54.718-56.024 93.187-76.069C353.356 582.787 432.632 612.11 512 612.11c79.367 0 158.644-29.323 215.342-78.212 38.469 20.044 70.321 45.979 93.188 76.068 13.564 17.851 23.972 37.123 30.933 57.282 6.992 20.25 10.537 41.506 10.537 63.178 0 62.086-34.356 121.493-96.741 167.279z",
|
|
641
|
+
fill: "#999999",
|
|
642
|
+
"p-id": "10094"
|
|
643
|
+
}, null, -1)]]));
|
|
644
|
+
}
|
|
645
|
+
}), Je = {}, Ye = {
|
|
646
|
+
style: {
|
|
647
|
+
width: "100%",
|
|
648
|
+
height: "100%"
|
|
649
|
+
},
|
|
650
|
+
t: "1779705400881",
|
|
651
|
+
class: "icon",
|
|
652
|
+
viewBox: "0 0 1152 1024",
|
|
653
|
+
version: "1.1",
|
|
654
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
655
|
+
"p-id": "11055"
|
|
656
|
+
};
|
|
657
|
+
function Xe(e, t) {
|
|
658
|
+
return x(), i("svg", Ye, [...t[0] ||= [a("path", {
|
|
659
|
+
d: "M489.244444 489.244444v295.822223c0 18.850702-15.282631 34.133333-34.133333 34.133333s-34.133333-15.282631-34.133333-34.133333v-295.822223h-295.822222c-18.850702 0-34.133333-15.282631-34.133334-34.133333s15.282631-34.133333 34.133334-34.133333h295.822222v-295.822222c0-18.850702 15.282631-34.133333 34.133333-34.133334s34.133333 15.282631 34.133333 34.133334v295.822222h295.822223c18.850702 0 34.133333 15.282631 34.133333 34.133333s-15.282631 34.133333-34.133333 34.133333h-295.822223z",
|
|
660
|
+
fill: "#323233",
|
|
661
|
+
"p-id": "11056"
|
|
662
|
+
}, null, -1)]]);
|
|
663
|
+
}
|
|
664
|
+
var Ze = /* @__PURE__ */ H(Je, [["render", Xe]]), Qe = {}, $e = {
|
|
665
|
+
style: {
|
|
666
|
+
width: "100%",
|
|
667
|
+
height: "100%"
|
|
668
|
+
},
|
|
669
|
+
t: "1780452902655",
|
|
670
|
+
class: "icon",
|
|
671
|
+
viewBox: "0 0 1027 1024",
|
|
672
|
+
version: "1.1",
|
|
673
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
674
|
+
"p-id": "4743"
|
|
675
|
+
};
|
|
676
|
+
function et(e, t) {
|
|
677
|
+
return x(), i("svg", $e, [...t[0] ||= [
|
|
678
|
+
a("path", {
|
|
679
|
+
d: "M513.066667 1024c-136.533333 0-264.533333-51.2-362.666667-149.333333-200.533333-200.533333-200.533333-524.8 0-725.333333C248.533333 51.2 376.533333 0 513.066667 0s264.533333 51.2 362.666667 149.333333c200.533333 200.533333 200.533333 524.8 0 725.333333C777.6 972.8 649.6 1024 513.066667 1024zM513.066667 85.333333C397.866667 85.333333 291.2 128 210.133333 209.066667 43.733333 375.466667 43.733333 648.533333 210.133333 814.933333 291.2 896 397.866667 938.666667 513.066667 938.666667s221.866667-42.666667 302.933333-123.733333c166.4-166.4 166.4-435.2 0-601.6C734.933333 128 628.266667 85.333333 513.066667 85.333333z",
|
|
680
|
+
"p-id": "4744",
|
|
681
|
+
fill: "#707070"
|
|
682
|
+
}, null, -1),
|
|
683
|
+
a("path", {
|
|
684
|
+
d: "M513.066667 768c-25.6 0-42.666667-17.066667-42.666667-42.666667L470.4 298.666667c0-25.6 17.066667-42.666667 42.666667-42.666667s42.666667 17.066667 42.666667 42.666667l0 426.666667C555.733333 750.933333 538.666667 768 513.066667 768z",
|
|
685
|
+
"p-id": "4745",
|
|
686
|
+
fill: "#707070"
|
|
687
|
+
}, null, -1),
|
|
688
|
+
a("path", {
|
|
689
|
+
d: "M726.4 554.666667 299.733333 554.666667c-25.6 0-42.666667-17.066667-42.666667-42.666667s17.066667-42.666667 42.666667-42.666667l426.666667 0c25.6 0 42.666667 17.066667 42.666667 42.666667S752 554.666667 726.4 554.666667z",
|
|
690
|
+
"p-id": "4746",
|
|
691
|
+
fill: "#707070"
|
|
692
|
+
}, null, -1)
|
|
693
|
+
]]);
|
|
694
|
+
}
|
|
695
|
+
var tt = /* @__PURE__ */ H(Qe, [["render", et]]), nt = {}, rt = {
|
|
696
|
+
style: {
|
|
697
|
+
width: "100%",
|
|
698
|
+
height: "100%"
|
|
699
|
+
},
|
|
700
|
+
t: "1779754328342",
|
|
701
|
+
class: "icon",
|
|
702
|
+
viewBox: "0 0 1024 1024",
|
|
703
|
+
version: "1.1",
|
|
704
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
705
|
+
"p-id": "4859"
|
|
706
|
+
};
|
|
707
|
+
function it(e, t) {
|
|
708
|
+
return x(), i("svg", rt, [...t[0] ||= [a("path", {
|
|
709
|
+
d: "M731.733333 480l-384-341.333333c-17.066667-14.933333-44.8-14.933333-59.733333 4.266666-14.933333 17.066667-14.933333 44.8 4.266667 59.733334L640 512 292.266667 821.333333c-17.066667 14.933333-19.2 42.666667-4.266667 59.733334 8.533333 8.533333 19.2 14.933333 32 14.933333 10.666667 0 19.2-4.266667 27.733333-10.666667l384-341.333333c8.533333-8.533333 14.933333-19.2 14.933334-32s-4.266667-23.466667-14.933334-32z",
|
|
710
|
+
fill: "#666666",
|
|
711
|
+
"p-id": "4860"
|
|
712
|
+
}, null, -1)]]);
|
|
713
|
+
}
|
|
714
|
+
var at = /* @__PURE__ */ H(nt, [["render", it]]), ot = {}, st = {
|
|
715
|
+
style: {
|
|
716
|
+
width: "100%",
|
|
717
|
+
height: "100%"
|
|
718
|
+
},
|
|
719
|
+
t: "1779754450238",
|
|
720
|
+
class: "icon",
|
|
721
|
+
viewBox: "0 0 1024 1024",
|
|
722
|
+
version: "1.1",
|
|
723
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
724
|
+
"p-id": "6029"
|
|
725
|
+
};
|
|
726
|
+
function ct(e, t) {
|
|
727
|
+
return x(), i("svg", st, [...t[0] ||= [a("path", {
|
|
728
|
+
d: "M897.96 728.3c-18.8 18.8-49.1 18.801-67.901 0l-318-318-318 318c-18.8 18.8-49.2 18.8-67.901 0-18.8-18.8-18.801-49.1 0-67.901l352-352c18.8-18.8 49.2-18.8 67.901 0l352 352c9.4 9.4 14 21.7 14 34-0.1 12.2-4.7 24.501-14.1 33.9z",
|
|
729
|
+
"p-id": "6030"
|
|
730
|
+
}, null, -1)]]);
|
|
731
|
+
}
|
|
732
|
+
var lt = /* @__PURE__ */ H(ot, [["render", ct]]), ut = {}, dt = {
|
|
733
|
+
style: {
|
|
734
|
+
width: "100%",
|
|
735
|
+
height: "100%"
|
|
736
|
+
},
|
|
737
|
+
t: "1779754522950",
|
|
738
|
+
class: "icon",
|
|
739
|
+
viewBox: "0 0 1024 1024",
|
|
740
|
+
version: "1.1",
|
|
741
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
742
|
+
"p-id": "6997"
|
|
743
|
+
};
|
|
744
|
+
function ft(e, t) {
|
|
745
|
+
return x(), i("svg", dt, [...t[0] ||= [a("path", {
|
|
746
|
+
d: "M512.34133333 931.38488889c-49.94844445 0-98.87288889-8.64711111-145.29422222-25.82755556-44.94222222-16.61155555-86.35733333-40.61866667-123.22133333-71.45244444-74.29688889-61.89511111-125.15555555-148.02488889-143.24622223-242.34666667l71.45244445-13.76711111c31.28888889 162.58844445 174.42133333 280.576 340.30933333 280.576 70.08711111 0 137.55733333-20.82133333 195.12888889-60.07466666 56.32-38.45688889 99.66933333-91.93244445 125.49688889-154.73777778l67.35644444 27.648c-31.28888889 76.00355555-83.74044445 140.74311111-151.77955555 187.16444444-69.85955555 47.67288889-151.43822222 72.81777778-236.20266667 72.81777778zM846.848 421.43288889C827.392 349.29777778 783.92888889 284.33066667 724.65066667 238.13688889c-61.21244445-47.55911111-134.59911111-72.704-212.30933334-72.704-69.97333333 0-137.44355555 20.70755555-194.90133333 59.96088889-56.32 38.57066667-99.78311111 91.93244445-125.61066667 154.624l-67.35644444-27.76177778c31.28888889-75.88977778 83.74044445-140.40177778 151.77955556-186.82311111 69.74577778-47.55911111 151.32444445-72.704 235.9751111-72.704 47.33155555 0 93.86666667 7.85066667 138.12622223 23.32444444 42.89422222 14.90488889 82.83022222 36.75022222 118.784 64.62577778 35.61244445 27.648 66.33244445 60.64355555 91.47733333 98.07644444 25.48622222 38.00177778 44.48711111 79.64444445 56.32 123.67644445l-70.08711111 19.00088889z",
|
|
747
|
+
"p-id": "6998"
|
|
748
|
+
}, null, -1), a("path", {
|
|
749
|
+
d: "M30.26488889 669.35466667l93.52533333-162.58844445 162.58844445 93.52533333M997.71733333 345.20177778l-83.28533333 168.16355555-168.16355555-83.17155555",
|
|
750
|
+
"p-id": "6999"
|
|
751
|
+
}, null, -1)]]);
|
|
752
|
+
}
|
|
753
|
+
var pt = /* @__PURE__ */ H(ut, [["render", ft]]), mt = {}, ht = {
|
|
754
|
+
style: {
|
|
755
|
+
width: "100%",
|
|
756
|
+
height: "100%"
|
|
757
|
+
},
|
|
758
|
+
t: "1779754755766",
|
|
759
|
+
class: "icon",
|
|
760
|
+
viewBox: "0 0 1024 1024",
|
|
761
|
+
version: "1.1",
|
|
762
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
763
|
+
"p-id": "9850"
|
|
764
|
+
};
|
|
765
|
+
function gt(e, t) {
|
|
766
|
+
return x(), i("svg", ht, [...t[0] ||= [a("path", {
|
|
767
|
+
d: "M64 448l832-320-128 704-446.016-243.008L832 192 243.008 544.96 64 448z m256 512v-303.04L512 768l-192 192z",
|
|
768
|
+
"p-id": "9851"
|
|
769
|
+
}, null, -1)]]);
|
|
770
|
+
}
|
|
771
|
+
var _t = /* @__PURE__ */ H(mt, [["render", gt]]), vt = {}, yt = {
|
|
772
|
+
style: {
|
|
773
|
+
width: "100%",
|
|
774
|
+
height: "100%"
|
|
775
|
+
},
|
|
776
|
+
t: "1780036867825",
|
|
777
|
+
class: "icon",
|
|
778
|
+
viewBox: "0 0 1024 1024",
|
|
779
|
+
version: "1.1",
|
|
780
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
781
|
+
"p-id": "2958"
|
|
782
|
+
};
|
|
783
|
+
function bt(e, t) {
|
|
784
|
+
return x(), i("svg", yt, [...t[0] ||= [a("path", {
|
|
785
|
+
d: "M512 97.52381c228.912762 0 414.47619 185.563429 414.47619 414.47619s-185.563429 414.47619-414.47619 414.47619S97.52381 740.912762 97.52381 512 283.087238 97.52381 512 97.52381z m0 73.142857C323.486476 170.666667 170.666667 323.486476 170.666667 512s152.81981 341.333333 341.333333 341.333333 341.333333-152.81981 341.333333-341.333333S700.513524 170.666667 512 170.666667z m36.571429 268.190476v292.571428h-73.142858V438.857143h73.142858z m0-121.904762v73.142857h-73.142858v-73.142857h73.142858z",
|
|
786
|
+
"p-id": "2959"
|
|
787
|
+
}, null, -1)]]);
|
|
788
|
+
}
|
|
789
|
+
var xt = /* @__PURE__ */ H(vt, [["render", bt]]), St = {}, Ct = {
|
|
790
|
+
style: {
|
|
791
|
+
width: "100%",
|
|
792
|
+
height: "100%"
|
|
793
|
+
},
|
|
794
|
+
viewBox: "0 0 1024 1024",
|
|
795
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
796
|
+
};
|
|
797
|
+
function wt(e, t) {
|
|
798
|
+
return x(), i("svg", Ct, [...t[0] ||= [a("path", {
|
|
799
|
+
d: "M512 0C228.4 0 0 228.4 0 512s228.4 512 512 512 512-228.4 512-512S795.6 0 512 0zm263.5 371.2l-317.1 317.1c-12.5 12.5-32.8 12.5-45.3 0L187.9 452.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l194.2 194.2 292.9-292.9c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-338.1 338.2z",
|
|
800
|
+
fill: "currentColor"
|
|
801
|
+
}, null, -1)]]);
|
|
802
|
+
}
|
|
803
|
+
var Tt = /* @__PURE__ */ H(St, [["render", wt]]), Et = {}, Dt = {
|
|
804
|
+
style: {
|
|
805
|
+
width: "100%",
|
|
806
|
+
height: "100%"
|
|
807
|
+
},
|
|
808
|
+
viewBox: "0 0 1024 1024",
|
|
809
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
810
|
+
};
|
|
811
|
+
function Ot(e, t) {
|
|
812
|
+
return x(), i("svg", Dt, [...t[0] ||= [a("path", {
|
|
813
|
+
d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",
|
|
814
|
+
fill: "currentColor"
|
|
815
|
+
}, null, -1), a("path", {
|
|
816
|
+
d: "M512 688c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-32-352h64v224h-64V336z",
|
|
817
|
+
fill: "currentColor"
|
|
818
|
+
}, null, -1)]]);
|
|
819
|
+
}
|
|
820
|
+
var kt = /* @__PURE__ */ H(Et, [["render", Ot]]), At = {}, jt = {
|
|
821
|
+
style: {
|
|
822
|
+
width: "100%",
|
|
823
|
+
height: "100%"
|
|
824
|
+
},
|
|
825
|
+
viewBox: "0 0 1024 1024",
|
|
826
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
827
|
+
};
|
|
828
|
+
function Mt(e, t) {
|
|
829
|
+
return x(), i("svg", jt, [...t[0] ||= [a("path", {
|
|
830
|
+
d: "M512 89.6c-235.2 0-425.6 190.4-425.6 425.6S276.8 940.8 512 940.8 937.6 750.4 937.6 515.2 747.2 89.6 512 89.6zm217.6 585.6c18.8 18.8 18.8 49.6 0 68.8-18.8 18.8-49.6 18.8-68.8 0L512 594.8 363.2 744c-18.8 18.8-49.6 18.8-68.8 0-18.8-18.8-18.8-49.6 0-68.8l148.8-148.8L294.4 377.6c-18.8-18.8-18.8-49.6 0-68.8 18.8-18.8 49.6-18.8 68.8 0l148.8 148.8L660.8 308.8c18.8-18.8 49.6-18.8 68.8 0 18.8 18.8 18.8 49.6 0 68.8L580.8 526.4l148.8 148.8z",
|
|
831
|
+
fill: "currentColor"
|
|
832
|
+
}, null, -1)]]);
|
|
833
|
+
}
|
|
834
|
+
var Nt = /* @__PURE__ */ H(At, [["render", Mt]]), Pt = {}, Ft = {
|
|
835
|
+
style: {
|
|
836
|
+
width: "100%",
|
|
837
|
+
height: "100%"
|
|
838
|
+
},
|
|
839
|
+
viewBox: "0 0 1024 1024",
|
|
840
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
841
|
+
};
|
|
842
|
+
function It(e, t) {
|
|
843
|
+
return x(), i("svg", Ft, [...t[0] ||= [a("path", {
|
|
844
|
+
d: "M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm56 768H456V456h112v312zm0-400H456V264h112v104z",
|
|
845
|
+
fill: "currentColor"
|
|
846
|
+
}, null, -1)]]);
|
|
847
|
+
}
|
|
848
|
+
var Lt = /* @__PURE__ */ H(Pt, [["render", It]]), Rt = {}, zt = {
|
|
849
|
+
style: {
|
|
850
|
+
width: "100%",
|
|
851
|
+
height: "100%"
|
|
852
|
+
},
|
|
853
|
+
t: "1780037293881",
|
|
854
|
+
class: "icon",
|
|
855
|
+
viewBox: "0 0 1024 1024",
|
|
856
|
+
version: "1.1",
|
|
857
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
858
|
+
"p-id": "5846"
|
|
859
|
+
};
|
|
860
|
+
function Bt(e, t) {
|
|
861
|
+
return x(), i("svg", zt, [...t[0] ||= [a("path", {
|
|
862
|
+
d: "M768.73106 703.537712c-35.606921 0-67.945574 14.793214-91.167479 38.359147l-309.109357-171.670082c9.116748-17.545439 14.621199-37.155048 14.621199-58.312783 0-12.55703-2.408198-24.426004-5.676466-35.950949l304.63699-189.215522c22.705863 20.469679 52.464304 33.198723 85.146985 33.198723 70.525785 0 127.978498-57.452713 127.978498-127.978498S837.708718 63.989249 767.182933 63.989249s-127.978498 57.452713-127.978498 127.978498c0 14.621199 2.92424 28.382328 7.396607 41.455401L344.716278 420.746514c-23.049891-22.705863-54.700487-36.983034-89.791366-36.983034-70.525785 0-127.978498 57.452713-127.978498 127.978498s57.452713 127.978498 127.978498 127.978498c25.630102 0 49.540064-7.740635 69.493701-20.813707l321.150344 178.378633c-3.096254 11.008903-5.160423 22.18982-5.160423 34.058794 0 70.525785 57.452713 127.978498 127.978498 127.978498s127.978498-57.452713 127.978498-127.978498S839.256845 703.537712 768.73106 703.537712zM767.182933 127.978498c35.262893 0 63.989249 28.726356 63.989249 63.989249s-28.726356 63.989249-63.989249 63.989249-63.989249-28.726356-63.989249-63.989249S731.92004 127.978498 767.182933 127.978498zM191.107677 511.913993c0-35.262893 28.726356-63.989249 63.989249-63.989249s63.989249 28.726356 63.989249 63.989249-28.726356 63.989249-63.989249 63.989249S191.107677 547.176886 191.107677 511.913993zM768.73106 895.505459c-35.262893 0-63.989249-28.726356-63.989249-63.989249s28.726356-63.989249 63.989249-63.989249 63.989249 28.726356 63.989249 63.989249C832.720309 866.951117 803.993953 895.505459 768.73106 895.505459z",
|
|
863
|
+
fill: "#575B66",
|
|
864
|
+
"p-id": "5847"
|
|
865
|
+
}, null, -1)]]);
|
|
866
|
+
}
|
|
867
|
+
var Vt = /* @__PURE__ */ H(Rt, [["render", Bt]]), Ht = {}, Ut = {
|
|
868
|
+
style: {
|
|
869
|
+
width: "100%",
|
|
870
|
+
height: "100%"
|
|
871
|
+
},
|
|
872
|
+
t: "1780037548768",
|
|
873
|
+
class: "icon",
|
|
874
|
+
viewBox: "0 0 1024 1024",
|
|
875
|
+
version: "1.1",
|
|
876
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
877
|
+
"p-id": "7726"
|
|
878
|
+
};
|
|
879
|
+
function Wt(e, t) {
|
|
880
|
+
return x(), i("svg", Ut, [...t[0] ||= [a("path", {
|
|
881
|
+
d: "M501.84 393.44h16a16 16 0 0 1 16 16v151.584a16 16 0 0 1-6.768 13.072l-84.928 59.952a16 16 0 0 1-22.304-3.84l-9.216-13.072a16 16 0 0 1 3.84-22.304l71.376-50.4V409.44a16 16 0 0 1 16-16z m3.552 458.96C332.304 852.4 192 712.08 192 539.008s140.32-313.392 313.392-313.392c173.088 0 313.392 140.32 313.392 313.392 0 173.088-140.32 313.392-313.392 313.392z m0-48c146.56 0 265.392-118.816 265.392-265.392 0-146.56-118.816-265.392-265.392-265.392-146.56 0-265.392 118.832-265.392 265.392 0 146.576 118.816 265.392 265.392 265.392z m-100.288-617.6l4.752 17.36c4.224 13.632-4.48 17.712-8.784 19.088a333.824 333.824 0 0 0-156.72 106.448c-4.032 4.912-11.408 13.952-26.24 4.528l-11.952-8.688c-11.472-9.088-5.648-17.904-2.176-22.24a381.792 381.792 0 0 1 183.44-126.08c4.608-1.456 13.968-3.344 17.68 9.568z m396.768 137.376l-13.184 9.696c-13.04 8.912-19.84 0.48-23.424-3.904a333.84 333.84 0 0 0-155.12-106.032c-5.44-1.76-15.936-5.376-11.664-23.04l3.728-13.856c5.104-14.64 15.328-11.136 21.008-9.328a381.808 381.808 0 0 1 180.608 123.6c3.616 4.48 11.136 14.288-1.952 22.864z",
|
|
882
|
+
fill: "#000000",
|
|
883
|
+
"p-id": "7727"
|
|
884
|
+
}, null, -1)]]);
|
|
885
|
+
}
|
|
886
|
+
var Gt = /* @__PURE__ */ H(Ht, [["render", Wt]]), Kt = {}, qt = {
|
|
887
|
+
style: {
|
|
888
|
+
width: "100%",
|
|
889
|
+
height: "100%"
|
|
890
|
+
},
|
|
891
|
+
t: "1780038539022",
|
|
892
|
+
class: "icon",
|
|
893
|
+
viewBox: "0 0 1024 1024",
|
|
894
|
+
version: "1.1",
|
|
895
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
896
|
+
"p-id": "8719"
|
|
897
|
+
};
|
|
898
|
+
function Jt(e, t) {
|
|
899
|
+
return x(), i("svg", qt, [...t[0] ||= [a("path", {
|
|
900
|
+
d: "M938.666667 682.666667c-46.933333 0-85.333333-38.4-85.333334-85.333334V384c0-187.733333-153.6-341.333333-341.333333-341.333333S170.666667 196.266667 170.666667 384v213.333333c0 46.933333-38.4 85.333333-85.333334 85.333334-25.6 0-42.666667 17.066667-42.666666 42.666666s17.066667 42.666667 42.666666 42.666667h853.333334c25.6 0 42.666667-17.066667 42.666666-42.666667s-17.066667-42.666667-42.666666-42.666666zM234.666667 682.666667c12.8-25.6 21.333333-55.466667 21.333333-85.333334V384c0-140.8 115.2-256 256-256s256 115.2 256 256v213.333333c0 29.866667 8.533333 59.733333 21.333333 85.333334h-554.666666zM605.866667 857.6c-21.333333-12.8-46.933333-4.266667-59.733334 17.066667-4.266667 12.8-17.066667 21.333333-34.133333 21.333333s-29.866667-8.533333-38.4-21.333333c-12.8-21.333333-38.4-25.6-59.733333-17.066667-21.333333 12.8-25.6 38.4-17.066667 59.733333 34.133333 59.733333 115.2 81.066667 174.933333 46.933334 17.066667-12.8 34.133333-25.6 46.933334-46.933334 17.066667-21.333333 8.533333-46.933333-12.8-59.733333z",
|
|
901
|
+
"p-id": "8720"
|
|
902
|
+
}, null, -1)]]);
|
|
903
|
+
}
|
|
904
|
+
var Yt = /* @__PURE__ */ H(Kt, [["render", Jt]]), Xt = {}, Zt = {
|
|
905
|
+
style: {
|
|
906
|
+
width: "100%",
|
|
907
|
+
height: "100%"
|
|
908
|
+
},
|
|
909
|
+
t: "1780571550434",
|
|
910
|
+
class: "icon",
|
|
911
|
+
viewBox: "0 0 1024 1024",
|
|
912
|
+
version: "1.1",
|
|
913
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
914
|
+
"p-id": "5037"
|
|
915
|
+
};
|
|
916
|
+
function Qt(e, t) {
|
|
917
|
+
return x(), i("svg", Zt, [...t[0] ||= [a("path", {
|
|
918
|
+
d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326z m1.8 562H232V136h302v216c0 23.2 18.8 42 42 42h216v494z",
|
|
919
|
+
"p-id": "5038",
|
|
920
|
+
fill: "#8a8a8a"
|
|
921
|
+
}, null, -1)]]);
|
|
922
|
+
}
|
|
923
|
+
var $t = /* @__PURE__ */ H(Xt, [["render", Qt]]), en = {}, tn = {
|
|
924
|
+
style: {
|
|
925
|
+
width: "100%",
|
|
926
|
+
height: "100%"
|
|
927
|
+
},
|
|
928
|
+
viewBox: "0 0 1024 1024",
|
|
929
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
930
|
+
};
|
|
931
|
+
function nn(e, t) {
|
|
932
|
+
return x(), i("svg", tn, [...t[0] ||= [a("path", {
|
|
933
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832A384 384 0 1 0 128 512a384 384 0 0 0 384 384zm0-352a32 32 0 0 1 0 64 32 32 0 0 1 0-64zm0 192a32 32 0 0 1 0 64 32 32 0 0 1 0-64z",
|
|
934
|
+
fill: "currentColor"
|
|
935
|
+
}, null, -1)]]);
|
|
936
|
+
}
|
|
937
|
+
var rn = /* @__PURE__ */ H(en, [["render", nn]]), an = {}, on = {
|
|
938
|
+
style: {
|
|
939
|
+
width: "100%",
|
|
940
|
+
height: "100%"
|
|
941
|
+
},
|
|
942
|
+
viewBox: "0 0 1024 1024",
|
|
943
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
944
|
+
};
|
|
945
|
+
function sn(e, t) {
|
|
946
|
+
return x(), i("svg", on, [...t[0] ||= [a("path", {
|
|
947
|
+
d: "M512 0C264.6 0 64 200.6 64 448s200.6 448 448 448 448-200.6 448-448S759.4 0 512 0zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z",
|
|
948
|
+
fill: "currentColor"
|
|
949
|
+
}, null, -1)]]);
|
|
950
|
+
}
|
|
951
|
+
var cn = /* @__PURE__ */ H(an, [["render", sn]]), ln = /* @__PURE__ */ V({
|
|
952
|
+
ArrowRight: () => at,
|
|
953
|
+
ArrowUp: () => lt,
|
|
954
|
+
Bell: () => Yt,
|
|
955
|
+
CheckCircle: () => cn,
|
|
956
|
+
Clock: () => Gt,
|
|
957
|
+
Close: () => Ge,
|
|
958
|
+
CloseBold: () => Ve,
|
|
959
|
+
Error: () => Nt,
|
|
960
|
+
File: () => $t,
|
|
961
|
+
Info: () => xt,
|
|
962
|
+
Loading: () => rn,
|
|
963
|
+
Message: () => Lt,
|
|
964
|
+
Plus: () => Ze,
|
|
965
|
+
PlusCircle: () => tt,
|
|
966
|
+
Promotion: () => _t,
|
|
967
|
+
Refresh: () => pt,
|
|
968
|
+
Search: () => ze,
|
|
969
|
+
Share: () => Vt,
|
|
970
|
+
Success: () => Tt,
|
|
971
|
+
User: () => qe,
|
|
972
|
+
Warning: () => kt,
|
|
973
|
+
YcIcon: () => Le
|
|
974
|
+
});
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region src/components/utils/tools.ts
|
|
977
|
+
function un(e) {
|
|
978
|
+
return typeof e == "number" ? e + "px" : e || "100px";
|
|
979
|
+
}
|
|
980
|
+
function dn(e) {
|
|
981
|
+
return typeof e == "number" ? e + "px" : e || "180px";
|
|
982
|
+
}
|
|
983
|
+
function G(e, t) {
|
|
984
|
+
let n = Object.fromEntries(Object.entries(je).map(([n, r]) => [n, (i = {}) => ({
|
|
985
|
+
props: {
|
|
986
|
+
data: t,
|
|
987
|
+
prop: e.prop,
|
|
988
|
+
...i
|
|
989
|
+
},
|
|
990
|
+
type: n,
|
|
991
|
+
component: r
|
|
992
|
+
})]));
|
|
993
|
+
return typeof e.render == "function" ? e.render({
|
|
994
|
+
h: n,
|
|
995
|
+
data: t
|
|
996
|
+
}) : n.input({ prop: e.prop });
|
|
997
|
+
}
|
|
998
|
+
function K(e, t) {
|
|
999
|
+
let n = e.prop;
|
|
1000
|
+
n && typeof t == "object" && t && t[n];
|
|
1001
|
+
let r = G(e, t);
|
|
1002
|
+
return typeof r != "object" || !r ? r ?? "" : (r.component, r);
|
|
1003
|
+
}
|
|
1004
|
+
function fn(e) {
|
|
1005
|
+
return e.map((e) => {
|
|
1006
|
+
let t = {
|
|
1007
|
+
label: e.label,
|
|
1008
|
+
prop: e.prop
|
|
1009
|
+
};
|
|
1010
|
+
return e.type === "index" || e.type === "selection" || e.type !== "input" && e.attrs && (t.render = ({ h: t }) => t[e.type]({ ...e.attrs })), t;
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
//#endregion
|
|
1014
|
+
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
1015
|
+
var pn = { style: {
|
|
1016
|
+
display: "flex",
|
|
1017
|
+
"justify-content": "end",
|
|
1018
|
+
"align-items": "center",
|
|
1019
|
+
width: "100%"
|
|
1020
|
+
} }, mn = /* @__PURE__ */ u({
|
|
1021
|
+
name: "UiDefaultFilter",
|
|
1022
|
+
__name: "index",
|
|
1023
|
+
props: {
|
|
1024
|
+
type: {},
|
|
1025
|
+
size: { default: "default" },
|
|
1026
|
+
fields: {},
|
|
1027
|
+
expandNum: {},
|
|
1028
|
+
valueWidth: { default: "100%" },
|
|
1029
|
+
labelWidth: { default: "100px" },
|
|
1030
|
+
labelPosition: { default: "right" },
|
|
1031
|
+
omitFields: { default: () => [] },
|
|
1032
|
+
rules: {},
|
|
1033
|
+
required: { type: Boolean },
|
|
1034
|
+
column: { default: 4 },
|
|
1035
|
+
filterFixedValues: { default: () => ({ page: 1 }) }
|
|
1036
|
+
},
|
|
1037
|
+
emits: [
|
|
1038
|
+
"submit",
|
|
1039
|
+
"reset",
|
|
1040
|
+
"search"
|
|
1041
|
+
],
|
|
1042
|
+
setup(s, { emit: u }) {
|
|
1043
|
+
ee((e) => ({ v36e2daa1: b.value }));
|
|
1044
|
+
let d = u, f = o(s, [
|
|
1045
|
+
"fields",
|
|
1046
|
+
"labelWidth",
|
|
1047
|
+
"valueWidth",
|
|
1048
|
+
"omitFields",
|
|
1049
|
+
"column",
|
|
1050
|
+
"size",
|
|
1051
|
+
"labelPosition",
|
|
1052
|
+
"filterFixedValues"
|
|
1053
|
+
]), p = S({
|
|
1054
|
+
expandNum: 0,
|
|
1055
|
+
expand: !1
|
|
1056
|
+
}), m = S({}), g = t(() => s.fields.slice(0, p.expand ? s.fields.length : p.expandNum)), _ = t(() => 24 - g.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column), b = t(() => s.labelPosition === "top" ? "5px" : "20px");
|
|
1057
|
+
y(() => {
|
|
1058
|
+
p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
|
|
1059
|
+
let t = G(e, m)?.props?.defaultValue;
|
|
1060
|
+
t !== void 0 && (m[e.prop] = t);
|
|
1061
|
+
});
|
|
1062
|
+
});
|
|
1063
|
+
function C() {
|
|
1064
|
+
let e = {};
|
|
1065
|
+
Object.keys(m).forEach((t) => {
|
|
1066
|
+
let n = N(m[t]);
|
|
1067
|
+
e[t] = typeof n == "string" ? n.trim() : n;
|
|
1068
|
+
}), d("submit", {
|
|
1069
|
+
...e,
|
|
1070
|
+
...s.filterFixedValues
|
|
1071
|
+
}), d("search", {
|
|
1072
|
+
...e,
|
|
1073
|
+
...s.filterFixedValues
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
function D() {
|
|
1077
|
+
Object.keys(m).forEach((e) => {
|
|
1078
|
+
s.omitFields.includes(e) || (m[e] = void 0);
|
|
1079
|
+
}), d("reset", m);
|
|
1080
|
+
}
|
|
1081
|
+
return (t, o) => {
|
|
1082
|
+
let u = E("el-input"), d = E("el-form-item"), f = E("el-col"), y = E("el-button"), b = E("el-row"), S = E("el-form");
|
|
1083
|
+
return x(), n(S, h({
|
|
1084
|
+
model: m,
|
|
1085
|
+
class: "ui-filter",
|
|
1086
|
+
size: s.size,
|
|
1087
|
+
"label-position": s.labelPosition
|
|
1088
|
+
}, t.$attrs), {
|
|
1089
|
+
default: R(() => [l(b, {
|
|
1090
|
+
gutter: 20,
|
|
1091
|
+
style: { "margin-bottom": "-15px" }
|
|
1092
|
+
}, {
|
|
1093
|
+
default: R(() => [(x(!0), i(e, null, w(g.value, (e) => (x(), n(f, { span: e.span || 24 / s.column }, {
|
|
1094
|
+
default: R(() => [(x(), n(d, {
|
|
1095
|
+
key: e.prop,
|
|
1096
|
+
label: e.label,
|
|
1097
|
+
"label-width": P(un)(e?.labelWidth || s.labelWidth),
|
|
1098
|
+
"value-width": P(dn)(e?.valueWidth || s.valueWidth)
|
|
1099
|
+
}, {
|
|
1100
|
+
default: R(() => [e.render ? (x(), n(O(P(G)(e, m).component), h({
|
|
1101
|
+
key: 0,
|
|
1102
|
+
modelValue: m[e.prop],
|
|
1103
|
+
"onUpdate:modelValue": (t) => m[e.prop] = t
|
|
1104
|
+
}, { ref_for: !0 }, P(G)(e, m).props, {
|
|
1105
|
+
clearable: !0,
|
|
1106
|
+
style: { width: P(dn)(e?.valueWidth || s.valueWidth) }
|
|
1107
|
+
}), null, 16, [
|
|
1108
|
+
"modelValue",
|
|
1109
|
+
"onUpdate:modelValue",
|
|
1110
|
+
"style"
|
|
1111
|
+
])) : (x(), n(u, {
|
|
1112
|
+
key: 1,
|
|
1113
|
+
modelValue: m[e.prop],
|
|
1114
|
+
"onUpdate:modelValue": (t) => m[e.prop] = t,
|
|
1115
|
+
placeholder: "请输入",
|
|
1116
|
+
clearable: !0,
|
|
1117
|
+
style: v({ width: P(dn)(e?.valueWidth || s.valueWidth) })
|
|
1118
|
+
}, null, 8, [
|
|
1119
|
+
"modelValue",
|
|
1120
|
+
"onUpdate:modelValue",
|
|
1121
|
+
"style"
|
|
1122
|
+
]))]),
|
|
1123
|
+
_: 2
|
|
1124
|
+
}, 1032, [
|
|
1125
|
+
"label",
|
|
1126
|
+
"label-width",
|
|
1127
|
+
"value-width"
|
|
1128
|
+
]))]),
|
|
1129
|
+
_: 2
|
|
1130
|
+
}, 1032, ["span"]))), 256)), l(f, {
|
|
1131
|
+
span: 24 / s.column,
|
|
1132
|
+
offset: _.value
|
|
1133
|
+
}, {
|
|
1134
|
+
default: R(() => [l(d, {
|
|
1135
|
+
label: "\xA0",
|
|
1136
|
+
"label-width": "30px"
|
|
1137
|
+
}, {
|
|
1138
|
+
default: R(() => [a("div", pn, [
|
|
1139
|
+
s.fields.length >= 2 * s.column ? (x(), n(y, {
|
|
1140
|
+
key: 0,
|
|
1141
|
+
text: "",
|
|
1142
|
+
icon: p.expand ? P(lt) : P(at),
|
|
1143
|
+
onClick: o[0] ||= (e) => p.expand = !p.expand
|
|
1144
|
+
}, {
|
|
1145
|
+
default: R(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
|
|
1146
|
+
_: 1
|
|
1147
|
+
}, 8, ["icon"])) : r("", !0),
|
|
1148
|
+
l(y, {
|
|
1149
|
+
icon: P(ze),
|
|
1150
|
+
type: "primary",
|
|
1151
|
+
onClick: C
|
|
1152
|
+
}, {
|
|
1153
|
+
default: R(() => [...o[1] ||= [c("查询", -1)]]),
|
|
1154
|
+
_: 1
|
|
1155
|
+
}, 8, ["icon"]),
|
|
1156
|
+
l(y, {
|
|
1157
|
+
icon: P(pt),
|
|
1158
|
+
onClick: D
|
|
1159
|
+
}, {
|
|
1160
|
+
default: R(() => [...o[2] ||= [c("重置", -1)]]),
|
|
1161
|
+
_: 1
|
|
1162
|
+
}, 8, ["icon"]),
|
|
1163
|
+
T(t.$slots, "handle", { form: m }, void 0, !0)
|
|
1164
|
+
])]),
|
|
1165
|
+
_: 3
|
|
1166
|
+
})]),
|
|
1167
|
+
_: 3
|
|
1168
|
+
}, 8, ["span", "offset"])]),
|
|
1169
|
+
_: 3
|
|
1170
|
+
})]),
|
|
1171
|
+
_: 3
|
|
1172
|
+
}, 16, [
|
|
1173
|
+
"model",
|
|
1174
|
+
"size",
|
|
1175
|
+
"label-position"
|
|
1176
|
+
]);
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
}), hn = /* @__PURE__ */ V({ default: () => gn }), gn = /* @__PURE__ */ H(mn, [["__scopeId", "data-v-dc4ec6d3"]]), _n = {
|
|
1180
|
+
key: 2,
|
|
1181
|
+
style: { display: "inline-block" }
|
|
1182
|
+
}, vn = {
|
|
1183
|
+
key: 2,
|
|
1184
|
+
style: { display: "inline-block" }
|
|
1185
|
+
}, yn = {
|
|
1186
|
+
key: 0,
|
|
1187
|
+
class: "ui-form-buttons"
|
|
1188
|
+
}, bn = /* @__PURE__ */ u({
|
|
1189
|
+
__name: "index",
|
|
1190
|
+
props: {
|
|
1191
|
+
fields: {},
|
|
1192
|
+
expandNum: {},
|
|
1193
|
+
valueWidth: {},
|
|
1194
|
+
labelWidth: {},
|
|
1195
|
+
labelPosition: {},
|
|
1196
|
+
omitFields: {},
|
|
1197
|
+
rules: {},
|
|
1198
|
+
required: { type: Boolean },
|
|
1199
|
+
column: {},
|
|
1200
|
+
defaultValues: {},
|
|
1201
|
+
model: {},
|
|
1202
|
+
modelValue: {},
|
|
1203
|
+
valueModel: {},
|
|
1204
|
+
size: {}
|
|
1205
|
+
},
|
|
1206
|
+
emits: [
|
|
1207
|
+
"submit",
|
|
1208
|
+
"reset",
|
|
1209
|
+
"update:model",
|
|
1210
|
+
"update:modelValue"
|
|
1211
|
+
],
|
|
1212
|
+
setup(a, { expose: o, emit: s }) {
|
|
1213
|
+
ee((e) => ({ v7feff3ec: P(k) / 2 }));
|
|
1214
|
+
let u = s, d = a, { labelWidth: f = "100px", valueWidth: m = "auto", omitFields: g = [], rules: y = S({}), labelPosition: b = "top", valueModel: D = "default", column: k = 24 } = d, A = C(0), N = C(), F = t(() => d.modelValue !== void 0), te = S({}), I = t(() => F.value ? d.modelValue : d.model || te), L = t({
|
|
1215
|
+
get: () => I.value,
|
|
1216
|
+
set: (e) => F.value && u("update:model", e)
|
|
1217
|
+
}), z = t(() => M(d?.fields).filter((e) => typeof e.prop == "string")), ne = t(() => {
|
|
1218
|
+
let e = {};
|
|
1219
|
+
return z.value.forEach((t) => {
|
|
1220
|
+
let n = t.prop;
|
|
1221
|
+
y && y[n] ? e[n] = y[n] : t.rules && Object.keys(t.rules).length ? e[n] = t.rules : t.required && (e[n] = [{
|
|
1222
|
+
required: !0,
|
|
1223
|
+
message: `请输入${t.label}`,
|
|
1224
|
+
trigger: "change"
|
|
1225
|
+
}]);
|
|
1226
|
+
}), e;
|
|
1227
|
+
});
|
|
1228
|
+
async function B() {
|
|
1229
|
+
await N.value?.validate().catch(() => !1) && u("submit", M(I.value), () => se());
|
|
1230
|
+
}
|
|
1231
|
+
function re() {
|
|
1232
|
+
let e = {};
|
|
1233
|
+
Object.keys(I.value).forEach((t) => {
|
|
1234
|
+
g.includes(t) || (e[t] = void 0);
|
|
1235
|
+
}), Object.assign(I.value, e), A.value += 1, u("reset", M(I.value));
|
|
1236
|
+
}
|
|
1237
|
+
function ie() {
|
|
1238
|
+
return M(I.value);
|
|
1239
|
+
}
|
|
1240
|
+
function ae(e) {
|
|
1241
|
+
Object.assign(I.value, e);
|
|
1242
|
+
}
|
|
1243
|
+
function oe() {
|
|
1244
|
+
N.value?.clearValidate();
|
|
1245
|
+
}
|
|
1246
|
+
async function se() {
|
|
1247
|
+
return new Promise((e) => {
|
|
1248
|
+
N.value?.validate((t, n) => e(n));
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
return o({
|
|
1252
|
+
getValues: ie,
|
|
1253
|
+
setValues: ae,
|
|
1254
|
+
clearValidate: oe,
|
|
1255
|
+
onSubmit: B,
|
|
1256
|
+
validate: se
|
|
1257
|
+
}), (t, a) => {
|
|
1258
|
+
let o = E("el-input"), s = E("el-form-item"), u = E("el-form"), d = E("el-button");
|
|
1259
|
+
return x(), i(e, null, [l(u, h({
|
|
1260
|
+
ref_key: "uiFormRef",
|
|
1261
|
+
ref: N,
|
|
1262
|
+
model: L.value
|
|
1263
|
+
}, t.$attrs, {
|
|
1264
|
+
rules: ne.value,
|
|
1265
|
+
inline: P(b) !== "top",
|
|
1266
|
+
"label-position": P(b),
|
|
1267
|
+
class: {
|
|
1268
|
+
"ui-form": !0,
|
|
1269
|
+
horizontal: P(b) !== "top"
|
|
1270
|
+
},
|
|
1271
|
+
"validate-on-rule-change": !1
|
|
1272
|
+
}), {
|
|
1273
|
+
default: R(() => [(x(!0), i(e, null, w(z.value, (r, a) => (x(), n(s, {
|
|
1274
|
+
key: `${String(r.prop)}-${a}-${A.value}`,
|
|
1275
|
+
label: r.label,
|
|
1276
|
+
"label-width": P(f),
|
|
1277
|
+
"value-width": P(m),
|
|
1278
|
+
prop: r.prop,
|
|
1279
|
+
style: v({
|
|
1280
|
+
width: `${r?.width ? r?.width + "px" : "100%"}`,
|
|
1281
|
+
gridColumn: `span ${(r?.span || P(k)) / 2 || 1}`
|
|
1282
|
+
})
|
|
1283
|
+
}, {
|
|
1284
|
+
default: R(() => [r.render ? (x(), i(e, { key: 0 }, [p(P(K)(r, L.value)) ? (x(), n(O(P(K)(r, L.value)), {
|
|
1285
|
+
key: 0,
|
|
1286
|
+
style: { display: "inline-block" }
|
|
1287
|
+
})) : P(K)(r, L.value).component ? (x(), n(O(P(K)(r, L.value).component), h({
|
|
1288
|
+
key: 1,
|
|
1289
|
+
modelValue: L.value[r.prop],
|
|
1290
|
+
"onUpdate:modelValue": (e) => L.value[r.prop] = e
|
|
1291
|
+
}, { ref_for: !0 }, P(K)(r, L.value).props, {
|
|
1292
|
+
clearable: !0,
|
|
1293
|
+
key: `${String(r.prop)}-${A.value}`,
|
|
1294
|
+
style: { height: "100%" },
|
|
1295
|
+
class: { underline: P(D) === "underline" }
|
|
1296
|
+
}), null, 16, [
|
|
1297
|
+
"modelValue",
|
|
1298
|
+
"onUpdate:modelValue",
|
|
1299
|
+
"class"
|
|
1300
|
+
])) : (x(), i("span", _n, j(P(K)(r, L.value) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: L.value }, () => [p(P(K)(e, L.value)) ? (x(), n(O(P(K)(e, L.value)), {
|
|
1301
|
+
key: 0,
|
|
1302
|
+
style: { display: "inline-block" }
|
|
1303
|
+
})) : P(K)(e, L.value).component ? (x(), n(O(P(K)(e, L.value).component), h({
|
|
1304
|
+
key: 1,
|
|
1305
|
+
modelValue: L.value[e.prop],
|
|
1306
|
+
"onUpdate:modelValue": (t) => L.value[e.prop] = t,
|
|
1307
|
+
"default-value": e.defaultValue,
|
|
1308
|
+
placeholder: e.placeholder
|
|
1309
|
+
}, { ref_for: !0 }, P(K)(e, L.value).props, {
|
|
1310
|
+
style: {
|
|
1311
|
+
display: "inline-block",
|
|
1312
|
+
marginLeft: "10px",
|
|
1313
|
+
width: `${e.width ? e.width + "px" : "100%"}`
|
|
1314
|
+
},
|
|
1315
|
+
class: { underline: P(D) === "underline" },
|
|
1316
|
+
clearable: !0,
|
|
1317
|
+
key: `${e.prop}-${A.value}`
|
|
1318
|
+
}), null, 16, [
|
|
1319
|
+
"modelValue",
|
|
1320
|
+
"onUpdate:modelValue",
|
|
1321
|
+
"default-value",
|
|
1322
|
+
"placeholder",
|
|
1323
|
+
"style",
|
|
1324
|
+
"class"
|
|
1325
|
+
])) : (x(), i("span", vn, j(P(K)(e, L.value) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
|
|
1326
|
+
key: 1,
|
|
1327
|
+
modelValue: L.value[r.prop],
|
|
1328
|
+
"onUpdate:modelValue": (e) => L.value[r.prop] = e,
|
|
1329
|
+
placeholder: "请输入",
|
|
1330
|
+
clearable: !0,
|
|
1331
|
+
class: _({ underline: P(D) === "underline" })
|
|
1332
|
+
}, null, 8, [
|
|
1333
|
+
"modelValue",
|
|
1334
|
+
"onUpdate:modelValue",
|
|
1335
|
+
"class"
|
|
1336
|
+
]))]),
|
|
1337
|
+
_: 2
|
|
1338
|
+
}, 1032, [
|
|
1339
|
+
"label",
|
|
1340
|
+
"label-width",
|
|
1341
|
+
"value-width",
|
|
1342
|
+
"prop",
|
|
1343
|
+
"style"
|
|
1344
|
+
]))), 128))]),
|
|
1345
|
+
_: 3
|
|
1346
|
+
}, 16, [
|
|
1347
|
+
"model",
|
|
1348
|
+
"rules",
|
|
1349
|
+
"inline",
|
|
1350
|
+
"label-position",
|
|
1351
|
+
"class"
|
|
1352
|
+
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", yn, [
|
|
1353
|
+
T(t.$slots, "handle", { form: L.value }, void 0, !0),
|
|
1354
|
+
l(d, {
|
|
1355
|
+
icon: P(pt),
|
|
1356
|
+
onClick: re,
|
|
1357
|
+
size: t.$props.size
|
|
1358
|
+
}, {
|
|
1359
|
+
default: R(() => [...a[0] ||= [c("重置", -1)]]),
|
|
1360
|
+
_: 1
|
|
1361
|
+
}, 8, ["icon", "size"]),
|
|
1362
|
+
l(d, {
|
|
1363
|
+
icon: P(_t),
|
|
1364
|
+
type: "primary",
|
|
1365
|
+
onClick: B,
|
|
1366
|
+
size: t.$props.size
|
|
1367
|
+
}, {
|
|
1368
|
+
default: R(() => [...a[1] ||= [c("提交", -1)]]),
|
|
1369
|
+
_: 1
|
|
1370
|
+
}, 8, ["icon", "size"])
|
|
1371
|
+
]))], 64);
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
}), xn = /* @__PURE__ */ V({ default: () => Sn }), Sn = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-1e3d36b7"]]), Cn = ["disabled"], wn = /* @__PURE__ */ u({
|
|
1375
|
+
__name: "index",
|
|
1376
|
+
props: /* @__PURE__ */ m({
|
|
1377
|
+
defaultValue: { default: "" },
|
|
1378
|
+
disabled: {
|
|
1379
|
+
type: Boolean,
|
|
1380
|
+
default: !1
|
|
1381
|
+
}
|
|
1382
|
+
}, {
|
|
1383
|
+
modelValue: {
|
|
1384
|
+
type: String,
|
|
1385
|
+
default: ""
|
|
1386
|
+
},
|
|
1387
|
+
modelModifiers: {}
|
|
1388
|
+
}),
|
|
1389
|
+
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
1390
|
+
setup(e, { emit: t }) {
|
|
1391
|
+
let n = C(), r = te(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
|
|
1392
|
+
return y(() => {
|
|
1393
|
+
o = new re({
|
|
1394
|
+
element: n.value,
|
|
1395
|
+
placeholder: "点击输入内容...",
|
|
1396
|
+
content: r.value || e.defaultValue || "",
|
|
1397
|
+
toolbarExcludeKeys: ["ai"],
|
|
1398
|
+
onChange: (e) => {
|
|
1399
|
+
let t = e.getHtml();
|
|
1400
|
+
r.value = t, a.value = t, s("change", t);
|
|
1401
|
+
}
|
|
1402
|
+
}), o.setEditable(!e.disabled);
|
|
1403
|
+
}), I(r, (e) => {
|
|
1404
|
+
o && e !== o.getHtml() && o.setContent(e);
|
|
1405
|
+
}), b(() => {
|
|
1406
|
+
o && o.destroy();
|
|
1407
|
+
}), (t, r) => (x(), i("div", {
|
|
1408
|
+
ref_key: "editorRef",
|
|
1409
|
+
ref: n,
|
|
1410
|
+
style: { height: "500px" },
|
|
1411
|
+
disabled: e.disabled
|
|
1412
|
+
}, null, 8, Cn));
|
|
1413
|
+
}
|
|
1414
|
+
}), Tn = /* @__PURE__ */ V({ default: () => En }), En = wn, Dn = { class: "ui-tree-wrapper" }, On = {
|
|
1415
|
+
key: 0,
|
|
1416
|
+
style: {
|
|
1417
|
+
display: "flex",
|
|
1418
|
+
"flex-direction": "row",
|
|
1419
|
+
"justify-content": "space-between",
|
|
1420
|
+
"align-items": "center",
|
|
1421
|
+
gap: "10px",
|
|
1422
|
+
height: "30px"
|
|
1423
|
+
}
|
|
1424
|
+
}, kn = { style: { padding: "4px" } }, An = {
|
|
1425
|
+
key: 0,
|
|
1426
|
+
class: "custom-tree-node"
|
|
1427
|
+
}, jn = { class: "node-label" }, Mn = { key: 0 }, Nn = ["onClick"], Pn = /* @__PURE__ */ u({
|
|
1428
|
+
__name: "index",
|
|
1429
|
+
props: {
|
|
1430
|
+
id: {},
|
|
1431
|
+
data: { default: () => [] },
|
|
1432
|
+
filterable: { type: Boolean },
|
|
1433
|
+
placeholder: {},
|
|
1434
|
+
hidePlusHandle: { type: Boolean },
|
|
1435
|
+
hideNodeAdd: { type: Boolean },
|
|
1436
|
+
hideNodeEdit: { type: Boolean },
|
|
1437
|
+
hideNodeDel: { type: Boolean },
|
|
1438
|
+
hideNodeHandle: { type: Boolean },
|
|
1439
|
+
onNodeAdd: { type: Function },
|
|
1440
|
+
onNodeEdit: { type: Function },
|
|
1441
|
+
onNodeDel: { type: Function },
|
|
1442
|
+
showTotal: { type: Boolean },
|
|
1443
|
+
"show-total": { type: Boolean },
|
|
1444
|
+
nodeKey: {},
|
|
1445
|
+
props: { default: () => ({ label: "label" }) }
|
|
1446
|
+
},
|
|
1447
|
+
emits: [
|
|
1448
|
+
"add",
|
|
1449
|
+
"edit",
|
|
1450
|
+
"delete"
|
|
1451
|
+
],
|
|
1452
|
+
setup(e, { emit: s }) {
|
|
1453
|
+
let u = s, f = F(), p = o(e, [
|
|
1454
|
+
"filterable",
|
|
1455
|
+
"placeholder",
|
|
1456
|
+
"data",
|
|
1457
|
+
"props"
|
|
1458
|
+
]), m = C(""), g = C(), _ = C(), v = d()?.appContext.config.globalProperties.$messageBox;
|
|
1459
|
+
I(m, (t) => {
|
|
1460
|
+
e.filterable && _.value?.filter(t);
|
|
1461
|
+
});
|
|
1462
|
+
let y = t(() => f?.["show-total"] ?? p?.showTotal ?? !0);
|
|
1463
|
+
function b(t, n) {
|
|
1464
|
+
return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
|
|
1465
|
+
}
|
|
1466
|
+
function S(e, t) {
|
|
1467
|
+
e?.stopPropagation(), g.value = t.id;
|
|
1468
|
+
}
|
|
1469
|
+
function w(e) {
|
|
1470
|
+
v?.prompt("请输入新的名称", "添加节点", {
|
|
1471
|
+
confirmButtonText: "确定",
|
|
1472
|
+
cancelButtonText: "取消"
|
|
1473
|
+
}).then(({ value: t }) => {
|
|
1474
|
+
u("add", {
|
|
1475
|
+
node: e,
|
|
1476
|
+
value: t
|
|
1477
|
+
});
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
function D(t) {
|
|
1481
|
+
v?.prompt("请输入新的名称", "重命名", {
|
|
1482
|
+
confirmButtonText: "确定",
|
|
1483
|
+
cancelButtonText: "取消",
|
|
1484
|
+
inputValue: e.props?.label ? t[e.props?.label] : ""
|
|
1485
|
+
}).then(({ value: e }) => {
|
|
1486
|
+
u("edit", {
|
|
1487
|
+
node: t,
|
|
1488
|
+
value: e
|
|
1489
|
+
});
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
async function O(e) {
|
|
1493
|
+
e.id && u("delete", e);
|
|
1494
|
+
}
|
|
1495
|
+
return (t, o) => {
|
|
1496
|
+
let s = E("el-input"), u = E("el-button"), d = E("el-dropdown-item"), f = E("el-dropdown-menu"), g = E("el-dropdown"), v = E("el-tree-v2");
|
|
1497
|
+
return x(), i("div", Dn, [
|
|
1498
|
+
e.filterable ? (x(), i("div", On, [l(s, {
|
|
1499
|
+
modelValue: m.value,
|
|
1500
|
+
"onUpdate:modelValue": o[0] ||= (e) => m.value = e,
|
|
1501
|
+
placeholder: e.placeholder ?? "请输入",
|
|
1502
|
+
clearable: ""
|
|
1503
|
+
}, null, 8, ["modelValue", "placeholder"]), p?.hidePlusHandle ? r("", !0) : (x(), n(u, {
|
|
1504
|
+
key: 0,
|
|
1505
|
+
style: {
|
|
1506
|
+
margin: "0px",
|
|
1507
|
+
padding: "0px",
|
|
1508
|
+
width: "30px"
|
|
1509
|
+
},
|
|
1510
|
+
link: "",
|
|
1511
|
+
onClick: o[1] ||= (e) => w()
|
|
1512
|
+
}, {
|
|
1513
|
+
default: R(() => [a("span", kn, [l(P(tt))])]),
|
|
1514
|
+
_: 1
|
|
1515
|
+
}))])) : r("", !0),
|
|
1516
|
+
T(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
1517
|
+
l(v, h({
|
|
1518
|
+
ref_key: "treeRef",
|
|
1519
|
+
ref: _,
|
|
1520
|
+
style: { "margin-top": "8px" }
|
|
1521
|
+
}, {
|
|
1522
|
+
...t.$props,
|
|
1523
|
+
...t.$attrs
|
|
1524
|
+
}, {
|
|
1525
|
+
"node-key": p?.nodeKey || "id",
|
|
1526
|
+
"highlight-current": !0,
|
|
1527
|
+
"filter-method": b
|
|
1528
|
+
}), {
|
|
1529
|
+
default: R((s) => [s?.data ? (x(), i("div", An, [a("div", jn, [s.data?.children?.length ? (x(), i("span", Mn, "📁")) : r("", !0), c(" " + j(s.data?.[e.props?.label || "label"]) + " " + j(y.value && s.data?.children?.length ? `(${s.data.children.length})` : ""), 1)]), p.hideNodeHandle ? r("", !0) : (x(), n(g, {
|
|
1530
|
+
key: 0,
|
|
1531
|
+
trigger: "click"
|
|
1532
|
+
}, {
|
|
1533
|
+
dropdown: R(() => [l(f, null, {
|
|
1534
|
+
default: R(() => [
|
|
1535
|
+
p?.hideNodeAdd ? r("", !0) : (x(), n(d, {
|
|
1536
|
+
key: 0,
|
|
1537
|
+
onClick: (e) => w(s.data)
|
|
1538
|
+
}, {
|
|
1539
|
+
default: R(() => [...o[2] ||= [c(" 添加 ", -1)]]),
|
|
1540
|
+
_: 1
|
|
1541
|
+
}, 8, ["onClick"])),
|
|
1542
|
+
p?.hideNodeEdit ? r("", !0) : (x(), n(d, {
|
|
1543
|
+
key: 1,
|
|
1544
|
+
onClick: (e) => D(s.data)
|
|
1545
|
+
}, {
|
|
1546
|
+
default: R(() => [...o[3] ||= [c(" 编辑 ", -1)]]),
|
|
1547
|
+
_: 1
|
|
1548
|
+
}, 8, ["onClick"])),
|
|
1549
|
+
p?.hideNodeDel ? r("", !0) : (x(), n(d, {
|
|
1550
|
+
key: 2,
|
|
1551
|
+
onClick: (e) => O(s.data)
|
|
1552
|
+
}, {
|
|
1553
|
+
default: R(() => [...o[4] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
|
|
1554
|
+
_: 1
|
|
1555
|
+
}, 8, ["onClick"])),
|
|
1556
|
+
T(t.$slots, "node-handle", { data: s.data }, void 0, !0)
|
|
1557
|
+
]),
|
|
1558
|
+
_: 2
|
|
1559
|
+
}, 1024)]),
|
|
1560
|
+
default: R(() => [a("span", {
|
|
1561
|
+
onClick: (e) => S(e, s.data),
|
|
1562
|
+
style: {
|
|
1563
|
+
padding: "4px",
|
|
1564
|
+
"font-weight": "bold"
|
|
1565
|
+
}
|
|
1566
|
+
}, "⋮", 8, Nn)]),
|
|
1567
|
+
_: 2
|
|
1568
|
+
}, 1024))])) : r("", !0)]),
|
|
1569
|
+
_: 3
|
|
1570
|
+
}, 16, ["node-key"])
|
|
1571
|
+
]);
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
}), Fn = /* @__PURE__ */ V({ default: () => In }), In = /* @__PURE__ */ H(Pn, [["__scopeId", "data-v-25c3a8ba"]]), Ln = { style: { height: "100%" } }, Rn = { style: {
|
|
1575
|
+
display: "flex",
|
|
1576
|
+
"flex-direction": "row",
|
|
1577
|
+
"justify-content": "space-between",
|
|
1578
|
+
"align-items": "center",
|
|
1579
|
+
gap: "10px"
|
|
1580
|
+
} }, zn = { style: { margin: "10px 0px" } }, Bn = ["onClick"], Vn = { key: 0 }, Hn = /* @__PURE__ */ u({
|
|
1581
|
+
__name: "index",
|
|
1582
|
+
props: {
|
|
1583
|
+
loading: { default: () => C(!1) },
|
|
1584
|
+
data: {},
|
|
1585
|
+
placeholder: {},
|
|
1586
|
+
props: {},
|
|
1587
|
+
vInfiniteScroll: { type: Function },
|
|
1588
|
+
filterable: { type: Boolean }
|
|
1589
|
+
},
|
|
1590
|
+
emits: ["node-click"],
|
|
1591
|
+
setup(o, { emit: s }) {
|
|
1592
|
+
let c = s, l = C(""), u = C(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
|
|
1593
|
+
I(() => [u.value, o.data?.[0]], (e) => {
|
|
1594
|
+
!e[0] && e[1] && (u.value = o.data?.[0]);
|
|
1595
|
+
}, { immediate: !0 });
|
|
1596
|
+
function f(e) {
|
|
1597
|
+
u.value = e, c("node-click", e);
|
|
1598
|
+
}
|
|
1599
|
+
return (t, s) => {
|
|
1600
|
+
let c = E("el-input");
|
|
1601
|
+
return x(), i("div", Ln, [
|
|
1602
|
+
a("div", Rn, [o.filterable ? (x(), n(c, {
|
|
1603
|
+
key: 0,
|
|
1604
|
+
modelValue: l.value,
|
|
1605
|
+
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
1606
|
+
placeholder: o.placeholder ?? "请输入"
|
|
1607
|
+
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), T(t.$slots, "plus", {}, void 0, !0)]),
|
|
1608
|
+
a("div", zn, [T(t.$slots, "handle", {}, void 0, !0)]),
|
|
1609
|
+
z((x(), i("ul", h({
|
|
1610
|
+
class: "infinite-list",
|
|
1611
|
+
"infinite-scroll-immediate": !1
|
|
1612
|
+
}, t.$attrs), [(x(!0), i(e, null, w(d.value, (e, n) => (x(), i("li", {
|
|
1613
|
+
key: "infinite-list-" + n,
|
|
1614
|
+
class: _({
|
|
1615
|
+
"infinite-list-item": !0,
|
|
1616
|
+
active: e === u.value
|
|
1617
|
+
}),
|
|
1618
|
+
onClick: (t) => f(e)
|
|
1619
|
+
}, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Bn))), 128))], 16)), [[P(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1620
|
+
o.loading.value ? (x(), i("p", Vn, "loading...")) : r("", !0)
|
|
1621
|
+
]);
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
}), Un = /* @__PURE__ */ V({ default: () => Wn }), Wn = /* @__PURE__ */ H(Hn, [["__scopeId", "data-v-0ab5cd97"]]), Gn = {
|
|
1625
|
+
key: 0,
|
|
1626
|
+
style: {
|
|
1627
|
+
padding: "10px 0px",
|
|
1628
|
+
"margin-bottom": "10px",
|
|
1629
|
+
"border-bottom": "1px solid #e5e5e5"
|
|
1630
|
+
}
|
|
1631
|
+
}, Kn = { key: 1 }, qn = /* @__PURE__ */ u({
|
|
1632
|
+
__name: "index",
|
|
1633
|
+
props: {
|
|
1634
|
+
data: {},
|
|
1635
|
+
fields: { default: () => [] },
|
|
1636
|
+
column: { default: 4 },
|
|
1637
|
+
title: { default: "" }
|
|
1638
|
+
},
|
|
1639
|
+
setup(t) {
|
|
1640
|
+
let a = o(t, [
|
|
1641
|
+
"title",
|
|
1642
|
+
"column",
|
|
1643
|
+
"fields",
|
|
1644
|
+
"data"
|
|
1645
|
+
]);
|
|
1646
|
+
return (o, s) => {
|
|
1647
|
+
let c = E("el-descriptions-item"), u = E("el-descriptions");
|
|
1648
|
+
return x(), i(e, null, [
|
|
1649
|
+
t.title ? (x(), i("h4", Gn, j(t.title), 1)) : r("", !0),
|
|
1650
|
+
T(o.$slots, "title", {}, void 0, !0),
|
|
1651
|
+
l(u, h({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1652
|
+
default: R(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
|
|
1653
|
+
key: e.prop,
|
|
1654
|
+
label: e.label,
|
|
1655
|
+
span: e.span
|
|
1656
|
+
}, {
|
|
1657
|
+
default: R(() => [e.render ? (x(), n(O(P(G)(e, t.data).component), h({
|
|
1658
|
+
key: 0,
|
|
1659
|
+
modelValue: t.data[e.prop],
|
|
1660
|
+
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1661
|
+
}, { ref_for: !0 }, P(G)(e, t.data).props, {
|
|
1662
|
+
clearable: !0,
|
|
1663
|
+
key: e.prop
|
|
1664
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span", Kn, j(t.data[e.prop] || "-"), 1))]),
|
|
1665
|
+
_: 2
|
|
1666
|
+
}, 1032, ["label", "span"]))), 128))]),
|
|
1667
|
+
_: 1
|
|
1668
|
+
}, 16, ["column"])
|
|
1669
|
+
], 64);
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
}), Jn = /* @__PURE__ */ V({ default: () => Yn }), Yn = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-9ee9b092"]]), Xn = {
|
|
1673
|
+
key: 0,
|
|
1674
|
+
style: {
|
|
1675
|
+
display: "flex",
|
|
1676
|
+
"margin-top": "12px",
|
|
1677
|
+
"justify-content": "end"
|
|
1678
|
+
}
|
|
1679
|
+
}, Zn = /* @__PURE__ */ u({
|
|
1680
|
+
__name: "index",
|
|
1681
|
+
props: {
|
|
1682
|
+
visible: { type: Boolean },
|
|
1683
|
+
width: {},
|
|
1684
|
+
disabled: { type: Boolean },
|
|
1685
|
+
component: {},
|
|
1686
|
+
componentProps: {}
|
|
1687
|
+
},
|
|
1688
|
+
emits: [
|
|
1689
|
+
"update:visible",
|
|
1690
|
+
"close",
|
|
1691
|
+
"submit"
|
|
1692
|
+
],
|
|
1693
|
+
setup(e, { emit: t }) {
|
|
1694
|
+
let a = t, o = e, s = C();
|
|
1695
|
+
function u() {
|
|
1696
|
+
a("close"), a("update:visible", !1);
|
|
1697
|
+
}
|
|
1698
|
+
function d() {
|
|
1699
|
+
a("submit", N(s?.value || {})), a("update:visible", !1);
|
|
1700
|
+
}
|
|
1701
|
+
return (e, t) => {
|
|
1702
|
+
let a = E("el-button"), f = E("el-dialog");
|
|
1703
|
+
return x(), n(f, h(e.$attrs, {
|
|
1704
|
+
"model-value": o.visible,
|
|
1705
|
+
"show-close": o.disabled,
|
|
1706
|
+
fullscreen: !o.width,
|
|
1707
|
+
"destroy-on-close": "",
|
|
1708
|
+
"lock-scroll": !1,
|
|
1709
|
+
"close-on-click-modal": !1,
|
|
1710
|
+
"onUpdate:modelValue": t[0] ||= (e) => !e && u(),
|
|
1711
|
+
onClose: u
|
|
1712
|
+
}), {
|
|
1713
|
+
default: R(() => [(x(), n(O(o.component), h({
|
|
1714
|
+
ref_key: "slotRef",
|
|
1715
|
+
ref: s
|
|
1716
|
+
}, o.componentProps, {
|
|
1717
|
+
onClose: u,
|
|
1718
|
+
onSubmit: d
|
|
1719
|
+
}), null, 16)), o.disabled ? r("", !0) : (x(), i("div", Xn, [l(a, { onClick: u }, {
|
|
1720
|
+
default: R(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1721
|
+
_: 1
|
|
1722
|
+
}), l(a, {
|
|
1723
|
+
type: "primary",
|
|
1724
|
+
onClick: d
|
|
1725
|
+
}, {
|
|
1726
|
+
default: R(() => [...t[2] ||= [c("确定", -1)]]),
|
|
1727
|
+
_: 1
|
|
1728
|
+
})]))]),
|
|
1729
|
+
_: 1
|
|
1730
|
+
}, 16, [
|
|
1731
|
+
"model-value",
|
|
1732
|
+
"show-close",
|
|
1733
|
+
"fullscreen"
|
|
1734
|
+
]);
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
}), Qn = /* @__PURE__ */ V({ default: () => $n }), $n = Zn;
|
|
1738
|
+
//#endregion
|
|
1739
|
+
//#region src/utils/request.ts
|
|
1740
|
+
function er() {
|
|
1741
|
+
return new Headers({
|
|
1742
|
+
"Content-Type": "application/json",
|
|
1743
|
+
token: localStorage.getItem("TOKEN") || ""
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
async function tr(e, t) {
|
|
1747
|
+
let n = `${J}${e}`;
|
|
1748
|
+
if (t) {
|
|
1749
|
+
let e = new URLSearchParams(t).toString();
|
|
1750
|
+
e && (n = `${n}?${e}`);
|
|
1751
|
+
}
|
|
1752
|
+
return (await fetch(n, {
|
|
1753
|
+
headers: er(),
|
|
1754
|
+
method: "GET"
|
|
1755
|
+
})).json();
|
|
1756
|
+
}
|
|
1757
|
+
async function nr(e, t) {
|
|
1758
|
+
return (await fetch(`${J}${e}`, {
|
|
1759
|
+
headers: er(),
|
|
1760
|
+
method: "POST",
|
|
1761
|
+
body: JSON.stringify(t)
|
|
1762
|
+
})).json();
|
|
1763
|
+
}
|
|
1764
|
+
async function rr(e, t) {
|
|
1765
|
+
return (await fetch(`${J}${e}`, {
|
|
1766
|
+
headers: er(),
|
|
1767
|
+
method: "POST",
|
|
1768
|
+
body: JSON.stringify(t)
|
|
1769
|
+
})).blob();
|
|
1770
|
+
}
|
|
1771
|
+
var q = {
|
|
1772
|
+
get: tr,
|
|
1773
|
+
post: nr,
|
|
1774
|
+
blob: rr
|
|
1775
|
+
}, J = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1776
|
+
function ir(e) {
|
|
1777
|
+
return Array.from(new Set(e));
|
|
1778
|
+
}
|
|
1779
|
+
function ar(e, t) {
|
|
1780
|
+
let n = /* @__PURE__ */ new Set();
|
|
1781
|
+
return e.filter((e) => {
|
|
1782
|
+
let r = typeof t == "function" ? t(e) : e[t];
|
|
1783
|
+
return n.has(r) ? !1 : (n.add(r), !0);
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
function or(e = {}, t) {
|
|
1787
|
+
let n = { ...e };
|
|
1788
|
+
return t.forEach((e) => delete n[e]), n;
|
|
1789
|
+
}
|
|
1790
|
+
function sr(e = /* @__PURE__ */ new Date()) {
|
|
1791
|
+
let t = (e) => e.toString().padStart(2, "0");
|
|
1792
|
+
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
|
|
1793
|
+
}
|
|
1794
|
+
//#endregion
|
|
1795
|
+
//#region src/components/StaffSelect/default.vue
|
|
1796
|
+
var cr = /* @__PURE__ */ u({
|
|
1797
|
+
__name: "default",
|
|
1798
|
+
props: {
|
|
1799
|
+
multiple: { type: Boolean },
|
|
1800
|
+
type: {},
|
|
1801
|
+
valueAt: {},
|
|
1802
|
+
modelValue: {},
|
|
1803
|
+
token: {}
|
|
1804
|
+
},
|
|
1805
|
+
emits: ["update:modelValue"],
|
|
1806
|
+
setup(r, { emit: a }) {
|
|
1807
|
+
let o = r, s = a, c = o.valueAt ?? "all", u = t({
|
|
1808
|
+
get: () => o.modelValue || "",
|
|
1809
|
+
set: (e) => s("update:modelValue", e)
|
|
1810
|
+
}), d = C([]);
|
|
1811
|
+
y(() => {
|
|
1812
|
+
o.modelValue && f(o.modelValue);
|
|
1813
|
+
});
|
|
1814
|
+
async function f(e = "") {
|
|
1815
|
+
d.value = ((await q.post("/user/pageQueryUser", {
|
|
1816
|
+
page: 1,
|
|
1817
|
+
pageSize: 999,
|
|
1818
|
+
name: e
|
|
1819
|
+
}))?.table || []).map((e) => {
|
|
1820
|
+
let t = c === "all" ? `${e.name}(${e.account})` : e[c];
|
|
1821
|
+
return {
|
|
1822
|
+
...e,
|
|
1823
|
+
label: `${e.name}(${e.account})`,
|
|
1824
|
+
value: t
|
|
1825
|
+
};
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
async function p(e) {
|
|
1829
|
+
e.length < 1 || (u.value = e, await f(e));
|
|
1830
|
+
}
|
|
1831
|
+
return (t, r) => {
|
|
1832
|
+
let a = E("el-icon"), o = E("el-option"), s = E("el-select");
|
|
1833
|
+
return x(), n(s, h({
|
|
1834
|
+
remote: "",
|
|
1835
|
+
filterable: "",
|
|
1836
|
+
modelValue: u.value,
|
|
1837
|
+
"onUpdate:modelValue": r[0] ||= (e) => u.value = e,
|
|
1838
|
+
"remote-method": p
|
|
1839
|
+
}, t.$attrs), {
|
|
1840
|
+
prefix: R(() => [l(a, null, {
|
|
1841
|
+
default: R(() => [l(P(qe))]),
|
|
1842
|
+
_: 1
|
|
1843
|
+
})]),
|
|
1844
|
+
default: R(() => [(x(!0), i(e, null, w(d.value, (e) => (x(), n(o, {
|
|
1845
|
+
key: `${e.employeeCode}-${e.employeeName}`,
|
|
1846
|
+
label: e.label,
|
|
1847
|
+
value: e.value
|
|
1848
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
1849
|
+
_: 1
|
|
1850
|
+
}, 16, ["modelValue"]);
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
}), lr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 0C228.4 0 0 228.4 0 512s228.4 512 512 512 512-228.4 512-512S795.6 0 512 0zm263.5 371.2l-317.1 317.1c-12.5 12.5-32.8 12.5-45.3 0L187.9 452.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l194.2 194.2 292.9-292.9c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-338.1 338.2z\" fill=\"currentColor\"/></svg>", ur = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" fill=\"currentColor\"/><path d=\"M512 688c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-32-352h64v224h-64V336z\" fill=\"currentColor\"/></svg>", dr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 89.6c-235.2 0-425.6 190.4-425.6 425.6S276.8 940.8 512 940.8 937.6 750.4 937.6 515.2 747.2 89.6 512 89.6zm217.6 585.6c18.8 18.8 18.8 49.6 0 68.8-18.8 18.8-49.6 18.8-68.8 0L512 594.8 363.2 744c-18.8 18.8-49.6 18.8-68.8 0-18.8-18.8-18.8-49.6 0-68.8l148.8-148.8L294.4 377.6c-18.8-18.8-18.8-49.6 0-68.8 18.8-18.8 49.6-18.8 68.8 0l148.8 148.8L660.8 308.8c18.8-18.8 49.6-18.8 68.8 0 18.8 18.8 18.8 49.6 0 68.8L580.8 526.4l148.8 148.8z\" fill=\"currentColor\"/></svg>", fr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm56 768H456V456h112v312zm0-400H456V264h112v104z\" fill=\"currentColor\"/></svg>", pr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M557.8 512l248.3-248.3c18.8-18.8 18.8-49.6 0-68.8-18.8-18.8-49.6-18.8-68.8 0L512 443.2 263.7 194.9c-18.8-18.8-49.6-18.8-68.8 0-18.8 18.8-18.8 49.6 0 68.8L443.2 512 194.9 760.3c-18.8 18.8-18.8 49.6 0 68.8 18.8 18.8 49.6 18.8 68.8 0L512 580.8l248.3 248.3c18.8 18.8 49.6 18.8 68.8 0 18.8-18.8 18.8-49.6 0-68.8L557.8 512z\" fill=\"currentColor\"/></svg>", mr = {
|
|
1854
|
+
success: lr,
|
|
1855
|
+
warning: ur,
|
|
1856
|
+
error: dr,
|
|
1857
|
+
info: fr
|
|
1858
|
+
}, hr = /* @__PURE__ */ V({
|
|
1859
|
+
addInstance: () => Sr,
|
|
1860
|
+
baseStyles: () => gr,
|
|
1861
|
+
closeIcon: () => Er,
|
|
1862
|
+
closeInstance: () => Cr,
|
|
1863
|
+
createWcElement: () => wr,
|
|
1864
|
+
getInstances: () => xr,
|
|
1865
|
+
getNextId: () => br,
|
|
1866
|
+
icons: () => Tr,
|
|
1867
|
+
initStyles: () => yr,
|
|
1868
|
+
wcDefaultOptions: () => _r
|
|
1869
|
+
}), gr = "\n .vep-wc-container {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 99999;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n pointer-events: none;\n }\n .vep-wc-item {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 11px 15px;\n border-radius: 4px;\n border: 1px solid #ebeef5;\n background-color: #fff;\n box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);\n font-size: 14px;\n color: #606266;\n pointer-events: auto;\n animation: vep-wc-fade-in 0.3s ease-out;\n max-width: 400px;\n min-width: 200px;\n }\n .vep-wc-item.vep-wc-hide { animation: vep-wc-fade-out 0.3s ease-in forwards; }\n .vep-wc-icon { width: 18px; height: 18px; flex-shrink: 0; }\n .vep-wc-content { flex: 1; word-break: break-word; }\n .vep-wc-close { width: 16px; height: 16px; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; flex-shrink: 0; }\n .vep-wc-close:hover { opacity: 1; }\n .vep-wc--success { background-color: #f0f9eb; border-color: #e1f3d8; }\n .vep-wc--success .vep-wc-icon { color: #67c23a; }\n .vep-wc--warning { background-color: #fdf6ec; border-color: #faecd8; }\n .vep-wc--warning .vep-wc-icon { color: #e6a23c; }\n .vep-wc--error { background-color: #fef0f0; border-color: #fde2e2; }\n .vep-wc--error .vep-wc-icon { color: #f56c6c; }\n .vep-wc--info { background-color: #f4f4f5; border-color: #e9e9eb; }\n .vep-wc--info .vep-wc-icon { color: #909399; }\n @keyframes vep-wc-fade-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }\n @keyframes vep-wc-fade-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }\n", _r = {
|
|
1870
|
+
type: "info",
|
|
1871
|
+
duration: 3e3,
|
|
1872
|
+
showClose: !1
|
|
1873
|
+
}, Y = [], vr = 0;
|
|
1874
|
+
function yr(e, t) {
|
|
1875
|
+
if (!document.getElementById(e)) {
|
|
1876
|
+
let n = document.createElement("style");
|
|
1877
|
+
n.id = e, n.textContent = t, document.head.appendChild(n);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
function br() {
|
|
1881
|
+
return ++vr;
|
|
1882
|
+
}
|
|
1883
|
+
function xr() {
|
|
1884
|
+
return Y;
|
|
1885
|
+
}
|
|
1886
|
+
function Sr(e) {
|
|
1887
|
+
Y.push(e);
|
|
1888
|
+
}
|
|
1889
|
+
function Cr(e) {
|
|
1890
|
+
return new Promise((t) => {
|
|
1891
|
+
let n = Y.findIndex((t) => t.id === e);
|
|
1892
|
+
if (n === -1 || Y[n].isClosing) {
|
|
1893
|
+
t();
|
|
1894
|
+
return;
|
|
1895
|
+
}
|
|
1896
|
+
let r = Y[n];
|
|
1897
|
+
r.isClosing = !0, clearTimeout(r.timer), r.element.classList.add("vep-wc-hide"), setTimeout(() => {
|
|
1898
|
+
r.element.remove(), Y.splice(n, 1), r.options.onClose?.(), t();
|
|
1899
|
+
}, 300);
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
function wr(e, t) {
|
|
1903
|
+
class n extends HTMLElement {
|
|
1904
|
+
shadow = this.attachShadow({ mode: "open" });
|
|
1905
|
+
connectedCallback() {
|
|
1906
|
+
let e = document.createElement("style");
|
|
1907
|
+
e.textContent = `:host { all: initial; display: block; }\n${gr}`, this.shadow.appendChild(e);
|
|
1908
|
+
let n = document.createElement("div");
|
|
1909
|
+
n.className = "vep-wc-container", this.shadow.appendChild(n);
|
|
1910
|
+
let r = this.getAttribute("message");
|
|
1911
|
+
r && t({
|
|
1912
|
+
message: r,
|
|
1913
|
+
type: this.getAttribute("type") || "info",
|
|
1914
|
+
duration: Number(this.getAttribute("duration")) || 3e3,
|
|
1915
|
+
showClose: this.hasAttribute("show-close")
|
|
1916
|
+
}, n, vr);
|
|
1917
|
+
}
|
|
1918
|
+
show(e) {
|
|
1919
|
+
let n = this.shadow.querySelector(".vep-wc-container");
|
|
1920
|
+
n && t(e, n, vr);
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
return customElements.get(e) || customElements.define(e, n), n;
|
|
1924
|
+
}
|
|
1925
|
+
var Tr = mr, Er = pr, Dr = /* @__PURE__ */ V({
|
|
1926
|
+
VepMessage: () => Z,
|
|
1927
|
+
default: () => Z
|
|
1928
|
+
}), X = null;
|
|
1929
|
+
function Or(e, t) {
|
|
1930
|
+
let n = document.createElement("div");
|
|
1931
|
+
return n.className = `vep-wc-item vep-wc--${e.type}`, n.innerHTML = `
|
|
1932
|
+
<span class="vep-wc-icon">${Tr[e.type || "info"]}</span>
|
|
1933
|
+
<span class="vep-wc-content">${e.message}</span>
|
|
1934
|
+
${e.showClose ? `<span class="vep-wc-close">${Er}</span>` : ""}
|
|
1935
|
+
`, n.querySelector(".vep-wc-close")?.addEventListener("click", t), n;
|
|
1936
|
+
}
|
|
1937
|
+
function kr(e) {
|
|
1938
|
+
yr("vep-ui-message-styles", gr), X || (X = document.createElement("div"), X.className = "vep-wc-container", document.body.appendChild(X));
|
|
1939
|
+
let t = br(), n = {
|
|
1940
|
+
..._r,
|
|
1941
|
+
...e
|
|
1942
|
+
}, r = () => Ar(t), i = Or(n, r);
|
|
1943
|
+
return X.appendChild(i), n.duration && n.duration > 0 && setTimeout(r, n.duration), Sr({
|
|
1944
|
+
id: t,
|
|
1945
|
+
element: i,
|
|
1946
|
+
options: n,
|
|
1947
|
+
isClosing: !1
|
|
1948
|
+
}), r;
|
|
1949
|
+
}
|
|
1950
|
+
function Ar(e) {
|
|
1951
|
+
return Cr(e).then(() => {
|
|
1952
|
+
xr().length === 0 && X && (X.remove(), X = null);
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
var Z = ((e) => ({ close: kr(typeof e == "string" ? { message: e } : e) }));
|
|
1956
|
+
Z.success = (e, t) => ({ close: kr({
|
|
1957
|
+
message: e,
|
|
1958
|
+
type: "success",
|
|
1959
|
+
...t
|
|
1960
|
+
}) }), Z.warning = (e, t) => ({ close: kr({
|
|
1961
|
+
message: e,
|
|
1962
|
+
type: "warning",
|
|
1963
|
+
...t
|
|
1964
|
+
}) }), Z.error = (e, t) => ({ close: kr({
|
|
1965
|
+
message: e,
|
|
1966
|
+
type: "error",
|
|
1967
|
+
...t
|
|
1968
|
+
}) }), Z.info = (e, t) => ({ close: kr({
|
|
1969
|
+
message: e,
|
|
1970
|
+
type: "info",
|
|
1971
|
+
...t
|
|
1972
|
+
}) }), Z.closeAll = async () => {
|
|
1973
|
+
await Promise.all(xr().map((e) => Ar(e.id)));
|
|
1974
|
+
};
|
|
1975
|
+
var jr = class extends HTMLElement {
|
|
1976
|
+
shadow = this.attachShadow({ mode: "open" });
|
|
1977
|
+
connectedCallback() {
|
|
1978
|
+
let e = document.createElement("style");
|
|
1979
|
+
e.textContent = `:host { all: initial; display: block; }\n${gr}`, this.shadow.appendChild(e);
|
|
1980
|
+
let t = document.createElement("div");
|
|
1981
|
+
t.className = "vep-wc-container", this.shadow.appendChild(t);
|
|
1982
|
+
let n = this.getAttribute("message");
|
|
1983
|
+
if (n) {
|
|
1984
|
+
let e = {
|
|
1985
|
+
message: n,
|
|
1986
|
+
type: this.getAttribute("type") || "info",
|
|
1987
|
+
duration: Number(this.getAttribute("duration")) || 3e3,
|
|
1988
|
+
showClose: this.hasAttribute("show-close")
|
|
1989
|
+
};
|
|
1990
|
+
this.addMessage(e, t);
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
show(e) {
|
|
1994
|
+
let t = this.shadow.querySelector(".vep-wc-container");
|
|
1995
|
+
t && this.addMessage(e, t);
|
|
1996
|
+
}
|
|
1997
|
+
addMessage(e, t) {
|
|
1998
|
+
let n = br(), r = {
|
|
1999
|
+
..._r,
|
|
2000
|
+
...e
|
|
2001
|
+
}, i = () => this.doClose(n, t), a = Or(r, i);
|
|
2002
|
+
t.appendChild(a), r.duration && r.duration > 0 && setTimeout(i, r.duration), Sr({
|
|
2003
|
+
id: n,
|
|
2004
|
+
element: a,
|
|
2005
|
+
options: r,
|
|
2006
|
+
isClosing: !1
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
doClose(e, t) {
|
|
2010
|
+
return Cr(e).then(() => {
|
|
2011
|
+
xr().length === 0 && t.remove();
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
customElements.get("vep-message") || customElements.define("vep-message", jr);
|
|
2016
|
+
//#endregion
|
|
2017
|
+
//#region src/components/StaffSelect/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
2018
|
+
var Mr = { style: {
|
|
2019
|
+
display: "flex",
|
|
2020
|
+
"max-width": "100%",
|
|
2021
|
+
gap: "20px",
|
|
2022
|
+
"overflow-y": "scroll",
|
|
2023
|
+
height: "400px"
|
|
2024
|
+
} }, Nr = { style: { flex: "1" } }, Pr = { style: { width: "320px" } }, Fr = { style: {
|
|
2025
|
+
display: "flex",
|
|
2026
|
+
"justify-content": "space-between",
|
|
2027
|
+
"align-items": "center",
|
|
2028
|
+
"margin-bottom": "8px",
|
|
2029
|
+
height: "30px"
|
|
2030
|
+
} }, Ir = { key: 0 }, Lr = { style: {
|
|
2031
|
+
"overflow-y": "auto",
|
|
2032
|
+
height: "90%"
|
|
2033
|
+
} }, Rr = { style: {
|
|
2034
|
+
display: "flex",
|
|
2035
|
+
"justify-content": "end",
|
|
2036
|
+
"align-items": "center"
|
|
2037
|
+
} }, zr = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
2038
|
+
__name: "dialog",
|
|
2039
|
+
props: {
|
|
2040
|
+
modelValue: {},
|
|
2041
|
+
disabled: {
|
|
2042
|
+
type: Boolean,
|
|
2043
|
+
default: !1
|
|
2044
|
+
},
|
|
2045
|
+
data: {},
|
|
2046
|
+
required: { type: Boolean },
|
|
2047
|
+
valueAt: { default: "all" }
|
|
2048
|
+
},
|
|
2049
|
+
emits: ["update:modelValue", "change"],
|
|
2050
|
+
setup(n, { expose: o, emit: s }) {
|
|
2051
|
+
let u = s, d = F(), f = n, p = f.valueAt ?? "all", m = C(), _ = C(!1), v = S({
|
|
2052
|
+
searchData: [],
|
|
2053
|
+
staffData: [],
|
|
2054
|
+
loading: !1,
|
|
2055
|
+
filterText: "",
|
|
2056
|
+
requiredVisible: !1
|
|
2057
|
+
}), y = C([]), b = C([]), T = t(() => v.searchData?.length ? v.searchData : v.staffData), D = t(() => f.required ?? d?.required ?? !1);
|
|
2058
|
+
L(() => {
|
|
2059
|
+
b.value = ir(f.modelValue || []);
|
|
2060
|
+
}), L(() => {
|
|
2061
|
+
_.value && O();
|
|
2062
|
+
});
|
|
2063
|
+
async function O() {
|
|
2064
|
+
let e = await q.get("/department/queryDepartmentTree");
|
|
2065
|
+
v.staffData = e.data || [], e.data?.[0] && A(e.data?.[0]);
|
|
2066
|
+
}
|
|
2067
|
+
async function k(e) {
|
|
2068
|
+
return q.post("/user/pageQueryUser", e);
|
|
2069
|
+
}
|
|
2070
|
+
async function A(e, t) {
|
|
2071
|
+
let n = !!e?.data?.code, r = e?.data?.code || e?.code;
|
|
2072
|
+
return !r || e?.data?.account ? t?.([]) : (v.loading = !0, k({
|
|
2073
|
+
page: 1,
|
|
2074
|
+
pageSize: 9999,
|
|
2075
|
+
departmentCode: r
|
|
2076
|
+
}).then((t) => {
|
|
2077
|
+
if (t.code !== "ok") return;
|
|
2078
|
+
let r = (t?.table || []).map((e) => ({
|
|
2079
|
+
...e,
|
|
2080
|
+
code: e.account
|
|
2081
|
+
}));
|
|
2082
|
+
n ? e.data.children = ar([...r, ...e.data.children || []], "code") : e.children = ar([...r, ...e.children || []], "code"), v.loading = !1;
|
|
2083
|
+
}), t?.(e?.children || []));
|
|
2084
|
+
}
|
|
2085
|
+
function M(e, { data: t }) {
|
|
2086
|
+
let n = v.searchData?.length > 0;
|
|
2087
|
+
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
2088
|
+
width: "14px",
|
|
2089
|
+
height: "14px"
|
|
2090
|
+
} }, e(qe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
2091
|
+
}
|
|
2092
|
+
function N() {
|
|
2093
|
+
_.value = !0, v.filterText = "", v.searchData = [];
|
|
2094
|
+
}
|
|
2095
|
+
function ee(e) {
|
|
2096
|
+
if (b.value = b.value.filter((t) => t !== e), m.value) {
|
|
2097
|
+
let t = e.match(/\((.*?)\)/)?.[1];
|
|
2098
|
+
g(() => {
|
|
2099
|
+
m.value?.setChecked(t, !1);
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
async function te() {
|
|
2104
|
+
if (!v.filterText?.trim()) return v.searchData = [];
|
|
2105
|
+
let e = await k({
|
|
2106
|
+
page: 1,
|
|
2107
|
+
pageSize: 9999,
|
|
2108
|
+
name: v.filterText?.trim()
|
|
2109
|
+
});
|
|
2110
|
+
if (e.code !== "ok") return Z.error(e.message);
|
|
2111
|
+
v.searchData = (e?.table || []).map((e) => ({
|
|
2112
|
+
...e,
|
|
2113
|
+
code: e.account
|
|
2114
|
+
}));
|
|
2115
|
+
}
|
|
2116
|
+
function I(e, t) {
|
|
2117
|
+
let n = t?.checkedNodes?.map((e) => `${e.name}(${e.account ?? e.code})`);
|
|
2118
|
+
b.value = ir([...b.value, ...n]);
|
|
2119
|
+
}
|
|
2120
|
+
function z() {
|
|
2121
|
+
let e = p === "all" ? b.value : b.value?.map((e) => {
|
|
2122
|
+
let [t, n] = e.split("(");
|
|
2123
|
+
return {
|
|
2124
|
+
name: t.trim(),
|
|
2125
|
+
account: n?.replace(")", "")
|
|
2126
|
+
}[p] || e.trim();
|
|
2127
|
+
});
|
|
2128
|
+
u("change", e), u("update:modelValue", e), _.value = !1, ie();
|
|
2129
|
+
}
|
|
2130
|
+
function re() {
|
|
2131
|
+
u("update:modelValue", void 0), _.value = !1;
|
|
2132
|
+
}
|
|
2133
|
+
function ie() {
|
|
2134
|
+
return v.requiredVisible = D.value && b.value.length === 0, v.requiredVisible;
|
|
2135
|
+
}
|
|
2136
|
+
return o({ validate: ie }), (t, n) => {
|
|
2137
|
+
let o = E("el-select"), s = E("el-input"), u = E("el-tree"), d = E("el-icon"), p = E("el-button"), g = E("el-dialog");
|
|
2138
|
+
return x(), i(e, null, [a("div", {
|
|
2139
|
+
class: "staff-select-trigger",
|
|
2140
|
+
onClick: n[1] ||= (e) => !f.disabled && N()
|
|
2141
|
+
}, [l(o, h({
|
|
2142
|
+
...t.$attrs,
|
|
2143
|
+
...t.$props
|
|
2144
|
+
}, {
|
|
2145
|
+
modelValue: b.value,
|
|
2146
|
+
"onUpdate:modelValue": n[0] ||= (e) => b.value = e,
|
|
2147
|
+
class: { "is-required": v.requiredVisible },
|
|
2148
|
+
options: y.value,
|
|
2149
|
+
placeholder: "请选择",
|
|
2150
|
+
multiple: "",
|
|
2151
|
+
disabled: f.disabled,
|
|
2152
|
+
props: {
|
|
2153
|
+
label: "label",
|
|
2154
|
+
value: "account"
|
|
2155
|
+
}
|
|
2156
|
+
}), null, 16, [
|
|
2157
|
+
"modelValue",
|
|
2158
|
+
"class",
|
|
2159
|
+
"options",
|
|
2160
|
+
"disabled"
|
|
2161
|
+
])]), l(g, {
|
|
2162
|
+
modelValue: _.value,
|
|
2163
|
+
"onUpdate:modelValue": n[3] ||= (e) => _.value = e,
|
|
2164
|
+
style: {
|
|
2165
|
+
height: "480px",
|
|
2166
|
+
width: "70%",
|
|
2167
|
+
"z-index": "10000"
|
|
2168
|
+
},
|
|
2169
|
+
"show-close": !1,
|
|
2170
|
+
"append-to-body": "",
|
|
2171
|
+
"close-on-click-modal": !1,
|
|
2172
|
+
"destroy-on-close": ""
|
|
2173
|
+
}, {
|
|
2174
|
+
default: R(() => [a("div", Mr, [a("div", Nr, [l(s, {
|
|
2175
|
+
placeholder: "请输入",
|
|
2176
|
+
modelValue: v.filterText,
|
|
2177
|
+
"onUpdate:modelValue": n[2] ||= (e) => v.filterText = e,
|
|
2178
|
+
clearable: "",
|
|
2179
|
+
"prefix-icon": P(ze),
|
|
2180
|
+
onKeydown: ne(te, ["enter"])
|
|
2181
|
+
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
2182
|
+
loading: v.loading,
|
|
2183
|
+
data: T.value,
|
|
2184
|
+
props: { label: "fullName" },
|
|
2185
|
+
"highlight-current": !0,
|
|
2186
|
+
"render-content": M,
|
|
2187
|
+
load: A,
|
|
2188
|
+
onCheck: I,
|
|
2189
|
+
"show-checkbox": "",
|
|
2190
|
+
"check-strictly": "",
|
|
2191
|
+
lazy: "",
|
|
2192
|
+
class: "staff-tree",
|
|
2193
|
+
ref_key: "staffDialogRef",
|
|
2194
|
+
ref: m,
|
|
2195
|
+
"node-key": "code"
|
|
2196
|
+
}, null, 8, ["loading", "data"])]), a("div", Pr, [a("div", Fr, [n[4] ||= a("h3", null, "已选择", -1), b.value.length ? (x(), i("span", Ir, "已选择" + j(b.value.length) + "个用户", 1)) : r("", !0)]), a("div", Lr, [(x(!0), i(e, null, w(b.value, (e) => (x(), i("li", {
|
|
2197
|
+
key: e,
|
|
2198
|
+
class: "staff-item"
|
|
2199
|
+
}, [a("span", null, j(e), 1), l(d, {
|
|
2200
|
+
color: "red",
|
|
2201
|
+
onClick: B((t) => ee(e), ["stop"])
|
|
2202
|
+
}, {
|
|
2203
|
+
default: R(() => [l(P(Ve))]),
|
|
2204
|
+
_: 1
|
|
2205
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", Rr, [l(p, { onClick: re }, {
|
|
2206
|
+
default: R(() => [...n[5] ||= [c("取消", -1)]]),
|
|
2207
|
+
_: 1
|
|
2208
|
+
}), l(p, {
|
|
2209
|
+
type: "primary",
|
|
2210
|
+
onClick: z
|
|
2211
|
+
}, {
|
|
2212
|
+
default: R(() => [...n[6] ||= [c("确定", -1)]]),
|
|
2213
|
+
_: 1
|
|
2214
|
+
})])]),
|
|
2215
|
+
_: 1
|
|
2216
|
+
}, 8, ["modelValue"])], 64);
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
}), [["__scopeId", "data-v-f1cfc05c"]]), Br = /* @__PURE__ */ u({
|
|
2220
|
+
__name: "index",
|
|
2221
|
+
props: {
|
|
2222
|
+
multiple: { type: Boolean },
|
|
2223
|
+
type: {},
|
|
2224
|
+
valueAt: {},
|
|
2225
|
+
modelValue: {},
|
|
2226
|
+
token: {}
|
|
2227
|
+
},
|
|
2228
|
+
setup(e, { expose: t }) {
|
|
2229
|
+
let r = e, i = C();
|
|
2230
|
+
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? zr : cr), h({
|
|
2231
|
+
ref_key: "staffSelectRef",
|
|
2232
|
+
ref: i
|
|
2233
|
+
}, {
|
|
2234
|
+
...e.$attrs,
|
|
2235
|
+
...r
|
|
2236
|
+
}), null, 16));
|
|
2237
|
+
}
|
|
2238
|
+
}), Vr = /* @__PURE__ */ V({ default: () => Hr }), Hr = Br, Ur = { class: "file-left" }, Wr = { class: "file-name" }, Gr = {
|
|
2239
|
+
key: 0,
|
|
2240
|
+
class: "file-size"
|
|
2241
|
+
}, Kr = ["onClick"], qr = ["onClick"], Jr = ["onClick"], Yr = { class: "file-actions" }, Xr = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
2242
|
+
__name: "file",
|
|
2243
|
+
props: {
|
|
2244
|
+
icon: {},
|
|
2245
|
+
limit: {},
|
|
2246
|
+
size: {},
|
|
2247
|
+
prop: {},
|
|
2248
|
+
text: {},
|
|
2249
|
+
type: {},
|
|
2250
|
+
defaultValue: {},
|
|
2251
|
+
fileList: {},
|
|
2252
|
+
action: {},
|
|
2253
|
+
onChange: { type: Function },
|
|
2254
|
+
accept: {},
|
|
2255
|
+
showStatusIcon: { type: Boolean },
|
|
2256
|
+
disabled: { type: Boolean }
|
|
2257
|
+
},
|
|
2258
|
+
setup(e) {
|
|
2259
|
+
let o = e, u = F(), { text: d = "选择文件", icon: f = void 0, size: p = "default", accept: m } = o, g = u.disabled, v = u.onRemove, y = t(() => o.showStatusIcon !== !1), b = C(o.fileList || []);
|
|
2260
|
+
I(() => o.fileList, (e) => {
|
|
2261
|
+
b.value = e || [];
|
|
2262
|
+
}, {
|
|
2263
|
+
immediate: !0,
|
|
2264
|
+
deep: !0
|
|
2265
|
+
});
|
|
2266
|
+
let S = t(() => !1), w = t(() => o.limit !== void 0 && u.count >= o.limit), D = t(() => o.limit !== void 0 && u.count >= o.limit), O = t(() => b.value.some((e) => e.status === "uploading"));
|
|
2267
|
+
function k(e) {
|
|
2268
|
+
return e < 1024 ? e + "B" : e < 1024 * 1024 ? (e / 1024).toFixed(2) + "KB" : e < 1024 * 1024 * 1024 ? (e / (1024 * 1024)).toFixed(2) + "MB" : (e / (1024 * 1024 * 1024)).toFixed(2) + "GB";
|
|
2269
|
+
}
|
|
2270
|
+
function A(e) {
|
|
2271
|
+
let t = b.value.indexOf(e);
|
|
2272
|
+
t > -1 && (b.value.splice(t, 1), v && v(e, [...b.value]));
|
|
2273
|
+
}
|
|
2274
|
+
function M(e) {
|
|
2275
|
+
if (!e.downloadUrl) return;
|
|
2276
|
+
let t = document.createElement("a");
|
|
2277
|
+
t.href = e.downloadUrl?.includes("token") ? e.downloadUrl : `${e.downloadUrl}&token=${localStorage.getItem("TOKEN")}`, t.download = e.name || "download", document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
2278
|
+
}
|
|
2279
|
+
function N(e) {
|
|
2280
|
+
if (!e.downloadUrl) return;
|
|
2281
|
+
let t = e.downloadUrl?.includes("token") ? e.downloadUrl : `${e.downloadUrl}&token=${localStorage.getItem("TOKEN")}`;
|
|
2282
|
+
navigator.clipboard.writeText(t), Z.success("复制成功");
|
|
2283
|
+
}
|
|
2284
|
+
return (e, t) => {
|
|
2285
|
+
let u = E("el-button"), v = E("el-icon"), C = E("el-upload");
|
|
2286
|
+
return x(), n(C, h(e.$attrs, {
|
|
2287
|
+
style: { width: "100%" },
|
|
2288
|
+
action: o.action,
|
|
2289
|
+
"file-list": b.value,
|
|
2290
|
+
"onUpdate:fileList": t[0] ||= (e) => b.value = e,
|
|
2291
|
+
limit: o.limit,
|
|
2292
|
+
accept: P(m),
|
|
2293
|
+
class: {
|
|
2294
|
+
"hide-upload-list": S.value,
|
|
2295
|
+
"hide-upload-text": w.value
|
|
2296
|
+
}
|
|
2297
|
+
}), s({
|
|
2298
|
+
file: R(({ file: e }) => [a("div", { class: _(["upload-file-item", { "is-success": e.status === "success" }]) }, [a("div", Ur, [
|
|
2299
|
+
l(v, {
|
|
2300
|
+
class: "file-icon",
|
|
2301
|
+
size: 14
|
|
2302
|
+
}, {
|
|
2303
|
+
default: R(() => [l(P($t))]),
|
|
2304
|
+
_: 1
|
|
2305
|
+
}),
|
|
2306
|
+
a("span", Wr, j(e.name), 1),
|
|
2307
|
+
e.size ? (x(), i("span", Gr, "(" + j(k(e.size)) + ")", 1)) : r("", !0),
|
|
2308
|
+
e.downloadUrl ? (x(), i("span", {
|
|
2309
|
+
key: 1,
|
|
2310
|
+
class: "download-btn",
|
|
2311
|
+
onClick: B((t) => M(e), ["stop"])
|
|
2312
|
+
}, "下载", 8, Kr)) : r("", !0),
|
|
2313
|
+
e.downloadUrl ? (x(), i("span", {
|
|
2314
|
+
key: 2,
|
|
2315
|
+
class: "copy-btn",
|
|
2316
|
+
onClick: B((t) => N(e), ["stop"])
|
|
2317
|
+
}, "复制", 8, qr)) : r("", !0),
|
|
2318
|
+
P(g) ? r("", !0) : (x(), i("span", {
|
|
2319
|
+
key: 3,
|
|
2320
|
+
class: "remove-btn",
|
|
2321
|
+
onClick: B((t) => A(e), ["stop"])
|
|
2322
|
+
}, "删除", 8, Jr))
|
|
2323
|
+
]), a("div", Yr, [e.status === "uploading" ? (x(), n(v, {
|
|
2324
|
+
key: 0,
|
|
2325
|
+
class: "loading-icon",
|
|
2326
|
+
size: 16
|
|
2327
|
+
}, {
|
|
2328
|
+
default: R(() => [l(P(rn))]),
|
|
2329
|
+
_: 1
|
|
2330
|
+
})) : y.value ? (x(), n(v, {
|
|
2331
|
+
key: 1,
|
|
2332
|
+
class: "success-icon",
|
|
2333
|
+
size: 16,
|
|
2334
|
+
color: "#67c23a"
|
|
2335
|
+
}, {
|
|
2336
|
+
default: R(() => [l(P(cn))]),
|
|
2337
|
+
_: 1
|
|
2338
|
+
})) : r("", !0)])], 2)]),
|
|
2339
|
+
default: R(() => [T(e.$slots, "tip", {}, void 0, !0)]),
|
|
2340
|
+
_: 2
|
|
2341
|
+
}, [D.value ? void 0 : {
|
|
2342
|
+
name: "trigger",
|
|
2343
|
+
fn: R(() => [l(u, {
|
|
2344
|
+
type: "primary",
|
|
2345
|
+
plain: "",
|
|
2346
|
+
icon: P(f),
|
|
2347
|
+
size: P(p),
|
|
2348
|
+
disabled: P(g),
|
|
2349
|
+
loading: O.value
|
|
2350
|
+
}, {
|
|
2351
|
+
default: R(() => [c(j(P(d)), 1)]),
|
|
2352
|
+
_: 1
|
|
2353
|
+
}, 8, [
|
|
2354
|
+
"icon",
|
|
2355
|
+
"size",
|
|
2356
|
+
"disabled",
|
|
2357
|
+
"loading"
|
|
2358
|
+
])]),
|
|
2359
|
+
key: "0"
|
|
2360
|
+
}]), 1040, [
|
|
2361
|
+
"action",
|
|
2362
|
+
"file-list",
|
|
2363
|
+
"limit",
|
|
2364
|
+
"accept",
|
|
2365
|
+
"class"
|
|
2366
|
+
]);
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
}), [["__scopeId", "data-v-5540b7b8"]]), Zr = ["src"], Qr = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
2370
|
+
__name: "image",
|
|
2371
|
+
props: {
|
|
2372
|
+
icon: {},
|
|
2373
|
+
limit: {},
|
|
2374
|
+
size: {},
|
|
2375
|
+
prop: {},
|
|
2376
|
+
text: {},
|
|
2377
|
+
type: {},
|
|
2378
|
+
defaultValue: {},
|
|
2379
|
+
fileList: {},
|
|
2380
|
+
action: {},
|
|
2381
|
+
onChange: { type: Function },
|
|
2382
|
+
accept: {},
|
|
2383
|
+
showStatusIcon: { type: Boolean },
|
|
2384
|
+
disabled: { type: Boolean }
|
|
2385
|
+
},
|
|
2386
|
+
emits: ["update:fileList"],
|
|
2387
|
+
setup(o, { emit: s }) {
|
|
2388
|
+
let c = o, u = s, d = C({}), f = C(!1), p = C([]);
|
|
2389
|
+
I(() => c.fileList, (e) => {
|
|
2390
|
+
p.value = e || [];
|
|
2391
|
+
}, { immediate: !0 });
|
|
2392
|
+
let m = t(() => c.limit !== void 0 && p.value.length >= c.limit);
|
|
2393
|
+
I(p, (e) => u("update:fileList", e), { deep: !0 });
|
|
2394
|
+
function g(e) {
|
|
2395
|
+
d.value = e, f.value = !0;
|
|
2396
|
+
}
|
|
2397
|
+
return (t, o) => {
|
|
2398
|
+
let s = E("el-icon"), u = E("el-upload"), _ = E("el-dialog");
|
|
2399
|
+
return x(), i(e, null, [l(u, h({
|
|
2400
|
+
accept: "image/*",
|
|
2401
|
+
action: c.action
|
|
2402
|
+
}, t.$attrs, {
|
|
2403
|
+
limit: c.limit,
|
|
2404
|
+
"list-type": "picture-card",
|
|
2405
|
+
"on-preview": g,
|
|
2406
|
+
"file-list": p.value,
|
|
2407
|
+
"onUpdate:fileList": o[0] ||= (e) => p.value = e,
|
|
2408
|
+
class: { "hide-upload-item": m.value }
|
|
2409
|
+
}), {
|
|
2410
|
+
default: R(() => [m.value ? r("", !0) : (x(), n(s, { key: 0 }, {
|
|
2411
|
+
default: R(() => [l(P(Ze))]),
|
|
2412
|
+
_: 1
|
|
2413
|
+
}))]),
|
|
2414
|
+
_: 1
|
|
2415
|
+
}, 16, [
|
|
2416
|
+
"action",
|
|
2417
|
+
"limit",
|
|
2418
|
+
"file-list",
|
|
2419
|
+
"class"
|
|
2420
|
+
]), l(_, {
|
|
2421
|
+
modelValue: f.value,
|
|
2422
|
+
"onUpdate:modelValue": o[1] ||= (e) => f.value = e
|
|
2423
|
+
}, {
|
|
2424
|
+
default: R(() => [a("img", {
|
|
2425
|
+
"w-full": "",
|
|
2426
|
+
src: d.value.url,
|
|
2427
|
+
alt: "预览"
|
|
2428
|
+
}, null, 8, Zr)]),
|
|
2429
|
+
_: 1
|
|
2430
|
+
}, 8, ["modelValue"])], 64);
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
}), [["__scopeId", "data-v-98470b3a"]]);
|
|
2434
|
+
//#endregion
|
|
2435
|
+
//#region src/hooks/useFetch.ts
|
|
2436
|
+
function $r(e, n) {
|
|
2437
|
+
let { method: r = "GET", defaultParams: i = {}, defaultData: a = {}, immediate: o = !0, ...s } = n || {}, c = t(() => s?.ready?.value ?? !0), l = ie(() => typeof e == "string" ? q?.[r.toLowerCase()]?.(e, i) : e, a, {
|
|
2438
|
+
...n,
|
|
2439
|
+
immediate: !1
|
|
2440
|
+
});
|
|
2441
|
+
return L(() => {
|
|
2442
|
+
c.value && o && l.execute();
|
|
2443
|
+
}), S({
|
|
2444
|
+
data: l.state,
|
|
2445
|
+
loading: l.isLoading,
|
|
2446
|
+
execute: l.execute,
|
|
2447
|
+
executeImmediate: l.executeImmediate,
|
|
2448
|
+
error: l.error
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
//#endregion
|
|
2452
|
+
//#region src/hooks/useTable.ts
|
|
2453
|
+
function ei(e, n) {
|
|
2454
|
+
let { realParams: r, immediate: i = !0, method: a = "GET", ...o } = n, s = t(() => o?.ready?.value ?? !0), c = A([]), l = S({
|
|
2455
|
+
total: 0,
|
|
2456
|
+
page: 1,
|
|
2457
|
+
pageSize: 10
|
|
2458
|
+
}), u = C([]), d = S({
|
|
2459
|
+
page: l.page,
|
|
2460
|
+
pageSize: l.pageSize,
|
|
2461
|
+
...o.defaultParams
|
|
2462
|
+
}), f = ae(J + e, {
|
|
2463
|
+
immediate: i,
|
|
2464
|
+
async beforeFetch({ options: e, cancel: t }) {
|
|
2465
|
+
return e.headers = new Headers({
|
|
2466
|
+
"Content-Type": "application/json",
|
|
2467
|
+
token: localStorage.getItem("TOKEN") || ""
|
|
2468
|
+
}), r && !d?.[r] && (d[r] = {}), e.body = JSON.stringify(d), e.method = a, s.value || t(), { options: e };
|
|
2469
|
+
},
|
|
2470
|
+
afterFetch: (e) => {
|
|
2471
|
+
let t = JSON.parse(e?.data || "{}");
|
|
2472
|
+
return t.code === "ok" ? (l.total = t?.total || 0, c.value = t?.table || [], o?.onSuccess?.(t), t) : alert(t.message);
|
|
2473
|
+
},
|
|
2474
|
+
onFetchError(e) {
|
|
2475
|
+
return o?.onError?.(e.error), e;
|
|
2476
|
+
}
|
|
2477
|
+
});
|
|
2478
|
+
L(() => {
|
|
2479
|
+
s.value && i && f.execute();
|
|
2480
|
+
});
|
|
2481
|
+
function p(e, t = "/common/delete") {
|
|
2482
|
+
return q.post(t, e);
|
|
2483
|
+
}
|
|
2484
|
+
async function m(e, t = "/common/insert") {
|
|
2485
|
+
return q.post(t, e);
|
|
2486
|
+
}
|
|
2487
|
+
async function h(e, t = "/common/update") {
|
|
2488
|
+
return q.post(t, e);
|
|
2489
|
+
}
|
|
2490
|
+
async function g(e, t = "/common/export") {
|
|
2491
|
+
let n = await q.blob(t, e);
|
|
2492
|
+
console.log("exportData =>>", n);
|
|
2493
|
+
let r = window.URL.createObjectURL(n), i = document.createElement("a");
|
|
2494
|
+
return i.href = r, i.download = `${e?.fileName || "data"}.xlsx`, i.click(), window.URL.revokeObjectURL(r), n;
|
|
2495
|
+
}
|
|
2496
|
+
function _(e) {
|
|
2497
|
+
u.value = e;
|
|
2498
|
+
}
|
|
2499
|
+
function v(e = {}) {
|
|
2500
|
+
let { page: t, ...n } = e?.params || {}, i = r ? d?.[r] : d, a = {};
|
|
2501
|
+
o?.requiredAttrs?.forEach((e) => {
|
|
2502
|
+
a[e] = i?.[e];
|
|
2503
|
+
}), Object.assign(d, e, r ? { params: {
|
|
2504
|
+
...a,
|
|
2505
|
+
...n
|
|
2506
|
+
} } : a), f.execute();
|
|
2507
|
+
}
|
|
2508
|
+
function y(e = {}) {
|
|
2509
|
+
let { page: t, ...n } = e, i = r ? d?.[r] : d;
|
|
2510
|
+
for (let e in i) o?.requiredAttrs?.includes(e) || !n?.[e] && delete i?.[e];
|
|
2511
|
+
l.page = t || 1, l.pageSize = 10, d.page = t || 1, d.pageSize = 10, f.execute();
|
|
2512
|
+
}
|
|
2513
|
+
function b({ page: e, pageSize: t }) {
|
|
2514
|
+
l.page = e, l.pageSize = t, d.page = e, d.pageSize = t, f.execute();
|
|
2515
|
+
}
|
|
2516
|
+
return S({
|
|
2517
|
+
pagination: l,
|
|
2518
|
+
data: c,
|
|
2519
|
+
selection: u,
|
|
2520
|
+
loading: f.isFetching,
|
|
2521
|
+
params: d,
|
|
2522
|
+
updatePagination: b,
|
|
2523
|
+
reset: y,
|
|
2524
|
+
run: v,
|
|
2525
|
+
selectionChange: _,
|
|
2526
|
+
delete: p,
|
|
2527
|
+
remove: p,
|
|
2528
|
+
insert: m,
|
|
2529
|
+
update: h,
|
|
2530
|
+
refresh: f.execute,
|
|
2531
|
+
exportData: g,
|
|
2532
|
+
error: f.error
|
|
2533
|
+
});
|
|
2534
|
+
}
|
|
2535
|
+
//#endregion
|
|
2536
|
+
//#region src/hooks/useRoute.ts
|
|
2537
|
+
var Q = S({
|
|
2538
|
+
hash: window.location.hash,
|
|
2539
|
+
query: {},
|
|
2540
|
+
path: "",
|
|
2541
|
+
mode: "hash"
|
|
2542
|
+
});
|
|
2543
|
+
function ti() {
|
|
2544
|
+
if (Q.hash = window.location.hash, Q.mode = Q.hash.startsWith("#/") || Q.hash.startsWith("#!") ? "hash" : "history", Q.mode === "hash") {
|
|
2545
|
+
let e = Q.hash.startsWith("#") ? Q.hash.slice(1) : Q.hash;
|
|
2546
|
+
e.startsWith("/") || (e = "/" + e);
|
|
2547
|
+
let t = e.indexOf("?");
|
|
2548
|
+
t === -1 ? (Q.path = e, Q.query = {}) : (Q.path = e.slice(0, t), Q.query = Object.fromEntries(new URLSearchParams(e.slice(t + 1))));
|
|
2549
|
+
} else Q.path = window.location.pathname, Q.query = Object.fromEntries(new URLSearchParams(window.location.search));
|
|
2550
|
+
}
|
|
2551
|
+
ti(), window.addEventListener("popstate", ti);
|
|
2552
|
+
function ni(e) {
|
|
2553
|
+
let t = {}, n = e.split("/").filter(Boolean);
|
|
2554
|
+
for (let e = 0; e < n.length - 1; e += 2) {
|
|
2555
|
+
let r = n[e]?.replace(/^:/, "") || "", i = n[e + 1] || "";
|
|
2556
|
+
r && i && (t[r] = i);
|
|
2557
|
+
}
|
|
2558
|
+
return t;
|
|
2559
|
+
}
|
|
2560
|
+
function ri() {
|
|
2561
|
+
return {
|
|
2562
|
+
hash: Q.hash,
|
|
2563
|
+
query: Q.query,
|
|
2564
|
+
path: Q.path,
|
|
2565
|
+
mode: Q.mode,
|
|
2566
|
+
fullPath: window.location.href,
|
|
2567
|
+
params: ni(Q.path)
|
|
2568
|
+
};
|
|
2569
|
+
}
|
|
2570
|
+
function ii() {
|
|
2571
|
+
function e(e) {
|
|
2572
|
+
window.history.pushState({}, "", e), ti();
|
|
2573
|
+
}
|
|
2574
|
+
function t(e) {
|
|
2575
|
+
window.history.replaceState({}, "", e), ti();
|
|
2576
|
+
}
|
|
2577
|
+
function n() {
|
|
2578
|
+
window.history.back();
|
|
2579
|
+
}
|
|
2580
|
+
return {
|
|
2581
|
+
push: e,
|
|
2582
|
+
replace: t,
|
|
2583
|
+
back: n
|
|
2584
|
+
};
|
|
2585
|
+
}
|
|
2586
|
+
//#endregion
|
|
2587
|
+
//#region src/hooks/useDictionary.ts
|
|
2588
|
+
function ai(e) {
|
|
2589
|
+
return q.post("/dictionary/mergeDictionaryValue", e);
|
|
2590
|
+
}
|
|
2591
|
+
function oi(e) {
|
|
2592
|
+
let { page: t = 1, pageSize: n = 10 } = e || {}, r = A([]), i = A([]), { loading: a, execute: o } = $r("/dictionary/pageQueryDictionaryValue", {
|
|
2593
|
+
method: "POST",
|
|
2594
|
+
defaultParams: {
|
|
2595
|
+
dictionaryCode: e.code,
|
|
2596
|
+
page: t,
|
|
2597
|
+
pageSize: n
|
|
2598
|
+
},
|
|
2599
|
+
onSuccess: (e) => {
|
|
2600
|
+
e.code === "ok" && (r.value = e.table || [], i.value = r.value.map((e) => ({
|
|
2601
|
+
label: e.name,
|
|
2602
|
+
value: e.code,
|
|
2603
|
+
description: e.description
|
|
2604
|
+
})));
|
|
2605
|
+
}
|
|
2606
|
+
});
|
|
2607
|
+
async function s(e) {
|
|
2608
|
+
let t = await ai(e);
|
|
2609
|
+
return t.code === "ok" ? t : Z.error(t.message);
|
|
2610
|
+
}
|
|
2611
|
+
return S({
|
|
2612
|
+
loading: a,
|
|
2613
|
+
data: r,
|
|
2614
|
+
options: i,
|
|
2615
|
+
update: s,
|
|
2616
|
+
execute: o
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
//#endregion
|
|
2620
|
+
//#region src/utils/rsaCrypto.ts
|
|
2621
|
+
var si = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmTqXPG9vBsvUS2cmzdboGWL3vnqBlQ6PNdz8y5UxHe7lH8PyyZaquyNDS4BG00g8Yo1jF2I5Kg8jDd6+KLggKCL9xQSQUouU5nU3XAPnyCHS05oi6h7zaH7pP97DcovNsW5sEblncsMm0Xu9AcNHszIlSiX9fDJqi+bIyELyPWCw4QDmPToB+DsrVXxmUqPKxkjqb4yFghWDZY7nNVK28ra8i9KFj9segH4ujGymCorNPY8f8nEIe2+oxrb+dXGv5xmaBfwi/q7EEyMdzTkSDgUnExnkIhJ+Ki43u9cFFMU94noIsOzmFWJ78JAkiG+I9dE2c0XZx4Asm+tBgw+oQIDAQAB";
|
|
2622
|
+
(class e {
|
|
2623
|
+
static instance;
|
|
2624
|
+
encryptor;
|
|
2625
|
+
constructor() {
|
|
2626
|
+
this.encryptor = new oe(), this.encryptor.setPublicKey(si);
|
|
2627
|
+
}
|
|
2628
|
+
static getInstance() {
|
|
2629
|
+
return e.instance ||= new e(), e.instance;
|
|
2630
|
+
}
|
|
2631
|
+
encrypt(e) {
|
|
2632
|
+
let t = this.encryptor.encrypt(e);
|
|
2633
|
+
if (!t) throw Error(`RSA 加密失败,数据: ${e.substring(0, 20)}...`);
|
|
2634
|
+
return t;
|
|
2635
|
+
}
|
|
2636
|
+
}).getInstance();
|
|
2637
|
+
function ci(e) {
|
|
2638
|
+
try {
|
|
2639
|
+
if (!e) return console.warn("Token 为空"), null;
|
|
2640
|
+
let t = e.split(".");
|
|
2641
|
+
if (t.length !== 3) return console.warn("Token 格式无效:不是有效的 JWT"), null;
|
|
2642
|
+
let n = t[1];
|
|
2643
|
+
if (!n) return console.warn("Token 格式无效:缺少 payload"), null;
|
|
2644
|
+
let r = n.replace(/-/g, "+").replace(/_/g, "/"), i = atob(r), a = decodeURIComponent(i.split("").map((e) => "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2)).join(""));
|
|
2645
|
+
return JSON.parse(a);
|
|
2646
|
+
} catch (e) {
|
|
2647
|
+
return console.error("Token 解析失败:", e), null;
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
//#endregion
|
|
2651
|
+
//#region src/hooks/useUser.ts
|
|
2652
|
+
function li() {
|
|
2653
|
+
let e = () => localStorage.getItem("TOKEN"), t = S(ci(e()) || {});
|
|
2654
|
+
function n() {
|
|
2655
|
+
return ci(e());
|
|
2656
|
+
}
|
|
2657
|
+
return {
|
|
2658
|
+
userInfo: t,
|
|
2659
|
+
getUserInfo: n
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
//#endregion
|
|
2663
|
+
//#region src/hooks/index.ts
|
|
2664
|
+
var ui = /* @__PURE__ */ V({
|
|
2665
|
+
useDictionary: () => oi,
|
|
2666
|
+
useFetch: () => $r,
|
|
2667
|
+
useRoute: () => ri,
|
|
2668
|
+
useRouter: () => ii,
|
|
2669
|
+
useTable: () => ei,
|
|
2670
|
+
useUser: () => li
|
|
2671
|
+
}), di = /* @__PURE__ */ u({
|
|
2672
|
+
__name: "index",
|
|
2673
|
+
props: {
|
|
2674
|
+
icon: {},
|
|
2675
|
+
limit: {},
|
|
2676
|
+
size: {},
|
|
2677
|
+
prop: {},
|
|
2678
|
+
text: {},
|
|
2679
|
+
type: {},
|
|
2680
|
+
defaultValue: {},
|
|
2681
|
+
fileList: {},
|
|
2682
|
+
action: {},
|
|
2683
|
+
onChange: { type: Function },
|
|
2684
|
+
accept: {},
|
|
2685
|
+
showStatusIcon: { type: Boolean },
|
|
2686
|
+
disabled: { type: Boolean },
|
|
2687
|
+
data: {}
|
|
2688
|
+
},
|
|
2689
|
+
emits: [
|
|
2690
|
+
"update:modelValue",
|
|
2691
|
+
"update:fileList",
|
|
2692
|
+
"change",
|
|
2693
|
+
"success",
|
|
2694
|
+
"error",
|
|
2695
|
+
"exceed",
|
|
2696
|
+
"remove"
|
|
2697
|
+
],
|
|
2698
|
+
setup(e, { emit: r }) {
|
|
2699
|
+
let i = r, a = e, { type: o = "file", onChange: s, limit: c, action: l, data: u, prop: d, fileList: f, accept: p, disabled: m, ...g } = a, { userInfo: _ } = li(), v = l || `${J}/attachment/uploadAttachment`, y = { token: localStorage.getItem("TOKEN") || "" }, b = t(() => {
|
|
2700
|
+
if (!p) return null;
|
|
2701
|
+
let e = [], t = [];
|
|
2702
|
+
return p.split(",").forEach((n) => {
|
|
2703
|
+
let r = n.trim().toLowerCase();
|
|
2704
|
+
r.startsWith(".") ? e.push(r) : r.includes("/*") && t.push(r.replace("/*", ""));
|
|
2705
|
+
}), {
|
|
2706
|
+
extensions: e,
|
|
2707
|
+
mimePrefixes: t
|
|
2708
|
+
};
|
|
2709
|
+
}), S = (e) => {
|
|
2710
|
+
if (!b.value) return !0;
|
|
2711
|
+
let { extensions: t, mimePrefixes: n } = b.value, r = "." + (e.name.split(".").pop() || "").toLowerCase(), i = t.length === 0 || t.includes(r), a = n.length === 0 || n.some((t) => e.type.startsWith(t));
|
|
2712
|
+
return !i || !a ? (Z.warning(`只能上传 ${p} 格式的文件`), !1) : !0;
|
|
2713
|
+
}, C = t(() => u && d && u[d] ? u[d] : a.fileList || []), w = t(() => C.value.length);
|
|
2714
|
+
function T(e) {
|
|
2715
|
+
i("update:fileList", e);
|
|
2716
|
+
}
|
|
2717
|
+
function E(e, t) {
|
|
2718
|
+
let n = Array.isArray(t) ? t : [];
|
|
2719
|
+
s?.(n, e), i("update:fileList", n), i("update:modelValue", n), i("change", n);
|
|
2720
|
+
}
|
|
2721
|
+
function D() {
|
|
2722
|
+
c && Z.warning(`最多只能上传 ${c} 个文件`);
|
|
2723
|
+
}
|
|
2724
|
+
function k(e, t) {
|
|
2725
|
+
i("update:fileList", t), i("update:modelValue", t), i("remove", t);
|
|
2726
|
+
}
|
|
2727
|
+
function A(e, t) {
|
|
2728
|
+
if (e?.code !== "ok") return Z.error(e?.message);
|
|
2729
|
+
let n = {
|
|
2730
|
+
createdByName: _.name || "",
|
|
2731
|
+
createdBy: _.account || "",
|
|
2732
|
+
creationDate: sr()
|
|
2733
|
+
}, r = u && d && u[d] ? u[d] : a.fileList || [], o = r.some((n) => n?.uid === t.uid || n?.objectKey === e.data?.objectKey), s;
|
|
2734
|
+
s = o ? r.map((r) => r.uid === t.uid ? {
|
|
2735
|
+
...r,
|
|
2736
|
+
status: "success",
|
|
2737
|
+
...e.data,
|
|
2738
|
+
...n
|
|
2739
|
+
} : r) : [...r, {
|
|
2740
|
+
name: t.name,
|
|
2741
|
+
uid: t.uid,
|
|
2742
|
+
size: t.size,
|
|
2743
|
+
status: "success",
|
|
2744
|
+
...e.data,
|
|
2745
|
+
...n
|
|
2746
|
+
}], i("update:fileList", s), i("update:modelValue", s), i("success", s);
|
|
2747
|
+
}
|
|
2748
|
+
function j(e, t, n) {
|
|
2749
|
+
i("update:fileList", n), i("update:modelValue", n);
|
|
2750
|
+
}
|
|
2751
|
+
return (e, t) => (x(), n(O(P(o) === "image" ? Qr : Xr), h({
|
|
2752
|
+
ref: "uploadInstance",
|
|
2753
|
+
name: "file",
|
|
2754
|
+
action: P(v),
|
|
2755
|
+
headers: y,
|
|
2756
|
+
"on-change": E,
|
|
2757
|
+
"on-exceed": D,
|
|
2758
|
+
"on-remove": k,
|
|
2759
|
+
"on-success": A,
|
|
2760
|
+
"on-error": j,
|
|
2761
|
+
"file-list": C.value,
|
|
2762
|
+
"onUpdate:fileList": T,
|
|
2763
|
+
count: w.value,
|
|
2764
|
+
limit: P(c),
|
|
2765
|
+
"before-upload": S,
|
|
2766
|
+
accept: P(p),
|
|
2767
|
+
disabled: P(m)
|
|
2768
|
+
}, g), null, 16, [
|
|
2769
|
+
"action",
|
|
2770
|
+
"file-list",
|
|
2771
|
+
"count",
|
|
2772
|
+
"limit",
|
|
2773
|
+
"accept",
|
|
2774
|
+
"disabled"
|
|
2775
|
+
]));
|
|
2776
|
+
}
|
|
2777
|
+
}), fi = /* @__PURE__ */ V({ default: () => pi }), pi = di;
|
|
2778
|
+
//#endregion
|
|
2779
|
+
//#region src/components/YcApproval/useDetail.ts
|
|
2780
|
+
function mi(e) {
|
|
2781
|
+
return q.post("/process/operateProcess", e);
|
|
2782
|
+
}
|
|
2783
|
+
function hi(e) {
|
|
2784
|
+
let n = ri(), { userInfo: r } = li(), i = C(), a = C(), o = C({}), s = C(!1), c = S({
|
|
2785
|
+
code: "",
|
|
2786
|
+
confirmVisible: !1,
|
|
2787
|
+
nextAssigneeVisible: !1,
|
|
2788
|
+
nextActivityVisible: !1,
|
|
2789
|
+
buttonList: [],
|
|
2790
|
+
currentHandlers: "",
|
|
2791
|
+
current: r.account,
|
|
2792
|
+
activityName: ""
|
|
2793
|
+
}), l = S({
|
|
2794
|
+
processInfo: {
|
|
2795
|
+
processId: "",
|
|
2796
|
+
processTitle: "",
|
|
2797
|
+
createdBy: "",
|
|
2798
|
+
createdByName: "",
|
|
2799
|
+
activityName: "",
|
|
2800
|
+
creationDate: "",
|
|
2801
|
+
assignee: "",
|
|
2802
|
+
assigneeName: "",
|
|
2803
|
+
processCode: e?.processCode,
|
|
2804
|
+
processVersion: void 0,
|
|
2805
|
+
activityId: "",
|
|
2806
|
+
activityCode: ""
|
|
2807
|
+
},
|
|
2808
|
+
processData: {
|
|
2809
|
+
attachment: "",
|
|
2810
|
+
direction: "",
|
|
2811
|
+
readScope: "",
|
|
2812
|
+
signScope: ""
|
|
2813
|
+
},
|
|
2814
|
+
action: "",
|
|
2815
|
+
businessData: {},
|
|
2816
|
+
historyList: [],
|
|
2817
|
+
nextAssignee: "",
|
|
2818
|
+
nextActivity: "",
|
|
2819
|
+
comments: ""
|
|
2820
|
+
}), u = t(() => [
|
|
2821
|
+
{
|
|
2822
|
+
label: "流程主题",
|
|
2823
|
+
prop: "processTitle",
|
|
2824
|
+
required: !s.value,
|
|
2825
|
+
render: ({ h: e, data: t }) => s.value ? t?.processTitle || "" : e.input()
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
label: "创建者",
|
|
2829
|
+
prop: "createdByName",
|
|
2830
|
+
span: 12,
|
|
2831
|
+
render: ({ data: e }) => e?.createdByName || ""
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
label: "创建时间",
|
|
2835
|
+
prop: "creationDate",
|
|
2836
|
+
span: 12,
|
|
2837
|
+
render: ({ data: e }) => e?.creationDate || ""
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
label: "当前环节",
|
|
2841
|
+
prop: "activityName",
|
|
2842
|
+
span: 12,
|
|
2843
|
+
render: ({ data: e }) => e?.activityName
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
label: "当前处理人",
|
|
2847
|
+
prop: "assigneeName",
|
|
2848
|
+
span: 12,
|
|
2849
|
+
render: ({ data: e }) => e?.assigneeName || ""
|
|
2850
|
+
}
|
|
2851
|
+
]);
|
|
2852
|
+
$r("/process/queryProcessDetail", {
|
|
2853
|
+
defaultParams: {
|
|
2854
|
+
processCode: e.processCode,
|
|
2855
|
+
instanceId: n.query?.instanceId || ""
|
|
2856
|
+
},
|
|
2857
|
+
onSuccess: (e) => {
|
|
2858
|
+
let t = e.data || {};
|
|
2859
|
+
Object.assign(l, t), c.buttonList = t.buttonList || [];
|
|
2860
|
+
let n = ["ACT_START", "ACT_DRAFT"], i = n.includes(t?.processInfo?.activityCode) ? r.account : (t?.instanceHandlerList || [])?.find((e) => e.activityName === t.processInfo?.activityName)?.assignee, a = n.includes(t?.processInfo?.activityCode) && i?.includes(r.account);
|
|
2861
|
+
s.value = !a, sessionStorage.setItem("disabled", (!a).toString()), sessionStorage.setItem("activityCode", t?.processInfo?.activityCode);
|
|
2862
|
+
try {
|
|
2863
|
+
l.processData = t.processData ? JSON.parse(t.processData) : {}, l.businessData = Array.isArray(t?.businessData) ? t.businessData?.at(-1) : t?.businessData || {};
|
|
2864
|
+
} catch (e) {
|
|
2865
|
+
console.log("queryProcessDetail error ->>>", e);
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
});
|
|
2869
|
+
let d = t(() => {
|
|
2870
|
+
let e = [];
|
|
2871
|
+
if (c.nextActivityVisible) {
|
|
2872
|
+
let t = o.value?.getValues();
|
|
2873
|
+
if (!t?.length) return;
|
|
2874
|
+
let n = t.findIndex((e) => e.activityCode === l.processInfo?.activityCode);
|
|
2875
|
+
e = t.slice(0, n).map((e) => ({
|
|
2876
|
+
label: e.activityName || "",
|
|
2877
|
+
value: e.activityId || ""
|
|
2878
|
+
}));
|
|
2879
|
+
}
|
|
2880
|
+
return [
|
|
2881
|
+
c.nextAssigneeVisible && {
|
|
2882
|
+
prop: "nextAssignee",
|
|
2883
|
+
label: "处理人",
|
|
2884
|
+
render: ({ h: e }) => e.staffSelect({ multiple: !0 })
|
|
2885
|
+
},
|
|
2886
|
+
c.nextActivityVisible && {
|
|
2887
|
+
prop: "nextActivity",
|
|
2888
|
+
label: "退回环节",
|
|
2889
|
+
render: ({ h: t }) => t.radio({
|
|
2890
|
+
multiple: !0,
|
|
2891
|
+
options: e
|
|
2892
|
+
})
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
prop: "comments",
|
|
2896
|
+
label: "审批意见",
|
|
2897
|
+
render: ({ h: e }) => e.textarea({ rows: 4 })
|
|
2898
|
+
}
|
|
2899
|
+
].filter(Boolean);
|
|
2900
|
+
});
|
|
2901
|
+
async function f() {
|
|
2902
|
+
if (!a.value || !i.value || !o.value) return;
|
|
2903
|
+
let t = await i.value?.validate(), r = await o.value?.validate(), s = await e?.getData?.() || {};
|
|
2904
|
+
if (t || r || !s || !Object.keys(s).length) return Z.warning("存在必填内容未填写,请检查表单必填项!");
|
|
2905
|
+
Object.assign(l.processInfo, i.value.getValues() || {}), l.instanceHandlerList = o.value.getValues(), l.processData.readScope = a.value?.formData?.readScope || [];
|
|
2906
|
+
let u = await mi({
|
|
2907
|
+
processInfo: { ...N(l.processInfo) },
|
|
2908
|
+
processData: JSON.stringify(l.processData),
|
|
2909
|
+
instanceHandlerList: l.instanceHandlerList,
|
|
2910
|
+
businessData: s,
|
|
2911
|
+
action: c.code,
|
|
2912
|
+
comments: l.comments,
|
|
2913
|
+
nextAssignee: c.nextAssigneeVisible ? l.nextAssignee : void 0,
|
|
2914
|
+
nextActivity: c.nextActivityVisible ? l.nextActivity : void 0
|
|
2915
|
+
});
|
|
2916
|
+
if (u.code === "ok" && u.data) {
|
|
2917
|
+
if (Z.success("提交成功, 即将刷新页面..."), !u?.data) return Z.warning("刷新页面失败...");
|
|
2918
|
+
let e = u.data, t = {
|
|
2919
|
+
...n.query,
|
|
2920
|
+
instanceId: e
|
|
2921
|
+
}, r = n.mode === "hash" ? `${window.location.hash.split("?")[0]}?${new URLSearchParams(t).toString()}` : `${window.location.pathname}?${new URLSearchParams(t).toString()}`;
|
|
2922
|
+
setTimeout(() => {
|
|
2923
|
+
window.location.href = r, window.location.reload();
|
|
2924
|
+
}, 1500);
|
|
2925
|
+
} else Z.error(u?.message || "提交失败");
|
|
2926
|
+
}
|
|
2927
|
+
async function p(e) {
|
|
2928
|
+
c.code = e, c.nextActivityVisible = e === "back", c.nextAssigneeVisible = ["forward", "reassign"].includes(e), c.confirmVisible = ![
|
|
2929
|
+
"withdraw",
|
|
2930
|
+
"draft",
|
|
2931
|
+
"save"
|
|
2932
|
+
].includes(e), c.confirmVisible || await f();
|
|
2933
|
+
}
|
|
2934
|
+
async function m(e) {
|
|
2935
|
+
l.comments = e.comments, l.nextAssignee = ((Array.isArray(e.nextAssignee) ? e.nextAssignee?.join(",") : e.nextAssignee)?.match(/\(([^)]+)\)/g)?.map((e) => e.slice(1, -1)) || []).join(","), l.nextActivity = e.nextActivity, c.confirmVisible = !1, await f();
|
|
2936
|
+
}
|
|
2937
|
+
return {
|
|
2938
|
+
processInfoRef: i,
|
|
2939
|
+
readScopeRef: a,
|
|
2940
|
+
remindRef: o,
|
|
2941
|
+
disabled: s,
|
|
2942
|
+
states: c,
|
|
2943
|
+
confirmFields: d,
|
|
2944
|
+
formData: l,
|
|
2945
|
+
baseFields: u,
|
|
2946
|
+
buttonClick: p,
|
|
2947
|
+
onConfirmSubmit: m
|
|
2948
|
+
};
|
|
2949
|
+
}
|
|
2950
|
+
//#endregion
|
|
2951
|
+
//#region src/components/YcApproval/useBtnActive.ts
|
|
2952
|
+
function gi({ processCode: e }) {
|
|
2953
|
+
let n = localStorage.getItem("TOkEN"), r = oi({
|
|
2954
|
+
code: "ApprovalButtonActive",
|
|
2955
|
+
pageSize: 100
|
|
2956
|
+
}), i = t(() => {
|
|
2957
|
+
let e = /* @__PURE__ */ new Map();
|
|
2958
|
+
return r.data?.forEach((t) => {
|
|
2959
|
+
e.set(t.code, [t.name, t.description || "default"]);
|
|
2960
|
+
}), e;
|
|
2961
|
+
});
|
|
2962
|
+
function a() {
|
|
2963
|
+
let t = `/intellicit-service/#/flowchart?processCode=${e}&instanceId=&token=${n}`;
|
|
2964
|
+
window.open(t);
|
|
2965
|
+
}
|
|
2966
|
+
return {
|
|
2967
|
+
btnActiveMaps: i,
|
|
2968
|
+
toFlowchart: a
|
|
2969
|
+
};
|
|
2970
|
+
}
|
|
2971
|
+
//#endregion
|
|
2972
|
+
//#region src/components/YcApproval/Remind.vue?vue&type=script&setup=true&lang.ts
|
|
2973
|
+
var _i = { key: 0 }, vi = /* @__PURE__ */ u({
|
|
2974
|
+
__name: "Remind",
|
|
2975
|
+
props: {
|
|
2976
|
+
disabled: { type: Boolean },
|
|
2977
|
+
formData: {}
|
|
2978
|
+
},
|
|
2979
|
+
setup(e, { expose: r }) {
|
|
2980
|
+
let s = o(e, ["formData"]), { userInfo: u } = li(), d = C([]), f = C([]);
|
|
2981
|
+
$r("/process/queryProcessActivity", {
|
|
2982
|
+
defaultParams: t(() => ({ processId: e.formData?.processInfo?.processId })),
|
|
2983
|
+
ready: t(() => !!e.formData?.processInfo?.processId && e.formData?.processInfo?.activityCode === "ACT_START"),
|
|
2984
|
+
onSuccess: (t) => {
|
|
2985
|
+
e.formData?.instanceHandlerList && e.formData?.instanceHandlerList.length > 0 || (d.value = (t?.data || []).filter((e) => e.code !== "ACT_END").map((e) => e.code === "ACT_START" ? {
|
|
2986
|
+
activityCode: e.code,
|
|
2987
|
+
activityId: e.id,
|
|
2988
|
+
code: e.code,
|
|
2989
|
+
activityName: e.name,
|
|
2990
|
+
assigneeName: `${u.name}(${u.account})`
|
|
2991
|
+
} : {
|
|
2992
|
+
activityCode: e.code,
|
|
2993
|
+
activityId: e.id,
|
|
2994
|
+
code: e.code,
|
|
2995
|
+
activityName: e.name
|
|
2996
|
+
}));
|
|
2997
|
+
}
|
|
2998
|
+
}), L(() => {
|
|
2999
|
+
d.value = (e.formData?.instanceHandlerList || []).map((e, t) => {
|
|
3000
|
+
if (t === 0) return {
|
|
3001
|
+
...e,
|
|
3002
|
+
assigneeName: e?.assignee ? `${e.assigneeName}(${e.assignee})` : ""
|
|
3003
|
+
};
|
|
3004
|
+
let n = e.assigneeName?.split(","), r = e?.assignee?.split(","), i = n?.map((e, t) => `${e}(${r?.[t]})`);
|
|
3005
|
+
return {
|
|
3006
|
+
...e,
|
|
3007
|
+
assigneeName: i
|
|
3008
|
+
};
|
|
3009
|
+
});
|
|
3010
|
+
});
|
|
3011
|
+
function p() {
|
|
3012
|
+
let e = !1;
|
|
3013
|
+
return f.value?.forEach((t) => {
|
|
3014
|
+
e = t?.validate();
|
|
3015
|
+
}), e;
|
|
3016
|
+
}
|
|
3017
|
+
function m() {
|
|
3018
|
+
return d.value.map((e, t) => {
|
|
3019
|
+
let n = e?.assigneeName;
|
|
3020
|
+
if (t === 0) {
|
|
3021
|
+
let t = n?.includes("(") ? n?.slice(0, n?.indexOf("(")) : n, r = n.slice(n.indexOf("(") + 1, -1);
|
|
3022
|
+
return {
|
|
3023
|
+
...e,
|
|
3024
|
+
assignee: r,
|
|
3025
|
+
assigneeName: t
|
|
3026
|
+
};
|
|
3027
|
+
}
|
|
3028
|
+
let r = (n || [])?.reduce((e, t) => {
|
|
3029
|
+
let n = t?.includes("(") ? t?.slice(0, t?.indexOf("(")) : t, r = t.slice(t.indexOf("(") + 1, -1);
|
|
3030
|
+
return e.name.push(n), e.account.push(r), e;
|
|
3031
|
+
}, {
|
|
3032
|
+
name: [],
|
|
3033
|
+
account: []
|
|
3034
|
+
});
|
|
3035
|
+
return {
|
|
3036
|
+
...e,
|
|
3037
|
+
assignee: r.account?.join(","),
|
|
3038
|
+
assigneeName: r.name?.join(",")
|
|
3039
|
+
};
|
|
3040
|
+
});
|
|
3041
|
+
}
|
|
3042
|
+
return r({
|
|
3043
|
+
getValues: m,
|
|
3044
|
+
validate: p
|
|
3045
|
+
}), (e, t) => {
|
|
3046
|
+
let r = E("el-table-column"), o = E("YcStaffSelect"), u = E("el-table"), p = E("yc-card");
|
|
3047
|
+
return x(), n(p, {
|
|
3048
|
+
icon: P(Yt),
|
|
3049
|
+
title: "流程提醒",
|
|
3050
|
+
hideBorder: !0,
|
|
3051
|
+
style: { "margin-bottom": "15px" }
|
|
3052
|
+
}, {
|
|
3053
|
+
default: R(() => [l(u, { data: d.value }, {
|
|
3054
|
+
default: R(() => [
|
|
3055
|
+
l(r, {
|
|
3056
|
+
label: "序号",
|
|
3057
|
+
type: "index",
|
|
3058
|
+
width: "60"
|
|
3059
|
+
}),
|
|
3060
|
+
l(r, {
|
|
3061
|
+
label: "流程环节",
|
|
3062
|
+
prop: "activityName"
|
|
3063
|
+
}),
|
|
3064
|
+
l(r, { prop: "assigneeName" }, {
|
|
3065
|
+
header: R(() => [...t[0] ||= [c("处理人 ", -1), a("span", { style: { color: "red" } }, "*", -1)]]),
|
|
3066
|
+
default: R(({ row: e, $index: t }) => [t === 0 ? (x(), i("span", _i, j(e.assigneeName), 1)) : (x(), n(o, {
|
|
3067
|
+
key: 1,
|
|
3068
|
+
ref: (e) => f.value[t] = e,
|
|
3069
|
+
modelValue: e.assigneeName,
|
|
3070
|
+
"onUpdate:modelValue": (t) => e.assigneeName = t,
|
|
3071
|
+
type: "dialog",
|
|
3072
|
+
valueOf: "all",
|
|
3073
|
+
disabled: s.disabled,
|
|
3074
|
+
required: ""
|
|
3075
|
+
}, null, 8, [
|
|
3076
|
+
"modelValue",
|
|
3077
|
+
"onUpdate:modelValue",
|
|
3078
|
+
"disabled"
|
|
3079
|
+
]))]),
|
|
3080
|
+
_: 1
|
|
3081
|
+
})
|
|
3082
|
+
]),
|
|
3083
|
+
_: 1
|
|
3084
|
+
}, 8, ["data"])]),
|
|
3085
|
+
_: 1
|
|
3086
|
+
}, 8, ["icon"]);
|
|
3087
|
+
};
|
|
3088
|
+
}
|
|
3089
|
+
}), yi = /* @__PURE__ */ u({
|
|
3090
|
+
__name: "ReadScope",
|
|
3091
|
+
props: {
|
|
3092
|
+
disabled: { type: Boolean },
|
|
3093
|
+
formData: {}
|
|
3094
|
+
},
|
|
3095
|
+
setup(e, { expose: t }) {
|
|
3096
|
+
let r = e, i = S({ readScope: "" });
|
|
3097
|
+
return L(() => {
|
|
3098
|
+
i.readScope = r.formData?.processData?.readScope || [];
|
|
3099
|
+
}), t({ formData: i }), (e, t) => {
|
|
3100
|
+
let a = E("YcStaffSelect"), o = E("el-form-item"), s = E("el-form"), c = E("yc-card");
|
|
3101
|
+
return x(), n(c, {
|
|
3102
|
+
icon: P(qe),
|
|
3103
|
+
title: "阅读范围",
|
|
3104
|
+
hideBorder: !0,
|
|
3105
|
+
style: { "margin-bottom": "15px" }
|
|
3106
|
+
}, {
|
|
3107
|
+
default: R(() => [l(s, {
|
|
3108
|
+
model: i,
|
|
3109
|
+
"label-width": "100px",
|
|
3110
|
+
"label-position": "left"
|
|
3111
|
+
}, {
|
|
3112
|
+
default: R(() => [l(o, {
|
|
3113
|
+
label: "阅读范围",
|
|
3114
|
+
prop: "readScope"
|
|
3115
|
+
}, {
|
|
3116
|
+
default: R(() => [l(a, {
|
|
3117
|
+
modelValue: i.readScope,
|
|
3118
|
+
"onUpdate:modelValue": t[0] ||= (e) => i.readScope = e,
|
|
3119
|
+
type: "dialog",
|
|
3120
|
+
disabled: r.disabled
|
|
3121
|
+
}, null, 8, ["modelValue", "disabled"])]),
|
|
3122
|
+
_: 1
|
|
3123
|
+
})]),
|
|
3124
|
+
_: 1
|
|
3125
|
+
}, 8, ["model"])]),
|
|
3126
|
+
_: 1
|
|
3127
|
+
}, 8, ["icon"]);
|
|
3128
|
+
};
|
|
3129
|
+
}
|
|
3130
|
+
}), bi = /* @__PURE__ */ u({
|
|
3131
|
+
__name: "History",
|
|
3132
|
+
props: { formData: {} },
|
|
3133
|
+
setup(e) {
|
|
3134
|
+
let t = e, r = [
|
|
3135
|
+
{
|
|
3136
|
+
label: "审批环节",
|
|
3137
|
+
prop: "activityName",
|
|
3138
|
+
width: 120
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
label: "审批人",
|
|
3142
|
+
prop: "allAssigneeName"
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
label: "审批时间",
|
|
3146
|
+
prop: "creationDate",
|
|
3147
|
+
width: 180
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
label: "操作",
|
|
3151
|
+
prop: "actionName",
|
|
3152
|
+
width: 120
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
label: "意见",
|
|
3156
|
+
prop: "comments"
|
|
3157
|
+
}
|
|
3158
|
+
];
|
|
3159
|
+
return (e, i) => {
|
|
3160
|
+
let a = E("yc-table"), o = E("yc-card");
|
|
3161
|
+
return x(), n(o, {
|
|
3162
|
+
icon: P(Gt),
|
|
3163
|
+
title: "审批历史",
|
|
3164
|
+
hideBorder: !0,
|
|
3165
|
+
style: { "margin-bottom": "15px" }
|
|
3166
|
+
}, {
|
|
3167
|
+
default: R(() => [l(a, {
|
|
3168
|
+
data: t?.formData?.historyList,
|
|
3169
|
+
columns: r,
|
|
3170
|
+
hidePagination: !0
|
|
3171
|
+
}, null, 8, ["data"])]),
|
|
3172
|
+
_: 1
|
|
3173
|
+
}, 8, ["icon"]);
|
|
3174
|
+
};
|
|
3175
|
+
}
|
|
3176
|
+
}), xi = { class: "fixed-buttons" }, Si = { key: 0 }, Ci = /* @__PURE__ */ u({
|
|
3177
|
+
__name: "index",
|
|
3178
|
+
props: {
|
|
3179
|
+
processCode: {},
|
|
3180
|
+
getData: { type: Function }
|
|
3181
|
+
},
|
|
3182
|
+
setup(t) {
|
|
3183
|
+
let o = t, s = o.processCode || ri().params.processCode, u = {
|
|
3184
|
+
IntegratedApprovalProcess: "手工构建流程",
|
|
3185
|
+
SoftwareReleaseProcess: "软件释放流程"
|
|
3186
|
+
}, { btnActiveMaps: d, toFlowchart: f } = gi({ processCode: s }), { processInfoRef: p, readScopeRef: m, remindRef: h, disabled: g, formData: _, states: v, confirmFields: y, baseFields: b, buttonClick: S, onConfirmSubmit: C } = hi(o);
|
|
3187
|
+
return (t, o) => {
|
|
3188
|
+
let O = E("el-button"), k = E("yc-form"), A = E("yc-card"), M = E("el-card"), N = E("el-dialog"), F = D("sticky");
|
|
3189
|
+
return x(), i(e, null, [l(M, { style: { margin: "0px 120px" } }, {
|
|
3190
|
+
default: R(() => [
|
|
3191
|
+
z((x(), i("div", xi, [P(v).buttonList.length ? (x(), i("div", Si, [(x(!0), i(e, null, w(P(v).buttonList, (e) => (x(), n(O, {
|
|
3192
|
+
key: e.code,
|
|
3193
|
+
type: P(d)?.get(e.code)?.[1] || "default",
|
|
3194
|
+
onClick: (t) => P(S)(e.code)
|
|
3195
|
+
}, {
|
|
3196
|
+
default: R(() => [c(j(e.name), 1)]),
|
|
3197
|
+
_: 2
|
|
3198
|
+
}, 1032, ["type", "onClick"]))), 128)), l(O, {
|
|
3199
|
+
icon: P(Vt),
|
|
3200
|
+
onClick: P(f)
|
|
3201
|
+
}, {
|
|
3202
|
+
default: R(() => [...o[1] ||= [c("流程图", -1)]]),
|
|
3203
|
+
_: 1
|
|
3204
|
+
}, 8, ["icon", "onClick"])])) : r("", !0), a("h3", null, j(u[P(s)]), 1)])), [[F]]),
|
|
3205
|
+
l(A, {
|
|
3206
|
+
icon: P(xt),
|
|
3207
|
+
title: "基本信息",
|
|
3208
|
+
style: { margin: "20px 0px 15px 0px" },
|
|
3209
|
+
hideBorder: !0
|
|
3210
|
+
}, {
|
|
3211
|
+
default: R(() => [l(k, {
|
|
3212
|
+
ref_key: "processInfoRef",
|
|
3213
|
+
ref: p,
|
|
3214
|
+
model: P(_)?.processInfo,
|
|
3215
|
+
fields: P(b),
|
|
3216
|
+
hideHandle: !0,
|
|
3217
|
+
labelPosition: "left",
|
|
3218
|
+
valueModel: "underline"
|
|
3219
|
+
}, null, 8, ["model", "fields"])]),
|
|
3220
|
+
_: 1
|
|
3221
|
+
}, 8, ["icon"]),
|
|
3222
|
+
T(t.$slots, "default", { data: P(_)?.businessData }, void 0, !0),
|
|
3223
|
+
l(vi, {
|
|
3224
|
+
ref_key: "remindRef",
|
|
3225
|
+
ref: h,
|
|
3226
|
+
"form-data": P(_),
|
|
3227
|
+
disabled: P(g)
|
|
3228
|
+
}, null, 8, ["form-data", "disabled"]),
|
|
3229
|
+
l(yi, {
|
|
3230
|
+
ref_key: "readScopeRef",
|
|
3231
|
+
ref: m,
|
|
3232
|
+
"form-data": P(_),
|
|
3233
|
+
disabled: P(g)
|
|
3234
|
+
}, null, 8, ["form-data", "disabled"]),
|
|
3235
|
+
l(bi, {
|
|
3236
|
+
"form-data": P(_),
|
|
3237
|
+
disabled: P(g)
|
|
3238
|
+
}, null, 8, ["form-data", "disabled"])
|
|
3239
|
+
]),
|
|
3240
|
+
_: 3
|
|
3241
|
+
}), l(N, {
|
|
3242
|
+
modelValue: P(v).confirmVisible,
|
|
3243
|
+
"onUpdate:modelValue": o[0] ||= (e) => P(v).confirmVisible = e,
|
|
3244
|
+
"destroy-on-close": "",
|
|
3245
|
+
"close-on-click-modal": !1
|
|
3246
|
+
}, {
|
|
3247
|
+
default: R(() => [l(k, {
|
|
3248
|
+
fields: P(y),
|
|
3249
|
+
onSubmit: P(C)
|
|
3250
|
+
}, null, 8, ["fields", "onSubmit"])]),
|
|
3251
|
+
_: 1
|
|
3252
|
+
}, 8, ["modelValue"])], 64);
|
|
3253
|
+
};
|
|
3254
|
+
}
|
|
3255
|
+
}), wi = /* @__PURE__ */ V({ default: () => Ti }), Ti = /* @__PURE__ */ H(Ci, [["__scopeId", "data-v-ed24f758"]]), Ei = /* @__PURE__ */ u({
|
|
3256
|
+
__name: "index",
|
|
3257
|
+
setup(e) {
|
|
3258
|
+
let t = C(!1), r = new se({
|
|
3259
|
+
model: "qwen3.5-plus",
|
|
3260
|
+
baseURL: "https://page-ag-testing-ohftxirgbn.cn-shanghai.fcapp.run",
|
|
3261
|
+
apiKey: "",
|
|
3262
|
+
language: "zh-CN"
|
|
3263
|
+
}), i = async () => {
|
|
3264
|
+
t.value = !t.value, t.value ? r.panel.show() : r.panel.hide();
|
|
3265
|
+
};
|
|
3266
|
+
return (e, r) => {
|
|
3267
|
+
let a = E("el-button");
|
|
3268
|
+
return x(), n(a, {
|
|
3269
|
+
class: "affix",
|
|
3270
|
+
type: "primary",
|
|
3271
|
+
onClick: i
|
|
3272
|
+
}, {
|
|
3273
|
+
default: R(() => [c(j(t.value ? "关闭" : "打开") + " AI自动测试 ", 1)]),
|
|
3274
|
+
_: 1
|
|
3275
|
+
});
|
|
3276
|
+
};
|
|
3277
|
+
}
|
|
3278
|
+
}), Di = /* @__PURE__ */ V({ default: () => Oi }), Oi = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-548e27b3"]]), ki = {
|
|
3279
|
+
mounted(e, t) {
|
|
3280
|
+
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
3281
|
+
e._stickyOriginalStyles = {
|
|
3282
|
+
position: e.style.position || "",
|
|
3283
|
+
top: e.style.top || "",
|
|
3284
|
+
zIndex: e.style.zIndex || "",
|
|
3285
|
+
width: e.style.width || ""
|
|
3286
|
+
}, e._stickyConfig = {
|
|
3287
|
+
target: typeof r == "string" ? document.querySelector(r) || document.body : r,
|
|
3288
|
+
top: i
|
|
3289
|
+
}, e._stickyOffsetTop = e.offsetTop, e._stickyScrollListener = () => {
|
|
3290
|
+
(window.pageYOffset || document.documentElement.scrollTop) >= e._stickyOffsetTop - e._stickyConfig.top ? (e.style.position = "fixed", e.style.top = `${e._stickyConfig.top}px`, e.style.zIndex = "100", e.style.width = `${e.offsetWidth}px`) : (e.style.position = e._stickyOriginalStyles.position, e.style.top = e._stickyOriginalStyles.top, e.style.zIndex = e._stickyOriginalStyles.zIndex, e.style.width = e._stickyOriginalStyles.width);
|
|
3291
|
+
}, window.addEventListener("scroll", e._stickyScrollListener, { passive: !0 }), e._stickyScrollListener();
|
|
3292
|
+
},
|
|
3293
|
+
updated(e, t) {
|
|
3294
|
+
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
3295
|
+
e._stickyConfig = {
|
|
3296
|
+
target: typeof r == "string" ? document.querySelector(r) || document.body : r,
|
|
3297
|
+
top: i
|
|
3298
|
+
}, e._stickyOffsetTop = e.offsetTop, e._stickyScrollListener();
|
|
3299
|
+
},
|
|
3300
|
+
unmounted(e) {
|
|
3301
|
+
e._stickyScrollListener && window.removeEventListener("scroll", e._stickyScrollListener), e._stickyOriginalStyles && (e.style.position = e._stickyOriginalStyles.position, e.style.top = e._stickyOriginalStyles.top, e.style.zIndex = e._stickyOriginalStyles.zIndex, e.style.width = e._stickyOriginalStyles.width);
|
|
3302
|
+
}
|
|
3303
|
+
}, Ai = { mounted(e) {
|
|
3304
|
+
e.style.boxShadow = "0px 0px 12px rgba(0, 0, 0, 0.12)", e.style.padding = "20px", e.style.borderRadius = "4px", e.style.border = "1px solid #e4e7ed", e.style.backgroundColor = "#fff";
|
|
3305
|
+
} }, ji = /* @__PURE__ */ V({
|
|
3306
|
+
card: () => Ai,
|
|
3307
|
+
sticky: () => ki
|
|
3308
|
+
}), Mi = "Yc", Ni = {
|
|
3309
|
+
UiCard: fe,
|
|
3310
|
+
UiTable: Pe,
|
|
3311
|
+
UiFilter: hn,
|
|
3312
|
+
UiForm: xn,
|
|
3313
|
+
UiEditor: Tn,
|
|
3314
|
+
UiTree: Fn,
|
|
3315
|
+
UiInfiniteScroll: Un,
|
|
3316
|
+
UiDescriptions: Jn,
|
|
3317
|
+
UiDialog: Qn,
|
|
3318
|
+
UiStaffSelect: Vr,
|
|
3319
|
+
UiUpload: fi,
|
|
3320
|
+
YcApproval: wi,
|
|
3321
|
+
YcPageAgent: Di
|
|
3322
|
+
}, Pi = null;
|
|
3323
|
+
function Fi(e) {
|
|
3324
|
+
Pi = e;
|
|
3325
|
+
}
|
|
3326
|
+
function $() {
|
|
3327
|
+
return Pi;
|
|
3328
|
+
}
|
|
3329
|
+
var Ii = { install(e, t) {
|
|
3330
|
+
t?.elementPlus && t.elementPlus.install(e), Pi ||= {
|
|
3331
|
+
...e,
|
|
3332
|
+
h: f
|
|
3333
|
+
};
|
|
3334
|
+
for (let [t, n] of Object.entries(Ni)) {
|
|
3335
|
+
let r = n?.default || n;
|
|
3336
|
+
if (r && (typeof r == "function" || typeof r == "object")) {
|
|
3337
|
+
let n = t.replace(/^Ui/, Mi);
|
|
3338
|
+
e.component(n, r);
|
|
3339
|
+
let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
3340
|
+
i !== n && e.component(i, r);
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
for (let [t, n] of Object.entries(ln)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
|
|
3344
|
+
for (let [t, n] of Object.entries(ji)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
3345
|
+
e.config.globalProperties.$message = Dr, e.provide?.("message", Dr);
|
|
3346
|
+
} };
|
|
3347
|
+
//#endregion
|
|
3348
|
+
export { fn as A, Qn as C, Tn as D, Fn as E, fe as M, xn as O, q as S, Un as T, J as _, wi as a, ir as b, li as c, ii as d, ei as f, hr as g, Z as h, Di as i, Pe as j, hn as k, oi as l, Vr as m, Fi as n, fi as o, $r as p, Ii as r, ui as s, $ as t, ri as u, sr as v, Jn as w, ar as x, or as y };
|