sag-ubmp-pc 1.0.18 → 1.0.19
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/sag-ubmp-pc.es.js +810 -814
- package/dist/sag-ubmp-pc.umd.js +6 -6
- package/package.json +3 -3
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import ke, { trim as
|
|
2
|
-
import { inject as de, ref as V, h as
|
|
1
|
+
import ke, { trim as Pe, debounce as At } from "xe-utils";
|
|
2
|
+
import { inject as de, ref as V, h as Te, getCurrentInstance as _l, nextTick as lt, reactive as te, defineComponent as W, createVNode as B, openBlock as _, createElementBlock as U, Fragment as be, createBlock as z, unref as y, createCommentVNode as D, onMounted as le, resolveComponent as L, isRef as st, createSlots as we, withCtx as N, defineAsyncComponent as Ol, computed as xl, resolveDynamicComponent as Cl, mergeProps as X, createElementVNode as K, toDisplayString as ne, useAttrs as Pl, provide as Sn, useSlots as Be, watch as me, withDirectives as wn, createTextVNode as ce, renderList as Ce, renderSlot as oe, vShow as _n, toHandlers as kl, normalizeProps as Tl, guardReactiveProps as Al, normalizeStyle as pe } from "vue";
|
|
3
3
|
import { Modal as Ml, notification as Ot, message as $l, Spin as jl } from "ant-design-vue";
|
|
4
4
|
import M from "dayjs";
|
|
5
|
-
const
|
|
5
|
+
const ut = "SAG_UBMP_PC$", rt = {
|
|
6
6
|
set: () => {
|
|
7
7
|
},
|
|
8
8
|
get: () => "",
|
|
@@ -16,9 +16,9 @@ const dt = "SAG_UBMP_PC$", it = {
|
|
|
16
16
|
}, Vl = (e) => {
|
|
17
17
|
const t = (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
return e.addTime + e.expires >= t;
|
|
19
|
-
},
|
|
19
|
+
}, Ye = (e) => `${ut}${e}`, zl = (e) => ({
|
|
20
20
|
set(t, n, a) {
|
|
21
|
-
const l =
|
|
21
|
+
const l = Ye(t);
|
|
22
22
|
if (a)
|
|
23
23
|
e.setItem(
|
|
24
24
|
l,
|
|
@@ -35,50 +35,50 @@ const dt = "SAG_UBMP_PC$", it = {
|
|
|
35
35
|
n == null && e.removeItem(l);
|
|
36
36
|
},
|
|
37
37
|
get(t) {
|
|
38
|
-
const n =
|
|
38
|
+
const n = Ye(t), a = JSON.parse(e.getItem(n));
|
|
39
39
|
return a && a.addTime ? Vl(a) ? a.value : (e.removeItem(n), null) : a;
|
|
40
40
|
},
|
|
41
41
|
has(t) {
|
|
42
|
-
const n =
|
|
42
|
+
const n = Ye(t);
|
|
43
43
|
return !!e.getItem(n);
|
|
44
44
|
},
|
|
45
45
|
remove: (t) => {
|
|
46
|
-
const n =
|
|
46
|
+
const n = Ye(t);
|
|
47
47
|
e.removeItem(n);
|
|
48
48
|
},
|
|
49
49
|
clear: () => {
|
|
50
50
|
e.clear();
|
|
51
51
|
},
|
|
52
52
|
clearSelf: () => {
|
|
53
|
-
Array.from({ length: e.length }, (n, a) => e.key(a)).filter((n) => n?.startsWith(
|
|
53
|
+
Array.from({ length: e.length }, (n, a) => e.key(a)).filter((n) => n?.startsWith(ut)).forEach((n) => e.removeItem(n));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
Object.assign(
|
|
57
|
-
const
|
|
56
|
+
Object.assign(rt, zl(window.localStorage));
|
|
57
|
+
const c = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Re = (e) => e === void 0 || e === null ? !0 : e, ee = (e, t) => c(t) ? t.startsWith("/") ? t : e.endsWith("/") ? e + t : e + "/" + t : "", ct = (e) => c(e) ? e + "$" : "", Va = "DICT_TYPE", Mt = (e, t, n) => {
|
|
58
58
|
Nl(e, Va, t, n);
|
|
59
59
|
}, $t = (e, t) => Rl(e, Va, t), za = "COLUMNS_SWITCH", ql = (e, t, n) => {
|
|
60
60
|
Da(e, za, t, n);
|
|
61
61
|
}, Dl = (e, t) => Ba(e, za, t), qa = "FORM_PARAMS", On = (e, t, n) => {
|
|
62
62
|
Da(e, qa, t, n);
|
|
63
63
|
}, Bl = (e, t) => Ba(e, qa, t), Nl = (e, t, n, a) => {
|
|
64
|
-
const l =
|
|
64
|
+
const l = ut + ct(e) + t, r = sessionStorage.getItem(l), o = c(r) ? JSON.parse(r) : {};
|
|
65
65
|
o[n] = a, sessionStorage.setItem(l, JSON.stringify(o));
|
|
66
66
|
}, Rl = (e, t, n) => {
|
|
67
|
-
const a =
|
|
68
|
-
return
|
|
67
|
+
const a = ut + ct(e) + t, l = sessionStorage.getItem(a);
|
|
68
|
+
return c(l) ? JSON.parse(l)[n] : null;
|
|
69
69
|
}, Da = (e, t, n, a) => {
|
|
70
|
-
const l =
|
|
71
|
-
o[n] = a,
|
|
70
|
+
const l = ct(e) + t, r = rt.get(l), o = c(r) ? r : {};
|
|
71
|
+
o[n] = a, rt.set(l, o);
|
|
72
72
|
}, Ba = (e, t, n) => {
|
|
73
|
-
const a =
|
|
74
|
-
return
|
|
73
|
+
const a = ct(e) + t, l = rt.get(a);
|
|
74
|
+
return c(l) ? l[n] : null;
|
|
75
75
|
};
|
|
76
76
|
function jt(e) {
|
|
77
77
|
return function(t, n) {
|
|
78
78
|
console[e]("[sag-ubmp-pc]" + t, n);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
const ae = jt("log"), Na = jt("warn"),
|
|
81
|
+
const ae = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
82
82
|
ExcelJS: null,
|
|
83
83
|
FileSaver: null
|
|
84
84
|
}, A = {
|
|
@@ -89,7 +89,7 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
89
89
|
buttonKeyName: "_X_BUTTON_INFO",
|
|
90
90
|
messageResp: !0,
|
|
91
91
|
dynamicViewsModules: {},
|
|
92
|
-
requestPlugin: () => (
|
|
92
|
+
requestPlugin: () => (dt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null),
|
|
93
93
|
templateForm: {
|
|
94
94
|
vxeSlot: !0,
|
|
95
95
|
storage: !1,
|
|
@@ -141,12 +141,12 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
141
141
|
componentType: "vue",
|
|
142
142
|
maskClosable: !0
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, ks = {
|
|
145
145
|
setupConfig: function(e) {
|
|
146
146
|
ke.merge(A, e), ae("加载公共参数完毕", A);
|
|
147
147
|
},
|
|
148
148
|
setupExcelConfig: function(e, t) {
|
|
149
|
-
ke.merge(
|
|
149
|
+
ke.merge(Qe, {
|
|
150
150
|
ExcelJS: e,
|
|
151
151
|
FileSaver: t
|
|
152
152
|
}), ae("加载excel组件完毕");
|
|
@@ -157,17 +157,17 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
157
157
|
setDictDetail: function(e, t, n = A.application) {
|
|
158
158
|
return Mt(n, e, t);
|
|
159
159
|
}
|
|
160
|
-
}, El = (e) => Ra(e, "buttonName"), Ll = (e) => Ra(e, "componentParams"), Ra = (e, t) =>
|
|
160
|
+
}, El = (e) => Ra(e, "buttonName"), Ll = (e) => Ra(e, "componentParams"), Ra = (e, t) => c(e) && c(e[A.buttonKeyName]) ? e[A.buttonKeyName][t] : null, Ul = (e) => c(e) && c(e[A.buttonKeyName]) ? e[A.buttonKeyName] : {}, Il = (e) => e._X_ROWS, Fl = (e, t, n = {}) => {
|
|
161
161
|
const { span: a, placeholder: l, defaultValue: r, disabled: o } = n;
|
|
162
162
|
return {
|
|
163
163
|
field: e,
|
|
164
164
|
title: t,
|
|
165
|
-
span:
|
|
165
|
+
span: c(a) ? a : 6,
|
|
166
166
|
itemRender: {
|
|
167
167
|
props: {
|
|
168
|
-
placeholder:
|
|
169
|
-
defaultValue:
|
|
170
|
-
disabled:
|
|
168
|
+
placeholder: c(l) ? l : "请输入" + t,
|
|
169
|
+
defaultValue: c(r) ? r : null,
|
|
170
|
+
disabled: c(o) ? o : !1
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
slots: { default: "input" }
|
|
@@ -177,13 +177,13 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
177
177
|
return {
|
|
178
178
|
field: e,
|
|
179
179
|
title: t,
|
|
180
|
-
span:
|
|
180
|
+
span: c(a) ? a : 6,
|
|
181
181
|
itemRender: {
|
|
182
182
|
props: {
|
|
183
183
|
type: "number",
|
|
184
|
-
placeholder:
|
|
185
|
-
defaultValue:
|
|
186
|
-
disabled:
|
|
184
|
+
placeholder: c(l) ? l : "请输入" + t,
|
|
185
|
+
defaultValue: c(r) ? r : null,
|
|
186
|
+
disabled: c(o) ? o : !1
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
slots: { default: "input" }
|
|
@@ -193,8 +193,8 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
193
193
|
return {
|
|
194
194
|
field: e,
|
|
195
195
|
title: t,
|
|
196
|
-
span:
|
|
197
|
-
titleWidth:
|
|
196
|
+
span: c(l) ? l : 3,
|
|
197
|
+
titleWidth: c(r) ? r : null,
|
|
198
198
|
itemRender: {
|
|
199
199
|
name: "$switch",
|
|
200
200
|
props: { openLabel: "是", openValue: "1", closeLabel: "否", closeValue: "", defaultValue: n ? "1" : "" }
|
|
@@ -216,21 +216,21 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
216
216
|
return {
|
|
217
217
|
field: e,
|
|
218
218
|
title: t,
|
|
219
|
-
folding:
|
|
220
|
-
span:
|
|
219
|
+
folding: c(l) ? l : !1,
|
|
220
|
+
span: c(r) ? r : 6,
|
|
221
221
|
itemRender: {
|
|
222
222
|
props: {
|
|
223
223
|
request: {
|
|
224
224
|
dictType: n,
|
|
225
|
-
parentNode:
|
|
226
|
-
dictRoleType:
|
|
225
|
+
parentNode: c(x) ? x : null,
|
|
226
|
+
dictRoleType: c(f) ? f : null
|
|
227
227
|
},
|
|
228
|
-
multiple:
|
|
229
|
-
clearable:
|
|
230
|
-
filterable:
|
|
231
|
-
selectAll:
|
|
232
|
-
disabled:
|
|
233
|
-
defaultValue:
|
|
228
|
+
multiple: c(o) ? o : !1,
|
|
229
|
+
clearable: c(i) ? i : !0,
|
|
230
|
+
filterable: c(s) ? s : !1,
|
|
231
|
+
selectAll: c(g) ? g : !0,
|
|
232
|
+
disabled: c(d) ? d : !1,
|
|
233
|
+
defaultValue: c(m) ? m : null
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
slots: { default: "select" }
|
|
@@ -240,14 +240,14 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
240
240
|
return {
|
|
241
241
|
field: e,
|
|
242
242
|
title: t,
|
|
243
|
-
span:
|
|
243
|
+
span: c(a) ? a : 6,
|
|
244
244
|
slots: { default: "selectList" },
|
|
245
245
|
itemRender: {
|
|
246
246
|
props: {
|
|
247
247
|
requestUrl: l,
|
|
248
|
-
requestParams:
|
|
249
|
-
defaultValue:
|
|
250
|
-
multiple:
|
|
248
|
+
requestParams: c(r) ? r : {},
|
|
249
|
+
defaultValue: c(o) ? o : null,
|
|
250
|
+
multiple: c(i) ? i : !1
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
};
|
|
@@ -256,14 +256,14 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
256
256
|
return {
|
|
257
257
|
field: e,
|
|
258
258
|
title: t,
|
|
259
|
-
folding:
|
|
260
|
-
span:
|
|
259
|
+
folding: c(a) ? a : !1,
|
|
260
|
+
span: c(l) ? l : 6,
|
|
261
261
|
slots: { default: "dateRange" },
|
|
262
262
|
itemRender: {
|
|
263
263
|
props: {
|
|
264
|
-
defaultValue:
|
|
265
|
-
format:
|
|
266
|
-
picker:
|
|
264
|
+
defaultValue: c(i) ? i : null,
|
|
265
|
+
format: c(r) ? r : "YYYY-MM-DD",
|
|
266
|
+
picker: c(o) ? o : "date"
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
};
|
|
@@ -272,12 +272,12 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
272
272
|
return {
|
|
273
273
|
field: e,
|
|
274
274
|
title: t,
|
|
275
|
-
folding:
|
|
276
|
-
span:
|
|
275
|
+
folding: c(a) ? a : !1,
|
|
276
|
+
span: c(l) ? l : 6,
|
|
277
277
|
slots: { default: "date" },
|
|
278
278
|
itemRender: {
|
|
279
279
|
props: {
|
|
280
|
-
defaultValue:
|
|
280
|
+
defaultValue: c(r) ? r : null,
|
|
281
281
|
format: "YYYYMM",
|
|
282
282
|
picker: "month"
|
|
283
283
|
}
|
|
@@ -318,13 +318,13 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
318
318
|
return {
|
|
319
319
|
field: "row_button",
|
|
320
320
|
title: "操作",
|
|
321
|
-
width:
|
|
322
|
-
minWidth:
|
|
321
|
+
width: c(l) ? l : "auto",
|
|
322
|
+
minWidth: c(e) ? e : 120,
|
|
323
323
|
resizable: !1,
|
|
324
324
|
sortable: !1,
|
|
325
|
-
fixed:
|
|
326
|
-
align:
|
|
327
|
-
slots: { default:
|
|
325
|
+
fixed: c(t) ? t : "left",
|
|
326
|
+
align: c(r) ? r : "left",
|
|
327
|
+
slots: { default: c(a) ? a : "button" }
|
|
328
328
|
};
|
|
329
329
|
}, tr = (e, t, n = {}) => (n.componentType = "iframe", Ea(e, t, n)), Ea = (e, t, n = {}) => {
|
|
330
330
|
const {
|
|
@@ -339,7 +339,7 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
339
339
|
treeNode: f,
|
|
340
340
|
autoLoad: g,
|
|
341
341
|
resizable: x,
|
|
342
|
-
showOverflow:
|
|
342
|
+
showOverflow: u,
|
|
343
343
|
align: p,
|
|
344
344
|
type: C,
|
|
345
345
|
fixed: S,
|
|
@@ -349,22 +349,22 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
349
349
|
field: e,
|
|
350
350
|
title: t,
|
|
351
351
|
sortable: !1,
|
|
352
|
-
width:
|
|
353
|
-
minWidth:
|
|
354
|
-
resizable:
|
|
355
|
-
showOverflow: u
|
|
356
|
-
align:
|
|
357
|
-
type:
|
|
358
|
-
fixed:
|
|
359
|
-
formatter:
|
|
360
|
-
treeNode:
|
|
352
|
+
width: c(h) ? h : c(C) ? c(i) ? i : 120 : "auto",
|
|
353
|
+
minWidth: c(i) ? i : 120,
|
|
354
|
+
resizable: c(x) ? x : !1,
|
|
355
|
+
showOverflow: c(u) ? u : "title",
|
|
356
|
+
align: c(p) ? p : "center",
|
|
357
|
+
type: c(C) ? C : null,
|
|
358
|
+
fixed: c(S) ? S : "",
|
|
359
|
+
formatter: c(a) ? a : "",
|
|
360
|
+
treeNode: c(f) ? f : !1,
|
|
361
361
|
params: {
|
|
362
|
-
requestType:
|
|
362
|
+
requestType: c(l) ? l : "",
|
|
363
363
|
requestUrl: r,
|
|
364
364
|
title: o,
|
|
365
|
-
maximize:
|
|
366
|
-
autoLoad:
|
|
367
|
-
componentType:
|
|
365
|
+
maximize: c(s) ? s : !0,
|
|
366
|
+
autoLoad: c(g) ? g : !1,
|
|
367
|
+
componentType: c(d) ? d : "vue",
|
|
368
368
|
componentParams: m
|
|
369
369
|
},
|
|
370
370
|
slots: { default: "operate" }
|
|
@@ -376,8 +376,8 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
376
376
|
title: t,
|
|
377
377
|
minWidth: n,
|
|
378
378
|
sortable: !1,
|
|
379
|
-
treeNode:
|
|
380
|
-
align:
|
|
379
|
+
treeNode: c(r) ? r : !1,
|
|
380
|
+
align: c(l) ? l : "center",
|
|
381
381
|
headerAlign: "center"
|
|
382
382
|
};
|
|
383
383
|
}, ar = (e, t, n = 80, a = "center") => ({
|
|
@@ -394,27 +394,27 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
394
394
|
return {
|
|
395
395
|
field: e,
|
|
396
396
|
title: t,
|
|
397
|
-
width:
|
|
398
|
-
minWidth:
|
|
399
|
-
resizable:
|
|
397
|
+
width: c(l) ? l : c(r) ? null : "auto",
|
|
398
|
+
minWidth: c(r) ? r : 120,
|
|
399
|
+
resizable: c(o) ? o : !1,
|
|
400
400
|
sortable: !1,
|
|
401
401
|
align: "right",
|
|
402
402
|
footerAlign: "right",
|
|
403
403
|
headerAlign: "center",
|
|
404
|
-
formatter: ["number",
|
|
404
|
+
formatter: ["number", c(a) ? a : 6]
|
|
405
405
|
};
|
|
406
406
|
}, rr = (e, t, n = {}) => (n.minWidth = 180, n.formatter = "datetime", La(e, t, n)), La = (e, t, n = {}) => {
|
|
407
407
|
const { formatter: a, minWidth: l, width: r } = n;
|
|
408
408
|
return {
|
|
409
409
|
field: e,
|
|
410
410
|
title: t,
|
|
411
|
-
width:
|
|
412
|
-
minWidth:
|
|
411
|
+
width: c(r) ? r : "auto",
|
|
412
|
+
minWidth: c(l) ? l : 120,
|
|
413
413
|
resizable: !1,
|
|
414
414
|
sortable: !1,
|
|
415
415
|
align: "center",
|
|
416
416
|
headerAlign: "center",
|
|
417
|
-
formatter:
|
|
417
|
+
formatter: c(a) ? a : "date"
|
|
418
418
|
};
|
|
419
419
|
}, or = (e, t = 200, n = []) => ({
|
|
420
420
|
field: e,
|
|
@@ -427,7 +427,7 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
427
427
|
params: {
|
|
428
428
|
childColumns: n
|
|
429
429
|
}
|
|
430
|
-
}), ir = (e = "", t = {}) => (t.componentType = "iframe",
|
|
430
|
+
}), ir = (e = "", t = {}) => (t.componentType = "iframe", Ua(e, t)), Ua = (e = "", t = {}) => {
|
|
431
431
|
const {
|
|
432
432
|
icon: n,
|
|
433
433
|
status: a,
|
|
@@ -441,62 +441,62 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
441
441
|
width: f,
|
|
442
442
|
height: g,
|
|
443
443
|
auth: x,
|
|
444
|
-
autoLoad:
|
|
444
|
+
autoLoad: u
|
|
445
445
|
} = t;
|
|
446
446
|
return {
|
|
447
|
-
icon:
|
|
448
|
-
status:
|
|
447
|
+
icon: c(n) ? n : "save",
|
|
448
|
+
status: c(a) ? a : "primary",
|
|
449
449
|
buttonName: e,
|
|
450
450
|
requestType: "modal",
|
|
451
|
-
requestRow:
|
|
452
|
-
requestRadio:
|
|
453
|
-
requestUrl:
|
|
454
|
-
componentType:
|
|
455
|
-
componentParams:
|
|
456
|
-
title:
|
|
457
|
-
maximize:
|
|
458
|
-
autoLoad: u
|
|
459
|
-
width:
|
|
460
|
-
height:
|
|
461
|
-
auth:
|
|
451
|
+
requestRow: c(o) ? o : !0,
|
|
452
|
+
requestRadio: c(i) ? i : !1,
|
|
453
|
+
requestUrl: c(r) ? r : "",
|
|
454
|
+
componentType: c(s) ? s : "vue",
|
|
455
|
+
componentParams: c(d) ? d : {},
|
|
456
|
+
title: c(l) ? l : "操作",
|
|
457
|
+
maximize: c(m) ? m : !0,
|
|
458
|
+
autoLoad: c(u) ? u : !0,
|
|
459
|
+
width: c(f) ? f : null,
|
|
460
|
+
height: c(g) ? g : null,
|
|
461
|
+
auth: c(x) ? x : !0
|
|
462
462
|
};
|
|
463
463
|
}, sr = (e = "", t = {}) => {
|
|
464
464
|
const { icon: n, status: a, requestTitle: l, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent: s, auth: d } = t;
|
|
465
465
|
return {
|
|
466
|
-
icon:
|
|
467
|
-
status:
|
|
466
|
+
icon: c(n) ? n : "save",
|
|
467
|
+
status: c(a) ? a : "primary",
|
|
468
468
|
buttonName: e,
|
|
469
469
|
requestType: "confirm",
|
|
470
|
-
requestRow:
|
|
471
|
-
requestRadio:
|
|
472
|
-
requestUrl:
|
|
473
|
-
requestTitle:
|
|
474
|
-
requestConfirmContent:
|
|
475
|
-
auth:
|
|
470
|
+
requestRow: c(o) ? o : !0,
|
|
471
|
+
requestRadio: c(i) ? i : !1,
|
|
472
|
+
requestUrl: c(r) ? r : "",
|
|
473
|
+
requestTitle: c(l) ? l : "确定要" + e + "选择的单据吗?",
|
|
474
|
+
requestConfirmContent: c(s) ? s : "",
|
|
475
|
+
auth: c(d) ? d : !0
|
|
476
476
|
};
|
|
477
477
|
}, ur = (e = "", t = {}) => {
|
|
478
478
|
const { icon: n, status: a, requestUrl: l, auth: r } = t;
|
|
479
479
|
return {
|
|
480
|
-
icon:
|
|
481
|
-
status:
|
|
480
|
+
icon: c(n) ? n : "save",
|
|
481
|
+
status: c(a) ? a : "primary",
|
|
482
482
|
buttonName: e,
|
|
483
483
|
requestType: "open",
|
|
484
484
|
requestRow: !0,
|
|
485
|
-
requestUrl:
|
|
486
|
-
auth:
|
|
485
|
+
requestUrl: c(l) ? l : "",
|
|
486
|
+
auth: c(r) ? r : !0
|
|
487
487
|
};
|
|
488
488
|
}, cr = (e = "", t = {}) => {
|
|
489
489
|
const { icon: n, status: a, requestUrl: l, auth: r, downloadType: o } = t;
|
|
490
490
|
return {
|
|
491
|
-
icon:
|
|
492
|
-
status:
|
|
491
|
+
icon: c(n) ? n : "save",
|
|
492
|
+
status: c(a) ? a : "primary",
|
|
493
493
|
buttonName: e,
|
|
494
494
|
requestType: "custom",
|
|
495
495
|
requestUrl: l,
|
|
496
|
-
downloadType:
|
|
497
|
-
auth:
|
|
496
|
+
downloadType: c(o) ? o : null,
|
|
497
|
+
auth: c(r) ? r : !0
|
|
498
498
|
};
|
|
499
|
-
},
|
|
499
|
+
}, Ts = {
|
|
500
500
|
getItemInput: Fl,
|
|
501
501
|
getItemNumber: Hl,
|
|
502
502
|
getItemSwitch: Yl,
|
|
@@ -516,15 +516,15 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
516
516
|
getColumnsDate: La,
|
|
517
517
|
getColumnsDateTime: rr,
|
|
518
518
|
getColumnsVertical: or,
|
|
519
|
-
createModalButtons:
|
|
519
|
+
createModalButtons: Ua,
|
|
520
520
|
createIframeModalButtons: ir,
|
|
521
521
|
createConfirmButtons: sr,
|
|
522
522
|
createOpenButtons: ur,
|
|
523
523
|
createCustomButtons: cr,
|
|
524
524
|
getVxePageButtonName: El,
|
|
525
525
|
getVxePageLinkParams: Ll,
|
|
526
|
-
getVxePageButtonProps:
|
|
527
|
-
getVxePageRows:
|
|
526
|
+
getVxePageButtonProps: Ul,
|
|
527
|
+
getVxePageRows: Il
|
|
528
528
|
}, xn = (e) => {
|
|
529
529
|
const { mergeKey: t, seqKey: n, fields: a } = e;
|
|
530
530
|
return ({ row: r, _rowIndex: o, column: i, visibleData: s }) => {
|
|
@@ -538,13 +538,13 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
538
538
|
if (m && f === d && m[t] === r[t])
|
|
539
539
|
return { rowspan: 0, colspan: 0 };
|
|
540
540
|
{
|
|
541
|
-
let
|
|
541
|
+
let u = 1;
|
|
542
542
|
for (; g && x === d && g[t] === r[t]; )
|
|
543
|
-
g = s[++
|
|
544
|
-
if (
|
|
545
|
-
return { rowspan:
|
|
543
|
+
g = s[++u + o];
|
|
544
|
+
if (u > 1)
|
|
545
|
+
return { rowspan: u, colspan: 1 };
|
|
546
546
|
}
|
|
547
|
-
} else if (!
|
|
547
|
+
} else if (!c(i.field) || i.field === n) {
|
|
548
548
|
const m = s[o - 1];
|
|
549
549
|
let f = s[o + 1];
|
|
550
550
|
if (m && m[t] === r[t])
|
|
@@ -557,15 +557,15 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
557
557
|
return { rowspan: g, colspan: 1 };
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
} else if (
|
|
560
|
+
} else if (c(a[i.field])) {
|
|
561
561
|
const m = a[i.field], f = s[o - 1], g = f && f[i.field] ? f[i.field] : "";
|
|
562
562
|
let x = s[o + 1];
|
|
563
|
-
const
|
|
563
|
+
const u = x && x[i.field] ? x[i.field] : "";
|
|
564
564
|
if (f && g === d && f[m] === r[m])
|
|
565
565
|
return { rowspan: 0, colspan: 0 };
|
|
566
566
|
{
|
|
567
567
|
let p = 1;
|
|
568
|
-
for (; x &&
|
|
568
|
+
for (; x && u === d && x[m] === r[m]; )
|
|
569
569
|
x = s[++p + o];
|
|
570
570
|
if (p > 1)
|
|
571
571
|
return { rowspan: p, colspan: 1 };
|
|
@@ -576,7 +576,7 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
576
576
|
}, xt = (e, t, n, a, l, r) => {
|
|
577
577
|
const o = Object.assign({}, a);
|
|
578
578
|
Object.assign(o, l), Object.keys(o).forEach((s) => {
|
|
579
|
-
typeof o[s] == "string" && (o[s] =
|
|
579
|
+
typeof o[s] == "string" && (o[s] = Pe(o[s])), typeof l[s] == "object" && c(l[s]) && r && r.value[s] && r.value[s].getRefType && r.value[s].getRefType() === "dateRange" && (o["begin" + s.substring(0, 1).toUpperCase() + s.substring(1, s.length)] = l[s][0], o["end" + s.substring(0, 1).toUpperCase() + s.substring(1, s.length)] = l[s][1], o[s] = null);
|
|
580
580
|
}), o.pageModel = {
|
|
581
581
|
pageNo: e.currentPage,
|
|
582
582
|
pageSize: e.pageSize,
|
|
@@ -593,7 +593,7 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
593
593
|
}, dr = (e, t, n, a) => {
|
|
594
594
|
const l = Object.assign({}, n);
|
|
595
595
|
Object.assign(l, a), Object.keys(l).forEach((o) => {
|
|
596
|
-
typeof l[o] == "string" && (l[o] =
|
|
596
|
+
typeof l[o] == "string" && (l[o] = Pe(l[o]));
|
|
597
597
|
});
|
|
598
598
|
const r = e[0];
|
|
599
599
|
return r && (l.sorts = {
|
|
@@ -606,8 +606,8 @@ const ae = jt("log"), Na = jt("warn"), pt = jt("error"), Xe = {
|
|
|
606
606
|
}, Cn = (e, t, n = 1) => {
|
|
607
607
|
const a = document.documentElement.clientHeight * n, l = e && e.$el ? e.$el.offsetHeight : 0, r = a - l - 50;
|
|
608
608
|
t.height = r > t.minHeight ? r : t.minHeight;
|
|
609
|
-
},
|
|
610
|
-
if (
|
|
609
|
+
}, We = (e, t, n) => {
|
|
610
|
+
if (c(e))
|
|
611
611
|
for (const a in e) {
|
|
612
612
|
const l = e[a].field;
|
|
613
613
|
if (l) {
|
|
@@ -630,7 +630,7 @@ function pr(e) {
|
|
|
630
630
|
function mr(e) {
|
|
631
631
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Ge(e) {
|
|
634
634
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
635
635
|
}
|
|
636
636
|
function ht(e) {
|
|
@@ -696,7 +696,7 @@ function Pn(e) {
|
|
|
696
696
|
function ue(e) {
|
|
697
697
|
return parseInt(e, 16);
|
|
698
698
|
}
|
|
699
|
-
var
|
|
699
|
+
var kn = {
|
|
700
700
|
aliceblue: "#f0f8ff",
|
|
701
701
|
antiquewhite: "#faebd7",
|
|
702
702
|
aqua: "#00ffff",
|
|
@@ -846,9 +846,9 @@ var Tn = {
|
|
|
846
846
|
yellow: "#ffff00",
|
|
847
847
|
yellowgreen: "#9acd32"
|
|
848
848
|
};
|
|
849
|
-
function
|
|
849
|
+
function Ee(e) {
|
|
850
850
|
var t = { r: 0, g: 0, b: 0 }, n = 1, a = null, l = null, r = null, o = !1, i = !1;
|
|
851
|
-
return typeof e == "string" && (e = _r(e)), typeof e == "object" && (
|
|
851
|
+
return typeof e == "string" && (e = _r(e)), typeof e == "object" && (xe(e.r) && xe(e.g) && xe(e.b) ? (t = gr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : xe(e.h) && xe(e.s) && xe(e.v) ? (a = Ge(e.s), l = Ge(e.v), t = yr(e.h, a, l), o = !0, i = "hsv") : xe(e.h) && xe(e.s) && xe(e.l) && (a = Ge(e.s), r = Ge(e.l), t = vr(e.h, a, r), o = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = mr(n), {
|
|
852
852
|
ok: o,
|
|
853
853
|
format: e.format || i,
|
|
854
854
|
r: Math.min(255, Math.max(t.r, 0)),
|
|
@@ -857,8 +857,8 @@ function Ie(e) {
|
|
|
857
857
|
a: n
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
var Sr = "[-\\+]?\\d+%?", wr = "[-\\+]?\\d*\\.\\d+%?",
|
|
861
|
-
CSS_UNIT: new RegExp(
|
|
860
|
+
var Sr = "[-\\+]?\\d+%?", wr = "[-\\+]?\\d*\\.\\d+%?", Ae = "(?:".concat(wr, ")|(?:").concat(Sr, ")"), bt = "[\\s|\\(]+(".concat(Ae, ")[,|\\s]+(").concat(Ae, ")[,|\\s]+(").concat(Ae, ")\\s*\\)?"), St = "[\\s|\\(]+(".concat(Ae, ")[,|\\s]+(").concat(Ae, ")[,|\\s]+(").concat(Ae, ")[,|\\s]+(").concat(Ae, ")\\s*\\)?"), ye = {
|
|
861
|
+
CSS_UNIT: new RegExp(Ae),
|
|
862
862
|
rgb: new RegExp("rgb" + bt),
|
|
863
863
|
rgba: new RegExp("rgba" + St),
|
|
864
864
|
hsl: new RegExp("hsl" + bt),
|
|
@@ -874,8 +874,8 @@ function _r(e) {
|
|
|
874
874
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
875
875
|
return !1;
|
|
876
876
|
var t = !1;
|
|
877
|
-
if (
|
|
878
|
-
e =
|
|
877
|
+
if (kn[e])
|
|
878
|
+
e = kn[e], t = !0;
|
|
879
879
|
else if (e === "transparent")
|
|
880
880
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
881
881
|
var n = ye.rgb.exec(e);
|
|
@@ -903,10 +903,10 @@ function _r(e) {
|
|
|
903
903
|
format: t ? "name" : "hex"
|
|
904
904
|
} : !1)))))))));
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function xe(e) {
|
|
907
907
|
return !!ye.CSS_UNIT.exec(String(e));
|
|
908
908
|
}
|
|
909
|
-
var
|
|
909
|
+
var Je = 2, Tn = 0.16, Or = 0.05, xr = 0.05, Cr = 0.15, Ia = 5, Fa = 4, Pr = [{
|
|
910
910
|
index: 7,
|
|
911
911
|
opacity: 0.15
|
|
912
912
|
}, {
|
|
@@ -945,11 +945,11 @@ function An(e) {
|
|
|
945
945
|
v: l.v
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Ze(e) {
|
|
949
949
|
var t = e.r, n = e.g, a = e.b;
|
|
950
950
|
return "#".concat(br(t, n, a));
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function kr(e, t, n) {
|
|
953
953
|
var a = n / 100, l = {
|
|
954
954
|
r: (t.r - e.r) * a + e.r,
|
|
955
955
|
g: (t.g - e.g) * a + e.g,
|
|
@@ -959,30 +959,30 @@ function Tr(e, t, n) {
|
|
|
959
959
|
}
|
|
960
960
|
function Mn(e, t, n) {
|
|
961
961
|
var a;
|
|
962
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? a = n ? Math.round(e.h) -
|
|
962
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? a = n ? Math.round(e.h) - Je * t : Math.round(e.h) + Je * t : a = n ? Math.round(e.h) + Je * t : Math.round(e.h) - Je * t, a < 0 ? a += 360 : a >= 360 && (a -= 360), a;
|
|
963
963
|
}
|
|
964
964
|
function $n(e, t, n) {
|
|
965
965
|
if (e.h === 0 && e.s === 0)
|
|
966
966
|
return e.s;
|
|
967
967
|
var a;
|
|
968
|
-
return n ? a = e.s -
|
|
968
|
+
return n ? a = e.s - Tn * t : t === Fa ? a = e.s + Tn : a = e.s + Or * t, a > 1 && (a = 1), n && t === Ia && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
|
|
969
969
|
}
|
|
970
970
|
function jn(e, t, n) {
|
|
971
971
|
var a;
|
|
972
972
|
return n ? a = e.v + xr * t : a = e.v - Cr * t, a > 1 && (a = 1), Number(a.toFixed(2));
|
|
973
973
|
}
|
|
974
974
|
function Ct(e) {
|
|
975
|
-
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], a =
|
|
976
|
-
var r = An(a), o =
|
|
975
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], a = Ee(e), l = Ia; l > 0; l -= 1) {
|
|
976
|
+
var r = An(a), o = Ze(Ee({
|
|
977
977
|
h: Mn(r, l, !0),
|
|
978
978
|
s: $n(r, l, !0),
|
|
979
979
|
v: jn(r, l, !0)
|
|
980
980
|
}));
|
|
981
981
|
n.push(o);
|
|
982
982
|
}
|
|
983
|
-
n.push(
|
|
983
|
+
n.push(Ze(a));
|
|
984
984
|
for (var i = 1; i <= Fa; i += 1) {
|
|
985
|
-
var s = An(a), d =
|
|
985
|
+
var s = An(a), d = Ze(Ee({
|
|
986
986
|
h: Mn(s, i),
|
|
987
987
|
s: $n(s, i),
|
|
988
988
|
v: jn(s, i)
|
|
@@ -990,7 +990,7 @@ function Ct(e) {
|
|
|
990
990
|
n.push(d);
|
|
991
991
|
}
|
|
992
992
|
return t.theme === "dark" ? Pr.map(function(m) {
|
|
993
|
-
var f = m.index, g = m.opacity, x =
|
|
993
|
+
var f = m.index, g = m.opacity, x = Ze(kr(Ee(t.backgroundColor || "#141414"), Ee(n[f]), g * 100));
|
|
994
994
|
return x;
|
|
995
995
|
}) : n;
|
|
996
996
|
}
|
|
@@ -1008,14 +1008,14 @@ var wt = {
|
|
|
1008
1008
|
purple: "#722ED1",
|
|
1009
1009
|
magenta: "#EB2F96",
|
|
1010
1010
|
grey: "#666666"
|
|
1011
|
-
},
|
|
1011
|
+
}, Ke = {}, _t = {};
|
|
1012
1012
|
Object.keys(wt).forEach(function(e) {
|
|
1013
|
-
|
|
1013
|
+
Ke[e] = Ct(wt[e]), Ke[e].primary = Ke[e][5], _t[e] = Ct(wt[e], {
|
|
1014
1014
|
theme: "dark",
|
|
1015
1015
|
backgroundColor: "#141414"
|
|
1016
1016
|
}), _t[e].primary = _t[e][5];
|
|
1017
1017
|
});
|
|
1018
|
-
var
|
|
1018
|
+
var Tr = Ke.blue, Ar = /* @__PURE__ */ Symbol("iconContext"), Ha = function() {
|
|
1019
1019
|
return de(Ar, {
|
|
1020
1020
|
prefixCls: V("anticon"),
|
|
1021
1021
|
rootClassName: V(""),
|
|
@@ -1112,15 +1112,15 @@ function Nr(e, t) {
|
|
|
1112
1112
|
function qn(e) {
|
|
1113
1113
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return n ?
|
|
1115
|
+
function kt(e, t, n) {
|
|
1116
|
+
return n ? Te(e.tag, zn({
|
|
1117
1117
|
key: t
|
|
1118
1118
|
}, n, e.attrs), (e.children || []).map(function(a, l) {
|
|
1119
|
-
return
|
|
1120
|
-
})) :
|
|
1119
|
+
return kt(a, "".concat(t, "-").concat(e.tag, "-").concat(l));
|
|
1120
|
+
})) : Te(e.tag, zn({
|
|
1121
1121
|
key: t
|
|
1122
1122
|
}, e.attrs), (e.children || []).map(function(a, l) {
|
|
1123
|
-
return
|
|
1123
|
+
return kt(a, "".concat(t, "-").concat(e.tag, "-").concat(l));
|
|
1124
1124
|
}));
|
|
1125
1125
|
}
|
|
1126
1126
|
function Ja(e) {
|
|
@@ -1193,9 +1193,9 @@ function Er(e) {
|
|
|
1193
1193
|
function Lr(e) {
|
|
1194
1194
|
return Er(e) ? Qa(e) : null;
|
|
1195
1195
|
}
|
|
1196
|
-
var
|
|
1196
|
+
var Ur = function() {
|
|
1197
1197
|
var t = Ha(), n = t.prefixCls, a = t.csp, l = _l(), r = Rr;
|
|
1198
|
-
n && (r = r.replace(/anticon/g, n.value)),
|
|
1198
|
+
n && (r = r.replace(/anticon/g, n.value)), lt(function() {
|
|
1199
1199
|
if (Vt()) {
|
|
1200
1200
|
var o = l.vnode.el, i = Lr(o);
|
|
1201
1201
|
qr(r, "@ant-design-vue-icons", {
|
|
@@ -1205,7 +1205,7 @@ var Ir = function() {
|
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
1208
|
-
},
|
|
1208
|
+
}, Ir = ["icon", "primaryColor", "secondaryColor"];
|
|
1209
1209
|
function Fr(e, t) {
|
|
1210
1210
|
if (e == null) return {};
|
|
1211
1211
|
var n = Hr(e, t), a, l;
|
|
@@ -1223,7 +1223,7 @@ function Hr(e, t) {
|
|
|
1223
1223
|
l = a[r], !(t.indexOf(l) >= 0) && (n[l] = e[l]);
|
|
1224
1224
|
return n;
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Xe(e) {
|
|
1227
1227
|
for (var t = 1; t < arguments.length; t++) {
|
|
1228
1228
|
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1229
1229
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(l) {
|
|
@@ -1237,29 +1237,29 @@ function tt(e) {
|
|
|
1237
1237
|
function Yr(e, t, n) {
|
|
1238
1238
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Ue = te({
|
|
1241
1241
|
primaryColor: "#333",
|
|
1242
1242
|
secondaryColor: "#E6E6E6",
|
|
1243
1243
|
calculated: !1
|
|
1244
1244
|
});
|
|
1245
1245
|
function Wr(e) {
|
|
1246
1246
|
var t = e.primaryColor, n = e.secondaryColor;
|
|
1247
|
-
|
|
1247
|
+
Ue.primaryColor = t, Ue.secondaryColor = n || Ja(t), Ue.calculated = !!n;
|
|
1248
1248
|
}
|
|
1249
1249
|
function Gr() {
|
|
1250
|
-
return
|
|
1250
|
+
return Xe({}, Ue);
|
|
1251
1251
|
}
|
|
1252
|
-
var
|
|
1253
|
-
var a =
|
|
1252
|
+
var $e = function(t, n) {
|
|
1253
|
+
var a = Xe({}, t, n.attrs), l = a.icon, r = a.primaryColor, o = a.secondaryColor, i = Fr(a, Ir), s = Ue;
|
|
1254
1254
|
if (r && (s = {
|
|
1255
1255
|
primaryColor: r,
|
|
1256
1256
|
secondaryColor: o || Ja(r)
|
|
1257
1257
|
}), Nr(qn(l), "icon should be icon definiton, but got ".concat(l)), !qn(l))
|
|
1258
1258
|
return null;
|
|
1259
1259
|
var d = l;
|
|
1260
|
-
return d && typeof d.icon == "function" && (d =
|
|
1260
|
+
return d && typeof d.icon == "function" && (d = Xe({}, d, {
|
|
1261
1261
|
icon: d.icon(s.primaryColor, s.secondaryColor)
|
|
1262
|
-
})),
|
|
1262
|
+
})), kt(d.icon, "svg-".concat(d.name), Xe({}, i, {
|
|
1263
1263
|
"data-icon": d.name,
|
|
1264
1264
|
width: "1em",
|
|
1265
1265
|
height: "1em",
|
|
@@ -1267,16 +1267,16 @@ var je = function(t, n) {
|
|
|
1267
1267
|
"aria-hidden": "true"
|
|
1268
1268
|
}));
|
|
1269
1269
|
};
|
|
1270
|
-
|
|
1270
|
+
$e.props = {
|
|
1271
1271
|
icon: Object,
|
|
1272
1272
|
primaryColor: String,
|
|
1273
1273
|
secondaryColor: String,
|
|
1274
1274
|
focusable: String
|
|
1275
1275
|
};
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1276
|
+
$e.inheritAttrs = !1;
|
|
1277
|
+
$e.displayName = "IconBase";
|
|
1278
|
+
$e.getTwoToneColors = Gr;
|
|
1279
|
+
$e.setTwoToneColors = Wr;
|
|
1280
1280
|
function Jr(e, t) {
|
|
1281
1281
|
return Xr(e) || Kr(e, t) || Qr(e, t) || Zr();
|
|
1282
1282
|
}
|
|
@@ -1322,19 +1322,19 @@ function Xr(e) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
function Ka(e) {
|
|
1324
1324
|
var t = Za(e), n = Jr(t, 2), a = n[0], l = n[1];
|
|
1325
|
-
return
|
|
1325
|
+
return $e.setTwoToneColors({
|
|
1326
1326
|
primaryColor: a,
|
|
1327
1327
|
secondaryColor: l
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
1330
1330
|
function eo() {
|
|
1331
|
-
var e =
|
|
1331
|
+
var e = $e.getTwoToneColors();
|
|
1332
1332
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1333
1333
|
}
|
|
1334
1334
|
var to = W({
|
|
1335
1335
|
name: "InsertStyles",
|
|
1336
1336
|
setup: function() {
|
|
1337
|
-
return
|
|
1337
|
+
return Ur(), function() {
|
|
1338
1338
|
return null;
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
@@ -1388,12 +1388,12 @@ function Nn(e) {
|
|
|
1388
1388
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(l) {
|
|
1389
1389
|
return Object.getOwnPropertyDescriptor(n, l).enumerable;
|
|
1390
1390
|
}))), a.forEach(function(l) {
|
|
1391
|
-
|
|
1391
|
+
Le(e, l, n[l]);
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
1394
|
return e;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function Le(e, t, n) {
|
|
1397
1397
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1398
1398
|
}
|
|
1399
1399
|
function so(e, t) {
|
|
@@ -1413,14 +1413,14 @@ function uo(e, t) {
|
|
|
1413
1413
|
l = a[r], !(t.indexOf(l) >= 0) && (n[l] = e[l]);
|
|
1414
1414
|
return n;
|
|
1415
1415
|
}
|
|
1416
|
-
Ka(
|
|
1416
|
+
Ka(Tr.primary);
|
|
1417
1417
|
var J = function(t, n) {
|
|
1418
|
-
var a, l = Nn({}, t, n.attrs), r = l.class, o = l.icon, i = l.spin, s = l.rotate, d = l.tabindex, m = l.twoToneColor, f = l.onClick, g = so(l, no), x = Ha(),
|
|
1418
|
+
var a, l = Nn({}, t, n.attrs), r = l.class, o = l.icon, i = l.spin, s = l.rotate, d = l.tabindex, m = l.twoToneColor, f = l.onClick, g = so(l, no), x = Ha(), u = x.prefixCls, p = x.rootClassName, C = (a = {}, Le(a, p.value, !!p.value), Le(a, u.value, !0), Le(a, "".concat(u.value, "-").concat(o.name), !!o.name), Le(a, "".concat(u.value, "-spin"), !!i || o.name === "loading"), a), S = d;
|
|
1419
1419
|
S === void 0 && f && (S = -1);
|
|
1420
1420
|
var h = s ? {
|
|
1421
1421
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
1422
1422
|
transform: "rotate(".concat(s, "deg)")
|
|
1423
|
-
} : void 0, O = Za(m), v = ao(O, 2), b = v[0],
|
|
1423
|
+
} : void 0, O = Za(m), v = ao(O, 2), b = v[0], T = v[1];
|
|
1424
1424
|
return B("span", Nn({
|
|
1425
1425
|
role: "img",
|
|
1426
1426
|
"aria-label": o.name
|
|
@@ -1428,10 +1428,10 @@ var J = function(t, n) {
|
|
|
1428
1428
|
onClick: f,
|
|
1429
1429
|
class: [C, r],
|
|
1430
1430
|
tabindex: S
|
|
1431
|
-
}), [B(
|
|
1431
|
+
}), [B($e, {
|
|
1432
1432
|
icon: o,
|
|
1433
1433
|
primaryColor: b,
|
|
1434
|
-
secondaryColor:
|
|
1434
|
+
secondaryColor: T,
|
|
1435
1435
|
style: h
|
|
1436
1436
|
}, null), B(to, null, null)]);
|
|
1437
1437
|
};
|
|
@@ -1515,7 +1515,7 @@ var Bt = function(t, n) {
|
|
|
1515
1515
|
Bt.displayName = "CloseOutlined";
|
|
1516
1516
|
Bt.inheritAttrs = !1;
|
|
1517
1517
|
var ho = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
|
|
1518
|
-
function
|
|
1518
|
+
function Un(e) {
|
|
1519
1519
|
for (var t = 1; t < arguments.length; t++) {
|
|
1520
1520
|
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1521
1521
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(l) {
|
|
@@ -1530,15 +1530,15 @@ function yo(e, t, n) {
|
|
|
1530
1530
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1531
1531
|
}
|
|
1532
1532
|
var Nt = function(t, n) {
|
|
1533
|
-
var a =
|
|
1534
|
-
return B(J,
|
|
1533
|
+
var a = Un({}, t, n.attrs);
|
|
1534
|
+
return B(J, Un({}, a, {
|
|
1535
1535
|
icon: ho
|
|
1536
1536
|
}), null);
|
|
1537
1537
|
};
|
|
1538
1538
|
Nt.displayName = "CopyOutlined";
|
|
1539
1539
|
Nt.inheritAttrs = !1;
|
|
1540
1540
|
var bo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
|
|
1541
|
-
function
|
|
1541
|
+
function In(e) {
|
|
1542
1542
|
for (var t = 1; t < arguments.length; t++) {
|
|
1543
1543
|
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1544
1544
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(l) {
|
|
@@ -1553,8 +1553,8 @@ function So(e, t, n) {
|
|
|
1553
1553
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1554
1554
|
}
|
|
1555
1555
|
var Rt = function(t, n) {
|
|
1556
|
-
var a =
|
|
1557
|
-
return B(J,
|
|
1556
|
+
var a = In({}, t, n.attrs);
|
|
1557
|
+
return B(J, In({}, a, {
|
|
1558
1558
|
icon: bo
|
|
1559
1559
|
}), null);
|
|
1560
1560
|
};
|
|
@@ -1575,14 +1575,14 @@ function Fn(e) {
|
|
|
1575
1575
|
function _o(e, t, n) {
|
|
1576
1576
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1577
1577
|
}
|
|
1578
|
-
var
|
|
1578
|
+
var ft = function(t, n) {
|
|
1579
1579
|
var a = Fn({}, t, n.attrs);
|
|
1580
1580
|
return B(J, Fn({}, a, {
|
|
1581
1581
|
icon: wo
|
|
1582
1582
|
}), null);
|
|
1583
1583
|
};
|
|
1584
|
-
|
|
1585
|
-
|
|
1584
|
+
ft.displayName = "DownOutlined";
|
|
1585
|
+
ft.inheritAttrs = !1;
|
|
1586
1586
|
var Oo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "download", theme: "outlined" };
|
|
1587
1587
|
function Hn(e) {
|
|
1588
1588
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -1629,29 +1629,29 @@ var Lt = function(t, n) {
|
|
|
1629
1629
|
};
|
|
1630
1630
|
Lt.displayName = "EditOutlined";
|
|
1631
1631
|
Lt.inheritAttrs = !1;
|
|
1632
|
-
var
|
|
1632
|
+
var ko = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { 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" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
|
|
1633
1633
|
function Wn(e) {
|
|
1634
1634
|
for (var t = 1; t < arguments.length; t++) {
|
|
1635
1635
|
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
1636
1636
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(l) {
|
|
1637
1637
|
return Object.getOwnPropertyDescriptor(n, l).enumerable;
|
|
1638
1638
|
}))), a.forEach(function(l) {
|
|
1639
|
-
|
|
1639
|
+
To(e, l, n[l]);
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
1642
1642
|
return e;
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function To(e, t, n) {
|
|
1645
1645
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1646
1646
|
}
|
|
1647
|
-
var
|
|
1647
|
+
var Ut = function(t, n) {
|
|
1648
1648
|
var a = Wn({}, t, n.attrs);
|
|
1649
1649
|
return B(J, Wn({}, a, {
|
|
1650
|
-
icon:
|
|
1650
|
+
icon: ko
|
|
1651
1651
|
}), null);
|
|
1652
1652
|
};
|
|
1653
|
-
|
|
1654
|
-
|
|
1653
|
+
Ut.displayName = "ExclamationCircleOutlined";
|
|
1654
|
+
Ut.inheritAttrs = !1;
|
|
1655
1655
|
var Ao = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { 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 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z" } }] }, name: "file-excel", theme: "outlined" };
|
|
1656
1656
|
function Gn(e) {
|
|
1657
1657
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -1667,14 +1667,14 @@ function Gn(e) {
|
|
|
1667
1667
|
function Mo(e, t, n) {
|
|
1668
1668
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1669
1669
|
}
|
|
1670
|
-
var
|
|
1670
|
+
var It = function(t, n) {
|
|
1671
1671
|
var a = Gn({}, t, n.attrs);
|
|
1672
1672
|
return B(J, Gn({}, a, {
|
|
1673
1673
|
icon: Ao
|
|
1674
1674
|
}), null);
|
|
1675
1675
|
};
|
|
1676
|
-
|
|
1677
|
-
|
|
1676
|
+
It.displayName = "FileExcelOutlined";
|
|
1677
|
+
It.inheritAttrs = !1;
|
|
1678
1678
|
var $o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.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 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z" } }] }, name: "file-pdf", theme: "outlined" };
|
|
1679
1679
|
function Jn(e) {
|
|
1680
1680
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -1797,12 +1797,12 @@ function ea(e) {
|
|
|
1797
1797
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(n).filter(function(l) {
|
|
1798
1798
|
return Object.getOwnPropertyDescriptor(n, l).enumerable;
|
|
1799
1799
|
}))), a.forEach(function(l) {
|
|
1800
|
-
|
|
1800
|
+
Uo(e, l, n[l]);
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
1803
|
return e;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Uo(e, t, n) {
|
|
1806
1806
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1807
1807
|
}
|
|
1808
1808
|
var Jt = function(t, n) {
|
|
@@ -1813,7 +1813,7 @@ var Jt = function(t, n) {
|
|
|
1813
1813
|
};
|
|
1814
1814
|
Jt.displayName = "PlusOutlined";
|
|
1815
1815
|
Jt.inheritAttrs = !1;
|
|
1816
|
-
var
|
|
1816
|
+
var Io = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z" } }] }, name: "printer", theme: "outlined" };
|
|
1817
1817
|
function ta(e) {
|
|
1818
1818
|
for (var t = 1; t < arguments.length; t++) {
|
|
1819
1819
|
var n = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(n);
|
|
@@ -1831,7 +1831,7 @@ function Fo(e, t, n) {
|
|
|
1831
1831
|
var Zt = function(t, n) {
|
|
1832
1832
|
var a = ta({}, t, n.attrs);
|
|
1833
1833
|
return B(J, ta({}, a, {
|
|
1834
|
-
icon:
|
|
1834
|
+
icon: Io
|
|
1835
1835
|
}), null);
|
|
1836
1836
|
};
|
|
1837
1837
|
Zt.displayName = "PrinterOutlined";
|
|
@@ -2025,10 +2025,10 @@ const ii = (e) => {
|
|
|
2025
2025
|
t.style.display = "none", t.style.height = "0", t.src = e, document.body.appendChild(t), setTimeout(() => {
|
|
2026
2026
|
t.remove();
|
|
2027
2027
|
}, 3e4);
|
|
2028
|
-
},
|
|
2029
|
-
const a = n ?
|
|
2030
|
-
|
|
2031
|
-
|
|
2028
|
+
}, ot = (e, t, n) => {
|
|
2029
|
+
const a = n ? Te("span", {}, [
|
|
2030
|
+
Te("span", ""),
|
|
2031
|
+
Te(
|
|
2032
2032
|
"span",
|
|
2033
2033
|
{
|
|
2034
2034
|
style: {
|
|
@@ -2037,11 +2037,11 @@ const ii = (e) => {
|
|
|
2037
2037
|
},
|
|
2038
2038
|
n
|
|
2039
2039
|
),
|
|
2040
|
-
|
|
2040
|
+
Te("div", e)
|
|
2041
2041
|
]) : e;
|
|
2042
2042
|
Ml.confirm({
|
|
2043
2043
|
title: "操作确认",
|
|
2044
|
-
icon: B(
|
|
2044
|
+
icon: B(Ut),
|
|
2045
2045
|
content: a,
|
|
2046
2046
|
okText: "确认",
|
|
2047
2047
|
cancelText: "取消",
|
|
@@ -2064,31 +2064,31 @@ const ii = (e) => {
|
|
|
2064
2064
|
whiteSpace: "pre-wrap"
|
|
2065
2065
|
}
|
|
2066
2066
|
});
|
|
2067
|
-
},
|
|
2067
|
+
}, De = (e) => {
|
|
2068
2068
|
Ot.warning({
|
|
2069
2069
|
message: "操作提示",
|
|
2070
2070
|
description: e
|
|
2071
2071
|
});
|
|
2072
|
-
},
|
|
2072
|
+
}, je = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle", ui = (e) => {
|
|
2073
2073
|
const t = /{([^}]+)}/g, n = e.match(t);
|
|
2074
2074
|
return n ? n.map((a) => a.slice(1, -1)) : [];
|
|
2075
|
-
},
|
|
2075
|
+
}, Ie = async (e, t) => A.requestPlugin != null && typeof A.requestPlugin == "function" ? await A.requestPlugin(e, t) : (dt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null), rn = async (e, t, n) => {
|
|
2076
2076
|
const a = $t(e, n.dictType);
|
|
2077
|
-
if (
|
|
2077
|
+
if (c(a))
|
|
2078
2078
|
return a;
|
|
2079
2079
|
{
|
|
2080
|
-
const l = await
|
|
2080
|
+
const l = await Ie(t, n);
|
|
2081
2081
|
return l.success && l.data && l.data.length > 0 ? (Mt(e, n.dictType, l.data), l.data) : [];
|
|
2082
2082
|
}
|
|
2083
|
-
},
|
|
2084
|
-
const n = await
|
|
2083
|
+
}, Ne = async (e, t) => {
|
|
2084
|
+
const n = await Ie(e, t);
|
|
2085
2085
|
return n.success && n.data && n.data.length > 0 ? n.data : [];
|
|
2086
2086
|
}, Xa = async (e, t, n, a) => {
|
|
2087
|
-
const l =
|
|
2088
|
-
if (
|
|
2087
|
+
const l = c(a) ? $t(n, a) : [];
|
|
2088
|
+
if (c(l))
|
|
2089
2089
|
return l;
|
|
2090
2090
|
{
|
|
2091
|
-
const r = await
|
|
2091
|
+
const r = await Ie(e, t);
|
|
2092
2092
|
return r.success && r.data && r.data.length > 0 ? (Mt(n, a, r.data), r.data) : [];
|
|
2093
2093
|
}
|
|
2094
2094
|
}, el = (e, t) => {
|
|
@@ -2097,7 +2097,7 @@ const ii = (e) => {
|
|
|
2097
2097
|
let a = null;
|
|
2098
2098
|
if (t.checkboxConfig ? a = n.getCheckboxRecords(!1) : t.radioConfig && (a = n.getRadioRecord(!1)), a && t.checkboxConfig) {
|
|
2099
2099
|
const l = t?.params?.mergeField;
|
|
2100
|
-
if (
|
|
2100
|
+
if (c(l)) {
|
|
2101
2101
|
const r = [""], o = [];
|
|
2102
2102
|
for (const i in a)
|
|
2103
2103
|
r.includes(a[i][l]) || o.push(a[i]), r.push(a[i][l]);
|
|
@@ -2108,7 +2108,7 @@ const ii = (e) => {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
return null;
|
|
2110
2110
|
}, ca = (e, t, n, a, l = !1) => {
|
|
2111
|
-
t.loading = !0,
|
|
2111
|
+
t.loading = !0, Ie(n, a).then((r) => {
|
|
2112
2112
|
if (t.loading = !1, (A.messageResp || r.success) && si(r.success, r.message), r.success || l) {
|
|
2113
2113
|
const o = e.value;
|
|
2114
2114
|
o && o.commitProxy("query");
|
|
@@ -2118,39 +2118,39 @@ const ii = (e) => {
|
|
|
2118
2118
|
});
|
|
2119
2119
|
};
|
|
2120
2120
|
function ci(e) {
|
|
2121
|
-
const { gridRef: t, targetModal: n, gridOptions: a, pageOptions: l, formData: r, pageModal: o } = e, i = async (
|
|
2122
|
-
if (!u
|
|
2123
|
-
if (
|
|
2124
|
-
const p = await x(
|
|
2125
|
-
if (
|
|
2121
|
+
const { gridRef: t, targetModal: n, gridOptions: a, pageOptions: l, formData: r, pageModal: o } = e, i = async (u) => {
|
|
2122
|
+
if (!c(u.requestType) || typeof u.requestType == "string")
|
|
2123
|
+
if (u.requestType === "custom") {
|
|
2124
|
+
const p = await x(u);
|
|
2125
|
+
if (u.requestRow && !c(p))
|
|
2126
2126
|
return;
|
|
2127
|
-
l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, item:
|
|
2127
|
+
l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, item: u, data: p });
|
|
2128
2128
|
} else
|
|
2129
|
-
f(r,
|
|
2129
|
+
f(r, u);
|
|
2130
2130
|
else {
|
|
2131
|
-
const p = await x(
|
|
2132
|
-
if (
|
|
2131
|
+
const p = await x(u);
|
|
2132
|
+
if (u.requestRow && !c(p))
|
|
2133
2133
|
return;
|
|
2134
|
-
|
|
2134
|
+
u.requestType({ gridRef: t, gridOptions: a, formData: r, item: u, data: p });
|
|
2135
2135
|
}
|
|
2136
|
-
}, s = (
|
|
2137
|
-
!u
|
|
2138
|
-
}, d = (
|
|
2136
|
+
}, s = (u, p) => {
|
|
2137
|
+
!c(u.requestType) || typeof u.requestType == "string" ? u.requestType === "custom" ? l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, item: u, row: p }) : g(u, p) : u.requestType({ gridRef: t, gridOptions: a, formData: r, item: u, row: p });
|
|
2138
|
+
}, d = (u, p) => {
|
|
2139
2139
|
const C = p.params.requestType;
|
|
2140
|
-
!
|
|
2141
|
-
}, m = (
|
|
2140
|
+
!c(C) || typeof C == "string" ? C === "custom" ? l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, column: p, row: u }) : m(u, p) : C({ gridRef: t, gridOptions: a, formData: r, column: p, row: u });
|
|
2141
|
+
}, m = (u, p) => {
|
|
2142
2142
|
if (n.title = Q(p.params.title, o.title), n.width = Q(p.params.width, o.width), n.height = Q(p.params.height, o.height), n.maximize = Q(p.params.maximize, !1), n.autoLoad = Q(p.params.autoLoad, !1), n.componentType = Q(p.params.componentType, o.componentType), n.componentUrl = p.params.requestUrl, n.componentType === "iframe") {
|
|
2143
2143
|
let C = ee(l.ctxPath, n.componentUrl);
|
|
2144
|
-
for (const S in
|
|
2145
|
-
C = C.replace("{" + S + "}",
|
|
2144
|
+
for (const S in u)
|
|
2145
|
+
C = C.replace("{" + S + "}", u[S]);
|
|
2146
2146
|
n.componentUrl = C;
|
|
2147
2147
|
} else
|
|
2148
|
-
|
|
2149
|
-
n.componentParams =
|
|
2150
|
-
}, f = async (
|
|
2148
|
+
u[A.buttonKeyName] = p.params;
|
|
2149
|
+
n.componentParams = u, n.visible = !0;
|
|
2150
|
+
}, f = async (u, p) => {
|
|
2151
2151
|
if (t.value) {
|
|
2152
2152
|
const S = await x(p);
|
|
2153
|
-
if (p.requestRow && !
|
|
2153
|
+
if (p.requestRow && !c(S))
|
|
2154
2154
|
return;
|
|
2155
2155
|
if (p.requestType === "modal" || p.requestType === "open") {
|
|
2156
2156
|
let h = p.requestUrl;
|
|
@@ -2158,18 +2158,18 @@ function ci(e) {
|
|
|
2158
2158
|
if ((O === "iframe" || p.requestType === "open") && (h = ee(l.ctxPath, h), p.requestRow && h.split("?").length > 1)) {
|
|
2159
2159
|
const v = ui(h.split("?")[1]);
|
|
2160
2160
|
for (const b in v) {
|
|
2161
|
-
const
|
|
2161
|
+
const T = v[b];
|
|
2162
2162
|
if (a.checkboxConfig) {
|
|
2163
|
-
let
|
|
2163
|
+
let q = [];
|
|
2164
2164
|
for (const H in S)
|
|
2165
2165
|
for (const Z in S[H])
|
|
2166
|
-
Z ===
|
|
2166
|
+
Z === T && S[H][Z] && (q[S[H][Z]] = S[H][Z]);
|
|
2167
2167
|
let F = "";
|
|
2168
|
-
for (const H in
|
|
2168
|
+
for (const H in q)
|
|
2169
2169
|
F = (F ? F + "," : "") + H;
|
|
2170
|
-
h = h.replace("{" +
|
|
2170
|
+
h = h.replace("{" + T + "}", F);
|
|
2171
2171
|
} else
|
|
2172
|
-
h = h.replace("{" +
|
|
2172
|
+
h = h.replace("{" + T + "}", S[T]);
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
2175
|
if (p.requestType === "modal") {
|
|
@@ -2189,7 +2189,7 @@ function ci(e) {
|
|
|
2189
2189
|
} else
|
|
2190
2190
|
window.open(h, "_blank");
|
|
2191
2191
|
} else
|
|
2192
|
-
|
|
2192
|
+
ot(
|
|
2193
2193
|
p.requestTitle,
|
|
2194
2194
|
() => {
|
|
2195
2195
|
let h = ee(l.ctxPath, p.requestUrl);
|
|
@@ -2205,23 +2205,23 @@ function ci(e) {
|
|
|
2205
2205
|
t,
|
|
2206
2206
|
a,
|
|
2207
2207
|
h,
|
|
2208
|
-
p.requestRow ? S :
|
|
2208
|
+
p.requestRow ? S : u,
|
|
2209
2209
|
!!(a.checkboxConfig && p.requestRow && S.length !== 1)
|
|
2210
2210
|
);
|
|
2211
2211
|
},
|
|
2212
2212
|
p.requestConfirmContent
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
|
-
}, g = (
|
|
2216
|
-
if (
|
|
2217
|
-
let C =
|
|
2218
|
-
const S = Q(
|
|
2215
|
+
}, g = (u, p) => {
|
|
2216
|
+
if (u.requestType === "modal" || u.requestType === "open") {
|
|
2217
|
+
let C = u.requestUrl;
|
|
2218
|
+
const S = Q(u.componentType, o.componentType);
|
|
2219
2219
|
let h = !1;
|
|
2220
2220
|
if (S === "iframe")
|
|
2221
2221
|
if (C = ee(l.ctxPath, C), C.split("?").length > 1)
|
|
2222
2222
|
for (const O in p) {
|
|
2223
2223
|
if (C.indexOf("{" + O + "}") > -1 && (h = !0, p[O] === "")) {
|
|
2224
|
-
|
|
2224
|
+
De("该单据没有相应数据,无法进行本次操作");
|
|
2225
2225
|
return;
|
|
2226
2226
|
}
|
|
2227
2227
|
C = C.replace("{" + O + "}", p[O]);
|
|
@@ -2231,28 +2231,28 @@ function ci(e) {
|
|
|
2231
2231
|
else
|
|
2232
2232
|
h = !0;
|
|
2233
2233
|
if (h)
|
|
2234
|
-
|
|
2234
|
+
u.requestType === "modal" ? (p[A.buttonKeyName] = u, n.title = Q(u.title, o.title), n.width = Q(u.width, o.width), n.height = Q(u.height, o.height), n.maximize = Q(u.maximize, !1), n.autoLoad = Q(u.autoLoad, !0), n.componentType = S, n.componentUrl = C, n.componentParams = p, n.visible = !0) : window.open(C, "_blank");
|
|
2235
2235
|
else {
|
|
2236
|
-
|
|
2236
|
+
De("该单据没有相应数据,无法进行本次操作");
|
|
2237
2237
|
return;
|
|
2238
2238
|
}
|
|
2239
2239
|
} else
|
|
2240
|
-
|
|
2241
|
-
|
|
2240
|
+
ot(
|
|
2241
|
+
u.requestTitle,
|
|
2242
2242
|
() => {
|
|
2243
|
-
let C = ee(l.ctxPath,
|
|
2243
|
+
let C = ee(l.ctxPath, u.requestUrl);
|
|
2244
2244
|
for (const S in p)
|
|
2245
2245
|
C = C.replace("{" + S + "}", p[S]);
|
|
2246
2246
|
ca(t, a, C, p);
|
|
2247
2247
|
},
|
|
2248
|
-
|
|
2248
|
+
u.requestConfirmContent
|
|
2249
2249
|
);
|
|
2250
|
-
}, x = async (
|
|
2251
|
-
if (
|
|
2250
|
+
}, x = async (u) => {
|
|
2251
|
+
if (u.requestRow) {
|
|
2252
2252
|
const p = await el(t, a);
|
|
2253
2253
|
let C = null;
|
|
2254
|
-
if (a.checkboxConfig ? !p || p.length === 0 ? C = "请至少选择一行数据" :
|
|
2255
|
-
|
|
2254
|
+
if (a.checkboxConfig ? !p || p.length === 0 ? C = "请至少选择一行数据" : u.requestRadio && p.length !== 1 && (C = "请只选择一条数据") : a.radioConfig ? p || (C = "请选择一行数据") : C = "请设置表格【rowType】类型参数", C) {
|
|
2255
|
+
De(C);
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
2258
|
return p;
|
|
@@ -2285,16 +2285,16 @@ function di(e) {
|
|
|
2285
2285
|
C && C.validate().then((S) => {
|
|
2286
2286
|
if (!S || S.length === 0) {
|
|
2287
2287
|
let h = f.requestDownload;
|
|
2288
|
-
if (
|
|
2288
|
+
if (c(h)) {
|
|
2289
2289
|
if (l.loading) {
|
|
2290
|
-
|
|
2290
|
+
De("正在导出中,请不要重复点击!");
|
|
2291
2291
|
return;
|
|
2292
2292
|
}
|
|
2293
2293
|
if (m.isMerge && typeof h != "object") {
|
|
2294
|
-
|
|
2294
|
+
De("合并列模式请设置requestDownload参数为表格列格式");
|
|
2295
2295
|
return;
|
|
2296
2296
|
}
|
|
2297
|
-
|
|
2297
|
+
ot("确定要导出表格所有内容吗?", () => {
|
|
2298
2298
|
const O = $l.loading(
|
|
2299
2299
|
{
|
|
2300
2300
|
content: () => "下载中,请稍后... 不要连续点击下载",
|
|
@@ -2307,15 +2307,15 @@ function di(e) {
|
|
|
2307
2307
|
setTimeout(O, 2e3);
|
|
2308
2308
|
const v = a.value;
|
|
2309
2309
|
if (v) {
|
|
2310
|
-
const { filter: b, form:
|
|
2310
|
+
const { filter: b, form: T, sort: q } = v.getProxyInfo(), H = xt({
|
|
2311
2311
|
currentPage: 1,
|
|
2312
2312
|
pageSize: 25e3
|
|
2313
|
-
},
|
|
2313
|
+
}, q, b, T, n, o);
|
|
2314
2314
|
if (typeof h == "string") {
|
|
2315
2315
|
h = ee(s.ctxPath, f.requestDownload);
|
|
2316
2316
|
let Z = "";
|
|
2317
2317
|
Object.keys(H).forEach((R) => {
|
|
2318
|
-
|
|
2318
|
+
c(H[R]) && (typeof H[R] == "string" && (Z += "&" + R + "=" + H[R]), typeof H[R] == "object" && Array.isArray(H[R]) && (Z += "&" + R + "=" + H[R].join(",")));
|
|
2319
2319
|
}), ae("导出表格参数", [h, Z]), ii(h + Z);
|
|
2320
2320
|
} else
|
|
2321
2321
|
l.loading = !0, H.exportFlag = !0, r(H, f.requestData, !0).then(async (Z) => {
|
|
@@ -2324,7 +2324,7 @@ function di(e) {
|
|
|
2324
2324
|
return;
|
|
2325
2325
|
}
|
|
2326
2326
|
if (Z.recordCount >= 25e3) {
|
|
2327
|
-
l.loading = !1,
|
|
2327
|
+
l.loading = !1, De("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2328
2328
|
return;
|
|
2329
2329
|
}
|
|
2330
2330
|
setTimeout(() => {
|
|
@@ -2333,25 +2333,25 @@ function di(e) {
|
|
|
2333
2333
|
filename: s.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2334
2334
|
sheetName: s.templateTitle,
|
|
2335
2335
|
data: Z.rows,
|
|
2336
|
-
columns:
|
|
2336
|
+
columns: c(l.params.exportColumns) ? l.params.exportColumns : h,
|
|
2337
2337
|
mergeCells: i(Z.rows)
|
|
2338
2338
|
};
|
|
2339
2339
|
p(R), l.loading = !1;
|
|
2340
2340
|
} else {
|
|
2341
|
-
const R = Z.rows.concat([]),
|
|
2341
|
+
const R = Z.rows.concat([]), re = {
|
|
2342
2342
|
filename: s.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2343
2343
|
sheetName: s.templateTitle,
|
|
2344
2344
|
type: "xlsx",
|
|
2345
2345
|
data: R,
|
|
2346
2346
|
message: !1,
|
|
2347
|
-
columns:
|
|
2347
|
+
columns: c(l.params.exportColumns) ? l.params.exportColumns : l.columns,
|
|
2348
2348
|
isFooter: m.isFooter,
|
|
2349
2349
|
isMerge: m.isMerge,
|
|
2350
|
-
columnFilterMethod(
|
|
2351
|
-
return !A.templateTable.ignoreExportColumnsTitle.includes(
|
|
2350
|
+
columnFilterMethod(Ve) {
|
|
2351
|
+
return !A.templateTable.ignoreExportColumnsTitle.includes(Ve?.column?.title);
|
|
2352
2352
|
}
|
|
2353
2353
|
};
|
|
2354
|
-
ae("导出参数",
|
|
2354
|
+
ae("导出参数", re), v.exportData(re).then(() => {
|
|
2355
2355
|
l.loading = !1;
|
|
2356
2356
|
});
|
|
2357
2357
|
}
|
|
@@ -2373,11 +2373,11 @@ function di(e) {
|
|
|
2373
2373
|
) : window.open(ee(s.ctxPath, f.requestImport), "_blank");
|
|
2374
2374
|
},
|
|
2375
2375
|
switchColumsEvent: (p, C = !1) => {
|
|
2376
|
-
if (
|
|
2376
|
+
if (c(d.tableColumnsExtra)) {
|
|
2377
2377
|
const S = d.tableColumns, h = d.tableColumnsExtra;
|
|
2378
2378
|
if (C) {
|
|
2379
2379
|
const O = Dl(p, s.templateType);
|
|
2380
|
-
|
|
2380
|
+
c(O) ? (l.params.switchType = O.switchType, l.columns = O.switchType === "1" ? S : h, l.showOverflow = O.switchShowOverflow) : (l.params.switchType = "1", l.columns = S, l.showOverflow = Q(d.showOverflow, !0));
|
|
2381
2381
|
} else
|
|
2382
2382
|
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? h : S, l.showOverflow = !l.showOverflow, ql(p, s.templateType, {
|
|
2383
2383
|
switchType: l.params.switchType,
|
|
@@ -2385,51 +2385,51 @@ function di(e) {
|
|
|
2385
2385
|
});
|
|
2386
2386
|
} else
|
|
2387
2387
|
l.params.switchType = "2", l.columns = d.tableColumns;
|
|
2388
|
-
|
|
2388
|
+
lt(() => {
|
|
2389
2389
|
l.height = l.params.switchType === "2" ? l.height + 1 : l.height - 1;
|
|
2390
2390
|
});
|
|
2391
2391
|
}
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
const
|
|
2394
|
+
const Me = /* @__PURE__ */ W({
|
|
2395
2395
|
__name: "AntdOutlind",
|
|
2396
2396
|
props: {
|
|
2397
2397
|
icon: { type: String, default: null }
|
|
2398
2398
|
},
|
|
2399
2399
|
setup(e) {
|
|
2400
2400
|
const t = e;
|
|
2401
|
-
return (n, a) => (_(),
|
|
2402
|
-
t.icon === "user" ? (_(),
|
|
2403
|
-
t.icon === "excel" ? (_(),
|
|
2404
|
-
t.icon === "download" ? (_(),
|
|
2405
|
-
t.icon === "save" ? (_(),
|
|
2406
|
-
t.icon === "edit" ? (_(),
|
|
2407
|
-
t.icon === "delete" ? (_(),
|
|
2408
|
-
t.icon === "down" ? (_(),
|
|
2409
|
-
t.icon === "up" ? (_(),
|
|
2410
|
-
t.icon === "undo" ? (_(),
|
|
2411
|
-
t.icon === "redo" ? (_(),
|
|
2412
|
-
t.icon === "copy" ? (_(),
|
|
2413
|
-
t.icon === "print" ? (_(),
|
|
2414
|
-
t.icon === "plus" ? (_(),
|
|
2415
|
-
t.icon === "minus" ? (_(),
|
|
2416
|
-
t.icon === "info" ? (_(),
|
|
2417
|
-
t.icon === "audit" ? (_(),
|
|
2418
|
-
t.icon === "schedule" ? (_(),
|
|
2419
|
-
t.icon === "close" ? (_(),
|
|
2420
|
-
t.icon === "stop" ? (_(),
|
|
2421
|
-
t.icon === "check" ? (_(),
|
|
2422
|
-
t.icon === "setting" ? (_(),
|
|
2423
|
-
t.icon === "menu" ? (_(),
|
|
2424
|
-
t.icon === "pdf" ? (_(),
|
|
2425
|
-
!t.icon || t.icon === "" ? (_(),
|
|
2401
|
+
return (n, a) => (_(), U(be, null, [
|
|
2402
|
+
t.icon === "user" ? (_(), z(y(ln), { key: 0 })) : D("", !0),
|
|
2403
|
+
t.icon === "excel" ? (_(), z(y(It), { key: 1 })) : D("", !0),
|
|
2404
|
+
t.icon === "download" ? (_(), z(y(Et), { key: 2 })) : D("", !0),
|
|
2405
|
+
t.icon === "save" ? (_(), z(y(Kt), { key: 3 })) : D("", !0),
|
|
2406
|
+
t.icon === "edit" ? (_(), z(y(Lt), { key: 4 })) : D("", !0),
|
|
2407
|
+
t.icon === "delete" ? (_(), z(y(Rt), { key: 5 })) : D("", !0),
|
|
2408
|
+
t.icon === "down" ? (_(), z(y(ft), { key: 6 })) : D("", !0),
|
|
2409
|
+
t.icon === "up" ? (_(), z(y(an), { key: 7 })) : D("", !0),
|
|
2410
|
+
t.icon === "undo" ? (_(), z(y(nn), { key: 8 })) : D("", !0),
|
|
2411
|
+
t.icon === "redo" ? (_(), z(y(Qt), { key: 9 })) : D("", !0),
|
|
2412
|
+
t.icon === "copy" ? (_(), z(y(Nt), { key: 10 })) : D("", !0),
|
|
2413
|
+
t.icon === "print" ? (_(), z(y(Zt), { key: 11 })) : D("", !0),
|
|
2414
|
+
t.icon === "plus" ? (_(), z(y(Jt), { key: 12 })) : D("", !0),
|
|
2415
|
+
t.icon === "minus" ? (_(), z(y(Gt), { key: 13 })) : D("", !0),
|
|
2416
|
+
t.icon === "info" ? (_(), z(y(Yt), { key: 14 })) : D("", !0),
|
|
2417
|
+
t.icon === "audit" ? (_(), z(y(qt), { key: 15 })) : D("", !0),
|
|
2418
|
+
t.icon === "schedule" ? (_(), z(y(Xt), { key: 16 })) : D("", !0),
|
|
2419
|
+
t.icon === "close" ? (_(), z(y(Bt), { key: 17 })) : D("", !0),
|
|
2420
|
+
t.icon === "stop" ? (_(), z(y(tn), { key: 18 })) : D("", !0),
|
|
2421
|
+
t.icon === "check" ? (_(), z(y(Dt), { key: 19 })) : D("", !0),
|
|
2422
|
+
t.icon === "setting" ? (_(), z(y(en), { key: 20 })) : D("", !0),
|
|
2423
|
+
t.icon === "menu" ? (_(), z(y(Wt), { key: 21 })) : D("", !0),
|
|
2424
|
+
t.icon === "pdf" ? (_(), z(y(Ft), { key: 22 })) : D("", !0),
|
|
2425
|
+
!t.icon || t.icon === "" ? (_(), z(y(Ht), { key: 23 })) : D("", !0)
|
|
2426
2426
|
], 64));
|
|
2427
2427
|
}
|
|
2428
2428
|
});
|
|
2429
2429
|
function tl(e) {
|
|
2430
2430
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2431
2431
|
}
|
|
2432
|
-
var
|
|
2432
|
+
var et = { exports: {} }, fi = et.exports, da;
|
|
2433
2433
|
function pi() {
|
|
2434
2434
|
return da || (da = 1, (function(e, t) {
|
|
2435
2435
|
(function(n, a) {
|
|
@@ -2446,17 +2446,17 @@ function pi() {
|
|
|
2446
2446
|
} };
|
|
2447
2447
|
return l.default.locale(r, null, !0), r;
|
|
2448
2448
|
}));
|
|
2449
|
-
})(
|
|
2449
|
+
})(et)), et.exports;
|
|
2450
2450
|
}
|
|
2451
2451
|
pi();
|
|
2452
|
-
function
|
|
2453
|
-
return
|
|
2452
|
+
function it() {
|
|
2453
|
+
return it = Object.assign ? Object.assign.bind() : function(e) {
|
|
2454
2454
|
for (var t = 1; t < arguments.length; t++) {
|
|
2455
2455
|
var n = arguments[t];
|
|
2456
2456
|
for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
2457
2457
|
}
|
|
2458
2458
|
return e;
|
|
2459
|
-
},
|
|
2459
|
+
}, it.apply(null, arguments);
|
|
2460
2460
|
}
|
|
2461
2461
|
const mi = {
|
|
2462
2462
|
locale: "zh_CN",
|
|
@@ -2488,8 +2488,8 @@ const mi = {
|
|
|
2488
2488
|
}, gi = {
|
|
2489
2489
|
placeholder: "请选择时间",
|
|
2490
2490
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
2491
|
-
},
|
|
2492
|
-
lang:
|
|
2491
|
+
}, Fe = {
|
|
2492
|
+
lang: it({
|
|
2493
2493
|
placeholder: "请选择日期",
|
|
2494
2494
|
yearPlaceholder: "请选择年份",
|
|
2495
2495
|
quarterPlaceholder: "请选择季度",
|
|
@@ -2501,10 +2501,10 @@ const mi = {
|
|
|
2501
2501
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
2502
2502
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
2503
2503
|
}, mi),
|
|
2504
|
-
timePickerLocale:
|
|
2504
|
+
timePickerLocale: it({}, gi)
|
|
2505
2505
|
};
|
|
2506
|
-
|
|
2507
|
-
var
|
|
2506
|
+
Fe.lang.ok = "确定";
|
|
2507
|
+
var tt = { exports: {} }, vi = tt.exports, fa;
|
|
2508
2508
|
function hi() {
|
|
2509
2509
|
return fa || (fa = 1, (function(e, t) {
|
|
2510
2510
|
(function(n, a) {
|
|
@@ -2517,11 +2517,11 @@ function hi() {
|
|
|
2517
2517
|
};
|
|
2518
2518
|
};
|
|
2519
2519
|
}));
|
|
2520
|
-
})(
|
|
2520
|
+
})(tt)), tt.exports;
|
|
2521
2521
|
}
|
|
2522
2522
|
var yi = hi();
|
|
2523
2523
|
const on = /* @__PURE__ */ tl(yi);
|
|
2524
|
-
var
|
|
2524
|
+
var nt = { exports: {} }, bi = nt.exports, pa;
|
|
2525
2525
|
function Si() {
|
|
2526
2526
|
return pa || (pa = 1, (function(e, t) {
|
|
2527
2527
|
(function(n, a) {
|
|
@@ -2530,20 +2530,20 @@ function Si() {
|
|
|
2530
2530
|
return function(n, a, l) {
|
|
2531
2531
|
var r = a.prototype, o = function(f) {
|
|
2532
2532
|
return f && (f.indexOf ? f : f.s);
|
|
2533
|
-
}, i = function(f, g, x,
|
|
2533
|
+
}, i = function(f, g, x, u, p) {
|
|
2534
2534
|
var C = f.name ? f : f.$locale(), S = o(C[g]), h = o(C[x]), O = S || h.map((function(b) {
|
|
2535
|
-
return b.slice(0,
|
|
2535
|
+
return b.slice(0, u);
|
|
2536
2536
|
}));
|
|
2537
2537
|
if (!p) return O;
|
|
2538
2538
|
var v = C.weekStart;
|
|
2539
|
-
return O.map((function(b,
|
|
2540
|
-
return O[(
|
|
2539
|
+
return O.map((function(b, T) {
|
|
2540
|
+
return O[(T + (v || 0)) % 7];
|
|
2541
2541
|
}));
|
|
2542
2542
|
}, s = function() {
|
|
2543
2543
|
return l.Ls[l.locale()];
|
|
2544
2544
|
}, d = function(f, g) {
|
|
2545
2545
|
return f.formats[g] || (function(x) {
|
|
2546
|
-
return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(
|
|
2546
|
+
return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(u, p, C) {
|
|
2547
2547
|
return p || C.slice(1);
|
|
2548
2548
|
}));
|
|
2549
2549
|
})(f.formats[g.toUpperCase()]);
|
|
@@ -2597,18 +2597,18 @@ function Si() {
|
|
|
2597
2597
|
};
|
|
2598
2598
|
};
|
|
2599
2599
|
}));
|
|
2600
|
-
})(
|
|
2600
|
+
})(nt)), nt.exports;
|
|
2601
2601
|
}
|
|
2602
2602
|
var wi = Si();
|
|
2603
|
-
const
|
|
2603
|
+
const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONSTANT_PAGE_OPTIONS", _i = (e, t = "") => c(e) ? e : t, Oi = (e, t) => (t = c(t) ? t : 2, c(e) ? e.toFixed(t) : 0), Tt = (e, t) => (t = c(t) ? t : 2, c(e) ? `${ke.commafy(Number(e), { digits: t })}` : e), al = (e) => sn(e, "yyyy-MM-dd"), ll = (e) => sn(e, "yyyy-MM-dd HH:mm:ss"), sn = (e, t) => ke.toDateString(e, t), at = (e, t) => e && e.length > t ? e.substring(0, t) + "..." : e, xi = (e, t) => typeof t == "string" ? t === "number" ? Tt(e) : t === "date" ? al(e) : t === "datetime" ? ll(e) : at(e, 200) : typeof t == "object" && t instanceof Array && t[0] === "number" ? Tt(e, t[1]) : at(e, 200), j = {
|
|
2604
2604
|
toString: _i,
|
|
2605
2605
|
toDateString: al,
|
|
2606
2606
|
toDatetimeString: ll,
|
|
2607
2607
|
dateFormatter: sn,
|
|
2608
2608
|
toNumber: Oi,
|
|
2609
|
-
toMoney:
|
|
2609
|
+
toMoney: Tt,
|
|
2610
2610
|
stringFormat: xi,
|
|
2611
|
-
truncateFormat:
|
|
2611
|
+
truncateFormat: at
|
|
2612
2612
|
}, Ci = /* @__PURE__ */ W({
|
|
2613
2613
|
__name: "AntdDateRange",
|
|
2614
2614
|
props: {
|
|
@@ -2624,8 +2624,8 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2624
2624
|
},
|
|
2625
2625
|
emits: ["update:value"],
|
|
2626
2626
|
setup(e, { expose: t, emit: n }) {
|
|
2627
|
-
M.locale("zh-cn"), M.extend(on), M.extend(
|
|
2628
|
-
const a = e, l = j.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = j.toString(a.format, "YYYY-MM-DD"), i = de(ge), s =
|
|
2627
|
+
M.locale("zh-cn"), M.extend(on), M.extend(pt);
|
|
2628
|
+
const a = e, l = j.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = j.toString(a.format, "YYYY-MM-DD"), i = de(ge), s = je(i?.size);
|
|
2629
2629
|
let d = V();
|
|
2630
2630
|
const m = [
|
|
2631
2631
|
{ label: "当天", value: [M().add(0, r)] },
|
|
@@ -2650,21 +2650,21 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2650
2650
|
{ label: "近两年", value: [M().add(-2, r)] },
|
|
2651
2651
|
{ label: "近三年", value: [M().add(-3, r)] },
|
|
2652
2652
|
{ label: "近五年", value: [M().add(-5, r)] }
|
|
2653
|
-
], x = V(l === "year" ? g : l === "month" ? f : m),
|
|
2654
|
-
ae("日期区间选值", b), b && b[0] == "" && b[1] == "" ?
|
|
2653
|
+
], x = V(l === "year" ? g : l === "month" ? f : m), u = n, p = (v, b) => {
|
|
2654
|
+
ae("日期区间选值", b), b && b[0] == "" && b[1] == "" ? u("update:value", null) : u("update:value", b);
|
|
2655
2655
|
}, C = () => {
|
|
2656
2656
|
let v = null, b = null;
|
|
2657
2657
|
return d.value && d.value[0] && (v = M(d.value[0]).format(o)), d.value && d.value[1] && (b = M(d.value[1]).format(o)), !v && !b ? null : [v, b];
|
|
2658
2658
|
}, S = (v) => {
|
|
2659
|
-
const b = v ? v[0] : null,
|
|
2660
|
-
typeof b == "number" || typeof
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
] : d.value = [
|
|
2659
|
+
const b = v ? v[0] : null, T = v ? v[1] : null;
|
|
2660
|
+
typeof b == "number" || typeof T == "number" ? d.value = [
|
|
2661
|
+
c(b) ? M().add(b, r) : null,
|
|
2662
|
+
c(T) ? M().add(T, r) : null
|
|
2663
|
+
] : d.value = [c(b) ? M(b) : null, c(T) ? M(T) : null], u("update:value", C());
|
|
2664
2664
|
}, h = () => {
|
|
2665
|
-
|
|
2665
|
+
c(a.defaultValue) ? S([a.defaultValue, null]) : S(null);
|
|
2666
2666
|
}, O = () => "dateRange";
|
|
2667
|
-
return
|
|
2667
|
+
return le(() => {
|
|
2668
2668
|
h();
|
|
2669
2669
|
}), t({
|
|
2670
2670
|
setValue: S,
|
|
@@ -2672,13 +2672,13 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2672
2672
|
resetValue: h,
|
|
2673
2673
|
getRefType: O
|
|
2674
2674
|
}), (v, b) => {
|
|
2675
|
-
const
|
|
2676
|
-
return _(),
|
|
2675
|
+
const T = L("a-range-picker");
|
|
2676
|
+
return _(), z(T, {
|
|
2677
2677
|
value: y(d),
|
|
2678
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
2678
|
+
"onUpdate:value": b[0] || (b[0] = (q) => st(d) ? d.value = q : d = q),
|
|
2679
2679
|
onChange: p,
|
|
2680
2680
|
presets: x.value,
|
|
2681
|
-
locale: y(
|
|
2681
|
+
locale: y(Fe),
|
|
2682
2682
|
allowEmpty: [!0, !0],
|
|
2683
2683
|
format: y(o),
|
|
2684
2684
|
picker: y(l),
|
|
@@ -2702,32 +2702,32 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2702
2702
|
},
|
|
2703
2703
|
emits: ["update:value"],
|
|
2704
2704
|
setup(e, { expose: t, emit: n }) {
|
|
2705
|
-
M.locale("zh-cn"), M.extend(on), M.extend(
|
|
2706
|
-
const a = e, l = de(ge), r =
|
|
2705
|
+
M.locale("zh-cn"), M.extend(on), M.extend(pt);
|
|
2706
|
+
const a = e, l = de(ge), r = je(l?.size), o = j.toString(a.picker, "date"), i = j.toString(a.format, "YYYY-MM-DD"), s = n;
|
|
2707
2707
|
let d = V();
|
|
2708
|
-
const m = (
|
|
2708
|
+
const m = (u, p) => {
|
|
2709
2709
|
ae("日期选值", p), !p || p == "" ? s("update:value", null) : s("update:value", p);
|
|
2710
2710
|
}, f = () => {
|
|
2711
|
-
let
|
|
2712
|
-
return d.value && (
|
|
2713
|
-
}, g = (
|
|
2714
|
-
typeof
|
|
2711
|
+
let u = null;
|
|
2712
|
+
return d.value && (u = M(d.value).format(i)), u || null;
|
|
2713
|
+
}, g = (u) => {
|
|
2714
|
+
typeof u == "number" ? d.value = c(u) ? M().add(u, o) : null : d.value = c(u) ? M(u) : null, s("update:value", f());
|
|
2715
2715
|
}, x = () => {
|
|
2716
|
-
|
|
2716
|
+
c(a.defaultValue) ? g(a.defaultValue) : g(null);
|
|
2717
2717
|
};
|
|
2718
|
-
return
|
|
2718
|
+
return le(() => {
|
|
2719
2719
|
x();
|
|
2720
2720
|
}), t({
|
|
2721
2721
|
setValue: g,
|
|
2722
2722
|
getValue: f,
|
|
2723
2723
|
resetValue: x
|
|
2724
|
-
}), (
|
|
2724
|
+
}), (u, p) => {
|
|
2725
2725
|
const C = L("a-date-picker");
|
|
2726
|
-
return _(),
|
|
2726
|
+
return _(), z(C, {
|
|
2727
2727
|
value: y(d),
|
|
2728
|
-
"onUpdate:value": p[0] || (p[0] = (S) =>
|
|
2728
|
+
"onUpdate:value": p[0] || (p[0] = (S) => st(d) ? d.value = S : d = S),
|
|
2729
2729
|
onChange: m,
|
|
2730
|
-
locale: y(
|
|
2730
|
+
locale: y(Fe),
|
|
2731
2731
|
format: y(i),
|
|
2732
2732
|
picker: y(o),
|
|
2733
2733
|
size: y(r),
|
|
@@ -2736,7 +2736,7 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2736
2736
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
2737
2737
|
};
|
|
2738
2738
|
}
|
|
2739
|
-
}),
|
|
2739
|
+
}), ki = /* @__PURE__ */ W({
|
|
2740
2740
|
__name: "AntdInput",
|
|
2741
2741
|
props: {
|
|
2742
2742
|
value: { type: String, default: null },
|
|
@@ -2750,7 +2750,7 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2750
2750
|
},
|
|
2751
2751
|
emits: ["update:value"],
|
|
2752
2752
|
setup(e, { expose: t, emit: n }) {
|
|
2753
|
-
const a = e, l = de(ge), r =
|
|
2753
|
+
const a = e, l = de(ge), r = je(l?.size), o = V(null), i = Q(a.placeholder, "请输入" + a.title), s = n, d = () => {
|
|
2754
2754
|
s("update:value", o.value);
|
|
2755
2755
|
};
|
|
2756
2756
|
return t({
|
|
@@ -2761,13 +2761,13 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2761
2761
|
resetValue: () => {
|
|
2762
2762
|
o.value = a.defaultValue || "", s("update:value", o.value);
|
|
2763
2763
|
}
|
|
2764
|
-
}),
|
|
2764
|
+
}), le(() => {
|
|
2765
2765
|
s("update:value", o.value);
|
|
2766
|
-
}), (x,
|
|
2766
|
+
}), (x, u) => {
|
|
2767
2767
|
const p = L("a-input");
|
|
2768
|
-
return _(),
|
|
2768
|
+
return _(), z(p, {
|
|
2769
2769
|
value: o.value,
|
|
2770
|
-
"onUpdate:value":
|
|
2770
|
+
"onUpdate:value": u[0] || (u[0] = (C) => o.value = C),
|
|
2771
2771
|
placeholder: y(i),
|
|
2772
2772
|
disabled: a.disabled,
|
|
2773
2773
|
type: a.inputType,
|
|
@@ -2777,7 +2777,7 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2777
2777
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2778
2778
|
};
|
|
2779
2779
|
}
|
|
2780
|
-
}),
|
|
2780
|
+
}), Ti = { class: "sag-vxe-page-ant-selectPull" }, Ai = /* @__PURE__ */ W({
|
|
2781
2781
|
__name: "AntdSelect",
|
|
2782
2782
|
props: {
|
|
2783
2783
|
value: { type: [String, Array, Object], default: null },
|
|
@@ -2793,10 +2793,10 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2793
2793
|
},
|
|
2794
2794
|
emits: ["update:value"],
|
|
2795
2795
|
setup(e, { expose: t, emit: n }) {
|
|
2796
|
-
const a = e, l = de(ge), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", s =
|
|
2796
|
+
const a = e, l = de(ge), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", s = je(l?.size), d = V(a.multiple ? [] : null), m = n, f = V([]), g = async () => {
|
|
2797
2797
|
let h = a.request.requestUrl;
|
|
2798
2798
|
return !h && r && (h = i), h ? (h = ee(o, h), await rn(r, h, a.request)) : (ae("下拉框插槽未获取到请求地址"), []);
|
|
2799
|
-
}, x = (h, O) => O.label.toLowerCase().indexOf(h.toLowerCase()) >= 0,
|
|
2799
|
+
}, x = (h, O) => O.label.toLowerCase().indexOf(h.toLowerCase()) >= 0, u = () => {
|
|
2800
2800
|
m("update:value", d.value);
|
|
2801
2801
|
}, p = () => d.value, C = (h) => {
|
|
2802
2802
|
d.value = h, m("update:value", d.value);
|
|
@@ -2807,17 +2807,17 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2807
2807
|
resetValue: () => {
|
|
2808
2808
|
a.multiple ? C(a.defaultValue || []) : C(a.defaultValue || null);
|
|
2809
2809
|
}
|
|
2810
|
-
}),
|
|
2810
|
+
}), le(() => {
|
|
2811
2811
|
m("update:value", d.value), g().then((h) => {
|
|
2812
2812
|
f.value = h;
|
|
2813
2813
|
});
|
|
2814
2814
|
}), (h, O) => {
|
|
2815
2815
|
const v = L("a-select");
|
|
2816
|
-
return _(),
|
|
2816
|
+
return _(), U("div", Ti, [
|
|
2817
2817
|
B(v, {
|
|
2818
2818
|
value: d.value,
|
|
2819
2819
|
"onUpdate:value": O[0] || (O[0] = (b) => d.value = b),
|
|
2820
|
-
onChange:
|
|
2820
|
+
onChange: u,
|
|
2821
2821
|
placeholder: "--请选择--",
|
|
2822
2822
|
allowClear: a.clearable,
|
|
2823
2823
|
mode: a.multiple ? "multiple" : "",
|
|
@@ -2853,19 +2853,19 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2853
2853
|
},
|
|
2854
2854
|
emits: ["update:value"],
|
|
2855
2855
|
setup(e, { expose: t, emit: n }) {
|
|
2856
|
-
const a = e, l = de(ge), r = l?.ctxPath || "", o =
|
|
2856
|
+
const a = e, l = de(ge), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", s = V(""), d = V(""), m = V([]), f = n, g = V(!1), x = async (v) => {
|
|
2857
2857
|
if (m.value = [], v) {
|
|
2858
2858
|
g.value = !0;
|
|
2859
2859
|
const b = {
|
|
2860
|
-
searchValue:
|
|
2861
|
-
},
|
|
2860
|
+
searchValue: Pe(v)
|
|
2861
|
+
}, T = await Ne(ee(r, a.requestUrl), {
|
|
2862
2862
|
...a.requestParams,
|
|
2863
2863
|
...b
|
|
2864
2864
|
});
|
|
2865
|
-
return g.value = !1,
|
|
2865
|
+
return g.value = !1, T;
|
|
2866
2866
|
} else
|
|
2867
2867
|
return [];
|
|
2868
|
-
},
|
|
2868
|
+
}, u = At((v) => {
|
|
2869
2869
|
x(v).then((b) => {
|
|
2870
2870
|
m.value = b;
|
|
2871
2871
|
});
|
|
@@ -2873,9 +2873,9 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2873
2873
|
s.value = v, f("update:value", v);
|
|
2874
2874
|
}, C = () => d.value, S = () => s.value, h = (v, b = null) => {
|
|
2875
2875
|
s.value = v, d.value = b;
|
|
2876
|
-
let
|
|
2877
|
-
|
|
2878
|
-
m.value =
|
|
2876
|
+
let T = m.value.filter((q) => q.value === s.value);
|
|
2877
|
+
T.length === 1 ? d.value = T[0].label : x(v).then((q) => {
|
|
2878
|
+
m.value = q;
|
|
2879
2879
|
}), f("update:value", v);
|
|
2880
2880
|
};
|
|
2881
2881
|
return t({
|
|
@@ -2886,9 +2886,9 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2886
2886
|
h(a.defaultValue, a.defaultName);
|
|
2887
2887
|
}
|
|
2888
2888
|
}), (v, b) => {
|
|
2889
|
-
const
|
|
2890
|
-
return _(),
|
|
2891
|
-
B(
|
|
2889
|
+
const T = L("a-spin"), q = L("a-select");
|
|
2890
|
+
return _(), U("div", Mi, [
|
|
2891
|
+
B(q, {
|
|
2892
2892
|
value: s.value,
|
|
2893
2893
|
"onUpdate:value": b[0] || (b[0] = (F) => s.value = F),
|
|
2894
2894
|
placeholder: i,
|
|
@@ -2899,15 +2899,15 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2899
2899
|
"default-active-first-option": !1,
|
|
2900
2900
|
"show-arrow": !1,
|
|
2901
2901
|
onChange: p,
|
|
2902
|
-
onSearch: y(
|
|
2902
|
+
onSearch: y(u),
|
|
2903
2903
|
"allow-clear": "",
|
|
2904
2904
|
"show-search": "",
|
|
2905
2905
|
style: { width: "100%" }
|
|
2906
|
-
},
|
|
2906
|
+
}, we({ _: 2 }, [
|
|
2907
2907
|
g.value ? {
|
|
2908
2908
|
name: "notFoundContent",
|
|
2909
2909
|
fn: N(() => [
|
|
2910
|
-
B(
|
|
2910
|
+
B(T, { size: "small" })
|
|
2911
2911
|
]),
|
|
2912
2912
|
key: "0"
|
|
2913
2913
|
} : void 0
|
|
@@ -2934,16 +2934,16 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2934
2934
|
},
|
|
2935
2935
|
emits: ["update:value"],
|
|
2936
2936
|
setup(e, { expose: t, emit: n }) {
|
|
2937
|
-
const a = e, l = de(ge), r = l?.ctxPath || "", o =
|
|
2937
|
+
const a = e, l = de(ge), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", s = V(a.multiple ? [] : null), d = V(""), m = V([]), f = V([]), g = n, x = (v, b) => b.label.toLowerCase().indexOf(Pe(v).toLowerCase()) >= 0, u = async () => await Ne(ee(r, a.requestUrl), a.requestParams), p = (v) => {
|
|
2938
2938
|
g("update:value", v);
|
|
2939
2939
|
}, C = () => d.value, S = () => s.value, h = (v) => {
|
|
2940
2940
|
s.value = v, g("update:value", s.value);
|
|
2941
|
-
let b = f.value.filter((
|
|
2941
|
+
let b = f.value.filter((T) => T.value === s.value);
|
|
2942
2942
|
if (a.multiple) {
|
|
2943
|
-
let
|
|
2944
|
-
b.forEach((
|
|
2945
|
-
|
|
2946
|
-
}), d.value =
|
|
2943
|
+
let T = "";
|
|
2944
|
+
b.forEach((q) => {
|
|
2945
|
+
T += q.label + ",";
|
|
2946
|
+
}), d.value = T;
|
|
2947
2947
|
} else
|
|
2948
2948
|
b.length === 1 && (d.value = b[0].label);
|
|
2949
2949
|
};
|
|
@@ -2954,14 +2954,14 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2954
2954
|
resetValue: () => {
|
|
2955
2955
|
a.multiple ? h(a.defaultValue || []) : h(a.defaultValue || null);
|
|
2956
2956
|
}
|
|
2957
|
-
}),
|
|
2957
|
+
}), u().then((v) => {
|
|
2958
2958
|
f.value = v, m.value = v;
|
|
2959
2959
|
}), (v, b) => {
|
|
2960
|
-
const
|
|
2961
|
-
return _(),
|
|
2962
|
-
B(
|
|
2960
|
+
const T = L("a-select");
|
|
2961
|
+
return _(), U("div", ji, [
|
|
2962
|
+
B(T, {
|
|
2963
2963
|
value: s.value,
|
|
2964
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
2964
|
+
"onUpdate:value": b[0] || (b[0] = (q) => s.value = q),
|
|
2965
2965
|
placeholder: i,
|
|
2966
2966
|
disabled: a.disabled,
|
|
2967
2967
|
mode: a.multiple ? "multiple" : "",
|
|
@@ -3000,7 +3000,7 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3000
3000
|
},
|
|
3001
3001
|
emits: ["update:value", "change"],
|
|
3002
3002
|
setup(e, { expose: t, emit: n }) {
|
|
3003
|
-
const a = e, l = de(ge), r = l?.application || "", o = l?.ctxPath || "", i =
|
|
3003
|
+
const a = e, l = de(ge), r = l?.application || "", o = l?.ctxPath || "", i = je(l?.size), s = "请输入" + a.title + "搜索", d = a.fieldNames.label, m = a.fieldNames.value, f = V([]), g = V([]), x = async () => {
|
|
3004
3004
|
const b = await Xa(
|
|
3005
3005
|
ee(o, a.requestUrl),
|
|
3006
3006
|
a.requestParams,
|
|
@@ -3008,26 +3008,26 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3008
3008
|
"CASCADER_" + a.cacheKey
|
|
3009
3009
|
);
|
|
3010
3010
|
g.value = b;
|
|
3011
|
-
},
|
|
3012
|
-
|
|
3013
|
-
}, C = (b,
|
|
3014
|
-
f.value = b,
|
|
3011
|
+
}, u = n, p = (b, T) => {
|
|
3012
|
+
c(T) ? (u("update:value", b[b.length - 1]), u("change", T[T.length - 1])) : (u("update:value", null), u("change", null));
|
|
3013
|
+
}, C = (b, T) => T.some((q) => q[d].indexOf(b) > -1), S = () => g.value.filter((T) => T[m] === f.value[f.value.length - 1])[d], h = () => f.value, O = (b) => {
|
|
3014
|
+
f.value = b, u("update:value", b);
|
|
3015
3015
|
}, v = () => {
|
|
3016
|
-
f.value = null,
|
|
3016
|
+
f.value = null, u("update:value", null), u("change", null);
|
|
3017
3017
|
};
|
|
3018
|
-
return
|
|
3018
|
+
return le(() => {
|
|
3019
3019
|
x();
|
|
3020
3020
|
}), t({
|
|
3021
3021
|
getName: S,
|
|
3022
3022
|
getValue: h,
|
|
3023
3023
|
setValue: O,
|
|
3024
3024
|
resetValue: v
|
|
3025
|
-
}), (b,
|
|
3026
|
-
const
|
|
3027
|
-
return _(),
|
|
3028
|
-
B(
|
|
3025
|
+
}), (b, T) => {
|
|
3026
|
+
const q = L("a-cascader");
|
|
3027
|
+
return _(), U("div", zi, [
|
|
3028
|
+
B(q, {
|
|
3029
3029
|
value: f.value,
|
|
3030
|
-
"onUpdate:value":
|
|
3030
|
+
"onUpdate:value": T[0] || (T[0] = (F) => f.value = F),
|
|
3031
3031
|
options: g.value,
|
|
3032
3032
|
fieldNames: a.fieldNames,
|
|
3033
3033
|
"show-search": { filter: C },
|
|
@@ -3049,7 +3049,7 @@ const gt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3049
3049
|
return n;
|
|
3050
3050
|
}, Bi = {};
|
|
3051
3051
|
function Ni(e, t) {
|
|
3052
|
-
return _(),
|
|
3052
|
+
return _(), U("h2", null, "未获取到页面信息,请联系管理员!");
|
|
3053
3053
|
}
|
|
3054
3054
|
const Ri = /* @__PURE__ */ Di(Bi, [["render", Ni]]);
|
|
3055
3055
|
function ma(e, t = {}) {
|
|
@@ -3058,7 +3058,7 @@ function ma(e, t = {}) {
|
|
|
3058
3058
|
loader: e,
|
|
3059
3059
|
timeout: l,
|
|
3060
3060
|
delay: a,
|
|
3061
|
-
loadingComponent: r ?
|
|
3061
|
+
loadingComponent: r ? Te(
|
|
3062
3062
|
"div",
|
|
3063
3063
|
{
|
|
3064
3064
|
style: {
|
|
@@ -3067,7 +3067,7 @@ function ma(e, t = {}) {
|
|
|
3067
3067
|
margin: "200px auto"
|
|
3068
3068
|
}
|
|
3069
3069
|
},
|
|
3070
|
-
[
|
|
3070
|
+
[Te(jl, { size: n, delay: a, spinning: !0, tip: "加载中..." })]
|
|
3071
3071
|
) : void 0,
|
|
3072
3072
|
suspensible: !0,
|
|
3073
3073
|
// Defining if component is suspensible. Default: true.
|
|
@@ -3079,7 +3079,7 @@ function ma(e, t = {}) {
|
|
|
3079
3079
|
* @param {*} attempts Maximum allowed retries number
|
|
3080
3080
|
*/
|
|
3081
3081
|
onError: o ? (i) => {
|
|
3082
|
-
|
|
3082
|
+
dt("异步加载组件失败", i.message);
|
|
3083
3083
|
} : () => {
|
|
3084
3084
|
}
|
|
3085
3085
|
// errorComponent: ExceptionPage
|
|
@@ -3100,7 +3100,7 @@ function Ei(e) {
|
|
|
3100
3100
|
} else
|
|
3101
3101
|
return ma(e);
|
|
3102
3102
|
}
|
|
3103
|
-
const Li = { id: "div_view_modal" },
|
|
3103
|
+
const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left": "5px" } }, Ii = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px" } }, Fi = ["src"], Hi = /* @__PURE__ */ W({
|
|
3104
3104
|
name: "SagVxeDialog",
|
|
3105
3105
|
inheritAttrs: !1,
|
|
3106
3106
|
__name: "AntdModal",
|
|
@@ -3131,16 +3131,16 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3131
3131
|
}), x = () => {
|
|
3132
3132
|
let S = !f.value.fullScreen;
|
|
3133
3133
|
S ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = i) : (g.maxZoomIcon = "vxe-icon-square", g.width = n.width, g.height = n.height), f.value.fullScreen = S;
|
|
3134
|
-
},
|
|
3135
|
-
console.log("iframe加载完毕",
|
|
3134
|
+
}, u = "vue_iframe_" + Math.round(Math.random() * 1e8), p = V(), C = () => {
|
|
3135
|
+
console.log("iframe加载完毕", u), p.value.contentWindow.addEventListener("closeSagDialogModal", function(S) {
|
|
3136
3136
|
console.log("iframe关闭触发", S), d();
|
|
3137
3137
|
});
|
|
3138
3138
|
};
|
|
3139
|
-
return
|
|
3139
|
+
return le(() => {
|
|
3140
3140
|
ae("SagVxeDialog弹出参数", n), n.maximize && (f.value.fullScreen = !0);
|
|
3141
3141
|
}), (S, h) => {
|
|
3142
3142
|
const O = L("vxe-button"), v = L("a-modal");
|
|
3143
|
-
return _(),
|
|
3143
|
+
return _(), U("div", Li, [
|
|
3144
3144
|
B(v, {
|
|
3145
3145
|
ref_key: "gridModal",
|
|
3146
3146
|
ref: f,
|
|
@@ -3162,8 +3162,8 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3162
3162
|
"destroy-on-close": ""
|
|
3163
3163
|
}, {
|
|
3164
3164
|
title: N(() => [
|
|
3165
|
-
K("span",
|
|
3166
|
-
K("span",
|
|
3165
|
+
K("span", Ui, ne(n.title), 1),
|
|
3166
|
+
K("span", Ii, [
|
|
3167
3167
|
B(O, {
|
|
3168
3168
|
mode: "text",
|
|
3169
3169
|
icon: g.maxZoomIcon,
|
|
@@ -3172,15 +3172,15 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3172
3172
|
])
|
|
3173
3173
|
]),
|
|
3174
3174
|
default: N(() => [
|
|
3175
|
-
n.componentType === "vue" ? (_(),
|
|
3175
|
+
n.componentType === "vue" ? (_(), z(Cl(y(r)), X({ key: 0 }, n.componentParams, {
|
|
3176
3176
|
onCancel: d,
|
|
3177
3177
|
onSubmit: m
|
|
3178
3178
|
}), null, 16)) : D("", !0),
|
|
3179
|
-
n.componentType === "iframe" ? (_(),
|
|
3179
|
+
n.componentType === "iframe" ? (_(), U("iframe", {
|
|
3180
3180
|
key: 1,
|
|
3181
3181
|
ref_key: "iframeRef",
|
|
3182
3182
|
ref: p,
|
|
3183
|
-
id:
|
|
3183
|
+
id: u,
|
|
3184
3184
|
src: y(o),
|
|
3185
3185
|
onLoad: C,
|
|
3186
3186
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
@@ -3215,11 +3215,11 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3215
3215
|
resetValue: () => {
|
|
3216
3216
|
m(a.defaultValue || null);
|
|
3217
3217
|
}
|
|
3218
|
-
}),
|
|
3218
|
+
}), le(() => {
|
|
3219
3219
|
i("update:value", d());
|
|
3220
3220
|
}), (g, x) => {
|
|
3221
|
-
const
|
|
3222
|
-
return _(),
|
|
3221
|
+
const u = L("vxe-input", !0);
|
|
3222
|
+
return _(), z(u, {
|
|
3223
3223
|
"model-value": r.value,
|
|
3224
3224
|
placeholder: y(o),
|
|
3225
3225
|
disabled: a.disabled,
|
|
@@ -3258,16 +3258,16 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3258
3258
|
placeholder: a.filterable ? s : "",
|
|
3259
3259
|
options: [],
|
|
3260
3260
|
filterMethod({ searchValue: v, option: b }) {
|
|
3261
|
-
return b.label.toLowerCase().indexOf(
|
|
3261
|
+
return b.label.toLowerCase().indexOf(Pe(v).toLowerCase()) >= 0;
|
|
3262
3262
|
}
|
|
3263
|
-
}),
|
|
3263
|
+
}), u = async () => {
|
|
3264
3264
|
let v = a.request.requestUrl;
|
|
3265
3265
|
return !v && o && (v = i), v ? (v = ee(r, v), await rn(o, v, a.request)) : (ae("下拉框插槽未获取到请求地址"), []);
|
|
3266
3266
|
}, p = ({ value: v }) => {
|
|
3267
3267
|
g("update:value", v);
|
|
3268
3268
|
}, C = () => m.value, S = () => d.value, h = (v) => {
|
|
3269
3269
|
d.value = v, g("update:value", d.value);
|
|
3270
|
-
let b = f.value.filter((
|
|
3270
|
+
let b = f.value.filter((T) => T.value === d.value);
|
|
3271
3271
|
b.length === 1 && (m.value = b[0].label);
|
|
3272
3272
|
};
|
|
3273
3273
|
return t({
|
|
@@ -3277,15 +3277,15 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3277
3277
|
resetValue: () => {
|
|
3278
3278
|
h(a.defaultValue);
|
|
3279
3279
|
}
|
|
3280
|
-
}),
|
|
3281
|
-
|
|
3280
|
+
}), le(() => {
|
|
3281
|
+
u().then((v) => {
|
|
3282
3282
|
!a.multiple && a.selectAll && (v = [{ label: "--全部--", value: "" }].concat(v)), f.value = v, x.options = v;
|
|
3283
3283
|
});
|
|
3284
3284
|
}), (v, b) => {
|
|
3285
|
-
const
|
|
3286
|
-
return _(),
|
|
3285
|
+
const T = L("vxe-select", !0);
|
|
3286
|
+
return _(), z(T, X({
|
|
3287
3287
|
modelValue: d.value,
|
|
3288
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
3288
|
+
"onUpdate:modelValue": b[0] || (b[0] = (q) => d.value = q)
|
|
3289
3289
|
}, x, {
|
|
3290
3290
|
size: y(l)?.size,
|
|
3291
3291
|
onChange: p,
|
|
@@ -3330,9 +3330,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3330
3330
|
}), g = async (h) => {
|
|
3331
3331
|
if (d.value = [], h) {
|
|
3332
3332
|
const O = {
|
|
3333
|
-
searchValue:
|
|
3333
|
+
searchValue: Pe(h)
|
|
3334
3334
|
};
|
|
3335
|
-
return await
|
|
3335
|
+
return await Ne(ee(r, a.requestUrl), {
|
|
3336
3336
|
...a.requestParams,
|
|
3337
3337
|
...O
|
|
3338
3338
|
});
|
|
@@ -3340,7 +3340,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3340
3340
|
return [];
|
|
3341
3341
|
}, x = ({ value: h }) => {
|
|
3342
3342
|
m("update:value", h);
|
|
3343
|
-
},
|
|
3343
|
+
}, u = () => s.value, p = () => i.value, C = (h) => {
|
|
3344
3344
|
i.value = h;
|
|
3345
3345
|
let O = d.value.filter((v) => v.value === i.value);
|
|
3346
3346
|
O.length === 1 ? s.value = O[0].label : g(h).then((v) => {
|
|
@@ -3348,7 +3348,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3348
3348
|
}), m("update:value", i.value);
|
|
3349
3349
|
};
|
|
3350
3350
|
return t({
|
|
3351
|
-
getName:
|
|
3351
|
+
getName: u,
|
|
3352
3352
|
getValue: p,
|
|
3353
3353
|
setValue: C,
|
|
3354
3354
|
resetValue: () => {
|
|
@@ -3356,7 +3356,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3356
3356
|
}
|
|
3357
3357
|
}), (h, O) => {
|
|
3358
3358
|
const v = L("vxe-select");
|
|
3359
|
-
return _(),
|
|
3359
|
+
return _(), z(v, X({
|
|
3360
3360
|
modelValue: i.value,
|
|
3361
3361
|
"onUpdate:modelValue": O[0] || (O[0] = (b) => i.value = b)
|
|
3362
3362
|
}, f, {
|
|
@@ -3393,29 +3393,29 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3393
3393
|
placeholder: o,
|
|
3394
3394
|
options: [],
|
|
3395
3395
|
filterMethod({ searchValue: h, option: O }) {
|
|
3396
|
-
return O.label.toLowerCase().indexOf(
|
|
3396
|
+
return O.label.toLowerCase().indexOf(Pe(h).toLowerCase()) >= 0;
|
|
3397
3397
|
}
|
|
3398
|
-
}), g = async () => await
|
|
3398
|
+
}), g = async () => await Ne(ee(r, a.requestUrl), a.requestParams), x = ({ value: h }) => {
|
|
3399
3399
|
m("update:value", h);
|
|
3400
|
-
},
|
|
3400
|
+
}, u = () => s.value, p = () => i.value, C = (h) => {
|
|
3401
3401
|
i.value = h, m("update:value", i.value);
|
|
3402
3402
|
let O = d.value.filter((v) => v.value === i.value);
|
|
3403
3403
|
O.length === 1 && (s.value = O[0].label);
|
|
3404
3404
|
};
|
|
3405
3405
|
return t({
|
|
3406
|
-
getName:
|
|
3406
|
+
getName: u,
|
|
3407
3407
|
getValue: p,
|
|
3408
3408
|
setValue: C,
|
|
3409
3409
|
resetValue: () => {
|
|
3410
3410
|
C(a.defaultValue);
|
|
3411
3411
|
}
|
|
3412
|
-
}),
|
|
3412
|
+
}), le(() => {
|
|
3413
3413
|
g().then((h) => {
|
|
3414
3414
|
d.value = h, f.options = h;
|
|
3415
3415
|
});
|
|
3416
3416
|
}), (h, O) => {
|
|
3417
3417
|
const v = L("vxe-select");
|
|
3418
|
-
return _(),
|
|
3418
|
+
return _(), z(v, X({
|
|
3419
3419
|
modelValue: i.value,
|
|
3420
3420
|
"onUpdate:modelValue": O[0] || (O[0] = (b) => i.value = b)
|
|
3421
3421
|
}, f, {
|
|
@@ -3432,42 +3432,42 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3432
3432
|
const n = t, a = () => {
|
|
3433
3433
|
n("export", (r) => {
|
|
3434
3434
|
try {
|
|
3435
|
-
if (ae("excel下载参数", r), !
|
|
3435
|
+
if (ae("excel下载参数", r), !c(Qe.ExcelJS)) {
|
|
3436
3436
|
ae("需配置加载exceljs和file-saver组件");
|
|
3437
3437
|
return;
|
|
3438
3438
|
}
|
|
3439
|
-
const o = new
|
|
3439
|
+
const o = new Qe.ExcelJS.Workbook(), i = o.addWorksheet(r.sheetName);
|
|
3440
3440
|
let s = [], d = 0;
|
|
3441
3441
|
if (r.columns.forEach((m, f) => {
|
|
3442
3442
|
A.templateTable.ignoreExportColumnsTitle.includes(m.title) ? d++ : s.push({
|
|
3443
3443
|
key: m.field,
|
|
3444
3444
|
header: m.title,
|
|
3445
|
-
width:
|
|
3445
|
+
width: c(m.exportWidth) ? m.exportWidth : m.title.length * 2 + 4
|
|
3446
3446
|
});
|
|
3447
3447
|
}), i.columns = s, i.addRows(r.data), i.eachRow(function(m, f) {
|
|
3448
3448
|
m.eachCell({ includeEmpty: !0 }, function(g, x) {
|
|
3449
|
-
|
|
3449
|
+
c(g.value) && (g.value.toString().includes(`
|
|
3450
3450
|
`) ? g.alignment = { wrapText: !0 } : g.value.toString().includes("\\n") && (g.value = g.value.toString().replaceAll("\\n", `
|
|
3451
3451
|
`), g.alignment = { wrapText: !0 }));
|
|
3452
3452
|
});
|
|
3453
|
-
}),
|
|
3453
|
+
}), c(r.mergeCells)) {
|
|
3454
3454
|
let m = {};
|
|
3455
3455
|
r.mergeCells.forEach((f) => {
|
|
3456
3456
|
let g = f.col - d;
|
|
3457
3457
|
const x = l[g];
|
|
3458
|
-
if (
|
|
3459
|
-
let
|
|
3460
|
-
const p = "'" + x +
|
|
3458
|
+
if (c(m[x]) ? m[x] = m[x] + f.rowspan : m[x] = f.rowspan + 1, f.col >= d && f.rowspan != 1) {
|
|
3459
|
+
let u = f.row + 2;
|
|
3460
|
+
const p = "'" + x + u + ":" + x + m[x] + "'";
|
|
3461
3461
|
i.mergeCells(p);
|
|
3462
3462
|
}
|
|
3463
3463
|
});
|
|
3464
3464
|
}
|
|
3465
3465
|
o.xlsx.writeBuffer().then((m) => {
|
|
3466
3466
|
let f = new Blob([m], { type: "application/octet-stream" });
|
|
3467
|
-
|
|
3467
|
+
Qe.FileSaver.saveAs(f, r.filename + ".xlsx");
|
|
3468
3468
|
}).catch((m) => ae("Error writing excel export", m));
|
|
3469
3469
|
} catch (o) {
|
|
3470
|
-
|
|
3470
|
+
dt("下载失败", o);
|
|
3471
3471
|
}
|
|
3472
3472
|
});
|
|
3473
3473
|
}, l = {
|
|
@@ -3526,7 +3526,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3526
3526
|
};
|
|
3527
3527
|
return (r, o) => {
|
|
3528
3528
|
const i = L("vxe-button");
|
|
3529
|
-
return _(),
|
|
3529
|
+
return _(), z(i, {
|
|
3530
3530
|
size: "small",
|
|
3531
3531
|
circle: !0,
|
|
3532
3532
|
onClick: o[0] || (o[0] = (s) => a()),
|
|
@@ -3669,22 +3669,22 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3669
3669
|
A.templateTable.toolbarConfig.slots.tools
|
|
3670
3670
|
)
|
|
3671
3671
|
}
|
|
3672
|
-
}), x = A.application + "_" + r.templateType,
|
|
3673
|
-
Sn(ge, r), Sn(nl, () => document.getElementById(y(
|
|
3674
|
-
const p = Object.keys(
|
|
3675
|
-
|
|
3676
|
-
},
|
|
3677
|
-
const
|
|
3678
|
-
if (!b.value &&
|
|
3679
|
-
const w =
|
|
3672
|
+
}), x = A.application + "_" + r.templateType, u = "sag_vxe_page_div_panel_" + x;
|
|
3673
|
+
Sn(ge, r), Sn(nl, () => document.getElementById(y(u)));
|
|
3674
|
+
const p = Object.keys(Be()), C = p.filter((k) => k.startsWith("items_")), S = p.filter((k) => k.startsWith("cols_")), h = p.filter((k) => k.startsWith("tools_")), O = V(), v = V(!0), b = V(!1), T = V("none"), q = V(["1"]), F = V(0), H = je(r.size), Z = V(), R = te({}), re = V([]), Ve = V(), mt = V([]), gt = n, ve = (k, w) => {
|
|
3675
|
+
re.value[w] = k;
|
|
3676
|
+
}, ze = async () => {
|
|
3677
|
+
const k = O.value;
|
|
3678
|
+
if (!b.value && k) {
|
|
3679
|
+
const w = Ve.value;
|
|
3680
3680
|
w ? w.validate().then((E) => {
|
|
3681
|
-
(!E || E.length === 0) &&
|
|
3682
|
-
}) :
|
|
3681
|
+
(!E || E.length === 0) && k.commitProxy("query");
|
|
3682
|
+
}) : k.commitProxy("query");
|
|
3683
3683
|
}
|
|
3684
3684
|
}, un = () => {
|
|
3685
|
-
s.storage && On(r.application, r.templateType, {}),
|
|
3685
|
+
s.storage && On(r.application, r.templateType, {}), We(mt.value[0].children, re, R), gt("resetValue");
|
|
3686
3686
|
}, rl = () => {
|
|
3687
|
-
|
|
3687
|
+
lt(() => {
|
|
3688
3688
|
Cn(Z.value, Y, d.clientScale);
|
|
3689
3689
|
});
|
|
3690
3690
|
}, Y = te({
|
|
@@ -3727,140 +3727,140 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3727
3727
|
//是否代理表单
|
|
3728
3728
|
ajax: {
|
|
3729
3729
|
// 接收 Promise 对象
|
|
3730
|
-
query: (
|
|
3731
|
-
const { page: w, sorts: E, filters:
|
|
3730
|
+
query: (k) => {
|
|
3731
|
+
const { page: w, sorts: E, filters: I, form: G } = k, se = xt(w, E, I, G, R, re);
|
|
3732
3732
|
if (s.storage) {
|
|
3733
|
-
const
|
|
3734
|
-
On(r.application, r.templateType,
|
|
3733
|
+
const _e = dr(E, I, G, R);
|
|
3734
|
+
On(r.application, r.templateType, _e);
|
|
3735
3735
|
}
|
|
3736
3736
|
return cn(se, o.requestData, !1);
|
|
3737
3737
|
},
|
|
3738
|
-
querySuccess: (
|
|
3739
|
-
const { page: w, sort: E, sorts:
|
|
3740
|
-
m?.isMerge && (Y.mergeCells = fn(
|
|
3738
|
+
querySuccess: (k) => {
|
|
3739
|
+
const { page: w, sort: E, sorts: I, filters: G, form: se, response: _e } = k;
|
|
3740
|
+
m?.isMerge && (Y.mergeCells = fn(_e?.rows)), gt("search", _e, { $gridRef: O.value, gridOptions: Y });
|
|
3741
3741
|
}
|
|
3742
3742
|
}
|
|
3743
3743
|
},
|
|
3744
3744
|
footerMethod: d.footerMethod
|
|
3745
3745
|
}), vt = V(!1), ol = () => {
|
|
3746
|
-
|
|
3747
|
-
m?.isMerge ? Y.mergeCells = null : Y.spanMethod = xn({}), Y.virtualYConfig = { enabled: !0 }, vt.value = !0,
|
|
3746
|
+
ot("确定要强制显示数据内容吗?", () => {
|
|
3747
|
+
m?.isMerge ? Y.mergeCells = null : Y.spanMethod = xn({}), Y.virtualYConfig = { enabled: !0 }, vt.value = !0, ze();
|
|
3748
3748
|
});
|
|
3749
|
-
}, cn = async (
|
|
3750
|
-
if (
|
|
3749
|
+
}, cn = async (k, w, E) => {
|
|
3750
|
+
if (T.value = "none", vt.value)
|
|
3751
3751
|
return vt.value = !1, Y.params.data;
|
|
3752
3752
|
{
|
|
3753
3753
|
b.value = !0, r.onLoadBeforeModule && r.onLoadBeforeModule({
|
|
3754
3754
|
$gridRef: O.value,
|
|
3755
3755
|
gridOptions: Y,
|
|
3756
|
-
queryParams:
|
|
3756
|
+
queryParams: k,
|
|
3757
3757
|
exportFlag: E
|
|
3758
3758
|
});
|
|
3759
|
-
const
|
|
3759
|
+
const I = await Ie(
|
|
3760
3760
|
ee(r.ctxPath, w),
|
|
3761
|
-
|
|
3761
|
+
k
|
|
3762
3762
|
).finally(() => {
|
|
3763
3763
|
setTimeout(() => {
|
|
3764
3764
|
b.value = !1;
|
|
3765
3765
|
}, 1e3);
|
|
3766
3766
|
});
|
|
3767
|
-
if (
|
|
3768
|
-
if (Y.params.dataSum =
|
|
3769
|
-
if (!E &&
|
|
3770
|
-
return
|
|
3767
|
+
if (I.success) {
|
|
3768
|
+
if (Y.params.dataSum = I.data?.dataSum, m?.mergeKey) {
|
|
3769
|
+
if (!E && I.data.rows.length > 800)
|
|
3770
|
+
return T.value = "more", Y.params.data = dn(I.data), null;
|
|
3771
3771
|
m?.isMerge || (Y.virtualYConfig = { enabled: !1 });
|
|
3772
3772
|
}
|
|
3773
|
-
return dn(
|
|
3773
|
+
return dn(I.data);
|
|
3774
3774
|
} else
|
|
3775
|
-
return
|
|
3775
|
+
return T.value = "error", null;
|
|
3776
3776
|
}
|
|
3777
|
-
}, il = (
|
|
3777
|
+
}, il = (k) => {
|
|
3778
3778
|
if (d.rowType === "checkbox") {
|
|
3779
|
-
ae("checkboxChange",
|
|
3779
|
+
ae("checkboxChange", k);
|
|
3780
3780
|
const w = m?.mergeKey;
|
|
3781
3781
|
if (w) {
|
|
3782
3782
|
const E = O.value;
|
|
3783
3783
|
if (E) {
|
|
3784
|
-
const
|
|
3785
|
-
for (let G in
|
|
3786
|
-
|
|
3784
|
+
const I = E.getTableData();
|
|
3785
|
+
for (let G in I.tableData)
|
|
3786
|
+
k.row[w] === I.tableData[G][w] && E.setCheckboxRow(I.tableData[G], k.checked);
|
|
3787
3787
|
}
|
|
3788
3788
|
}
|
|
3789
3789
|
}
|
|
3790
|
-
}, sl = (
|
|
3790
|
+
}, sl = (k) => {
|
|
3791
3791
|
if (d.rowType === "radio") {
|
|
3792
|
-
ae("radioChange",
|
|
3792
|
+
ae("radioChange", k);
|
|
3793
3793
|
const w = m?.mergeKey;
|
|
3794
3794
|
if (w) {
|
|
3795
3795
|
const E = O.value;
|
|
3796
3796
|
if (E) {
|
|
3797
|
-
const
|
|
3798
|
-
for (let G in
|
|
3799
|
-
if (
|
|
3800
|
-
E.setRadioRow(
|
|
3797
|
+
const I = E.getTableData();
|
|
3798
|
+
for (let G in I.tableData)
|
|
3799
|
+
if (k.row[w] === I.tableData[G][w]) {
|
|
3800
|
+
E.setRadioRow(I.tableData[G]);
|
|
3801
3801
|
break;
|
|
3802
3802
|
}
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
|
-
}, ul = (
|
|
3807
|
-
Y.params.currentRow =
|
|
3806
|
+
}, ul = (k) => {
|
|
3807
|
+
Y.params.currentRow = k?.row;
|
|
3808
3808
|
}, cl = () => {
|
|
3809
3809
|
Y.params.currentRow = null;
|
|
3810
|
-
}, dn = (
|
|
3810
|
+
}, dn = (k) => {
|
|
3811
3811
|
const w = m?.seqKey, E = m?.mergeKey;
|
|
3812
3812
|
if (E && w) {
|
|
3813
|
-
let
|
|
3814
|
-
for (let se in
|
|
3815
|
-
|
|
3813
|
+
let I = [""], G = 0 + k.pageSize * (k.pageNo - 1);
|
|
3814
|
+
for (let se in k.rows)
|
|
3815
|
+
I.includes(k.rows[se][E]) || (G++, I.push(k.rows[se][E])), k.rows[se][w] = G;
|
|
3816
3816
|
}
|
|
3817
3817
|
return r.onLoadAfterModule ? r.onLoadAfterModule({
|
|
3818
3818
|
$gridRef: O.value,
|
|
3819
3819
|
gridOptions: Y,
|
|
3820
|
-
data:
|
|
3821
|
-
}) :
|
|
3822
|
-
}, fn = (
|
|
3820
|
+
data: k
|
|
3821
|
+
}) : k;
|
|
3822
|
+
}, fn = (k) => {
|
|
3823
3823
|
const w = m?.mergeKey;
|
|
3824
3824
|
if (w && m.isMerge) {
|
|
3825
3825
|
const E = O.value;
|
|
3826
|
-
let
|
|
3827
|
-
for (let
|
|
3828
|
-
const ie =
|
|
3829
|
-
let
|
|
3830
|
-
|
|
3826
|
+
let I = [], G = {}, se = {};
|
|
3827
|
+
for (let Se = 0; Se < k.length; Se++) {
|
|
3828
|
+
const ie = k[Se], qe = k[Se - 1];
|
|
3829
|
+
let Oe = k[Se + 1];
|
|
3830
|
+
c(se[ie[w]]) || (se[ie[w]] = Se + 0), c(G[ie[w]]) ? (c(Oe) && Oe[w] === ie[w] || c(qe) && qe[w] === ie[w]) && (G[ie[w]] = G[ie[w]] + 1) : G[ie[w]] = 1;
|
|
3831
3831
|
}
|
|
3832
|
-
let
|
|
3833
|
-
for (let
|
|
3834
|
-
let ie = E?.getColumnByField(
|
|
3835
|
-
for (let
|
|
3836
|
-
|
|
3837
|
-
{ row: se[
|
|
3832
|
+
let _e = m?.fields;
|
|
3833
|
+
for (let Se in _e) {
|
|
3834
|
+
let ie = E?.getColumnByField(_e[Se]), qe = E?.getColumnIndex(ie);
|
|
3835
|
+
for (let Oe in se)
|
|
3836
|
+
I = I.concat([
|
|
3837
|
+
{ row: se[Oe], col: qe, rowspan: G[Oe], colspan: 1 }
|
|
3838
3838
|
]);
|
|
3839
3839
|
}
|
|
3840
|
-
return
|
|
3840
|
+
return I;
|
|
3841
3841
|
}
|
|
3842
3842
|
return null;
|
|
3843
3843
|
}, dl = te({
|
|
3844
|
-
cellMenu(
|
|
3844
|
+
cellMenu(k) {
|
|
3845
3845
|
const w = O.value;
|
|
3846
|
-
w && w.setCurrentRow(
|
|
3846
|
+
w && w.setCurrentRow(k.row);
|
|
3847
3847
|
},
|
|
3848
|
-
menuClick(
|
|
3849
|
-
|
|
3848
|
+
menuClick(k) {
|
|
3849
|
+
He(k.menu, k.row);
|
|
3850
3850
|
}
|
|
3851
|
-
}), pn = ({ row:
|
|
3851
|
+
}), pn = ({ row: k }) => {
|
|
3852
3852
|
const w = m?.mergeKey;
|
|
3853
|
-
if (
|
|
3853
|
+
if (k?.[w] === Y.params.currentRow?.[w])
|
|
3854
3854
|
return {
|
|
3855
3855
|
backgroundColor: m?.backgroundColor
|
|
3856
3856
|
};
|
|
3857
3857
|
}, fl = () => {
|
|
3858
|
-
const
|
|
3859
|
-
if (
|
|
3860
|
-
const w =
|
|
3861
|
-
w && w.length > 0 && (w[0].submit = () => (a.visible = !1,
|
|
3858
|
+
const k = document.getElementById(u);
|
|
3859
|
+
if (k) {
|
|
3860
|
+
const w = k.getElementsByTagName("form");
|
|
3861
|
+
w && w.length > 0 && (w[0].submit = () => (a.visible = !1, ze(), !1));
|
|
3862
3862
|
}
|
|
3863
|
-
}, { clickFormButton: pl, clickTableButton:
|
|
3863
|
+
}, { clickFormButton: pl, clickTableButton: He, clickHerf: mn } = ci({
|
|
3864
3864
|
gridRef: O,
|
|
3865
3865
|
targetModal: a,
|
|
3866
3866
|
gridOptions: Y,
|
|
@@ -3868,23 +3868,23 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3868
3868
|
formData: R,
|
|
3869
3869
|
pageModal: i
|
|
3870
3870
|
}), { downloadEvent: gn, importEvent: ml, switchColumsEvent: vn } = di({
|
|
3871
|
-
formRef:
|
|
3871
|
+
formRef: Ve,
|
|
3872
3872
|
formData: R,
|
|
3873
3873
|
gridRef: O,
|
|
3874
3874
|
gridOptions: Y,
|
|
3875
3875
|
loadData: cn,
|
|
3876
3876
|
pageOptions: r,
|
|
3877
|
-
templateItemRefs:
|
|
3877
|
+
templateItemRefs: re,
|
|
3878
3878
|
doMergeCells: fn,
|
|
3879
3879
|
pageTable: d,
|
|
3880
3880
|
pageTableMerge: m,
|
|
3881
3881
|
pageRequest: o
|
|
3882
3882
|
}), gl = async () => {
|
|
3883
|
-
if (
|
|
3883
|
+
if (c(s.formItems)) {
|
|
3884
3884
|
const w = s.formItems, E = s.formProps.foldingLength;
|
|
3885
|
-
Object.keys(w).forEach((
|
|
3885
|
+
Object.keys(w).forEach((I, G) => {
|
|
3886
3886
|
w[G].folding = !(G < E);
|
|
3887
|
-
}),
|
|
3887
|
+
}), mt.value = [
|
|
3888
3888
|
{ span: 24, align: "right", children: w },
|
|
3889
3889
|
{
|
|
3890
3890
|
span: 24,
|
|
@@ -3896,77 +3896,77 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3896
3896
|
}
|
|
3897
3897
|
if (document.documentElement.clientHeight < 680) {
|
|
3898
3898
|
const w = d.tableColumns;
|
|
3899
|
-
Object.keys(w).forEach((
|
|
3899
|
+
Object.keys(w).forEach((I) => w[I].fixed = !1);
|
|
3900
3900
|
const E = d.tableColumnsExtra;
|
|
3901
|
-
E && Object.keys(E).forEach((
|
|
3901
|
+
E && Object.keys(E).forEach((I) => E[I].fixed = !1);
|
|
3902
3902
|
}
|
|
3903
3903
|
vn(r.application, !0), d.rowType === "checkbox" ? Y.checkboxConfig = { highlight: !0 } : d.rowType === "radio" ? Y.radioConfig = { highlight: !0 } : Y.rowConfig.isCurrent = !0;
|
|
3904
|
-
const
|
|
3905
|
-
|
|
3904
|
+
const k = d.pageSizes;
|
|
3905
|
+
k && k.length > 0 && Y.pagerConfig && (Y.pagerConfig.pageSizes = k), d.editConfig && (Y.editConfig = {
|
|
3906
3906
|
trigger: "click",
|
|
3907
3907
|
mode: "row",
|
|
3908
3908
|
showStatus: !0
|
|
3909
|
-
}),
|
|
3910
|
-
}, vl = (
|
|
3911
|
-
|
|
3909
|
+
}), c(m) && c(m.mergeKey) && (Y.cellStyle = pn, Y.params.mergeField = m.mergeKey, m.isMerge ? Y.columnDragConfig.dragStartMethod = () => !1 : (Y.virtualYConfig = { enabled: !1 }, Y.spanMethod = xn(m))), v.value = !1;
|
|
3910
|
+
}, vl = (k, w) => k && k.length > 0 ? k && w ? k.some((E) => Re(w[E.buttonName]) && Re(E.auth)) : !0 : !1;
|
|
3911
|
+
le(async () => {
|
|
3912
3912
|
if (ae("加载页面模板", r), await gl(), s.storage) {
|
|
3913
|
-
const
|
|
3914
|
-
if (
|
|
3913
|
+
const k = Bl(r.application, r.templateType);
|
|
3914
|
+
if (c(k)) {
|
|
3915
3915
|
let w = [];
|
|
3916
|
-
ke.arrayEach(s.formItems, (
|
|
3917
|
-
w.push(
|
|
3916
|
+
ke.arrayEach(s.formItems, (I, G) => {
|
|
3917
|
+
w.push(I.field);
|
|
3918
3918
|
});
|
|
3919
3919
|
let E = [];
|
|
3920
|
-
ke.objectEach(
|
|
3920
|
+
ke.objectEach(k, (I, G) => {
|
|
3921
3921
|
E.push(G);
|
|
3922
|
-
}), ke.includeArrays(w, E) ? bn(
|
|
3922
|
+
}), ke.includeArrays(w, E) ? bn(k) : await We(s.formItems, re, R);
|
|
3923
3923
|
} else
|
|
3924
|
-
await
|
|
3924
|
+
await We(s.formItems, re, R);
|
|
3925
3925
|
} else
|
|
3926
|
-
await
|
|
3926
|
+
await We(s.formItems, re, R);
|
|
3927
3927
|
r.onMountedModule && await r.onMountedModule({
|
|
3928
|
-
$formRef:
|
|
3928
|
+
$formRef: Ve.value,
|
|
3929
3929
|
$gridRef: O.value,
|
|
3930
3930
|
gridOptions: Y,
|
|
3931
3931
|
pageOptions: r,
|
|
3932
3932
|
formData: R
|
|
3933
|
-
}), fl(), await
|
|
3933
|
+
}), fl(), await ze(), hn();
|
|
3934
3934
|
});
|
|
3935
3935
|
const hn = ke.debounce(() => {
|
|
3936
3936
|
ae("屏幕高度出现变化,重新计算表格高度"), d.clientScale === 1 && F.value == 0 && (window.onresize = () => {
|
|
3937
3937
|
F.value = document.body.clientWidth;
|
|
3938
|
-
}),
|
|
3938
|
+
}), lt(() => {
|
|
3939
3939
|
Cn(Z.value, Y, d.clientScale);
|
|
3940
3940
|
});
|
|
3941
3941
|
}, A.templateTable.lazyComputdHeightTime);
|
|
3942
3942
|
d.clientScale === 1 && me(
|
|
3943
|
-
[
|
|
3943
|
+
[q, F],
|
|
3944
3944
|
() => {
|
|
3945
3945
|
hn();
|
|
3946
3946
|
},
|
|
3947
3947
|
{ deep: !0, immediate: !0 }
|
|
3948
3948
|
);
|
|
3949
|
-
const hl = (
|
|
3950
|
-
a.title = Q(
|
|
3949
|
+
const hl = (k) => {
|
|
3950
|
+
a.title = Q(k.title, A.targetModal.title), a.width = Q(k.width, A.targetModal.width), a.height = Q(k.height, A.targetModal.height), a.maximize = Q(k.maximize, !1), a.autoLoad = Q(k.autoLoad, !1), a.componentType = Q(k.componentType, A.targetModal.componentType), a.componentParams = k.componentParams, a.componentUrl = k.componentUrl, a.visible = !0;
|
|
3951
3951
|
}, yn = () => {
|
|
3952
|
-
a.visible = !1, a.autoLoad &&
|
|
3953
|
-
}, yl = (
|
|
3952
|
+
a.visible = !1, a.autoLoad && ze();
|
|
3953
|
+
}, yl = (k) => {
|
|
3954
3954
|
a.visible = !1;
|
|
3955
3955
|
const w = a.componentParams;
|
|
3956
|
-
|
|
3956
|
+
gt("submit", { data: k, params: w, button: w[A.buttonKeyName] });
|
|
3957
3957
|
}, bl = async () => await el(O, Y), Sl = async () => {
|
|
3958
|
-
const
|
|
3959
|
-
if (
|
|
3960
|
-
const { pager: w, filter: E, form:
|
|
3961
|
-
return xt(w, G, E,
|
|
3958
|
+
const k = O.value;
|
|
3959
|
+
if (k) {
|
|
3960
|
+
const { pager: w, filter: E, form: I, sort: G } = k.getProxyInfo();
|
|
3961
|
+
return xt(w, G, E, I, R, re);
|
|
3962
3962
|
} else
|
|
3963
3963
|
return null;
|
|
3964
|
-
}, bn = (
|
|
3965
|
-
for (let w in
|
|
3966
|
-
|
|
3964
|
+
}, bn = (k) => {
|
|
3965
|
+
for (let w in k)
|
|
3966
|
+
re.value[w] ? re.value[w].setValue(k[w]) : R[w] = k[w];
|
|
3967
3967
|
};
|
|
3968
3968
|
return t({
|
|
3969
|
-
doSearch:
|
|
3969
|
+
doSearch: ze,
|
|
3970
3970
|
resetFrom: un,
|
|
3971
3971
|
showViewModal: hl,
|
|
3972
3972
|
hideViewModal: yn,
|
|
@@ -3974,19 +3974,19 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
3974
3974
|
getRequestData: bl,
|
|
3975
3975
|
getFormData: Sl,
|
|
3976
3976
|
setFormData: bn,
|
|
3977
|
-
setExportColumns: (
|
|
3978
|
-
Y.params.exportColumns =
|
|
3977
|
+
setExportColumns: (k) => {
|
|
3978
|
+
Y.params.exportColumns = k;
|
|
3979
3979
|
}
|
|
3980
|
-
}), (
|
|
3981
|
-
const E = L("a-button"),
|
|
3982
|
-
return wn((_(),
|
|
3983
|
-
id:
|
|
3980
|
+
}), (k, w) => {
|
|
3981
|
+
const E = L("a-button"), I = L("a-space"), G = L("vxe-form"), se = L("a-collapse-panel"), _e = L("a-collapse"), Se = L("a-menu-item"), ie = L("a-menu"), qe = L("a-dropdown"), Oe = L("vxe-button"), wl = L("vxe-grid");
|
|
3982
|
+
return wn((_(), U("div", {
|
|
3983
|
+
id: u,
|
|
3984
3984
|
class: "sag-vxe-page-wrapper"
|
|
3985
3985
|
}, [
|
|
3986
3986
|
wn(K("div", Qi, [
|
|
3987
|
-
B(
|
|
3988
|
-
activeKey:
|
|
3989
|
-
"onUpdate:activeKey": w[2] || (w[2] = (P) =>
|
|
3987
|
+
B(_e, {
|
|
3988
|
+
activeKey: q.value,
|
|
3989
|
+
"onUpdate:activeKey": w[2] || (w[2] = (P) => q.value = P),
|
|
3990
3990
|
expandIconPosition: "end",
|
|
3991
3991
|
accordion: ""
|
|
3992
3992
|
}, {
|
|
@@ -4002,9 +4002,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4002
4002
|
default: N(() => [
|
|
4003
4003
|
B(G, {
|
|
4004
4004
|
ref_key: "formRef",
|
|
4005
|
-
ref:
|
|
4005
|
+
ref: Ve,
|
|
4006
4006
|
data: R,
|
|
4007
|
-
items:
|
|
4007
|
+
items: mt.value,
|
|
4008
4008
|
size: r.size,
|
|
4009
4009
|
rules: s.formRules,
|
|
4010
4010
|
"title-width": s.formProps.titleWidth,
|
|
@@ -4013,14 +4013,14 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4013
4013
|
vertical: s.formProps.vertical,
|
|
4014
4014
|
onCollapse: rl,
|
|
4015
4015
|
class: "sag-vxe-page-form"
|
|
4016
|
-
},
|
|
4016
|
+
}, we({
|
|
4017
4017
|
toolbar_tools: N(() => [
|
|
4018
|
-
B(
|
|
4018
|
+
B(I, null, {
|
|
4019
4019
|
default: N(() => [
|
|
4020
4020
|
B(E, {
|
|
4021
4021
|
type: "primary",
|
|
4022
4022
|
size: y(H),
|
|
4023
|
-
onClick: w[0] || (w[0] = (P) =>
|
|
4023
|
+
onClick: w[0] || (w[0] = (P) => ze()),
|
|
4024
4024
|
disabled: b.value
|
|
4025
4025
|
}, {
|
|
4026
4026
|
default: N(() => w[5] || (w[5] = [
|
|
@@ -4056,14 +4056,14 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4056
4056
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
input: N((P) => [
|
|
4059
|
-
s.vxeSlot ? (_(),
|
|
4059
|
+
s.vxeSlot ? (_(), z(Yi, X({
|
|
4060
4060
|
key: 0,
|
|
4061
4061
|
value: R[P.field],
|
|
4062
4062
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
4063
4063
|
ref: ($) => ve($, P.field),
|
|
4064
4064
|
title: P?.item?.title
|
|
4065
4065
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : D("", !0),
|
|
4066
|
-
s.vxeSlot ? D("", !0) : (_(),
|
|
4066
|
+
s.vxeSlot ? D("", !0) : (_(), z(ki, X({
|
|
4067
4067
|
key: 1,
|
|
4068
4068
|
value: R[P.field],
|
|
4069
4069
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
@@ -4072,13 +4072,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4072
4072
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4073
4073
|
]),
|
|
4074
4074
|
select: N((P) => [
|
|
4075
|
-
s.vxeSlot ? (_(),
|
|
4075
|
+
s.vxeSlot ? (_(), z(Wi, X({
|
|
4076
4076
|
key: 0,
|
|
4077
4077
|
value: R[P.field],
|
|
4078
4078
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
4079
4079
|
ref: ($) => ve($, P.field)
|
|
4080
4080
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : D("", !0),
|
|
4081
|
-
s.vxeSlot ? D("", !0) : (_(),
|
|
4081
|
+
s.vxeSlot ? D("", !0) : (_(), z(Ai, X({
|
|
4082
4082
|
key: 1,
|
|
4083
4083
|
value: R[P.field],
|
|
4084
4084
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
@@ -4086,14 +4086,14 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4086
4086
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4087
4087
|
]),
|
|
4088
4088
|
selectList: N((P) => [
|
|
4089
|
-
s.vxeSlot ? (_(),
|
|
4089
|
+
s.vxeSlot ? (_(), z(Ji, X({
|
|
4090
4090
|
key: 0,
|
|
4091
4091
|
value: R[P.field],
|
|
4092
4092
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
4093
4093
|
ref: ($) => ve($, P.field),
|
|
4094
4094
|
title: P?.item?.title
|
|
4095
4095
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : D("", !0),
|
|
4096
|
-
s.vxeSlot ? D("", !0) : (_(),
|
|
4096
|
+
s.vxeSlot ? D("", !0) : (_(), z(Vi, X({
|
|
4097
4097
|
key: 1,
|
|
4098
4098
|
value: R[P.field],
|
|
4099
4099
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
@@ -4102,14 +4102,14 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4102
4102
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4103
4103
|
]),
|
|
4104
4104
|
selectPull: N((P) => [
|
|
4105
|
-
s.vxeSlot ? (_(),
|
|
4105
|
+
s.vxeSlot ? (_(), z(Gi, X({
|
|
4106
4106
|
key: 0,
|
|
4107
4107
|
value: R[P.field],
|
|
4108
4108
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
4109
4109
|
ref: ($) => ve($, P.field),
|
|
4110
4110
|
title: P?.item?.title
|
|
4111
4111
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : D("", !0),
|
|
4112
|
-
s.vxeSlot ? D("", !0) : (_(),
|
|
4112
|
+
s.vxeSlot ? D("", !0) : (_(), z($i, X({
|
|
4113
4113
|
key: 1,
|
|
4114
4114
|
value: R[P.field],
|
|
4115
4115
|
"onUpdate:value": ($) => R[P.field] = $,
|
|
@@ -4127,10 +4127,10 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4127
4127
|
]),
|
|
4128
4128
|
_: 2
|
|
4129
4129
|
}, [
|
|
4130
|
-
|
|
4130
|
+
Ce(y(C), (P) => ({
|
|
4131
4131
|
name: P,
|
|
4132
4132
|
fn: N(($) => [
|
|
4133
|
-
oe(
|
|
4133
|
+
oe(k.$slots, P, X($, {
|
|
4134
4134
|
value: R[$.field]
|
|
4135
4135
|
}))
|
|
4136
4136
|
])
|
|
@@ -4143,13 +4143,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4143
4143
|
_: 3
|
|
4144
4144
|
}, 8, ["activeKey"])
|
|
4145
4145
|
], 512), [
|
|
4146
|
-
[_n, y(
|
|
4146
|
+
[_n, y(c)(s.formItems)]
|
|
4147
4147
|
]),
|
|
4148
4148
|
K("div", Ki, [
|
|
4149
4149
|
B(wl, X({
|
|
4150
4150
|
ref_key: "gridRef",
|
|
4151
4151
|
ref: O
|
|
4152
|
-
}, Y,
|
|
4152
|
+
}, Y, kl(dl), {
|
|
4153
4153
|
size: r.size,
|
|
4154
4154
|
id: x,
|
|
4155
4155
|
style: { "z-index": "1" },
|
|
@@ -4158,7 +4158,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4158
4158
|
onCellMouseleave: cl,
|
|
4159
4159
|
onCheckboxChange: il,
|
|
4160
4160
|
onRadioChange: sl
|
|
4161
|
-
}),
|
|
4161
|
+
}), we({
|
|
4162
4162
|
operate: N(({ row: P, column: $ }) => [
|
|
4163
4163
|
K("a", {
|
|
4164
4164
|
href: "javascript:void(0)",
|
|
@@ -4167,32 +4167,32 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4167
4167
|
}, ne(P[$.property]), 9, Xi)
|
|
4168
4168
|
]),
|
|
4169
4169
|
vertical: N(({ row: P, column: $ }) => [
|
|
4170
|
-
(_(!0),
|
|
4170
|
+
(_(!0), U(be, null, Ce($.params.childColumns, (he) => (_(), U("div", {
|
|
4171
4171
|
key: he.value
|
|
4172
4172
|
}, [
|
|
4173
4173
|
K("span", es, ne(he.title) + ":", 1),
|
|
4174
4174
|
w[7] || (w[7] = ce(" ")),
|
|
4175
|
-
he.formatter === "operate" ? (_(),
|
|
4175
|
+
he.formatter === "operate" ? (_(), U("span", ts, [
|
|
4176
4176
|
K("a", {
|
|
4177
4177
|
href: "javascript:void(0)",
|
|
4178
4178
|
class: "sag-vxe-page-link",
|
|
4179
4179
|
onClick: (_s) => y(mn)(P, he)
|
|
4180
4180
|
}, ne(P[he.field]), 9, ns)
|
|
4181
|
-
])) : (_(),
|
|
4181
|
+
])) : (_(), U("span", as, ne(y(j).stringFormat(P[he.field], he.formatter)), 1))
|
|
4182
4182
|
]))), 128))
|
|
4183
4183
|
]),
|
|
4184
4184
|
button: N(({ row: P }) => [
|
|
4185
4185
|
K("div", ls, [
|
|
4186
|
-
(_(!0),
|
|
4187
|
-
y(j).toString(P[$.buttonName], !0) && y(
|
|
4188
|
-
d.showButtonLink ? D("", !0) : (_(),
|
|
4186
|
+
(_(!0), U(be, null, Ce(f.tableButtons, ($) => (_(), U(be, { key: $ }, [
|
|
4187
|
+
y(j).toString(P[$.buttonName], !0) && y(Re)($.auth) ? (_(), U("span", rs, [
|
|
4188
|
+
d.showButtonLink ? D("", !0) : (_(), z(E, {
|
|
4189
4189
|
key: 0,
|
|
4190
4190
|
size: "small",
|
|
4191
4191
|
type: y(j).toString($.status, "primary"),
|
|
4192
|
-
onClick: (he) => y(
|
|
4192
|
+
onClick: (he) => y(He)($, P)
|
|
4193
4193
|
}, {
|
|
4194
4194
|
icon: N(() => [
|
|
4195
|
-
B(
|
|
4195
|
+
B(Me, {
|
|
4196
4196
|
icon: $.icon
|
|
4197
4197
|
}, null, 8, ["icon"])
|
|
4198
4198
|
]),
|
|
@@ -4201,13 +4201,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4201
4201
|
]),
|
|
4202
4202
|
_: 2
|
|
4203
4203
|
}, 1032, ["type", "onClick"])),
|
|
4204
|
-
d.showButtonLink ? (_(),
|
|
4204
|
+
d.showButtonLink ? (_(), U("a", {
|
|
4205
4205
|
key: 1,
|
|
4206
4206
|
href: "javascript:void(0)",
|
|
4207
4207
|
class: "sag-vxe-page-button-link",
|
|
4208
|
-
onClick: (he) => y(
|
|
4208
|
+
onClick: (he) => y(He)($, P)
|
|
4209
4209
|
}, [
|
|
4210
|
-
B(
|
|
4210
|
+
B(Me, {
|
|
4211
4211
|
icon: $.icon
|
|
4212
4212
|
}, null, 8, ["icon"]),
|
|
4213
4213
|
ce(" " + ne($.buttonName), 1)
|
|
@@ -4216,21 +4216,21 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4216
4216
|
])) : D("", !0)
|
|
4217
4217
|
], 64))), 128))
|
|
4218
4218
|
]),
|
|
4219
|
-
vl(f.tableMoreButtons, P) ? (_(),
|
|
4219
|
+
vl(f.tableMoreButtons, P) ? (_(), z(qe, {
|
|
4220
4220
|
key: 0,
|
|
4221
4221
|
destroyPopupOnHide: !0
|
|
4222
4222
|
}, {
|
|
4223
4223
|
overlay: N(() => [
|
|
4224
4224
|
B(ie, null, {
|
|
4225
4225
|
default: N(() => [
|
|
4226
|
-
(_(!0),
|
|
4227
|
-
y(
|
|
4228
|
-
y(j).toString(P[$.buttonName], !0) ? (_(),
|
|
4226
|
+
(_(!0), U(be, null, Ce(f.tableMoreButtons, ($) => (_(), U(be, { key: $ }, [
|
|
4227
|
+
y(Re)($.auth) ? (_(), U(be, { key: 0 }, [
|
|
4228
|
+
y(j).toString(P[$.buttonName], !0) ? (_(), z(Se, { key: 0 }, {
|
|
4229
4229
|
default: N(() => [
|
|
4230
4230
|
K("a", {
|
|
4231
|
-
onClick: (he) => y(
|
|
4231
|
+
onClick: (he) => y(He)($, P)
|
|
4232
4232
|
}, [
|
|
4233
|
-
B(
|
|
4233
|
+
B(Me, {
|
|
4234
4234
|
icon: $.icon
|
|
4235
4235
|
}, null, 8, ["icon"]),
|
|
4236
4236
|
ce(" " + ne($.buttonName), 1)
|
|
@@ -4251,7 +4251,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4251
4251
|
}, {
|
|
4252
4252
|
default: N(() => [
|
|
4253
4253
|
w[9] || (w[9] = ce(" 更多操作 ")),
|
|
4254
|
-
B(y(
|
|
4254
|
+
B(y(ft))
|
|
4255
4255
|
]),
|
|
4256
4256
|
_: 1
|
|
4257
4257
|
}, 8, ["type"])
|
|
@@ -4260,14 +4260,14 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4260
4260
|
}, 1024)) : D("", !0)
|
|
4261
4261
|
]),
|
|
4262
4262
|
toolbar_buttons: N(() => [
|
|
4263
|
-
y(
|
|
4263
|
+
y(c)(f.formButtons) && f.formButtons.length > 0 ? (_(), z(I, {
|
|
4264
4264
|
key: 0,
|
|
4265
4265
|
wrap: !0,
|
|
4266
4266
|
style: { "margin-bottom": "0px" }
|
|
4267
4267
|
}, {
|
|
4268
4268
|
default: N(() => [
|
|
4269
|
-
(_(!0),
|
|
4270
|
-
y(
|
|
4269
|
+
(_(!0), U(be, null, Ce(f.formButtons, (P) => (_(), U("span", { key: P }, [
|
|
4270
|
+
y(Re)(P.auth) ? (_(), z(E, {
|
|
4271
4271
|
key: 0,
|
|
4272
4272
|
round: "",
|
|
4273
4273
|
size: y(H),
|
|
@@ -4275,7 +4275,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4275
4275
|
onClick: ($) => y(pl)(P)
|
|
4276
4276
|
}, {
|
|
4277
4277
|
icon: N(() => [
|
|
4278
|
-
B(
|
|
4278
|
+
B(Me, {
|
|
4279
4279
|
icon: P.icon
|
|
4280
4280
|
}, null, 8, ["icon"])
|
|
4281
4281
|
]),
|
|
@@ -4288,10 +4288,10 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4288
4288
|
]),
|
|
4289
4289
|
_: 1
|
|
4290
4290
|
})) : D("", !0),
|
|
4291
|
-
(_(!0),
|
|
4291
|
+
(_(!0), U(be, null, Ce(y(h), (P) => oe(k.$slots, P)), 256))
|
|
4292
4292
|
]),
|
|
4293
4293
|
toolbar_tools: N(() => [
|
|
4294
|
-
y(
|
|
4294
|
+
y(c)(d.tableColumnsExtra) ? (_(), z(Oe, {
|
|
4295
4295
|
key: 0,
|
|
4296
4296
|
size: "small",
|
|
4297
4297
|
circle: !0,
|
|
@@ -4303,11 +4303,11 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4303
4303
|
])),
|
|
4304
4304
|
_: 1
|
|
4305
4305
|
})) : D("", !0),
|
|
4306
|
-
y(
|
|
4306
|
+
y(c)(o.requestDownload) && typeof o.requestDownload == "object" ? (_(), z(Zi, {
|
|
4307
4307
|
key: 1,
|
|
4308
4308
|
onExport: y(gn)
|
|
4309
4309
|
}, null, 8, ["onExport"])) : D("", !0),
|
|
4310
|
-
o.requestDownload === !0 || typeof o.requestDownload == "string" ? (_(),
|
|
4310
|
+
o.requestDownload === !0 || typeof o.requestDownload == "string" ? (_(), z(Oe, {
|
|
4311
4311
|
key: 2,
|
|
4312
4312
|
size: "small",
|
|
4313
4313
|
circle: !0,
|
|
@@ -4319,7 +4319,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4319
4319
|
])),
|
|
4320
4320
|
_: 1
|
|
4321
4321
|
}, 8, ["onClick"])) : D("", !0),
|
|
4322
|
-
o.requestImport ? (_(),
|
|
4322
|
+
o.requestImport ? (_(), z(Oe, {
|
|
4323
4323
|
key: 3,
|
|
4324
4324
|
size: "small",
|
|
4325
4325
|
circle: !0,
|
|
@@ -4333,13 +4333,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4333
4333
|
})) : D("", !0)
|
|
4334
4334
|
]),
|
|
4335
4335
|
empty: N(() => [
|
|
4336
|
-
|
|
4336
|
+
T.value === "error" ? (_(), U("h2", ss, w[13] || (w[13] = [
|
|
4337
4337
|
K("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4338
4338
|
]))) : D("", !0),
|
|
4339
|
-
|
|
4339
|
+
T.value === "none" ? (_(), U("h2", us, w[14] || (w[14] = [
|
|
4340
4340
|
K("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4341
4341
|
]))) : D("", !0),
|
|
4342
|
-
|
|
4342
|
+
T.value === "more" ? (_(), U("h2", cs, [
|
|
4343
4343
|
w[16] || (w[16] = K("span", { style: { "font-size": "16px" } }, [
|
|
4344
4344
|
ce(" 您好,因数据量过大,强制显示将会 "),
|
|
4345
4345
|
K("span", { style: { color: "red" } }, "取消合并列"),
|
|
@@ -4357,15 +4357,15 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4357
4357
|
]),
|
|
4358
4358
|
_: 2
|
|
4359
4359
|
}, [
|
|
4360
|
-
|
|
4360
|
+
Ce(y(S), (P) => ({
|
|
4361
4361
|
name: P,
|
|
4362
4362
|
fn: N(($) => [
|
|
4363
|
-
oe(
|
|
4363
|
+
oe(k.$slots, P, Tl(Al($)))
|
|
4364
4364
|
])
|
|
4365
4365
|
}))
|
|
4366
4366
|
]), 1040, ["size"])
|
|
4367
4367
|
]),
|
|
4368
|
-
a.visible ? (_(),
|
|
4368
|
+
a.visible ? (_(), z(Hi, X({ key: 0 }, a, {
|
|
4369
4369
|
onCancel: yn,
|
|
4370
4370
|
onSubmit: yl
|
|
4371
4371
|
}), null, 16)) : D("", !0)
|
|
@@ -4401,37 +4401,37 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4401
4401
|
},
|
|
4402
4402
|
emits: ["update:value", "change"],
|
|
4403
4403
|
setup(e, { expose: t, emit: n }) {
|
|
4404
|
-
M.locale("zh-cn"), M.extend(
|
|
4404
|
+
M.locale("zh-cn"), M.extend(pt);
|
|
4405
4405
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD";
|
|
4406
4406
|
let o = V();
|
|
4407
|
-
const i = (
|
|
4407
|
+
const i = (u, p) => {
|
|
4408
4408
|
x(p, !0);
|
|
4409
|
-
}, s = () =>
|
|
4410
|
-
o.value = M(
|
|
4411
|
-
}, m = (
|
|
4412
|
-
o.value = M().add(
|
|
4413
|
-
}, f = (
|
|
4414
|
-
u
|
|
4409
|
+
}, s = () => c(o.value) ? M(o.value).format(r) : null, d = (u) => {
|
|
4410
|
+
o.value = M(u), x();
|
|
4411
|
+
}, m = (u) => {
|
|
4412
|
+
o.value = M().add(u || 0, l), x();
|
|
4413
|
+
}, f = (u) => !!(c(a.max) && M(u).format(r) > a.max || c(a.min) && M(u).format(r) < a.min), g = n, x = (u, p = !1) => {
|
|
4414
|
+
c(u) ? (g("update:value", u), p && g("change", u)) : (g("update:value", s()), p && g("change", s()));
|
|
4415
4415
|
};
|
|
4416
4416
|
return me(
|
|
4417
4417
|
() => a.value,
|
|
4418
|
-
(
|
|
4419
|
-
o.value =
|
|
4418
|
+
(u, p) => {
|
|
4419
|
+
o.value = u ? M(u) : null;
|
|
4420
4420
|
}
|
|
4421
|
-
),
|
|
4422
|
-
|
|
4421
|
+
), le(() => {
|
|
4422
|
+
c(a.value) && d(a.value);
|
|
4423
4423
|
}), t({
|
|
4424
4424
|
setDate: d,
|
|
4425
4425
|
setValue: m,
|
|
4426
4426
|
getValue: s
|
|
4427
|
-
}), (
|
|
4427
|
+
}), (u, p) => {
|
|
4428
4428
|
const C = L("a-date-picker");
|
|
4429
|
-
return _(),
|
|
4429
|
+
return _(), z(C, {
|
|
4430
4430
|
value: y(o),
|
|
4431
|
-
"onUpdate:value": p[0] || (p[0] = (S) =>
|
|
4431
|
+
"onUpdate:value": p[0] || (p[0] = (S) => st(o) ? o.value = S : o = S),
|
|
4432
4432
|
"show-time": a.showTime,
|
|
4433
4433
|
disabled: a.disabled,
|
|
4434
|
-
locale: y(
|
|
4434
|
+
locale: y(Fe),
|
|
4435
4435
|
format: y(r),
|
|
4436
4436
|
disabledDate: f,
|
|
4437
4437
|
picker: y(l) === "day" ? "date" : y(l),
|
|
@@ -4459,7 +4459,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4459
4459
|
},
|
|
4460
4460
|
emits: ["update:value", "change"],
|
|
4461
4461
|
setup(e, { expose: t, emit: n }) {
|
|
4462
|
-
M.locale("zh-cn"), M.extend(on), M.extend(
|
|
4462
|
+
M.locale("zh-cn"), M.extend(on), M.extend(pt);
|
|
4463
4463
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD", o = n, i = V(), s = [
|
|
4464
4464
|
{ label: "当天", value: [M().add(0, l)] },
|
|
4465
4465
|
{ label: "近7天", value: [M().add(-7, l)] },
|
|
@@ -4488,35 +4488,35 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4488
4488
|
}, x = () => {
|
|
4489
4489
|
let S = null, h = null;
|
|
4490
4490
|
return i.value && i.value[0] && (S = M(i.value[0]).format(r)), i.value && i.value[1] && (h = M(i.value[1]).format(r)), !S && !h ? null : [S, h];
|
|
4491
|
-
},
|
|
4491
|
+
}, u = (S, h) => {
|
|
4492
4492
|
typeof S == "number" || typeof h == "number" ? i.value = [
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
] : i.value = [
|
|
4493
|
+
c(S) ? M().add(S, l) : null,
|
|
4494
|
+
c(h) ? M().add(h, l) : null
|
|
4495
|
+
] : i.value = [c(S) ? M(S) : null, c(h) ? M(h) : null], C();
|
|
4496
4496
|
}, p = () => {
|
|
4497
|
-
|
|
4497
|
+
u(null, null);
|
|
4498
4498
|
}, C = (S, h = !1) => {
|
|
4499
|
-
|
|
4499
|
+
c(S) ? (o("update:value", S), h && o("change", S)) : (o("update:value", x()), h && o("change", x()));
|
|
4500
4500
|
};
|
|
4501
4501
|
return me(
|
|
4502
4502
|
() => a.value,
|
|
4503
4503
|
(S, h) => {
|
|
4504
4504
|
let O = null, v = null;
|
|
4505
|
-
|
|
4505
|
+
c(S) && (c(S[0]) && (O = M(S[0])), c(S[1]) && (v = M(S[1]))), i.value = [O, v];
|
|
4506
4506
|
}
|
|
4507
|
-
),
|
|
4508
|
-
|
|
4507
|
+
), le(() => {
|
|
4508
|
+
c(a.value) && u(a.value[0], a.value[1]);
|
|
4509
4509
|
}), t({
|
|
4510
|
-
setValue:
|
|
4510
|
+
setValue: u,
|
|
4511
4511
|
getValue: x,
|
|
4512
4512
|
resetValue: p
|
|
4513
4513
|
}), (S, h) => {
|
|
4514
4514
|
const O = L("a-range-picker");
|
|
4515
|
-
return _(),
|
|
4515
|
+
return _(), z(O, {
|
|
4516
4516
|
value: i.value,
|
|
4517
4517
|
"onUpdate:value": h[0] || (h[0] = (v) => i.value = v),
|
|
4518
4518
|
presets: f.value,
|
|
4519
|
-
locale: y(
|
|
4519
|
+
locale: y(Fe),
|
|
4520
4520
|
allowEmpty: [!0, !0],
|
|
4521
4521
|
format: y(r),
|
|
4522
4522
|
picker: y(l) === "day" ? "date" : y(l),
|
|
@@ -4552,7 +4552,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4552
4552
|
};
|
|
4553
4553
|
return (r, o) => {
|
|
4554
4554
|
const i = L("a-button");
|
|
4555
|
-
return _(),
|
|
4555
|
+
return _(), z(i, {
|
|
4556
4556
|
round: "",
|
|
4557
4557
|
size: n.size,
|
|
4558
4558
|
type: n.type,
|
|
@@ -4560,7 +4560,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4560
4560
|
disabled: n.disabled
|
|
4561
4561
|
}, {
|
|
4562
4562
|
icon: N(() => [
|
|
4563
|
-
n.icon !== "none" ? (_(),
|
|
4563
|
+
n.icon !== "none" ? (_(), z(Me, {
|
|
4564
4564
|
key: 0,
|
|
4565
4565
|
icon: n.icon
|
|
4566
4566
|
}, null, 8, ["icon"])) : D("", !0)
|
|
@@ -4612,13 +4612,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4612
4612
|
);
|
|
4613
4613
|
m.value = O;
|
|
4614
4614
|
}, g = n, x = (O, v) => {
|
|
4615
|
-
|
|
4616
|
-
},
|
|
4615
|
+
c(v) ? (g("update:value", O[O.length - 1]), g("change", v[v.length - 1])) : (g("update:value", null), g("change", null));
|
|
4616
|
+
}, u = (O, v) => v.some((b) => b[i].indexOf(O) > -1), p = () => m.value.filter((v) => v[s] === d.value[d.value.length - 1])[i], C = () => d.value, S = (O) => {
|
|
4617
4617
|
d.value = O, g("update:value", O);
|
|
4618
4618
|
}, h = () => {
|
|
4619
4619
|
d.value = null, g("update:value", null), g("change", null);
|
|
4620
4620
|
};
|
|
4621
|
-
return
|
|
4621
|
+
return le(() => {
|
|
4622
4622
|
f();
|
|
4623
4623
|
}), t({
|
|
4624
4624
|
getName: p,
|
|
@@ -4627,13 +4627,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4627
4627
|
resetValue: h
|
|
4628
4628
|
}), (O, v) => {
|
|
4629
4629
|
const b = L("a-cascader");
|
|
4630
|
-
return _(),
|
|
4630
|
+
return _(), U("div", ds, [
|
|
4631
4631
|
B(b, {
|
|
4632
4632
|
value: d.value,
|
|
4633
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
4633
|
+
"onUpdate:value": v[0] || (v[0] = (T) => d.value = T),
|
|
4634
4634
|
options: m.value,
|
|
4635
4635
|
fieldNames: a.fieldNames,
|
|
4636
|
-
"show-search": { filter:
|
|
4636
|
+
"show-search": { filter: u },
|
|
4637
4637
|
disabled: a.disabled,
|
|
4638
4638
|
clearable: a.clearable,
|
|
4639
4639
|
changeOnSelect: a.changeOnSelect,
|
|
@@ -4667,27 +4667,27 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4667
4667
|
//
|
|
4668
4668
|
},
|
|
4669
4669
|
setup(e) {
|
|
4670
|
-
const t = e, n = Object.keys(
|
|
4670
|
+
const t = e, n = Object.keys(Be()), a = n.filter((r) => r === "extra"), l = n.filter((r) => r === "title");
|
|
4671
4671
|
return (r, o) => {
|
|
4672
4672
|
const i = L("a-card");
|
|
4673
|
-
return _(),
|
|
4673
|
+
return _(), z(i, {
|
|
4674
4674
|
size: "small",
|
|
4675
4675
|
headStyle: t.headStyle,
|
|
4676
4676
|
bodyStyle: t.bodyStyle,
|
|
4677
4677
|
style: pe(t.style),
|
|
4678
4678
|
hoverable: t.hoverable,
|
|
4679
4679
|
loading: t.loading
|
|
4680
|
-
},
|
|
4680
|
+
}, we({
|
|
4681
4681
|
default: N(() => [
|
|
4682
4682
|
oe(r.$slots, "default")
|
|
4683
4683
|
]),
|
|
4684
4684
|
_: 2
|
|
4685
4685
|
}, [
|
|
4686
|
-
y(l).length === 1 || y(
|
|
4686
|
+
y(l).length === 1 || y(c)(t.title) ? {
|
|
4687
4687
|
name: "title",
|
|
4688
4688
|
fn: N(() => [
|
|
4689
4689
|
y(l).length === 1 ? oe(r.$slots, "title", { key: 0 }) : D("", !0),
|
|
4690
|
-
y(l).length !== 1 ? (_(),
|
|
4690
|
+
y(l).length !== 1 ? (_(), U("span", fs, ne(t.title), 1)) : D("", !0)
|
|
4691
4691
|
]),
|
|
4692
4692
|
key: "0"
|
|
4693
4693
|
} : void 0,
|
|
@@ -4733,29 +4733,29 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4733
4733
|
},
|
|
4734
4734
|
emits: ["update:value", "change"],
|
|
4735
4735
|
setup(e, { expose: t, emit: n }) {
|
|
4736
|
-
const a = e, l = V(j.toString(a.value, null)), r = n, o = Object.keys(
|
|
4736
|
+
const a = e, l = V(j.toString(a.value, null)), r = n, o = Object.keys(Be()), i = o.filter((u) => u === "addonAfter"), s = o.filter((u) => u === "addonBefore"), d = () => {
|
|
4737
4737
|
x(!0);
|
|
4738
|
-
}, m = () => l.value, f = (
|
|
4739
|
-
a.formatter === "date" ? l.value = j.toDateString(
|
|
4738
|
+
}, m = () => l.value, f = (u) => {
|
|
4739
|
+
a.formatter === "date" ? l.value = j.toDateString(u) : a.formatter === "datetime" ? l.value = j.toDatetimeString(u) : l.value = u, x();
|
|
4740
4740
|
}, g = () => {
|
|
4741
4741
|
l.value = "", x();
|
|
4742
4742
|
};
|
|
4743
4743
|
me(
|
|
4744
4744
|
() => a.value,
|
|
4745
|
-
(
|
|
4746
|
-
|
|
4745
|
+
(u, p) => {
|
|
4746
|
+
u !== l.value && f(u);
|
|
4747
4747
|
}
|
|
4748
4748
|
);
|
|
4749
|
-
const x = (
|
|
4750
|
-
r("update:value", l.value),
|
|
4749
|
+
const x = (u = !1) => {
|
|
4750
|
+
r("update:value", l.value), u && r("change", l.value);
|
|
4751
4751
|
};
|
|
4752
4752
|
return t({
|
|
4753
4753
|
getValue: m,
|
|
4754
4754
|
setValue: f,
|
|
4755
4755
|
resetValue: g
|
|
4756
|
-
}), (
|
|
4756
|
+
}), (u, p) => {
|
|
4757
4757
|
const C = L("a-input");
|
|
4758
|
-
return _(),
|
|
4758
|
+
return _(), z(C, {
|
|
4759
4759
|
value: l.value,
|
|
4760
4760
|
"onUpdate:value": p[0] || (p[0] = (S) => l.value = S),
|
|
4761
4761
|
placeholder: a.placeholder,
|
|
@@ -4764,20 +4764,20 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4764
4764
|
maxlength: a.maxlength,
|
|
4765
4765
|
style: pe(a.style),
|
|
4766
4766
|
onChange: d
|
|
4767
|
-
},
|
|
4768
|
-
y(i).length === 1 || y(
|
|
4767
|
+
}, we({ _: 2 }, [
|
|
4768
|
+
y(i).length === 1 || y(c)(a.addonAfter) ? {
|
|
4769
4769
|
name: "addonAfter",
|
|
4770
4770
|
fn: N(() => [
|
|
4771
|
-
y(i).length === 1 ? oe(
|
|
4772
|
-
y(i).length !== 1 ? (_(),
|
|
4771
|
+
y(i).length === 1 ? oe(u.$slots, "addonAfter", { key: 0 }) : D("", !0),
|
|
4772
|
+
y(i).length !== 1 ? (_(), U("span", ps, ne(a.addonAfter), 1)) : D("", !0)
|
|
4773
4773
|
]),
|
|
4774
4774
|
key: "0"
|
|
4775
4775
|
} : void 0,
|
|
4776
|
-
y(s).length === 1 || y(
|
|
4776
|
+
y(s).length === 1 || y(c)(a.addonBefore) ? {
|
|
4777
4777
|
name: "addonBefore",
|
|
4778
4778
|
fn: N(() => [
|
|
4779
|
-
y(s).length === 1 ? oe(
|
|
4780
|
-
y(s).length !== 1 ? (_(),
|
|
4779
|
+
y(s).length === 1 ? oe(u.$slots, "addonBefore", { key: 0 }) : D("", !0),
|
|
4780
|
+
y(s).length !== 1 ? (_(), U("span", ms, ne(a.addonBefore), 1)) : D("", !0)
|
|
4781
4781
|
]),
|
|
4782
4782
|
key: "1"
|
|
4783
4783
|
} : void 0
|
|
@@ -4822,29 +4822,29 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4822
4822
|
},
|
|
4823
4823
|
emits: ["update:value", "change"],
|
|
4824
4824
|
setup(e, { expose: t, emit: n }) {
|
|
4825
|
-
const a = e, l = V(j.toString(a.value, null)), r = n, o = Object.keys(
|
|
4825
|
+
const a = e, l = V(j.toString(a.value, null)), r = n, o = Object.keys(Be()), i = o.filter((u) => u === "addonAfter"), s = o.filter((u) => u === "addonBefore"), d = () => {
|
|
4826
4826
|
x(!0);
|
|
4827
|
-
}, m = () => l.value, f = (
|
|
4828
|
-
l.value =
|
|
4827
|
+
}, m = () => l.value, f = (u) => {
|
|
4828
|
+
l.value = u, x();
|
|
4829
4829
|
}, g = () => {
|
|
4830
4830
|
l.value = "", x();
|
|
4831
4831
|
};
|
|
4832
4832
|
me(
|
|
4833
4833
|
() => a.value,
|
|
4834
|
-
(
|
|
4835
|
-
|
|
4834
|
+
(u, p) => {
|
|
4835
|
+
u !== l.value && f(u);
|
|
4836
4836
|
}
|
|
4837
4837
|
);
|
|
4838
|
-
const x = (
|
|
4839
|
-
r("update:value", l.value),
|
|
4838
|
+
const x = (u = !1) => {
|
|
4839
|
+
r("update:value", l.value), u && r("change", l.value);
|
|
4840
4840
|
};
|
|
4841
4841
|
return t({
|
|
4842
4842
|
getValue: m,
|
|
4843
4843
|
setValue: f,
|
|
4844
4844
|
resetValue: g
|
|
4845
|
-
}), (
|
|
4845
|
+
}), (u, p) => {
|
|
4846
4846
|
const C = L("a-input-number");
|
|
4847
|
-
return _(),
|
|
4847
|
+
return _(), z(C, {
|
|
4848
4848
|
value: l.value,
|
|
4849
4849
|
"onUpdate:value": p[0] || (p[0] = (S) => l.value = S),
|
|
4850
4850
|
placeholder: a.placeholder,
|
|
@@ -4857,20 +4857,20 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4857
4857
|
controls: a.controls,
|
|
4858
4858
|
style: pe(a.style),
|
|
4859
4859
|
onChange: d
|
|
4860
|
-
},
|
|
4861
|
-
y(i).length === 1 || y(
|
|
4860
|
+
}, we({ _: 2 }, [
|
|
4861
|
+
y(i).length === 1 || y(c)(a.addonAfter) ? {
|
|
4862
4862
|
name: "addonAfter",
|
|
4863
4863
|
fn: N(() => [
|
|
4864
|
-
y(i).length === 1 ? oe(
|
|
4865
|
-
y(i).length !== 1 ? (_(),
|
|
4864
|
+
y(i).length === 1 ? oe(u.$slots, "addonAfter", { key: 0 }) : D("", !0),
|
|
4865
|
+
y(i).length !== 1 ? (_(), U("span", gs, ne(a.addonAfter), 1)) : D("", !0)
|
|
4866
4866
|
]),
|
|
4867
4867
|
key: "0"
|
|
4868
4868
|
} : void 0,
|
|
4869
|
-
y(s).length === 1 || y(
|
|
4869
|
+
y(s).length === 1 || y(c)(a.addonBefore) ? {
|
|
4870
4870
|
name: "addonBefore",
|
|
4871
4871
|
fn: N(() => [
|
|
4872
|
-
y(s).length === 1 ? oe(
|
|
4873
|
-
y(s).length !== 1 ? (_(),
|
|
4872
|
+
y(s).length === 1 ? oe(u.$slots, "addonBefore", { key: 0 }) : D("", !0),
|
|
4873
|
+
y(s).length !== 1 ? (_(), U("span", vs, ne(a.addonBefore), 1)) : D("", !0)
|
|
4874
4874
|
]),
|
|
4875
4875
|
key: "1"
|
|
4876
4876
|
} : void 0
|
|
@@ -4911,19 +4911,19 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4911
4911
|
}
|
|
4912
4912
|
), (i, s) => {
|
|
4913
4913
|
const d = L("a-input-search");
|
|
4914
|
-
return _(),
|
|
4914
|
+
return _(), z(d, {
|
|
4915
4915
|
value: a.value,
|
|
4916
4916
|
"onUpdate:value": s[0] || (s[0] = (m) => a.value = m),
|
|
4917
4917
|
"enter-button": n.title,
|
|
4918
4918
|
disabled: n.disabled,
|
|
4919
4919
|
readonly: n.readonly,
|
|
4920
4920
|
onSearch: r
|
|
4921
|
-
},
|
|
4921
|
+
}, we({ _: 2 }, [
|
|
4922
4922
|
n.showSuffix && !n.disabled ? {
|
|
4923
4923
|
name: "suffix",
|
|
4924
4924
|
fn: N(() => [
|
|
4925
4925
|
K("a", { onClick: o }, [
|
|
4926
|
-
B(
|
|
4926
|
+
B(Me, { icon: "close" })
|
|
4927
4927
|
])
|
|
4928
4928
|
]),
|
|
4929
4929
|
key: "0"
|
|
@@ -4985,9 +4985,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
4985
4985
|
resetValue: d
|
|
4986
4986
|
}), (f, g) => {
|
|
4987
4987
|
const x = L("a-textarea");
|
|
4988
|
-
return _(),
|
|
4988
|
+
return _(), z(x, {
|
|
4989
4989
|
value: l.value,
|
|
4990
|
-
"onUpdate:value": g[0] || (g[0] = (
|
|
4990
|
+
"onUpdate:value": g[0] || (g[0] = (u) => l.value = u),
|
|
4991
4991
|
placeholder: a.placeholder,
|
|
4992
4992
|
disabled: a.disabled,
|
|
4993
4993
|
allowClear: a.allowClear,
|
|
@@ -5032,35 +5032,35 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5032
5032
|
},
|
|
5033
5033
|
emits: ["update:value", "update:label", "change"],
|
|
5034
5034
|
setup(e, { expose: t, emit: n }) {
|
|
5035
|
-
const a = e, l = n, r = j.toString(a.value, null), o = a.multiple ? V(
|
|
5035
|
+
const a = e, l = n, r = j.toString(a.value, null), o = a.multiple ? V(c(r) ? r.split(",") : []) : V(r), i = V(a.multiple ? [] : null), s = V(a.multiple ? {} : null), d = V([]), m = a.maxTagCount || 10, f = (v) => a.mountainTop ? document.body : v.parentNode, g = async () => {
|
|
5036
5036
|
const v = ee(A.ctxPath, A.requestDictUrl);
|
|
5037
5037
|
return await rn(A.application, v, a.requestParams);
|
|
5038
|
-
}, x = (v, b) => b.label.toLowerCase().indexOf(v.toLowerCase()) >= 0,
|
|
5038
|
+
}, x = (v, b) => b.label.toLowerCase().indexOf(v.toLowerCase()) >= 0, u = (v, b) => {
|
|
5039
5039
|
h(!0);
|
|
5040
5040
|
}, p = () => o.value, C = (v) => {
|
|
5041
|
-
a.multiple ? o.value =
|
|
5041
|
+
a.multiple ? o.value = c(v) ? v.split(",") : null : o.value = v, h();
|
|
5042
5042
|
}, S = () => {
|
|
5043
5043
|
C("");
|
|
5044
5044
|
};
|
|
5045
5045
|
me(
|
|
5046
5046
|
() => a.value,
|
|
5047
5047
|
(v) => {
|
|
5048
|
-
a.multiple ? o.value =
|
|
5048
|
+
a.multiple ? o.value = c(v) ? v.split(",") : [] : o.value = v;
|
|
5049
5049
|
}
|
|
5050
5050
|
);
|
|
5051
5051
|
const h = (v = !1) => {
|
|
5052
5052
|
a.multiple ? l("update:value", o.value.join(",")) : l("update:value", o.value), O(v);
|
|
5053
5053
|
}, O = (v = !1) => {
|
|
5054
|
-
if (
|
|
5054
|
+
if (c(o.value))
|
|
5055
5055
|
if (a.multiple) {
|
|
5056
5056
|
const b = [];
|
|
5057
|
-
o.value.forEach((
|
|
5058
|
-
let
|
|
5059
|
-
|
|
5057
|
+
o.value.forEach((T) => {
|
|
5058
|
+
let q = d.value.filter((F) => F.value === T);
|
|
5059
|
+
q.length === 1 && (b.push(q[0].label), s.value[T] = q[0]);
|
|
5060
5060
|
}), i.value = b;
|
|
5061
5061
|
} else {
|
|
5062
|
-
const b = d.value.filter((
|
|
5063
|
-
|
|
5062
|
+
const b = d.value.filter((T) => T.value === o.value);
|
|
5063
|
+
c(b) && (i.value = b[0].label, s.value = b[0]);
|
|
5064
5064
|
}
|
|
5065
5065
|
else
|
|
5066
5066
|
i.value = a.multiple ? [] : null, s.value = a.multiple ? {} : null;
|
|
@@ -5070,16 +5070,16 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5070
5070
|
getValue: p,
|
|
5071
5071
|
setValue: C,
|
|
5072
5072
|
resetValue: S
|
|
5073
|
-
}),
|
|
5073
|
+
}), le(() => {
|
|
5074
5074
|
g().then((v) => {
|
|
5075
|
-
d.value = v,
|
|
5075
|
+
d.value = v, c(a.extraOptions) && a.extraOptions?.length > 0 && d.value.unshift(...a.extraOptions), c(o.value) && !c(i.value) && O();
|
|
5076
5076
|
});
|
|
5077
5077
|
}), (v, b) => {
|
|
5078
|
-
const
|
|
5079
|
-
return _(),
|
|
5078
|
+
const T = L("a-select");
|
|
5079
|
+
return _(), z(T, {
|
|
5080
5080
|
value: y(o),
|
|
5081
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
5082
|
-
onChange:
|
|
5081
|
+
"onUpdate:value": b[0] || (b[0] = (q) => st(o) ? o.value = q : null),
|
|
5082
|
+
onChange: u,
|
|
5083
5083
|
placeholder: "--请选择--",
|
|
5084
5084
|
allowClear: a.clearable,
|
|
5085
5085
|
mode: e.multiple ? "multiple" : "",
|
|
@@ -5125,9 +5125,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5125
5125
|
//
|
|
5126
5126
|
corpId: { type: String, default: null },
|
|
5127
5127
|
//
|
|
5128
|
-
|
|
5129
|
-
//
|
|
5130
|
-
requiredTenant: { type: Boolean, default: !0 },
|
|
5128
|
+
corpFilter: { type: Boolean, default: !0 },
|
|
5131
5129
|
//
|
|
5132
5130
|
mountainTop: { type: Boolean, default: !0 },
|
|
5133
5131
|
//
|
|
@@ -5136,50 +5134,50 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5136
5134
|
},
|
|
5137
5135
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5138
5136
|
setup(e, { expose: t, emit: n }) {
|
|
5139
|
-
const a = e, l = V(a.value ? a.value : a.multiple ? [] : null), r = V(a.label ? a.label : a.multiple ? [] : null), o = V(a.multiple ? {} : null), i = V([]), s = V(!1), d = n, m = "请输入" + a.title + "搜索", f = (
|
|
5140
|
-
if (a.
|
|
5137
|
+
const a = e, l = V(a.value ? a.value : a.multiple ? [] : null), r = V(a.label ? a.label : a.multiple ? [] : null), o = V(a.multiple ? {} : null), i = V([]), s = V(!1), d = n, m = "请输入" + a.title + "搜索", f = (q) => a.mountainTop ? document.body : q.parentNode, g = async () => {
|
|
5138
|
+
if (a.corpFilter && !c(a.corpId))
|
|
5141
5139
|
return i.value = [], [];
|
|
5142
|
-
let
|
|
5143
|
-
Object.assign(
|
|
5144
|
-
const F = await
|
|
5140
|
+
let q = { corpId: a.corpId };
|
|
5141
|
+
Object.assign(q, a.requestParams), i.value = [], s.value = !0;
|
|
5142
|
+
const F = await Ne(a.requestUrl, q);
|
|
5145
5143
|
return s.value = !1, i.value = F, F;
|
|
5146
5144
|
}, x = At(() => {
|
|
5147
|
-
g().then((
|
|
5148
|
-
d("query",
|
|
5145
|
+
g().then((q) => {
|
|
5146
|
+
d("query", q);
|
|
5149
5147
|
});
|
|
5150
|
-
}, 300),
|
|
5151
|
-
C(
|
|
5152
|
-
|
|
5148
|
+
}, 300), u = (q) => {
|
|
5149
|
+
C(q).then(() => {
|
|
5150
|
+
T(!0);
|
|
5153
5151
|
});
|
|
5154
|
-
}, p = (
|
|
5155
|
-
if (l.value =
|
|
5152
|
+
}, p = (q, F) => F.label.toLowerCase().indexOf(Pe(q).toLowerCase()) >= 0, C = async (q) => {
|
|
5153
|
+
if (l.value = q, a.multiple) {
|
|
5156
5154
|
const F = [];
|
|
5157
5155
|
l.value.forEach((H) => {
|
|
5158
5156
|
let Z = i.value.filter((R) => R.value === H);
|
|
5159
5157
|
Z.length === 1 && (F.push(Z[0].label), o.value[H] = Z[0]);
|
|
5160
5158
|
}), r.value = F;
|
|
5161
5159
|
} else {
|
|
5162
|
-
let F = i.value.filter((H) => H.value ===
|
|
5160
|
+
let F = i.value.filter((H) => H.value === q);
|
|
5163
5161
|
F.length === 1 ? (r.value = F[0].label, o.value = F[0]) : (r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null);
|
|
5164
5162
|
}
|
|
5165
|
-
}, S = () => r.value, h = () => l.value, O = (
|
|
5166
|
-
C(
|
|
5167
|
-
|
|
5163
|
+
}, S = () => r.value, h = () => l.value, O = (q) => {
|
|
5164
|
+
C(q).then(() => {
|
|
5165
|
+
T();
|
|
5168
5166
|
});
|
|
5169
5167
|
}, v = () => {
|
|
5170
|
-
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null,
|
|
5171
|
-
}, b = async (
|
|
5172
|
-
v(), i.value = [],
|
|
5173
|
-
},
|
|
5174
|
-
d("update:value", l.value), d("update:label", r.value),
|
|
5168
|
+
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null, T();
|
|
5169
|
+
}, b = async (q = !0) => {
|
|
5170
|
+
v(), i.value = [], q && await x();
|
|
5171
|
+
}, T = (q = !1) => {
|
|
5172
|
+
d("update:value", l.value), d("update:label", r.value), q && d("change", o.value);
|
|
5175
5173
|
};
|
|
5176
5174
|
return me(
|
|
5177
|
-
() => [a.
|
|
5178
|
-
async ([
|
|
5179
|
-
const
|
|
5180
|
-
|
|
5175
|
+
() => [a.corpId, a.value],
|
|
5176
|
+
async ([q, F], [H, Z]) => {
|
|
5177
|
+
const R = q !== H, re = F !== l.value;
|
|
5178
|
+
R && (v(), await g()), re && O(F);
|
|
5181
5179
|
}
|
|
5182
|
-
),
|
|
5180
|
+
), le(async () => {
|
|
5183
5181
|
g();
|
|
5184
5182
|
}), t({
|
|
5185
5183
|
getName: S,
|
|
@@ -5187,9 +5185,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5187
5185
|
setValue: O,
|
|
5188
5186
|
resetValue: v,
|
|
5189
5187
|
clearValue: b
|
|
5190
|
-
}), (
|
|
5188
|
+
}), (q, F) => {
|
|
5191
5189
|
const H = L("a-spin"), Z = L("a-select");
|
|
5192
|
-
return _(),
|
|
5190
|
+
return _(), U("div", hs, [
|
|
5193
5191
|
B(Z, {
|
|
5194
5192
|
value: l.value,
|
|
5195
5193
|
"onUpdate:value": F[0] || (F[0] = (R) => l.value = R),
|
|
@@ -5202,9 +5200,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5202
5200
|
options: i.value,
|
|
5203
5201
|
allowClear: a.clearable,
|
|
5204
5202
|
getPopupContainer: f,
|
|
5205
|
-
onChange:
|
|
5203
|
+
onChange: u,
|
|
5206
5204
|
"show-search": ""
|
|
5207
|
-
},
|
|
5205
|
+
}, we({ _: 2 }, [
|
|
5208
5206
|
s.value ? {
|
|
5209
5207
|
name: "notFoundContent",
|
|
5210
5208
|
fn: N(() => [
|
|
@@ -5220,7 +5218,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5220
5218
|
install: (e, t) => {
|
|
5221
5219
|
e.component(Pa.name, Pa);
|
|
5222
5220
|
}
|
|
5223
|
-
}, ys = { class: "vxe-form-ant-select" },
|
|
5221
|
+
}, ys = { class: "vxe-form-ant-select" }, ka = /* @__PURE__ */ W({
|
|
5224
5222
|
name: "SagAntdSelectPull",
|
|
5225
5223
|
inheritAttrs: !1,
|
|
5226
5224
|
__name: "SagAntdSelectPull",
|
|
@@ -5239,11 +5237,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5239
5237
|
//
|
|
5240
5238
|
clearable: { type: Boolean, default: !0 },
|
|
5241
5239
|
//
|
|
5242
|
-
tenantId: { type: String, default: null },
|
|
5243
|
-
//
|
|
5244
5240
|
corpId: { type: String, default: null },
|
|
5245
5241
|
//
|
|
5246
|
-
|
|
5242
|
+
corpFilter: { type: Boolean, default: !0 },
|
|
5247
5243
|
//
|
|
5248
5244
|
mountainTop: { type: Boolean, default: !0 },
|
|
5249
5245
|
//
|
|
@@ -5253,30 +5249,30 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5253
5249
|
emits: ["update:value", "update:label", "change"],
|
|
5254
5250
|
setup(e, { expose: t, emit: n }) {
|
|
5255
5251
|
const a = e, l = V(a.value || null), r = V(a.label || ""), o = V({}), i = V([]), s = V(!1), d = n, m = "请输入" + a.title + "搜索", f = (b) => a.mountainTop ? document.body : b.parentNode, g = async (b) => {
|
|
5256
|
-
if (i.value = [], a.
|
|
5252
|
+
if (i.value = [], a.corpFilter && !c(a.corpId))
|
|
5257
5253
|
return [];
|
|
5258
|
-
if (
|
|
5259
|
-
let
|
|
5260
|
-
Object.assign(
|
|
5261
|
-
const
|
|
5262
|
-
return s.value = !1, i.value =
|
|
5254
|
+
if (c(b)) {
|
|
5255
|
+
let T = { corpId: a.corpId, searchValue: Pe(b) };
|
|
5256
|
+
Object.assign(T, a.requestParams), s.value = !0;
|
|
5257
|
+
const q = await Ne(a.requestUrl, T);
|
|
5258
|
+
return s.value = !1, i.value = q, q;
|
|
5263
5259
|
} else
|
|
5264
5260
|
return [];
|
|
5265
5261
|
}, x = (b) => {
|
|
5266
|
-
l.value = b, p(b).then((
|
|
5262
|
+
l.value = b, p(b).then((T) => {
|
|
5267
5263
|
v(!0);
|
|
5268
5264
|
});
|
|
5269
|
-
},
|
|
5265
|
+
}, u = At((b) => {
|
|
5270
5266
|
g(b);
|
|
5271
5267
|
}, 500), p = async (b) => {
|
|
5272
|
-
if (
|
|
5273
|
-
let
|
|
5274
|
-
return
|
|
5268
|
+
if (c(b)) {
|
|
5269
|
+
let T = i.value.filter((q) => q.value === b);
|
|
5270
|
+
return T.length === 1 ? (l.value = T[0].value, r.value = T[0].label, o.value = T[0], !0) : (l.value = null, r.value = "", o.value = null, !1);
|
|
5275
5271
|
} else
|
|
5276
5272
|
return l.value = null, r.value = "", o.value = null, !0;
|
|
5277
5273
|
}, C = () => r.value, S = () => l.value, h = (b) => {
|
|
5278
|
-
l.value = b, p(b).then((
|
|
5279
|
-
|
|
5274
|
+
l.value = b, p(b).then((T) => {
|
|
5275
|
+
T && v();
|
|
5280
5276
|
});
|
|
5281
5277
|
}, O = () => {
|
|
5282
5278
|
r.value = "", l.value = null, o.value = null, v();
|
|
@@ -5284,17 +5280,17 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5284
5280
|
d("update:value", l.value), d("update:label", r.value), b && d("change", o.value);
|
|
5285
5281
|
};
|
|
5286
5282
|
return me(
|
|
5287
|
-
() => [a.
|
|
5288
|
-
async ([b,
|
|
5289
|
-
const
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
h(
|
|
5283
|
+
() => [a.corpId, a.value],
|
|
5284
|
+
async ([b, T], [q, F]) => {
|
|
5285
|
+
const H = b !== q, Z = T !== l.value;
|
|
5286
|
+
H && (i.value = [], O()), Z && p(T).then((R) => {
|
|
5287
|
+
R || g(T).then(() => {
|
|
5288
|
+
h(T);
|
|
5293
5289
|
});
|
|
5294
5290
|
});
|
|
5295
5291
|
}
|
|
5296
|
-
),
|
|
5297
|
-
|
|
5292
|
+
), le(async () => {
|
|
5293
|
+
c(l.value) && (c(r.value) ? i.value = [
|
|
5298
5294
|
{
|
|
5299
5295
|
value: l.value,
|
|
5300
5296
|
label: r.value
|
|
@@ -5305,12 +5301,12 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5305
5301
|
getValue: S,
|
|
5306
5302
|
setValue: h,
|
|
5307
5303
|
resetValue: O
|
|
5308
|
-
}), (b,
|
|
5309
|
-
const
|
|
5310
|
-
return _(),
|
|
5304
|
+
}), (b, T) => {
|
|
5305
|
+
const q = L("a-spin"), F = L("a-select");
|
|
5306
|
+
return _(), U("div", ys, [
|
|
5311
5307
|
B(F, {
|
|
5312
5308
|
value: l.value,
|
|
5313
|
-
"onUpdate:value":
|
|
5309
|
+
"onUpdate:value": T[0] || (T[0] = (H) => l.value = H),
|
|
5314
5310
|
placeholder: m,
|
|
5315
5311
|
style: pe(a.style),
|
|
5316
5312
|
"filter-option": !1,
|
|
@@ -5321,13 +5317,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5321
5317
|
"show-arrow": !1,
|
|
5322
5318
|
getPopupContainer: f,
|
|
5323
5319
|
onChange: x,
|
|
5324
|
-
onSearch: y(
|
|
5320
|
+
onSearch: y(u),
|
|
5325
5321
|
"show-search": ""
|
|
5326
|
-
},
|
|
5322
|
+
}, we({ _: 2 }, [
|
|
5327
5323
|
s.value ? {
|
|
5328
5324
|
name: "notFoundContent",
|
|
5329
5325
|
fn: N(() => [
|
|
5330
|
-
B(
|
|
5326
|
+
B(q, { size: "small" })
|
|
5331
5327
|
]),
|
|
5332
5328
|
key: "0"
|
|
5333
5329
|
} : void 0
|
|
@@ -5337,9 +5333,9 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5337
5333
|
}
|
|
5338
5334
|
}), Ls = {
|
|
5339
5335
|
install: (e, t) => {
|
|
5340
|
-
e.component(
|
|
5336
|
+
e.component(ka.name, ka);
|
|
5341
5337
|
}
|
|
5342
|
-
}, bs = { key: 1 },
|
|
5338
|
+
}, bs = { key: 1 }, Ta = /* @__PURE__ */ W({
|
|
5343
5339
|
name: "SagAntdPanel",
|
|
5344
5340
|
inheritAttrs: !1,
|
|
5345
5341
|
__name: "SagAntdPanel",
|
|
@@ -5352,10 +5348,10 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5352
5348
|
//
|
|
5353
5349
|
},
|
|
5354
5350
|
setup(e) {
|
|
5355
|
-
const t = e, n = Object.keys(
|
|
5351
|
+
const t = e, n = Object.keys(Be()), a = n.filter((i) => i !== "header"), l = n.filter((i) => i === "header"), r = V(t.activeKey), o = V(t.header instanceof Object ? t.header : { default: t.header });
|
|
5356
5352
|
return (i, s) => {
|
|
5357
5353
|
const d = L("a-collapse-panel"), m = L("a-collapse");
|
|
5358
|
-
return _(),
|
|
5354
|
+
return _(), z(m, {
|
|
5359
5355
|
activeKey: r.value,
|
|
5360
5356
|
"onUpdate:activeKey": s[0] || (s[0] = (f) => r.value = f),
|
|
5361
5357
|
expandIconPosition: "end",
|
|
@@ -5363,13 +5359,13 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5363
5359
|
accordion: ""
|
|
5364
5360
|
}, {
|
|
5365
5361
|
default: N(() => [
|
|
5366
|
-
(_(!0),
|
|
5362
|
+
(_(!0), U(be, null, Ce(y(a), (f) => (_(), z(d, {
|
|
5367
5363
|
key: f,
|
|
5368
5364
|
forceRender: "",
|
|
5369
5365
|
showArrow: t.showArrow
|
|
5370
5366
|
}, {
|
|
5371
5367
|
header: N(() => [
|
|
5372
|
-
y(l).length === 1 ? oe(i.$slots, "header", { key: 0 }) : (_(),
|
|
5368
|
+
y(l).length === 1 ? oe(i.$slots, "header", { key: 0 }) : (_(), U("span", bs, ne(o.value[f]), 1))
|
|
5373
5369
|
]),
|
|
5374
5370
|
default: N(() => [
|
|
5375
5371
|
oe(i.$slots, f)
|
|
@@ -5381,20 +5377,20 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5381
5377
|
}, 8, ["activeKey", "collapsible"]);
|
|
5382
5378
|
};
|
|
5383
5379
|
}
|
|
5384
|
-
}),
|
|
5380
|
+
}), Us = {
|
|
5385
5381
|
install: (e, t) => {
|
|
5386
|
-
e.component(
|
|
5382
|
+
e.component(Ta.name, Ta);
|
|
5387
5383
|
}
|
|
5388
5384
|
}, Ss = { class: "sag-antd-space-wrapper" }, Aa = /* @__PURE__ */ W({
|
|
5389
5385
|
name: "SagAntdSpace",
|
|
5390
5386
|
inheritAttrs: !1,
|
|
5391
5387
|
__name: "SagAntdSpace",
|
|
5392
5388
|
setup(e) {
|
|
5393
|
-
return (t, n) => (_(),
|
|
5389
|
+
return (t, n) => (_(), U("div", Ss, [
|
|
5394
5390
|
oe(t.$slots, "default")
|
|
5395
5391
|
]));
|
|
5396
5392
|
}
|
|
5397
|
-
}),
|
|
5393
|
+
}), Is = {
|
|
5398
5394
|
install: (e, t) => {
|
|
5399
5395
|
e.component(Aa.name, Aa);
|
|
5400
5396
|
}
|
|
@@ -5426,7 +5422,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5426
5422
|
}
|
|
5427
5423
|
), (o, i) => {
|
|
5428
5424
|
const s = L("a-switch");
|
|
5429
|
-
return _(),
|
|
5425
|
+
return _(), z(s, {
|
|
5430
5426
|
checked: a.value,
|
|
5431
5427
|
"onUpdate:checked": i[0] || (i[0] = (d) => a.value = d),
|
|
5432
5428
|
checkedValue: n.checkedValue,
|
|
@@ -5463,7 +5459,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5463
5459
|
},
|
|
5464
5460
|
emits: ["update:activeKey", "change"],
|
|
5465
5461
|
setup(e, { emit: t }) {
|
|
5466
|
-
const n = e, a = n.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(
|
|
5462
|
+
const n = e, a = n.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Be()), r = l.filter((m) => m != "rightExtra"), o = V(n.activeKey), i = V(n.header instanceof Object ? n.header : { default: n.header }), s = t, d = (m) => {
|
|
5467
5463
|
s("update:activeKey", m), s("change", m);
|
|
5468
5464
|
};
|
|
5469
5465
|
return me(
|
|
@@ -5473,31 +5469,31 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5473
5469
|
}
|
|
5474
5470
|
), (m, f) => {
|
|
5475
5471
|
const g = L("a-tab-pane"), x = L("a-tabs");
|
|
5476
|
-
return _(),
|
|
5472
|
+
return _(), z(x, {
|
|
5477
5473
|
activeKey: o.value,
|
|
5478
|
-
"onUpdate:activeKey": f[0] || (f[0] = (
|
|
5474
|
+
"onUpdate:activeKey": f[0] || (f[0] = (u) => o.value = u),
|
|
5479
5475
|
type: n.type,
|
|
5480
5476
|
"tab-position": n.position,
|
|
5481
5477
|
tabBarGutter: n.position === "left" ? 4 : 25,
|
|
5482
5478
|
tabBarStyle: { margin: 0, backgroundColor: y(a) },
|
|
5483
5479
|
onChange: d
|
|
5484
|
-
},
|
|
5480
|
+
}, we({
|
|
5485
5481
|
default: N(() => [
|
|
5486
|
-
(_(!0),
|
|
5487
|
-
key:
|
|
5488
|
-
forceRender: n.forceRender && !n.notForceRender?.includes(
|
|
5482
|
+
(_(!0), U(be, null, Ce(y(r), (u, p) => (_(), z(g, {
|
|
5483
|
+
key: u,
|
|
5484
|
+
forceRender: n.forceRender && !n.notForceRender?.includes(u),
|
|
5489
5485
|
style: pe(n.position === "left" ? { paddingLeft: "0" } : {})
|
|
5490
5486
|
}, {
|
|
5491
5487
|
tab: N(() => [
|
|
5492
5488
|
K("span", {
|
|
5493
5489
|
style: pe(p === 0 && n.position === "top" ? { marginLeft: "10px" } : {})
|
|
5494
5490
|
}, [
|
|
5495
|
-
B(
|
|
5496
|
-
ce(" " + ne(i.value[
|
|
5491
|
+
B(Me, { icon: "menu" }),
|
|
5492
|
+
ce(" " + ne(i.value[u]), 1)
|
|
5497
5493
|
], 4)
|
|
5498
5494
|
]),
|
|
5499
5495
|
default: N(() => [
|
|
5500
|
-
oe(m.$slots,
|
|
5496
|
+
oe(m.$slots, u)
|
|
5501
5497
|
]),
|
|
5502
5498
|
_: 2
|
|
5503
5499
|
}, 1032, ["forceRender", "style"]))), 128))
|
|
@@ -5527,7 +5523,7 @@ const Li = { id: "div_view_modal" }, Ii = { style: { color: "red", "padding-left
|
|
|
5527
5523
|
},
|
|
5528
5524
|
setup(e) {
|
|
5529
5525
|
const t = e;
|
|
5530
|
-
return (n, a) => (_(),
|
|
5526
|
+
return (n, a) => (_(), z(Me, {
|
|
5531
5527
|
icon: t.icon
|
|
5532
5528
|
}, null, 8, ["icon"]));
|
|
5533
5529
|
}
|
|
@@ -5546,15 +5542,15 @@ export {
|
|
|
5546
5542
|
Ds as SagAntdInputNumber,
|
|
5547
5543
|
Bs as SagAntdInputSearch,
|
|
5548
5544
|
Ys as SagAntdOutlined,
|
|
5549
|
-
|
|
5545
|
+
Us as SagAntdPanel,
|
|
5550
5546
|
Rs as SagAntdSelect,
|
|
5551
5547
|
Es as SagAntdSelectList,
|
|
5552
5548
|
Ls as SagAntdSelectPull,
|
|
5553
|
-
|
|
5549
|
+
Is as SagAntdSpace,
|
|
5554
5550
|
Fs as SagAntdSwitch,
|
|
5555
5551
|
Hs as SagAntdTab,
|
|
5556
5552
|
Ns as SagAntdTextarea,
|
|
5557
|
-
|
|
5553
|
+
ks as SagUbmpPc,
|
|
5558
5554
|
As as SagVxePage,
|
|
5559
|
-
|
|
5555
|
+
Ts as SagVxePageUtils
|
|
5560
5556
|
};
|