@chase-shao/vue-component-lib 1.2.76 → 1.2.78
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.es.js +474 -465
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as m, getCurrentInstance as pe, defineComponent as q, mergeModels as ie, useModel as ye, resolveComponent as S, createBlock as P, openBlock as d, onMounted as ce, computed as Z, withCtx as v, createElementBlock as C, Fragment as j, renderList as $, createVNode as D, nextTick as ot, createTextVNode as J, useTemplateRef as Ne, createElementVNode as A, createCommentVNode as se, toDisplayString as Q, resolveDynamicComponent as He, renderSlot as le, inject as me, reactive as Fe, normalizeStyle as at, normalizeClass as rt, onActivated as st } from "vue";
|
|
2
2
|
import it from "axios";
|
|
3
3
|
import { defineStore as lt } from "pinia";
|
|
4
4
|
import { Modal as ct } from "@arco-design/web-vue";
|
|
5
5
|
import { useRouter as dt } from "vue-router";
|
|
6
6
|
const ut = lt("main", () => ({
|
|
7
|
-
token:
|
|
7
|
+
token: m(void 0)
|
|
8
8
|
})), ft = async (t) => new Promise((n) => setTimeout(n, t)), pt = async (t, n, a, e = void 0) => {
|
|
9
9
|
if (t[n] === void 0)
|
|
10
10
|
try {
|
|
@@ -52,12 +52,12 @@ let De = {};
|
|
|
52
52
|
function gt(t) {
|
|
53
53
|
De = { ...De, ...t };
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Le() {
|
|
56
56
|
return De;
|
|
57
57
|
}
|
|
58
58
|
const _t = pe();
|
|
59
59
|
function Ge() {
|
|
60
|
-
const t =
|
|
60
|
+
const t = Le();
|
|
61
61
|
return {
|
|
62
62
|
apiBase: t.apiBase || void 0 || "",
|
|
63
63
|
appSecret: t.appSecret || void 0 || ""
|
|
@@ -97,7 +97,7 @@ const qe = async () => {
|
|
|
97
97
|
e.token = void 0;
|
|
98
98
|
}, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, K = async () => {
|
|
101
101
|
const t = await qe(), n = We();
|
|
102
102
|
return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
|
|
103
103
|
}, Ie = {
|
|
@@ -107,11 +107,11 @@ const qe = async () => {
|
|
|
107
107
|
ApproverEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
108
108
|
ApproverPositionCode: (t) => t.bpmStore()?.positionCode ?? 999,
|
|
109
109
|
RejectReason: () => "Test Reject Reason"
|
|
110
|
-
},
|
|
110
|
+
}, W = [];
|
|
111
111
|
for (let t = 0; t < 256; ++t)
|
|
112
|
-
|
|
112
|
+
W.push((t + 256).toString(16).slice(1));
|
|
113
113
|
function bt(t, n = 0) {
|
|
114
|
-
return (
|
|
114
|
+
return (W[t[n + 0]] + W[t[n + 1]] + W[t[n + 2]] + W[t[n + 3]] + "-" + W[t[n + 4]] + W[t[n + 5]] + "-" + W[t[n + 6]] + W[t[n + 7]] + "-" + W[t[n + 8]] + W[t[n + 9]] + "-" + W[t[n + 10]] + W[t[n + 11]] + W[t[n + 12]] + W[t[n + 13]] + W[t[n + 14]] + W[t[n + 15]]).toLowerCase();
|
|
115
115
|
}
|
|
116
116
|
let Te;
|
|
117
117
|
const yt = new Uint8Array(16);
|
|
@@ -133,7 +133,7 @@ function Ye(t, n, a) {
|
|
|
133
133
|
throw new Error("Random bytes length must be >= 16");
|
|
134
134
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, bt(e);
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var ee = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t))(ee || {}), fe = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t))(fe || {});
|
|
137
137
|
function kt(t, n, a) {
|
|
138
138
|
const e = {
|
|
139
139
|
pageType: "",
|
|
@@ -171,13 +171,13 @@ function kt(t, n, a) {
|
|
|
171
171
|
redirectUrl: o.redirectUrl,
|
|
172
172
|
redirectType: o.redirectType,
|
|
173
173
|
title: o.title,
|
|
174
|
-
widget: o.widget === "Link" ?
|
|
174
|
+
widget: o.widget === "Link" ? ee.Link : ee.Submit,
|
|
175
175
|
location: o.location,
|
|
176
176
|
attributeType: o.attributeType,
|
|
177
177
|
readonly: o.readonly,
|
|
178
178
|
eventName: o.eventName
|
|
179
179
|
});
|
|
180
|
-
} else o.attributeType === "Banner" && (e.banner.title = o.title, e.banner.subTitle = n === 0 ? o.subTitle :
|
|
180
|
+
} else o.attributeType === "Banner" && (e.banner.title = o.title, e.banner.subTitle = n === 0 ? o.subTitle : Re(o.subTitle, t.workflowId.propertyValue));
|
|
181
181
|
}), e.tabs && (e.tabs = e.tabs.sort((o, l) => o.order - l.order)), Object.entries(t).forEach(([o, l]) => {
|
|
182
182
|
if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || n !== 3 && o === "workflowId")
|
|
183
183
|
return;
|
|
@@ -214,11 +214,11 @@ function kt(t, n, a) {
|
|
|
214
214
|
}), e;
|
|
215
215
|
}
|
|
216
216
|
const ke = async (t, n, a, e) => {
|
|
217
|
-
const l = await (await
|
|
217
|
+
const l = await (await K()).get(`/General/${n}/${t}/page`, { params: e });
|
|
218
218
|
return kt(l?.data, t, a);
|
|
219
|
-
}, Je = async (t, n, a) => (await (await
|
|
219
|
+
}, Je = async (t, n, a) => (await (await K()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
|
|
220
220
|
async function Ct(t, n) {
|
|
221
|
-
const e = await (await
|
|
221
|
+
const e = await (await K()).post(`/General/${t}/list`, n);
|
|
222
222
|
return {
|
|
223
223
|
data: e.data.data,
|
|
224
224
|
totalCount: e.data.totalCount
|
|
@@ -238,17 +238,17 @@ async function Ct(t, n) {
|
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
async function St(t, n, a) {
|
|
241
|
-
return (await (await
|
|
241
|
+
return (await (await K()).post(a, n, {
|
|
242
242
|
params: {
|
|
243
243
|
className: t
|
|
244
244
|
}
|
|
245
245
|
})).data;
|
|
246
246
|
}
|
|
247
247
|
async function xt(t, n, a, e) {
|
|
248
|
-
const o = await
|
|
248
|
+
const o = await K(), l = Re(e, n);
|
|
249
249
|
return (await o.put(l, a))?.data;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Re(t, n) {
|
|
252
252
|
return t.replace(/{WorkflowId}/g, n);
|
|
253
253
|
}
|
|
254
254
|
function Vt(t, n) {
|
|
@@ -267,19 +267,19 @@ function Ut(t, n) {
|
|
|
267
267
|
return t.replace(/{ClassName}/g, encodeURIComponent(n));
|
|
268
268
|
}
|
|
269
269
|
async function Pt(t, n, a, e, o, l, s, c) {
|
|
270
|
-
const i = await
|
|
271
|
-
let r =
|
|
270
|
+
const i = await K();
|
|
271
|
+
let r = Re(l, n);
|
|
272
272
|
return r = Vt(r, a), r = At(r, e), r = It(r, s), r = Tt(r, c), r = Ut(r, t), (await i.put(r, o))?.data;
|
|
273
273
|
}
|
|
274
274
|
async function Dt(t, n) {
|
|
275
|
-
const o = (await (await
|
|
275
|
+
const o = (await (await K()).get(t, { params: { value: n } }))?.data;
|
|
276
276
|
return Object.entries(o).map(([l, s]) => ({
|
|
277
277
|
value: l,
|
|
278
278
|
label: s
|
|
279
279
|
}));
|
|
280
280
|
}
|
|
281
281
|
async function Nt(t, n) {
|
|
282
|
-
return (await (await
|
|
282
|
+
return (await (await K()).get(`/General/${t}/${n}/process`))?.data;
|
|
283
283
|
}
|
|
284
284
|
function Ht(t) {
|
|
285
285
|
return {
|
|
@@ -289,40 +289,40 @@ function Ht(t) {
|
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
async function Xe(t, n) {
|
|
292
|
-
return (await (await
|
|
292
|
+
return (await (await K()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
|
|
293
293
|
const { category: c } = s;
|
|
294
294
|
return l[c] || (l[c] = []), l[c].push(Ht(s)), l;
|
|
295
295
|
}, {});
|
|
296
296
|
}
|
|
297
|
-
async function
|
|
298
|
-
return (await
|
|
297
|
+
async function Ft(t, n) {
|
|
298
|
+
return (await K()).post(`/General/${t}/${n}/delete/attachment`);
|
|
299
299
|
}
|
|
300
|
-
async function
|
|
301
|
-
const n = await (await
|
|
300
|
+
async function Lt() {
|
|
301
|
+
const n = await (await K()).get("/Grading/dropdown/approvers");
|
|
302
302
|
return Object.entries(n?.data).map(([a, e]) => ({
|
|
303
303
|
label: a,
|
|
304
304
|
value: e
|
|
305
305
|
}));
|
|
306
306
|
}
|
|
307
|
-
async function
|
|
308
|
-
return await (await
|
|
307
|
+
async function Rt(t, n) {
|
|
308
|
+
return await (await K()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
|
|
309
309
|
}
|
|
310
|
-
async function
|
|
311
|
-
return await (await
|
|
310
|
+
async function Bt(t, n, a) {
|
|
311
|
+
return await (await K()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
|
|
312
312
|
headers: { "Content-Type": "application/json;charset=UTF-8" }
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
async function $e(t) {
|
|
316
|
-
return (await (await
|
|
316
|
+
return (await (await K()).get(`Grading/GetComments/${t}`))?.data;
|
|
317
317
|
}
|
|
318
318
|
async function Ue(t) {
|
|
319
|
-
return (await (await
|
|
319
|
+
return (await (await K()).get(`Grading/GetAssociator/${t}`))?.data;
|
|
320
320
|
}
|
|
321
321
|
async function jt(t) {
|
|
322
|
-
return await (await
|
|
322
|
+
return await (await K()).delete(`Grading/DeleteAssociator/${t}`);
|
|
323
323
|
}
|
|
324
324
|
async function Mt(t, n = null) {
|
|
325
|
-
const e = await (await
|
|
325
|
+
const e = await (await K()).post(t, n, {
|
|
326
326
|
responseType: "blob"
|
|
327
327
|
});
|
|
328
328
|
mt(e?.data, "WorkflowData.xlsx");
|
|
@@ -339,7 +339,7 @@ const ge = (t, n) => {
|
|
|
339
339
|
}, Et = {
|
|
340
340
|
Regex: (t, n) => new RegExp(t).test(n),
|
|
341
341
|
Required: (t, n) => !!n
|
|
342
|
-
}, $t = /* @__PURE__ */
|
|
342
|
+
}, $t = /* @__PURE__ */ q({
|
|
343
343
|
__name: "InputText",
|
|
344
344
|
props: /* @__PURE__ */ ie({
|
|
345
345
|
fieldKey: {},
|
|
@@ -357,9 +357,9 @@ const ge = (t, n) => {
|
|
|
357
357
|
const e = t, o = a, l = ye(t, "modelValue"), s = (u) => ge(e.validations, u), c = (u) => {
|
|
358
358
|
o("input", u);
|
|
359
359
|
}, i = (u) => {
|
|
360
|
-
const
|
|
361
|
-
o("error",
|
|
362
|
-
|
|
360
|
+
const g = s(u);
|
|
361
|
+
o("error", g.res ? "" : g.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((_) => {
|
|
362
|
+
_.event === "change" && o(_.event, _.handlerName, u);
|
|
363
363
|
});
|
|
364
364
|
};
|
|
365
365
|
n({
|
|
@@ -371,7 +371,7 @@ const ge = (t, n) => {
|
|
|
371
371
|
const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
|
|
372
372
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
373
373
|
}
|
|
374
|
-
}),
|
|
374
|
+
}), X = (t, n) => {
|
|
375
375
|
const a = t.__vccOpts || t;
|
|
376
376
|
for (const [e, o] of n)
|
|
377
377
|
a[e] = o;
|
|
@@ -379,7 +379,7 @@ const ge = (t, n) => {
|
|
|
379
379
|
};
|
|
380
380
|
function Kt(t, n, a, e, o, l) {
|
|
381
381
|
const s = S("AInput");
|
|
382
|
-
return d(),
|
|
382
|
+
return d(), P(s, {
|
|
383
383
|
modelValue: e.model,
|
|
384
384
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
|
|
385
385
|
"allow-clear": "",
|
|
@@ -388,7 +388,7 @@ function Kt(t, n, a, e, o, l) {
|
|
|
388
388
|
onChange: e.changeHandler
|
|
389
389
|
}, null, 8, ["modelValue", "disabled"]);
|
|
390
390
|
}
|
|
391
|
-
const Ke = /* @__PURE__ */
|
|
391
|
+
const Ke = /* @__PURE__ */ X($t, [["render", Kt], ["__file", "InputText.vue"]]), zt = /* @__PURE__ */ q({
|
|
392
392
|
__name: "InputNumber",
|
|
393
393
|
props: /* @__PURE__ */ ie({
|
|
394
394
|
fieldKey: {},
|
|
@@ -403,33 +403,33 @@ const Ke = /* @__PURE__ */ Q($t, [["render", Kt], ["__file", "InputText.vue"]]),
|
|
|
403
403
|
}),
|
|
404
404
|
emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
405
405
|
setup(t, { expose: n, emit: a }) {
|
|
406
|
-
const e = t, o = a, l = ye(t, "modelValue"), s =
|
|
407
|
-
|
|
408
|
-
e.validations && e.validations.forEach((
|
|
409
|
-
|
|
406
|
+
const e = t, o = a, l = ye(t, "modelValue"), s = m(100), c = m(1);
|
|
407
|
+
ce(() => {
|
|
408
|
+
e.validations && e.validations.forEach((_) => {
|
|
409
|
+
_.ruleName === "Max" && (s.value = _.ruleParameter), _.ruleName === "Min" && (c.value = _.ruleParameter);
|
|
410
410
|
});
|
|
411
411
|
});
|
|
412
|
-
const i = (
|
|
413
|
-
o("input",
|
|
414
|
-
}, u = (
|
|
415
|
-
const b = i(
|
|
412
|
+
const i = (_) => ge(e.validations, _), r = (_) => {
|
|
413
|
+
o("input", _);
|
|
414
|
+
}, u = (_) => {
|
|
415
|
+
const b = i(_);
|
|
416
416
|
o("error", b.res ? "" : b.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
|
|
417
|
-
p.event === "change" && o(p.event, p.handlerName,
|
|
417
|
+
p.event === "change" && o(p.event, p.handlerName, _);
|
|
418
418
|
});
|
|
419
419
|
};
|
|
420
420
|
n({
|
|
421
421
|
validate() {
|
|
422
|
-
const
|
|
423
|
-
return o("error",
|
|
422
|
+
const _ = i(e.modelValue);
|
|
423
|
+
return o("error", _.res ? "" : _.errorMessages), _.res;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const
|
|
427
|
-
return Object.defineProperty(
|
|
426
|
+
const g = { props: e, emits: o, model: l, max: s, min: c, validate: i, inputHandler: r, changeHandler: u };
|
|
427
|
+
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
function Gt(t, n, a, e, o, l) {
|
|
431
431
|
const s = S("AInputNumber");
|
|
432
|
-
return d(),
|
|
432
|
+
return d(), P(s, {
|
|
433
433
|
modelValue: e.model,
|
|
434
434
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
|
|
435
435
|
clearable: "",
|
|
@@ -439,7 +439,7 @@ function Gt(t, n, a, e, o, l) {
|
|
|
439
439
|
onChange: e.changeHandler
|
|
440
440
|
}, null, 8, ["modelValue", "disabled", "min"]);
|
|
441
441
|
}
|
|
442
|
-
const Wt = /* @__PURE__ */
|
|
442
|
+
const Wt = /* @__PURE__ */ X(zt, [["render", Gt], ["__file", "InputNumber.vue"]]), qt = /* @__PURE__ */ q({
|
|
443
443
|
__name: "SelectList",
|
|
444
444
|
props: /* @__PURE__ */ ie({
|
|
445
445
|
fieldKey: {},
|
|
@@ -454,24 +454,24 @@ const Wt = /* @__PURE__ */ Q(zt, [["render", Gt], ["__file", "InputNumber.vue"]]
|
|
|
454
454
|
}),
|
|
455
455
|
emits: /* @__PURE__ */ ie(["update:modelValue", "change"], ["update:modelValue"]),
|
|
456
456
|
setup(t, { expose: n, emit: a }) {
|
|
457
|
-
const e = t, o = a, l =
|
|
457
|
+
const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = ye(t, "modelValue"), i = (b) => ge(e.validations, b), r = Z(() => {
|
|
458
458
|
const b = {};
|
|
459
459
|
return e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
|
|
460
|
-
b[p.event] = (
|
|
461
|
-
o(p.event, p.handlerName,
|
|
462
|
-
const f = i(
|
|
460
|
+
b[p.event] = (w) => {
|
|
461
|
+
o(p.event, p.handlerName, w);
|
|
462
|
+
const f = i(w);
|
|
463
463
|
o("error", f.res ? "" : f.errorMessages);
|
|
464
464
|
};
|
|
465
465
|
}), b;
|
|
466
466
|
}), u = async () => {
|
|
467
467
|
e.config.dataSourceProvider && (s.value = await Dt(e.config.dataSourceProvider));
|
|
468
468
|
};
|
|
469
|
-
|
|
470
|
-
const
|
|
469
|
+
ce(u);
|
|
470
|
+
const g = (b) => {
|
|
471
471
|
o("update:modelValue", b);
|
|
472
472
|
const p = i(b);
|
|
473
|
-
o("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
474
|
-
|
|
473
|
+
o("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((w) => {
|
|
474
|
+
w.event === "change" && o(w.event, w.handlerName, b);
|
|
475
475
|
});
|
|
476
476
|
};
|
|
477
477
|
n({
|
|
@@ -480,13 +480,13 @@ const Wt = /* @__PURE__ */ Q(zt, [["render", Gt], ["__file", "InputNumber.vue"]]
|
|
|
480
480
|
return o("error", b.res ? "" : b.errorMessages), b.res;
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
|
-
const
|
|
484
|
-
return Object.defineProperty(
|
|
483
|
+
const _ = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: g };
|
|
484
|
+
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
485
485
|
}
|
|
486
486
|
});
|
|
487
487
|
function Yt(t, n, a, e, o, l) {
|
|
488
488
|
const s = S("AOption"), c = S("ASelect");
|
|
489
|
-
return d(),
|
|
489
|
+
return d(), P(c, {
|
|
490
490
|
"allow-clear": "",
|
|
491
491
|
modelValue: e.model,
|
|
492
492
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
|
|
@@ -497,7 +497,7 @@ function Yt(t, n, a, e, o, l) {
|
|
|
497
497
|
onChange: e.changeHandler
|
|
498
498
|
}, {
|
|
499
499
|
default: v(() => [
|
|
500
|
-
(d(!0), C(j, null,
|
|
500
|
+
(d(!0), C(j, null, $(e._options, (i) => (d(), P(s, {
|
|
501
501
|
key: i.value,
|
|
502
502
|
value: i.value,
|
|
503
503
|
label: i.label
|
|
@@ -506,7 +506,7 @@ function Yt(t, n, a, e, o, l) {
|
|
|
506
506
|
_: 1
|
|
507
507
|
}, 8, ["modelValue", "loading", "disabled"]);
|
|
508
508
|
}
|
|
509
|
-
const ze = /* @__PURE__ */
|
|
509
|
+
const ze = /* @__PURE__ */ X(qt, [["render", Yt], ["__file", "SelectList.vue"]]), Jt = /* @__PURE__ */ q({
|
|
510
510
|
__name: "Cascader",
|
|
511
511
|
props: {
|
|
512
512
|
modelValue: {},
|
|
@@ -514,15 +514,15 @@ const ze = /* @__PURE__ */ Q(qt, [["render", Yt], ["__file", "SelectList.vue"]])
|
|
|
514
514
|
},
|
|
515
515
|
emits: ["update:modelValue", "change"],
|
|
516
516
|
setup(t, { expose: n, emit: a }) {
|
|
517
|
-
const e = t, o = a, l =
|
|
517
|
+
const e = t, o = a, l = m(e.config.options ?? []), s = (r) => {
|
|
518
518
|
o("update:modelValue", r), o("change", r);
|
|
519
519
|
};
|
|
520
|
-
|
|
520
|
+
ce(async () => {
|
|
521
521
|
if (e.config) {
|
|
522
522
|
const r = e.config.dataSourceProvider;
|
|
523
523
|
if (r) {
|
|
524
|
-
const
|
|
525
|
-
l.value =
|
|
524
|
+
const g = await (await K()).get(r);
|
|
525
|
+
l.value = g.data;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
});
|
|
@@ -538,12 +538,12 @@ const ze = /* @__PURE__ */ Q(qt, [["render", Yt], ["__file", "SelectList.vue"]])
|
|
|
538
538
|
});
|
|
539
539
|
function Xt(t, n, a, e, o, l) {
|
|
540
540
|
const s = S("ACascader"), c = S("ASpace");
|
|
541
|
-
return d(),
|
|
541
|
+
return d(), P(c, {
|
|
542
542
|
direction: "vertical",
|
|
543
543
|
size: "large"
|
|
544
544
|
}, {
|
|
545
545
|
default: v(() => [
|
|
546
|
-
|
|
546
|
+
D(s, {
|
|
547
547
|
"field-names": e.fieldNames,
|
|
548
548
|
"model-value": a.modelValue,
|
|
549
549
|
options: e._options,
|
|
@@ -555,7 +555,7 @@ function Xt(t, n, a, e, o, l) {
|
|
|
555
555
|
_: 1
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
|
-
const Qt = /* @__PURE__ */
|
|
558
|
+
const Qt = /* @__PURE__ */ X(Jt, [["render", Xt], ["__file", "Cascader.vue"]]), Zt = /* @__PURE__ */ q({
|
|
559
559
|
__name: "FileUpload",
|
|
560
560
|
props: {
|
|
561
561
|
className: {},
|
|
@@ -568,52 +568,54 @@ const Qt = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]),
|
|
|
568
568
|
},
|
|
569
569
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
570
570
|
setup(t, { expose: n, emit: a }) {
|
|
571
|
-
const e = t, o = a, l =
|
|
572
|
-
|
|
571
|
+
const e = t, o = a, l = m({});
|
|
572
|
+
ce(async () => {
|
|
573
573
|
const h = await qe();
|
|
574
574
|
l.value = {
|
|
575
575
|
Authorization: `Bearer ${h}`
|
|
576
576
|
};
|
|
577
577
|
});
|
|
578
|
-
const s = (h) => ge(e.validations, h), c =
|
|
579
|
-
function
|
|
580
|
-
return h.replace(/{WorkflowId}/g,
|
|
578
|
+
const s = (h) => ge(e.validations, h), c = Le(), i = c.apiBase, r = m(null), u = m("");
|
|
579
|
+
function g(h, I, x) {
|
|
580
|
+
return h.replace(/{WorkflowId}/g, I).replace(/{ClassName}/g, x);
|
|
581
581
|
}
|
|
582
|
-
const
|
|
582
|
+
const _ = Z(() => {
|
|
583
583
|
if (e.config.uploadURL) {
|
|
584
584
|
const h = i + e.config.uploadURL;
|
|
585
|
-
return
|
|
585
|
+
return g(h, u.value, e.className);
|
|
586
586
|
}
|
|
587
587
|
return "";
|
|
588
588
|
}), b = (h) => {
|
|
589
589
|
h.stopPropagation(), r.value.submit();
|
|
590
590
|
};
|
|
591
591
|
function p(h) {
|
|
592
|
-
const { file:
|
|
593
|
-
return new Promise((
|
|
592
|
+
const { file: I, name: x } = h, V = x ?? I.name;
|
|
593
|
+
return new Promise((y, N) => {
|
|
594
594
|
ct.confirm({
|
|
595
595
|
title: "Confirm Delete",
|
|
596
|
-
content: `Are you sure you want to delete ${
|
|
596
|
+
content: `Are you sure you want to delete ${V}?`,
|
|
597
597
|
async onOk() {
|
|
598
598
|
if (h.status !== "init" && e.config.removeFile)
|
|
599
|
-
return await e.config.removeFile(h.uid),
|
|
600
|
-
|
|
599
|
+
return await e.config.removeFile(h.uid), y(!0);
|
|
600
|
+
y(!0);
|
|
601
601
|
},
|
|
602
|
-
onCancel: () =>
|
|
602
|
+
onCancel: () => N("cancel")
|
|
603
603
|
});
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
|
-
const
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
f.value && (f.value(h),
|
|
606
|
+
const w = m(null), f = m(null), L = (h) => {
|
|
607
|
+
w.value && (w.value(h), w.value = null, f.value = null);
|
|
608
|
+
}, Y = (h) => {
|
|
609
|
+
f.value && (f.value(h), w.value = null, f.value = null);
|
|
610
|
+
}, z = m([]), te = (h) => {
|
|
611
|
+
z.value = h.filter((I) => I.status === "init");
|
|
610
612
|
};
|
|
611
613
|
n({
|
|
612
614
|
submit(h) {
|
|
613
|
-
return new Promise((
|
|
614
|
-
r.value ? (e.config.uploadURL && (u.value = h),
|
|
615
|
+
return new Promise((I, x) => {
|
|
616
|
+
r.value ? (e.config.uploadURL && (u.value = h), w.value = I, f.value = x, z.value.length ? ot(() => {
|
|
615
617
|
r.value?.submit();
|
|
616
|
-
})) :
|
|
618
|
+
}) : I(h)) : I(h);
|
|
617
619
|
});
|
|
618
620
|
},
|
|
619
621
|
validate() {
|
|
@@ -621,13 +623,13 @@ const Qt = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]),
|
|
|
621
623
|
return o("error", h.res ? "" : h.errorMessages), h.res;
|
|
622
624
|
}
|
|
623
625
|
});
|
|
624
|
-
const
|
|
625
|
-
return Object.defineProperty(
|
|
626
|
+
const oe = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: _, submit: b, onBeforeRemove: p, uploadPromiseResolve: w, uploadPromiseReject: f, handleUploadSuccess: L, handleUploadError: Y, readyFiles: z, onChange: te };
|
|
627
|
+
return Object.defineProperty(oe, "__isScriptSetup", { enumerable: !1, value: !0 }), oe;
|
|
626
628
|
}
|
|
627
629
|
});
|
|
628
630
|
function en(t, n, a, e, o, l) {
|
|
629
631
|
const s = S("a-button"), c = S("a-upload");
|
|
630
|
-
return d(),
|
|
632
|
+
return d(), P(c, {
|
|
631
633
|
ref: "uploadRef",
|
|
632
634
|
"default-file-list": e.props.config.files,
|
|
633
635
|
action: e.action,
|
|
@@ -635,15 +637,16 @@ function en(t, n, a, e, o, l) {
|
|
|
635
637
|
"auto-upload": !1,
|
|
636
638
|
name: "files",
|
|
637
639
|
headers: e.headers,
|
|
640
|
+
onChange: e.onChange,
|
|
638
641
|
onBeforeRemove: e.onBeforeRemove,
|
|
639
642
|
onSuccess: e.handleUploadSuccess,
|
|
640
643
|
onError: e.handleUploadError
|
|
641
644
|
}, {
|
|
642
645
|
"start-icon": v(() => n[0] || (n[0] = [])),
|
|
643
646
|
"upload-button": v(() => [
|
|
644
|
-
|
|
647
|
+
D(s, { type: "primary" }, {
|
|
645
648
|
default: v(() => n[1] || (n[1] = [
|
|
646
|
-
|
|
649
|
+
J("Select File", -1)
|
|
647
650
|
])),
|
|
648
651
|
_: 1,
|
|
649
652
|
__: [1]
|
|
@@ -652,7 +655,7 @@ function en(t, n, a, e, o, l) {
|
|
|
652
655
|
_: 1
|
|
653
656
|
}, 8, ["default-file-list", "action", "limit", "headers"]);
|
|
654
657
|
}
|
|
655
|
-
const tn = /* @__PURE__ */
|
|
658
|
+
const tn = /* @__PURE__ */ X(Zt, [["render", en], ["__file", "FileUpload.vue"]]), nn = /* @__PURE__ */ q({
|
|
656
659
|
__name: "TextArea",
|
|
657
660
|
props: {
|
|
658
661
|
fieldKey: {},
|
|
@@ -669,8 +672,8 @@ const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "FileUpload.vue"]])
|
|
|
669
672
|
}, c = (r) => {
|
|
670
673
|
o("update:modelValue", r);
|
|
671
674
|
const u = l(r);
|
|
672
|
-
o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
673
|
-
|
|
675
|
+
o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
|
|
676
|
+
g.event === "change" && o(g.event, g.handlerName, r);
|
|
674
677
|
});
|
|
675
678
|
};
|
|
676
679
|
n({
|
|
@@ -685,7 +688,7 @@ const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "FileUpload.vue"]])
|
|
|
685
688
|
});
|
|
686
689
|
function on(t, n, a, e, o, l) {
|
|
687
690
|
const s = S("ATextarea");
|
|
688
|
-
return d(),
|
|
691
|
+
return d(), P(s, {
|
|
689
692
|
"model-value": e.props.modelValue,
|
|
690
693
|
placeholder: "Please enter something",
|
|
691
694
|
"allow-clear": "",
|
|
@@ -694,7 +697,7 @@ function on(t, n, a, e, o, l) {
|
|
|
694
697
|
onChange: e.changeHandler
|
|
695
698
|
}, null, 8, ["model-value", "disabled"]);
|
|
696
699
|
}
|
|
697
|
-
const an = /* @__PURE__ */
|
|
700
|
+
const an = /* @__PURE__ */ X(nn, [["render", on], ["__file", "TextArea.vue"]]), rn = /* @__PURE__ */ q({
|
|
698
701
|
__name: "CheckBox",
|
|
699
702
|
props: /* @__PURE__ */ ie({
|
|
700
703
|
fieldKey: {},
|
|
@@ -711,8 +714,8 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "TextArea.vue"]]),
|
|
|
711
714
|
setup(t, { expose: n, emit: a }) {
|
|
712
715
|
const e = t, o = a, l = ye(t, "modelValue"), s = (r) => ge(e.validations, r), c = (r) => {
|
|
713
716
|
const u = s(r);
|
|
714
|
-
o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
715
|
-
|
|
717
|
+
o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
|
|
718
|
+
g.event === "change" && o(g.event, g.handlerName, r);
|
|
716
719
|
});
|
|
717
720
|
};
|
|
718
721
|
n({
|
|
@@ -727,7 +730,7 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "TextArea.vue"]]),
|
|
|
727
730
|
});
|
|
728
731
|
function sn(t, n, a, e, o, l) {
|
|
729
732
|
const s = S("ACheckbox");
|
|
730
|
-
return d(),
|
|
733
|
+
return d(), P(s, {
|
|
731
734
|
modelValue: e.model,
|
|
732
735
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
|
|
733
736
|
clearable: "",
|
|
@@ -735,13 +738,13 @@ function sn(t, n, a, e, o, l) {
|
|
|
735
738
|
onChange: e.changeHandler
|
|
736
739
|
}, {
|
|
737
740
|
default: v(() => n[1] || (n[1] = [
|
|
738
|
-
|
|
741
|
+
J("Yes", -1)
|
|
739
742
|
])),
|
|
740
743
|
_: 1,
|
|
741
744
|
__: [1]
|
|
742
745
|
}, 8, ["modelValue", "disabled"]);
|
|
743
746
|
}
|
|
744
|
-
const ln = /* @__PURE__ */
|
|
747
|
+
const ln = /* @__PURE__ */ X(rn, [["render", sn], ["__file", "CheckBox.vue"]]), cn = /* @__PURE__ */ q({
|
|
745
748
|
__name: "index",
|
|
746
749
|
props: /* @__PURE__ */ ie({
|
|
747
750
|
config: {},
|
|
@@ -757,7 +760,7 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
|
|
|
757
760
|
}),
|
|
758
761
|
emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
759
762
|
setup(t, { expose: n, emit: a }) {
|
|
760
|
-
const e = t, o = a, l = ye(t, "modelValue"), s = Ne("widgetRef"), c =
|
|
763
|
+
const e = t, o = a, l = ye(t, "modelValue"), s = Ne("widgetRef"), c = Z(() => {
|
|
761
764
|
switch (e.config?.widget?.widget) {
|
|
762
765
|
case "TextBox":
|
|
763
766
|
return Ke;
|
|
@@ -778,12 +781,12 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
|
|
|
778
781
|
default:
|
|
779
782
|
return Ke;
|
|
780
783
|
}
|
|
781
|
-
}), i =
|
|
784
|
+
}), i = m(""), r = (b) => {
|
|
782
785
|
i.value = b;
|
|
783
786
|
}, u = (b, p) => {
|
|
784
787
|
o("change", b, p);
|
|
785
788
|
};
|
|
786
|
-
function
|
|
789
|
+
function g() {
|
|
787
790
|
return e.config?.widget?.widget === "File";
|
|
788
791
|
}
|
|
789
792
|
n({
|
|
@@ -791,7 +794,7 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
|
|
|
791
794
|
return e.config?.widget?.widget === "File";
|
|
792
795
|
},
|
|
793
796
|
submit(b) {
|
|
794
|
-
return
|
|
797
|
+
return g() ? s.value.submit(b) : Promise.resolve(b);
|
|
795
798
|
},
|
|
796
799
|
validate() {
|
|
797
800
|
return s.value?.validate();
|
|
@@ -800,8 +803,8 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
|
|
|
800
803
|
return e?.config?.widget?.title;
|
|
801
804
|
}
|
|
802
805
|
});
|
|
803
|
-
const
|
|
804
|
-
return Object.defineProperty(
|
|
806
|
+
const _ = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g };
|
|
807
|
+
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
805
808
|
}
|
|
806
809
|
}), dn = { class: "title" }, un = {
|
|
807
810
|
key: 0,
|
|
@@ -812,12 +815,12 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
|
|
|
812
815
|
};
|
|
813
816
|
function pn(t, n, a, e, o, l) {
|
|
814
817
|
return d(), C("div", null, [
|
|
815
|
-
|
|
816
|
-
|
|
818
|
+
A("div", dn, [
|
|
819
|
+
J(Q(e.props?.config?.widget?.title) + " ", 1),
|
|
817
820
|
e.props.config.validations.length ? (d(), C("span", un, "*")) : se("", !0)
|
|
818
821
|
]),
|
|
819
|
-
|
|
820
|
-
(d(),
|
|
822
|
+
A("div", null, [
|
|
823
|
+
(d(), P(He(e.curComp), {
|
|
821
824
|
ref: "widgetRef",
|
|
822
825
|
modelValue: e.model,
|
|
823
826
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => e.model = s),
|
|
@@ -829,11 +832,11 @@ function pn(t, n, a, e, o, l) {
|
|
|
829
832
|
onError: e.errHandler,
|
|
830
833
|
onChange: e.changeHandler
|
|
831
834
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
832
|
-
e.errMsg.length > 0 ? (d(), C("div", fn,
|
|
835
|
+
e.errMsg.length > 0 ? (d(), C("div", fn, Q(e.errMsg), 1)) : se("", !0)
|
|
833
836
|
])
|
|
834
837
|
]);
|
|
835
838
|
}
|
|
836
|
-
const
|
|
839
|
+
const Be = /* @__PURE__ */ X(cn, [["render", pn], ["__scopeId", "data-v-4bc9e33b"], ["__file", "index.vue"]]), mn = /* @__PURE__ */ q({
|
|
837
840
|
__name: "SubmitButton",
|
|
838
841
|
props: {
|
|
839
842
|
url: {},
|
|
@@ -853,18 +856,18 @@ const Fe = /* @__PURE__ */ Q(cn, [["render", pn], ["__scopeId", "data-v-4bc9e33b
|
|
|
853
856
|
});
|
|
854
857
|
function gn(t, n, a, e, o, l) {
|
|
855
858
|
const s = S("AButton");
|
|
856
|
-
return d(),
|
|
859
|
+
return d(), P(s, {
|
|
857
860
|
loading: a.loading,
|
|
858
861
|
type: "primary",
|
|
859
862
|
onClick: e.clickHandler
|
|
860
863
|
}, {
|
|
861
864
|
default: v(() => [
|
|
862
|
-
|
|
865
|
+
le(t.$slots, "default")
|
|
863
866
|
]),
|
|
864
867
|
_: 3
|
|
865
868
|
}, 8, ["loading"]);
|
|
866
869
|
}
|
|
867
|
-
const _n = /* @__PURE__ */
|
|
870
|
+
const _n = /* @__PURE__ */ X(mn, [["render", gn], ["__file", "SubmitButton.vue"]]), vn = /* @__PURE__ */ q({
|
|
868
871
|
__name: "DetailLink",
|
|
869
872
|
props: {
|
|
870
873
|
url: {},
|
|
@@ -884,14 +887,14 @@ const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "SubmitButton.vue"]
|
|
|
884
887
|
});
|
|
885
888
|
function bn(t, n, a, e, o, l) {
|
|
886
889
|
const s = S("ALink");
|
|
887
|
-
return d(),
|
|
890
|
+
return d(), P(s, { onClick: e.clickHandler }, {
|
|
888
891
|
default: v(() => [
|
|
889
|
-
|
|
892
|
+
le(t.$slots, "default")
|
|
890
893
|
]),
|
|
891
894
|
_: 3
|
|
892
895
|
});
|
|
893
896
|
}
|
|
894
|
-
const yn = /* @__PURE__ */
|
|
897
|
+
const yn = /* @__PURE__ */ X(vn, [["render", bn], ["__file", "DetailLink.vue"]]), wn = /* @__PURE__ */ q({
|
|
895
898
|
__name: "index",
|
|
896
899
|
props: {
|
|
897
900
|
config: {},
|
|
@@ -901,10 +904,10 @@ const yn = /* @__PURE__ */ Q(vn, [["render", bn], ["__file", "DetailLink.vue"]])
|
|
|
901
904
|
setup(t, { expose: n, emit: a }) {
|
|
902
905
|
n();
|
|
903
906
|
const e = t, o = a;
|
|
904
|
-
function l(u,
|
|
905
|
-
o("click", e.config.widget, u,
|
|
907
|
+
function l(u, g) {
|
|
908
|
+
o("click", e.config.widget, u, g, e.config.title);
|
|
906
909
|
}
|
|
907
|
-
const s =
|
|
910
|
+
const s = Z(() => {
|
|
908
911
|
switch (e.config.location) {
|
|
909
912
|
case "InOperation":
|
|
910
913
|
return _n;
|
|
@@ -912,24 +915,24 @@ const yn = /* @__PURE__ */ Q(vn, [["render", bn], ["__file", "DetailLink.vue"]])
|
|
|
912
915
|
default:
|
|
913
916
|
return yn;
|
|
914
917
|
}
|
|
915
|
-
}), c =
|
|
918
|
+
}), c = Z(() => e.config.widget === ee.Submit ? e.config.requestUrl ?? "" : e.config.widget === ee.Link ? e.config.redirectUrl ?? "" : ""), i = Z(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
|
|
916
919
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
917
920
|
}
|
|
918
921
|
});
|
|
919
922
|
function hn(t, n, a, e, o, l) {
|
|
920
|
-
return d(),
|
|
923
|
+
return d(), P(He(e.curComp), {
|
|
921
924
|
url: e.curUrl,
|
|
922
925
|
"redirect-type": e.redirectType,
|
|
923
926
|
loading: a.loading,
|
|
924
927
|
onClick: e.clickHandler
|
|
925
928
|
}, {
|
|
926
929
|
default: v(() => [
|
|
927
|
-
|
|
930
|
+
J(Q(e.props.config.title), 1)
|
|
928
931
|
]),
|
|
929
932
|
_: 1
|
|
930
933
|
}, 8, ["url", "redirect-type", "loading"]);
|
|
931
934
|
}
|
|
932
|
-
const Ce = /* @__PURE__ */
|
|
935
|
+
const Ce = /* @__PURE__ */ X(wn, [["render", hn], ["__file", "index.vue"]]), Qe = Symbol("library-router");
|
|
933
936
|
function Se() {
|
|
934
937
|
const t = me(Qe, null);
|
|
935
938
|
return t || dt();
|
|
@@ -946,7 +949,7 @@ function xe() {
|
|
|
946
949
|
function Ve() {
|
|
947
950
|
return me(tt, null);
|
|
948
951
|
}
|
|
949
|
-
const Cn = /* @__PURE__ */
|
|
952
|
+
const Cn = /* @__PURE__ */ q({
|
|
950
953
|
__name: "TopBar",
|
|
951
954
|
props: {
|
|
952
955
|
title: {},
|
|
@@ -962,23 +965,23 @@ const Cn = /* @__PURE__ */ G({
|
|
|
962
965
|
function Un(t, n, a, e, o, l) {
|
|
963
966
|
const s = S("a-avatar"), c = S("a-popover");
|
|
964
967
|
return d(), C("div", Sn, [
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
+
A("div", xn, [
|
|
969
|
+
A("div", Vn, Q(a.title), 1),
|
|
970
|
+
A("div", An, Q(a.subTitle), 1)
|
|
968
971
|
]),
|
|
969
|
-
|
|
970
|
-
|
|
972
|
+
A("div", In, [
|
|
973
|
+
D(c, { trigger: "click" }, {
|
|
971
974
|
content: v(() => [
|
|
972
|
-
|
|
975
|
+
A("div", Tn, Q(a.email), 1)
|
|
973
976
|
]),
|
|
974
977
|
default: v(() => [
|
|
975
|
-
|
|
978
|
+
D(s, {
|
|
976
979
|
size: 48,
|
|
977
980
|
autoFixFontSize: "",
|
|
978
981
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
979
982
|
}, {
|
|
980
983
|
default: v(() => [
|
|
981
|
-
|
|
984
|
+
J(Q(a.email.charAt(0).toUpperCase()), 1)
|
|
982
985
|
]),
|
|
983
986
|
_: 1
|
|
984
987
|
})
|
|
@@ -988,9 +991,9 @@ function Un(t, n, a, e, o, l) {
|
|
|
988
991
|
])
|
|
989
992
|
]);
|
|
990
993
|
}
|
|
991
|
-
const Ae = /* @__PURE__ */
|
|
994
|
+
const Ae = /* @__PURE__ */ X(Cn, [["render", Un], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
992
995
|
function Me(t) {
|
|
993
|
-
const n =
|
|
996
|
+
const n = Le(), a = [];
|
|
994
997
|
if (n.fieldsGroup) {
|
|
995
998
|
n.fieldsGroup.forEach((l) => {
|
|
996
999
|
const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
|
|
@@ -1000,14 +1003,14 @@ function Me(t) {
|
|
|
1000
1003
|
return o.length && a.push({ name: "Previous Grading (if applicable)", fields: o }), a;
|
|
1001
1004
|
}
|
|
1002
1005
|
}
|
|
1003
|
-
const Pn = /* @__PURE__ */
|
|
1006
|
+
const Pn = /* @__PURE__ */ q({
|
|
1004
1007
|
__name: "CreateView",
|
|
1005
1008
|
props: {
|
|
1006
1009
|
className: {}
|
|
1007
1010
|
},
|
|
1008
1011
|
setup(t, { expose: n }) {
|
|
1009
1012
|
n();
|
|
1010
|
-
const a = xe(), e = Ve(), o = Se(), l = je(), s = Ne("dataWidgets"), c = pe(), i = t, r =
|
|
1013
|
+
const a = xe(), e = Ve(), o = Se(), l = je(), s = Ne("dataWidgets"), c = pe(), i = t, r = m({
|
|
1011
1014
|
pageType: "",
|
|
1012
1015
|
fields: {},
|
|
1013
1016
|
globalValidations: [],
|
|
@@ -1015,103 +1018,105 @@ const Pn = /* @__PURE__ */ G({
|
|
|
1015
1018
|
title: "",
|
|
1016
1019
|
subTitle: ""
|
|
1017
1020
|
}
|
|
1018
|
-
}), u =
|
|
1019
|
-
function
|
|
1020
|
-
return
|
|
1021
|
-
fieldKey:
|
|
1022
|
-
...
|
|
1023
|
-
})).filter((
|
|
1021
|
+
}), u = m([]), g = m({});
|
|
1022
|
+
function _(x) {
|
|
1023
|
+
return x ? Object.entries(x).map(([y, N]) => ({
|
|
1024
|
+
fieldKey: y,
|
|
1025
|
+
...N
|
|
1026
|
+
})).filter((y) => y.widget && y.widget.widget !== "Hidden").filter((y) => !te.value.includes(y.fieldKey)) : [];
|
|
1024
1027
|
}
|
|
1025
|
-
function b(
|
|
1026
|
-
return
|
|
1028
|
+
function b(x) {
|
|
1029
|
+
return x ? Object.entries(x).filter(([y, N]) => N.dependent).reduce((y, [N, M]) => (y[N] = M.dependent, y), {}) : [];
|
|
1027
1030
|
}
|
|
1028
|
-
const p =
|
|
1029
|
-
|
|
1031
|
+
const p = Z(() => r.value?.actions ? [...r.value.actions].reverse() : []), w = Fe({}), f = m(!1);
|
|
1032
|
+
ce(async () => {
|
|
1030
1033
|
f.value = !0, r.value = await ke(fe.Create, i.className, {
|
|
1031
1034
|
svrStore: e,
|
|
1032
1035
|
bpmStore: a
|
|
1033
|
-
}), u.value =
|
|
1034
|
-
for (const
|
|
1035
|
-
if (r.value.fields[
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1036
|
+
}), u.value = _(r.value.fields), g.value = b(r.value.fields);
|
|
1037
|
+
for (const x in r.value.fields) {
|
|
1038
|
+
if (r.value.fields[x].widget?.widget === "File") {
|
|
1039
|
+
const V = u.value.find((y) => y.fieldKey === x);
|
|
1040
|
+
V && V.widget && (V.widget.files = []);
|
|
1038
1041
|
}
|
|
1039
|
-
|
|
1042
|
+
w[x] = r.value.fields[x].modelValue;
|
|
1040
1043
|
}
|
|
1041
1044
|
f.value = !1;
|
|
1042
1045
|
});
|
|
1043
1046
|
function L() {
|
|
1044
1047
|
return e()?.userInfo?.email_address ?? "";
|
|
1045
1048
|
}
|
|
1046
|
-
async function
|
|
1047
|
-
switch (
|
|
1048
|
-
case
|
|
1049
|
-
let
|
|
1050
|
-
if (s.value?.forEach((
|
|
1051
|
-
|
|
1052
|
-
}), !
|
|
1049
|
+
async function Y(x, V, y, N, M) {
|
|
1050
|
+
switch (V) {
|
|
1051
|
+
case ee.Submit:
|
|
1052
|
+
let O = !0;
|
|
1053
|
+
if (s.value?.forEach((G) => {
|
|
1054
|
+
G?.validate && (G.validate() || (O = !1));
|
|
1055
|
+
}), !O) {
|
|
1053
1056
|
c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1054
1057
|
return;
|
|
1055
1058
|
}
|
|
1056
1059
|
f.value = !0;
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1060
|
+
try {
|
|
1061
|
+
const G = await St(i.className, { ...w, ...g.value }, y), ae = s.value?.map((de) => de?.submit ? de.submit(G.toString()) : Promise.resolve()) || [];
|
|
1062
|
+
await Promise.all(ae), f.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${G.toString()}.`), o.push({ name: "Details", params: { workflowId: G.toString() } });
|
|
1063
|
+
} catch {
|
|
1064
|
+
c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), f.value = !1;
|
|
1065
|
+
}
|
|
1061
1066
|
break;
|
|
1062
|
-
case
|
|
1067
|
+
case ee.Link:
|
|
1063
1068
|
try {
|
|
1064
|
-
await l[
|
|
1065
|
-
} catch (
|
|
1066
|
-
console.error("Error in link action trigger:",
|
|
1069
|
+
await l[x.eventName || ""]?.(w, te), o.push({ name: N, params: { className: i.className } });
|
|
1070
|
+
} catch (G) {
|
|
1071
|
+
console.error("Error in link action trigger:", G);
|
|
1067
1072
|
}
|
|
1068
1073
|
break;
|
|
1069
1074
|
default:
|
|
1070
|
-
console.warn("Unknown action type:",
|
|
1075
|
+
console.warn("Unknown action type:", V);
|
|
1071
1076
|
}
|
|
1072
1077
|
}
|
|
1073
|
-
const
|
|
1078
|
+
const z = [
|
|
1074
1079
|
"jobScpope",
|
|
1075
1080
|
"currentWorkdayId",
|
|
1076
1081
|
"originalGrade",
|
|
1077
1082
|
"jobTitlePrevious",
|
|
1078
1083
|
"jobAttachmentPrevious",
|
|
1079
1084
|
"positionId"
|
|
1080
|
-
],
|
|
1081
|
-
function
|
|
1082
|
-
l[
|
|
1085
|
+
], te = m(z);
|
|
1086
|
+
function oe(x, V) {
|
|
1087
|
+
l[x]?.(V, te), r.value && (u.value = _(r.value.fields));
|
|
1083
1088
|
}
|
|
1084
|
-
const
|
|
1085
|
-
return Object.defineProperty(
|
|
1089
|
+
const h = Z(() => Me(u.value)), I = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: b, reversedActions: p, _data: w, loading: f, getApproverEmail: L, clickHandler: Y, newHiddenFields: z, hiddenFields: te, changeHandler: oe, groupedFields: h, DataWidgets: Be, ActionButton: Ce, TopBar: Ae };
|
|
1090
|
+
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
1086
1091
|
}
|
|
1087
|
-
}), Dn = { class: "page-container" }, Nn = { class: "page-body" }, Hn = { class: "form-card" },
|
|
1092
|
+
}), Dn = { class: "page-container" }, Nn = { class: "page-body" }, Hn = { class: "form-card" }, Fn = { class: "form-fields-vertical" }, Ln = { class: "form-fields" }, Rn = {
|
|
1088
1093
|
key: 0,
|
|
1089
1094
|
class: "form-content"
|
|
1090
|
-
},
|
|
1095
|
+
}, Bn = { class: "page-footer" }, jn = { class: "action-container" }, Mn = { class: "action-buttons" };
|
|
1091
1096
|
function On(t, n, a, e, o, l) {
|
|
1092
1097
|
const s = S("a-card"), c = S("a-spin");
|
|
1093
1098
|
return d(), C("div", Dn, [
|
|
1094
|
-
|
|
1099
|
+
D(e.TopBar, {
|
|
1095
1100
|
title: e.pageData.banner.title,
|
|
1096
1101
|
subTitle: e.pageData.banner.subTitle,
|
|
1097
1102
|
email: e.getApproverEmail()
|
|
1098
1103
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1099
|
-
|
|
1100
|
-
|
|
1104
|
+
A("div", Nn, [
|
|
1105
|
+
D(c, {
|
|
1101
1106
|
loading: e.loading,
|
|
1102
1107
|
class: "form-container"
|
|
1103
1108
|
}, {
|
|
1104
1109
|
default: v(() => [
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
(d(!0), C(j, null,
|
|
1110
|
+
A("div", Hn, [
|
|
1111
|
+
A("div", Fn, [
|
|
1112
|
+
(d(!0), C(j, null, $(e.groupedFields, (i) => (d(), P(s, {
|
|
1108
1113
|
key: i.name,
|
|
1109
1114
|
title: i.name,
|
|
1110
1115
|
style: { "margin-bottom": "24px" }
|
|
1111
1116
|
}, {
|
|
1112
1117
|
default: v(() => [
|
|
1113
|
-
|
|
1114
|
-
(d(!0), C(j, null,
|
|
1118
|
+
A("div", Ln, [
|
|
1119
|
+
(d(!0), C(j, null, $(i.fields, (r) => (d(), P(e.DataWidgets, {
|
|
1115
1120
|
key: r.fieldKey,
|
|
1116
1121
|
ref_for: !0,
|
|
1117
1122
|
ref: "dataWidgets",
|
|
@@ -1128,19 +1133,19 @@ function On(t, n, a, e, o, l) {
|
|
|
1128
1133
|
_: 2
|
|
1129
1134
|
}, 1032, ["title"]))), 128))
|
|
1130
1135
|
]),
|
|
1131
|
-
t.$slots.content ? (d(), C("div",
|
|
1132
|
-
|
|
1136
|
+
t.$slots.content ? (d(), C("div", Rn, [
|
|
1137
|
+
le(t.$slots, "content", {}, void 0, !0)
|
|
1133
1138
|
])) : se("", !0)
|
|
1134
1139
|
])
|
|
1135
1140
|
]),
|
|
1136
1141
|
_: 3
|
|
1137
1142
|
}, 8, ["loading"])
|
|
1138
1143
|
]),
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
(d(!0), C(j, null,
|
|
1144
|
+
A("div", Bn, [
|
|
1145
|
+
A("div", jn, [
|
|
1146
|
+
le(t.$slots, "action", {}, void 0, !0),
|
|
1147
|
+
A("div", Mn, [
|
|
1148
|
+
(d(!0), C(j, null, $(e.reversedActions, (i) => (d(), P(e.ActionButton, {
|
|
1144
1149
|
key: i.Title,
|
|
1145
1150
|
loading: e.loading,
|
|
1146
1151
|
config: i,
|
|
@@ -1152,7 +1157,7 @@ function On(t, n, a, e, o, l) {
|
|
|
1152
1157
|
])
|
|
1153
1158
|
]);
|
|
1154
1159
|
}
|
|
1155
|
-
const En = /* @__PURE__ */
|
|
1160
|
+
const En = /* @__PURE__ */ X(Pn, [["render", On], ["__scopeId", "data-v-7b45a965"], ["__file", "CreateView.vue"]]), $n = /* @__PURE__ */ q({
|
|
1156
1161
|
__name: "UpdateView",
|
|
1157
1162
|
props: {
|
|
1158
1163
|
className: {},
|
|
@@ -1160,7 +1165,7 @@ const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7
|
|
|
1160
1165
|
},
|
|
1161
1166
|
setup(t, { expose: n }) {
|
|
1162
1167
|
n();
|
|
1163
|
-
const a = Se(), e = je(), o = Ve(), l = xe(), s = Ne("dataWidgets"), c = pe(), i = t, r =
|
|
1168
|
+
const a = Se(), e = je(), o = Ve(), l = xe(), s = Ne("dataWidgets"), c = pe(), i = t, r = m({
|
|
1164
1169
|
pageType: "",
|
|
1165
1170
|
fields: {},
|
|
1166
1171
|
globalValidations: [],
|
|
@@ -1168,73 +1173,77 @@ const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7
|
|
|
1168
1173
|
title: "",
|
|
1169
1174
|
subTitle: ""
|
|
1170
1175
|
}
|
|
1171
|
-
}), u =
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1174
|
-
fieldKey:
|
|
1175
|
-
...
|
|
1176
|
-
})).filter((
|
|
1176
|
+
}), u = m([]), g = m({});
|
|
1177
|
+
function _(I) {
|
|
1178
|
+
return I ? Object.entries(I).map(([V, y]) => ({
|
|
1179
|
+
fieldKey: V,
|
|
1180
|
+
...y
|
|
1181
|
+
})).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !z.value.includes(V.fieldKey)) : [];
|
|
1177
1182
|
}
|
|
1178
|
-
function b(
|
|
1179
|
-
return
|
|
1183
|
+
function b(I) {
|
|
1184
|
+
return I ? Object.entries(I).filter(([V, y]) => y.dependent).reduce((V, [y, N]) => (V[y] = N.dependent, V), {}) : [];
|
|
1180
1185
|
}
|
|
1181
|
-
const p =
|
|
1182
|
-
|
|
1186
|
+
const p = Z(() => r.value?.actions ? [...r.value.actions].reverse() : []), w = Fe({}), f = m(!1);
|
|
1187
|
+
ce(async () => {
|
|
1183
1188
|
f.value = !0, r.value = await ke(fe.Update, i.className, {
|
|
1184
1189
|
svrStore: o,
|
|
1185
1190
|
bpmStore: l
|
|
1186
1191
|
}, {
|
|
1187
1192
|
workflowId: i.workflowId
|
|
1188
1193
|
});
|
|
1189
|
-
const
|
|
1190
|
-
r.value.actions = r.value.actions?.filter((
|
|
1191
|
-
const
|
|
1192
|
-
return
|
|
1194
|
+
const I = await Je(fe.Update, i.className, { workflowId: i.workflowId, email: L() }), x = await Xe(i.className, i.workflowId);
|
|
1195
|
+
r.value.actions = r.value.actions?.filter((y) => {
|
|
1196
|
+
const N = I.find((M) => M.button === y.title);
|
|
1197
|
+
return N ? N.isShow : !0;
|
|
1193
1198
|
});
|
|
1194
|
-
const
|
|
1195
|
-
e.Test?.(
|
|
1196
|
-
for (const
|
|
1197
|
-
if (r.value.fields[
|
|
1198
|
-
const
|
|
1199
|
-
|
|
1199
|
+
const V = r.value.fields.requestType.modelValue;
|
|
1200
|
+
e.Test?.(V, z), u.value = _(r.value.fields), g.value = b(r.value.fields);
|
|
1201
|
+
for (const y in r.value.fields) {
|
|
1202
|
+
if (r.value.fields[y].widget?.widget === "File") {
|
|
1203
|
+
const N = u.value.find((M) => M.fieldKey === y);
|
|
1204
|
+
N && N.widget && (N.widget.files = x[y] ?? [], N.widget.removeFile = (M) => Ft(i.className, M));
|
|
1200
1205
|
}
|
|
1201
|
-
y
|
|
1206
|
+
w[y] = r.value.fields[y].modelValue;
|
|
1202
1207
|
}
|
|
1203
1208
|
f.value = !1;
|
|
1204
1209
|
});
|
|
1205
1210
|
function L() {
|
|
1206
1211
|
return o()?.userInfo?.email_address ?? "";
|
|
1207
1212
|
}
|
|
1208
|
-
async function
|
|
1209
|
-
switch (
|
|
1210
|
-
case
|
|
1213
|
+
async function Y(I, x, V, y, N) {
|
|
1214
|
+
switch (x) {
|
|
1215
|
+
case ee.Submit:
|
|
1211
1216
|
let M = !0;
|
|
1212
|
-
if (s.value?.forEach((
|
|
1213
|
-
|
|
1217
|
+
if (s.value?.forEach((O) => {
|
|
1218
|
+
O?.validate && (O.validate() || (M = !1));
|
|
1214
1219
|
}), !M) {
|
|
1215
1220
|
c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1216
1221
|
return;
|
|
1217
1222
|
}
|
|
1218
|
-
f.value = !0
|
|
1219
|
-
|
|
1220
|
-
|
|
1223
|
+
f.value = !0;
|
|
1224
|
+
try {
|
|
1225
|
+
const O = await xt(i.className, i.workflowId, { ...w, ...g.value }, V), G = s.value?.map((ae) => ae?.submit ? ae.submit(O.toString()) : Promise.resolve()) || [];
|
|
1226
|
+
await Promise.all(G), f.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${O.toString()}.`);
|
|
1227
|
+
} catch {
|
|
1228
|
+
c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), f.value = !1;
|
|
1229
|
+
}
|
|
1221
1230
|
break;
|
|
1222
|
-
case
|
|
1231
|
+
case ee.Link:
|
|
1223
1232
|
try {
|
|
1224
|
-
await e[
|
|
1233
|
+
await e[I.eventName || ""]?.(w, z), a.push({ name: y, params: { className: i.className } });
|
|
1225
1234
|
} catch {
|
|
1226
1235
|
}
|
|
1227
1236
|
break;
|
|
1228
1237
|
default:
|
|
1229
|
-
console.warn("Unknown action type:",
|
|
1238
|
+
console.warn("Unknown action type:", x);
|
|
1230
1239
|
}
|
|
1231
1240
|
}
|
|
1232
|
-
const
|
|
1233
|
-
function
|
|
1234
|
-
e[
|
|
1241
|
+
const z = m([]);
|
|
1242
|
+
function te(I, x) {
|
|
1243
|
+
e[I]?.(x, z), r.value && (u.value = _(r.value.fields));
|
|
1235
1244
|
}
|
|
1236
|
-
const
|
|
1237
|
-
return Object.defineProperty(
|
|
1245
|
+
const oe = Z(() => Me(u.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: b, reversedActions: p, _data: w, loading: f, getApproverEmail: L, clickHandler: Y, hiddenFields: z, changeHandler: te, groupedFields: oe, DataWidgets: Be, ActionButton: Ce, TopBar: Ae };
|
|
1246
|
+
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
1238
1247
|
}
|
|
1239
1248
|
}), Kn = { class: "page-container" }, zn = { class: "page-body" }, Gn = { class: "form-card" }, Wn = { class: "form-fields-vertical" }, qn = { class: "form-fields" }, Yn = {
|
|
1240
1249
|
key: 0,
|
|
@@ -1243,27 +1252,27 @@ const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7
|
|
|
1243
1252
|
function Zn(t, n, a, e, o, l) {
|
|
1244
1253
|
const s = S("a-card"), c = S("a-spin");
|
|
1245
1254
|
return d(), C("div", Kn, [
|
|
1246
|
-
|
|
1255
|
+
D(e.TopBar, {
|
|
1247
1256
|
title: e.pageData.banner.title,
|
|
1248
1257
|
subTitle: e.pageData.banner.subTitle,
|
|
1249
1258
|
email: e.getApproverEmail()
|
|
1250
1259
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1251
|
-
|
|
1252
|
-
|
|
1260
|
+
A("div", zn, [
|
|
1261
|
+
D(c, {
|
|
1253
1262
|
loading: e.loading,
|
|
1254
1263
|
class: "form-container"
|
|
1255
1264
|
}, {
|
|
1256
1265
|
default: v(() => [
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
(d(!0), C(j, null,
|
|
1266
|
+
A("div", Gn, [
|
|
1267
|
+
A("div", Wn, [
|
|
1268
|
+
(d(!0), C(j, null, $(e.groupedFields, (i) => (d(), P(s, {
|
|
1260
1269
|
key: i.name,
|
|
1261
1270
|
title: i.name,
|
|
1262
1271
|
style: { "margin-bottom": "24px" }
|
|
1263
1272
|
}, {
|
|
1264
1273
|
default: v(() => [
|
|
1265
|
-
|
|
1266
|
-
(d(!0), C(j, null,
|
|
1274
|
+
A("div", qn, [
|
|
1275
|
+
(d(!0), C(j, null, $(i.fields, (r) => (d(), P(e.DataWidgets, {
|
|
1267
1276
|
key: r.fieldKey,
|
|
1268
1277
|
ref_for: !0,
|
|
1269
1278
|
ref: "dataWidgets",
|
|
@@ -1281,18 +1290,18 @@ function Zn(t, n, a, e, o, l) {
|
|
|
1281
1290
|
}, 1032, ["title"]))), 128))
|
|
1282
1291
|
]),
|
|
1283
1292
|
t.$slots.content ? (d(), C("div", Yn, [
|
|
1284
|
-
|
|
1293
|
+
le(t.$slots, "content", {}, void 0, !0)
|
|
1285
1294
|
])) : se("", !0)
|
|
1286
1295
|
])
|
|
1287
1296
|
]),
|
|
1288
1297
|
_: 3
|
|
1289
1298
|
}, 8, ["loading"])
|
|
1290
1299
|
]),
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
(d(!0), C(j, null,
|
|
1300
|
+
A("div", Jn, [
|
|
1301
|
+
A("div", Xn, [
|
|
1302
|
+
le(t.$slots, "action", {}, void 0, !0),
|
|
1303
|
+
A("div", Qn, [
|
|
1304
|
+
(d(!0), C(j, null, $(e.reversedActions, (i) => (d(), P(e.ActionButton, {
|
|
1296
1305
|
key: i.Title,
|
|
1297
1306
|
loading: e.loading,
|
|
1298
1307
|
config: i,
|
|
@@ -1304,7 +1313,7 @@ function Zn(t, n, a, e, o, l) {
|
|
|
1304
1313
|
])
|
|
1305
1314
|
]);
|
|
1306
1315
|
}
|
|
1307
|
-
const eo = /* @__PURE__ */
|
|
1316
|
+
const eo = /* @__PURE__ */ X($n, [["render", Zn], ["__scopeId", "data-v-72d4c7ff"], ["__file", "UpdateView.vue"]]), nt = Symbol("library-custom-comp");
|
|
1308
1317
|
function to() {
|
|
1309
1318
|
return me(nt, null);
|
|
1310
1319
|
}
|
|
@@ -1321,7 +1330,7 @@ var lo = (t, n) => {
|
|
|
1321
1330
|
t[a] = e;
|
|
1322
1331
|
return t;
|
|
1323
1332
|
};
|
|
1324
|
-
const co =
|
|
1333
|
+
const co = q({
|
|
1325
1334
|
name: "IconDownload",
|
|
1326
1335
|
props: {
|
|
1327
1336
|
size: {
|
|
@@ -1348,7 +1357,7 @@ const co = G({
|
|
|
1348
1357
|
click: (t) => !0
|
|
1349
1358
|
},
|
|
1350
1359
|
setup(t, { emit: n }) {
|
|
1351
|
-
const a = ro("icon"), e =
|
|
1360
|
+
const a = ro("icon"), e = Z(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = Z(() => {
|
|
1352
1361
|
const s = {};
|
|
1353
1362
|
return t.size && (s.fontSize = io(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
|
|
1354
1363
|
});
|
|
@@ -1374,7 +1383,7 @@ function fo(t, n, a, e, o, l) {
|
|
|
1374
1383
|
"stroke-linejoin": t.strokeLinejoin,
|
|
1375
1384
|
onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
|
|
1376
1385
|
}, n[1] || (n[1] = [
|
|
1377
|
-
|
|
1386
|
+
A("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
|
|
1378
1387
|
]), 14, uo);
|
|
1379
1388
|
}
|
|
1380
1389
|
var Pe = /* @__PURE__ */ lo(co, [["render", fo]]);
|
|
@@ -1384,7 +1393,7 @@ const po = Object.assign(Pe, {
|
|
|
1384
1393
|
const e = (a = n?.iconPrefix) != null ? a : "";
|
|
1385
1394
|
t.component(e + Pe.name, Pe);
|
|
1386
1395
|
}
|
|
1387
|
-
}), mo = /* @__PURE__ */
|
|
1396
|
+
}), mo = /* @__PURE__ */ q({
|
|
1388
1397
|
__name: "DetailView",
|
|
1389
1398
|
props: {
|
|
1390
1399
|
className: {},
|
|
@@ -1392,7 +1401,7 @@ const po = Object.assign(Pe, {
|
|
|
1392
1401
|
},
|
|
1393
1402
|
setup(t, { expose: n }) {
|
|
1394
1403
|
n();
|
|
1395
|
-
const a = Ve(), e = xe(), o = je(), l = Se(), s = to(), c = pe(), i = t, r =
|
|
1404
|
+
const a = Ve(), e = xe(), o = je(), l = Se(), s = to(), c = pe(), i = t, r = m({
|
|
1396
1405
|
pageType: "",
|
|
1397
1406
|
fields: {},
|
|
1398
1407
|
globalValidations: [],
|
|
@@ -1400,18 +1409,18 @@ const po = Object.assign(Pe, {
|
|
|
1400
1409
|
title: "",
|
|
1401
1410
|
subTitle: ""
|
|
1402
1411
|
}
|
|
1403
|
-
}), u =
|
|
1404
|
-
function
|
|
1405
|
-
return
|
|
1406
|
-
fieldKey:
|
|
1407
|
-
...
|
|
1408
|
-
})).filter((
|
|
1412
|
+
}), u = m([]);
|
|
1413
|
+
function g(T) {
|
|
1414
|
+
return T ? Object.entries(T).map(([E, U]) => (typeof U.modelValue == "boolean" ? U.fieldValue = U.modelValue ? "Yes" : "No" : U.fieldValue = U.modelValue, {
|
|
1415
|
+
fieldKey: E,
|
|
1416
|
+
...U
|
|
1417
|
+
})).filter((E) => E.widget && E.widget.widget !== "Hidden").filter((E) => !h.value.includes(E.fieldKey)) : [];
|
|
1409
1418
|
}
|
|
1410
|
-
const
|
|
1411
|
-
const
|
|
1412
|
-
return
|
|
1413
|
-
const
|
|
1414
|
-
id:
|
|
1419
|
+
const _ = Z(() => Me(u.value)), b = Z(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m(!0), w = (T, R) => {
|
|
1420
|
+
const E = T.findIndex((U) => U.isCurrent);
|
|
1421
|
+
return T.map((U, re) => {
|
|
1422
|
+
const F = {
|
|
1423
|
+
id: U.id,
|
|
1415
1424
|
title: "",
|
|
1416
1425
|
proxy: "",
|
|
1417
1426
|
sub: "",
|
|
@@ -1419,77 +1428,77 @@ const po = Object.assign(Pe, {
|
|
|
1419
1428
|
status: 1,
|
|
1420
1429
|
time: ""
|
|
1421
1430
|
};
|
|
1422
|
-
|
|
1423
|
-
const _e =
|
|
1424
|
-
if (_e && ve && _e?.email?.toLowerCase() !== ve?.approverEmail?.toLowerCase() && (
|
|
1425
|
-
|
|
1431
|
+
F.title = U.workflowProcessApprovers[0]?.name;
|
|
1432
|
+
const _e = U.workflowProcessApprovers[U.workflowProcessApprovers.length - 1], we = U.workflowHistorys[U.workflowHistorys.length - 1], ve = we?.workflowHistoryApprovers[we?.workflowHistoryApprovers?.length - 1];
|
|
1433
|
+
if (_e && ve && _e?.email?.toLowerCase() !== ve?.approverEmail?.toLowerCase() && (F.title = `${ve.name}`, F.proxy = `Proxy: ${_e.name}`), U.sort > 1 ? F.sub = "Approver Role: " + U.nodeName.replace("Submit", "").replace("Approve", "") : F.sub = "Submit Application", U.isCurrent && R !== -1)
|
|
1434
|
+
F.desc = "In Approval", F.status = 1;
|
|
1426
1435
|
else {
|
|
1427
|
-
const ne =
|
|
1436
|
+
const ne = U.workflowHistorys[U.workflowHistorys.length - 1];
|
|
1428
1437
|
if (ne && ne.status === 100)
|
|
1429
|
-
|
|
1438
|
+
F.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), F.status = 2, F.desc = "approve success!";
|
|
1430
1439
|
else if (ne && ne.status === 999)
|
|
1431
|
-
|
|
1440
|
+
F.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), F.status = 0, F.desc = "approve reject!";
|
|
1432
1441
|
else if (ne)
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1442
|
+
if (F.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), U.sort === 1)
|
|
1443
|
+
F.status = 2, F.desc = "";
|
|
1435
1444
|
else {
|
|
1436
1445
|
const Oe = ne.workflowHistoryApprovers[0];
|
|
1437
|
-
|
|
1446
|
+
F.status = 3, F.desc = Oe?.reason ? `Rejected reason: ${Oe.reason}` : "Rejected";
|
|
1438
1447
|
}
|
|
1439
|
-
else re <
|
|
1448
|
+
else re < E || E === -1 ? (F.status = 0, F.desc = "Skipped") : (F.status = 0, F.desc = "Pending Approval");
|
|
1440
1449
|
ne && ne.status;
|
|
1441
1450
|
}
|
|
1442
|
-
return
|
|
1451
|
+
return F;
|
|
1443
1452
|
});
|
|
1444
|
-
}, f =
|
|
1445
|
-
async function
|
|
1446
|
-
const
|
|
1453
|
+
}, f = m([]), L = m(!1), Y = m(!1), z = m(!1), te = m(!1);
|
|
1454
|
+
async function oe() {
|
|
1455
|
+
const T = await Je(fe.Details, i.className, { workflowId: i.workflowId, email: V() });
|
|
1447
1456
|
r.value.actions = r.value.actions?.filter((R) => {
|
|
1448
|
-
const
|
|
1449
|
-
return
|
|
1450
|
-
}), L.value =
|
|
1457
|
+
const E = T.find((U) => U.button === R.title);
|
|
1458
|
+
return E ? E.isShow : !0;
|
|
1459
|
+
}), L.value = T.find((R) => R.button === "IsGlobal")?.isShow ?? !1, Y.value = T.find((R) => R.button === "AssignButton")?.isShow ?? !1, z.value = T.find((R) => R.button === "AssignList")?.isShow ?? !1, te.value = T.find((R) => R.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1451
1460
|
}
|
|
1452
|
-
const
|
|
1453
|
-
async function
|
|
1461
|
+
const h = m([]);
|
|
1462
|
+
async function I() {
|
|
1454
1463
|
p.value = !0, r.value = await ke(fe.Details, i.className, {
|
|
1455
1464
|
svrStore: a,
|
|
1456
1465
|
bpmStore: e
|
|
1457
1466
|
}, {
|
|
1458
1467
|
workflowId: i.workflowId
|
|
1459
1468
|
});
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1469
|
+
const T = await Xe(i.className, i.workflowId);
|
|
1470
|
+
G.value = await Lt(), M.value = await $e(i.workflowId), ae.value = await Ue(i.workflowId), oe();
|
|
1462
1471
|
const R = r.value.fields.requestType.modelValue;
|
|
1463
|
-
o.Test?.(R,
|
|
1464
|
-
for (const
|
|
1465
|
-
if (r.value.fields[
|
|
1466
|
-
const re = u.value.find((
|
|
1467
|
-
re && re.widget && (re.widget.files =
|
|
1472
|
+
o.Test?.(R, h), u.value = g(r.value.fields);
|
|
1473
|
+
for (const U in r.value.fields)
|
|
1474
|
+
if (r.value.fields[U].widget?.widget === "File") {
|
|
1475
|
+
const re = u.value.find((F) => F.fieldKey === U);
|
|
1476
|
+
re && re.widget && (re.widget.files = T[U] ?? []);
|
|
1468
1477
|
}
|
|
1469
|
-
const
|
|
1470
|
-
f.value =
|
|
1478
|
+
const E = await Nt(i.className, i.workflowId);
|
|
1479
|
+
f.value = w(E, 0), p.value = !1;
|
|
1471
1480
|
}
|
|
1472
|
-
|
|
1473
|
-
async function
|
|
1474
|
-
return o[
|
|
1481
|
+
ce(I);
|
|
1482
|
+
async function x(T, R) {
|
|
1483
|
+
return o[T]?.(R);
|
|
1475
1484
|
}
|
|
1476
|
-
function
|
|
1485
|
+
function V() {
|
|
1477
1486
|
return a()?.userInfo?.email_address ?? "";
|
|
1478
1487
|
}
|
|
1479
|
-
async function
|
|
1488
|
+
async function y(T, R, E, U, re) {
|
|
1480
1489
|
try {
|
|
1481
1490
|
switch (R) {
|
|
1482
|
-
case
|
|
1483
|
-
const { reason:
|
|
1491
|
+
case ee.Submit:
|
|
1492
|
+
const { reason: F, ifGlobal: _e } = await x(re, { isGlobal: L.value });
|
|
1484
1493
|
p.value = !0;
|
|
1485
1494
|
const we = re === "Approve" ? "100" : "-1";
|
|
1486
|
-
await Pt(i.className, i.workflowId,
|
|
1495
|
+
await Pt(i.className, i.workflowId, V(), F, [Number(i.workflowId)], E, we, _e), p.value = !1;
|
|
1487
1496
|
const ve = re === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
|
|
1488
|
-
c?.appContext.config.globalProperties.$notification.success(ve),
|
|
1497
|
+
c?.appContext.config.globalProperties.$notification.success(ve), I();
|
|
1489
1498
|
break;
|
|
1490
|
-
case
|
|
1499
|
+
case ee.Link:
|
|
1491
1500
|
try {
|
|
1492
|
-
await o[
|
|
1501
|
+
await o[T.eventName || ""]?.(), l.push({ name: U, params: { className: i.className } });
|
|
1493
1502
|
} catch (ne) {
|
|
1494
1503
|
console.error("Error in link action trigger:", ne);
|
|
1495
1504
|
}
|
|
@@ -1500,56 +1509,56 @@ const po = Object.assign(Pe, {
|
|
|
1500
1509
|
} catch {
|
|
1501
1510
|
}
|
|
1502
1511
|
}
|
|
1503
|
-
const
|
|
1504
|
-
async function
|
|
1505
|
-
if (!
|
|
1512
|
+
const N = m(""), M = m([]), O = m(""), G = m([]), ae = m([]);
|
|
1513
|
+
async function de() {
|
|
1514
|
+
if (!O.value) {
|
|
1506
1515
|
c?.appContext.config.globalProperties.$message.error("Please select an approver");
|
|
1507
1516
|
return;
|
|
1508
1517
|
}
|
|
1509
1518
|
await ue("Confirm Assign Approver", "Do you want to assign the selected approver?");
|
|
1510
1519
|
try {
|
|
1511
|
-
await
|
|
1512
|
-
} catch (
|
|
1513
|
-
if (
|
|
1520
|
+
await Rt(i.workflowId, O.value), ae.value = await Ue(i.workflowId), oe(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
|
|
1521
|
+
} catch (T) {
|
|
1522
|
+
if (T.status === 409) {
|
|
1514
1523
|
c?.appContext.config.globalProperties.$notification.error("This user is already an associator");
|
|
1515
1524
|
return;
|
|
1516
1525
|
}
|
|
1517
1526
|
c?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
|
|
1518
1527
|
}
|
|
1519
1528
|
}
|
|
1520
|
-
async function ue(
|
|
1521
|
-
const { Modal:
|
|
1522
|
-
return new Promise((
|
|
1523
|
-
|
|
1524
|
-
title:
|
|
1529
|
+
async function ue(T, R) {
|
|
1530
|
+
const { Modal: E } = await import("@arco-design/web-vue");
|
|
1531
|
+
return new Promise((U, re) => {
|
|
1532
|
+
E.confirm({
|
|
1533
|
+
title: T,
|
|
1525
1534
|
content: R,
|
|
1526
1535
|
okText: "OK",
|
|
1527
1536
|
cancelText: "Cancel",
|
|
1528
|
-
onOk: () =>
|
|
1537
|
+
onOk: () => U(!0),
|
|
1529
1538
|
onCancel: () => re()
|
|
1530
1539
|
});
|
|
1531
1540
|
});
|
|
1532
1541
|
}
|
|
1533
|
-
async function
|
|
1542
|
+
async function k(T) {
|
|
1534
1543
|
try {
|
|
1535
1544
|
await ue("Confirm Delete Associator", "Do you want to delete this associator?");
|
|
1536
1545
|
} catch {
|
|
1537
1546
|
return;
|
|
1538
1547
|
}
|
|
1539
1548
|
try {
|
|
1540
|
-
await jt(String(
|
|
1549
|
+
await jt(String(T)), ae.value = await Ue(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
|
|
1541
1550
|
} catch {
|
|
1542
1551
|
c?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
|
|
1543
1552
|
}
|
|
1544
1553
|
}
|
|
1545
|
-
async function
|
|
1546
|
-
if (!
|
|
1554
|
+
async function H() {
|
|
1555
|
+
if (!N.value.trim()) {
|
|
1547
1556
|
c?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
|
|
1548
1557
|
return;
|
|
1549
1558
|
}
|
|
1550
|
-
await
|
|
1559
|
+
await Bt(i.workflowId, V(), N.value), N.value = "", M.value = await $e(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
|
|
1551
1560
|
}
|
|
1552
|
-
const B = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, pageData: r, _fields: u, genField:
|
|
1561
|
+
const B = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, pageData: r, _fields: u, genField: g, groupedFields: _, reversedActions: b, loading: p, mapWorkflowSteps: w, steps: f, isGlobal: L, isShowAssignSelect: Y, isShowAssignList: z, isShowCommentTextArea: te, reloadButtonList: oe, hiddenFields: h, load: I, triggerFn: x, getApproverEmail: V, clickHandler: y, comment: N, commentsHistory: M, selectedApprover: O, approvers: G, associators: ae, onAssignApprover: de, confirmDialog: ue, onDeleteAssociator: k, onAddComment: H, ActionButton: Ce, get IconDownload() {
|
|
1553
1562
|
return po;
|
|
1554
1563
|
}, TopBar: Ae, get formatDate() {
|
|
1555
1564
|
return he;
|
|
@@ -1567,86 +1576,86 @@ const po = Object.assign(Pe, {
|
|
|
1567
1576
|
class: "detail-content"
|
|
1568
1577
|
}, Vo = { class: "page-footer" }, Ao = { class: "action-container" }, Io = { class: "action-buttons" };
|
|
1569
1578
|
function To(t, n, a, e, o, l) {
|
|
1570
|
-
const s = S("a-link"), c = S("a-space"), i = S("a-card"), r = S("a-option"), u = S("a-select"),
|
|
1579
|
+
const s = S("a-link"), c = S("a-space"), i = S("a-card"), r = S("a-option"), u = S("a-select"), g = S("a-button"), _ = S("a-list-item"), b = S("a-list"), p = S("a-textarea"), w = S("a-spin");
|
|
1571
1580
|
return d(), C("div", go, [
|
|
1572
|
-
|
|
1581
|
+
D(e.TopBar, {
|
|
1573
1582
|
title: e.pageData.banner.title,
|
|
1574
1583
|
subTitle: e.pageData.banner.subTitle,
|
|
1575
1584
|
email: e.getApproverEmail()
|
|
1576
1585
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1577
|
-
|
|
1578
|
-
|
|
1586
|
+
A("div", _o, [
|
|
1587
|
+
D(w, {
|
|
1579
1588
|
loading: e.loading,
|
|
1580
1589
|
class: "detail-container"
|
|
1581
1590
|
}, {
|
|
1582
1591
|
default: v(() => [
|
|
1583
|
-
|
|
1584
|
-
(d(),
|
|
1585
|
-
|
|
1586
|
-
(d(!0), C(j, null,
|
|
1592
|
+
A("div", vo, [
|
|
1593
|
+
(d(), P(He(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
|
|
1594
|
+
A("div", bo, [
|
|
1595
|
+
(d(!0), C(j, null, $(e.groupedFields, (f) => (d(), P(i, {
|
|
1587
1596
|
key: f.name,
|
|
1588
1597
|
title: f.name,
|
|
1589
1598
|
style: { "margin-bottom": "24px" }
|
|
1590
1599
|
}, {
|
|
1591
1600
|
default: v(() => [
|
|
1592
|
-
|
|
1593
|
-
(d(!0), C(j, null,
|
|
1601
|
+
A("div", yo, [
|
|
1602
|
+
(d(!0), C(j, null, $(f.fields, (L) => (d(), C("div", {
|
|
1594
1603
|
key: L.fieldKey,
|
|
1595
1604
|
class: "detail-field-wrapper"
|
|
1596
1605
|
}, [
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
L.widget?.widget === "File" ? (d(!0), C(j, { key: 0 },
|
|
1606
|
+
A("div", wo, [
|
|
1607
|
+
A("div", ho, Q(L.widget?.title), 1),
|
|
1608
|
+
L.widget?.widget === "File" ? (d(!0), C(j, { key: 0 }, $(L.widget.files, (Y) => (d(), C("div", {
|
|
1600
1609
|
class: "field-value",
|
|
1601
|
-
key:
|
|
1610
|
+
key: Y.id
|
|
1602
1611
|
}, [
|
|
1603
|
-
|
|
1612
|
+
D(c, null, {
|
|
1604
1613
|
default: v(() => [
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
href:
|
|
1614
|
+
J(Q(Y.name) + " ", 1),
|
|
1615
|
+
D(s, {
|
|
1616
|
+
href: Y.url,
|
|
1608
1617
|
target: "_blank"
|
|
1609
1618
|
}, {
|
|
1610
1619
|
default: v(() => [
|
|
1611
|
-
|
|
1620
|
+
D(e.IconDownload, { style: { color: "#7A00E6" } })
|
|
1612
1621
|
]),
|
|
1613
1622
|
_: 2
|
|
1614
1623
|
}, 1032, ["href"])
|
|
1615
1624
|
]),
|
|
1616
1625
|
_: 2
|
|
1617
1626
|
}, 1024)
|
|
1618
|
-
]))), 128)) : (d(), C("div", ko,
|
|
1627
|
+
]))), 128)) : (d(), C("div", ko, Q(L.fieldValue), 1))
|
|
1619
1628
|
])
|
|
1620
1629
|
]))), 128))
|
|
1621
1630
|
])
|
|
1622
1631
|
]),
|
|
1623
1632
|
_: 2
|
|
1624
1633
|
}, 1032, ["title"]))), 128)),
|
|
1625
|
-
e.isShowAssignSelect ? (d(),
|
|
1634
|
+
e.isShowAssignSelect ? (d(), P(c, { key: 0 }, {
|
|
1626
1635
|
default: v(() => [
|
|
1627
|
-
|
|
1636
|
+
D(u, {
|
|
1628
1637
|
modelValue: e.selectedApprover,
|
|
1629
1638
|
"onUpdate:modelValue": n[0] || (n[0] = (f) => e.selectedApprover = f)
|
|
1630
1639
|
}, {
|
|
1631
1640
|
default: v(() => [
|
|
1632
|
-
(d(!0), C(j, null,
|
|
1641
|
+
(d(!0), C(j, null, $(e.approvers, (f) => (d(), P(r, {
|
|
1633
1642
|
key: f.value,
|
|
1634
1643
|
value: f.value
|
|
1635
1644
|
}, {
|
|
1636
1645
|
default: v(() => [
|
|
1637
|
-
|
|
1646
|
+
J(Q(f.label), 1)
|
|
1638
1647
|
]),
|
|
1639
1648
|
_: 2
|
|
1640
1649
|
}, 1032, ["value"]))), 128))
|
|
1641
1650
|
]),
|
|
1642
1651
|
_: 1
|
|
1643
1652
|
}, 8, ["modelValue"]),
|
|
1644
|
-
|
|
1653
|
+
D(g, {
|
|
1645
1654
|
type: "primary",
|
|
1646
1655
|
onClick: e.onAssignApprover
|
|
1647
1656
|
}, {
|
|
1648
1657
|
default: v(() => n[2] || (n[2] = [
|
|
1649
|
-
|
|
1658
|
+
J("Assign for comment", -1)
|
|
1650
1659
|
])),
|
|
1651
1660
|
_: 1,
|
|
1652
1661
|
__: [2]
|
|
@@ -1654,29 +1663,29 @@ function To(t, n, a, e, o, l) {
|
|
|
1654
1663
|
]),
|
|
1655
1664
|
_: 1
|
|
1656
1665
|
})) : se("", !0),
|
|
1657
|
-
e.isShowAssignList ? (d(),
|
|
1666
|
+
e.isShowAssignList ? (d(), P(b, { key: 1 }, {
|
|
1658
1667
|
header: v(() => n[3] || (n[3] = [
|
|
1659
|
-
|
|
1668
|
+
J(" Associators ", -1)
|
|
1660
1669
|
])),
|
|
1661
1670
|
default: v(() => [
|
|
1662
|
-
(d(!0), C(j, null,
|
|
1671
|
+
(d(!0), C(j, null, $(e.associators, (f) => (d(), P(_, {
|
|
1663
1672
|
key: f.id
|
|
1664
1673
|
}, {
|
|
1665
1674
|
actions: v(() => [
|
|
1666
|
-
|
|
1675
|
+
D(g, {
|
|
1667
1676
|
type: "text",
|
|
1668
1677
|
status: "danger",
|
|
1669
1678
|
onClick: (L) => e.onDeleteAssociator(f.id)
|
|
1670
1679
|
}, {
|
|
1671
1680
|
default: v(() => n[4] || (n[4] = [
|
|
1672
|
-
|
|
1681
|
+
J(" Delete ", -1)
|
|
1673
1682
|
])),
|
|
1674
1683
|
_: 2,
|
|
1675
1684
|
__: [4]
|
|
1676
1685
|
}, 1032, ["onClick"])
|
|
1677
1686
|
]),
|
|
1678
1687
|
default: v(() => [
|
|
1679
|
-
|
|
1688
|
+
J(" " + Q(f.associator), 1)
|
|
1680
1689
|
]),
|
|
1681
1690
|
_: 2
|
|
1682
1691
|
}, 1024))), 128))
|
|
@@ -1684,34 +1693,34 @@ function To(t, n, a, e, o, l) {
|
|
|
1684
1693
|
_: 1
|
|
1685
1694
|
})) : se("", !0),
|
|
1686
1695
|
e.isShowCommentTextArea ? (d(), C("div", Co, [
|
|
1687
|
-
|
|
1688
|
-
n[6] || (n[6] =
|
|
1689
|
-
|
|
1696
|
+
A("div", So, [
|
|
1697
|
+
n[6] || (n[6] = A("div", { class: "field-label" }, "Comment", -1)),
|
|
1698
|
+
D(p, {
|
|
1690
1699
|
modelValue: e.comment,
|
|
1691
1700
|
"onUpdate:modelValue": n[1] || (n[1] = (f) => e.comment = f)
|
|
1692
1701
|
}, null, 8, ["modelValue"]),
|
|
1693
|
-
|
|
1702
|
+
D(g, {
|
|
1694
1703
|
type: "primary",
|
|
1695
1704
|
onClick: e.onAddComment
|
|
1696
1705
|
}, {
|
|
1697
1706
|
default: v(() => n[5] || (n[5] = [
|
|
1698
|
-
|
|
1707
|
+
J("Add Comment", -1)
|
|
1699
1708
|
])),
|
|
1700
1709
|
_: 1,
|
|
1701
1710
|
__: [5]
|
|
1702
1711
|
})
|
|
1703
1712
|
])
|
|
1704
1713
|
])) : se("", !0),
|
|
1705
|
-
e.commentsHistory.length ? (d(),
|
|
1714
|
+
e.commentsHistory.length ? (d(), P(b, { key: 3 }, {
|
|
1706
1715
|
header: v(() => n[7] || (n[7] = [
|
|
1707
|
-
|
|
1716
|
+
J(" Comments History ", -1)
|
|
1708
1717
|
])),
|
|
1709
1718
|
default: v(() => [
|
|
1710
|
-
(d(!0), C(j, null,
|
|
1719
|
+
(d(!0), C(j, null, $(e.commentsHistory, (f) => (d(), P(_, {
|
|
1711
1720
|
key: f.associator
|
|
1712
1721
|
}, {
|
|
1713
1722
|
default: v(() => [
|
|
1714
|
-
|
|
1723
|
+
J(Q(f.associator) + ": " + Q(f.comments) + " (" + Q(e.formatDate(f.createdAt)) + ") ", 1)
|
|
1715
1724
|
]),
|
|
1716
1725
|
_: 2
|
|
1717
1726
|
}, 1024))), 128))
|
|
@@ -1720,18 +1729,18 @@ function To(t, n, a, e, o, l) {
|
|
|
1720
1729
|
})) : se("", !0)
|
|
1721
1730
|
]),
|
|
1722
1731
|
t.$slots.content ? (d(), C("div", xo, [
|
|
1723
|
-
|
|
1732
|
+
le(t.$slots, "content", {}, void 0, !0)
|
|
1724
1733
|
])) : se("", !0)
|
|
1725
1734
|
])
|
|
1726
1735
|
]),
|
|
1727
1736
|
_: 3
|
|
1728
1737
|
}, 8, ["loading"])
|
|
1729
1738
|
]),
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
(d(!0), C(j, null,
|
|
1739
|
+
A("div", Vo, [
|
|
1740
|
+
A("div", Ao, [
|
|
1741
|
+
le(t.$slots, "action", {}, void 0, !0),
|
|
1742
|
+
A("div", Io, [
|
|
1743
|
+
(d(!0), C(j, null, $(e.reversedActions, (f) => (d(), P(e.ActionButton, {
|
|
1735
1744
|
key: f.Title,
|
|
1736
1745
|
loading: e.loading,
|
|
1737
1746
|
config: f,
|
|
@@ -1743,7 +1752,7 @@ function To(t, n, a, e, o, l) {
|
|
|
1743
1752
|
])
|
|
1744
1753
|
]);
|
|
1745
1754
|
}
|
|
1746
|
-
const Uo = /* @__PURE__ */
|
|
1755
|
+
const Uo = /* @__PURE__ */ X(mo, [["render", To], ["__scopeId", "data-v-07443410"], ["__file", "DetailView.vue"]]), Po = /* @__PURE__ */ q({
|
|
1747
1756
|
name: "ListView",
|
|
1748
1757
|
__name: "ListView",
|
|
1749
1758
|
props: {
|
|
@@ -1751,7 +1760,7 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1751
1760
|
},
|
|
1752
1761
|
setup(t, { expose: n }) {
|
|
1753
1762
|
n();
|
|
1754
|
-
const a = Ve(), e = xe(), o = Se(), l = pe(), s = t, c =
|
|
1763
|
+
const a = Ve(), e = xe(), o = Se(), l = pe(), s = t, c = m(), i = Fe({
|
|
1755
1764
|
current: 1,
|
|
1756
1765
|
total: 0,
|
|
1757
1766
|
pageSize: 10,
|
|
@@ -1761,31 +1770,31 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1761
1770
|
filters: []
|
|
1762
1771
|
});
|
|
1763
1772
|
function r() {
|
|
1764
|
-
const
|
|
1765
|
-
key:
|
|
1773
|
+
const k = Object.entries(y.value).filter(([, { value: H }]) => H && H !== "").map(([H, { value: B, operator: T }]) => ({
|
|
1774
|
+
key: H,
|
|
1766
1775
|
value: B,
|
|
1767
|
-
operator:
|
|
1776
|
+
operator: T
|
|
1768
1777
|
// 根据实际需要调整操作符
|
|
1769
1778
|
}));
|
|
1770
1779
|
return {
|
|
1771
1780
|
pageNumber: i.current,
|
|
1772
1781
|
pageSize: i.pageSize,
|
|
1773
|
-
filters: [...i.filters, ...
|
|
1782
|
+
filters: [...i.filters, ...k],
|
|
1774
1783
|
sorts: [{
|
|
1775
1784
|
key: "workflowId",
|
|
1776
1785
|
type: 1
|
|
1777
1786
|
}]
|
|
1778
1787
|
};
|
|
1779
1788
|
}
|
|
1780
|
-
const u =
|
|
1789
|
+
const u = Z(() => ({
|
|
1781
1790
|
x: b.value.length * 150 + 250
|
|
1782
1791
|
// 只设置横向滚动
|
|
1783
1792
|
// 移除 y 属性,让表格高度自适应
|
|
1784
|
-
})),
|
|
1785
|
-
const
|
|
1786
|
-
title:
|
|
1793
|
+
})), g = (k) => {
|
|
1794
|
+
const H = Object.entries(k).filter(([, B]) => B.widget?.column).map(([B, T], R) => ({
|
|
1795
|
+
title: T.widget.title,
|
|
1787
1796
|
dataIndex: B.charAt(0).toLowerCase() + B.slice(1),
|
|
1788
|
-
order:
|
|
1797
|
+
order: T.order,
|
|
1789
1798
|
ellipsis: !0,
|
|
1790
1799
|
tooltip: !0,
|
|
1791
1800
|
width: 150,
|
|
@@ -1793,8 +1802,8 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1793
1802
|
// 启用最小宽度
|
|
1794
1803
|
resizable: !0
|
|
1795
1804
|
// 启用列宽调整
|
|
1796
|
-
})).sort((B,
|
|
1797
|
-
|
|
1805
|
+
})).sort((B, T) => B.order - T.order);
|
|
1806
|
+
H.push({
|
|
1798
1807
|
title: "Actions",
|
|
1799
1808
|
slotName: "optional",
|
|
1800
1809
|
align: "center",
|
|
@@ -1802,99 +1811,99 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1802
1811
|
minWidth: 200,
|
|
1803
1812
|
fixed: "right",
|
|
1804
1813
|
resizable: !1
|
|
1805
|
-
}), b.value =
|
|
1806
|
-
},
|
|
1807
|
-
|
|
1808
|
-
const
|
|
1809
|
-
|
|
1810
|
-
},
|
|
1811
|
-
|
|
1814
|
+
}), b.value = H;
|
|
1815
|
+
}, _ = m([]), b = m([]), p = m(!0), w = m(!0), f = m(), L = async () => {
|
|
1816
|
+
w.value = !0;
|
|
1817
|
+
const k = await Ct(s.className, r());
|
|
1818
|
+
_.value = k.data, i.total = k.totalCount, w.value = !1;
|
|
1819
|
+
}, Y = m(!1);
|
|
1820
|
+
ce(async () => {
|
|
1812
1821
|
p.value = !0, c.value = await ke(3, s.className, {
|
|
1813
1822
|
svrStore: a,
|
|
1814
1823
|
bpmStore: e
|
|
1815
|
-
}),
|
|
1824
|
+
}), g(c.value.fields), M(c.value.fields), O(), V(c.value?.tabs?.[0]?.key || ""), f.value = c.value.actions, p.value = !1, Y.value = !0;
|
|
1816
1825
|
}), st(() => {
|
|
1817
|
-
|
|
1826
|
+
Y.value && L();
|
|
1818
1827
|
});
|
|
1819
|
-
const
|
|
1820
|
-
i.current =
|
|
1821
|
-
},
|
|
1822
|
-
i.pageSize =
|
|
1828
|
+
const z = (k) => {
|
|
1829
|
+
i.current = k, L();
|
|
1830
|
+
}, te = (k) => {
|
|
1831
|
+
i.pageSize = k, L();
|
|
1823
1832
|
};
|
|
1824
|
-
function
|
|
1825
|
-
switch (
|
|
1826
|
-
case
|
|
1833
|
+
function oe(k, H, B, T, R) {
|
|
1834
|
+
switch (k) {
|
|
1835
|
+
case ee.Link:
|
|
1827
1836
|
o.push({ name: B, params: { workflowId: R } });
|
|
1828
1837
|
break;
|
|
1829
1838
|
default:
|
|
1830
|
-
console.warn("Unknown action type:",
|
|
1839
|
+
console.warn("Unknown action type:", k);
|
|
1831
1840
|
}
|
|
1832
1841
|
}
|
|
1833
|
-
function
|
|
1834
|
-
switch (
|
|
1835
|
-
case
|
|
1836
|
-
Mt(
|
|
1842
|
+
function h(k, H, B) {
|
|
1843
|
+
switch (k) {
|
|
1844
|
+
case ee.Submit:
|
|
1845
|
+
Mt(H, { filters: [{ key: "approverList", value: I(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
|
|
1837
1846
|
break;
|
|
1838
|
-
case
|
|
1847
|
+
case ee.Link:
|
|
1839
1848
|
o.push({ name: B });
|
|
1840
1849
|
break;
|
|
1841
1850
|
default:
|
|
1842
|
-
console.warn("Unknown action type:",
|
|
1851
|
+
console.warn("Unknown action type:", k);
|
|
1843
1852
|
}
|
|
1844
1853
|
}
|
|
1845
|
-
function
|
|
1854
|
+
function I() {
|
|
1846
1855
|
return a()?.userInfo?.email_address ?? "";
|
|
1847
1856
|
}
|
|
1848
|
-
function
|
|
1849
|
-
return typeof
|
|
1857
|
+
function x(k, H) {
|
|
1858
|
+
return typeof k != "string" || k.indexOf("{currentUserEmail}") === -1 ? k : k.replace(/{currentUserEmail}/g, H);
|
|
1850
1859
|
}
|
|
1851
|
-
function
|
|
1852
|
-
const
|
|
1853
|
-
i.filters =
|
|
1860
|
+
function V(k) {
|
|
1861
|
+
const H = c.value?.tabs?.find((B) => B.key === k)?.filters;
|
|
1862
|
+
i.filters = H?.map((B) => ({
|
|
1854
1863
|
...B,
|
|
1855
|
-
value:
|
|
1864
|
+
value: x(B.value, I())
|
|
1856
1865
|
})) || [], i.current = 1, L();
|
|
1857
1866
|
}
|
|
1858
|
-
const
|
|
1859
|
-
function M(
|
|
1860
|
-
if (!
|
|
1861
|
-
|
|
1867
|
+
const y = m({}), N = m([]);
|
|
1868
|
+
function M(k) {
|
|
1869
|
+
if (!k) return [];
|
|
1870
|
+
N.value = Object.entries(k).filter(([, H]) => H.isFiltered).map(([H, B]) => ({ fieldKey: H, fieldConfig: B }));
|
|
1862
1871
|
}
|
|
1863
|
-
const
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
}),
|
|
1868
|
-
},
|
|
1872
|
+
const O = () => {
|
|
1873
|
+
const k = {};
|
|
1874
|
+
N.value.forEach(({ fieldKey: H, fieldConfig: B }) => {
|
|
1875
|
+
k[H] = {}, k[H].value = B.modelValue, k[H].operator = B.operator;
|
|
1876
|
+
}), y.value = k;
|
|
1877
|
+
}, G = () => {
|
|
1869
1878
|
i.current = 1, L();
|
|
1870
|
-
},
|
|
1871
|
-
c.value &&
|
|
1879
|
+
}, ae = () => {
|
|
1880
|
+
c.value && O(), G();
|
|
1872
1881
|
};
|
|
1873
|
-
function
|
|
1874
|
-
return !(
|
|
1882
|
+
function de(k, H) {
|
|
1883
|
+
return !(k.location !== "InTable" || k.title === "Update" && (H.status === 100 || H.status === -1));
|
|
1875
1884
|
}
|
|
1876
|
-
const ue = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns:
|
|
1885
|
+
const ue = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: b, loadingPage: p, loadingTable: w, actions: f, loadData: L, mounted: Y, pageChangeHandler: z, pageSizeChangeHandler: te, clickHandler: oe, createHandler: h, getApproverEmail: I, replaceEmail: x, tabHandler: V, searchForm: y, searchableFields: N, mapSearchableFields: M, initSearchForm: O, handleSearch: G, handleReset: ae, judgeHiddenActions: de, ActionButton: Ce, DataWidgets: Be, TopBar: Ae };
|
|
1877
1886
|
return Object.defineProperty(ue, "__isScriptSetup", { enumerable: !1, value: !0 }), ue;
|
|
1878
1887
|
}
|
|
1879
1888
|
}), Do = { class: "list-container" }, No = { class: "query-title" };
|
|
1880
1889
|
function Ho(t, n, a, e, o, l) {
|
|
1881
|
-
const s = S("a-space"), c = S("a-col"), i = S("a-button"), r = S("a-row"), u = S("a-card"),
|
|
1890
|
+
const s = S("a-space"), c = S("a-col"), i = S("a-button"), r = S("a-row"), u = S("a-card"), g = S("a-tab-pane"), _ = S("a-tabs"), b = S("a-table");
|
|
1882
1891
|
return d(), C("div", Do, [
|
|
1883
|
-
|
|
1892
|
+
D(e.TopBar, {
|
|
1884
1893
|
title: e.pageData?.banner.title ?? "",
|
|
1885
1894
|
subTitle: e.pageData?.banner.subTitle ?? "",
|
|
1886
1895
|
email: e.getApproverEmail()
|
|
1887
1896
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1888
|
-
|
|
1897
|
+
D(u, null, {
|
|
1889
1898
|
default: v(() => [
|
|
1890
|
-
|
|
1891
|
-
n[0] || (n[0] =
|
|
1892
|
-
|
|
1899
|
+
A("div", No, [
|
|
1900
|
+
n[0] || (n[0] = A("h3", null, "Search Conditions", -1)),
|
|
1901
|
+
D(s, { size: "medium" }, {
|
|
1893
1902
|
default: v(() => [
|
|
1894
|
-
(d(!0), C(j, null,
|
|
1903
|
+
(d(!0), C(j, null, $(e.actions, (p) => (d(), C(j, {
|
|
1895
1904
|
key: p.title
|
|
1896
1905
|
}, [
|
|
1897
|
-
p.location === "InOperation" ? (d(),
|
|
1906
|
+
p.location === "InOperation" ? (d(), P(e.ActionButton, {
|
|
1898
1907
|
key: 0,
|
|
1899
1908
|
config: p,
|
|
1900
1909
|
onClick: e.createHandler
|
|
@@ -1904,48 +1913,48 @@ function Ho(t, n, a, e, o, l) {
|
|
|
1904
1913
|
_: 1
|
|
1905
1914
|
})
|
|
1906
1915
|
]),
|
|
1907
|
-
|
|
1916
|
+
D(r, { gutter: [24, 20] }, {
|
|
1908
1917
|
default: v(() => [
|
|
1909
|
-
(d(!0), C(j, null,
|
|
1918
|
+
(d(!0), C(j, null, $(e.searchableFields, (p) => (d(), P(c, {
|
|
1910
1919
|
key: p.fieldKey,
|
|
1911
1920
|
span: 6,
|
|
1912
1921
|
class: "search-col"
|
|
1913
1922
|
}, {
|
|
1914
1923
|
default: v(() => [
|
|
1915
|
-
|
|
1924
|
+
D(e.DataWidgets, {
|
|
1916
1925
|
name: p.fieldKey,
|
|
1917
1926
|
config: p.fieldConfig,
|
|
1918
1927
|
modelValue: e.searchForm[p.fieldKey].value,
|
|
1919
|
-
"onUpdate:modelValue": (
|
|
1928
|
+
"onUpdate:modelValue": (w) => e.searchForm[p.fieldKey].value = w,
|
|
1920
1929
|
class: "form-field"
|
|
1921
1930
|
}, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
|
|
1922
1931
|
]),
|
|
1923
1932
|
_: 2
|
|
1924
1933
|
}, 1024))), 128)),
|
|
1925
|
-
|
|
1934
|
+
D(c, {
|
|
1926
1935
|
span: 6,
|
|
1927
1936
|
class: "search-col form-buttons"
|
|
1928
1937
|
}, {
|
|
1929
1938
|
default: v(() => [
|
|
1930
|
-
|
|
1939
|
+
D(s, { size: "medium" }, {
|
|
1931
1940
|
default: v(() => [
|
|
1932
|
-
|
|
1941
|
+
D(i, {
|
|
1933
1942
|
type: "primary",
|
|
1934
1943
|
size: "medium",
|
|
1935
1944
|
onClick: e.handleSearch
|
|
1936
1945
|
}, {
|
|
1937
1946
|
default: v(() => n[1] || (n[1] = [
|
|
1938
|
-
|
|
1947
|
+
J(" Search ", -1)
|
|
1939
1948
|
])),
|
|
1940
1949
|
_: 1,
|
|
1941
1950
|
__: [1]
|
|
1942
1951
|
}),
|
|
1943
|
-
|
|
1952
|
+
D(i, {
|
|
1944
1953
|
size: "medium",
|
|
1945
1954
|
onClick: e.handleReset
|
|
1946
1955
|
}, {
|
|
1947
1956
|
default: v(() => n[2] || (n[2] = [
|
|
1948
|
-
|
|
1957
|
+
J(" Reset ", -1)
|
|
1949
1958
|
])),
|
|
1950
1959
|
_: 1,
|
|
1951
1960
|
__: [2]
|
|
@@ -1962,19 +1971,19 @@ function Ho(t, n, a, e, o, l) {
|
|
|
1962
1971
|
]),
|
|
1963
1972
|
_: 1
|
|
1964
1973
|
}),
|
|
1965
|
-
|
|
1974
|
+
D(_, {
|
|
1966
1975
|
size: "large",
|
|
1967
1976
|
onTabClick: e.tabHandler
|
|
1968
1977
|
}, {
|
|
1969
1978
|
default: v(() => [
|
|
1970
|
-
(d(!0), C(j, null,
|
|
1979
|
+
(d(!0), C(j, null, $(e.pageData?.tabs, (p) => (d(), P(g, {
|
|
1971
1980
|
key: p.key,
|
|
1972
1981
|
title: p.title
|
|
1973
1982
|
}, null, 8, ["title"]))), 128))
|
|
1974
1983
|
]),
|
|
1975
1984
|
_: 1
|
|
1976
1985
|
}),
|
|
1977
|
-
|
|
1986
|
+
D(b, {
|
|
1978
1987
|
columns: e._columns,
|
|
1979
1988
|
data: e._data,
|
|
1980
1989
|
stripe: "",
|
|
@@ -1994,14 +2003,14 @@ function Ho(t, n, a, e, o, l) {
|
|
|
1994
2003
|
onPageSizeChange: e.pageSizeChangeHandler
|
|
1995
2004
|
}, {
|
|
1996
2005
|
optional: v(({ record: p }) => [
|
|
1997
|
-
|
|
2006
|
+
D(s, { size: "small" }, {
|
|
1998
2007
|
default: v(() => [
|
|
1999
|
-
(d(!0), C(j, null,
|
|
2000
|
-
key:
|
|
2008
|
+
(d(!0), C(j, null, $(e.actions, (w) => (d(), C(j, {
|
|
2009
|
+
key: w.title
|
|
2001
2010
|
}, [
|
|
2002
|
-
e.judgeHiddenActions(
|
|
2011
|
+
e.judgeHiddenActions(w, p) ? (d(), P(e.ActionButton, {
|
|
2003
2012
|
key: 0,
|
|
2004
|
-
config:
|
|
2013
|
+
config: w,
|
|
2005
2014
|
size: "small",
|
|
2006
2015
|
onClick: (...f) => e.clickHandler(...f, p.workflowId)
|
|
2007
2016
|
}, null, 8, ["config", "onClick"])) : se("", !0)
|
|
@@ -2014,9 +2023,9 @@ function Ho(t, n, a, e, o, l) {
|
|
|
2014
2023
|
}, 8, ["columns", "data", "pagination", "loading", "scroll"])
|
|
2015
2024
|
]);
|
|
2016
2025
|
}
|
|
2017
|
-
const
|
|
2026
|
+
const Fo = /* @__PURE__ */ X(Po, [["render", Ho], ["__scopeId", "data-v-a82f2228"], ["__file", "ListView.vue"]]), Oo = {
|
|
2018
2027
|
install(t, n = {}) {
|
|
2019
|
-
n.config && gt(n.config), n.router && t.provide(Qe, n.router), n.pinia && t.provide(kn, n.pinia), n.useBpmStore && t.provide(et, n.useBpmStore), n.useSvrStore && t.provide(tt, n.useSvrStore), n.triggers && t.provide(Ze, n.triggers), n.customComps && t.provide(nt, n.customComps), t.component("CreateView", En), t.component("UpdateView", eo), t.component("DetailView", Uo), t.component("ListView",
|
|
2028
|
+
n.config && gt(n.config), n.router && t.provide(Qe, n.router), n.pinia && t.provide(kn, n.pinia), n.useBpmStore && t.provide(et, n.useBpmStore), n.useSvrStore && t.provide(tt, n.useSvrStore), n.triggers && t.provide(Ze, n.triggers), n.customComps && t.provide(nt, n.customComps), t.component("CreateView", En), t.component("UpdateView", eo), t.component("DetailView", Uo), t.component("ListView", Fo);
|
|
2020
2029
|
}
|
|
2021
2030
|
};
|
|
2022
2031
|
export {
|