@chase-shao/vue-component-lib 1.2.69 → 1.2.71
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/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +246 -252
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/main.d.ts +0 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as g, defineComponent as G, mergeModels as re, useModel as
|
|
1
|
+
import { ref as g, defineComponent as G, mergeModels as re, useModel as ye, resolveComponent as S, createBlock as L, openBlock as u, onMounted as de, computed as X, withCtx as p, createElementBlock as V, Fragment as K, renderList as z, createVNode as R, nextTick as rt, createTextVNode as q, useTemplateRef as De, createElementVNode as T, createCommentVNode as se, toDisplayString as J, resolveDynamicComponent as Pe, renderSlot as ue, inject as me, getCurrentInstance as be, reactive as Me, normalizeStyle as it, normalizeClass as lt, unref as Te, onActivated as ct } from "vue";
|
|
2
2
|
import ut from "axios";
|
|
3
3
|
import { defineStore as dt } from "pinia";
|
|
4
4
|
import { Modal as ft } from "@arco-design/web-vue";
|
|
@@ -48,12 +48,12 @@ const mt = dt("main", () => ({
|
|
|
48
48
|
const o = document.createElement("a"), n = window.URL.createObjectURL(a);
|
|
49
49
|
o.href = n, o.download = t, o.click(), window.URL.revokeObjectURL(n);
|
|
50
50
|
};
|
|
51
|
-
let
|
|
52
|
-
function
|
|
53
|
-
|
|
51
|
+
let Fe = {};
|
|
52
|
+
function wt(e) {
|
|
53
|
+
Fe = { ...Fe, ...e };
|
|
54
54
|
}
|
|
55
55
|
function Be() {
|
|
56
|
-
return
|
|
56
|
+
return Fe;
|
|
57
57
|
}
|
|
58
58
|
function qe() {
|
|
59
59
|
const e = Be();
|
|
@@ -66,8 +66,8 @@ function Ye() {
|
|
|
66
66
|
const { apiBase: e } = qe();
|
|
67
67
|
return ut.create({
|
|
68
68
|
baseURL: e,
|
|
69
|
-
timeout:
|
|
70
|
-
//
|
|
69
|
+
timeout: 20 * 1e3,
|
|
70
|
+
// 20s
|
|
71
71
|
// headers: { 'Content-Type': 'application/json' },
|
|
72
72
|
withCredentials: !0
|
|
73
73
|
});
|
|
@@ -98,7 +98,7 @@ const Je = async () => {
|
|
|
98
98
|
}, O = [];
|
|
99
99
|
for (let e = 0; e < 256; ++e)
|
|
100
100
|
O.push((e + 256).toString(16).slice(1));
|
|
101
|
-
function
|
|
101
|
+
function yt(e, t = 0) {
|
|
102
102
|
return (O[e[t + 0]] + O[e[t + 1]] + O[e[t + 2]] + O[e[t + 3]] + "-" + O[e[t + 4]] + O[e[t + 5]] + "-" + O[e[t + 6]] + O[e[t + 7]] + "-" + O[e[t + 8]] + O[e[t + 9]] + "-" + O[e[t + 10]] + O[e[t + 11]] + O[e[t + 12]] + O[e[t + 13]] + O[e[t + 14]] + O[e[t + 15]]).toLowerCase();
|
|
103
103
|
}
|
|
104
104
|
let Ne;
|
|
@@ -119,7 +119,7 @@ function Xe(e, t, a) {
|
|
|
119
119
|
const o = e.random ?? e.rng?.() ?? ht();
|
|
120
120
|
if (o.length < 16)
|
|
121
121
|
throw new Error("Random bytes length must be >= 16");
|
|
122
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
122
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, yt(o);
|
|
123
123
|
}
|
|
124
124
|
var Z = /* @__PURE__ */ ((e) => (e[e.Submit = 0] = "Submit", e[e.Link = 1] = "Link", e))(Z || {}), pe = /* @__PURE__ */ ((e) => (e[e.Create = 0] = "Create", e[e.Update = 1] = "Update", e[e.Details = 2] = "Details", e[e.List = 3] = "List", e))(pe || {});
|
|
125
125
|
function Ct(e, t, a) {
|
|
@@ -143,8 +143,9 @@ function Ct(e, t, a) {
|
|
|
143
143
|
appliesTo: n.propertyNames || ["*"]
|
|
144
144
|
});
|
|
145
145
|
else if (n.attributeType === "UIControl") {
|
|
146
|
+
const c = n.showToRoles.split(",").map((i) => i.trim()), r = a.bpmStore().employeeInfo.roleList.some((i) => c.includes(i.Name)) || n.showToRoles === "";
|
|
146
147
|
if (n.widget === "Tab") {
|
|
147
|
-
o.tabs || (o.tabs = []), o.tabs.push({
|
|
148
|
+
o.tabs || (o.tabs = []), r && o.tabs.push({
|
|
148
149
|
key: Xe(),
|
|
149
150
|
title: n.title,
|
|
150
151
|
filters: n.filters ? JSON.parse(n.filters) : [],
|
|
@@ -152,7 +153,7 @@ function Ct(e, t, a) {
|
|
|
152
153
|
});
|
|
153
154
|
return;
|
|
154
155
|
}
|
|
155
|
-
o.actions || (o.actions = []), o.actions.push({
|
|
156
|
+
o.actions || (o.actions = []), r && o.actions.push({
|
|
156
157
|
isSubmit: n.isSubmit,
|
|
157
158
|
requestUrl: n.requestUrl,
|
|
158
159
|
redirectUrl: n.redirectUrl,
|
|
@@ -173,7 +174,7 @@ function Ct(e, t, a) {
|
|
|
173
174
|
isFiltered: !1,
|
|
174
175
|
dependent: "",
|
|
175
176
|
operator: ""
|
|
176
|
-
}, { attributes:
|
|
177
|
+
}, { attributes: i, propertyValue: s } = c;
|
|
177
178
|
switch (s) {
|
|
178
179
|
case null:
|
|
179
180
|
r.modelValue = "";
|
|
@@ -185,16 +186,16 @@ function Ct(e, t, a) {
|
|
|
185
186
|
r.modelValue = s;
|
|
186
187
|
break;
|
|
187
188
|
}
|
|
188
|
-
n === "onBehalf" && t === 0 && (r.modelValue = Ue.CurrentUserEmail(a)), t === 1 && (n === "directReports" || n === "employeesInTheTeam") && r.modelValue && (r.modelValue = Number(r.modelValue)),
|
|
189
|
-
|
|
190
|
-
...
|
|
189
|
+
n === "onBehalf" && t === 0 && (r.modelValue = Ue.CurrentUserEmail(a)), t === 1 && (n === "directReports" || n === "employeesInTheTeam") && r.modelValue && (r.modelValue = Number(r.modelValue)), i?.forEach((l) => {
|
|
190
|
+
l.order || l.Order ? r.order = l.order ?? l.Order : l.attributeType === "UIControl" ? r.widget = {
|
|
191
|
+
...l,
|
|
191
192
|
column: !0
|
|
192
|
-
} :
|
|
193
|
-
...
|
|
193
|
+
} : l.attributeType === "UIValidationControl" && t !== 3 ? r.widget?.widget !== "CheckBox" && r.validations.push(l) : l.attributeType === "UIListed" ? r.widget = {
|
|
194
|
+
...l,
|
|
194
195
|
column: !0
|
|
195
|
-
} :
|
|
196
|
+
} : l.attributeType === "UIFiltered" ? (r.isFiltered = !0, r.operator = l.operatorType) : l.dependentType ? r.dependent = Ue[l.dependentType] ? Ue[l.dependentType](a) : "" : l.eventType === "Change" && r.triggers?.push({
|
|
196
197
|
event: "change",
|
|
197
|
-
handlerName:
|
|
198
|
+
handlerName: l.eventName
|
|
198
199
|
});
|
|
199
200
|
}), o.fields[n] = r;
|
|
200
201
|
}), o;
|
|
@@ -252,10 +253,10 @@ function Tt(e, t) {
|
|
|
252
253
|
function Ut(e, t) {
|
|
253
254
|
return e.replace(/{ClassName}/g, encodeURIComponent(t));
|
|
254
255
|
}
|
|
255
|
-
async function Nt(e, t, a, o, n, c, r,
|
|
256
|
+
async function Nt(e, t, a, o, n, c, r, i) {
|
|
256
257
|
const s = await j();
|
|
257
|
-
let
|
|
258
|
-
return
|
|
258
|
+
let l = He(c, t);
|
|
259
|
+
return l = $t(l, a), l = At(l, o), l = It(l, r), l = Tt(l, i), l = Ut(l, e), (await s.put(l, n))?.data;
|
|
259
260
|
}
|
|
260
261
|
async function Lt(e, t) {
|
|
261
262
|
const n = (await (await j()).get(e, { params: { value: t } }))?.data;
|
|
@@ -264,10 +265,10 @@ async function Lt(e, t) {
|
|
|
264
265
|
label: r
|
|
265
266
|
}));
|
|
266
267
|
}
|
|
267
|
-
async function
|
|
268
|
+
async function Rt(e, t) {
|
|
268
269
|
return (await (await j()).get(`/General/${e}/${t}/process`))?.data;
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
+
function Ft(e) {
|
|
271
272
|
return {
|
|
272
273
|
uid: e.id ?? Xe(),
|
|
273
274
|
name: e.attachmentName ?? "unknown",
|
|
@@ -276,8 +277,8 @@ function Rt(e) {
|
|
|
276
277
|
}
|
|
277
278
|
async function Ze(e, t) {
|
|
278
279
|
return (await (await j()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((c, r) => {
|
|
279
|
-
const { category:
|
|
280
|
-
return c[
|
|
280
|
+
const { category: i } = r;
|
|
281
|
+
return c[i] || (c[i] = []), c[i].push(Ft(r)), c;
|
|
281
282
|
}, {});
|
|
282
283
|
}
|
|
283
284
|
async function Dt(e, t) {
|
|
@@ -340,27 +341,27 @@ const ge = (e, t) => {
|
|
|
340
341
|
}),
|
|
341
342
|
emits: /* @__PURE__ */ re(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
342
343
|
setup(e, { expose: t, emit: a }) {
|
|
343
|
-
const o = e, n = a, c =
|
|
344
|
-
n("input",
|
|
345
|
-
}, s = (
|
|
346
|
-
const _ = r(
|
|
344
|
+
const o = e, n = a, c = ye(e, "modelValue"), r = (l) => ge(o.validations, l), i = (l) => {
|
|
345
|
+
n("input", l);
|
|
346
|
+
}, s = (l) => {
|
|
347
|
+
const _ = r(l);
|
|
347
348
|
n("error", _.res ? "" : _.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((d) => {
|
|
348
|
-
d.event === "change" && n(d.event, d.handlerName,
|
|
349
|
+
d.event === "change" && n(d.event, d.handlerName, l);
|
|
349
350
|
});
|
|
350
351
|
};
|
|
351
352
|
return t({
|
|
352
353
|
validate() {
|
|
353
|
-
const
|
|
354
|
-
return n("error",
|
|
354
|
+
const l = r(o.modelValue);
|
|
355
|
+
return n("error", l.res ? "" : l.errorMessages), l.res;
|
|
355
356
|
}
|
|
356
|
-
}), (
|
|
357
|
+
}), (l, _) => {
|
|
357
358
|
const d = S("AInput");
|
|
358
359
|
return u(), L(d, {
|
|
359
360
|
modelValue: c.value,
|
|
360
361
|
"onUpdate:modelValue": _[0] || (_[0] = (h) => c.value = h),
|
|
361
362
|
"allow-clear": "",
|
|
362
363
|
disabled: o.readonly || o.config.Readonly,
|
|
363
|
-
onInput:
|
|
364
|
+
onInput: i,
|
|
364
365
|
onChange: s
|
|
365
366
|
}, null, 8, ["modelValue", "disabled"]);
|
|
366
367
|
};
|
|
@@ -380,13 +381,13 @@ const ge = (e, t) => {
|
|
|
380
381
|
}),
|
|
381
382
|
emits: /* @__PURE__ */ re(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
382
383
|
setup(e, { expose: t, emit: a }) {
|
|
383
|
-
const o = e, n = a, c =
|
|
384
|
+
const o = e, n = a, c = ye(e, "modelValue"), r = g(100), i = g(1);
|
|
384
385
|
de(() => {
|
|
385
386
|
o.validations && o.validations.forEach((d) => {
|
|
386
|
-
d.ruleName === "Max" && (r.value = d.ruleParameter), d.ruleName === "Min" && (
|
|
387
|
+
d.ruleName === "Max" && (r.value = d.ruleParameter), d.ruleName === "Min" && (i.value = d.ruleParameter);
|
|
387
388
|
});
|
|
388
389
|
});
|
|
389
|
-
const s = (d) => ge(o.validations, d),
|
|
390
|
+
const s = (d) => ge(o.validations, d), l = (d) => {
|
|
390
391
|
n("input", d);
|
|
391
392
|
}, _ = (d) => {
|
|
392
393
|
const h = s(d);
|
|
@@ -406,8 +407,8 @@ const ge = (e, t) => {
|
|
|
406
407
|
"onUpdate:modelValue": h[0] || (h[0] = (m) => c.value = m),
|
|
407
408
|
clearable: "",
|
|
408
409
|
disabled: o.readonly,
|
|
409
|
-
min:
|
|
410
|
-
onInput:
|
|
410
|
+
min: i.value,
|
|
411
|
+
onInput: l,
|
|
411
412
|
onChange: _
|
|
412
413
|
}, null, 8, ["modelValue", "disabled", "min"]);
|
|
413
414
|
};
|
|
@@ -427,7 +428,7 @@ const ge = (e, t) => {
|
|
|
427
428
|
}),
|
|
428
429
|
emits: /* @__PURE__ */ re(["update:modelValue", "change"], ["update:modelValue"]),
|
|
429
430
|
setup(e, { expose: t, emit: a }) {
|
|
430
|
-
const o = e, n = a, c = g(!1), r = g(o.config.options ?? []),
|
|
431
|
+
const o = e, n = a, c = g(!1), r = g(o.config.options ?? []), i = ye(e, "modelValue"), s = (d) => ge(o.validations, d);
|
|
431
432
|
X(() => {
|
|
432
433
|
const d = {};
|
|
433
434
|
return o.triggers && o.triggers.length > 0 && o.triggers.forEach((h) => {
|
|
@@ -456,8 +457,8 @@ const ge = (e, t) => {
|
|
|
456
457
|
const x = S("AOption"), m = S("ASelect");
|
|
457
458
|
return u(), L(m, {
|
|
458
459
|
"allow-clear": "",
|
|
459
|
-
modelValue:
|
|
460
|
-
"onUpdate:modelValue": h[0] || (h[0] = (k) =>
|
|
460
|
+
modelValue: i.value,
|
|
461
|
+
"onUpdate:modelValue": h[0] || (h[0] = (k) => i.value = k),
|
|
461
462
|
loading: c.value,
|
|
462
463
|
"filter-option": !0,
|
|
463
464
|
"allow-search": !0,
|
|
@@ -495,20 +496,20 @@ const ge = (e, t) => {
|
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
});
|
|
498
|
-
const
|
|
499
|
+
const i = { value: "key", label: "value" };
|
|
499
500
|
return t({
|
|
500
501
|
validate() {
|
|
501
502
|
return !0;
|
|
502
503
|
}
|
|
503
|
-
}), (s,
|
|
504
|
+
}), (s, l) => {
|
|
504
505
|
const _ = S("ACascader"), d = S("ASpace");
|
|
505
506
|
return u(), L(d, {
|
|
506
507
|
direction: "vertical",
|
|
507
508
|
size: "large"
|
|
508
509
|
}, {
|
|
509
510
|
default: p(() => [
|
|
510
|
-
|
|
511
|
-
"field-names":
|
|
511
|
+
R(_, {
|
|
512
|
+
"field-names": i,
|
|
512
513
|
"model-value": s.modelValue,
|
|
513
514
|
options: c.value,
|
|
514
515
|
style: { width: "320px" },
|
|
@@ -540,7 +541,7 @@ const ge = (e, t) => {
|
|
|
540
541
|
Authorization: `Bearer ${m}`
|
|
541
542
|
};
|
|
542
543
|
});
|
|
543
|
-
const r = (m) => ge(o.validations, m), s = Be().apiBase,
|
|
544
|
+
const r = (m) => ge(o.validations, m), s = Be().apiBase, l = g(null), _ = g("");
|
|
544
545
|
function d(m, k, E) {
|
|
545
546
|
return m.replace(/{WorkflowId}/g, k).replace(/{ClassName}/g, E);
|
|
546
547
|
}
|
|
@@ -568,8 +569,8 @@ const ge = (e, t) => {
|
|
|
568
569
|
}
|
|
569
570
|
return t({
|
|
570
571
|
submit(m) {
|
|
571
|
-
|
|
572
|
-
|
|
572
|
+
l.value && (o.config.uploadURL && (_.value = m), rt(() => {
|
|
573
|
+
l.value.submit();
|
|
573
574
|
}));
|
|
574
575
|
},
|
|
575
576
|
validate() {
|
|
@@ -580,7 +581,7 @@ const ge = (e, t) => {
|
|
|
580
581
|
const E = S("a-button"), ee = S("a-upload");
|
|
581
582
|
return u(), L(ee, {
|
|
582
583
|
ref_key: "uploadRef",
|
|
583
|
-
ref:
|
|
584
|
+
ref: l,
|
|
584
585
|
"default-file-list": o.config.files,
|
|
585
586
|
action: h.value,
|
|
586
587
|
limit: o.config.allowedNumber,
|
|
@@ -591,7 +592,7 @@ const ge = (e, t) => {
|
|
|
591
592
|
}, {
|
|
592
593
|
"start-icon": p(() => k[0] || (k[0] = [])),
|
|
593
594
|
"upload-button": p(() => [
|
|
594
|
-
|
|
595
|
+
R(E, { type: "primary" }, {
|
|
595
596
|
default: p(() => k[1] || (k[1] = [
|
|
596
597
|
q("Select File", -1)
|
|
597
598
|
])),
|
|
@@ -617,10 +618,10 @@ const ge = (e, t) => {
|
|
|
617
618
|
setup(e, { expose: t, emit: a }) {
|
|
618
619
|
const o = e, n = a, c = (s) => ge(o.validations, s), r = (s) => {
|
|
619
620
|
n("update:modelValue", s), n("input", s);
|
|
620
|
-
},
|
|
621
|
+
}, i = (s) => {
|
|
621
622
|
n("update:modelValue", s);
|
|
622
|
-
const
|
|
623
|
-
n("error",
|
|
623
|
+
const l = c(s);
|
|
624
|
+
n("error", l.res ? "" : l.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((_) => {
|
|
624
625
|
_.event === "change" && n(_.event, _.handlerName, s);
|
|
625
626
|
});
|
|
626
627
|
};
|
|
@@ -629,7 +630,7 @@ const ge = (e, t) => {
|
|
|
629
630
|
const s = c(o.modelValue);
|
|
630
631
|
return n("error", s.res ? "" : s.errorMessages), s.res;
|
|
631
632
|
}
|
|
632
|
-
}), (s,
|
|
633
|
+
}), (s, l) => {
|
|
633
634
|
const _ = S("ATextarea");
|
|
634
635
|
return u(), L(_, {
|
|
635
636
|
"model-value": o.modelValue,
|
|
@@ -637,7 +638,7 @@ const ge = (e, t) => {
|
|
|
637
638
|
"allow-clear": "",
|
|
638
639
|
disabled: o.readonly,
|
|
639
640
|
onInput: r,
|
|
640
|
-
onChange:
|
|
641
|
+
onChange: i
|
|
641
642
|
}, null, 8, ["model-value", "disabled"]);
|
|
642
643
|
};
|
|
643
644
|
}
|
|
@@ -656,9 +657,9 @@ const ge = (e, t) => {
|
|
|
656
657
|
}),
|
|
657
658
|
emits: /* @__PURE__ */ re(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
658
659
|
setup(e, { expose: t, emit: a }) {
|
|
659
|
-
const o = e, n = a, c =
|
|
660
|
-
const
|
|
661
|
-
n("error",
|
|
660
|
+
const o = e, n = a, c = ye(e, "modelValue"), r = (s) => ge(o.validations, s), i = (s) => {
|
|
661
|
+
const l = r(s);
|
|
662
|
+
n("error", l.res ? "" : l.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((_) => {
|
|
662
663
|
_.event === "change" && n(_.event, _.handlerName, s);
|
|
663
664
|
});
|
|
664
665
|
};
|
|
@@ -667,16 +668,16 @@ const ge = (e, t) => {
|
|
|
667
668
|
const s = r(o.modelValue);
|
|
668
669
|
return n("error", s.res ? "" : s.errorMessages), s.res;
|
|
669
670
|
}
|
|
670
|
-
}), (s,
|
|
671
|
+
}), (s, l) => {
|
|
671
672
|
const _ = S("ACheckbox");
|
|
672
673
|
return u(), L(_, {
|
|
673
674
|
modelValue: c.value,
|
|
674
|
-
"onUpdate:modelValue":
|
|
675
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => c.value = d),
|
|
675
676
|
clearable: "",
|
|
676
677
|
disabled: o.readonly || o.config.Readonly,
|
|
677
|
-
onChange:
|
|
678
|
+
onChange: i
|
|
678
679
|
}, {
|
|
679
|
-
default: p(() =>
|
|
680
|
+
default: p(() => l[1] || (l[1] = [
|
|
680
681
|
q("Yes", -1)
|
|
681
682
|
])),
|
|
682
683
|
_: 1,
|
|
@@ -706,7 +707,7 @@ const ge = (e, t) => {
|
|
|
706
707
|
}),
|
|
707
708
|
emits: /* @__PURE__ */ re(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
708
709
|
setup(e, { expose: t, emit: a }) {
|
|
709
|
-
const o = e, n = a, c =
|
|
710
|
+
const o = e, n = a, c = ye(e, "modelValue"), r = De("widgetRef"), i = X(() => {
|
|
710
711
|
switch (o.config?.widget?.widget) {
|
|
711
712
|
case "TextBox":
|
|
712
713
|
return Ge;
|
|
@@ -727,7 +728,7 @@ const ge = (e, t) => {
|
|
|
727
728
|
default:
|
|
728
729
|
return Ge;
|
|
729
730
|
}
|
|
730
|
-
}), s = g(""),
|
|
731
|
+
}), s = g(""), l = (h) => {
|
|
731
732
|
s.value = h;
|
|
732
733
|
}, _ = (h, x) => {
|
|
733
734
|
n("change", h, x);
|
|
@@ -754,7 +755,7 @@ const ge = (e, t) => {
|
|
|
754
755
|
o.config.validations.length ? (u(), V("span", Jt, "*")) : se("", !0)
|
|
755
756
|
]),
|
|
756
757
|
T("div", null, [
|
|
757
|
-
(u(), L(Pe(
|
|
758
|
+
(u(), L(Pe(i.value), {
|
|
758
759
|
ref_key: "widgetRef",
|
|
759
760
|
ref: r,
|
|
760
761
|
modelValue: c.value,
|
|
@@ -764,7 +765,7 @@ const ge = (e, t) => {
|
|
|
764
765
|
validations: o.config.validations,
|
|
765
766
|
triggers: o.config.triggers,
|
|
766
767
|
"class-name": o.className,
|
|
767
|
-
onError:
|
|
768
|
+
onError: l,
|
|
768
769
|
onChange: _
|
|
769
770
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
770
771
|
s.value.length > 0 ? (u(), V("div", Xt, J(s.value), 1)) : se("", !0)
|
|
@@ -790,8 +791,8 @@ const ge = (e, t) => {
|
|
|
790
791
|
o("click", a.url, a.redirectType);
|
|
791
792
|
}
|
|
792
793
|
return (c, r) => {
|
|
793
|
-
const
|
|
794
|
-
return u(), L(
|
|
794
|
+
const i = S("AButton");
|
|
795
|
+
return u(), L(i, {
|
|
795
796
|
loading: c.loading,
|
|
796
797
|
type: "primary",
|
|
797
798
|
onClick: n
|
|
@@ -817,8 +818,8 @@ const ge = (e, t) => {
|
|
|
817
818
|
o("click", a.url, a.redirectType);
|
|
818
819
|
}
|
|
819
820
|
return (c, r) => {
|
|
820
|
-
const
|
|
821
|
-
return u(), L(
|
|
821
|
+
const i = S("ALink");
|
|
822
|
+
return u(), L(i, { onClick: n }, {
|
|
822
823
|
default: p(() => [
|
|
823
824
|
ue(c.$slots, "default")
|
|
824
825
|
]),
|
|
@@ -826,7 +827,7 @@ const ge = (e, t) => {
|
|
|
826
827
|
});
|
|
827
828
|
};
|
|
828
829
|
}
|
|
829
|
-
}),
|
|
830
|
+
}), we = /* @__PURE__ */ G({
|
|
830
831
|
__name: "index",
|
|
831
832
|
props: {
|
|
832
833
|
config: {},
|
|
@@ -835,8 +836,8 @@ const ge = (e, t) => {
|
|
|
835
836
|
emits: ["click"],
|
|
836
837
|
setup(e, { emit: t }) {
|
|
837
838
|
const a = e, o = t;
|
|
838
|
-
function n(s,
|
|
839
|
-
o("click", a.config.widget, s,
|
|
839
|
+
function n(s, l) {
|
|
840
|
+
o("click", a.config.widget, s, l, a.config.title);
|
|
840
841
|
}
|
|
841
842
|
const c = X(() => {
|
|
842
843
|
switch (a.config.location) {
|
|
@@ -846,10 +847,10 @@ const ge = (e, t) => {
|
|
|
846
847
|
default:
|
|
847
848
|
return eo;
|
|
848
849
|
}
|
|
849
|
-
}), r = X(() => a.config.widget === Z.Submit ? a.config.requestUrl ?? "" : a.config.widget === Z.Link ? a.config.redirectUrl ?? "" : ""),
|
|
850
|
-
return (s,
|
|
850
|
+
}), r = X(() => a.config.widget === Z.Submit ? a.config.requestUrl ?? "" : a.config.widget === Z.Link ? a.config.redirectUrl ?? "" : ""), i = X(() => a.config.redirectType ?? "Details");
|
|
851
|
+
return (s, l) => (u(), L(Pe(c.value), {
|
|
851
852
|
url: r.value,
|
|
852
|
-
"redirect-type":
|
|
853
|
+
"redirect-type": i.value,
|
|
853
854
|
loading: s.loading,
|
|
854
855
|
onClick: n
|
|
855
856
|
}, {
|
|
@@ -892,12 +893,12 @@ const oo = { class: "top-bar" }, no = { class: "banner-info" }, ao = { class: "p
|
|
|
892
893
|
T("div", so, J(t.subTitle), 1)
|
|
893
894
|
]),
|
|
894
895
|
T("div", ro, [
|
|
895
|
-
|
|
896
|
+
R(n, { trigger: "click" }, {
|
|
896
897
|
content: p(() => [
|
|
897
898
|
T("div", io, J(t.email), 1)
|
|
898
899
|
]),
|
|
899
900
|
default: p(() => [
|
|
900
|
-
|
|
901
|
+
R(o, {
|
|
901
902
|
size: 48,
|
|
902
903
|
autoFixFontSize: "",
|
|
903
904
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
@@ -919,23 +920,23 @@ function ze(e) {
|
|
|
919
920
|
const t = Be(), a = [];
|
|
920
921
|
if (t.fieldsGroup) {
|
|
921
922
|
t.fieldsGroup.forEach((c) => {
|
|
922
|
-
const r = c.keys.map((
|
|
923
|
+
const r = c.keys.map((i) => e.find((s) => s.fieldKey === i)).filter(Boolean);
|
|
923
924
|
r.length && a.push({ name: c.name, fields: r });
|
|
924
925
|
});
|
|
925
926
|
const o = t.fieldsGroup.flatMap((c) => c.keys), n = e.filter((c) => !o.includes(c.fieldKey));
|
|
926
|
-
return n.length && a.push({ name: "未分组字段", fields: n }),
|
|
927
|
+
return n.length && a.push({ name: "未分组字段", fields: n }), a;
|
|
927
928
|
}
|
|
928
929
|
}
|
|
929
930
|
const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { class: "form-card" }, po = { class: "form-fields-vertical" }, mo = { class: "form-fields" }, go = {
|
|
930
931
|
key: 0,
|
|
931
932
|
class: "form-content"
|
|
932
|
-
}, vo = { class: "page-footer" }, _o = { class: "action-container" },
|
|
933
|
+
}, vo = { class: "page-footer" }, _o = { class: "action-container" }, wo = { class: "action-buttons" }, yo = /* @__PURE__ */ G({
|
|
933
934
|
__name: "CreateView",
|
|
934
935
|
props: {
|
|
935
936
|
className: {}
|
|
936
937
|
},
|
|
937
938
|
setup(e) {
|
|
938
|
-
const t = Se(), a = xe(), o = Ve(), n = Ee(), c = De("dataWidgets"), r = be(),
|
|
939
|
+
const t = Se(), a = xe(), o = Ve(), n = Ee(), c = De("dataWidgets"), r = be(), i = e, s = g({
|
|
939
940
|
pageType: "",
|
|
940
941
|
fields: {},
|
|
941
942
|
globalValidations: [],
|
|
@@ -943,7 +944,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
943
944
|
title: "",
|
|
944
945
|
subTitle: ""
|
|
945
946
|
}
|
|
946
|
-
}),
|
|
947
|
+
}), l = g([]), _ = g({});
|
|
947
948
|
function d($) {
|
|
948
949
|
return $ ? Object.entries($).map(([v, A]) => ({
|
|
949
950
|
fieldKey: v,
|
|
@@ -951,17 +952,17 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
951
952
|
})).filter((v) => v.widget && v.widget.widget !== "Hidden").filter((v) => !ne.value.includes(v.fieldKey)) : [];
|
|
952
953
|
}
|
|
953
954
|
function h($) {
|
|
954
|
-
return $ ? Object.entries($).filter(([v, A]) => A.dependent).reduce((v, [A,
|
|
955
|
+
return $ ? Object.entries($).filter(([v, A]) => A.dependent).reduce((v, [A, y]) => (v[A] = y.dependent, v), {}) : [];
|
|
955
956
|
}
|
|
956
957
|
const x = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = Me({}), k = g(!1);
|
|
957
958
|
de(async () => {
|
|
958
|
-
k.value = !0, s.value = await Ce(pe.Create,
|
|
959
|
+
k.value = !0, s.value = await Ce(pe.Create, i.className, {
|
|
959
960
|
svrStore: a,
|
|
960
961
|
bpmStore: t
|
|
961
|
-
}),
|
|
962
|
+
}), l.value = d(s.value.fields), _.value = h(s.value.fields);
|
|
962
963
|
for (const $ in s.value.fields) {
|
|
963
964
|
if (s.value.fields[$].widget?.widget === "File") {
|
|
964
|
-
const U =
|
|
965
|
+
const U = l.value.find((v) => v.fieldKey === $);
|
|
965
966
|
U && U.widget && (U.widget.files = []);
|
|
966
967
|
}
|
|
967
968
|
m[$] = s.value.fields[$].modelValue;
|
|
@@ -971,7 +972,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
971
972
|
function E() {
|
|
972
973
|
return a()?.userInfo?.email_address ?? "";
|
|
973
974
|
}
|
|
974
|
-
async function ee($, U, v, A,
|
|
975
|
+
async function ee($, U, v, A, y) {
|
|
975
976
|
switch (U) {
|
|
976
977
|
case Z.Submit:
|
|
977
978
|
let D = !0;
|
|
@@ -982,13 +983,13 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
982
983
|
return;
|
|
983
984
|
}
|
|
984
985
|
k.value = !0;
|
|
985
|
-
const te = await St(
|
|
986
|
+
const te = await St(i.className, { ...m, ..._.value }, v);
|
|
986
987
|
k.value = !1, c.value?.forEach((ae) => {
|
|
987
988
|
ae?.submit && ae.submit(te.toString());
|
|
988
|
-
}),
|
|
989
|
+
}), r?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${te.toString()}.`), o.push({ name: "Details", params: { workflowId: te.toString() } });
|
|
989
990
|
break;
|
|
990
991
|
case Z.Link:
|
|
991
|
-
A === "List" && o.push({ name: "List", params: { className:
|
|
992
|
+
A === "List" && o.push({ name: "List", params: { className: i.className } });
|
|
992
993
|
break;
|
|
993
994
|
default:
|
|
994
995
|
console.warn("Unknown action type:", U);
|
|
@@ -1003,33 +1004,33 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1003
1004
|
"positionId"
|
|
1004
1005
|
]);
|
|
1005
1006
|
function le($, U) {
|
|
1006
|
-
n[$]?.(U, ne), s.value && (
|
|
1007
|
+
n[$]?.(U, ne), s.value && (l.value = d(s.value.fields));
|
|
1007
1008
|
}
|
|
1008
|
-
const B = X(() => ze(
|
|
1009
|
+
const B = X(() => ze(l.value));
|
|
1009
1010
|
return ($, U) => {
|
|
1010
1011
|
const v = S("a-card"), A = S("a-spin");
|
|
1011
1012
|
return u(), V("div", co, [
|
|
1012
|
-
|
|
1013
|
+
R($e, {
|
|
1013
1014
|
title: s.value.banner.title,
|
|
1014
1015
|
subTitle: s.value.banner.subTitle,
|
|
1015
1016
|
email: E()
|
|
1016
1017
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1017
1018
|
T("div", uo, [
|
|
1018
|
-
|
|
1019
|
+
R(A, {
|
|
1019
1020
|
loading: k.value,
|
|
1020
1021
|
class: "form-container"
|
|
1021
1022
|
}, {
|
|
1022
1023
|
default: p(() => [
|
|
1023
1024
|
T("div", fo, [
|
|
1024
1025
|
T("div", po, [
|
|
1025
|
-
(u(!0), V(K, null, z(B.value, (
|
|
1026
|
-
key:
|
|
1027
|
-
title:
|
|
1026
|
+
(u(!0), V(K, null, z(B.value, (y) => (u(), L(v, {
|
|
1027
|
+
key: y.name,
|
|
1028
|
+
title: y.name,
|
|
1028
1029
|
style: { "margin-bottom": "24px" }
|
|
1029
1030
|
}, {
|
|
1030
1031
|
default: p(() => [
|
|
1031
1032
|
T("div", mo, [
|
|
1032
|
-
(u(!0), V(K, null, z(
|
|
1033
|
+
(u(!0), V(K, null, z(y.fields, (D) => (u(), L(Ke, {
|
|
1033
1034
|
key: D.fieldKey,
|
|
1034
1035
|
ref_for: !0,
|
|
1035
1036
|
ref: "dataWidgets",
|
|
@@ -1057,13 +1058,13 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1057
1058
|
T("div", vo, [
|
|
1058
1059
|
T("div", _o, [
|
|
1059
1060
|
ue($.$slots, "action", {}, void 0, !0),
|
|
1060
|
-
T("div",
|
|
1061
|
-
(u(!0), V(K, null, z(x.value, (
|
|
1062
|
-
key:
|
|
1061
|
+
T("div", wo, [
|
|
1062
|
+
(u(!0), V(K, null, z(x.value, (y) => (u(), L(we, {
|
|
1063
|
+
key: y.Title,
|
|
1063
1064
|
loading: k.value,
|
|
1064
|
-
config:
|
|
1065
|
+
config: y,
|
|
1065
1066
|
class: "action-button",
|
|
1066
|
-
onClick: (...D) => ee(
|
|
1067
|
+
onClick: (...D) => ee(y, ...D)
|
|
1067
1068
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
1068
1069
|
])
|
|
1069
1070
|
])
|
|
@@ -1071,7 +1072,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1071
1072
|
]);
|
|
1072
1073
|
};
|
|
1073
1074
|
}
|
|
1074
|
-
}), bo = /* @__PURE__ */ ve(
|
|
1075
|
+
}), bo = /* @__PURE__ */ ve(yo, [["__scopeId", "data-v-f3f47e02"]]), ho = { class: "page-container" }, ko = { class: "page-body" }, Co = { class: "form-card" }, Vo = { class: "form-fields-vertical" }, So = { class: "form-fields" }, xo = {
|
|
1075
1076
|
key: 0,
|
|
1076
1077
|
class: "form-content"
|
|
1077
1078
|
}, $o = { class: "page-footer" }, Ao = { class: "action-container" }, Io = { class: "action-buttons" }, To = /* @__PURE__ */ G({
|
|
@@ -1081,7 +1082,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1081
1082
|
workflowId: {}
|
|
1082
1083
|
},
|
|
1083
1084
|
setup(e) {
|
|
1084
|
-
const t = Ve(), a = Ee(), o = xe(), n = Se(), c = De("dataWidgets"), r = be(),
|
|
1085
|
+
const t = Ve(), a = Ee(), o = xe(), n = Se(), c = De("dataWidgets"), r = be(), i = e, s = g({
|
|
1085
1086
|
pageType: "",
|
|
1086
1087
|
fields: {},
|
|
1087
1088
|
globalValidations: [],
|
|
@@ -1089,7 +1090,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1089
1090
|
title: "",
|
|
1090
1091
|
subTitle: ""
|
|
1091
1092
|
}
|
|
1092
|
-
}),
|
|
1093
|
+
}), l = g([]), _ = g({});
|
|
1093
1094
|
function d(B) {
|
|
1094
1095
|
return B ? Object.entries(B).map(([U, v]) => ({
|
|
1095
1096
|
fieldKey: U,
|
|
@@ -1101,23 +1102,23 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1101
1102
|
}
|
|
1102
1103
|
const x = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = Me({}), k = g(!1);
|
|
1103
1104
|
de(async () => {
|
|
1104
|
-
k.value = !0, s.value = await Ce(pe.Update,
|
|
1105
|
+
k.value = !0, s.value = await Ce(pe.Update, i.className, {
|
|
1105
1106
|
svrStore: o,
|
|
1106
1107
|
bpmStore: n
|
|
1107
1108
|
}, {
|
|
1108
|
-
workflowId:
|
|
1109
|
+
workflowId: i.workflowId
|
|
1109
1110
|
});
|
|
1110
|
-
const B = await Qe(pe.Update,
|
|
1111
|
+
const B = await Qe(pe.Update, i.className, { workflowId: i.workflowId, email: E() }), $ = await Ze(i.className, i.workflowId);
|
|
1111
1112
|
s.value.actions = s.value.actions?.filter((v) => {
|
|
1112
|
-
const A = B.find((
|
|
1113
|
+
const A = B.find((y) => y.button === v.title);
|
|
1113
1114
|
return A ? A.isShow : !0;
|
|
1114
1115
|
});
|
|
1115
1116
|
const U = s.value.fields.requestType.modelValue;
|
|
1116
|
-
a.Test?.(U, oe),
|
|
1117
|
+
a.Test?.(U, oe), l.value = d(s.value.fields), _.value = h(s.value.fields);
|
|
1117
1118
|
for (const v in s.value.fields) {
|
|
1118
1119
|
if (s.value.fields[v].widget?.widget === "File") {
|
|
1119
|
-
const A =
|
|
1120
|
-
A && A.widget && (A.widget.files = $[v] ?? [], A.widget.removeFile = (
|
|
1120
|
+
const A = l.value.find((y) => y.fieldKey === v);
|
|
1121
|
+
A && A.widget && (A.widget.files = $[v] ?? [], A.widget.removeFile = (y) => Dt(i.className, y));
|
|
1121
1122
|
}
|
|
1122
1123
|
m[v] = s.value.fields[v].modelValue;
|
|
1123
1124
|
}
|
|
@@ -1129,19 +1130,19 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1129
1130
|
async function ee(B, $, U, v, A) {
|
|
1130
1131
|
switch ($) {
|
|
1131
1132
|
case Z.Submit:
|
|
1132
|
-
let
|
|
1133
|
+
let y = !0;
|
|
1133
1134
|
if (c.value?.forEach((D) => {
|
|
1134
|
-
D?.validate && (D.validate() || (
|
|
1135
|
-
}), !
|
|
1135
|
+
D?.validate && (D.validate() || (y = !1));
|
|
1136
|
+
}), !y) {
|
|
1136
1137
|
r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1137
1138
|
return;
|
|
1138
1139
|
}
|
|
1139
|
-
k.value = !0, await xt(
|
|
1140
|
-
D?.submit && D.submit(
|
|
1141
|
-
}), r?.appContext.config.globalProperties.$notification.success(
|
|
1140
|
+
k.value = !0, await xt(i.className, i.workflowId, { ...m, ..._.value }, U), k.value = !1, c.value?.forEach((D) => {
|
|
1141
|
+
D?.submit && D.submit(i.workflowId);
|
|
1142
|
+
}), r?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${i.workflowId}.`);
|
|
1142
1143
|
break;
|
|
1143
1144
|
case Z.Link:
|
|
1144
|
-
t.push({ name: v, params: { className:
|
|
1145
|
+
t.push({ name: v, params: { className: i.className } });
|
|
1145
1146
|
break;
|
|
1146
1147
|
default:
|
|
1147
1148
|
console.warn("Unknown action type:", $);
|
|
@@ -1149,19 +1150,19 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1149
1150
|
}
|
|
1150
1151
|
const oe = g([]);
|
|
1151
1152
|
function ne(B, $) {
|
|
1152
|
-
a[B]?.($, oe), s.value && (
|
|
1153
|
+
a[B]?.($, oe), s.value && (l.value = d(s.value.fields));
|
|
1153
1154
|
}
|
|
1154
|
-
const le = X(() => ze(
|
|
1155
|
+
const le = X(() => ze(l.value));
|
|
1155
1156
|
return (B, $) => {
|
|
1156
1157
|
const U = S("a-card"), v = S("a-spin");
|
|
1157
1158
|
return u(), V("div", ho, [
|
|
1158
|
-
|
|
1159
|
+
R($e, {
|
|
1159
1160
|
title: s.value.banner.title,
|
|
1160
1161
|
subTitle: s.value.banner.subTitle,
|
|
1161
1162
|
email: E()
|
|
1162
1163
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1163
1164
|
T("div", ko, [
|
|
1164
|
-
|
|
1165
|
+
R(v, {
|
|
1165
1166
|
loading: k.value,
|
|
1166
1167
|
class: "form-container"
|
|
1167
1168
|
}, {
|
|
@@ -1175,15 +1176,15 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1175
1176
|
}, {
|
|
1176
1177
|
default: p(() => [
|
|
1177
1178
|
T("div", So, [
|
|
1178
|
-
(u(!0), V(K, null, z(A.fields, (
|
|
1179
|
-
key:
|
|
1179
|
+
(u(!0), V(K, null, z(A.fields, (y) => (u(), L(Ke, {
|
|
1180
|
+
key: y.fieldKey,
|
|
1180
1181
|
ref_for: !0,
|
|
1181
1182
|
ref: "dataWidgets",
|
|
1182
|
-
"field-key":
|
|
1183
|
-
config:
|
|
1183
|
+
"field-key": y.fieldKey,
|
|
1184
|
+
config: y,
|
|
1184
1185
|
"class-name": B.className,
|
|
1185
|
-
modelValue: m[
|
|
1186
|
-
"onUpdate:modelValue": (D) => m[
|
|
1186
|
+
modelValue: m[y.fieldKey],
|
|
1187
|
+
"onUpdate:modelValue": (D) => m[y.fieldKey] = D,
|
|
1187
1188
|
class: "form-field",
|
|
1188
1189
|
onChange: ne
|
|
1189
1190
|
}, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
@@ -1204,12 +1205,12 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1204
1205
|
T("div", Ao, [
|
|
1205
1206
|
ue(B.$slots, "action", {}, void 0, !0),
|
|
1206
1207
|
T("div", Io, [
|
|
1207
|
-
(u(!0), V(K, null, z(x.value, (A) => (u(), L(
|
|
1208
|
+
(u(!0), V(K, null, z(x.value, (A) => (u(), L(we, {
|
|
1208
1209
|
key: A.Title,
|
|
1209
1210
|
loading: k.value,
|
|
1210
1211
|
config: A,
|
|
1211
1212
|
class: "action-button",
|
|
1212
|
-
onClick: (...
|
|
1213
|
+
onClick: (...y) => ee(A, ...y)
|
|
1213
1214
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
1214
1215
|
])
|
|
1215
1216
|
])
|
|
@@ -1217,14 +1218,14 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
|
|
|
1217
1218
|
]);
|
|
1218
1219
|
};
|
|
1219
1220
|
}
|
|
1220
|
-
}), Uo = /* @__PURE__ */ ve(To, [["__scopeId", "data-v-
|
|
1221
|
+
}), Uo = /* @__PURE__ */ ve(To, [["__scopeId", "data-v-8d95324e"]]), at = Symbol("library-custom-comp");
|
|
1221
1222
|
function No() {
|
|
1222
1223
|
return me(at, null);
|
|
1223
1224
|
}
|
|
1224
|
-
const Lo = Symbol("ArcoConfigProvider"),
|
|
1225
|
+
const Lo = Symbol("ArcoConfigProvider"), Ro = "arco", Fo = "$arco", Do = (e) => {
|
|
1225
1226
|
var t, a, o;
|
|
1226
1227
|
const n = be(), c = me(Lo, void 0);
|
|
1227
|
-
return `${(o = (a = c?.prefixCls) != null ? a : (t = n?.appContext.config.globalProperties[
|
|
1228
|
+
return `${(o = (a = c?.prefixCls) != null ? a : (t = n?.appContext.config.globalProperties[Fo]) == null ? void 0 : t.classPrefix) != null ? o : Ro}-${e}`;
|
|
1228
1229
|
}, Po = Object.prototype.toString;
|
|
1229
1230
|
function Mo(e) {
|
|
1230
1231
|
return Po.call(e) === "[object Number]" && e === e;
|
|
@@ -1290,12 +1291,12 @@ function Eo(e, t, a, o, n, c) {
|
|
|
1290
1291
|
T("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
|
|
1291
1292
|
]), 14, Ko);
|
|
1292
1293
|
}
|
|
1293
|
-
var
|
|
1294
|
-
const zo = Object.assign(
|
|
1294
|
+
var Re = /* @__PURE__ */ Bo(Ho, [["render", Eo]]);
|
|
1295
|
+
const zo = Object.assign(Re, {
|
|
1295
1296
|
install: (e, t) => {
|
|
1296
1297
|
var a;
|
|
1297
1298
|
const o = (a = t?.iconPrefix) != null ? a : "";
|
|
1298
|
-
e.component(o +
|
|
1299
|
+
e.component(o + Re.name, Re);
|
|
1299
1300
|
}
|
|
1300
1301
|
}), jo = { class: "page-container" }, Oo = { class: "page-body" }, Go = { class: "detail-card" }, Wo = { class: "form-fields-vertical" }, qo = { class: "detail-fields" }, Yo = { class: "detail-field" }, Jo = { class: "field-label" }, Xo = {
|
|
1301
1302
|
key: 1,
|
|
@@ -1313,7 +1314,7 @@ const zo = Object.assign(Fe, {
|
|
|
1313
1314
|
workflowId: {}
|
|
1314
1315
|
},
|
|
1315
1316
|
setup(e) {
|
|
1316
|
-
const t = xe(), a = Se(), o = Ee(), n = Ve(), c = No(), r = be(),
|
|
1317
|
+
const t = xe(), a = Se(), o = Ee(), n = Ve(), c = No(), r = be(), i = e, s = g({
|
|
1317
1318
|
pageType: "",
|
|
1318
1319
|
fields: {},
|
|
1319
1320
|
globalValidations: [],
|
|
@@ -1321,14 +1322,14 @@ const zo = Object.assign(Fe, {
|
|
|
1321
1322
|
title: "",
|
|
1322
1323
|
subTitle: ""
|
|
1323
1324
|
}
|
|
1324
|
-
}),
|
|
1325
|
+
}), l = g([]);
|
|
1325
1326
|
function _(b) {
|
|
1326
1327
|
return b ? Object.entries(b).map(([H, C]) => (typeof C.modelValue == "boolean" ? C.fieldValue = C.modelValue ? "Yes" : "No" : C.fieldValue = C.modelValue, {
|
|
1327
1328
|
fieldKey: H,
|
|
1328
1329
|
...C
|
|
1329
1330
|
})).filter((H) => H.widget && H.widget.widget !== "Hidden").filter((H) => !B.value.includes(H.fieldKey)) : [];
|
|
1330
1331
|
}
|
|
1331
|
-
const d = X(() => ze(
|
|
1332
|
+
const d = X(() => ze(l.value)), h = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), x = g(!0), m = (b, f) => {
|
|
1332
1333
|
const H = b.findIndex((C) => C.isCurrent);
|
|
1333
1334
|
return b.map((C, Y) => {
|
|
1334
1335
|
const N = {
|
|
@@ -1364,7 +1365,7 @@ const zo = Object.assign(Fe, {
|
|
|
1364
1365
|
});
|
|
1365
1366
|
}, k = g([]), E = g(!1), ee = g(!1), oe = g(!1), ne = g(!1);
|
|
1366
1367
|
async function le() {
|
|
1367
|
-
const b = await Qe(pe.Details,
|
|
1368
|
+
const b = await Qe(pe.Details, i.className, { workflowId: i.workflowId, email: v() });
|
|
1368
1369
|
s.value.actions = s.value.actions?.filter((f) => {
|
|
1369
1370
|
const H = b.find((C) => C.button === f.title);
|
|
1370
1371
|
return H ? H.isShow : !0;
|
|
@@ -1372,22 +1373,22 @@ const zo = Object.assign(Fe, {
|
|
|
1372
1373
|
}
|
|
1373
1374
|
const B = g([]);
|
|
1374
1375
|
async function $() {
|
|
1375
|
-
x.value = !0, s.value = await Ce(pe.Details,
|
|
1376
|
+
x.value = !0, s.value = await Ce(pe.Details, i.className, {
|
|
1376
1377
|
svrStore: t,
|
|
1377
1378
|
bpmStore: a
|
|
1378
1379
|
}, {
|
|
1379
|
-
workflowId:
|
|
1380
|
+
workflowId: i.workflowId
|
|
1380
1381
|
});
|
|
1381
|
-
const b = await Ze(
|
|
1382
|
-
ae.value = await Pt(), D.value = await Oe(
|
|
1382
|
+
const b = await Ze(i.className, i.workflowId);
|
|
1383
|
+
ae.value = await Pt(), D.value = await Oe(i.workflowId), fe.value = await Le(i.workflowId), le();
|
|
1383
1384
|
const f = s.value.fields.requestType.modelValue;
|
|
1384
|
-
o.Test?.(f, B),
|
|
1385
|
+
o.Test?.(f, B), l.value = _(s.value.fields);
|
|
1385
1386
|
for (const C in s.value.fields)
|
|
1386
1387
|
if (s.value.fields[C].widget?.widget === "File") {
|
|
1387
|
-
const Y =
|
|
1388
|
+
const Y = l.value.find((N) => N.fieldKey === C);
|
|
1388
1389
|
Y && Y.widget && (Y.widget.files = b[C] ?? []);
|
|
1389
1390
|
}
|
|
1390
|
-
const H = await
|
|
1391
|
+
const H = await Rt(i.className, i.workflowId);
|
|
1391
1392
|
k.value = m(H, 0), x.value = !1;
|
|
1392
1393
|
}
|
|
1393
1394
|
de($);
|
|
@@ -1404,12 +1405,12 @@ const zo = Object.assign(Fe, {
|
|
|
1404
1405
|
const { reason: N, ifGlobal: ie } = await U(Y, { isGlobal: E.value });
|
|
1405
1406
|
x.value = !0;
|
|
1406
1407
|
const P = Y === "Approve" ? "100" : "-1";
|
|
1407
|
-
await Nt(
|
|
1408
|
+
await Nt(i.className, i.workflowId, v(), N, [Number(i.workflowId)], H, P, ie), x.value = !1;
|
|
1408
1409
|
const Q = Y === "Approve" ? "approve success!" : "approve reject!";
|
|
1409
1410
|
r?.appContext.config.globalProperties.$notification.success(Q), $();
|
|
1410
1411
|
break;
|
|
1411
1412
|
case Z.Link:
|
|
1412
|
-
C === "List" && n.push({ name: "List", params: { className:
|
|
1413
|
+
C === "List" && n.push({ name: "List", params: { className: i.className } });
|
|
1413
1414
|
break;
|
|
1414
1415
|
default:
|
|
1415
1416
|
console.warn("Unknown action type:", f);
|
|
@@ -1417,15 +1418,15 @@ const zo = Object.assign(Fe, {
|
|
|
1417
1418
|
} catch {
|
|
1418
1419
|
}
|
|
1419
1420
|
}
|
|
1420
|
-
const
|
|
1421
|
+
const y = g(""), D = g([]), te = g(""), ae = g([]), fe = g([]);
|
|
1421
1422
|
async function Ae() {
|
|
1422
1423
|
if (!te.value) {
|
|
1423
1424
|
r?.appContext.config.globalProperties.$message.error("Please select an approver");
|
|
1424
1425
|
return;
|
|
1425
1426
|
}
|
|
1426
|
-
await
|
|
1427
|
+
await w("Confirm Assign Approver", "Do you want to assign the selected approver?");
|
|
1427
1428
|
try {
|
|
1428
|
-
await Mt(
|
|
1429
|
+
await Mt(i.workflowId, te.value), fe.value = await Le(i.workflowId), le(), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
|
|
1429
1430
|
} catch (b) {
|
|
1430
1431
|
if (b.status === 409) {
|
|
1431
1432
|
r?.appContext.config.globalProperties.$notification.error("This user is already an associator");
|
|
@@ -1434,7 +1435,7 @@ const zo = Object.assign(Fe, {
|
|
|
1434
1435
|
r?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
|
|
1435
1436
|
}
|
|
1436
1437
|
}
|
|
1437
|
-
async function
|
|
1438
|
+
async function w(b, f) {
|
|
1438
1439
|
const { Modal: H } = await import("@arco-design/web-vue");
|
|
1439
1440
|
return new Promise((C, Y) => {
|
|
1440
1441
|
H.confirm({
|
|
@@ -1449,33 +1450,33 @@ const zo = Object.assign(Fe, {
|
|
|
1449
1450
|
}
|
|
1450
1451
|
async function I(b) {
|
|
1451
1452
|
try {
|
|
1452
|
-
await
|
|
1453
|
+
await w("Confirm Delete Associator", "Do you want to delete this associator?");
|
|
1453
1454
|
} catch {
|
|
1454
1455
|
return;
|
|
1455
1456
|
}
|
|
1456
1457
|
try {
|
|
1457
|
-
await Ht(String(b)), fe.value = await Le(
|
|
1458
|
+
await Ht(String(b)), fe.value = await Le(i.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
|
|
1458
1459
|
} catch {
|
|
1459
1460
|
r?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
|
|
1460
1461
|
}
|
|
1461
1462
|
}
|
|
1462
|
-
async function
|
|
1463
|
-
if (!
|
|
1463
|
+
async function F() {
|
|
1464
|
+
if (!y.value.trim()) {
|
|
1464
1465
|
r?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
|
|
1465
1466
|
return;
|
|
1466
1467
|
}
|
|
1467
|
-
await Bt(
|
|
1468
|
+
await Bt(i.workflowId, v(), y.value), y.value = "", D.value = await Oe(i.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
|
|
1468
1469
|
}
|
|
1469
1470
|
return (b, f) => {
|
|
1470
1471
|
const H = S("a-link"), C = S("a-space"), Y = S("a-card"), N = S("a-option"), ie = S("a-select"), P = S("a-button"), Q = S("a-list-item"), W = S("a-list"), he = S("a-textarea"), st = S("a-spin");
|
|
1471
1472
|
return u(), V("div", jo, [
|
|
1472
|
-
|
|
1473
|
+
R($e, {
|
|
1473
1474
|
title: s.value.banner.title,
|
|
1474
1475
|
subTitle: s.value.banner.subTitle,
|
|
1475
1476
|
email: v()
|
|
1476
1477
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1477
1478
|
T("div", Oo, [
|
|
1478
|
-
|
|
1479
|
+
R(st, {
|
|
1479
1480
|
loading: x.value,
|
|
1480
1481
|
class: "detail-container"
|
|
1481
1482
|
}, {
|
|
@@ -1500,15 +1501,15 @@ const zo = Object.assign(Fe, {
|
|
|
1500
1501
|
class: "field-value",
|
|
1501
1502
|
key: Ie.id
|
|
1502
1503
|
}, [
|
|
1503
|
-
|
|
1504
|
+
R(C, null, {
|
|
1504
1505
|
default: p(() => [
|
|
1505
1506
|
q(J(Ie.name) + " ", 1),
|
|
1506
|
-
|
|
1507
|
+
R(H, {
|
|
1507
1508
|
href: Ie.url,
|
|
1508
1509
|
target: "_blank"
|
|
1509
1510
|
}, {
|
|
1510
1511
|
default: p(() => [
|
|
1511
|
-
|
|
1512
|
+
R(Te(zo), { style: { color: "#7A00E6" } })
|
|
1512
1513
|
]),
|
|
1513
1514
|
_: 2
|
|
1514
1515
|
}, 1032, ["href"])
|
|
@@ -1524,7 +1525,7 @@ const zo = Object.assign(Fe, {
|
|
|
1524
1525
|
}, 1032, ["title"]))), 128)),
|
|
1525
1526
|
ee.value ? (u(), L(C, { key: 0 }, {
|
|
1526
1527
|
default: p(() => [
|
|
1527
|
-
|
|
1528
|
+
R(ie, {
|
|
1528
1529
|
modelValue: te.value,
|
|
1529
1530
|
"onUpdate:modelValue": f[0] || (f[0] = (M) => te.value = M)
|
|
1530
1531
|
}, {
|
|
@@ -1541,7 +1542,7 @@ const zo = Object.assign(Fe, {
|
|
|
1541
1542
|
]),
|
|
1542
1543
|
_: 1
|
|
1543
1544
|
}, 8, ["modelValue"]),
|
|
1544
|
-
|
|
1545
|
+
R(P, {
|
|
1545
1546
|
type: "primary",
|
|
1546
1547
|
onClick: Ae
|
|
1547
1548
|
}, {
|
|
@@ -1563,7 +1564,7 @@ const zo = Object.assign(Fe, {
|
|
|
1563
1564
|
key: M.id
|
|
1564
1565
|
}, {
|
|
1565
1566
|
actions: p(() => [
|
|
1566
|
-
|
|
1567
|
+
R(P, {
|
|
1567
1568
|
type: "text",
|
|
1568
1569
|
status: "danger",
|
|
1569
1570
|
onClick: (ce) => I(M.id)
|
|
@@ -1586,13 +1587,13 @@ const zo = Object.assign(Fe, {
|
|
|
1586
1587
|
ne.value ? (u(), V("div", Qo, [
|
|
1587
1588
|
T("div", Zo, [
|
|
1588
1589
|
f[6] || (f[6] = T("div", { class: "field-label" }, "Comment", -1)),
|
|
1589
|
-
|
|
1590
|
-
modelValue:
|
|
1591
|
-
"onUpdate:modelValue": f[1] || (f[1] = (M) =>
|
|
1590
|
+
R(he, {
|
|
1591
|
+
modelValue: y.value,
|
|
1592
|
+
"onUpdate:modelValue": f[1] || (f[1] = (M) => y.value = M)
|
|
1592
1593
|
}, null, 8, ["modelValue"]),
|
|
1593
|
-
|
|
1594
|
+
R(P, {
|
|
1594
1595
|
type: "primary",
|
|
1595
|
-
onClick:
|
|
1596
|
+
onClick: F
|
|
1596
1597
|
}, {
|
|
1597
1598
|
default: p(() => f[5] || (f[5] = [
|
|
1598
1599
|
q("Add Comment", -1)
|
|
@@ -1631,7 +1632,7 @@ const zo = Object.assign(Fe, {
|
|
|
1631
1632
|
T("div", on, [
|
|
1632
1633
|
ue(b.$slots, "action", {}, void 0, !0),
|
|
1633
1634
|
T("div", nn, [
|
|
1634
|
-
(u(!0), V(K, null, z(h.value, (M) => (u(), L(
|
|
1635
|
+
(u(!0), V(K, null, z(h.value, (M) => (u(), L(we, {
|
|
1635
1636
|
key: M.Title,
|
|
1636
1637
|
loading: x.value,
|
|
1637
1638
|
config: M,
|
|
@@ -1651,7 +1652,7 @@ const zo = Object.assign(Fe, {
|
|
|
1651
1652
|
className: {}
|
|
1652
1653
|
},
|
|
1653
1654
|
setup(e) {
|
|
1654
|
-
const t = xe(), a = Se(), o = Ve(), n = be(), c = e, r = g(),
|
|
1655
|
+
const t = xe(), a = Se(), o = Ve(), n = be(), c = e, r = g(), i = Me({
|
|
1655
1656
|
current: 1,
|
|
1656
1657
|
total: 0,
|
|
1657
1658
|
pageSize: 10,
|
|
@@ -1661,30 +1662,30 @@ const zo = Object.assign(Fe, {
|
|
|
1661
1662
|
filters: []
|
|
1662
1663
|
});
|
|
1663
1664
|
function s() {
|
|
1664
|
-
const
|
|
1665
|
+
const w = Object.entries(A.value).filter(([, { value: I }]) => I && I !== "").map(([I, { value: F, operator: b }]) => ({
|
|
1665
1666
|
key: I,
|
|
1666
|
-
value:
|
|
1667
|
+
value: F,
|
|
1667
1668
|
operator: b
|
|
1668
1669
|
// 根据实际需要调整操作符
|
|
1669
1670
|
}));
|
|
1670
1671
|
return {
|
|
1671
|
-
pageNumber:
|
|
1672
|
-
pageSize:
|
|
1673
|
-
filters: [...
|
|
1672
|
+
pageNumber: i.current,
|
|
1673
|
+
pageSize: i.pageSize,
|
|
1674
|
+
filters: [...i.filters, ...w],
|
|
1674
1675
|
sorts: [{
|
|
1675
1676
|
key: "status",
|
|
1676
1677
|
type: 0
|
|
1677
1678
|
}]
|
|
1678
1679
|
};
|
|
1679
1680
|
}
|
|
1680
|
-
const
|
|
1681
|
+
const l = X(() => ({
|
|
1681
1682
|
x: h.value.length * 150 + 250
|
|
1682
1683
|
// 只设置横向滚动
|
|
1683
1684
|
// 移除 y 属性,让表格高度自适应
|
|
1684
|
-
})), _ = (
|
|
1685
|
-
const I = Object.entries(
|
|
1685
|
+
})), _ = (w) => {
|
|
1686
|
+
const I = Object.entries(w).filter(([, F]) => F.widget?.column).map(([F, b], f) => ({
|
|
1686
1687
|
title: b.widget.title,
|
|
1687
|
-
dataIndex:
|
|
1688
|
+
dataIndex: F.charAt(0).toLowerCase() + F.slice(1),
|
|
1688
1689
|
order: b.order,
|
|
1689
1690
|
ellipsis: !0,
|
|
1690
1691
|
tooltip: !0,
|
|
@@ -1693,7 +1694,7 @@ const zo = Object.assign(Fe, {
|
|
|
1693
1694
|
// 启用最小宽度
|
|
1694
1695
|
resizable: !0
|
|
1695
1696
|
// 启用列宽调整
|
|
1696
|
-
})).sort((
|
|
1697
|
+
})).sort((F, b) => F.order - b.order);
|
|
1697
1698
|
I.push({
|
|
1698
1699
|
title: "Actions",
|
|
1699
1700
|
slotName: "optional",
|
|
@@ -1705,8 +1706,8 @@ const zo = Object.assign(Fe, {
|
|
|
1705
1706
|
}), h.value = I;
|
|
1706
1707
|
}, d = g([]), h = g([]), x = g(!0), m = g(!0), k = g(), E = async () => {
|
|
1707
1708
|
m.value = !0;
|
|
1708
|
-
const
|
|
1709
|
-
d.value =
|
|
1709
|
+
const w = await Vt(c.className, s());
|
|
1710
|
+
d.value = w.data, i.total = w.totalCount, m.value = !1;
|
|
1710
1711
|
}, ee = g(!1);
|
|
1711
1712
|
de(async () => {
|
|
1712
1713
|
x.value = !0, r.value = await Ce(3, c.className, {
|
|
@@ -1716,81 +1717,81 @@ const zo = Object.assign(Fe, {
|
|
|
1716
1717
|
}), ct(() => {
|
|
1717
1718
|
ee.value && E();
|
|
1718
1719
|
});
|
|
1719
|
-
const oe = (
|
|
1720
|
-
|
|
1721
|
-
}, ne = (
|
|
1722
|
-
|
|
1720
|
+
const oe = (w) => {
|
|
1721
|
+
i.current = w, E();
|
|
1722
|
+
}, ne = (w) => {
|
|
1723
|
+
i.pageSize = w, E();
|
|
1723
1724
|
};
|
|
1724
|
-
function le(
|
|
1725
|
-
switch (
|
|
1725
|
+
function le(w, I, F, b, f) {
|
|
1726
|
+
switch (w) {
|
|
1726
1727
|
case Z.Link:
|
|
1727
|
-
o.push({ name:
|
|
1728
|
+
o.push({ name: F, params: { workflowId: f } });
|
|
1728
1729
|
break;
|
|
1729
1730
|
default:
|
|
1730
|
-
console.warn("Unknown action type:",
|
|
1731
|
+
console.warn("Unknown action type:", w);
|
|
1731
1732
|
}
|
|
1732
1733
|
}
|
|
1733
|
-
function B(
|
|
1734
|
-
switch (
|
|
1734
|
+
function B(w, I, F) {
|
|
1735
|
+
switch (w) {
|
|
1735
1736
|
case Z.Submit:
|
|
1736
1737
|
Kt(I, { filters: [{ key: "approverList", value: $(), operator: 2 }] }), n?.appContext.config.globalProperties.$notification.success("submit success!");
|
|
1737
1738
|
break;
|
|
1738
1739
|
case Z.Link:
|
|
1739
|
-
o.push({ name:
|
|
1740
|
+
o.push({ name: F });
|
|
1740
1741
|
break;
|
|
1741
1742
|
default:
|
|
1742
|
-
console.warn("Unknown action type:",
|
|
1743
|
+
console.warn("Unknown action type:", w);
|
|
1743
1744
|
}
|
|
1744
1745
|
}
|
|
1745
1746
|
function $() {
|
|
1746
1747
|
return t()?.userInfo?.email_address ?? "";
|
|
1747
1748
|
}
|
|
1748
|
-
function U(
|
|
1749
|
-
return typeof
|
|
1749
|
+
function U(w, I) {
|
|
1750
|
+
return typeof w != "string" || w.indexOf("{currentUserEmail}") === -1 ? w : w.replace(/{currentUserEmail}/g, I);
|
|
1750
1751
|
}
|
|
1751
|
-
function v(
|
|
1752
|
-
const I = r.value?.tabs?.find((
|
|
1753
|
-
|
|
1754
|
-
...
|
|
1755
|
-
value: U(
|
|
1752
|
+
function v(w) {
|
|
1753
|
+
const I = r.value?.tabs?.find((F) => F.key === w)?.filters;
|
|
1754
|
+
i.filters = I?.map((F) => ({
|
|
1755
|
+
...F,
|
|
1756
|
+
value: U(F.value, $())
|
|
1756
1757
|
})) || [], E();
|
|
1757
1758
|
}
|
|
1758
|
-
const A = g({}),
|
|
1759
|
-
function D(
|
|
1760
|
-
if (!
|
|
1761
|
-
|
|
1759
|
+
const A = g({}), y = g([]);
|
|
1760
|
+
function D(w) {
|
|
1761
|
+
if (!w) return [];
|
|
1762
|
+
y.value = Object.entries(w).filter(([, I]) => I.isFiltered).map(([I, F]) => ({ fieldKey: I, fieldConfig: F }));
|
|
1762
1763
|
}
|
|
1763
1764
|
const te = () => {
|
|
1764
|
-
const
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
}), A.value =
|
|
1765
|
+
const w = {};
|
|
1766
|
+
y.value.forEach(({ fieldKey: I, fieldConfig: F }) => {
|
|
1767
|
+
w[I] = {}, w[I].value = F.modelValue, w[I].operator = F.operator;
|
|
1768
|
+
}), A.value = w;
|
|
1768
1769
|
}, ae = () => {
|
|
1769
|
-
|
|
1770
|
+
i.current = 1, E();
|
|
1770
1771
|
}, fe = () => {
|
|
1771
1772
|
r.value && te(), ae();
|
|
1772
1773
|
};
|
|
1773
|
-
function Ae(
|
|
1774
|
-
return !(
|
|
1774
|
+
function Ae(w, I) {
|
|
1775
|
+
return !(w.location !== "InTable" || w.title === "Update" && (I.status === 100 || I.status === -1));
|
|
1775
1776
|
}
|
|
1776
|
-
return (
|
|
1777
|
-
const
|
|
1777
|
+
return (w, I) => {
|
|
1778
|
+
const F = S("a-space"), b = S("a-col"), f = S("a-button"), H = S("a-row"), C = S("a-card"), Y = S("a-tab-pane"), N = S("a-tabs"), ie = S("a-table");
|
|
1778
1779
|
return u(), V("div", rn, [
|
|
1779
|
-
|
|
1780
|
+
R($e, {
|
|
1780
1781
|
title: r.value?.banner.title ?? "",
|
|
1781
1782
|
subTitle: r.value?.banner.subTitle ?? "",
|
|
1782
1783
|
email: $()
|
|
1783
1784
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1784
|
-
|
|
1785
|
+
R(C, null, {
|
|
1785
1786
|
default: p(() => [
|
|
1786
1787
|
T("div", ln, [
|
|
1787
1788
|
I[0] || (I[0] = T("h3", null, "Search Conditions", -1)),
|
|
1788
|
-
F
|
|
1789
|
+
R(F, { size: "medium" }, {
|
|
1789
1790
|
default: p(() => [
|
|
1790
1791
|
(u(!0), V(K, null, z(k.value, (P) => (u(), V(K, {
|
|
1791
1792
|
key: P.title
|
|
1792
1793
|
}, [
|
|
1793
|
-
P.location === "InOperation" ? (u(), L(
|
|
1794
|
+
P.location === "InOperation" ? (u(), L(we, {
|
|
1794
1795
|
key: 0,
|
|
1795
1796
|
config: P,
|
|
1796
1797
|
onClick: B
|
|
@@ -1800,15 +1801,15 @@ const zo = Object.assign(Fe, {
|
|
|
1800
1801
|
_: 1
|
|
1801
1802
|
})
|
|
1802
1803
|
]),
|
|
1803
|
-
|
|
1804
|
+
R(H, { gutter: [24, 20] }, {
|
|
1804
1805
|
default: p(() => [
|
|
1805
|
-
(u(!0), V(K, null, z(
|
|
1806
|
+
(u(!0), V(K, null, z(y.value, (P) => (u(), L(b, {
|
|
1806
1807
|
key: P.fieldKey,
|
|
1807
1808
|
span: 6,
|
|
1808
1809
|
class: "search-col"
|
|
1809
1810
|
}, {
|
|
1810
1811
|
default: p(() => [
|
|
1811
|
-
|
|
1812
|
+
R(Ke, {
|
|
1812
1813
|
name: P.fieldKey,
|
|
1813
1814
|
config: P.fieldConfig,
|
|
1814
1815
|
modelValue: A.value[P.fieldKey].value,
|
|
@@ -1818,14 +1819,14 @@ const zo = Object.assign(Fe, {
|
|
|
1818
1819
|
]),
|
|
1819
1820
|
_: 2
|
|
1820
1821
|
}, 1024))), 128)),
|
|
1821
|
-
|
|
1822
|
+
R(b, {
|
|
1822
1823
|
span: 6,
|
|
1823
1824
|
class: "search-col form-buttons"
|
|
1824
1825
|
}, {
|
|
1825
1826
|
default: p(() => [
|
|
1826
|
-
F
|
|
1827
|
+
R(F, { size: "medium" }, {
|
|
1827
1828
|
default: p(() => [
|
|
1828
|
-
|
|
1829
|
+
R(f, {
|
|
1829
1830
|
type: "primary",
|
|
1830
1831
|
size: "medium",
|
|
1831
1832
|
onClick: ae
|
|
@@ -1836,7 +1837,7 @@ const zo = Object.assign(Fe, {
|
|
|
1836
1837
|
_: 1,
|
|
1837
1838
|
__: [1]
|
|
1838
1839
|
}),
|
|
1839
|
-
|
|
1840
|
+
R(f, {
|
|
1840
1841
|
size: "medium",
|
|
1841
1842
|
onClick: fe
|
|
1842
1843
|
}, {
|
|
@@ -1858,7 +1859,7 @@ const zo = Object.assign(Fe, {
|
|
|
1858
1859
|
]),
|
|
1859
1860
|
_: 1
|
|
1860
1861
|
}),
|
|
1861
|
-
|
|
1862
|
+
R(N, {
|
|
1862
1863
|
size: "large",
|
|
1863
1864
|
onTabClick: v
|
|
1864
1865
|
}, {
|
|
@@ -1870,33 +1871,32 @@ const zo = Object.assign(Fe, {
|
|
|
1870
1871
|
]),
|
|
1871
1872
|
_: 1
|
|
1872
1873
|
}),
|
|
1873
|
-
|
|
1874
|
+
R(ie, {
|
|
1874
1875
|
columns: h.value,
|
|
1875
1876
|
data: d.value,
|
|
1876
1877
|
stripe: "",
|
|
1877
1878
|
border: "",
|
|
1878
1879
|
pagination: {
|
|
1879
|
-
current:
|
|
1880
|
-
total:
|
|
1881
|
-
pageSize:
|
|
1882
|
-
showTotal:
|
|
1883
|
-
showPageSize:
|
|
1884
|
-
showJumper: !0,
|
|
1880
|
+
current: i.current,
|
|
1881
|
+
total: i.total,
|
|
1882
|
+
pageSize: i.pageSize,
|
|
1883
|
+
showTotal: i.showTotal,
|
|
1884
|
+
showPageSize: i.showPageSize,
|
|
1885
1885
|
pageSizeOptions: [10, 20, 50, 100]
|
|
1886
1886
|
},
|
|
1887
1887
|
loading: m.value,
|
|
1888
1888
|
size: "medium",
|
|
1889
|
-
scroll:
|
|
1889
|
+
scroll: l.value,
|
|
1890
1890
|
onPageChange: oe,
|
|
1891
1891
|
onPageSizeChange: ne
|
|
1892
1892
|
}, {
|
|
1893
1893
|
optional: p(({ record: P }) => [
|
|
1894
|
-
F
|
|
1894
|
+
R(F, { size: "small" }, {
|
|
1895
1895
|
default: p(() => [
|
|
1896
1896
|
(u(!0), V(K, null, z(k.value, (Q) => (u(), V(K, {
|
|
1897
1897
|
key: Q.title
|
|
1898
1898
|
}, [
|
|
1899
|
-
Ae(Q, P) ? (u(), L(
|
|
1899
|
+
Ae(Q, P) ? (u(), L(we, {
|
|
1900
1900
|
key: 0,
|
|
1901
1901
|
config: Q,
|
|
1902
1902
|
size: "small",
|
|
@@ -1912,18 +1912,12 @@ const zo = Object.assign(Fe, {
|
|
|
1912
1912
|
]);
|
|
1913
1913
|
};
|
|
1914
1914
|
}
|
|
1915
|
-
}), un = /* @__PURE__ */ ve(cn, [["__scopeId", "data-v-
|
|
1915
|
+
}), un = /* @__PURE__ */ ve(cn, [["__scopeId", "data-v-32799bcf"]]), vn = {
|
|
1916
1916
|
install(e, t = {}) {
|
|
1917
|
-
t.config &&
|
|
1917
|
+
t.config && wt(t.config), t.router && e.provide(et, t.router), t.pinia && e.provide(to, t.pinia), t.useBpmStore && e.provide(ot, t.useBpmStore), t.useSvrStore && e.provide(nt, t.useSvrStore), t.triggers && e.provide(tt, t.triggers), t.customComps && e.provide(at, t.customComps), e.component("CreateView", bo), e.component("UpdateView", Uo), e.component("DetailView", sn), e.component("ListView", un);
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
1920
|
export {
|
|
1921
|
-
bo as CreateView,
|
|
1922
|
-
sn as DetailView,
|
|
1923
|
-
un as ListView,
|
|
1924
|
-
to as PiniaKey,
|
|
1925
|
-
et as RouterKey,
|
|
1926
|
-
Uo as UpdateView,
|
|
1927
1921
|
vn as default
|
|
1928
1922
|
};
|
|
1929
1923
|
//# sourceMappingURL=index.es.js.map
|