@chase-shao/vue-component-lib 1.2.81 → 1.2.83
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 +144 -142
- 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 pe, defineComponent as z, mergeModels as ce, useModel as ye, resolveComponent as k, createBlock as B, openBlock as u, onMounted as ue, computed as X, withCtx as S, createElementBlock as V, Fragment as
|
|
1
|
+
import { ref as m, getCurrentInstance as pe, defineComponent as z, mergeModels as ce, useModel as ye, resolveComponent as k, createBlock as B, openBlock as u, onMounted as ue, computed as X, withCtx as S, createElementBlock as V, Fragment as $, renderList as G, createVNode as H, nextTick as nt, createTextVNode as re, useTemplateRef as He, createElementVNode as x, createCommentVNode as ae, toDisplayString as te, resolveDynamicComponent as Be, renderSlot as de, inject as me, normalizeStyle as ot, normalizeClass as at, reactive 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";
|
|
@@ -52,12 +52,12 @@ let De = {};
|
|
|
52
52
|
function gt(t) {
|
|
53
53
|
De = { ...De, ...t };
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Fe() {
|
|
56
56
|
return De;
|
|
57
57
|
}
|
|
58
58
|
const _t = pe();
|
|
59
|
-
function
|
|
60
|
-
const t =
|
|
59
|
+
function Ge() {
|
|
60
|
+
const t = Fe();
|
|
61
61
|
return {
|
|
62
62
|
apiBase: t.apiBase || void 0 || "",
|
|
63
63
|
appSecret: t.appSecret || void 0 || ""
|
|
@@ -74,8 +74,8 @@ function vt(t) {
|
|
|
74
74
|
return _t?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
const { apiBase: t } =
|
|
77
|
+
function qe() {
|
|
78
|
+
const { apiBase: t } = Ge(), n = it.create({
|
|
79
79
|
baseURL: t,
|
|
80
80
|
timeout: 20 * 1e3,
|
|
81
81
|
// 20s
|
|
@@ -84,8 +84,8 @@ function Ye() {
|
|
|
84
84
|
});
|
|
85
85
|
return n.interceptors.response.use(vt), n;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
88
|
-
const { apiBase: t, appSecret: n } =
|
|
87
|
+
const Ye = async () => {
|
|
88
|
+
const { apiBase: t, appSecret: n } = Ge(), a = qe(), e = ut();
|
|
89
89
|
return await pt(e, "token", async () => {
|
|
90
90
|
const o = await a.get(`${t}/GenerateToken`, {
|
|
91
91
|
params: {
|
|
@@ -97,8 +97,8 @@ const Je = async () => {
|
|
|
97
97
|
e.token = void 0;
|
|
98
98
|
}, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
|
|
99
99
|
});
|
|
100
|
-
},
|
|
101
|
-
const t = await
|
|
100
|
+
}, E = async () => {
|
|
101
|
+
const t = await Ye(), n = qe();
|
|
102
102
|
return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
|
|
103
103
|
}, Pe = {
|
|
104
104
|
CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
@@ -123,10 +123,10 @@ function yt() {
|
|
|
123
123
|
}
|
|
124
124
|
return Ne(ht);
|
|
125
125
|
}
|
|
126
|
-
const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
129
|
-
return
|
|
126
|
+
const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), $e = { randomUUID: wt };
|
|
127
|
+
function Je(t, n, a) {
|
|
128
|
+
if ($e.randomUUID && !t)
|
|
129
|
+
return $e.randomUUID();
|
|
130
130
|
t = t || {};
|
|
131
131
|
const e = t.random ?? t.rng?.() ?? yt();
|
|
132
132
|
if (e.length < 16)
|
|
@@ -158,7 +158,7 @@ function kt(t, n, a) {
|
|
|
158
158
|
const l = o.showToRoles.split(",").map((c) => c.trim()), s = a.bpmStore().employeeInfo.roleList.some((c) => l.includes(c.name)) || o.showToRoles === "";
|
|
159
159
|
if (o.widget === "Tab") {
|
|
160
160
|
e.tabs || (e.tabs = []), s && e.tabs.push({
|
|
161
|
-
key:
|
|
161
|
+
key: Je(),
|
|
162
162
|
title: o.title,
|
|
163
163
|
filters: o.filters ? JSON.parse(o.filters) : [],
|
|
164
164
|
order: o.order
|
|
@@ -181,7 +181,7 @@ function kt(t, n, a) {
|
|
|
181
181
|
eventName: o.eventName
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
} else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle =
|
|
184
|
+
} else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = Re(o.subTitle, t.workflowId.propertyValue));
|
|
185
185
|
}), e.tabs && (e.tabs = e.tabs.sort((o, l) => o.order - l.order)), Object.entries(t).forEach(([o, l]) => {
|
|
186
186
|
if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || n !== 3 && o === "workflowId")
|
|
187
187
|
return;
|
|
@@ -203,7 +203,7 @@ function kt(t, n, a) {
|
|
|
203
203
|
s.modelValue = i;
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
206
|
-
o === "onBehalf" && n === 0 && (s.modelValue = Pe.CurrentUserEmail(a)), n === 1 && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
|
|
206
|
+
o === "onBehalf" && n === 0 && (s.modelValue = Pe.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" ? s.widget = {
|
|
208
208
|
...r,
|
|
209
209
|
column: !0
|
|
@@ -217,12 +217,12 @@ function kt(t, n, a) {
|
|
|
217
217
|
}), e.fields[o] = s;
|
|
218
218
|
}), e;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
const l = await (await
|
|
220
|
+
const Ee = async (t, n, a, e) => {
|
|
221
|
+
const l = await (await E()).get(`/General/${n}/${t}/page`, { params: e });
|
|
222
222
|
return kt(l?.data, t, a);
|
|
223
|
-
}, Ct = async (t, n, a) => (await (await
|
|
223
|
+
}, Ct = async (t, n, a) => (await (await E()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
|
|
224
224
|
async function St(t, n) {
|
|
225
|
-
const e = await (await
|
|
225
|
+
const e = await (await E()).post(`/General/${t}/list`, n);
|
|
226
226
|
return {
|
|
227
227
|
data: e.data.data,
|
|
228
228
|
totalCount: e.data.totalCount
|
|
@@ -242,17 +242,17 @@ async function St(t, n) {
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
async function xt(t, n, a) {
|
|
245
|
-
return (await (await
|
|
245
|
+
return (await (await E()).post(a, n, {
|
|
246
246
|
params: {
|
|
247
247
|
className: t
|
|
248
248
|
}
|
|
249
249
|
})).data;
|
|
250
250
|
}
|
|
251
251
|
async function At(t, n, a, e) {
|
|
252
|
-
const o = await
|
|
252
|
+
const o = await E(), l = Re(e, n);
|
|
253
253
|
return (await o.put(l, a))?.data;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Re(t, n) {
|
|
256
256
|
return t.replace(/{WorkflowId}/g, n);
|
|
257
257
|
}
|
|
258
258
|
function Vt(t, n) {
|
|
@@ -271,62 +271,62 @@ function Nt(t, n) {
|
|
|
271
271
|
return t.replace(/{ClassName}/g, encodeURIComponent(n));
|
|
272
272
|
}
|
|
273
273
|
async function Ut(t, n, a, e, o, l, s, c) {
|
|
274
|
-
const i = await
|
|
275
|
-
let r =
|
|
274
|
+
const i = await E();
|
|
275
|
+
let r = Re(l, n);
|
|
276
276
|
return r = Vt(r, a), r = Tt(r, e), r = It(r, s), r = Pt(r, c), r = Nt(r, t), (await i.put(r, o))?.data;
|
|
277
277
|
}
|
|
278
278
|
async function Dt(t, n) {
|
|
279
|
-
const o = (await (await
|
|
279
|
+
const o = (await (await E()).get(t, { params: { value: n } }))?.data;
|
|
280
280
|
return Object.entries(o).map(([l, s]) => ({
|
|
281
281
|
value: l,
|
|
282
282
|
label: s
|
|
283
283
|
}));
|
|
284
284
|
}
|
|
285
285
|
async function Ht(t, n) {
|
|
286
|
-
return (await (await
|
|
286
|
+
return (await (await E()).get(`/General/${t}/${n}/process`))?.data;
|
|
287
287
|
}
|
|
288
288
|
function Bt(t) {
|
|
289
289
|
return {
|
|
290
|
-
uid: t.id ??
|
|
290
|
+
uid: t.id ?? Je(),
|
|
291
291
|
name: t.attachmentName ?? "unknown",
|
|
292
292
|
url: t.attachmentKey ?? ""
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
async function Ft(t, n) {
|
|
296
|
-
return (await (await
|
|
296
|
+
return (await (await E()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
|
|
297
297
|
const { category: c } = s;
|
|
298
298
|
return l[c] || (l[c] = []), l[c].push(Bt(s)), l;
|
|
299
299
|
}, {});
|
|
300
300
|
}
|
|
301
301
|
async function Rt(t, n) {
|
|
302
|
-
return (await
|
|
302
|
+
return (await E()).post(`/General/${t}/${n}/delete/attachment`);
|
|
303
303
|
}
|
|
304
304
|
async function Lt() {
|
|
305
|
-
const n = await (await
|
|
305
|
+
const n = await (await E()).get("/Grading/dropdown/approvers");
|
|
306
306
|
return Object.entries(n?.data).map(([a, e]) => ({
|
|
307
307
|
label: a,
|
|
308
308
|
value: e
|
|
309
309
|
}));
|
|
310
310
|
}
|
|
311
311
|
async function jt(t, n) {
|
|
312
|
-
return await (await
|
|
312
|
+
return await (await E()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
|
|
313
313
|
}
|
|
314
314
|
async function Mt(t, n, a) {
|
|
315
|
-
return await (await
|
|
315
|
+
return await (await E()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
|
|
316
316
|
headers: { "Content-Type": "application/json;charset=UTF-8" }
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
async function Ot(t) {
|
|
320
|
-
return (await (await
|
|
320
|
+
return (await (await E()).get(`Grading/GetComments/${t}`))?.data;
|
|
321
321
|
}
|
|
322
322
|
async function $t(t) {
|
|
323
|
-
return (await (await
|
|
323
|
+
return (await (await E()).get(`Grading/GetAssociator/${t}`))?.data;
|
|
324
324
|
}
|
|
325
325
|
async function Et(t) {
|
|
326
|
-
return await (await
|
|
326
|
+
return await (await E()).delete(`Grading/DeleteAssociator/${t}`);
|
|
327
327
|
}
|
|
328
328
|
async function Kt(t, n = null) {
|
|
329
|
-
const e = await (await
|
|
329
|
+
const e = await (await E()).post(t, n, {
|
|
330
330
|
responseType: "blob"
|
|
331
331
|
});
|
|
332
332
|
mt(e?.data, "WorkflowData.xlsx");
|
|
@@ -392,7 +392,7 @@ function qt(t, n, a, e, o, l) {
|
|
|
392
392
|
onChange: e.changeHandler
|
|
393
393
|
}, null, 8, ["modelValue", "disabled"]);
|
|
394
394
|
}
|
|
395
|
-
const
|
|
395
|
+
const Ke = /* @__PURE__ */ Y(Gt, [["render", qt], ["__file", "InputText.vue"]]), Yt = /* @__PURE__ */ z({
|
|
396
396
|
__name: "InputNumber",
|
|
397
397
|
props: /* @__PURE__ */ ce({
|
|
398
398
|
fieldKey: {},
|
|
@@ -501,7 +501,7 @@ function Zt(t, n, a, e, o, l) {
|
|
|
501
501
|
onChange: e.changeHandler
|
|
502
502
|
}, {
|
|
503
503
|
default: S(() => [
|
|
504
|
-
(u(!0), V(
|
|
504
|
+
(u(!0), V($, null, G(e._options, (i) => (u(), B(s, {
|
|
505
505
|
key: i.value,
|
|
506
506
|
value: i.value,
|
|
507
507
|
label: i.label
|
|
@@ -510,7 +510,7 @@ function Zt(t, n, a, e, o, l) {
|
|
|
510
510
|
_: 1
|
|
511
511
|
}, 8, ["modelValue", "loading", "disabled"]);
|
|
512
512
|
}
|
|
513
|
-
const
|
|
513
|
+
const ze = /* @__PURE__ */ Y(Qt, [["render", Zt], ["__file", "SelectList.vue"]]), en = /* @__PURE__ */ z({
|
|
514
514
|
__name: "Cascader",
|
|
515
515
|
props: {
|
|
516
516
|
modelValue: {},
|
|
@@ -525,7 +525,7 @@ const We = /* @__PURE__ */ Y(Qt, [["render", Zt], ["__file", "SelectList.vue"]])
|
|
|
525
525
|
if (e.config) {
|
|
526
526
|
const r = e.config.dataSourceProvider;
|
|
527
527
|
if (r) {
|
|
528
|
-
const g = await (await
|
|
528
|
+
const g = await (await E()).get(r);
|
|
529
529
|
l.value = g.data;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
@@ -574,12 +574,12 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
|
|
|
574
574
|
setup(t, { expose: n, emit: a }) {
|
|
575
575
|
const e = t, o = a, l = m({});
|
|
576
576
|
ue(async () => {
|
|
577
|
-
const h = await
|
|
577
|
+
const h = await Ye();
|
|
578
578
|
l.value = {
|
|
579
579
|
Authorization: `Bearer ${h}`
|
|
580
580
|
};
|
|
581
581
|
});
|
|
582
|
-
const s = (h) => ge(e.validations, h), c =
|
|
582
|
+
const s = (h) => ge(e.validations, h), c = Fe(), i = c.apiBase, r = m(null), d = m("");
|
|
583
583
|
function g(h, y, T) {
|
|
584
584
|
return h.replace(/{WorkflowId}/g, y).replace(/{ClassName}/g, T);
|
|
585
585
|
}
|
|
@@ -609,15 +609,15 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
|
|
|
609
609
|
}
|
|
610
610
|
const p = m(null), C = m(null), J = (h) => {
|
|
611
611
|
p.value && (p.value(h), p.value = null, C.value = null);
|
|
612
|
-
},
|
|
612
|
+
}, Z = (h) => {
|
|
613
613
|
C.value && (C.value(h), p.value = null, C.value = null);
|
|
614
|
-
},
|
|
615
|
-
|
|
614
|
+
}, M = m([]), Q = (h) => {
|
|
615
|
+
M.value = h.filter((y) => y.status === "init");
|
|
616
616
|
};
|
|
617
617
|
n({
|
|
618
618
|
submit(h) {
|
|
619
619
|
return new Promise((y, T) => {
|
|
620
|
-
r.value ? (e.config.uploadURL && (d.value = h), p.value = y, C.value = T,
|
|
620
|
+
r.value ? (e.config.uploadURL && (d.value = h), p.value = y, C.value = T, M.value.length ? nt(() => {
|
|
621
621
|
r.value?.submit();
|
|
622
622
|
}) : y(h)) : y(h);
|
|
623
623
|
});
|
|
@@ -627,7 +627,7 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
|
|
|
627
627
|
return o("error", h.res ? "" : h.errorMessages), h.res;
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
const ne = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: d, replaceIdAndClassName: g, action: _, submit: b, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: J, handleUploadError:
|
|
630
|
+
const ne = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: d, replaceIdAndClassName: g, action: _, submit: b, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: J, handleUploadError: Z, readyFiles: M, onChange: Q };
|
|
631
631
|
return Object.defineProperty(ne, "__isScriptSetup", { enumerable: !1, value: !0 }), ne;
|
|
632
632
|
}
|
|
633
633
|
});
|
|
@@ -767,11 +767,11 @@ const fn = /* @__PURE__ */ Y(dn, [["render", un], ["__file", "CheckBox.vue"]]),
|
|
|
767
767
|
const e = t, o = a, l = ye(t, "modelValue"), s = He("widgetRef"), c = X(() => {
|
|
768
768
|
switch (e.config?.widget?.widget) {
|
|
769
769
|
case "TextBox":
|
|
770
|
-
return
|
|
770
|
+
return Ke;
|
|
771
771
|
case "Number":
|
|
772
772
|
return Xt;
|
|
773
773
|
case "SelectList":
|
|
774
|
-
return
|
|
774
|
+
return ze;
|
|
775
775
|
case "Cascade":
|
|
776
776
|
return nn;
|
|
777
777
|
case "File":
|
|
@@ -779,11 +779,11 @@ const fn = /* @__PURE__ */ Y(dn, [["render", un], ["__file", "CheckBox.vue"]]),
|
|
|
779
779
|
case "TextArea":
|
|
780
780
|
return cn;
|
|
781
781
|
case "DropDown":
|
|
782
|
-
return
|
|
782
|
+
return ze;
|
|
783
783
|
case "CheckBox":
|
|
784
784
|
return fn;
|
|
785
785
|
default:
|
|
786
|
-
return
|
|
786
|
+
return Ke;
|
|
787
787
|
}
|
|
788
788
|
}), i = m(""), r = (b) => {
|
|
789
789
|
i.value = b;
|
|
@@ -840,7 +840,7 @@ function vn(t, n, a, e, o, l) {
|
|
|
840
840
|
])
|
|
841
841
|
]);
|
|
842
842
|
}
|
|
843
|
-
const
|
|
843
|
+
const Le = /* @__PURE__ */ Y(pn, [["render", vn], ["__scopeId", "data-v-4bc9e33b"], ["__file", "index.vue"]]), bn = /* @__PURE__ */ z({
|
|
844
844
|
__name: "SubmitButton",
|
|
845
845
|
props: {
|
|
846
846
|
url: {},
|
|
@@ -871,7 +871,7 @@ function hn(t, n, a, e, o, l) {
|
|
|
871
871
|
_: 3
|
|
872
872
|
}, 8, ["loading"]);
|
|
873
873
|
}
|
|
874
|
-
const
|
|
874
|
+
const We = /* @__PURE__ */ Y(bn, [["render", hn], ["__file", "SubmitButton.vue"]]), yn = /* @__PURE__ */ z({
|
|
875
875
|
__name: "DetailLink",
|
|
876
876
|
props: {
|
|
877
877
|
url: {},
|
|
@@ -914,11 +914,11 @@ const kn = /* @__PURE__ */ Y(yn, [["render", wn], ["__file", "DetailLink.vue"]])
|
|
|
914
914
|
const s = X(() => {
|
|
915
915
|
switch (e.config.location) {
|
|
916
916
|
case "InOperation":
|
|
917
|
-
return
|
|
917
|
+
return We;
|
|
918
918
|
case "InTable":
|
|
919
919
|
return kn;
|
|
920
920
|
default:
|
|
921
|
-
return
|
|
921
|
+
return We;
|
|
922
922
|
}
|
|
923
923
|
}), c = X(() => e.config.widget === q.Submit ? e.config.requestUrl ?? "" : e.config.widget === q.Link ? e.config.redirectUrl ?? "" : ""), i = X(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
|
|
924
924
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
@@ -937,22 +937,22 @@ function Sn(t, n, a, e, o, l) {
|
|
|
937
937
|
_: 1
|
|
938
938
|
}, 8, ["url", "redirect-type", "loading"]);
|
|
939
939
|
}
|
|
940
|
-
const Se = /* @__PURE__ */ Y(Cn, [["render", Sn], ["__file", "index.vue"]]),
|
|
940
|
+
const Se = /* @__PURE__ */ Y(Cn, [["render", Sn], ["__file", "index.vue"]]), Xe = Symbol("library-router");
|
|
941
941
|
function xe() {
|
|
942
|
-
const t = me(
|
|
942
|
+
const t = me(Xe, null);
|
|
943
943
|
return t || dt();
|
|
944
944
|
}
|
|
945
|
-
const
|
|
946
|
-
function
|
|
947
|
-
const t = me(
|
|
945
|
+
const Qe = Symbol("library-triggers");
|
|
946
|
+
function je() {
|
|
947
|
+
const t = me(Qe, null);
|
|
948
948
|
return t || {};
|
|
949
949
|
}
|
|
950
|
-
const xn = Symbol("library-pinia"),
|
|
950
|
+
const xn = Symbol("library-pinia"), Ze = Symbol("library-bpmStore"), et = Symbol("library-svrStore");
|
|
951
951
|
function Ae() {
|
|
952
|
-
return me(
|
|
952
|
+
return me(Ze, null);
|
|
953
953
|
}
|
|
954
954
|
function Ve() {
|
|
955
|
-
return me(
|
|
955
|
+
return me(et, null);
|
|
956
956
|
}
|
|
957
957
|
const An = /* @__PURE__ */ z({
|
|
958
958
|
__name: "TopBar",
|
|
@@ -997,8 +997,8 @@ function Dn(t, n, a, e, o, l) {
|
|
|
997
997
|
]);
|
|
998
998
|
}
|
|
999
999
|
const Te = /* @__PURE__ */ Y(An, [["render", Dn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
1000
|
-
function
|
|
1001
|
-
const n =
|
|
1000
|
+
function Me(t) {
|
|
1001
|
+
const n = Fe(), a = [];
|
|
1002
1002
|
if (n.fieldsGroup) {
|
|
1003
1003
|
n.fieldsGroup.forEach((l) => {
|
|
1004
1004
|
const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
|
|
@@ -1047,7 +1047,7 @@ class Ce {
|
|
|
1047
1047
|
this.pageActionType = n, this.className = a, this.store = e, o && (this.opt = o);
|
|
1048
1048
|
}
|
|
1049
1049
|
getPageData() {
|
|
1050
|
-
return this.opt ?
|
|
1050
|
+
return this.opt ? Ee(this.pageActionType, this.className, this.store, this.opt) : Ee(this.pageActionType, this.className, this.store);
|
|
1051
1051
|
}
|
|
1052
1052
|
getBtnList() {
|
|
1053
1053
|
return Ct(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
|
|
@@ -1088,7 +1088,7 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1088
1088
|
},
|
|
1089
1089
|
setup(t, { expose: n }) {
|
|
1090
1090
|
n();
|
|
1091
|
-
const a = Ae(), e = Ve(), o = xe(), l =
|
|
1091
|
+
const a = Ae(), e = Ve(), o = xe(), l = je(), s = He("dataWidgets"), c = pe(), i = t, r = m({
|
|
1092
1092
|
pageType: "",
|
|
1093
1093
|
fields: {},
|
|
1094
1094
|
globalValidations: [],
|
|
@@ -1101,12 +1101,12 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1101
1101
|
return T ? Object.entries(T).map(([w, U]) => ({
|
|
1102
1102
|
fieldKey: w,
|
|
1103
1103
|
...U
|
|
1104
|
-
})).filter((w) => w.widget && w.widget.widget !== "Hidden").filter((w) => !
|
|
1104
|
+
})).filter((w) => w.widget && w.widget.widget !== "Hidden").filter((w) => !Q.value.includes(w.fieldKey)) : [];
|
|
1105
1105
|
}
|
|
1106
1106
|
function b(T) {
|
|
1107
1107
|
return T ? Object.entries(T).filter(([w, U]) => U.dependent).reduce((w, [U, j]) => (w[U] = j.dependent, w), {}) : [];
|
|
1108
1108
|
}
|
|
1109
|
-
const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p =
|
|
1109
|
+
const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
|
|
1110
1110
|
ue(async () => {
|
|
1111
1111
|
C.value = !0;
|
|
1112
1112
|
const T = new Ie().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
|
|
@@ -1116,14 +1116,14 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1116
1116
|
const w = d.value.find((U) => U.fieldKey === A);
|
|
1117
1117
|
w && w.widget && (w.widget.files = []);
|
|
1118
1118
|
}
|
|
1119
|
-
p[A] = r.value.fields[A].modelValue;
|
|
1119
|
+
p.value[A] = r.value.fields[A].modelValue;
|
|
1120
1120
|
}
|
|
1121
1121
|
C.value = !1;
|
|
1122
1122
|
});
|
|
1123
1123
|
function J() {
|
|
1124
1124
|
return e()?.userInfo?.email_address ?? "";
|
|
1125
1125
|
}
|
|
1126
|
-
async function
|
|
1126
|
+
async function Z(T, A, w, U, j) {
|
|
1127
1127
|
switch (A) {
|
|
1128
1128
|
case q.Submit:
|
|
1129
1129
|
let R = !0;
|
|
@@ -1135,7 +1135,7 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1135
1135
|
}
|
|
1136
1136
|
C.value = !0;
|
|
1137
1137
|
try {
|
|
1138
|
-
const W = await xt(i.className, { ...p, ...g.value }, w), se = s.value?.map((ie) => ie?.submit ? ie.submit(W.toString()) : Promise.resolve()) || [];
|
|
1138
|
+
const W = await xt(i.className, { ...p.value, ...g.value }, w), se = s.value?.map((ie) => ie?.submit ? ie.submit(W.toString()) : Promise.resolve()) || [];
|
|
1139
1139
|
await Promise.all(se), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${W.toString()}.`), o.push({ name: "Details", params: { workflowId: W.toString() } });
|
|
1140
1140
|
} catch {
|
|
1141
1141
|
c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
|
|
@@ -1143,7 +1143,7 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1143
1143
|
break;
|
|
1144
1144
|
case q.Link:
|
|
1145
1145
|
try {
|
|
1146
|
-
await l[T.eventName || ""]?.(p,
|
|
1146
|
+
await l[T.eventName || ""]?.(p.value, Q), o.push({ name: U, params: { className: i.className } });
|
|
1147
1147
|
} catch (W) {
|
|
1148
1148
|
console.error("Error in link action trigger:", W);
|
|
1149
1149
|
}
|
|
@@ -1152,18 +1152,18 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1152
1152
|
console.warn("Unknown action type:", A);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
const
|
|
1155
|
+
const M = [
|
|
1156
1156
|
"jobScpope",
|
|
1157
1157
|
"currentWorkdayId",
|
|
1158
1158
|
"originalGrade",
|
|
1159
1159
|
"jobTitlePrevious",
|
|
1160
1160
|
"jobAttachmentPrevious",
|
|
1161
1161
|
"positionId"
|
|
1162
|
-
],
|
|
1162
|
+
], Q = m(M);
|
|
1163
1163
|
function ne(T, A) {
|
|
1164
|
-
l[T]?.(A,
|
|
1164
|
+
l[T]?.({ fieldValue: A, hiddenFields: Q, formData: p }), r.value && (d.value = _(r.value.fields));
|
|
1165
1165
|
}
|
|
1166
|
-
const h = X(() =>
|
|
1166
|
+
const h = X(() => Me(d.value)), y = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, newHiddenFields: M, hiddenFields: Q, changeHandler: ne, groupedFields: h, DataWidgets: Le, ActionButton: Se, TopBar: Te };
|
|
1167
1167
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
1168
1168
|
}
|
|
1169
1169
|
}), Bn = { class: "page-container" }, Fn = { class: "page-body" }, Rn = { class: "form-card" }, Ln = { class: "form-fields-vertical" }, jn = { class: "form-fields" }, Mn = {
|
|
@@ -1186,14 +1186,14 @@ function Kn(t, n, a, e, o, l) {
|
|
|
1186
1186
|
default: S(() => [
|
|
1187
1187
|
x("div", Rn, [
|
|
1188
1188
|
x("div", Ln, [
|
|
1189
|
-
(u(!0), V(
|
|
1189
|
+
(u(!0), V($, null, G(e.groupedFields, (i) => (u(), B(s, {
|
|
1190
1190
|
key: i.name,
|
|
1191
1191
|
title: i.name,
|
|
1192
1192
|
style: { "margin-bottom": "24px" }
|
|
1193
1193
|
}, {
|
|
1194
1194
|
default: S(() => [
|
|
1195
1195
|
x("div", jn, [
|
|
1196
|
-
(u(!0), V(
|
|
1196
|
+
(u(!0), V($, null, G(i.fields, (r) => (u(), B(e.DataWidgets, {
|
|
1197
1197
|
key: r.fieldKey,
|
|
1198
1198
|
ref_for: !0,
|
|
1199
1199
|
ref: "dataWidgets",
|
|
@@ -1222,7 +1222,7 @@ function Kn(t, n, a, e, o, l) {
|
|
|
1222
1222
|
x("div", $n, [
|
|
1223
1223
|
de(t.$slots, "action", {}, void 0, !0),
|
|
1224
1224
|
x("div", En, [
|
|
1225
|
-
(u(!0), V(
|
|
1225
|
+
(u(!0), V($, null, G(e.reversedActions, (i) => (u(), B(e.ActionButton, {
|
|
1226
1226
|
key: i.Title,
|
|
1227
1227
|
loading: e.loading,
|
|
1228
1228
|
config: i,
|
|
@@ -1234,7 +1234,7 @@ function Kn(t, n, a, e, o, l) {
|
|
|
1234
1234
|
])
|
|
1235
1235
|
]);
|
|
1236
1236
|
}
|
|
1237
|
-
const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-
|
|
1237
|
+
const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-68ab1bc3"], ["__file", "CreateView.vue"]]), Wn = /* @__PURE__ */ z({
|
|
1238
1238
|
__name: "UpdateView",
|
|
1239
1239
|
props: {
|
|
1240
1240
|
className: {},
|
|
@@ -1242,7 +1242,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1242
1242
|
},
|
|
1243
1243
|
setup(t, { expose: n }) {
|
|
1244
1244
|
n();
|
|
1245
|
-
const a = xe(), e =
|
|
1245
|
+
const a = xe(), e = je(), o = Ve(), l = Ae(), s = He("dataWidgets"), c = pe(), i = t, r = m({
|
|
1246
1246
|
pageType: "",
|
|
1247
1247
|
fields: {},
|
|
1248
1248
|
globalValidations: [],
|
|
@@ -1255,12 +1255,12 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1255
1255
|
return y ? Object.entries(y).map(([A, w]) => ({
|
|
1256
1256
|
fieldKey: A,
|
|
1257
1257
|
...w
|
|
1258
|
-
})).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !
|
|
1258
|
+
})).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !M.value.includes(A.fieldKey)) : [];
|
|
1259
1259
|
}
|
|
1260
1260
|
function b(y) {
|
|
1261
1261
|
return y ? Object.entries(y).filter(([A, w]) => w.dependent).reduce((A, [w, U]) => (A[w] = U.dependent, A), {}) : [];
|
|
1262
1262
|
}
|
|
1263
|
-
const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p =
|
|
1263
|
+
const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
|
|
1264
1264
|
ue(async () => {
|
|
1265
1265
|
C.value = !0;
|
|
1266
1266
|
const y = new Ie().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
|
|
@@ -1271,20 +1271,20 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1271
1271
|
return j ? j.isShow : !0;
|
|
1272
1272
|
});
|
|
1273
1273
|
const w = r.value.fields.requestType.modelValue;
|
|
1274
|
-
e.Test?.(w,
|
|
1274
|
+
e.Test?.({ fieldValue: w, hiddenFields: M, formData: p }), d.value = _(r.value.fields), g.value = b(r.value.fields);
|
|
1275
1275
|
for (const U in r.value.fields) {
|
|
1276
1276
|
if (r.value.fields[U].widget?.widget === "File") {
|
|
1277
1277
|
const j = d.value.find((R) => R.fieldKey === U);
|
|
1278
1278
|
j && j.widget && (j.widget.files = A[U] ?? [], j.widget.removeFile = (R) => y.removeFile(R));
|
|
1279
1279
|
}
|
|
1280
|
-
p[U] = r.value.fields[U].modelValue;
|
|
1280
|
+
p.value[U] = r.value.fields[U].modelValue;
|
|
1281
1281
|
}
|
|
1282
1282
|
C.value = !1;
|
|
1283
1283
|
});
|
|
1284
1284
|
function J() {
|
|
1285
1285
|
return o()?.userInfo?.email_address ?? "";
|
|
1286
1286
|
}
|
|
1287
|
-
async function
|
|
1287
|
+
async function Z(y, T, A, w, U) {
|
|
1288
1288
|
switch (T) {
|
|
1289
1289
|
case q.Submit:
|
|
1290
1290
|
let j = !0;
|
|
@@ -1296,7 +1296,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1296
1296
|
}
|
|
1297
1297
|
C.value = !0;
|
|
1298
1298
|
try {
|
|
1299
|
-
const R = await At(i.className, i.workflowId, { ...p, ...g.value }, A), W = s.value?.map((se) => se?.submit ? se.submit(R.toString()) : Promise.resolve()) || [];
|
|
1299
|
+
const R = await At(i.className, i.workflowId, { ...p.value, ...g.value }, A), W = s.value?.map((se) => se?.submit ? se.submit(R.toString()) : Promise.resolve()) || [];
|
|
1300
1300
|
await Promise.all(W), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${R.toString()}.`);
|
|
1301
1301
|
} catch {
|
|
1302
1302
|
c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
|
|
@@ -1304,7 +1304,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1304
1304
|
break;
|
|
1305
1305
|
case q.Link:
|
|
1306
1306
|
try {
|
|
1307
|
-
await e[y.eventName || ""]?.(p,
|
|
1307
|
+
await e[y.eventName || ""]?.(p.value, M), a.push({ name: w, params: { className: i.className } });
|
|
1308
1308
|
} catch {
|
|
1309
1309
|
}
|
|
1310
1310
|
break;
|
|
@@ -1312,11 +1312,11 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1312
1312
|
console.warn("Unknown action type:", T);
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
const
|
|
1316
|
-
function
|
|
1317
|
-
e[y]?.(T,
|
|
1315
|
+
const M = m([]);
|
|
1316
|
+
function Q(y, T) {
|
|
1317
|
+
e[y]?.({ fieldValue: T, hiddenFields: M, formData: p }), r.value && (d.value = _(r.value.fields));
|
|
1318
1318
|
}
|
|
1319
|
-
const ne = X(() =>
|
|
1319
|
+
const ne = X(() => Me(d.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, hiddenFields: M, changeHandler: Q, groupedFields: ne, DataWidgets: Le, ActionButton: Se, TopBar: Te };
|
|
1320
1320
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
1321
1321
|
}
|
|
1322
1322
|
}), Gn = { class: "page-container" }, qn = { class: "page-body" }, Yn = { class: "form-card" }, Jn = { class: "form-fields-vertical" }, Xn = { class: "form-fields" }, Qn = {
|
|
@@ -1339,14 +1339,14 @@ function no(t, n, a, e, o, l) {
|
|
|
1339
1339
|
default: S(() => [
|
|
1340
1340
|
x("div", Yn, [
|
|
1341
1341
|
x("div", Jn, [
|
|
1342
|
-
(u(!0), V(
|
|
1342
|
+
(u(!0), V($, null, G(e.groupedFields, (i) => (u(), B(s, {
|
|
1343
1343
|
key: i.name,
|
|
1344
1344
|
title: i.name,
|
|
1345
1345
|
style: { "margin-bottom": "24px" }
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: S(() => [
|
|
1348
1348
|
x("div", Xn, [
|
|
1349
|
-
(u(!0), V(
|
|
1349
|
+
(u(!0), V($, null, G(i.fields, (r) => (u(), B(e.DataWidgets, {
|
|
1350
1350
|
key: r.fieldKey,
|
|
1351
1351
|
ref_for: !0,
|
|
1352
1352
|
ref: "dataWidgets",
|
|
@@ -1375,7 +1375,7 @@ function no(t, n, a, e, o, l) {
|
|
|
1375
1375
|
x("div", eo, [
|
|
1376
1376
|
de(t.$slots, "action", {}, void 0, !0),
|
|
1377
1377
|
x("div", to, [
|
|
1378
|
-
(u(!0), V(
|
|
1378
|
+
(u(!0), V($, null, G(e.reversedActions, (i) => (u(), B(e.ActionButton, {
|
|
1379
1379
|
key: i.Title,
|
|
1380
1380
|
loading: e.loading,
|
|
1381
1381
|
config: i,
|
|
@@ -1387,9 +1387,9 @@ function no(t, n, a, e, o, l) {
|
|
|
1387
1387
|
])
|
|
1388
1388
|
]);
|
|
1389
1389
|
}
|
|
1390
|
-
const oo = /* @__PURE__ */ Y(Wn, [["render", no], ["__scopeId", "data-v-
|
|
1390
|
+
const oo = /* @__PURE__ */ Y(Wn, [["render", no], ["__scopeId", "data-v-c638b3c1"], ["__file", "UpdateView.vue"]]), tt = Symbol("library-custom-comp");
|
|
1391
1391
|
function ao() {
|
|
1392
|
-
return me(
|
|
1392
|
+
return me(tt, null);
|
|
1393
1393
|
}
|
|
1394
1394
|
const ro = Symbol("ArcoConfigProvider"), so = "arco", io = "$arco", lo = (t) => {
|
|
1395
1395
|
var n, a, e;
|
|
@@ -1450,8 +1450,8 @@ function go(t, n, a, e, o, l) {
|
|
|
1450
1450
|
fill: "none",
|
|
1451
1451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1452
1452
|
stroke: "currentColor",
|
|
1453
|
-
class:
|
|
1454
|
-
style:
|
|
1453
|
+
class: at(t.cls),
|
|
1454
|
+
style: ot(t.innerStyle),
|
|
1455
1455
|
"stroke-width": t.strokeWidth,
|
|
1456
1456
|
"stroke-linecap": t.strokeLinecap,
|
|
1457
1457
|
"stroke-linejoin": t.strokeLinejoin,
|
|
@@ -1475,7 +1475,7 @@ const _o = Object.assign(Ue, {
|
|
|
1475
1475
|
},
|
|
1476
1476
|
setup(t, { expose: n }) {
|
|
1477
1477
|
n();
|
|
1478
|
-
const a = Ve(), e = Ae(), o =
|
|
1478
|
+
const a = Ve(), e = Ae(), o = je(), l = xe(), s = ao(), c = pe(), i = t;
|
|
1479
1479
|
let r;
|
|
1480
1480
|
const d = m({
|
|
1481
1481
|
pageType: "",
|
|
@@ -1487,13 +1487,13 @@ const _o = Object.assign(Ue, {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
}), g = m([]);
|
|
1489
1489
|
function _(P) {
|
|
1490
|
-
return P ? Object.entries(P).map(([
|
|
1491
|
-
fieldKey:
|
|
1490
|
+
return P ? Object.entries(P).map(([O, I]) => (typeof I.modelValue == "boolean" ? I.fieldValue = I.modelValue ? "Yes" : "No" : I.fieldValue = I.modelValue, {
|
|
1491
|
+
fieldKey: O,
|
|
1492
1492
|
...I
|
|
1493
|
-
})).filter((
|
|
1493
|
+
})).filter((O) => O.widget && O.widget.widget !== "Hidden").filter((O) => !y.value.includes(O.fieldKey)) : [];
|
|
1494
1494
|
}
|
|
1495
|
-
const b = X(() =>
|
|
1496
|
-
const
|
|
1495
|
+
const b = X(() => Me(g.value)), f = X(() => d.value?.actions ? [...d.value.actions].reverse() : []), p = m(!0), C = (P, F) => {
|
|
1496
|
+
const O = P.findIndex((I) => I.isCurrent);
|
|
1497
1497
|
return P.map((I, oe) => {
|
|
1498
1498
|
const D = {
|
|
1499
1499
|
id: I.id,
|
|
@@ -1518,21 +1518,21 @@ const _o = Object.assign(Ue, {
|
|
|
1518
1518
|
if (D.time = ke(ee.takeActionAt, "yyyy-MM-dd hh:mm:ss"), I.sort === 1)
|
|
1519
1519
|
D.status = 2, D.desc = "";
|
|
1520
1520
|
else {
|
|
1521
|
-
const
|
|
1522
|
-
D.status = 3, D.desc =
|
|
1521
|
+
const Oe = ee.workflowHistoryApprovers[0];
|
|
1522
|
+
D.status = 3, D.desc = Oe?.reason ? `Rejected reason: ${Oe.reason}` : "Rejected";
|
|
1523
1523
|
}
|
|
1524
|
-
else oe <
|
|
1524
|
+
else oe < O || O === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
|
|
1525
1525
|
ee && ee.status;
|
|
1526
1526
|
}
|
|
1527
1527
|
return D;
|
|
1528
1528
|
});
|
|
1529
|
-
}, J = m([]),
|
|
1529
|
+
}, J = m([]), Z = m(!1), M = m(!1), Q = m(!1), ne = m(!1);
|
|
1530
1530
|
async function h() {
|
|
1531
1531
|
const P = await r.getBtnList();
|
|
1532
1532
|
d.value.actions = d.value.actions?.filter((F) => {
|
|
1533
|
-
const
|
|
1534
|
-
return
|
|
1535
|
-
}),
|
|
1533
|
+
const O = P.find((I) => I.button === F.title);
|
|
1534
|
+
return O ? O.isShow : !0;
|
|
1535
|
+
}), Z.value = P.find((F) => F.button === "IsGlobal")?.isShow ?? !1, M.value = P.find((F) => F.button === "AssignButton")?.isShow ?? !1, Q.value = P.find((F) => F.button === "AssignList")?.isShow ?? !1, ne.value = P.find((F) => F.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1536
1536
|
}
|
|
1537
1537
|
const y = m([]);
|
|
1538
1538
|
async function T() {
|
|
@@ -1540,14 +1540,14 @@ const _o = Object.assign(Ue, {
|
|
|
1540
1540
|
const P = await r.getFiles();
|
|
1541
1541
|
se.value = await r.getApprovers(), R.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), h();
|
|
1542
1542
|
const F = d.value.fields.requestType.modelValue;
|
|
1543
|
-
o.Test?.(F, y), g.value = _(d.value.fields);
|
|
1543
|
+
o.Test?.({ fieldValue: F, hiddenFields: y }), g.value = _(d.value.fields);
|
|
1544
1544
|
for (const I in d.value.fields)
|
|
1545
1545
|
if (d.value.fields[I].widget?.widget === "File") {
|
|
1546
1546
|
const oe = g.value.find((D) => D.fieldKey === I);
|
|
1547
1547
|
oe && oe.widget && (oe.widget.files = P[I] ?? []);
|
|
1548
1548
|
}
|
|
1549
|
-
const
|
|
1550
|
-
J.value = C(
|
|
1549
|
+
const O = await r.getProcess();
|
|
1550
|
+
J.value = C(O, 0), p.value = !1;
|
|
1551
1551
|
}
|
|
1552
1552
|
ue(T);
|
|
1553
1553
|
async function A(P, F) {
|
|
@@ -1556,14 +1556,14 @@ const _o = Object.assign(Ue, {
|
|
|
1556
1556
|
function w() {
|
|
1557
1557
|
return a()?.userInfo?.email_address ?? "";
|
|
1558
1558
|
}
|
|
1559
|
-
async function U(P, F,
|
|
1559
|
+
async function U(P, F, O, I, oe) {
|
|
1560
1560
|
try {
|
|
1561
1561
|
switch (F) {
|
|
1562
1562
|
case q.Submit:
|
|
1563
|
-
const { reason: D, ifGlobal: ve } = await A(oe, { isGlobal:
|
|
1563
|
+
const { reason: D, ifGlobal: ve } = await A(oe, { isGlobal: Z.value });
|
|
1564
1564
|
p.value = !0;
|
|
1565
1565
|
const we = oe === "Approve" ? "100" : "-1";
|
|
1566
|
-
await Ut(i.className, i.workflowId, w(), D, [Number(i.workflowId)],
|
|
1566
|
+
await Ut(i.className, i.workflowId, w(), D, [Number(i.workflowId)], O, we, ve), p.value = !1;
|
|
1567
1567
|
const be = oe === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
|
|
1568
1568
|
c?.appContext.config.globalProperties.$notification.success(be), T();
|
|
1569
1569
|
break;
|
|
@@ -1578,6 +1578,8 @@ const _o = Object.assign(Ue, {
|
|
|
1578
1578
|
await o[P.eventName || ""]?.({
|
|
1579
1579
|
approvers: se,
|
|
1580
1580
|
associators: ie,
|
|
1581
|
+
isShowAssignSelect: M,
|
|
1582
|
+
isShowAssignList: Q,
|
|
1581
1583
|
assignCallback: _e,
|
|
1582
1584
|
deleteAssociatorCallback: N
|
|
1583
1585
|
});
|
|
@@ -1606,9 +1608,9 @@ const _o = Object.assign(Ue, {
|
|
|
1606
1608
|
}
|
|
1607
1609
|
}
|
|
1608
1610
|
async function v(P, F) {
|
|
1609
|
-
const { Modal:
|
|
1611
|
+
const { Modal: O } = await import("@arco-design/web-vue");
|
|
1610
1612
|
return new Promise((I, oe) => {
|
|
1611
|
-
|
|
1613
|
+
O.confirm({
|
|
1612
1614
|
title: P,
|
|
1613
1615
|
content: F,
|
|
1614
1616
|
okText: "OK",
|
|
@@ -1641,7 +1643,7 @@ const _o = Object.assign(Ue, {
|
|
|
1641
1643
|
return r;
|
|
1642
1644
|
}, set page(P) {
|
|
1643
1645
|
r = P;
|
|
1644
|
-
}, pageData: d, _fields: g, genField: _, groupedFields: b, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: J, isGlobal:
|
|
1646
|
+
}, pageData: d, _fields: g, genField: _, groupedFields: b, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: J, isGlobal: Z, isShowAssignSelect: M, isShowAssignList: Q, isShowCommentTextArea: ne, reloadButtonList: h, hiddenFields: y, load: T, triggerFn: A, getApproverEmail: w, clickHandler: U, comment: j, commentsHistory: R, selectedApprover: W, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: L, ActionButton: Se, get IconDownload() {
|
|
1645
1647
|
return _o;
|
|
1646
1648
|
}, TopBar: Te, get formatDate() {
|
|
1647
1649
|
return ke;
|
|
@@ -1677,20 +1679,20 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1677
1679
|
x("div", yo, [
|
|
1678
1680
|
(u(), B(Be(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
|
|
1679
1681
|
x("div", wo, [
|
|
1680
|
-
(u(!0), V(
|
|
1682
|
+
(u(!0), V($, null, G(e.groupedFields, (f) => (u(), B(i, {
|
|
1681
1683
|
key: f.name,
|
|
1682
1684
|
title: f.name,
|
|
1683
1685
|
style: { "margin-bottom": "24px" }
|
|
1684
1686
|
}, {
|
|
1685
1687
|
default: S(() => [
|
|
1686
1688
|
x("div", ko, [
|
|
1687
|
-
(u(!0), V(
|
|
1689
|
+
(u(!0), V($, null, G(f.fields, (p) => (u(), V("div", {
|
|
1688
1690
|
key: p.fieldKey,
|
|
1689
1691
|
class: "detail-field-wrapper"
|
|
1690
1692
|
}, [
|
|
1691
1693
|
x("div", Co, [
|
|
1692
1694
|
x("div", So, te(p.widget?.title), 1),
|
|
1693
|
-
p.widget?.widget === "File" ? (u(!0), V(
|
|
1695
|
+
p.widget?.widget === "File" ? (u(!0), V($, { key: 0 }, G(p.widget.files, (C) => (u(), V("div", {
|
|
1694
1696
|
class: "field-value",
|
|
1695
1697
|
key: C.id
|
|
1696
1698
|
}, [
|
|
@@ -1742,7 +1744,7 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1742
1744
|
re(" Comments History ", -1)
|
|
1743
1745
|
])),
|
|
1744
1746
|
default: S(() => [
|
|
1745
|
-
(u(!0), V(
|
|
1747
|
+
(u(!0), V($, null, G(e.commentsHistory, (f) => (u(), B(d, {
|
|
1746
1748
|
key: f.associator
|
|
1747
1749
|
}, {
|
|
1748
1750
|
default: S(() => [
|
|
@@ -1766,7 +1768,7 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1766
1768
|
x("div", Po, [
|
|
1767
1769
|
de(t.$slots, "action", {}, void 0, !0),
|
|
1768
1770
|
x("div", No, [
|
|
1769
|
-
(u(!0), V(
|
|
1771
|
+
(u(!0), V($, null, G(e.reversedActions, (f) => (u(), B(e.ActionButton, {
|
|
1770
1772
|
key: f.Title,
|
|
1771
1773
|
loading: e.loading,
|
|
1772
1774
|
config: f,
|
|
@@ -1778,7 +1780,7 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1778
1780
|
])
|
|
1779
1781
|
]);
|
|
1780
1782
|
}
|
|
1781
|
-
const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-
|
|
1783
|
+
const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-9de406ef"], ["__file", "DetailView.vue"]]), Ho = /* @__PURE__ */ z({
|
|
1782
1784
|
name: "ListView",
|
|
1783
1785
|
__name: "ListView",
|
|
1784
1786
|
props: {
|
|
@@ -1786,7 +1788,7 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-e7414f0a
|
|
|
1786
1788
|
},
|
|
1787
1789
|
setup(t, { expose: n }) {
|
|
1788
1790
|
n();
|
|
1789
|
-
const a = Ve(), e = Ae(), o = xe(), l = pe(), s = t, c = m(), i =
|
|
1791
|
+
const a = Ve(), e = Ae(), o = xe(), l = pe(), s = t, c = m(), i = rt({
|
|
1790
1792
|
current: 1,
|
|
1791
1793
|
total: 0,
|
|
1792
1794
|
pageSize: 10,
|
|
@@ -1842,17 +1844,17 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-e7414f0a
|
|
|
1842
1844
|
p.value = !0;
|
|
1843
1845
|
const v = await St(s.className, r());
|
|
1844
1846
|
_.value = v.data, i.total = v.totalCount, p.value = !1;
|
|
1845
|
-
},
|
|
1847
|
+
}, Z = m(!1);
|
|
1846
1848
|
ue(async () => {
|
|
1847
1849
|
f.value = !0;
|
|
1848
1850
|
const v = new Ie().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
|
|
1849
|
-
c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), R(), A(c.value?.tabs?.[0]?.key || ""), C.value = c.value.actions, f.value = !1,
|
|
1851
|
+
c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), R(), A(c.value?.tabs?.[0]?.key || ""), C.value = c.value.actions, f.value = !1, Z.value = !0;
|
|
1850
1852
|
}), st(() => {
|
|
1851
|
-
|
|
1853
|
+
Z.value && J();
|
|
1852
1854
|
});
|
|
1853
|
-
const
|
|
1855
|
+
const M = (v) => {
|
|
1854
1856
|
i.current = v, J();
|
|
1855
|
-
},
|
|
1857
|
+
}, Q = (v) => {
|
|
1856
1858
|
i.pageSize = v, J();
|
|
1857
1859
|
};
|
|
1858
1860
|
function ne(v, N, L, le, P) {
|
|
@@ -1907,7 +1909,7 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-e7414f0a
|
|
|
1907
1909
|
function ie(v, N) {
|
|
1908
1910
|
return !(v.location !== "InTable" || v.title === "Update" && (N.status === 100 || N.status === -1));
|
|
1909
1911
|
}
|
|
1910
|
-
const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: b, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted:
|
|
1912
|
+
const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: b, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted: Z, pageChangeHandler: M, pageSizeChangeHandler: Q, clickHandler: ne, createHandler: h, getApproverEmail: y, replaceEmail: T, tabHandler: A, searchForm: w, searchableFields: U, mapSearchableFields: j, initSearchForm: R, handleSearch: W, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: Le, TopBar: Te };
|
|
1911
1913
|
return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
|
|
1912
1914
|
}
|
|
1913
1915
|
}), Bo = { class: "list-container" }, Fo = { class: "query-title" };
|
|
@@ -1925,7 +1927,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
1925
1927
|
n[0] || (n[0] = x("h3", null, "Search Conditions", -1)),
|
|
1926
1928
|
H(s, { size: "medium" }, {
|
|
1927
1929
|
default: S(() => [
|
|
1928
|
-
(u(!0), V(
|
|
1930
|
+
(u(!0), V($, null, G(e.actions, (f) => (u(), V($, {
|
|
1929
1931
|
key: f.title
|
|
1930
1932
|
}, [
|
|
1931
1933
|
f.location === "InOperation" ? (u(), B(e.ActionButton, {
|
|
@@ -1940,7 +1942,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
1940
1942
|
]),
|
|
1941
1943
|
H(r, { gutter: [24, 20] }, {
|
|
1942
1944
|
default: S(() => [
|
|
1943
|
-
(u(!0), V(
|
|
1945
|
+
(u(!0), V($, null, G(e.searchableFields, (f) => (u(), B(c, {
|
|
1944
1946
|
key: f.fieldKey,
|
|
1945
1947
|
span: 6,
|
|
1946
1948
|
class: "search-col"
|
|
@@ -2001,7 +2003,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
2001
2003
|
onTabClick: e.tabHandler
|
|
2002
2004
|
}, {
|
|
2003
2005
|
default: S(() => [
|
|
2004
|
-
(u(!0), V(
|
|
2006
|
+
(u(!0), V($, null, G(e.pageData?.tabs, (f) => (u(), B(g, {
|
|
2005
2007
|
key: f.key,
|
|
2006
2008
|
title: f.title
|
|
2007
2009
|
}, null, 8, ["title"]))), 128))
|
|
@@ -2030,7 +2032,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
2030
2032
|
optional: S(({ record: f }) => [
|
|
2031
2033
|
H(s, { size: "small" }, {
|
|
2032
2034
|
default: S(() => [
|
|
2033
|
-
(u(!0), V(
|
|
2035
|
+
(u(!0), V($, null, G(e.actions, (p) => (u(), V($, {
|
|
2034
2036
|
key: p.title
|
|
2035
2037
|
}, [
|
|
2036
2038
|
e.judgeHiddenActions(p, f) ? (u(), B(e.ActionButton, {
|
|
@@ -2050,7 +2052,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
2050
2052
|
}
|
|
2051
2053
|
const Lo = /* @__PURE__ */ Y(Ho, [["render", Ro], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), Ko = {
|
|
2052
2054
|
install(t, n = {}) {
|
|
2053
|
-
n.config && gt(n.config), n.router && t.provide(
|
|
2055
|
+
n.config && gt(n.config), n.router && t.provide(Xe, n.router), n.pinia && t.provide(xn, n.pinia), n.useBpmStore && t.provide(Ze, n.useBpmStore), n.useSvrStore && t.provide(et, n.useSvrStore), n.triggers && t.provide(Qe, n.triggers), n.customComps && t.provide(tt, n.customComps), t.component("CreateView", zn), t.component("UpdateView", oo), t.component("DetailView", Do), t.component("ListView", Lo);
|
|
2054
2056
|
}
|
|
2055
2057
|
};
|
|
2056
2058
|
export {
|