@chase-shao/vue-component-lib 1.2.98 → 1.2.100
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 +439 -430
- 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,4 +1,4 @@
|
|
|
1
|
-
import { ref as m, getCurrentInstance as
|
|
1
|
+
import { ref as m, getCurrentInstance as ge, defineComponent as z, mergeModels as ie, useModel as we, resolveComponent as x, createBlock as B, openBlock as d, onMounted as fe, computed as E, withCtx as S, createElementBlock as _, Fragment as $, renderList as j, createVNode as N, nextTick as ut, createTextVNode as ae, inject as _e, normalizeStyle as Qe, normalizeClass as Je, createElementVNode as h, createCommentVNode as re, toDisplayString as q, useTemplateRef as Oe, resolveDynamicComponent as $e, renderSlot as ue, reactive as ft, onActivated as pt } from "vue";
|
|
2
2
|
import mt from "axios";
|
|
3
3
|
import { defineStore as gt } from "pinia";
|
|
4
4
|
import { Modal as _t } from "@arco-design/web-vue";
|
|
@@ -55,7 +55,7 @@ function kt(t) {
|
|
|
55
55
|
function je() {
|
|
56
56
|
return Re;
|
|
57
57
|
}
|
|
58
|
-
const Ct =
|
|
58
|
+
const Ct = ge();
|
|
59
59
|
function Xe() {
|
|
60
60
|
const t = je();
|
|
61
61
|
return {
|
|
@@ -100,40 +100,40 @@ const et = async () => {
|
|
|
100
100
|
}, W = async () => {
|
|
101
101
|
const t = await et(), n = Ze();
|
|
102
102
|
return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
|
|
103
|
-
},
|
|
103
|
+
}, He = {
|
|
104
104
|
CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
105
105
|
CurrentUserPositionCode: (t) => t.bpmStore()?.positionCode ?? 888,
|
|
106
106
|
CurrentDatetime: () => (/* @__PURE__ */ new Date()).toISOString(),
|
|
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
|
+
}, G = [];
|
|
111
111
|
for (let t = 0; t < 256; ++t)
|
|
112
|
-
|
|
112
|
+
G.push((t + 256).toString(16).slice(1));
|
|
113
113
|
function xt(t, n = 0) {
|
|
114
|
-
return (
|
|
114
|
+
return (G[t[n + 0]] + G[t[n + 1]] + G[t[n + 2]] + G[t[n + 3]] + "-" + G[t[n + 4]] + G[t[n + 5]] + "-" + G[t[n + 6]] + G[t[n + 7]] + "-" + G[t[n + 8]] + G[t[n + 9]] + "-" + G[t[n + 10]] + G[t[n + 11]] + G[t[n + 12]] + G[t[n + 13]] + G[t[n + 14]] + G[t[n + 15]]).toLowerCase();
|
|
115
115
|
}
|
|
116
|
-
let
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
if (!
|
|
116
|
+
let Be;
|
|
117
|
+
const Vt = new Uint8Array(16);
|
|
118
|
+
function At() {
|
|
119
|
+
if (!Be) {
|
|
120
120
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
121
121
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
122
|
-
|
|
122
|
+
Be = crypto.getRandomValues.bind(crypto);
|
|
123
123
|
}
|
|
124
|
-
return
|
|
124
|
+
return Be(Vt);
|
|
125
125
|
}
|
|
126
126
|
const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = { randomUUID: Tt };
|
|
127
127
|
function tt(t, n, a) {
|
|
128
128
|
if (Ke.randomUUID && !t)
|
|
129
129
|
return Ke.randomUUID();
|
|
130
130
|
t = t || {};
|
|
131
|
-
const e = t.random ?? t.rng?.() ??
|
|
131
|
+
const e = t.random ?? t.rng?.() ?? At();
|
|
132
132
|
if (e.length < 16)
|
|
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, xt(e);
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var Q = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(Q || {}), me = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(me || {});
|
|
137
137
|
function It(t, n, a) {
|
|
138
138
|
const e = {
|
|
139
139
|
pageType: "",
|
|
@@ -174,7 +174,7 @@ function It(t, n, a) {
|
|
|
174
174
|
redirectUrl: o.redirectUrl,
|
|
175
175
|
redirectType: o.redirectType,
|
|
176
176
|
title: o.title,
|
|
177
|
-
widget: o.widget === "Link" ?
|
|
177
|
+
widget: o.widget === "Link" ? Q.Link : o.widget === "Submit" ? Q.Submit : Q.Button,
|
|
178
178
|
location: o.location,
|
|
179
179
|
attributeType: o.attributeType,
|
|
180
180
|
readonly: o.readonly,
|
|
@@ -203,14 +203,14 @@ function It(t, n, a) {
|
|
|
203
203
|
s.modelValue = i;
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
206
|
-
o === "onBehalf" && n === 0 && (s.modelValue =
|
|
206
|
+
o === "onBehalf" && n === 0 && (s.modelValue = He.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
|
|
207
207
|
r.order || r.Order ? s.order = r.order ?? r.Order : r.attributeType === "UIControl" ? (r.outputText = r.outputText ? JSON.parse(r.outputText) : [], s.widget = {
|
|
208
208
|
...r,
|
|
209
209
|
column: !0
|
|
210
210
|
}) : r.attributeType === "UIValidationControl" && n !== 3 ? s.widget?.widget !== "CheckBox" && s.validations.push(r) : r.attributeType === "UIListed" ? s.widget = {
|
|
211
211
|
...r,
|
|
212
212
|
column: !0
|
|
213
|
-
} : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent =
|
|
213
|
+
} : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent = He[r.dependentType] ? He[r.dependentType](a) : "" : r.eventType === "Change" && s.triggers?.push({
|
|
214
214
|
event: "change",
|
|
215
215
|
handlerName: r.eventName
|
|
216
216
|
});
|
|
@@ -255,13 +255,13 @@ async function Dt(t, n, a, e) {
|
|
|
255
255
|
function Me(t, n) {
|
|
256
256
|
return t.replace(/{WorkflowId}/g, encodeURIComponent(n));
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Ht(t, n) {
|
|
259
259
|
return t.replace(/{ApproverEmail}/g, encodeURIComponent(n));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Bt(t, n) {
|
|
262
262
|
return t.replace(/{WorkFlowReason}/g, encodeURIComponent(n));
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Ft(t, n) {
|
|
265
265
|
return t.replace(/{Status}/g, n);
|
|
266
266
|
}
|
|
267
267
|
function Lt(t, n) {
|
|
@@ -273,7 +273,7 @@ function Rt(t, n) {
|
|
|
273
273
|
async function Ot(t, n, a, e, o, l, s, c) {
|
|
274
274
|
const i = await W();
|
|
275
275
|
let r = Me(o, n);
|
|
276
|
-
return r =
|
|
276
|
+
return r = Ht(r, a), r = Bt(r, e), r = Ft(r, l), r = Lt(r, s), r = Rt(r, t), (await i.put(r, c))?.data;
|
|
277
277
|
}
|
|
278
278
|
async function $t(t, n) {
|
|
279
279
|
const o = (await (await W()).get(t, { params: { value: n } }))?.data;
|
|
@@ -331,7 +331,7 @@ async function Jt(t, n = null) {
|
|
|
331
331
|
});
|
|
332
332
|
wt(e?.data, "WorkflowData.xlsx");
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const ve = (t, n) => {
|
|
335
335
|
let a = "";
|
|
336
336
|
return { res: t.every((o) => {
|
|
337
337
|
const l = Xt(o, n);
|
|
@@ -345,7 +345,7 @@ const _e = (t, n) => {
|
|
|
345
345
|
Required: (t, n) => !!n
|
|
346
346
|
}, en = /* @__PURE__ */ z({
|
|
347
347
|
__name: "InputText",
|
|
348
|
-
props: /* @__PURE__ */
|
|
348
|
+
props: /* @__PURE__ */ ie({
|
|
349
349
|
fieldKey: {},
|
|
350
350
|
modelValue: {},
|
|
351
351
|
config: {},
|
|
@@ -356,9 +356,9 @@ const _e = (t, n) => {
|
|
|
356
356
|
modelValue: {},
|
|
357
357
|
modelModifiers: {}
|
|
358
358
|
}),
|
|
359
|
-
emits: /* @__PURE__ */
|
|
359
|
+
emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
360
360
|
setup(t, { expose: n, emit: a }) {
|
|
361
|
-
const e = t, o = a, l = we(t, "modelValue"), s = (u) =>
|
|
361
|
+
const e = t, o = a, l = we(t, "modelValue"), s = (u) => ve(e.validations, u), c = (u) => {
|
|
362
362
|
o("input", u);
|
|
363
363
|
}, i = (u) => {
|
|
364
364
|
const g = s(u);
|
|
@@ -375,15 +375,15 @@ const _e = (t, n) => {
|
|
|
375
375
|
const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
|
|
376
376
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
377
377
|
}
|
|
378
|
-
}),
|
|
378
|
+
}), Y = (t, n) => {
|
|
379
379
|
const a = t.__vccOpts || t;
|
|
380
380
|
for (const [e, o] of n)
|
|
381
381
|
a[e] = o;
|
|
382
382
|
return a;
|
|
383
383
|
};
|
|
384
384
|
function tn(t, n, a, e, o, l) {
|
|
385
|
-
const s =
|
|
386
|
-
return d(),
|
|
385
|
+
const s = x("AInput");
|
|
386
|
+
return d(), B(s, {
|
|
387
387
|
modelValue: e.model,
|
|
388
388
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
|
|
389
389
|
"allow-clear": "",
|
|
@@ -392,9 +392,9 @@ function tn(t, n, a, e, o, l) {
|
|
|
392
392
|
onChange: e.changeHandler
|
|
393
393
|
}, null, 8, ["modelValue", "disabled"]);
|
|
394
394
|
}
|
|
395
|
-
const Ge = /* @__PURE__ */
|
|
395
|
+
const Ge = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "InputText.vue"]]), nn = /* @__PURE__ */ z({
|
|
396
396
|
__name: "InputNumber",
|
|
397
|
-
props: /* @__PURE__ */
|
|
397
|
+
props: /* @__PURE__ */ ie({
|
|
398
398
|
fieldKey: {},
|
|
399
399
|
modelValue: {},
|
|
400
400
|
config: {},
|
|
@@ -405,19 +405,19 @@ const Ge = /* @__PURE__ */ Q(en, [["render", tn], ["__file", "InputText.vue"]]),
|
|
|
405
405
|
modelValue: {},
|
|
406
406
|
modelModifiers: {}
|
|
407
407
|
}),
|
|
408
|
-
emits: /* @__PURE__ */
|
|
408
|
+
emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
409
409
|
setup(t, { expose: n, emit: a }) {
|
|
410
410
|
const e = t, o = a, l = we(t, "modelValue"), s = m(100), c = m(1);
|
|
411
|
-
|
|
411
|
+
fe(() => {
|
|
412
412
|
e.validations && e.validations.forEach((v) => {
|
|
413
413
|
v.ruleName === "Max" && (s.value = v.ruleParameter), v.ruleName === "Min" && (c.value = v.ruleParameter);
|
|
414
414
|
});
|
|
415
415
|
});
|
|
416
|
-
const i = (v) =>
|
|
416
|
+
const i = (v) => ve(e.validations, v), r = (v) => {
|
|
417
417
|
o("input", v);
|
|
418
418
|
}, u = (v) => {
|
|
419
|
-
const
|
|
420
|
-
o("error",
|
|
419
|
+
const y = i(v);
|
|
420
|
+
o("error", y.res ? "" : y.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
|
|
421
421
|
f.event === "change" && o(f.event, f.handlerName, v);
|
|
422
422
|
});
|
|
423
423
|
};
|
|
@@ -432,8 +432,8 @@ const Ge = /* @__PURE__ */ Q(en, [["render", tn], ["__file", "InputText.vue"]]),
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
function on(t, n, a, e, o, l) {
|
|
435
|
-
const s =
|
|
436
|
-
return d(),
|
|
435
|
+
const s = x("AInputNumber");
|
|
436
|
+
return d(), B(s, {
|
|
437
437
|
modelValue: e.model,
|
|
438
438
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
|
|
439
439
|
clearable: "",
|
|
@@ -443,9 +443,9 @@ function on(t, n, a, e, o, l) {
|
|
|
443
443
|
onChange: e.changeHandler
|
|
444
444
|
}, null, 8, ["modelValue", "disabled", "min"]);
|
|
445
445
|
}
|
|
446
|
-
const an = /* @__PURE__ */
|
|
446
|
+
const an = /* @__PURE__ */ Y(nn, [["render", on], ["__file", "InputNumber.vue"]]), rn = /* @__PURE__ */ z({
|
|
447
447
|
__name: "SelectList",
|
|
448
|
-
props: /* @__PURE__ */
|
|
448
|
+
props: /* @__PURE__ */ ie({
|
|
449
449
|
fieldKey: {},
|
|
450
450
|
modelValue: {},
|
|
451
451
|
config: {},
|
|
@@ -456,32 +456,36 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "InputNumber.vue"]]
|
|
|
456
456
|
modelValue: {},
|
|
457
457
|
modelModifiers: {}
|
|
458
458
|
}),
|
|
459
|
-
emits: /* @__PURE__ */
|
|
459
|
+
emits: /* @__PURE__ */ ie(["update:modelValue", "change"], ["update:modelValue"]),
|
|
460
460
|
setup(t, { expose: n, emit: a }) {
|
|
461
|
-
const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = we(t, "modelValue"), i = (
|
|
462
|
-
const
|
|
461
|
+
const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = we(t, "modelValue"), i = (y) => ve(e.validations, y), r = E(() => {
|
|
462
|
+
const y = {};
|
|
463
463
|
return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
|
|
464
|
-
|
|
464
|
+
y[f.event] = (p) => {
|
|
465
465
|
o(f.event, f.handlerName, p);
|
|
466
|
-
const
|
|
467
|
-
o("error",
|
|
466
|
+
const C = i(p);
|
|
467
|
+
o("error", C.res ? "" : C.errorMessages);
|
|
468
468
|
};
|
|
469
|
-
}),
|
|
469
|
+
}), y;
|
|
470
470
|
}), u = async () => {
|
|
471
|
-
|
|
471
|
+
if (e.config.dataSourceProvider) {
|
|
472
|
+
s.value = await $t(e.config.dataSourceProvider);
|
|
473
|
+
const y = e.modelValue;
|
|
474
|
+
y != null && y !== "" && (s.value.some((p) => p.value === y) || o("update:modelValue", ""));
|
|
475
|
+
}
|
|
472
476
|
};
|
|
473
|
-
|
|
474
|
-
const g = (
|
|
475
|
-
o("update:modelValue",
|
|
476
|
-
const f = i(
|
|
477
|
+
fe(u);
|
|
478
|
+
const g = (y) => {
|
|
479
|
+
o("update:modelValue", y);
|
|
480
|
+
const f = i(y);
|
|
477
481
|
o("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
|
|
478
|
-
p.event === "change" && o(p.event, p.handlerName,
|
|
482
|
+
p.event === "change" && o(p.event, p.handlerName, y);
|
|
479
483
|
});
|
|
480
484
|
};
|
|
481
485
|
n({
|
|
482
486
|
validate() {
|
|
483
|
-
const
|
|
484
|
-
return o("error",
|
|
487
|
+
const y = i(e.modelValue);
|
|
488
|
+
return o("error", y.res ? "" : y.errorMessages), y.res;
|
|
485
489
|
}
|
|
486
490
|
});
|
|
487
491
|
const v = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: g };
|
|
@@ -489,8 +493,8 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "InputNumber.vue"]]
|
|
|
489
493
|
}
|
|
490
494
|
});
|
|
491
495
|
function sn(t, n, a, e, o, l) {
|
|
492
|
-
const s =
|
|
493
|
-
return d(),
|
|
496
|
+
const s = x("AOption"), c = x("ASelect");
|
|
497
|
+
return d(), B(c, {
|
|
494
498
|
"allow-clear": "",
|
|
495
499
|
modelValue: e.model,
|
|
496
500
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
|
|
@@ -500,8 +504,8 @@ function sn(t, n, a, e, o, l) {
|
|
|
500
504
|
disabled: e.props.config.readonly,
|
|
501
505
|
onChange: e.changeHandler
|
|
502
506
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
(d(!0), _($, null, j(e._options, (i) => (d(),
|
|
507
|
+
default: S(() => [
|
|
508
|
+
(d(!0), _($, null, j(e._options, (i) => (d(), B(s, {
|
|
505
509
|
key: i.value,
|
|
506
510
|
value: i.value,
|
|
507
511
|
label: i.label
|
|
@@ -510,7 +514,7 @@ function sn(t, n, a, e, o, l) {
|
|
|
510
514
|
_: 1
|
|
511
515
|
}, 8, ["modelValue", "loading", "disabled"]);
|
|
512
516
|
}
|
|
513
|
-
const qe = /* @__PURE__ */
|
|
517
|
+
const qe = /* @__PURE__ */ Y(rn, [["render", sn], ["__file", "SelectList.vue"]]), ln = /* @__PURE__ */ z({
|
|
514
518
|
__name: "Cascader",
|
|
515
519
|
props: {
|
|
516
520
|
modelValue: {},
|
|
@@ -521,7 +525,7 @@ const qe = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "SelectList.vue"]])
|
|
|
521
525
|
const e = t, o = a, l = m(e.config.options ?? []), s = (r) => {
|
|
522
526
|
o("update:modelValue", r), o("change", r);
|
|
523
527
|
};
|
|
524
|
-
|
|
528
|
+
fe(async () => {
|
|
525
529
|
if (e.config) {
|
|
526
530
|
const r = e.config.dataSourceProvider;
|
|
527
531
|
if (r) {
|
|
@@ -541,12 +545,12 @@ const qe = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "SelectList.vue"]])
|
|
|
541
545
|
}
|
|
542
546
|
});
|
|
543
547
|
function cn(t, n, a, e, o, l) {
|
|
544
|
-
const s =
|
|
545
|
-
return d(),
|
|
548
|
+
const s = x("ACascader"), c = x("ASpace");
|
|
549
|
+
return d(), B(c, {
|
|
546
550
|
direction: "vertical",
|
|
547
551
|
size: "large"
|
|
548
552
|
}, {
|
|
549
|
-
default:
|
|
553
|
+
default: S(() => [
|
|
550
554
|
N(s, {
|
|
551
555
|
"field-names": e.fieldNames,
|
|
552
556
|
"model-value": a.modelValue,
|
|
@@ -559,7 +563,7 @@ function cn(t, n, a, e, o, l) {
|
|
|
559
563
|
_: 1
|
|
560
564
|
});
|
|
561
565
|
}
|
|
562
|
-
const dn = /* @__PURE__ */
|
|
566
|
+
const dn = /* @__PURE__ */ Y(ln, [["render", cn], ["__file", "Cascader.vue"]]), un = /* @__PURE__ */ z({
|
|
563
567
|
__name: "FileUpload",
|
|
564
568
|
props: {
|
|
565
569
|
className: {},
|
|
@@ -573,67 +577,67 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "Cascader.vue"]]),
|
|
|
573
577
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
574
578
|
setup(t, { expose: n, emit: a }) {
|
|
575
579
|
const e = t, o = a, l = m({});
|
|
576
|
-
|
|
577
|
-
const
|
|
580
|
+
fe(async () => {
|
|
581
|
+
const V = await et();
|
|
578
582
|
l.value = {
|
|
579
|
-
Authorization: `Bearer ${
|
|
583
|
+
Authorization: `Bearer ${V}`
|
|
580
584
|
};
|
|
581
585
|
});
|
|
582
|
-
const s = (
|
|
583
|
-
function g(
|
|
584
|
-
return
|
|
586
|
+
const s = (V) => ve(e.validations, V), c = je(), i = c.apiBase, r = m(null), u = m("");
|
|
587
|
+
function g(V, w, k) {
|
|
588
|
+
return V.replace(/{WorkflowId}/g, w).replace(/{ClassName}/g, k);
|
|
585
589
|
}
|
|
586
590
|
const v = E(() => {
|
|
587
591
|
if (e.config.uploadURL) {
|
|
588
|
-
const
|
|
589
|
-
return g(
|
|
592
|
+
const V = i + e.config.uploadURL;
|
|
593
|
+
return g(V, u.value, e.className);
|
|
590
594
|
}
|
|
591
595
|
return "";
|
|
592
|
-
}),
|
|
593
|
-
|
|
596
|
+
}), y = (V) => {
|
|
597
|
+
V.stopPropagation(), r.value.submit();
|
|
594
598
|
};
|
|
595
|
-
function f(
|
|
596
|
-
const { file:
|
|
597
|
-
return new Promise((
|
|
599
|
+
function f(V) {
|
|
600
|
+
const { file: w, name: k } = V, T = k ?? w.name;
|
|
601
|
+
return new Promise((A, U) => {
|
|
598
602
|
_t.confirm({
|
|
599
603
|
title: "Confirm Delete",
|
|
600
604
|
content: `Are you sure you want to delete ${T}?`,
|
|
601
605
|
async onOk() {
|
|
602
|
-
if (
|
|
603
|
-
return await e.config.removeFile(
|
|
604
|
-
|
|
606
|
+
if (V.status !== "init" && e.config.removeFile)
|
|
607
|
+
return await e.config.removeFile(V.uid), A(!0);
|
|
608
|
+
A(!0);
|
|
605
609
|
},
|
|
606
610
|
onCancel: () => U("cancel")
|
|
607
611
|
});
|
|
608
612
|
});
|
|
609
613
|
}
|
|
610
|
-
const p = m(null),
|
|
611
|
-
p.value && (p.value(
|
|
612
|
-
}, ee = (
|
|
613
|
-
|
|
614
|
-
}, M = m([]), Z = (
|
|
615
|
-
M.value =
|
|
614
|
+
const p = m(null), C = m(null), J = (V) => {
|
|
615
|
+
p.value && (p.value(V), p.value = null, C.value = null);
|
|
616
|
+
}, ee = (V) => {
|
|
617
|
+
C.value && (C.value(V), p.value = null, C.value = null);
|
|
618
|
+
}, M = m([]), Z = (V) => {
|
|
619
|
+
M.value = V.filter((w) => w.status === "init");
|
|
616
620
|
};
|
|
617
621
|
n({
|
|
618
|
-
submit(
|
|
619
|
-
return new Promise((
|
|
620
|
-
r.value ? (e.config.uploadURL && (u.value =
|
|
622
|
+
submit(V) {
|
|
623
|
+
return new Promise((w, k) => {
|
|
624
|
+
r.value ? (e.config.uploadURL && (u.value = V), p.value = w, C.value = k, M.value.length ? ut(() => {
|
|
621
625
|
r.value?.submit();
|
|
622
|
-
}) :
|
|
626
|
+
}) : w(V)) : w(V);
|
|
623
627
|
});
|
|
624
628
|
},
|
|
625
629
|
validate() {
|
|
626
|
-
const
|
|
627
|
-
return o("error",
|
|
630
|
+
const V = e.config.files ?? [], w = [...M.value, ...V].length > 0 ? "hasFile" : "", k = s(w);
|
|
631
|
+
return o("error", k.res ? "" : k.errorMessages), k.res;
|
|
628
632
|
}
|
|
629
633
|
});
|
|
630
|
-
const
|
|
631
|
-
return Object.defineProperty(
|
|
634
|
+
const se = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: v, submit: y, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: J, handleUploadError: ee, readyFiles: M, onChange: Z };
|
|
635
|
+
return Object.defineProperty(se, "__isScriptSetup", { enumerable: !1, value: !0 }), se;
|
|
632
636
|
}
|
|
633
637
|
});
|
|
634
638
|
function fn(t, n, a, e, o, l) {
|
|
635
|
-
const s =
|
|
636
|
-
return d(),
|
|
639
|
+
const s = x("a-button"), c = x("a-upload");
|
|
640
|
+
return d(), B(c, {
|
|
637
641
|
ref: "uploadRef",
|
|
638
642
|
"default-file-list": e.props.config.files,
|
|
639
643
|
action: e.action,
|
|
@@ -646,11 +650,11 @@ function fn(t, n, a, e, o, l) {
|
|
|
646
650
|
onSuccess: e.handleUploadSuccess,
|
|
647
651
|
onError: e.handleUploadError
|
|
648
652
|
}, {
|
|
649
|
-
"start-icon":
|
|
650
|
-
"upload-button":
|
|
653
|
+
"start-icon": S(() => n[0] || (n[0] = [])),
|
|
654
|
+
"upload-button": S(() => [
|
|
651
655
|
N(s, { type: "primary" }, {
|
|
652
|
-
default:
|
|
653
|
-
|
|
656
|
+
default: S(() => n[1] || (n[1] = [
|
|
657
|
+
ae("Select File", -1)
|
|
654
658
|
])),
|
|
655
659
|
_: 1,
|
|
656
660
|
__: [1]
|
|
@@ -659,7 +663,7 @@ function fn(t, n, a, e, o, l) {
|
|
|
659
663
|
_: 1
|
|
660
664
|
}, 8, ["default-file-list", "action", "limit", "headers"]);
|
|
661
665
|
}
|
|
662
|
-
const pn = /* @__PURE__ */
|
|
666
|
+
const pn = /* @__PURE__ */ Y(un, [["render", fn], ["__file", "FileUpload.vue"]]), mn = /* @__PURE__ */ z({
|
|
663
667
|
__name: "TextArea",
|
|
664
668
|
props: {
|
|
665
669
|
fieldKey: {},
|
|
@@ -671,7 +675,7 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "FileUpload.vue"]])
|
|
|
671
675
|
},
|
|
672
676
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
673
677
|
setup(t, { expose: n, emit: a }) {
|
|
674
|
-
const e = t, o = a, l = (r) =>
|
|
678
|
+
const e = t, o = a, l = (r) => ve(e.validations, r), s = (r) => {
|
|
675
679
|
o("update:modelValue", r), o("input", r);
|
|
676
680
|
}, c = (r) => {
|
|
677
681
|
o("update:modelValue", r);
|
|
@@ -691,8 +695,8 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "FileUpload.vue"]])
|
|
|
691
695
|
}
|
|
692
696
|
});
|
|
693
697
|
function gn(t, n, a, e, o, l) {
|
|
694
|
-
const s =
|
|
695
|
-
return d(),
|
|
698
|
+
const s = x("ATextarea");
|
|
699
|
+
return d(), B(s, {
|
|
696
700
|
"model-value": e.props.modelValue,
|
|
697
701
|
placeholder: "Please enter something",
|
|
698
702
|
"allow-clear": "",
|
|
@@ -701,9 +705,9 @@ function gn(t, n, a, e, o, l) {
|
|
|
701
705
|
onChange: e.changeHandler
|
|
702
706
|
}, null, 8, ["model-value", "disabled"]);
|
|
703
707
|
}
|
|
704
|
-
const _n = /* @__PURE__ */
|
|
708
|
+
const _n = /* @__PURE__ */ Y(mn, [["render", gn], ["__file", "TextArea.vue"]]), vn = /* @__PURE__ */ z({
|
|
705
709
|
__name: "CheckBox",
|
|
706
|
-
props: /* @__PURE__ */
|
|
710
|
+
props: /* @__PURE__ */ ie({
|
|
707
711
|
fieldKey: {},
|
|
708
712
|
modelValue: {},
|
|
709
713
|
config: {},
|
|
@@ -714,9 +718,9 @@ const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "TextArea.vue"]]),
|
|
|
714
718
|
modelValue: {},
|
|
715
719
|
modelModifiers: {}
|
|
716
720
|
}),
|
|
717
|
-
emits: /* @__PURE__ */
|
|
721
|
+
emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
718
722
|
setup(t, { expose: n, emit: a }) {
|
|
719
|
-
const e = t, o = a, l = we(t, "modelValue"), s = (r) =>
|
|
723
|
+
const e = t, o = a, l = we(t, "modelValue"), s = (r) => ve(e.validations, r), c = (r) => {
|
|
720
724
|
const u = s(r);
|
|
721
725
|
o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
|
|
722
726
|
g.event === "change" && o(g.event, g.handlerName, r);
|
|
@@ -733,24 +737,24 @@ const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "TextArea.vue"]]),
|
|
|
733
737
|
}
|
|
734
738
|
});
|
|
735
739
|
function bn(t, n, a, e, o, l) {
|
|
736
|
-
const s =
|
|
737
|
-
return d(),
|
|
740
|
+
const s = x("ACheckbox");
|
|
741
|
+
return d(), B(s, {
|
|
738
742
|
modelValue: e.model,
|
|
739
743
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
|
|
740
744
|
clearable: "",
|
|
741
745
|
disabled: e.props.readonly || e.props.config.Readonly,
|
|
742
746
|
onChange: e.changeHandler
|
|
743
747
|
}, {
|
|
744
|
-
default:
|
|
745
|
-
|
|
748
|
+
default: S(() => n[1] || (n[1] = [
|
|
749
|
+
ae("Yes", -1)
|
|
746
750
|
])),
|
|
747
751
|
_: 1,
|
|
748
752
|
__: [1]
|
|
749
753
|
}, 8, ["modelValue", "disabled"]);
|
|
750
754
|
}
|
|
751
|
-
const hn = /* @__PURE__ */
|
|
755
|
+
const hn = /* @__PURE__ */ Y(vn, [["render", bn], ["__file", "CheckBox.vue"]]), yn = Symbol("ArcoConfigProvider"), wn = "arco", kn = "$arco", nt = (t) => {
|
|
752
756
|
var n, a, e;
|
|
753
|
-
const o =
|
|
757
|
+
const o = ge(), l = _e(yn, void 0);
|
|
754
758
|
return `${(e = (a = l?.prefixCls) != null ? a : (n = o?.appContext.config.globalProperties[kn]) == null ? void 0 : n.classPrefix) != null ? e : wn}-${t}`;
|
|
755
759
|
}, Cn = Object.prototype.toString;
|
|
756
760
|
function ot(t) {
|
|
@@ -801,7 +805,7 @@ const Sn = z({
|
|
|
801
805
|
};
|
|
802
806
|
}
|
|
803
807
|
}), xn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
804
|
-
function
|
|
808
|
+
function Vn(t, n, a, e, o, l) {
|
|
805
809
|
return d(), _("svg", {
|
|
806
810
|
viewBox: "0 0 48 48",
|
|
807
811
|
fill: "none",
|
|
@@ -818,12 +822,12 @@ function An(t, n, a, e, o, l) {
|
|
|
818
822
|
h("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
|
|
819
823
|
]), 14, xn);
|
|
820
824
|
}
|
|
821
|
-
var
|
|
822
|
-
const
|
|
825
|
+
var Fe = /* @__PURE__ */ at(Sn, [["render", Vn]]);
|
|
826
|
+
const An = Object.assign(Fe, {
|
|
823
827
|
install: (t, n) => {
|
|
824
828
|
var a;
|
|
825
829
|
const e = (a = n?.iconPrefix) != null ? a : "";
|
|
826
|
-
t.component(e +
|
|
830
|
+
t.component(e + Fe.name, Fe);
|
|
827
831
|
}
|
|
828
832
|
}), Tn = z({
|
|
829
833
|
name: "IconDownload",
|
|
@@ -897,46 +901,46 @@ const Nn = Object.assign(Le, {
|
|
|
897
901
|
setup(t, { expose: n }) {
|
|
898
902
|
n();
|
|
899
903
|
const a = t, e = (c) => c.length > 0 && typeof c[0] != "string", o = E(() => e(a.outputText) ? [] : a.outputText), l = E(() => e(a.outputText) ? a.outputText : []), s = { props: a, isTreeArray: e, stringOutput: o, treeOutput: l, get IconQuestionCircle() {
|
|
900
|
-
return
|
|
904
|
+
return An;
|
|
901
905
|
} };
|
|
902
906
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
903
907
|
}
|
|
904
|
-
}), Dn = { class: "list-unstyled" },
|
|
905
|
-
function
|
|
906
|
-
const s =
|
|
907
|
-
return e.props.isVisible ? (d(),
|
|
908
|
+
}), Dn = { class: "list-unstyled" }, Hn = { class: "list-style-square" };
|
|
909
|
+
function Bn(t, n, a, e, o, l) {
|
|
910
|
+
const s = x("a-tooltip");
|
|
911
|
+
return e.props.isVisible ? (d(), B(s, {
|
|
908
912
|
key: 0,
|
|
909
913
|
"background-color": "#7A00E6"
|
|
910
914
|
}, {
|
|
911
|
-
content:
|
|
912
|
-
e.stringOutput.length ? (d(!0), _($, { key: 0 }, j(e.stringOutput, (c) => (d(), _("p", { key: c },
|
|
915
|
+
content: S(() => [
|
|
916
|
+
e.stringOutput.length ? (d(!0), _($, { key: 0 }, j(e.stringOutput, (c) => (d(), _("p", { key: c }, q(c), 1))), 128)) : (d(!0), _($, { key: 1 }, j(e.treeOutput, (c) => (d(), _("ul", {
|
|
913
917
|
key: c.title,
|
|
914
918
|
class: "list-unstyled"
|
|
915
919
|
}, [
|
|
916
920
|
h("li", null, [
|
|
917
|
-
h("b", null,
|
|
921
|
+
h("b", null, q(c.title), 1),
|
|
918
922
|
h("ul", Dn, [
|
|
919
923
|
(d(!0), _($, null, j(c.items, (i) => (d(), _("li", {
|
|
920
924
|
key: i.title
|
|
921
925
|
}, [
|
|
922
|
-
h("u", null,
|
|
923
|
-
h("ul",
|
|
924
|
-
(d(!0), _($, null, j(i.items, (r) => (d(), _("li", null,
|
|
926
|
+
h("u", null, q(i.title), 1),
|
|
927
|
+
h("ul", Hn, [
|
|
928
|
+
(d(!0), _($, null, j(i.items, (r) => (d(), _("li", null, q(r), 1))), 256))
|
|
925
929
|
])
|
|
926
930
|
]))), 128))
|
|
927
931
|
])
|
|
928
932
|
])
|
|
929
933
|
]))), 128))
|
|
930
934
|
]),
|
|
931
|
-
default:
|
|
935
|
+
default: S(() => [
|
|
932
936
|
N(e.IconQuestionCircle, { class: "icon" })
|
|
933
937
|
]),
|
|
934
938
|
_: 1
|
|
935
|
-
})) :
|
|
939
|
+
})) : re("", !0);
|
|
936
940
|
}
|
|
937
|
-
const rt = /* @__PURE__ */
|
|
941
|
+
const rt = /* @__PURE__ */ Y(Un, [["render", Bn], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Fn = /* @__PURE__ */ z({
|
|
938
942
|
__name: "index",
|
|
939
|
-
props: /* @__PURE__ */
|
|
943
|
+
props: /* @__PURE__ */ ie({
|
|
940
944
|
config: {},
|
|
941
945
|
className: {},
|
|
942
946
|
fieldKey: {},
|
|
@@ -948,7 +952,7 @@ const rt = /* @__PURE__ */ Q(Un, [["render", Fn], ["__scopeId", "data-v-1d3893b1
|
|
|
948
952
|
modelValue: {},
|
|
949
953
|
modelModifiers: {}
|
|
950
954
|
}),
|
|
951
|
-
emits: /* @__PURE__ */
|
|
955
|
+
emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
952
956
|
setup(t, { expose: n, emit: a }) {
|
|
953
957
|
const e = t, o = a, l = we(t, "modelValue"), s = Oe("widgetRef"), c = E(() => {
|
|
954
958
|
switch (e.config?.widget?.widget) {
|
|
@@ -996,8 +1000,8 @@ const rt = /* @__PURE__ */ Q(Un, [["render", Fn], ["__scopeId", "data-v-1d3893b1
|
|
|
996
1000
|
return e?.config?.widget?.title;
|
|
997
1001
|
}
|
|
998
1002
|
});
|
|
999
|
-
const
|
|
1000
|
-
return Object.defineProperty(
|
|
1003
|
+
const y = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g, formatTitle: v, ToolTip: rt };
|
|
1004
|
+
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
1001
1005
|
}
|
|
1002
1006
|
}), Ln = { class: "title" }, Rn = {
|
|
1003
1007
|
key: 0,
|
|
@@ -1009,15 +1013,15 @@ const rt = /* @__PURE__ */ Q(Un, [["render", Fn], ["__scopeId", "data-v-1d3893b1
|
|
|
1009
1013
|
function $n(t, n, a, e, o, l) {
|
|
1010
1014
|
return d(), _("div", null, [
|
|
1011
1015
|
h("div", Ln, [
|
|
1012
|
-
|
|
1013
|
-
e.props.config.validations.length ? (d(), _("span", Rn, "*")) :
|
|
1016
|
+
ae(q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
|
|
1017
|
+
e.props.config.validations.length ? (d(), _("span", Rn, "*")) : re("", !0),
|
|
1014
1018
|
N(e.ToolTip, {
|
|
1015
1019
|
"is-visible": e.props.config.widget?.isVisible ?? !1,
|
|
1016
1020
|
"output-text": e.props.config.widget?.outputText ?? []
|
|
1017
1021
|
}, null, 8, ["is-visible", "output-text"])
|
|
1018
1022
|
]),
|
|
1019
1023
|
h("div", null, [
|
|
1020
|
-
(d(),
|
|
1024
|
+
(d(), B($e(e.curComp), {
|
|
1021
1025
|
ref: "widgetRef",
|
|
1022
1026
|
modelValue: e.model,
|
|
1023
1027
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => e.model = s),
|
|
@@ -1029,11 +1033,11 @@ function $n(t, n, a, e, o, l) {
|
|
|
1029
1033
|
onError: e.errHandler,
|
|
1030
1034
|
onChange: e.changeHandler
|
|
1031
1035
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
1032
|
-
e.errMsg.length > 0 ? (d(), _("div", On,
|
|
1036
|
+
e.errMsg.length > 0 ? (d(), _("div", On, q(e.errMsg), 1)) : re("", !0)
|
|
1033
1037
|
])
|
|
1034
1038
|
]);
|
|
1035
1039
|
}
|
|
1036
|
-
const
|
|
1040
|
+
const Ve = /* @__PURE__ */ Y(Fn, [["render", $n], ["__scopeId", "data-v-af9c00b7"], ["__file", "index.vue"]]), jn = /* @__PURE__ */ z({
|
|
1037
1041
|
__name: "SubmitButton",
|
|
1038
1042
|
props: {
|
|
1039
1043
|
url: {},
|
|
@@ -1052,19 +1056,19 @@ const Ae = /* @__PURE__ */ Q(Hn, [["render", $n], ["__scopeId", "data-v-af9c00b7
|
|
|
1052
1056
|
}
|
|
1053
1057
|
});
|
|
1054
1058
|
function Mn(t, n, a, e, o, l) {
|
|
1055
|
-
const s =
|
|
1056
|
-
return d(),
|
|
1059
|
+
const s = x("AButton");
|
|
1060
|
+
return d(), B(s, {
|
|
1057
1061
|
loading: a.loading,
|
|
1058
1062
|
type: "primary",
|
|
1059
1063
|
onClick: e.clickHandler
|
|
1060
1064
|
}, {
|
|
1061
|
-
default:
|
|
1062
|
-
|
|
1065
|
+
default: S(() => [
|
|
1066
|
+
ue(t.$slots, "default")
|
|
1063
1067
|
]),
|
|
1064
1068
|
_: 3
|
|
1065
1069
|
}, 8, ["loading"]);
|
|
1066
1070
|
}
|
|
1067
|
-
const Ye = /* @__PURE__ */
|
|
1071
|
+
const Ye = /* @__PURE__ */ Y(jn, [["render", Mn], ["__file", "SubmitButton.vue"]]), En = /* @__PURE__ */ z({
|
|
1068
1072
|
__name: "DetailLink",
|
|
1069
1073
|
props: {
|
|
1070
1074
|
url: {},
|
|
@@ -1083,15 +1087,15 @@ const Ye = /* @__PURE__ */ Q(jn, [["render", Mn], ["__file", "SubmitButton.vue"]
|
|
|
1083
1087
|
}
|
|
1084
1088
|
});
|
|
1085
1089
|
function zn(t, n, a, e, o, l) {
|
|
1086
|
-
const s =
|
|
1087
|
-
return d(),
|
|
1088
|
-
default:
|
|
1089
|
-
|
|
1090
|
+
const s = x("ALink");
|
|
1091
|
+
return d(), B(s, { onClick: e.clickHandler }, {
|
|
1092
|
+
default: S(() => [
|
|
1093
|
+
ue(t.$slots, "default")
|
|
1090
1094
|
]),
|
|
1091
1095
|
_: 3
|
|
1092
1096
|
});
|
|
1093
1097
|
}
|
|
1094
|
-
const Kn = /* @__PURE__ */
|
|
1098
|
+
const Kn = /* @__PURE__ */ Y(En, [["render", zn], ["__file", "DetailLink.vue"]]), Wn = /* @__PURE__ */ z({
|
|
1095
1099
|
__name: "index",
|
|
1096
1100
|
props: {
|
|
1097
1101
|
config: {},
|
|
@@ -1113,39 +1117,39 @@ const Kn = /* @__PURE__ */ Q(En, [["render", zn], ["__file", "DetailLink.vue"]])
|
|
|
1113
1117
|
default:
|
|
1114
1118
|
return Ye;
|
|
1115
1119
|
}
|
|
1116
|
-
}), c = E(() => e.config.widget ===
|
|
1120
|
+
}), c = E(() => e.config.widget === Q.Submit ? e.config.requestUrl ?? "" : e.config.widget === Q.Link ? e.config.redirectUrl ?? "" : ""), i = E(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
|
|
1117
1121
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
1118
1122
|
}
|
|
1119
1123
|
});
|
|
1120
1124
|
function Gn(t, n, a, e, o, l) {
|
|
1121
|
-
return d(),
|
|
1125
|
+
return d(), B($e(e.curComp), {
|
|
1122
1126
|
url: e.curUrl,
|
|
1123
1127
|
"redirect-type": e.redirectType,
|
|
1124
1128
|
loading: a.loading,
|
|
1125
1129
|
onClick: e.clickHandler
|
|
1126
1130
|
}, {
|
|
1127
|
-
default:
|
|
1128
|
-
|
|
1131
|
+
default: S(() => [
|
|
1132
|
+
ae(q(e.props.config.title), 1)
|
|
1129
1133
|
]),
|
|
1130
1134
|
_: 1
|
|
1131
1135
|
}, 8, ["url", "redirect-type", "loading"]);
|
|
1132
1136
|
}
|
|
1133
|
-
const
|
|
1137
|
+
const Ae = /* @__PURE__ */ Y(Wn, [["render", Gn], ["__file", "index.vue"]]), st = Symbol("library-router");
|
|
1134
1138
|
function Te() {
|
|
1135
|
-
const t =
|
|
1139
|
+
const t = _e(st, null);
|
|
1136
1140
|
return t || vt();
|
|
1137
1141
|
}
|
|
1138
1142
|
const it = Symbol("library-triggers");
|
|
1139
1143
|
function Ee() {
|
|
1140
|
-
const t =
|
|
1144
|
+
const t = _e(it, null);
|
|
1141
1145
|
return t || {};
|
|
1142
1146
|
}
|
|
1143
1147
|
const qn = Symbol("library-pinia"), lt = Symbol("library-bpmStore"), ct = Symbol("library-svrStore");
|
|
1144
1148
|
function Ie() {
|
|
1145
|
-
return
|
|
1149
|
+
return _e(lt, null);
|
|
1146
1150
|
}
|
|
1147
1151
|
function Pe() {
|
|
1148
|
-
return
|
|
1152
|
+
return _e(ct, null);
|
|
1149
1153
|
}
|
|
1150
1154
|
const Yn = /* @__PURE__ */ z({
|
|
1151
1155
|
__name: "TopBar",
|
|
@@ -1161,25 +1165,25 @@ const Yn = /* @__PURE__ */ z({
|
|
|
1161
1165
|
}
|
|
1162
1166
|
}), Qn = { class: "top-bar" }, Jn = { class: "banner-info" }, Xn = { class: "page-title" }, Zn = { class: "page-subtitle" }, eo = { class: "avatar-wrapper" }, to = { class: "user-email" };
|
|
1163
1167
|
function no(t, n, a, e, o, l) {
|
|
1164
|
-
const s =
|
|
1168
|
+
const s = x("a-avatar"), c = x("a-popover");
|
|
1165
1169
|
return d(), _("div", Qn, [
|
|
1166
1170
|
h("div", Jn, [
|
|
1167
|
-
h("div", Xn,
|
|
1168
|
-
h("div", Zn,
|
|
1171
|
+
h("div", Xn, q(a.title), 1),
|
|
1172
|
+
h("div", Zn, q(a.subTitle), 1)
|
|
1169
1173
|
]),
|
|
1170
1174
|
h("div", eo, [
|
|
1171
1175
|
N(c, { trigger: "click" }, {
|
|
1172
|
-
content:
|
|
1173
|
-
h("div", to,
|
|
1176
|
+
content: S(() => [
|
|
1177
|
+
h("div", to, q(a.email), 1)
|
|
1174
1178
|
]),
|
|
1175
|
-
default:
|
|
1179
|
+
default: S(() => [
|
|
1176
1180
|
N(s, {
|
|
1177
1181
|
size: 48,
|
|
1178
1182
|
autoFixFontSize: "",
|
|
1179
1183
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
1180
1184
|
}, {
|
|
1181
|
-
default:
|
|
1182
|
-
|
|
1185
|
+
default: S(() => [
|
|
1186
|
+
ae(q(a.email.charAt(0).toUpperCase()), 1)
|
|
1183
1187
|
]),
|
|
1184
1188
|
_: 1
|
|
1185
1189
|
})
|
|
@@ -1189,7 +1193,7 @@ function no(t, n, a, e, o, l) {
|
|
|
1189
1193
|
])
|
|
1190
1194
|
]);
|
|
1191
1195
|
}
|
|
1192
|
-
const Ne = /* @__PURE__ */
|
|
1196
|
+
const Ne = /* @__PURE__ */ Y(Yn, [["render", no], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
1193
1197
|
function ze(t) {
|
|
1194
1198
|
const n = je(), a = [];
|
|
1195
1199
|
if (n.fieldsGroup) {
|
|
@@ -1222,7 +1226,7 @@ class Ue {
|
|
|
1222
1226
|
return this.opt = n, this;
|
|
1223
1227
|
}
|
|
1224
1228
|
build() {
|
|
1225
|
-
return this.pageActionType ? this.opt.workflowId ? new xe(this.pageActionType, this.className, this.store, this.opt) : new xe(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new xe(
|
|
1229
|
+
return this.pageActionType ? this.opt.workflowId ? new xe(this.pageActionType, this.className, this.store, this.opt) : new xe(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new xe(me.ReCreate, this.className, this.store, this.opt) : new xe(me.Create, this.className, this.store);
|
|
1226
1230
|
}
|
|
1227
1231
|
}
|
|
1228
1232
|
class xe {
|
|
@@ -1281,7 +1285,7 @@ const oo = /* @__PURE__ */ z({
|
|
|
1281
1285
|
},
|
|
1282
1286
|
setup(t, { expose: n }) {
|
|
1283
1287
|
n();
|
|
1284
|
-
const a = Ie(), e = Pe(), o = Te(), l = Ee(), s = Oe("dataWidgets"), c =
|
|
1288
|
+
const a = Ie(), e = Pe(), o = Te(), l = Ee(), s = Oe("dataWidgets"), c = ge(), i = t, r = m({
|
|
1285
1289
|
pageType: "",
|
|
1286
1290
|
fields: {},
|
|
1287
1291
|
globalValidations: [],
|
|
@@ -1290,80 +1294,85 @@ const oo = /* @__PURE__ */ z({
|
|
|
1290
1294
|
subTitle: ""
|
|
1291
1295
|
}
|
|
1292
1296
|
}), u = m([]), g = m({});
|
|
1293
|
-
function v(
|
|
1294
|
-
return
|
|
1295
|
-
fieldKey:
|
|
1297
|
+
function v(k) {
|
|
1298
|
+
return k ? Object.entries(k).map(([A, U]) => ({
|
|
1299
|
+
fieldKey: A,
|
|
1296
1300
|
...U
|
|
1297
|
-
})).filter((
|
|
1301
|
+
})).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !Z.value.includes(A.fieldKey)) : [];
|
|
1298
1302
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return
|
|
1301
|
-
(
|
|
1303
|
+
function y(k) {
|
|
1304
|
+
return k ? Object.entries(k).filter(([A, U]) => U.dependent).reduce(
|
|
1305
|
+
(A, [U, R]) => (A[U] = R.dependent, A),
|
|
1302
1306
|
{}
|
|
1303
1307
|
) : [];
|
|
1304
1308
|
}
|
|
1305
|
-
const f = E(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}),
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
const
|
|
1309
|
-
r.value = await
|
|
1309
|
+
const f = E(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
|
|
1310
|
+
fe(async () => {
|
|
1311
|
+
C.value = !0;
|
|
1312
|
+
const k = new Ue().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
|
|
1313
|
+
r.value = await k.getPageData(), u.value = v(r.value.fields), g.value = y(r.value.fields);
|
|
1310
1314
|
for (const T in r.value.fields) {
|
|
1311
1315
|
if (r.value.fields[T].widget?.widget === "File") {
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1316
|
+
const A = u.value.find((U) => U.fieldKey === T);
|
|
1317
|
+
A && A.widget && (A.widget.files = []);
|
|
1314
1318
|
}
|
|
1315
1319
|
p.value[T] = r.value.fields[T].modelValue;
|
|
1316
1320
|
}
|
|
1317
|
-
|
|
1321
|
+
C.value = !1;
|
|
1318
1322
|
});
|
|
1319
|
-
function
|
|
1323
|
+
function J() {
|
|
1320
1324
|
return e()?.userInfo?.email_address ?? "";
|
|
1321
1325
|
}
|
|
1322
|
-
async function ee(
|
|
1326
|
+
async function ee(k, T, A, U, R) {
|
|
1323
1327
|
switch (T) {
|
|
1324
|
-
case
|
|
1328
|
+
case Q.Submit:
|
|
1325
1329
|
let O = !0;
|
|
1326
|
-
if (s.value?.forEach((
|
|
1327
|
-
|
|
1330
|
+
if (s.value?.forEach((X) => {
|
|
1331
|
+
X?.validate && (X.validate() || (O = !1));
|
|
1328
1332
|
}), !O) {
|
|
1329
1333
|
c?.appContext.config.globalProperties.$message.error(
|
|
1330
1334
|
"form validation failed, please check the input fields"
|
|
1331
1335
|
);
|
|
1332
1336
|
return;
|
|
1333
1337
|
}
|
|
1334
|
-
|
|
1338
|
+
C.value = !0;
|
|
1335
1339
|
try {
|
|
1336
1340
|
l[R]?.({ message: `${R} action triggered` });
|
|
1337
|
-
const
|
|
1341
|
+
const X = {
|
|
1342
|
+
...p.value,
|
|
1343
|
+
...g.value
|
|
1344
|
+
};
|
|
1345
|
+
l.createHardCode?.(X);
|
|
1346
|
+
const te = await Ut(
|
|
1338
1347
|
i.className,
|
|
1339
|
-
|
|
1340
|
-
|
|
1348
|
+
X,
|
|
1349
|
+
A
|
|
1341
1350
|
);
|
|
1342
1351
|
l[`${R}Success` || ""]?.({
|
|
1343
1352
|
message: "Workflow created successfully",
|
|
1344
1353
|
workflowId: i.workflowId,
|
|
1345
|
-
res:
|
|
1354
|
+
res: te
|
|
1346
1355
|
});
|
|
1347
|
-
const
|
|
1348
|
-
await Promise.all(
|
|
1349
|
-
`Your grading request has been submitted, ID is ${
|
|
1350
|
-
), o.push({ name: "Details", params: { workflowId:
|
|
1356
|
+
const le = s.value?.map((de) => de?.submit ? de.submit(te.toString()) : Promise.resolve()) || [];
|
|
1357
|
+
await Promise.all(le), C.value = !1, c?.appContext.config.globalProperties.$notification.success(
|
|
1358
|
+
`Your grading request has been submitted, ID is ${te.toString()}.`
|
|
1359
|
+
), o.push({ name: "Details", params: { workflowId: te.toString() } });
|
|
1351
1360
|
} catch {
|
|
1352
1361
|
c?.appContext.config.globalProperties.$notification.error(
|
|
1353
1362
|
"Failed to submit your grading request"
|
|
1354
|
-
),
|
|
1363
|
+
), C.value = !1;
|
|
1355
1364
|
}
|
|
1356
1365
|
break;
|
|
1357
|
-
case
|
|
1366
|
+
case Q.Link:
|
|
1358
1367
|
try {
|
|
1359
|
-
await l[
|
|
1368
|
+
await l[k.eventName || ""]?.(p.value, Z), o.push({
|
|
1360
1369
|
name: U,
|
|
1361
1370
|
params: { className: i.className }
|
|
1362
|
-
}), await l[`${
|
|
1371
|
+
}), await l[`${k.eventName || ""}Success`]?.({
|
|
1363
1372
|
message: `Router to ${U} pushed`
|
|
1364
1373
|
});
|
|
1365
|
-
} catch (
|
|
1366
|
-
console.error("Error in link action trigger:",
|
|
1374
|
+
} catch (X) {
|
|
1375
|
+
console.error("Error in link action trigger:", X);
|
|
1367
1376
|
}
|
|
1368
1377
|
break;
|
|
1369
1378
|
default:
|
|
@@ -1378,18 +1387,18 @@ const oo = /* @__PURE__ */ z({
|
|
|
1378
1387
|
"jobAttachmentPrevious",
|
|
1379
1388
|
"positionId"
|
|
1380
1389
|
], Z = m(M);
|
|
1381
|
-
function
|
|
1382
|
-
l[
|
|
1390
|
+
function se(k, T) {
|
|
1391
|
+
l[k]?.({ fieldValue: T, hiddenFields: Z, formData: p }), r.value && (u.value = v(r.value.fields));
|
|
1383
1392
|
}
|
|
1384
|
-
const
|
|
1385
|
-
return Object.defineProperty(
|
|
1393
|
+
const V = E(() => ze(u.value)), w = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: se, groupedFields: V, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
|
|
1394
|
+
return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
|
|
1386
1395
|
}
|
|
1387
1396
|
}), ao = { class: "page-container" }, ro = { class: "page-body" }, so = { class: "form-card" }, io = { class: "form-fields-vertical" }, lo = { class: "form-fields" }, co = {
|
|
1388
1397
|
key: 0,
|
|
1389
1398
|
class: "form-content"
|
|
1390
1399
|
}, uo = { class: "page-footer" }, fo = { class: "action-container" }, po = { class: "action-buttons" };
|
|
1391
1400
|
function mo(t, n, a, e, o, l) {
|
|
1392
|
-
const s =
|
|
1401
|
+
const s = x("a-card"), c = x("a-spin");
|
|
1393
1402
|
return d(), _("div", ao, [
|
|
1394
1403
|
N(e.TopBar, {
|
|
1395
1404
|
title: e.pageData.banner.title,
|
|
@@ -1401,17 +1410,17 @@ function mo(t, n, a, e, o, l) {
|
|
|
1401
1410
|
loading: e.loading,
|
|
1402
1411
|
class: "form-container"
|
|
1403
1412
|
}, {
|
|
1404
|
-
default:
|
|
1413
|
+
default: S(() => [
|
|
1405
1414
|
h("div", so, [
|
|
1406
1415
|
h("div", io, [
|
|
1407
|
-
(d(!0), _($, null, j(e.groupedFields, (i) => (d(),
|
|
1416
|
+
(d(!0), _($, null, j(e.groupedFields, (i) => (d(), B(s, {
|
|
1408
1417
|
key: i.name,
|
|
1409
1418
|
title: i.name,
|
|
1410
1419
|
style: { "margin-bottom": "24px" }
|
|
1411
1420
|
}, {
|
|
1412
|
-
default:
|
|
1421
|
+
default: S(() => [
|
|
1413
1422
|
h("div", lo, [
|
|
1414
|
-
(d(!0), _($, null, j(i.fields, (r) => (d(),
|
|
1423
|
+
(d(!0), _($, null, j(i.fields, (r) => (d(), B(e.DataWidgets, {
|
|
1415
1424
|
key: r.fieldKey,
|
|
1416
1425
|
ref_for: !0,
|
|
1417
1426
|
ref: "dataWidgets",
|
|
@@ -1429,8 +1438,8 @@ function mo(t, n, a, e, o, l) {
|
|
|
1429
1438
|
}, 1032, ["title"]))), 128))
|
|
1430
1439
|
]),
|
|
1431
1440
|
t.$slots.content ? (d(), _("div", co, [
|
|
1432
|
-
|
|
1433
|
-
])) :
|
|
1441
|
+
ue(t.$slots, "content", {}, void 0, !0)
|
|
1442
|
+
])) : re("", !0)
|
|
1434
1443
|
])
|
|
1435
1444
|
]),
|
|
1436
1445
|
_: 3
|
|
@@ -1438,9 +1447,9 @@ function mo(t, n, a, e, o, l) {
|
|
|
1438
1447
|
]),
|
|
1439
1448
|
h("div", uo, [
|
|
1440
1449
|
h("div", fo, [
|
|
1441
|
-
|
|
1450
|
+
ue(t.$slots, "action", {}, void 0, !0),
|
|
1442
1451
|
h("div", po, [
|
|
1443
|
-
(d(!0), _($, null, j(e.reversedActions, (i) => (d(),
|
|
1452
|
+
(d(!0), _($, null, j(e.reversedActions, (i) => (d(), B(e.ActionButton, {
|
|
1444
1453
|
key: i.title,
|
|
1445
1454
|
loading: e.loading,
|
|
1446
1455
|
config: i,
|
|
@@ -1452,7 +1461,7 @@ function mo(t, n, a, e, o, l) {
|
|
|
1452
1461
|
])
|
|
1453
1462
|
]);
|
|
1454
1463
|
}
|
|
1455
|
-
const go = /* @__PURE__ */
|
|
1464
|
+
const go = /* @__PURE__ */ Y(oo, [["render", mo], ["__scopeId", "data-v-8b157ce4"], ["__file", "CreateView.vue"]]), _o = /* @__PURE__ */ z({
|
|
1456
1465
|
__name: "UpdateView",
|
|
1457
1466
|
props: {
|
|
1458
1467
|
className: {},
|
|
@@ -1460,7 +1469,7 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
|
|
|
1460
1469
|
},
|
|
1461
1470
|
setup(t, { expose: n }) {
|
|
1462
1471
|
n();
|
|
1463
|
-
const a = Te(), e = Ee(), o = Pe(), l = Ie(), s = Oe("dataWidgets"), c =
|
|
1472
|
+
const a = Te(), e = Ee(), o = Pe(), l = Ie(), s = Oe("dataWidgets"), c = ge(), i = t, r = m({
|
|
1464
1473
|
pageType: "",
|
|
1465
1474
|
fields: {},
|
|
1466
1475
|
globalValidations: [],
|
|
@@ -1469,42 +1478,42 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
|
|
|
1469
1478
|
subTitle: ""
|
|
1470
1479
|
}
|
|
1471
1480
|
}), u = m([]), g = m({});
|
|
1472
|
-
function v(
|
|
1473
|
-
return
|
|
1481
|
+
function v(w) {
|
|
1482
|
+
return w ? Object.entries(w).map(([T, A]) => ({
|
|
1474
1483
|
fieldKey: T,
|
|
1475
|
-
...
|
|
1484
|
+
...A
|
|
1476
1485
|
})).filter((T) => T.widget && T.widget.widget !== "Hidden").filter((T) => !M.value.includes(T.fieldKey)) : [];
|
|
1477
1486
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1487
|
+
function y(w) {
|
|
1488
|
+
return w ? Object.entries(w).filter(([T, A]) => A.dependent).reduce((T, [A, U]) => (T[A] = U.dependent, T), {}) : [];
|
|
1480
1489
|
}
|
|
1481
|
-
const f = E(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}),
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
const
|
|
1485
|
-
r.value = await
|
|
1486
|
-
const
|
|
1490
|
+
const f = E(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
|
|
1491
|
+
fe(async () => {
|
|
1492
|
+
C.value = !0;
|
|
1493
|
+
const w = new Ue().setPageActionType(me.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
|
|
1494
|
+
r.value = await w.getPageData();
|
|
1495
|
+
const k = await w.getBtnList(), T = await w.getFiles();
|
|
1487
1496
|
r.value.actions = r.value.actions?.filter((U) => {
|
|
1488
|
-
const R =
|
|
1497
|
+
const R = k.find((O) => O.button === U.title);
|
|
1489
1498
|
return R ? R.isShow : !0;
|
|
1490
1499
|
});
|
|
1491
|
-
const
|
|
1492
|
-
e.Test?.({ fieldValue:
|
|
1500
|
+
const A = r.value.fields.requestType.modelValue;
|
|
1501
|
+
e.Test?.({ fieldValue: A, hiddenFields: M, formData: p }), u.value = v(r.value.fields), g.value = y(r.value.fields);
|
|
1493
1502
|
for (const U in r.value.fields) {
|
|
1494
1503
|
if (r.value.fields[U].widget?.widget === "File") {
|
|
1495
1504
|
const R = u.value.find((O) => O.fieldKey === U);
|
|
1496
|
-
R && R.widget && (R.widget.files = T[U] ?? [], R.widget.removeFile = (O) =>
|
|
1505
|
+
R && R.widget && (R.widget.files = T[U] ?? [], R.widget.removeFile = (O) => w.removeFile(O));
|
|
1497
1506
|
}
|
|
1498
1507
|
p.value[U] = r.value.fields[U].modelValue;
|
|
1499
1508
|
}
|
|
1500
|
-
|
|
1509
|
+
C.value = !1;
|
|
1501
1510
|
});
|
|
1502
|
-
function
|
|
1511
|
+
function J() {
|
|
1503
1512
|
return o()?.userInfo?.email_address ?? "";
|
|
1504
1513
|
}
|
|
1505
|
-
async function ee(
|
|
1506
|
-
switch (
|
|
1507
|
-
case
|
|
1514
|
+
async function ee(w, k, T, A, U) {
|
|
1515
|
+
switch (k) {
|
|
1516
|
+
case Q.Submit:
|
|
1508
1517
|
let R = !0;
|
|
1509
1518
|
if (s.value?.forEach((O) => {
|
|
1510
1519
|
O?.validate && (O.validate() || (R = !1));
|
|
@@ -1512,37 +1521,37 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
|
|
|
1512
1521
|
c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1513
1522
|
return;
|
|
1514
1523
|
}
|
|
1515
|
-
|
|
1524
|
+
C.value = !0;
|
|
1516
1525
|
try {
|
|
1517
|
-
const O = await Dt(i.className, i.workflowId, { ...p.value, ...g.value }, T),
|
|
1518
|
-
await Promise.all(
|
|
1526
|
+
const O = await Dt(i.className, i.workflowId, { ...p.value, ...g.value }, T), X = s.value?.map((te) => te?.submit ? te.submit(O.toString()) : Promise.resolve()) || [];
|
|
1527
|
+
await Promise.all(X), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${O.toString()}.`);
|
|
1519
1528
|
} catch {
|
|
1520
|
-
c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"),
|
|
1529
|
+
c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
|
|
1521
1530
|
}
|
|
1522
1531
|
break;
|
|
1523
|
-
case
|
|
1532
|
+
case Q.Link:
|
|
1524
1533
|
try {
|
|
1525
|
-
await e[
|
|
1534
|
+
await e[w.eventName || ""]?.(p.value, M), a.push({ name: A, params: { className: i.className } });
|
|
1526
1535
|
} catch {
|
|
1527
1536
|
}
|
|
1528
1537
|
break;
|
|
1529
1538
|
default:
|
|
1530
|
-
console.warn("Unknown action type:",
|
|
1539
|
+
console.warn("Unknown action type:", k);
|
|
1531
1540
|
}
|
|
1532
1541
|
}
|
|
1533
1542
|
const M = m([]);
|
|
1534
|
-
function Z(
|
|
1535
|
-
e[
|
|
1543
|
+
function Z(w, k) {
|
|
1544
|
+
e[w]?.({ fieldValue: k, hiddenFields: M, formData: p }), r.value && (u.value = v(r.value.fields));
|
|
1536
1545
|
}
|
|
1537
|
-
const
|
|
1538
|
-
return Object.defineProperty(
|
|
1546
|
+
const se = E(() => ze(u.value)), V = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: se, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
|
|
1547
|
+
return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
|
|
1539
1548
|
}
|
|
1540
1549
|
}), vo = { class: "page-container" }, bo = { class: "page-body" }, ho = { class: "form-card" }, yo = { class: "form-fields-vertical" }, wo = { class: "form-fields" }, ko = {
|
|
1541
1550
|
key: 0,
|
|
1542
1551
|
class: "form-content"
|
|
1543
1552
|
}, Co = { class: "page-footer" }, So = { class: "action-container" }, xo = { class: "action-buttons" };
|
|
1544
|
-
function
|
|
1545
|
-
const s =
|
|
1553
|
+
function Vo(t, n, a, e, o, l) {
|
|
1554
|
+
const s = x("a-card"), c = x("a-spin");
|
|
1546
1555
|
return d(), _("div", vo, [
|
|
1547
1556
|
N(e.TopBar, {
|
|
1548
1557
|
title: e.pageData.banner.title,
|
|
@@ -1554,17 +1563,17 @@ function Ao(t, n, a, e, o, l) {
|
|
|
1554
1563
|
loading: e.loading,
|
|
1555
1564
|
class: "form-container"
|
|
1556
1565
|
}, {
|
|
1557
|
-
default:
|
|
1566
|
+
default: S(() => [
|
|
1558
1567
|
h("div", ho, [
|
|
1559
1568
|
h("div", yo, [
|
|
1560
|
-
(d(!0), _($, null, j(e.groupedFields, (i) => (d(),
|
|
1569
|
+
(d(!0), _($, null, j(e.groupedFields, (i) => (d(), B(s, {
|
|
1561
1570
|
key: i.name,
|
|
1562
1571
|
title: i.name,
|
|
1563
1572
|
style: { "margin-bottom": "24px" }
|
|
1564
1573
|
}, {
|
|
1565
|
-
default:
|
|
1574
|
+
default: S(() => [
|
|
1566
1575
|
h("div", wo, [
|
|
1567
|
-
(d(!0), _($, null, j(i.fields, (r) => (d(),
|
|
1576
|
+
(d(!0), _($, null, j(i.fields, (r) => (d(), B(e.DataWidgets, {
|
|
1568
1577
|
key: r.fieldKey,
|
|
1569
1578
|
ref_for: !0,
|
|
1570
1579
|
ref: "dataWidgets",
|
|
@@ -1582,8 +1591,8 @@ function Ao(t, n, a, e, o, l) {
|
|
|
1582
1591
|
}, 1032, ["title"]))), 128))
|
|
1583
1592
|
]),
|
|
1584
1593
|
t.$slots.content ? (d(), _("div", ko, [
|
|
1585
|
-
|
|
1586
|
-
])) :
|
|
1594
|
+
ue(t.$slots, "content", {}, void 0, !0)
|
|
1595
|
+
])) : re("", !0)
|
|
1587
1596
|
])
|
|
1588
1597
|
]),
|
|
1589
1598
|
_: 3
|
|
@@ -1591,9 +1600,9 @@ function Ao(t, n, a, e, o, l) {
|
|
|
1591
1600
|
]),
|
|
1592
1601
|
h("div", Co, [
|
|
1593
1602
|
h("div", So, [
|
|
1594
|
-
|
|
1603
|
+
ue(t.$slots, "action", {}, void 0, !0),
|
|
1595
1604
|
h("div", xo, [
|
|
1596
|
-
(d(!0), _($, null, j(e.reversedActions, (i) => (d(),
|
|
1605
|
+
(d(!0), _($, null, j(e.reversedActions, (i) => (d(), B(e.ActionButton, {
|
|
1597
1606
|
key: i.title,
|
|
1598
1607
|
loading: e.loading,
|
|
1599
1608
|
config: i,
|
|
@@ -1605,9 +1614,9 @@ function Ao(t, n, a, e, o, l) {
|
|
|
1605
1614
|
])
|
|
1606
1615
|
]);
|
|
1607
1616
|
}
|
|
1608
|
-
const
|
|
1617
|
+
const Ao = /* @__PURE__ */ Y(_o, [["render", Vo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), dt = Symbol("library-custom-comp");
|
|
1609
1618
|
function To() {
|
|
1610
|
-
return
|
|
1619
|
+
return _e(dt, null);
|
|
1611
1620
|
}
|
|
1612
1621
|
const Io = /* @__PURE__ */ z({
|
|
1613
1622
|
__name: "DetailView",
|
|
@@ -1617,7 +1626,7 @@ const Io = /* @__PURE__ */ z({
|
|
|
1617
1626
|
},
|
|
1618
1627
|
setup(t, { expose: n }) {
|
|
1619
1628
|
n();
|
|
1620
|
-
const a = Pe(), e = Ie(), o = Ee(), l = Te(), s = To(), c =
|
|
1629
|
+
const a = Pe(), e = Ie(), o = Ee(), l = Te(), s = To(), c = ge(), i = t;
|
|
1621
1630
|
let r;
|
|
1622
1631
|
const u = m({
|
|
1623
1632
|
pageType: "",
|
|
@@ -1632,12 +1641,12 @@ const Io = /* @__PURE__ */ z({
|
|
|
1632
1641
|
return I ? Object.entries(I).map(([K, P]) => (typeof P.modelValue == "boolean" ? P.fieldValue = P.modelValue ? "Yes" : "No" : P.fieldValue = P.modelValue, {
|
|
1633
1642
|
fieldKey: K,
|
|
1634
1643
|
...P
|
|
1635
|
-
})).filter((K) => K.widget && K.widget.widget !== "Hidden").filter((K) => !
|
|
1644
|
+
})).filter((K) => K.widget && K.widget.widget !== "Hidden").filter((K) => !w.value.includes(K.fieldKey)) : [];
|
|
1636
1645
|
}
|
|
1637
|
-
const
|
|
1646
|
+
const y = E(() => ze(g.value)), f = E(() => u.value?.actions ? [...u.value.actions].reverse() : []), p = m(!0), C = (I, L) => {
|
|
1638
1647
|
const K = I.findIndex((P) => P.isCurrent);
|
|
1639
|
-
return I.map((P,
|
|
1640
|
-
const
|
|
1648
|
+
return I.map((P, oe) => {
|
|
1649
|
+
const H = {
|
|
1641
1650
|
id: P.id,
|
|
1642
1651
|
title: "",
|
|
1643
1652
|
proxy: "",
|
|
@@ -1646,71 +1655,71 @@ const Io = /* @__PURE__ */ z({
|
|
|
1646
1655
|
status: 1,
|
|
1647
1656
|
time: ""
|
|
1648
1657
|
};
|
|
1649
|
-
|
|
1658
|
+
H.title = P.workflowProcessApprovers[0]?.name;
|
|
1650
1659
|
const be = P.workflowProcessApprovers[P.workflowProcessApprovers.length - 1], ke = P.workflowHistorys[P.workflowHistorys.length - 1], he = ke?.workflowHistoryApprovers[ke?.workflowHistoryApprovers?.length - 1];
|
|
1651
|
-
if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (
|
|
1652
|
-
|
|
1660
|
+
if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (H.title = `${he.name}`, H.proxy = `Proxy: ${be.name}`), P.sort > 1 ? H.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : H.sub = "Submit Application", P.isCurrent && L !== -1)
|
|
1661
|
+
H.desc = "In Approval", H.status = 1;
|
|
1653
1662
|
else {
|
|
1654
|
-
const
|
|
1655
|
-
if (
|
|
1656
|
-
|
|
1657
|
-
else if (
|
|
1658
|
-
|
|
1659
|
-
else if (
|
|
1660
|
-
if (
|
|
1661
|
-
|
|
1663
|
+
const ne = P.workflowHistorys[P.workflowHistorys.length - 1];
|
|
1664
|
+
if (ne && ne.status === 100)
|
|
1665
|
+
H.time = Se(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), H.status = 2, H.desc = "approve success!";
|
|
1666
|
+
else if (ne && ne.status === 999)
|
|
1667
|
+
H.time = Se(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), H.status = 0, H.desc = "approve reject!";
|
|
1668
|
+
else if (ne)
|
|
1669
|
+
if (H.time = Se(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), P.sort === 1)
|
|
1670
|
+
H.status = 2, H.desc = "";
|
|
1662
1671
|
else {
|
|
1663
|
-
const Ce =
|
|
1664
|
-
|
|
1672
|
+
const Ce = ne.workflowHistoryApprovers[0];
|
|
1673
|
+
H.status = 3, H.desc = Ce?.reason ? `Rejected reason: ${Ce.reason}` : "Rejected";
|
|
1665
1674
|
}
|
|
1666
|
-
else
|
|
1667
|
-
|
|
1675
|
+
else oe < K || K === -1 ? (H.status = 0, H.desc = "Skipped") : (H.status = 0, H.desc = "Pending Approval");
|
|
1676
|
+
ne && ne.status;
|
|
1668
1677
|
}
|
|
1669
|
-
return
|
|
1678
|
+
return H;
|
|
1670
1679
|
});
|
|
1671
|
-
},
|
|
1672
|
-
async function
|
|
1680
|
+
}, J = m([]), ee = m(!1), M = m(!1), Z = m(!1), se = m(!1);
|
|
1681
|
+
async function V() {
|
|
1673
1682
|
const I = await r.getBtnList();
|
|
1674
1683
|
u.value.actions = u.value.actions?.filter((L) => {
|
|
1675
1684
|
const K = I.find((P) => P.button === L.title);
|
|
1676
1685
|
return K ? K.isShow : !0;
|
|
1677
|
-
}), ee.value = I.find((L) => L.button === "IsGlobal")?.isShow ?? !1, M.value = I.find((L) => L.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((L) => L.button === "AssignList")?.isShow ?? !1,
|
|
1686
|
+
}), ee.value = I.find((L) => L.button === "IsGlobal")?.isShow ?? !1, M.value = I.find((L) => L.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((L) => L.button === "AssignList")?.isShow ?? !1, se.value = I.find((L) => L.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1678
1687
|
}
|
|
1679
|
-
const
|
|
1680
|
-
async function
|
|
1681
|
-
p.value = !0, r = new Ue().setPageActionType(
|
|
1688
|
+
const w = m([]);
|
|
1689
|
+
async function k() {
|
|
1690
|
+
p.value = !0, r = new Ue().setPageActionType(me.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
|
|
1682
1691
|
const I = await r.getFiles();
|
|
1683
|
-
|
|
1692
|
+
te.value = await r.getApprovers(), O.value = await r.getCommentsHistory(), le.value = await r.getAssociator(), V();
|
|
1684
1693
|
const L = u.value.fields.requestType.modelValue;
|
|
1685
|
-
o.Test?.({ fieldValue: L, hiddenFields:
|
|
1694
|
+
o.Test?.({ fieldValue: L, hiddenFields: w }), g.value = v(u.value.fields);
|
|
1686
1695
|
for (const P in u.value.fields)
|
|
1687
1696
|
if (u.value.fields[P].widget?.widget === "File") {
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1697
|
+
const oe = g.value.find((H) => H.fieldKey === P);
|
|
1698
|
+
oe && oe.widget && (oe.widget.files = I[P] ?? []);
|
|
1690
1699
|
}
|
|
1691
1700
|
const K = await r.getProcess();
|
|
1692
|
-
|
|
1701
|
+
J.value = C(K, 0), p.value = !1;
|
|
1693
1702
|
}
|
|
1694
|
-
|
|
1703
|
+
fe(k);
|
|
1695
1704
|
async function T(I, L) {
|
|
1696
1705
|
return o[I]?.(L);
|
|
1697
1706
|
}
|
|
1698
|
-
function
|
|
1707
|
+
function A() {
|
|
1699
1708
|
return a()?.userInfo?.email_address ?? "";
|
|
1700
1709
|
}
|
|
1701
|
-
async function U(I, L, K, P,
|
|
1710
|
+
async function U(I, L, K, P, oe) {
|
|
1702
1711
|
try {
|
|
1703
1712
|
switch (L) {
|
|
1704
|
-
case
|
|
1705
|
-
const { reason:
|
|
1713
|
+
case Q.Submit:
|
|
1714
|
+
const { reason: H, ifGlobal: be } = await T(oe, {
|
|
1706
1715
|
isGlobal: ee.value
|
|
1707
1716
|
});
|
|
1708
1717
|
p.value = !0;
|
|
1709
|
-
const ke = g.value.find((De) => De.fieldKey === "approvedGrade")?.modelValue, he =
|
|
1718
|
+
const ke = g.value.find((De) => De.fieldKey === "approvedGrade")?.modelValue, he = oe === "Approve" ? "100" : "-1", ne = await Ot(
|
|
1710
1719
|
i.className,
|
|
1711
1720
|
i.workflowId,
|
|
1712
|
-
|
|
1713
|
-
|
|
1721
|
+
A(),
|
|
1722
|
+
H,
|
|
1714
1723
|
K,
|
|
1715
1724
|
he,
|
|
1716
1725
|
be,
|
|
@@ -1718,16 +1727,16 @@ const Io = /* @__PURE__ */ z({
|
|
|
1718
1727
|
approvedGrade: ke
|
|
1719
1728
|
}
|
|
1720
1729
|
);
|
|
1721
|
-
await T(`${
|
|
1730
|
+
await T(`${oe}Success`, {
|
|
1722
1731
|
workflowId: i.workflowId,
|
|
1723
|
-
res:
|
|
1732
|
+
res: ne
|
|
1724
1733
|
}), p.value = !1;
|
|
1725
|
-
const Ce =
|
|
1734
|
+
const Ce = oe === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
|
|
1726
1735
|
c?.appContext.config.globalProperties.$notification.success(
|
|
1727
1736
|
Ce
|
|
1728
|
-
),
|
|
1737
|
+
), k();
|
|
1729
1738
|
break;
|
|
1730
|
-
case
|
|
1739
|
+
case Q.Link:
|
|
1731
1740
|
try {
|
|
1732
1741
|
await o[I.eventName || ""]?.(), l.push({
|
|
1733
1742
|
name: P,
|
|
@@ -1737,13 +1746,13 @@ const Io = /* @__PURE__ */ z({
|
|
|
1737
1746
|
console.error("Error in link action trigger:", De);
|
|
1738
1747
|
}
|
|
1739
1748
|
break;
|
|
1740
|
-
case
|
|
1749
|
+
case Q.Button:
|
|
1741
1750
|
await o[I.eventName || ""]?.({
|
|
1742
|
-
approvers:
|
|
1743
|
-
associators:
|
|
1751
|
+
approvers: te,
|
|
1752
|
+
associators: le,
|
|
1744
1753
|
isShowAssignSelect: M,
|
|
1745
1754
|
isShowAssignList: Z,
|
|
1746
|
-
assignCallback:
|
|
1755
|
+
assignCallback: de,
|
|
1747
1756
|
deleteAssociatorCallback: D
|
|
1748
1757
|
});
|
|
1749
1758
|
break;
|
|
@@ -1753,8 +1762,8 @@ const Io = /* @__PURE__ */ z({
|
|
|
1753
1762
|
} catch {
|
|
1754
1763
|
}
|
|
1755
1764
|
}
|
|
1756
|
-
const R = m(""), O = m([]),
|
|
1757
|
-
async function
|
|
1765
|
+
const R = m(""), O = m([]), X = m(""), te = m([]), le = m([]);
|
|
1766
|
+
async function de(I) {
|
|
1758
1767
|
if (!I) {
|
|
1759
1768
|
c?.appContext.config.globalProperties.$message.error(
|
|
1760
1769
|
"Please select an approver"
|
|
@@ -1766,7 +1775,7 @@ const Io = /* @__PURE__ */ z({
|
|
|
1766
1775
|
"Do you want to assign the selected approver?"
|
|
1767
1776
|
);
|
|
1768
1777
|
try {
|
|
1769
|
-
await r.assignApprover(I),
|
|
1778
|
+
await r.assignApprover(I), le.value = await r.getAssociator(), V(), c?.appContext.config.globalProperties.$notification.success(
|
|
1770
1779
|
"Assign Approver clicked!"
|
|
1771
1780
|
);
|
|
1772
1781
|
} catch (L) {
|
|
@@ -1783,14 +1792,14 @@ const Io = /* @__PURE__ */ z({
|
|
|
1783
1792
|
}
|
|
1784
1793
|
async function b(I, L) {
|
|
1785
1794
|
const { Modal: K } = await import("@arco-design/web-vue");
|
|
1786
|
-
return new Promise((P,
|
|
1795
|
+
return new Promise((P, oe) => {
|
|
1787
1796
|
K.confirm({
|
|
1788
1797
|
title: I,
|
|
1789
1798
|
content: L,
|
|
1790
1799
|
okText: "OK",
|
|
1791
1800
|
cancelText: "Cancel",
|
|
1792
1801
|
onOk: () => P(!0),
|
|
1793
|
-
onCancel: () =>
|
|
1802
|
+
onCancel: () => oe()
|
|
1794
1803
|
});
|
|
1795
1804
|
});
|
|
1796
1805
|
}
|
|
@@ -1804,7 +1813,7 @@ const Io = /* @__PURE__ */ z({
|
|
|
1804
1813
|
return;
|
|
1805
1814
|
}
|
|
1806
1815
|
try {
|
|
1807
|
-
await r.deleteAssociator(I.toString()),
|
|
1816
|
+
await r.deleteAssociator(I.toString()), le.value = await r.getAssociator(), c?.appContext.config.globalProperties.$notification.success(
|
|
1808
1817
|
"Associator deleted successfully!"
|
|
1809
1818
|
);
|
|
1810
1819
|
} catch {
|
|
@@ -1813,7 +1822,7 @@ const Io = /* @__PURE__ */ z({
|
|
|
1813
1822
|
);
|
|
1814
1823
|
}
|
|
1815
1824
|
}
|
|
1816
|
-
async function
|
|
1825
|
+
async function F() {
|
|
1817
1826
|
if (!R.value.trim()) {
|
|
1818
1827
|
c?.appContext.config.globalProperties.$message.error(
|
|
1819
1828
|
"Comment cannot be empty"
|
|
@@ -1827,18 +1836,18 @@ const Io = /* @__PURE__ */ z({
|
|
|
1827
1836
|
function ce(I) {
|
|
1828
1837
|
return I ? I === "OtherInformationText" ? "Other Information" : I : "";
|
|
1829
1838
|
}
|
|
1830
|
-
const
|
|
1839
|
+
const pe = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
|
|
1831
1840
|
return r;
|
|
1832
1841
|
}, set page(I) {
|
|
1833
1842
|
r = I;
|
|
1834
|
-
}, pageData: u, _fields: g, genField: v, groupedFields:
|
|
1843
|
+
}, pageData: u, _fields: g, genField: v, groupedFields: y, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: J, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: se, reloadButtonList: V, hiddenFields: w, load: k, triggerFn: T, getApproverEmail: A, clickHandler: U, comment: R, commentsHistory: O, selectedApprover: X, approvers: te, associators: le, onAssignApprover: de, confirmDialog: b, onDeleteAssociator: D, onAddComment: F, formatTitle: ce, ActionButton: Ae, get IconDownload() {
|
|
1835
1844
|
return Nn;
|
|
1836
1845
|
}, TopBar: Ne, get formatDate() {
|
|
1837
1846
|
return Se;
|
|
1838
|
-
}, ToolTip: rt, DataWidgets:
|
|
1839
|
-
return Object.defineProperty(
|
|
1847
|
+
}, ToolTip: rt, DataWidgets: Ve };
|
|
1848
|
+
return Object.defineProperty(pe, "__isScriptSetup", { enumerable: !1, value: !0 }), pe;
|
|
1840
1849
|
}
|
|
1841
|
-
}), Po = { class: "page-container" }, No = { class: "page-body" }, Uo = { class: "detail-card" }, Do = { class: "form-fields-vertical" },
|
|
1850
|
+
}), Po = { class: "page-container" }, No = { class: "page-body" }, Uo = { class: "detail-card" }, Do = { class: "form-fields-vertical" }, Ho = { class: "detail-fields" }, Bo = { class: "detail-field" }, Fo = {
|
|
1842
1851
|
key: 0,
|
|
1843
1852
|
class: "detail-field"
|
|
1844
1853
|
}, Lo = { class: "field-label" }, Ro = {
|
|
@@ -1852,9 +1861,9 @@ const Io = /* @__PURE__ */ z({
|
|
|
1852
1861
|
class: "detail-content"
|
|
1853
1862
|
}, Mo = { class: "page-footer" }, Eo = { class: "action-container" }, zo = { class: "action-buttons" };
|
|
1854
1863
|
function Ko(t, n, a, e, o, l) {
|
|
1855
|
-
const s =
|
|
1856
|
-
|
|
1857
|
-
const r =
|
|
1864
|
+
const s = x("a-link"), c = x("a-space"), i = x("a-card");
|
|
1865
|
+
x("a-option"), x("a-select");
|
|
1866
|
+
const r = x("a-button"), u = x("a-list-item"), g = x("a-list"), v = x("a-textarea"), y = x("a-spin");
|
|
1858
1867
|
return d(), _("div", Po, [
|
|
1859
1868
|
N(e.TopBar, {
|
|
1860
1869
|
title: e.pageData.banner.title,
|
|
@@ -1862,46 +1871,46 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1862
1871
|
email: e.getApproverEmail()
|
|
1863
1872
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1864
1873
|
h("div", No, [
|
|
1865
|
-
N(
|
|
1874
|
+
N(y, {
|
|
1866
1875
|
loading: e.loading,
|
|
1867
1876
|
class: "detail-container"
|
|
1868
1877
|
}, {
|
|
1869
|
-
default:
|
|
1878
|
+
default: S(() => [
|
|
1870
1879
|
h("div", Uo, [
|
|
1871
|
-
(d(),
|
|
1880
|
+
(d(), B($e(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
|
|
1872
1881
|
h("div", Do, [
|
|
1873
|
-
(d(!0), _($, null, j(e.groupedFields, (f) => (d(),
|
|
1882
|
+
(d(!0), _($, null, j(e.groupedFields, (f) => (d(), B(i, {
|
|
1874
1883
|
key: f.name,
|
|
1875
1884
|
title: f.name,
|
|
1876
1885
|
style: { "margin-bottom": "24px" }
|
|
1877
1886
|
}, {
|
|
1878
|
-
default:
|
|
1879
|
-
h("div",
|
|
1887
|
+
default: S(() => [
|
|
1888
|
+
h("div", Ho, [
|
|
1880
1889
|
(d(!0), _($, null, j(f.fields, (p) => (d(), _("div", {
|
|
1881
1890
|
key: p.fieldKey,
|
|
1882
1891
|
class: "detail-field-wrapper"
|
|
1883
1892
|
}, [
|
|
1884
|
-
h("div",
|
|
1893
|
+
h("div", Bo, [
|
|
1885
1894
|
p.widget?.readonly ? (d(), _($, { key: 1 }, [
|
|
1886
1895
|
h("div", Lo, [
|
|
1887
|
-
|
|
1896
|
+
ae(q(e.formatTitle(p.widget?.title)) + " ", 1),
|
|
1888
1897
|
N(e.ToolTip, {
|
|
1889
1898
|
"is-visible": p.widget?.isVisible ?? !1,
|
|
1890
1899
|
"output-text": p.widget?.outputText ?? []
|
|
1891
1900
|
}, null, 8, ["is-visible", "output-text"])
|
|
1892
1901
|
]),
|
|
1893
|
-
p.widget?.widget === "File" ? (d(!0), _($, { key: 0 }, j(p.widget.files, (
|
|
1902
|
+
p.widget?.widget === "File" ? (d(!0), _($, { key: 0 }, j(p.widget.files, (C) => (d(), _("div", {
|
|
1894
1903
|
class: "field-value",
|
|
1895
|
-
key:
|
|
1904
|
+
key: C.id
|
|
1896
1905
|
}, [
|
|
1897
1906
|
N(c, null, {
|
|
1898
|
-
default:
|
|
1899
|
-
|
|
1907
|
+
default: S(() => [
|
|
1908
|
+
ae(q(C.name) + " ", 1),
|
|
1900
1909
|
N(s, {
|
|
1901
|
-
href:
|
|
1910
|
+
href: C.url,
|
|
1902
1911
|
target: "_blank"
|
|
1903
1912
|
}, {
|
|
1904
|
-
default:
|
|
1913
|
+
default: S(() => [
|
|
1905
1914
|
N(e.IconDownload, { style: { color: "#7A00E6" } })
|
|
1906
1915
|
]),
|
|
1907
1916
|
_: 2
|
|
@@ -1909,8 +1918,8 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1909
1918
|
]),
|
|
1910
1919
|
_: 2
|
|
1911
1920
|
}, 1024)
|
|
1912
|
-
]))), 128)) : (d(), _("div", Ro,
|
|
1913
|
-
], 64)) : (d(), _("div",
|
|
1921
|
+
]))), 128)) : (d(), _("div", Ro, q(p.fieldValue), 1))
|
|
1922
|
+
], 64)) : (d(), _("div", Fo, [
|
|
1914
1923
|
N(e.DataWidgets, {
|
|
1915
1924
|
ref_for: !0,
|
|
1916
1925
|
ref: "dataWidgets",
|
|
@@ -1918,7 +1927,7 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1918
1927
|
config: p,
|
|
1919
1928
|
"class-name": a.className,
|
|
1920
1929
|
modelValue: p.modelValue,
|
|
1921
|
-
"onUpdate:modelValue": (
|
|
1930
|
+
"onUpdate:modelValue": (C) => p.modelValue = C,
|
|
1922
1931
|
class: "form-field"
|
|
1923
1932
|
}, null, 8, ["name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
1924
1933
|
]))
|
|
@@ -1928,8 +1937,8 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1928
1937
|
]),
|
|
1929
1938
|
_: 2
|
|
1930
1939
|
}, 1032, ["title"]))), 128)),
|
|
1931
|
-
|
|
1932
|
-
|
|
1940
|
+
re("", !0),
|
|
1941
|
+
re("", !0),
|
|
1933
1942
|
e.isShowCommentTextArea ? (d(), _("div", Oo, [
|
|
1934
1943
|
h("div", $o, [
|
|
1935
1944
|
n[6] || (n[6] = h("div", { class: "field-label" }, "Comment", -1)),
|
|
@@ -1941,34 +1950,34 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1941
1950
|
type: "primary",
|
|
1942
1951
|
onClick: e.onAddComment
|
|
1943
1952
|
}, {
|
|
1944
|
-
default:
|
|
1945
|
-
|
|
1953
|
+
default: S(() => n[5] || (n[5] = [
|
|
1954
|
+
ae("Add Comment", -1)
|
|
1946
1955
|
])),
|
|
1947
1956
|
_: 1,
|
|
1948
1957
|
__: [5]
|
|
1949
1958
|
})
|
|
1950
1959
|
])
|
|
1951
|
-
])) :
|
|
1952
|
-
e.commentsHistory.length ? (d(),
|
|
1953
|
-
header:
|
|
1954
|
-
|
|
1960
|
+
])) : re("", !0),
|
|
1961
|
+
e.commentsHistory.length ? (d(), B(g, { key: 3 }, {
|
|
1962
|
+
header: S(() => n[7] || (n[7] = [
|
|
1963
|
+
ae(" Comments History ", -1)
|
|
1955
1964
|
])),
|
|
1956
|
-
default:
|
|
1957
|
-
(d(!0), _($, null, j(e.commentsHistory, (f) => (d(),
|
|
1965
|
+
default: S(() => [
|
|
1966
|
+
(d(!0), _($, null, j(e.commentsHistory, (f) => (d(), B(u, {
|
|
1958
1967
|
key: f.associator
|
|
1959
1968
|
}, {
|
|
1960
|
-
default:
|
|
1961
|
-
|
|
1969
|
+
default: S(() => [
|
|
1970
|
+
ae(q(f.associator) + ": " + q(f.comments) + " (" + q(e.formatDate(f.createdAt)) + ") ", 1)
|
|
1962
1971
|
]),
|
|
1963
1972
|
_: 2
|
|
1964
1973
|
}, 1024))), 128))
|
|
1965
1974
|
]),
|
|
1966
1975
|
_: 1
|
|
1967
|
-
})) :
|
|
1976
|
+
})) : re("", !0)
|
|
1968
1977
|
]),
|
|
1969
1978
|
t.$slots.content ? (d(), _("div", jo, [
|
|
1970
|
-
|
|
1971
|
-
])) :
|
|
1979
|
+
ue(t.$slots, "content", {}, void 0, !0)
|
|
1980
|
+
])) : re("", !0)
|
|
1972
1981
|
])
|
|
1973
1982
|
]),
|
|
1974
1983
|
_: 3
|
|
@@ -1976,9 +1985,9 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1976
1985
|
]),
|
|
1977
1986
|
h("div", Mo, [
|
|
1978
1987
|
h("div", Eo, [
|
|
1979
|
-
|
|
1988
|
+
ue(t.$slots, "action", {}, void 0, !0),
|
|
1980
1989
|
h("div", zo, [
|
|
1981
|
-
(d(!0), _($, null, j(e.reversedActions, (f) => (d(),
|
|
1990
|
+
(d(!0), _($, null, j(e.reversedActions, (f) => (d(), B(e.ActionButton, {
|
|
1982
1991
|
key: f.title,
|
|
1983
1992
|
loading: e.loading,
|
|
1984
1993
|
config: f,
|
|
@@ -1990,7 +1999,7 @@ function Ko(t, n, a, e, o, l) {
|
|
|
1990
1999
|
])
|
|
1991
2000
|
]);
|
|
1992
2001
|
}
|
|
1993
|
-
const Wo = /* @__PURE__ */
|
|
2002
|
+
const Wo = /* @__PURE__ */ Y(Io, [["render", Ko], ["__scopeId", "data-v-eab77026"], ["__file", "DetailView.vue"]]), Go = /* @__PURE__ */ z({
|
|
1994
2003
|
name: "ListView",
|
|
1995
2004
|
__name: "ListView",
|
|
1996
2005
|
props: {
|
|
@@ -1998,7 +2007,7 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
|
|
|
1998
2007
|
},
|
|
1999
2008
|
setup(t, { expose: n }) {
|
|
2000
2009
|
n();
|
|
2001
|
-
const a = Pe(), e = Ie(), o = Te(), l =
|
|
2010
|
+
const a = Pe(), e = Ie(), o = Te(), l = ge(), s = t, c = m(), i = ft({
|
|
2002
2011
|
current: 1,
|
|
2003
2012
|
total: 0,
|
|
2004
2013
|
pageSize: 10,
|
|
@@ -2008,11 +2017,11 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
|
|
|
2008
2017
|
filters: []
|
|
2009
2018
|
});
|
|
2010
2019
|
function r() {
|
|
2011
|
-
const b = Object.entries(
|
|
2012
|
-
const
|
|
2020
|
+
const b = Object.entries(A.value).filter(([, { value: D }]) => D && D !== "").map(([D, { value: F, operator: ce }]) => {
|
|
2021
|
+
const pe = typeof F == "string" ? F.trim() : F;
|
|
2013
2022
|
return {
|
|
2014
2023
|
key: D,
|
|
2015
|
-
value:
|
|
2024
|
+
value: pe,
|
|
2016
2025
|
operator: ce
|
|
2017
2026
|
// 根据实际需要调整操作符
|
|
2018
2027
|
};
|
|
@@ -2028,13 +2037,13 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
|
|
|
2028
2037
|
};
|
|
2029
2038
|
}
|
|
2030
2039
|
const u = E(() => ({
|
|
2031
|
-
x:
|
|
2040
|
+
x: y.value.length * 150 + 250
|
|
2032
2041
|
// 只设置横向滚动
|
|
2033
2042
|
// 移除 y 属性,让表格高度自适应
|
|
2034
2043
|
})), g = (b) => {
|
|
2035
|
-
const D = Object.entries(b).filter(([,
|
|
2044
|
+
const D = Object.entries(b).filter(([, F]) => F.widget?.column).map(([F, ce], pe) => ({
|
|
2036
2045
|
title: ce.widget.title,
|
|
2037
|
-
dataIndex:
|
|
2046
|
+
dataIndex: F.charAt(0).toLowerCase() + F.slice(1),
|
|
2038
2047
|
order: ce.order,
|
|
2039
2048
|
ellipsis: !0,
|
|
2040
2049
|
tooltip: !0,
|
|
@@ -2043,7 +2052,7 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
|
|
|
2043
2052
|
// 启用最小宽度
|
|
2044
2053
|
resizable: !0
|
|
2045
2054
|
// 启用列宽调整
|
|
2046
|
-
})).sort((
|
|
2055
|
+
})).sort((F, ce) => F.order - ce.order);
|
|
2047
2056
|
D.push({
|
|
2048
2057
|
title: "Actions",
|
|
2049
2058
|
slotName: "optional",
|
|
@@ -2052,82 +2061,82 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
|
|
|
2052
2061
|
minWidth: 200,
|
|
2053
2062
|
fixed: "right",
|
|
2054
2063
|
resizable: !1
|
|
2055
|
-
}),
|
|
2056
|
-
}, v = m([]),
|
|
2064
|
+
}), y.value = D;
|
|
2065
|
+
}, v = m([]), y = m([]), f = m(!0), p = m(!0), C = m(), J = async () => {
|
|
2057
2066
|
p.value = !0;
|
|
2058
2067
|
const b = await Nt(s.className, r());
|
|
2059
2068
|
v.value = b.data, i.total = b.totalCount, p.value = !1;
|
|
2060
2069
|
}, ee = m(!1);
|
|
2061
|
-
|
|
2070
|
+
fe(async () => {
|
|
2062
2071
|
f.value = !0;
|
|
2063
|
-
const b = new Ue().setPageActionType(
|
|
2064
|
-
c.value = await b.getPageData(), g(c.value.fields), R(c.value.fields), O(), T(c.value?.tabs?.[0]?.key || ""),
|
|
2072
|
+
const b = new Ue().setPageActionType(me.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
|
|
2073
|
+
c.value = await b.getPageData(), g(c.value.fields), R(c.value.fields), O(), T(c.value?.tabs?.[0]?.key || ""), C.value = c.value.actions, f.value = !1, ee.value = !0;
|
|
2065
2074
|
}), pt(() => {
|
|
2066
|
-
ee.value &&
|
|
2075
|
+
ee.value && J();
|
|
2067
2076
|
});
|
|
2068
2077
|
const M = (b) => {
|
|
2069
|
-
i.current = b,
|
|
2078
|
+
i.current = b, J();
|
|
2070
2079
|
}, Z = (b) => {
|
|
2071
|
-
i.pageSize = b,
|
|
2080
|
+
i.pageSize = b, J();
|
|
2072
2081
|
};
|
|
2073
|
-
function
|
|
2082
|
+
function se(b, D, F, ce, pe) {
|
|
2074
2083
|
switch (b) {
|
|
2075
|
-
case
|
|
2076
|
-
o.push({ name:
|
|
2084
|
+
case Q.Link:
|
|
2085
|
+
o.push({ name: F, params: { workflowId: pe } });
|
|
2077
2086
|
break;
|
|
2078
2087
|
default:
|
|
2079
2088
|
console.warn("Unknown action type:", b);
|
|
2080
2089
|
}
|
|
2081
2090
|
}
|
|
2082
|
-
function
|
|
2091
|
+
function V(b, D, F) {
|
|
2083
2092
|
switch (b) {
|
|
2084
|
-
case
|
|
2085
|
-
Jt(D, { filters: [{ key: "approverList", value:
|
|
2093
|
+
case Q.Submit:
|
|
2094
|
+
Jt(D, { filters: [{ key: "approverList", value: w(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
|
|
2086
2095
|
break;
|
|
2087
|
-
case
|
|
2088
|
-
o.push({ name:
|
|
2096
|
+
case Q.Link:
|
|
2097
|
+
o.push({ name: F });
|
|
2089
2098
|
break;
|
|
2090
2099
|
default:
|
|
2091
2100
|
console.warn("Unknown action type:", b);
|
|
2092
2101
|
}
|
|
2093
2102
|
}
|
|
2094
|
-
function
|
|
2103
|
+
function w() {
|
|
2095
2104
|
return a()?.userInfo?.email_address ?? "";
|
|
2096
2105
|
}
|
|
2097
|
-
function
|
|
2106
|
+
function k(b, D) {
|
|
2098
2107
|
return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, D);
|
|
2099
2108
|
}
|
|
2100
2109
|
function T(b) {
|
|
2101
|
-
const D = c.value?.tabs?.find((
|
|
2102
|
-
i.filters = D?.map((
|
|
2103
|
-
...
|
|
2104
|
-
value:
|
|
2105
|
-
})) || [], i.current = 1,
|
|
2110
|
+
const D = c.value?.tabs?.find((F) => F.key === b)?.filters;
|
|
2111
|
+
i.filters = D?.map((F) => ({
|
|
2112
|
+
...F,
|
|
2113
|
+
value: k(F.value, w())
|
|
2114
|
+
})) || [], i.current = 1, J();
|
|
2106
2115
|
}
|
|
2107
|
-
const
|
|
2116
|
+
const A = m({}), U = m([]);
|
|
2108
2117
|
function R(b) {
|
|
2109
2118
|
if (!b) return [];
|
|
2110
|
-
U.value = Object.entries(b).filter(([, D]) => D.isFiltered).map(([D,
|
|
2119
|
+
U.value = Object.entries(b).filter(([, D]) => D.isFiltered).map(([D, F]) => ({ fieldKey: D, fieldConfig: F }));
|
|
2111
2120
|
}
|
|
2112
2121
|
const O = () => {
|
|
2113
2122
|
const b = {};
|
|
2114
|
-
U.value.forEach(({ fieldKey: D, fieldConfig:
|
|
2115
|
-
b[D] = {}, b[D].value =
|
|
2116
|
-
}),
|
|
2117
|
-
},
|
|
2118
|
-
i.current = 1,
|
|
2119
|
-
},
|
|
2120
|
-
c.value && O(),
|
|
2123
|
+
U.value.forEach(({ fieldKey: D, fieldConfig: F }) => {
|
|
2124
|
+
b[D] = {}, b[D].value = F.modelValue, b[D].operator = F.operator;
|
|
2125
|
+
}), A.value = b;
|
|
2126
|
+
}, X = () => {
|
|
2127
|
+
i.current = 1, J();
|
|
2128
|
+
}, te = () => {
|
|
2129
|
+
c.value && O(), X();
|
|
2121
2130
|
};
|
|
2122
|
-
function
|
|
2131
|
+
function le(b, D) {
|
|
2123
2132
|
return !(b.location !== "InTable" || b.title === "Update" && (D.status === 100 || D.status === -1));
|
|
2124
2133
|
}
|
|
2125
|
-
const
|
|
2126
|
-
return Object.defineProperty(
|
|
2134
|
+
const de = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: v, _columns: y, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: se, createHandler: V, getApproverEmail: w, replaceEmail: k, tabHandler: T, searchForm: A, searchableFields: U, mapSearchableFields: R, initSearchForm: O, handleSearch: X, handleReset: te, judgeHiddenActions: le, ActionButton: Ae, DataWidgets: Ve, TopBar: Ne };
|
|
2135
|
+
return Object.defineProperty(de, "__isScriptSetup", { enumerable: !1, value: !0 }), de;
|
|
2127
2136
|
}
|
|
2128
2137
|
}), qo = { class: "list-container" }, Yo = { class: "query-title" };
|
|
2129
2138
|
function Qo(t, n, a, e, o, l) {
|
|
2130
|
-
const s =
|
|
2139
|
+
const s = x("a-space"), c = x("a-col"), i = x("a-button"), r = x("a-row"), u = x("a-card"), g = x("a-tab-pane"), v = x("a-tabs"), y = x("a-table");
|
|
2131
2140
|
return d(), _("div", qo, [
|
|
2132
2141
|
N(e.TopBar, {
|
|
2133
2142
|
title: e.pageData?.banner.title ?? "",
|
|
@@ -2135,32 +2144,32 @@ function Qo(t, n, a, e, o, l) {
|
|
|
2135
2144
|
email: e.getApproverEmail()
|
|
2136
2145
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
2137
2146
|
N(u, null, {
|
|
2138
|
-
default:
|
|
2147
|
+
default: S(() => [
|
|
2139
2148
|
h("div", Yo, [
|
|
2140
2149
|
n[0] || (n[0] = h("h3", null, "Search Conditions", -1)),
|
|
2141
2150
|
N(s, { size: "medium" }, {
|
|
2142
|
-
default:
|
|
2151
|
+
default: S(() => [
|
|
2143
2152
|
(d(!0), _($, null, j(e.actions, (f) => (d(), _($, {
|
|
2144
2153
|
key: f.title
|
|
2145
2154
|
}, [
|
|
2146
|
-
f.location === "InOperation" ? (d(),
|
|
2155
|
+
f.location === "InOperation" ? (d(), B(e.ActionButton, {
|
|
2147
2156
|
key: 0,
|
|
2148
2157
|
config: f,
|
|
2149
2158
|
onClick: e.createHandler
|
|
2150
|
-
}, null, 8, ["config"])) :
|
|
2159
|
+
}, null, 8, ["config"])) : re("", !0)
|
|
2151
2160
|
], 64))), 128))
|
|
2152
2161
|
]),
|
|
2153
2162
|
_: 1
|
|
2154
2163
|
})
|
|
2155
2164
|
]),
|
|
2156
2165
|
N(r, { gutter: [24, 20] }, {
|
|
2157
|
-
default:
|
|
2158
|
-
(d(!0), _($, null, j(e.searchableFields, (f) => (d(),
|
|
2166
|
+
default: S(() => [
|
|
2167
|
+
(d(!0), _($, null, j(e.searchableFields, (f) => (d(), B(c, {
|
|
2159
2168
|
key: f.fieldKey,
|
|
2160
2169
|
span: 6,
|
|
2161
2170
|
class: "search-col"
|
|
2162
2171
|
}, {
|
|
2163
|
-
default:
|
|
2172
|
+
default: S(() => [
|
|
2164
2173
|
N(e.DataWidgets, {
|
|
2165
2174
|
name: f.fieldKey,
|
|
2166
2175
|
config: f.fieldConfig,
|
|
@@ -2175,16 +2184,16 @@ function Qo(t, n, a, e, o, l) {
|
|
|
2175
2184
|
span: 6,
|
|
2176
2185
|
class: "search-col form-buttons"
|
|
2177
2186
|
}, {
|
|
2178
|
-
default:
|
|
2187
|
+
default: S(() => [
|
|
2179
2188
|
N(s, { size: "medium" }, {
|
|
2180
|
-
default:
|
|
2189
|
+
default: S(() => [
|
|
2181
2190
|
N(i, {
|
|
2182
2191
|
type: "primary",
|
|
2183
2192
|
size: "medium",
|
|
2184
2193
|
onClick: e.handleSearch
|
|
2185
2194
|
}, {
|
|
2186
|
-
default:
|
|
2187
|
-
|
|
2195
|
+
default: S(() => n[1] || (n[1] = [
|
|
2196
|
+
ae(" Search ", -1)
|
|
2188
2197
|
])),
|
|
2189
2198
|
_: 1,
|
|
2190
2199
|
__: [1]
|
|
@@ -2193,8 +2202,8 @@ function Qo(t, n, a, e, o, l) {
|
|
|
2193
2202
|
size: "medium",
|
|
2194
2203
|
onClick: e.handleReset
|
|
2195
2204
|
}, {
|
|
2196
|
-
default:
|
|
2197
|
-
|
|
2205
|
+
default: S(() => n[2] || (n[2] = [
|
|
2206
|
+
ae(" Reset ", -1)
|
|
2198
2207
|
])),
|
|
2199
2208
|
_: 1,
|
|
2200
2209
|
__: [2]
|
|
@@ -2215,15 +2224,15 @@ function Qo(t, n, a, e, o, l) {
|
|
|
2215
2224
|
size: "large",
|
|
2216
2225
|
onTabClick: e.tabHandler
|
|
2217
2226
|
}, {
|
|
2218
|
-
default:
|
|
2219
|
-
(d(!0), _($, null, j(e.pageData?.tabs, (f) => (d(),
|
|
2227
|
+
default: S(() => [
|
|
2228
|
+
(d(!0), _($, null, j(e.pageData?.tabs, (f) => (d(), B(g, {
|
|
2220
2229
|
key: f.key,
|
|
2221
2230
|
title: f.title
|
|
2222
2231
|
}, null, 8, ["title"]))), 128))
|
|
2223
2232
|
]),
|
|
2224
2233
|
_: 1
|
|
2225
2234
|
}),
|
|
2226
|
-
N(
|
|
2235
|
+
N(y, {
|
|
2227
2236
|
columns: e._columns,
|
|
2228
2237
|
data: e._data,
|
|
2229
2238
|
stripe: "",
|
|
@@ -2242,18 +2251,18 @@ function Qo(t, n, a, e, o, l) {
|
|
|
2242
2251
|
onPageChange: e.pageChangeHandler,
|
|
2243
2252
|
onPageSizeChange: e.pageSizeChangeHandler
|
|
2244
2253
|
}, {
|
|
2245
|
-
optional:
|
|
2254
|
+
optional: S(({ record: f }) => [
|
|
2246
2255
|
N(s, { size: "small" }, {
|
|
2247
|
-
default:
|
|
2256
|
+
default: S(() => [
|
|
2248
2257
|
(d(!0), _($, null, j(e.actions, (p) => (d(), _($, {
|
|
2249
2258
|
key: p.title
|
|
2250
2259
|
}, [
|
|
2251
|
-
e.judgeHiddenActions(p, f) ? (d(),
|
|
2260
|
+
e.judgeHiddenActions(p, f) ? (d(), B(e.ActionButton, {
|
|
2252
2261
|
key: 0,
|
|
2253
2262
|
config: p,
|
|
2254
2263
|
size: "small",
|
|
2255
|
-
onClick: (...
|
|
2256
|
-
}, null, 8, ["config", "onClick"])) :
|
|
2264
|
+
onClick: (...C) => e.clickHandler(...C, f.workflowId)
|
|
2265
|
+
}, null, 8, ["config", "onClick"])) : re("", !0)
|
|
2257
2266
|
], 64))), 128))
|
|
2258
2267
|
]),
|
|
2259
2268
|
_: 2
|
|
@@ -2263,9 +2272,9 @@ function Qo(t, n, a, e, o, l) {
|
|
|
2263
2272
|
}, 8, ["columns", "data", "pagination", "loading", "scroll"])
|
|
2264
2273
|
]);
|
|
2265
2274
|
}
|
|
2266
|
-
const Jo = /* @__PURE__ */
|
|
2275
|
+
const Jo = /* @__PURE__ */ Y(Go, [["render", Qo], ["__scopeId", "data-v-710cb888"], ["__file", "ListView.vue"]]), oa = {
|
|
2267
2276
|
install(t, n = {}) {
|
|
2268
|
-
n.config && kt(n.config), n.router && t.provide(st, n.router), n.pinia && t.provide(qn, n.pinia), n.useBpmStore && t.provide(lt, n.useBpmStore), n.useSvrStore && t.provide(ct, n.useSvrStore), n.triggers && t.provide(it, n.triggers), n.customComps && t.provide(dt, n.customComps), t.component("CreateView", go), t.component("UpdateView",
|
|
2277
|
+
n.config && kt(n.config), n.router && t.provide(st, n.router), n.pinia && t.provide(qn, n.pinia), n.useBpmStore && t.provide(lt, n.useBpmStore), n.useSvrStore && t.provide(ct, n.useSvrStore), n.triggers && t.provide(it, n.triggers), n.customComps && t.provide(dt, n.customComps), t.component("CreateView", go), t.component("UpdateView", Ao), t.component("DetailView", Wo), t.component("ListView", Jo);
|
|
2269
2278
|
}
|
|
2270
2279
|
};
|
|
2271
2280
|
export {
|