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