@chase-shao/vue-component-lib 1.2.102 → 1.2.103
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 +788 -761
- 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,11 +1,11 @@
|
|
|
1
|
-
import { ref as m, getCurrentInstance as
|
|
2
|
-
import
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { Modal as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
1
|
+
import { ref as m, getCurrentInstance as ve, defineComponent as z, mergeModels as ce, useModel as ke, resolveComponent as V, createBlock as D, openBlock as u, onMounted as fe, computed as K, withCtx as x, createElementBlock as _, Fragment as O, renderList as M, createVNode as F, nextTick as pt, createTextVNode as ae, inject as be, normalizeStyle as Je, normalizeClass as Xe, createElementVNode as y, createCommentVNode as re, toDisplayString as Q, useTemplateRef as Ae, resolveDynamicComponent as $e, renderSlot as ue, reactive as mt, onActivated as gt } from "vue";
|
|
2
|
+
import _t from "axios";
|
|
3
|
+
import { defineStore as vt } from "pinia";
|
|
4
|
+
import { Modal as bt } from "@arco-design/web-vue";
|
|
5
|
+
import { useRouter as yt } from "vue-router";
|
|
6
|
+
const wt = vt("main", () => ({
|
|
7
7
|
token: m(void 0)
|
|
8
|
-
})),
|
|
8
|
+
})), ht = async (t) => new Promise((o) => setTimeout(o, t)), kt = async (t, o, n, e = void 0) => {
|
|
9
9
|
if (t[o] === void 0)
|
|
10
10
|
try {
|
|
11
11
|
t[o] = null, t[o] = await n() || e;
|
|
@@ -13,27 +13,27 @@ const bt = gt("main", () => ({
|
|
|
13
13
|
console.error(r), t[o] = void 0;
|
|
14
14
|
}
|
|
15
15
|
for (; t[o] === null; )
|
|
16
|
-
await
|
|
16
|
+
await ht(100);
|
|
17
17
|
return t[o];
|
|
18
|
-
},
|
|
18
|
+
}, he = (t) => {
|
|
19
19
|
const o = `0${t}`;
|
|
20
20
|
return o.substring(o.length - 2);
|
|
21
|
-
},
|
|
21
|
+
}, xe = (t, o = "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 n = new Date(t), e = [
|
|
26
26
|
["yyyy", n.getFullYear()],
|
|
27
27
|
["yy", n.getFullYear().toString().substring(2)],
|
|
28
|
-
["MM",
|
|
28
|
+
["MM", he(n.getMonth() + 1)],
|
|
29
29
|
["M", n.getMonth() + 1],
|
|
30
|
-
["dd",
|
|
30
|
+
["dd", he(n.getDate())],
|
|
31
31
|
["d", n.getDate()],
|
|
32
|
-
["hh",
|
|
32
|
+
["hh", he(n.getHours())],
|
|
33
33
|
["h", n.getHours()],
|
|
34
|
-
["mm",
|
|
34
|
+
["mm", he(n.getMinutes())],
|
|
35
35
|
["m", n.getMinutes()],
|
|
36
|
-
["ss",
|
|
36
|
+
["ss", he(n.getSeconds())],
|
|
37
37
|
["s", n.getSeconds()]
|
|
38
38
|
];
|
|
39
39
|
for (const [r, a] of e)
|
|
@@ -42,28 +42,28 @@ const bt = gt("main", () => ({
|
|
|
42
42
|
} catch {
|
|
43
43
|
return t.toLocaleString();
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, Ct = (t, o) => {
|
|
46
46
|
let n;
|
|
47
47
|
t instanceof Blob ? n = t : n = new Blob([t]);
|
|
48
48
|
const e = document.createElement("a"), r = window.URL.createObjectURL(n);
|
|
49
49
|
e.href = r, e.download = o, e.click(), window.URL.revokeObjectURL(r);
|
|
50
50
|
};
|
|
51
|
-
let
|
|
52
|
-
function
|
|
53
|
-
|
|
51
|
+
let Oe = {};
|
|
52
|
+
function St(t) {
|
|
53
|
+
Oe = { ...Oe, ...t };
|
|
54
54
|
}
|
|
55
55
|
function je() {
|
|
56
|
-
return
|
|
56
|
+
return Oe;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
58
|
+
const xt = ve();
|
|
59
|
+
function Ze() {
|
|
60
60
|
const t = je();
|
|
61
61
|
return {
|
|
62
62
|
apiBase: t.apiBase || void 0 || "",
|
|
63
63
|
appSecret: t.appSecret || void 0 || ""
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Vt(t) {
|
|
67
67
|
if (!t?.data?.statusCode)
|
|
68
68
|
return t;
|
|
69
69
|
switch (t.data.statusCode) {
|
|
@@ -71,22 +71,22 @@ function St(t) {
|
|
|
71
71
|
return t.data.data = t.data.result, t.data;
|
|
72
72
|
case 0:
|
|
73
73
|
default:
|
|
74
|
-
return
|
|
74
|
+
return xt?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
const { apiBase: t } =
|
|
77
|
+
function et() {
|
|
78
|
+
const { apiBase: t } = Ze(), o = _t.create({
|
|
79
79
|
baseURL: t,
|
|
80
80
|
timeout: 20 * 1e3,
|
|
81
81
|
// 20s
|
|
82
82
|
// headers: { 'Content-Type': 'application/json' },
|
|
83
83
|
withCredentials: !0
|
|
84
84
|
});
|
|
85
|
-
return o.interceptors.response.use(
|
|
85
|
+
return o.interceptors.response.use(Vt), o;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
88
|
-
const { apiBase: t, appSecret: o } =
|
|
89
|
-
return await
|
|
87
|
+
const tt = async () => {
|
|
88
|
+
const { apiBase: t, appSecret: o } = Ze(), n = et(), e = wt();
|
|
89
|
+
return await kt(e, "token", async () => {
|
|
90
90
|
const r = await n.get(`${t}/GenerateToken`, {
|
|
91
91
|
params: {
|
|
92
92
|
appid: "bpm",
|
|
@@ -97,8 +97,8 @@ const et = async () => {
|
|
|
97
97
|
e.token = void 0;
|
|
98
98
|
}, (r.data?.expireSeconds ?? 3600) * 1e3), r?.data?.token;
|
|
99
99
|
});
|
|
100
|
-
},
|
|
101
|
-
const t = await
|
|
100
|
+
}, q = async () => {
|
|
101
|
+
const t = await tt(), o = et();
|
|
102
102
|
return o.defaults.headers.common.Authorization = `Bearer ${t}`, o;
|
|
103
103
|
}, De = {
|
|
104
104
|
CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
@@ -107,34 +107,34 @@ const et = async () => {
|
|
|
107
107
|
ApproverEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
108
108
|
ApproverPositionCode: (t) => t.bpmStore()?.positionCode ?? 999,
|
|
109
109
|
RejectReason: () => "Test Reject Reason"
|
|
110
|
-
},
|
|
110
|
+
}, Y = [];
|
|
111
111
|
for (let t = 0; t < 256; ++t)
|
|
112
|
-
|
|
113
|
-
function
|
|
114
|
-
return (
|
|
112
|
+
Y.push((t + 256).toString(16).slice(1));
|
|
113
|
+
function At(t, o = 0) {
|
|
114
|
+
return (Y[t[o + 0]] + Y[t[o + 1]] + Y[t[o + 2]] + Y[t[o + 3]] + "-" + Y[t[o + 4]] + Y[t[o + 5]] + "-" + Y[t[o + 6]] + Y[t[o + 7]] + "-" + Y[t[o + 8]] + Y[t[o + 9]] + "-" + Y[t[o + 10]] + Y[t[o + 11]] + Y[t[o + 12]] + Y[t[o + 13]] + Y[t[o + 14]] + Y[t[o + 15]]).toLowerCase();
|
|
115
115
|
}
|
|
116
|
-
let
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
if (!
|
|
116
|
+
let Be;
|
|
117
|
+
const Tt = new Uint8Array(16);
|
|
118
|
+
function It() {
|
|
119
|
+
if (!Be) {
|
|
120
120
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
121
121
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
122
|
-
|
|
122
|
+
Be = crypto.getRandomValues.bind(crypto);
|
|
123
123
|
}
|
|
124
|
-
return
|
|
124
|
+
return Be(Tt);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
129
|
-
return
|
|
126
|
+
const Pt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), We = { randomUUID: Pt };
|
|
127
|
+
function ot(t, o, n) {
|
|
128
|
+
if (We.randomUUID && !t)
|
|
129
|
+
return We.randomUUID();
|
|
130
130
|
t = t || {};
|
|
131
|
-
const e = t.random ?? t.rng?.() ??
|
|
131
|
+
const e = t.random ?? t.rng?.() ?? It();
|
|
132
132
|
if (e.length < 16)
|
|
133
133
|
throw new Error("Random bytes length must be >= 16");
|
|
134
|
-
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128,
|
|
134
|
+
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, At(e);
|
|
135
135
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
136
|
+
var X = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(X || {}), _e = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(_e || {});
|
|
137
|
+
function Nt(t, o, n) {
|
|
138
138
|
const e = {
|
|
139
139
|
pageType: "",
|
|
140
140
|
fields: {},
|
|
@@ -165,7 +165,7 @@ function It(t, o, n) {
|
|
|
165
165
|
const i = a.showToRoles.split(",").map((c) => c.trim()), l = n.bpmStore().employeeInfo.roleList.some((c) => i.includes(c.name)) || a.showToRoles === "";
|
|
166
166
|
if (a.widget === "Tab") {
|
|
167
167
|
e.tabs || (e.tabs = []), l && e.tabs.push({
|
|
168
|
-
key:
|
|
168
|
+
key: ot(),
|
|
169
169
|
title: a.title,
|
|
170
170
|
filters: a.filters ? JSON.parse(a.filters) : [],
|
|
171
171
|
order: a.order
|
|
@@ -181,7 +181,7 @@ function It(t, o, n) {
|
|
|
181
181
|
redirectUrl: a.redirectUrl,
|
|
182
182
|
redirectType: a.redirectType,
|
|
183
183
|
title: a.title,
|
|
184
|
-
widget: a.widget === "Link" ?
|
|
184
|
+
widget: a.widget === "Link" ? X.Link : a.widget === "Submit" ? X.Submit : X.Button,
|
|
185
185
|
location: a.location,
|
|
186
186
|
attributeType: a.attributeType,
|
|
187
187
|
readonly: a.readonly,
|
|
@@ -237,12 +237,12 @@ function It(t, o, n) {
|
|
|
237
237
|
}), e.fields[a] = l;
|
|
238
238
|
}), e.pageFields = r, e;
|
|
239
239
|
}
|
|
240
|
-
const
|
|
241
|
-
const a = await (await
|
|
242
|
-
return
|
|
243
|
-
},
|
|
244
|
-
async function
|
|
245
|
-
const e = await (await
|
|
240
|
+
const Ge = async (t, o, n, e) => {
|
|
241
|
+
const a = await (await q()).get(`/General/${o}/${t}/page`, { params: e });
|
|
242
|
+
return Nt(a?.data, t, n);
|
|
243
|
+
}, Ft = async (t, o, n) => (await (await q()).post(`/${o}/${t}/button/List`, null, { params: n }))?.data;
|
|
244
|
+
async function Ut(t, o) {
|
|
245
|
+
const e = await (await q()).post(`/General/${t}/list`, o);
|
|
246
246
|
return {
|
|
247
247
|
data: e.data.data,
|
|
248
248
|
totalCount: e.data.totalCount
|
|
@@ -261,111 +261,111 @@ async function Nt(t, o) {
|
|
|
261
261
|
// ),
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
async function
|
|
265
|
-
return (await (await
|
|
264
|
+
async function Rt(t, o, n) {
|
|
265
|
+
return (await (await q()).post(n, o, {
|
|
266
266
|
params: {
|
|
267
267
|
className: t
|
|
268
268
|
}
|
|
269
269
|
})).data;
|
|
270
270
|
}
|
|
271
|
-
async function
|
|
272
|
-
const r = await
|
|
271
|
+
async function Dt(t, o, n, e) {
|
|
272
|
+
const r = await q(), a = Me(e, o);
|
|
273
273
|
return (await r.put(a, n))?.data;
|
|
274
274
|
}
|
|
275
275
|
function Me(t, o) {
|
|
276
276
|
return t.replace(/{WorkflowId}/g, encodeURIComponent(o));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Bt(t, o) {
|
|
279
279
|
return t.replace(/{ApproverEmail}/g, encodeURIComponent(o));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Ht(t, o) {
|
|
282
282
|
return t.replace(/{WorkFlowReason}/g, encodeURIComponent(o));
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Lt(t, o) {
|
|
285
285
|
return t.replace(/{Status}/g, o);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Ot(t, o) {
|
|
288
288
|
return t.replace(/{IfTriggerGlobal_RandP_Approval}/g, o);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function $t(t, o) {
|
|
291
291
|
return t.replace(/{ClassName}/g, encodeURIComponent(o));
|
|
292
292
|
}
|
|
293
|
-
async function
|
|
294
|
-
const c = await
|
|
293
|
+
async function jt(t, o, n, e, r, a, i, l) {
|
|
294
|
+
const c = await q();
|
|
295
295
|
let s = Me(r, o);
|
|
296
|
-
return s =
|
|
296
|
+
return s = Bt(s, n), s = Ht(s, e), s = Lt(s, a), s = Ot(s, i), s = $t(s, t), (await c.put(s, l))?.data;
|
|
297
297
|
}
|
|
298
|
-
async function
|
|
299
|
-
const r = (await (await
|
|
298
|
+
async function Mt(t, o) {
|
|
299
|
+
const r = (await (await q()).get(t, { params: { value: o } }))?.data;
|
|
300
300
|
return Object.entries(r).map(([a, i]) => ({
|
|
301
301
|
value: a,
|
|
302
302
|
label: i
|
|
303
303
|
}));
|
|
304
304
|
}
|
|
305
|
-
async function
|
|
306
|
-
return (await (await
|
|
305
|
+
async function Et(t, o) {
|
|
306
|
+
return (await (await q()).get(`/General/${t}/${o}/process`))?.data;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Kt(t) {
|
|
309
309
|
return {
|
|
310
|
-
uid: t.id ??
|
|
310
|
+
uid: t.id ?? ot(),
|
|
311
311
|
name: t.attachmentName ?? "unknown",
|
|
312
312
|
url: t.attachmentKey ?? ""
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
|
-
async function
|
|
316
|
-
return (await (await
|
|
315
|
+
async function zt(t, o) {
|
|
316
|
+
return (await (await q()).get(`/General/${t}/${o}/upload/get`))?.data.reduce((a, i) => {
|
|
317
317
|
const { category: l } = i;
|
|
318
|
-
return a[l] || (a[l] = []), a[l].push(
|
|
318
|
+
return a[l] || (a[l] = []), a[l].push(Kt(i)), a;
|
|
319
319
|
}, {});
|
|
320
320
|
}
|
|
321
|
-
async function
|
|
322
|
-
return (await
|
|
321
|
+
async function Wt(t, o) {
|
|
322
|
+
return (await q()).post(`/General/${t}/${o}/delete/attachment`);
|
|
323
323
|
}
|
|
324
|
-
async function
|
|
325
|
-
const o = await (await
|
|
324
|
+
async function Gt() {
|
|
325
|
+
const o = await (await q()).get("/Grading/dropdown/approvers");
|
|
326
326
|
return Object.entries(o?.data).map(([n, e]) => ({
|
|
327
327
|
label: n,
|
|
328
328
|
value: e
|
|
329
329
|
}));
|
|
330
330
|
}
|
|
331
|
-
async function
|
|
332
|
-
return await (await
|
|
331
|
+
async function qt(t, o) {
|
|
332
|
+
return await (await q()).post(`Grading/AssignComments/${t}/${encodeURIComponent(o)}`);
|
|
333
333
|
}
|
|
334
|
-
async function
|
|
335
|
-
return await (await
|
|
334
|
+
async function Yt(t, o, n) {
|
|
335
|
+
return await (await q()).post(`Grading/AddComments/${t}/${encodeURIComponent(o)}`, n, {
|
|
336
336
|
headers: { "Content-Type": "application/json;charset=UTF-8" }
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
async function
|
|
340
|
-
return (await (await
|
|
339
|
+
async function Qt(t) {
|
|
340
|
+
return (await (await q()).get(`Grading/GetComments/${t}`))?.data;
|
|
341
341
|
}
|
|
342
|
-
async function
|
|
343
|
-
return (await (await
|
|
342
|
+
async function Jt(t) {
|
|
343
|
+
return (await (await q()).get(`Grading/GetAssociator/${t}`))?.data;
|
|
344
344
|
}
|
|
345
|
-
async function
|
|
346
|
-
return await (await
|
|
345
|
+
async function Xt(t) {
|
|
346
|
+
return await (await q()).delete(`Grading/DeleteAssociator/${t}`);
|
|
347
347
|
}
|
|
348
|
-
async function
|
|
349
|
-
const e = await (await
|
|
348
|
+
async function Zt(t, o = null) {
|
|
349
|
+
const e = await (await q()).post(t, o, {
|
|
350
350
|
responseType: "blob"
|
|
351
351
|
});
|
|
352
|
-
|
|
352
|
+
Ct(e?.data, "WorkflowData.xlsx");
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const ye = (t, o) => {
|
|
355
355
|
let n = "";
|
|
356
356
|
return { res: t.every((r) => {
|
|
357
|
-
const a =
|
|
357
|
+
const a = eo(r, o);
|
|
358
358
|
return a || (n = r.errorMessage), a;
|
|
359
359
|
}), errorMessages: n };
|
|
360
|
-
},
|
|
360
|
+
}, eo = (t, o) => {
|
|
361
361
|
const { ruleName: n, ruleParameter: e } = t;
|
|
362
|
-
return
|
|
363
|
-
},
|
|
362
|
+
return to[n](e, o);
|
|
363
|
+
}, to = {
|
|
364
364
|
Regex: (t, o) => new RegExp(t).test(o),
|
|
365
365
|
Required: (t, o) => !!o
|
|
366
|
-
},
|
|
366
|
+
}, oo = /* @__PURE__ */ z({
|
|
367
367
|
__name: "InputText",
|
|
368
|
-
props: /* @__PURE__ */
|
|
368
|
+
props: /* @__PURE__ */ ce({
|
|
369
369
|
fieldKey: {},
|
|
370
370
|
modelValue: {},
|
|
371
371
|
config: {},
|
|
@@ -376,9 +376,9 @@ const ve = (t, o) => {
|
|
|
376
376
|
modelValue: {},
|
|
377
377
|
modelModifiers: {}
|
|
378
378
|
}),
|
|
379
|
-
emits: /* @__PURE__ */
|
|
379
|
+
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
380
380
|
setup(t, { expose: o, emit: n }) {
|
|
381
|
-
const e = t, r = n, a =
|
|
381
|
+
const e = t, r = n, a = ke(t, "modelValue"), i = (d) => ye(e.validations, d), l = (d) => {
|
|
382
382
|
r("input", d);
|
|
383
383
|
}, c = (d) => {
|
|
384
384
|
const g = i(d);
|
|
@@ -395,15 +395,15 @@ const ve = (t, o) => {
|
|
|
395
395
|
const s = { props: e, emits: r, model: a, validate: i, inputHandler: l, changeHandler: c };
|
|
396
396
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
397
397
|
}
|
|
398
|
-
}),
|
|
398
|
+
}), J = (t, o) => {
|
|
399
399
|
const n = t.__vccOpts || t;
|
|
400
400
|
for (const [e, r] of o)
|
|
401
401
|
n[e] = r;
|
|
402
402
|
return n;
|
|
403
403
|
};
|
|
404
|
-
function
|
|
405
|
-
const i =
|
|
406
|
-
return u(),
|
|
404
|
+
function no(t, o, n, e, r, a) {
|
|
405
|
+
const i = V("AInput");
|
|
406
|
+
return u(), D(i, {
|
|
407
407
|
modelValue: e.model,
|
|
408
408
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
409
409
|
"allow-clear": "",
|
|
@@ -412,9 +412,9 @@ function to(t, o, n, e, r, a) {
|
|
|
412
412
|
onChange: e.changeHandler
|
|
413
413
|
}, null, 8, ["modelValue", "disabled"]);
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const qe = /* @__PURE__ */ J(oo, [["render", no], ["__file", "InputText.vue"]]), ao = /* @__PURE__ */ z({
|
|
416
416
|
__name: "InputNumber",
|
|
417
|
-
props: /* @__PURE__ */
|
|
417
|
+
props: /* @__PURE__ */ ce({
|
|
418
418
|
fieldKey: {},
|
|
419
419
|
modelValue: {},
|
|
420
420
|
config: {},
|
|
@@ -425,19 +425,19 @@ const Ge = /* @__PURE__ */ Y(eo, [["render", to], ["__file", "InputText.vue"]]),
|
|
|
425
425
|
modelValue: {},
|
|
426
426
|
modelModifiers: {}
|
|
427
427
|
}),
|
|
428
|
-
emits: /* @__PURE__ */
|
|
428
|
+
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
429
429
|
setup(t, { expose: o, emit: n }) {
|
|
430
|
-
const e = t, r = n, a =
|
|
430
|
+
const e = t, r = n, a = ke(t, "modelValue"), i = m(100), l = m(1);
|
|
431
431
|
fe(() => {
|
|
432
432
|
e.validations && e.validations.forEach((v) => {
|
|
433
433
|
v.ruleName === "Max" && (i.value = v.ruleParameter), v.ruleName === "Min" && (l.value = v.ruleParameter);
|
|
434
434
|
});
|
|
435
435
|
});
|
|
436
|
-
const c = (v) =>
|
|
436
|
+
const c = (v) => ye(e.validations, v), s = (v) => {
|
|
437
437
|
r("input", v);
|
|
438
438
|
}, d = (v) => {
|
|
439
|
-
const
|
|
440
|
-
r("error",
|
|
439
|
+
const b = c(v);
|
|
440
|
+
r("error", b.res ? "" : b.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
|
|
441
441
|
f.event === "change" && r(f.event, f.handlerName, v);
|
|
442
442
|
});
|
|
443
443
|
};
|
|
@@ -451,9 +451,9 @@ const Ge = /* @__PURE__ */ Y(eo, [["render", to], ["__file", "InputText.vue"]]),
|
|
|
451
451
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
|
-
function
|
|
455
|
-
const i =
|
|
456
|
-
return u(),
|
|
454
|
+
function ro(t, o, n, e, r, a) {
|
|
455
|
+
const i = V("AInputNumber");
|
|
456
|
+
return u(), D(i, {
|
|
457
457
|
modelValue: e.model,
|
|
458
458
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
459
459
|
clearable: "",
|
|
@@ -463,9 +463,9 @@ function no(t, o, n, e, r, a) {
|
|
|
463
463
|
onChange: e.changeHandler
|
|
464
464
|
}, null, 8, ["modelValue", "disabled", "min"]);
|
|
465
465
|
}
|
|
466
|
-
const
|
|
466
|
+
const so = /* @__PURE__ */ J(ao, [["render", ro], ["__file", "InputNumber.vue"]]), io = /* @__PURE__ */ z({
|
|
467
467
|
__name: "SelectList",
|
|
468
|
-
props: /* @__PURE__ */
|
|
468
|
+
props: /* @__PURE__ */ ce({
|
|
469
469
|
fieldKey: {},
|
|
470
470
|
modelValue: {},
|
|
471
471
|
config: {},
|
|
@@ -476,45 +476,45 @@ const ao = /* @__PURE__ */ Y(oo, [["render", no], ["__file", "InputNumber.vue"]]
|
|
|
476
476
|
modelValue: {},
|
|
477
477
|
modelModifiers: {}
|
|
478
478
|
}),
|
|
479
|
-
emits: /* @__PURE__ */
|
|
479
|
+
emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
|
|
480
480
|
setup(t, { expose: o, emit: n }) {
|
|
481
|
-
const e = t, r = n, a = m(!1), i = m(e.config.options ?? []), l =
|
|
482
|
-
const
|
|
481
|
+
const e = t, r = n, a = m(!1), i = m(e.config.options ?? []), l = ke(t, "modelValue"), c = (b) => ye(e.validations, b), s = K(() => {
|
|
482
|
+
const b = {};
|
|
483
483
|
return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
|
|
484
|
-
|
|
484
|
+
b[f.event] = (p) => {
|
|
485
485
|
r(f.event, f.handlerName, p);
|
|
486
|
-
const
|
|
487
|
-
r("error",
|
|
486
|
+
const h = c(p);
|
|
487
|
+
r("error", h.res ? "" : h.errorMessages);
|
|
488
488
|
};
|
|
489
|
-
}),
|
|
489
|
+
}), b;
|
|
490
490
|
}), d = async () => {
|
|
491
491
|
if (e.config.dataSourceProvider) {
|
|
492
|
-
i.value = await
|
|
493
|
-
const
|
|
494
|
-
|
|
492
|
+
i.value = await Mt(e.config.dataSourceProvider);
|
|
493
|
+
const b = e.modelValue;
|
|
494
|
+
b != null && b !== "" && (i.value.some((p) => p.value === b) || r("update:modelValue", ""));
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
fe(d);
|
|
498
|
-
const g = (
|
|
499
|
-
r("update:modelValue",
|
|
500
|
-
const f = c(
|
|
498
|
+
const g = (b) => {
|
|
499
|
+
r("update:modelValue", b);
|
|
500
|
+
const f = c(b);
|
|
501
501
|
r("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
|
|
502
|
-
p.event === "change" && r(p.event, p.handlerName,
|
|
502
|
+
p.event === "change" && r(p.event, p.handlerName, b);
|
|
503
503
|
});
|
|
504
504
|
};
|
|
505
505
|
o({
|
|
506
506
|
validate() {
|
|
507
|
-
const
|
|
508
|
-
return r("error",
|
|
507
|
+
const b = c(e.modelValue);
|
|
508
|
+
return r("error", b.res ? "" : b.errorMessages), b.res;
|
|
509
509
|
}
|
|
510
510
|
});
|
|
511
511
|
const v = { props: e, emits: r, loading: a, _options: i, model: l, validate: c, eventHandlers: s, loadOptions: d, changeHandler: g };
|
|
512
512
|
return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
|
|
513
513
|
}
|
|
514
514
|
});
|
|
515
|
-
function
|
|
516
|
-
const i =
|
|
517
|
-
return u(),
|
|
515
|
+
function lo(t, o, n, e, r, a) {
|
|
516
|
+
const i = V("AOption"), l = V("ASelect");
|
|
517
|
+
return u(), D(l, {
|
|
518
518
|
"allow-clear": "",
|
|
519
519
|
modelValue: e.model,
|
|
520
520
|
"onUpdate:modelValue": o[0] || (o[0] = (c) => e.model = c),
|
|
@@ -524,8 +524,8 @@ function so(t, o, n, e, r, a) {
|
|
|
524
524
|
disabled: e.props.config.readonly,
|
|
525
525
|
onChange: e.changeHandler
|
|
526
526
|
}, {
|
|
527
|
-
default:
|
|
528
|
-
(u(!0), _(
|
|
527
|
+
default: x(() => [
|
|
528
|
+
(u(!0), _(O, null, M(e._options, (c) => (u(), D(i, {
|
|
529
529
|
key: c.value,
|
|
530
530
|
value: c.value,
|
|
531
531
|
label: c.label
|
|
@@ -534,7 +534,7 @@ function so(t, o, n, e, r, a) {
|
|
|
534
534
|
_: 1
|
|
535
535
|
}, 8, ["modelValue", "loading", "disabled"]);
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const Ye = /* @__PURE__ */ J(io, [["render", lo], ["__file", "SelectList.vue"]]), co = /* @__PURE__ */ z({
|
|
538
538
|
__name: "Cascader",
|
|
539
539
|
props: {
|
|
540
540
|
modelValue: {},
|
|
@@ -549,7 +549,7 @@ const qe = /* @__PURE__ */ Y(ro, [["render", so], ["__file", "SelectList.vue"]])
|
|
|
549
549
|
if (e.config) {
|
|
550
550
|
const s = e.config.dataSourceProvider;
|
|
551
551
|
if (s) {
|
|
552
|
-
const g = await (await
|
|
552
|
+
const g = await (await q()).get(s);
|
|
553
553
|
a.value = g.data;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
@@ -564,14 +564,14 @@ const qe = /* @__PURE__ */ Y(ro, [["render", so], ["__file", "SelectList.vue"]])
|
|
|
564
564
|
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
|
-
function
|
|
568
|
-
const i =
|
|
569
|
-
return u(),
|
|
567
|
+
function uo(t, o, n, e, r, a) {
|
|
568
|
+
const i = V("ACascader"), l = V("ASpace");
|
|
569
|
+
return u(), D(l, {
|
|
570
570
|
direction: "vertical",
|
|
571
571
|
size: "large"
|
|
572
572
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
|
|
573
|
+
default: x(() => [
|
|
574
|
+
F(i, {
|
|
575
575
|
"field-names": e.fieldNames,
|
|
576
576
|
"model-value": n.modelValue,
|
|
577
577
|
options: e._options,
|
|
@@ -583,7 +583,7 @@ function lo(t, o, n, e, r, a) {
|
|
|
583
583
|
_: 1
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
const
|
|
586
|
+
const fo = /* @__PURE__ */ J(co, [["render", uo], ["__file", "Cascader.vue"]]), po = /* @__PURE__ */ z({
|
|
587
587
|
__name: "FileUpload",
|
|
588
588
|
props: {
|
|
589
589
|
className: {},
|
|
@@ -598,66 +598,66 @@ const co = /* @__PURE__ */ Y(io, [["render", lo], ["__file", "Cascader.vue"]]),
|
|
|
598
598
|
setup(t, { expose: o, emit: n }) {
|
|
599
599
|
const e = t, r = n, a = m({});
|
|
600
600
|
fe(async () => {
|
|
601
|
-
const
|
|
601
|
+
const A = await tt();
|
|
602
602
|
a.value = {
|
|
603
|
-
Authorization: `Bearer ${
|
|
603
|
+
Authorization: `Bearer ${A}`
|
|
604
604
|
};
|
|
605
605
|
});
|
|
606
|
-
const i = (
|
|
607
|
-
function g(
|
|
608
|
-
return
|
|
606
|
+
const i = (A) => ye(e.validations, A), l = je(), c = l.apiBase, s = m(null), d = m("");
|
|
607
|
+
function g(A, k, C) {
|
|
608
|
+
return A.replace(/{WorkflowId}/g, k).replace(/{ClassName}/g, C);
|
|
609
609
|
}
|
|
610
|
-
const v =
|
|
610
|
+
const v = K(() => {
|
|
611
611
|
if (e.config.uploadURL) {
|
|
612
|
-
const
|
|
613
|
-
return g(
|
|
612
|
+
const A = c + e.config.uploadURL;
|
|
613
|
+
return g(A, d.value, e.className);
|
|
614
614
|
}
|
|
615
615
|
return "";
|
|
616
|
-
}),
|
|
617
|
-
|
|
616
|
+
}), b = (A) => {
|
|
617
|
+
A.stopPropagation(), s.value.submit();
|
|
618
618
|
};
|
|
619
|
-
function f(
|
|
620
|
-
const { file:
|
|
621
|
-
return new Promise((
|
|
622
|
-
|
|
619
|
+
function f(A) {
|
|
620
|
+
const { file: k, name: C } = A, T = C ?? k.name;
|
|
621
|
+
return new Promise((S, U) => {
|
|
622
|
+
bt.confirm({
|
|
623
623
|
title: "Confirm Delete",
|
|
624
624
|
content: `Are you sure you want to delete ${T}?`,
|
|
625
625
|
async onOk() {
|
|
626
|
-
if (
|
|
627
|
-
return await e.config.removeFile(
|
|
628
|
-
|
|
626
|
+
if (A.status !== "init" && e.config.removeFile)
|
|
627
|
+
return await e.config.removeFile(A.uid), S(!0);
|
|
628
|
+
S(!0);
|
|
629
629
|
},
|
|
630
630
|
onCancel: () => U("cancel")
|
|
631
631
|
});
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
const p = m(null),
|
|
635
|
-
p.value && (p.value(
|
|
636
|
-
},
|
|
637
|
-
|
|
638
|
-
},
|
|
639
|
-
|
|
634
|
+
const p = m(null), h = m(null), Z = (A) => {
|
|
635
|
+
p.value && (p.value(A), p.value = null, h.value = null);
|
|
636
|
+
}, oe = (A) => {
|
|
637
|
+
h.value && (h.value(A), p.value = null, h.value = null);
|
|
638
|
+
}, E = m([]), ee = (A) => {
|
|
639
|
+
E.value = A.filter((k) => k.status === "init");
|
|
640
640
|
};
|
|
641
641
|
o({
|
|
642
|
-
submit(
|
|
643
|
-
return new Promise((
|
|
644
|
-
s.value ? (e.config.uploadURL && (d.value =
|
|
642
|
+
submit(A) {
|
|
643
|
+
return new Promise((k, C) => {
|
|
644
|
+
s.value ? (e.config.uploadURL && (d.value = A), p.value = k, h.value = C, E.value.length ? pt(() => {
|
|
645
645
|
s.value?.submit();
|
|
646
|
-
}) :
|
|
646
|
+
}) : k(A)) : k(A);
|
|
647
647
|
});
|
|
648
648
|
},
|
|
649
649
|
validate() {
|
|
650
|
-
const
|
|
651
|
-
return r("error",
|
|
650
|
+
const A = e.config.files ?? [], k = [...E.value, ...A].length > 0 ? "hasFile" : "", C = i(k);
|
|
651
|
+
return r("error", C.res ? "" : C.errorMessages), C.res;
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
|
-
const
|
|
655
|
-
return Object.defineProperty(
|
|
654
|
+
const ne = { props: e, emits: r, headers: a, validate: i, config: l, ApiBase: c, uploadRef: s, id: d, replaceIdAndClassName: g, action: v, submit: b, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: h, handleUploadSuccess: Z, handleUploadError: oe, readyFiles: E, onChange: ee };
|
|
655
|
+
return Object.defineProperty(ne, "__isScriptSetup", { enumerable: !1, value: !0 }), ne;
|
|
656
656
|
}
|
|
657
657
|
});
|
|
658
|
-
function
|
|
659
|
-
const i =
|
|
660
|
-
return u(),
|
|
658
|
+
function mo(t, o, n, e, r, a) {
|
|
659
|
+
const i = V("a-button"), l = V("a-upload");
|
|
660
|
+
return u(), D(l, {
|
|
661
661
|
ref: "uploadRef",
|
|
662
662
|
"default-file-list": e.props.config.files,
|
|
663
663
|
action: e.action,
|
|
@@ -670,11 +670,11 @@ function fo(t, o, n, e, r, a) {
|
|
|
670
670
|
onSuccess: e.handleUploadSuccess,
|
|
671
671
|
onError: e.handleUploadError
|
|
672
672
|
}, {
|
|
673
|
-
"start-icon":
|
|
674
|
-
"upload-button":
|
|
675
|
-
|
|
676
|
-
default:
|
|
677
|
-
|
|
673
|
+
"start-icon": x(() => o[0] || (o[0] = [])),
|
|
674
|
+
"upload-button": x(() => [
|
|
675
|
+
F(i, { type: "primary" }, {
|
|
676
|
+
default: x(() => o[1] || (o[1] = [
|
|
677
|
+
ae("Select File", -1)
|
|
678
678
|
])),
|
|
679
679
|
_: 1,
|
|
680
680
|
__: [1]
|
|
@@ -683,7 +683,7 @@ function fo(t, o, n, e, r, a) {
|
|
|
683
683
|
_: 1
|
|
684
684
|
}, 8, ["default-file-list", "action", "limit", "headers"]);
|
|
685
685
|
}
|
|
686
|
-
const
|
|
686
|
+
const go = /* @__PURE__ */ J(po, [["render", mo], ["__file", "FileUpload.vue"]]), _o = /* @__PURE__ */ z({
|
|
687
687
|
__name: "TextArea",
|
|
688
688
|
props: {
|
|
689
689
|
fieldKey: {},
|
|
@@ -695,7 +695,7 @@ const po = /* @__PURE__ */ Y(uo, [["render", fo], ["__file", "FileUpload.vue"]])
|
|
|
695
695
|
},
|
|
696
696
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
697
697
|
setup(t, { expose: o, emit: n }) {
|
|
698
|
-
const e = t, r = n, a = (s) =>
|
|
698
|
+
const e = t, r = n, a = (s) => ye(e.validations, s), i = (s) => {
|
|
699
699
|
r("update:modelValue", s), r("input", s);
|
|
700
700
|
}, l = (s) => {
|
|
701
701
|
r("update:modelValue", s);
|
|
@@ -714,9 +714,9 @@ const po = /* @__PURE__ */ Y(uo, [["render", fo], ["__file", "FileUpload.vue"]])
|
|
|
714
714
|
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
|
-
function
|
|
718
|
-
const i =
|
|
719
|
-
return u(),
|
|
717
|
+
function vo(t, o, n, e, r, a) {
|
|
718
|
+
const i = V("ATextarea");
|
|
719
|
+
return u(), D(i, {
|
|
720
720
|
"model-value": e.props.modelValue,
|
|
721
721
|
placeholder: "Please enter something",
|
|
722
722
|
"allow-clear": "",
|
|
@@ -725,9 +725,9 @@ function go(t, o, n, e, r, a) {
|
|
|
725
725
|
onChange: e.changeHandler
|
|
726
726
|
}, null, 8, ["model-value", "disabled"]);
|
|
727
727
|
}
|
|
728
|
-
const
|
|
728
|
+
const bo = /* @__PURE__ */ J(_o, [["render", vo], ["__file", "TextArea.vue"]]), yo = /* @__PURE__ */ z({
|
|
729
729
|
__name: "CheckBox",
|
|
730
|
-
props: /* @__PURE__ */
|
|
730
|
+
props: /* @__PURE__ */ ce({
|
|
731
731
|
fieldKey: {},
|
|
732
732
|
modelValue: {},
|
|
733
733
|
config: {},
|
|
@@ -738,9 +738,9 @@ const _o = /* @__PURE__ */ Y(mo, [["render", go], ["__file", "TextArea.vue"]]),
|
|
|
738
738
|
modelValue: {},
|
|
739
739
|
modelModifiers: {}
|
|
740
740
|
}),
|
|
741
|
-
emits: /* @__PURE__ */
|
|
741
|
+
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
742
742
|
setup(t, { expose: o, emit: n }) {
|
|
743
|
-
const e = t, r = n, a =
|
|
743
|
+
const e = t, r = n, a = ke(t, "modelValue"), i = (s) => ye(e.validations, s), l = (s) => {
|
|
744
744
|
const d = i(s);
|
|
745
745
|
r("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
|
|
746
746
|
g.event === "change" && r(g.event, g.handlerName, s);
|
|
@@ -756,36 +756,36 @@ const _o = /* @__PURE__ */ Y(mo, [["render", go], ["__file", "TextArea.vue"]]),
|
|
|
756
756
|
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
|
-
function
|
|
760
|
-
const i =
|
|
761
|
-
return u(),
|
|
759
|
+
function wo(t, o, n, e, r, a) {
|
|
760
|
+
const i = V("ACheckbox");
|
|
761
|
+
return u(), D(i, {
|
|
762
762
|
modelValue: e.model,
|
|
763
763
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
764
764
|
clearable: "",
|
|
765
765
|
disabled: e.props.readonly || e.props.config.Readonly,
|
|
766
766
|
onChange: e.changeHandler
|
|
767
767
|
}, {
|
|
768
|
-
default:
|
|
769
|
-
|
|
768
|
+
default: x(() => o[1] || (o[1] = [
|
|
769
|
+
ae("Yes", -1)
|
|
770
770
|
])),
|
|
771
771
|
_: 1,
|
|
772
772
|
__: [1]
|
|
773
773
|
}, 8, ["modelValue", "disabled"]);
|
|
774
774
|
}
|
|
775
|
-
const
|
|
775
|
+
const ho = /* @__PURE__ */ J(yo, [["render", wo], ["__file", "CheckBox.vue"]]), ko = Symbol("ArcoConfigProvider"), Co = "arco", So = "$arco", nt = (t) => {
|
|
776
776
|
var o, n, e;
|
|
777
|
-
const r =
|
|
778
|
-
return `${(e = (n = a?.prefixCls) != null ? n : (o = r?.appContext.config.globalProperties[
|
|
779
|
-
},
|
|
780
|
-
function
|
|
781
|
-
return
|
|
777
|
+
const r = ve(), a = be(ko, void 0);
|
|
778
|
+
return `${(e = (n = a?.prefixCls) != null ? n : (o = r?.appContext.config.globalProperties[So]) == null ? void 0 : o.classPrefix) != null ? e : Co}-${t}`;
|
|
779
|
+
}, xo = Object.prototype.toString;
|
|
780
|
+
function at(t) {
|
|
781
|
+
return xo.call(t) === "[object Number]" && t === t;
|
|
782
782
|
}
|
|
783
|
-
var
|
|
783
|
+
var rt = (t, o) => {
|
|
784
784
|
for (const [n, e] of o)
|
|
785
785
|
t[n] = e;
|
|
786
786
|
return t;
|
|
787
787
|
};
|
|
788
|
-
const
|
|
788
|
+
const Vo = z({
|
|
789
789
|
name: "IconQuestionCircle",
|
|
790
790
|
props: {
|
|
791
791
|
size: {
|
|
@@ -812,9 +812,9 @@ const So = z({
|
|
|
812
812
|
click: (t) => !0
|
|
813
813
|
},
|
|
814
814
|
setup(t, { emit: o }) {
|
|
815
|
-
const n =
|
|
815
|
+
const n = nt("icon"), e = K(() => [n, `${n}-question-circle`, { [`${n}-spin`]: t.spin }]), r = K(() => {
|
|
816
816
|
const i = {};
|
|
817
|
-
return t.size && (i.fontSize =
|
|
817
|
+
return t.size && (i.fontSize = at(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
|
|
818
818
|
});
|
|
819
819
|
return {
|
|
820
820
|
cls: e,
|
|
@@ -824,32 +824,32 @@ const So = z({
|
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
}),
|
|
828
|
-
function
|
|
827
|
+
}), Ao = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
828
|
+
function To(t, o, n, e, r, a) {
|
|
829
829
|
return u(), _("svg", {
|
|
830
830
|
viewBox: "0 0 48 48",
|
|
831
831
|
fill: "none",
|
|
832
832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
833
833
|
stroke: "currentColor",
|
|
834
|
-
class:
|
|
835
|
-
style:
|
|
834
|
+
class: Xe(t.cls),
|
|
835
|
+
style: Je(t.innerStyle),
|
|
836
836
|
"stroke-width": t.strokeWidth,
|
|
837
837
|
"stroke-linecap": t.strokeLinecap,
|
|
838
838
|
"stroke-linejoin": t.strokeLinejoin,
|
|
839
839
|
onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
|
|
840
840
|
}, o[1] || (o[1] = [
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
]), 14,
|
|
841
|
+
y("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
|
|
842
|
+
y("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
|
|
843
|
+
]), 14, Ao);
|
|
844
844
|
}
|
|
845
|
-
var
|
|
846
|
-
const
|
|
845
|
+
var He = /* @__PURE__ */ rt(Vo, [["render", To]]);
|
|
846
|
+
const Io = Object.assign(He, {
|
|
847
847
|
install: (t, o) => {
|
|
848
848
|
var n;
|
|
849
849
|
const e = (n = o?.iconPrefix) != null ? n : "";
|
|
850
|
-
t.component(e +
|
|
850
|
+
t.component(e + He.name, He);
|
|
851
851
|
}
|
|
852
|
-
}),
|
|
852
|
+
}), Po = z({
|
|
853
853
|
name: "IconDownload",
|
|
854
854
|
props: {
|
|
855
855
|
size: {
|
|
@@ -876,9 +876,9 @@ const Ao = Object.assign(Be, {
|
|
|
876
876
|
click: (t) => !0
|
|
877
877
|
},
|
|
878
878
|
setup(t, { emit: o }) {
|
|
879
|
-
const n =
|
|
879
|
+
const n = nt("icon"), e = K(() => [n, `${n}-download`, { [`${n}-spin`]: t.spin }]), r = K(() => {
|
|
880
880
|
const i = {};
|
|
881
|
-
return t.size && (i.fontSize =
|
|
881
|
+
return t.size && (i.fontSize = at(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
|
|
882
882
|
});
|
|
883
883
|
return {
|
|
884
884
|
cls: e,
|
|
@@ -888,31 +888,31 @@ const Ao = Object.assign(Be, {
|
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
}),
|
|
892
|
-
function
|
|
891
|
+
}), No = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
892
|
+
function Fo(t, o, n, e, r, a) {
|
|
893
893
|
return u(), _("svg", {
|
|
894
894
|
viewBox: "0 0 48 48",
|
|
895
895
|
fill: "none",
|
|
896
896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
897
897
|
stroke: "currentColor",
|
|
898
|
-
class:
|
|
899
|
-
style:
|
|
898
|
+
class: Xe(t.cls),
|
|
899
|
+
style: Je(t.innerStyle),
|
|
900
900
|
"stroke-width": t.strokeWidth,
|
|
901
901
|
"stroke-linecap": t.strokeLinecap,
|
|
902
902
|
"stroke-linejoin": t.strokeLinejoin,
|
|
903
903
|
onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
|
|
904
904
|
}, o[1] || (o[1] = [
|
|
905
|
-
|
|
906
|
-
]), 14,
|
|
905
|
+
y("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
|
|
906
|
+
]), 14, No);
|
|
907
907
|
}
|
|
908
|
-
var
|
|
909
|
-
const
|
|
908
|
+
var Le = /* @__PURE__ */ rt(Po, [["render", Fo]]);
|
|
909
|
+
const Uo = Object.assign(Le, {
|
|
910
910
|
install: (t, o) => {
|
|
911
911
|
var n;
|
|
912
912
|
const e = (n = o?.iconPrefix) != null ? n : "";
|
|
913
|
-
t.component(e +
|
|
913
|
+
t.component(e + Le.name, Le);
|
|
914
914
|
}
|
|
915
|
-
}),
|
|
915
|
+
}), Ro = /* @__PURE__ */ z({
|
|
916
916
|
__name: "ToolTip",
|
|
917
917
|
props: {
|
|
918
918
|
isVisible: { type: Boolean },
|
|
@@ -920,49 +920,50 @@ const No = Object.assign(He, {
|
|
|
920
920
|
},
|
|
921
921
|
setup(t, { expose: o }) {
|
|
922
922
|
o();
|
|
923
|
-
const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", r =
|
|
924
|
-
return
|
|
923
|
+
const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", r = K(() => e(n.outputText) ? [] : n.outputText), a = K(() => e(n.outputText) ? n.outputText : []), i = { props: n, isTreeArray: e, stringOutput: r, treeOutput: a, get IconQuestionCircle() {
|
|
924
|
+
return Io;
|
|
925
925
|
} };
|
|
926
926
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
927
927
|
}
|
|
928
|
-
}),
|
|
929
|
-
function
|
|
930
|
-
const i =
|
|
931
|
-
return e.props.isVisible ? (u(),
|
|
928
|
+
}), Do = { class: "list-unstyled" }, Bo = { class: "list-style-square" };
|
|
929
|
+
function Ho(t, o, n, e, r, a) {
|
|
930
|
+
const i = V("a-tooltip");
|
|
931
|
+
return e.props.isVisible ? (u(), D(i, {
|
|
932
932
|
key: 0,
|
|
933
933
|
"background-color": "#7A00E6"
|
|
934
934
|
}, {
|
|
935
|
-
content:
|
|
936
|
-
e.stringOutput.length ? (u(!0), _(
|
|
935
|
+
content: x(() => [
|
|
936
|
+
e.stringOutput.length ? (u(!0), _(O, { key: 0 }, M(e.stringOutput, (l) => (u(), _("p", { key: l }, Q(l), 1))), 128)) : (u(!0), _(O, { key: 1 }, M(e.treeOutput, (l) => (u(), _("ul", {
|
|
937
937
|
key: l.title,
|
|
938
938
|
class: "list-unstyled"
|
|
939
939
|
}, [
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
(u(!0), _(
|
|
940
|
+
y("li", null, [
|
|
941
|
+
y("b", null, Q(l.title), 1),
|
|
942
|
+
y("ul", Do, [
|
|
943
|
+
(u(!0), _(O, null, M(l.items, (c) => (u(), _("li", {
|
|
944
944
|
key: c.title
|
|
945
945
|
}, [
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
(u(!0), _(
|
|
946
|
+
y("u", null, Q(c.title), 1),
|
|
947
|
+
y("ul", Bo, [
|
|
948
|
+
(u(!0), _(O, null, M(c.items, (s) => (u(), _("li", null, Q(s), 1))), 256))
|
|
949
949
|
])
|
|
950
950
|
]))), 128))
|
|
951
951
|
])
|
|
952
952
|
])
|
|
953
953
|
]))), 128))
|
|
954
954
|
]),
|
|
955
|
-
default:
|
|
956
|
-
|
|
955
|
+
default: x(() => [
|
|
956
|
+
F(e.IconQuestionCircle, { class: "icon" })
|
|
957
957
|
]),
|
|
958
958
|
_: 1
|
|
959
|
-
})) :
|
|
959
|
+
})) : re("", !0);
|
|
960
960
|
}
|
|
961
|
-
const
|
|
961
|
+
const st = /* @__PURE__ */ J(Ro, [["render", Ho], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Lo = /* @__PURE__ */ z({
|
|
962
962
|
__name: "index",
|
|
963
|
-
props: /* @__PURE__ */
|
|
963
|
+
props: /* @__PURE__ */ ce({
|
|
964
964
|
config: {},
|
|
965
965
|
className: {},
|
|
966
|
+
required: { type: Boolean },
|
|
966
967
|
fieldKey: {},
|
|
967
968
|
modelValue: {},
|
|
968
969
|
readonly: { type: Boolean },
|
|
@@ -972,28 +973,28 @@ const rt = /* @__PURE__ */ Y(Fo, [["render", Ro], ["__scopeId", "data-v-1d3893b1
|
|
|
972
973
|
modelValue: {},
|
|
973
974
|
modelModifiers: {}
|
|
974
975
|
}),
|
|
975
|
-
emits: /* @__PURE__ */
|
|
976
|
+
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
976
977
|
setup(t, { expose: o, emit: n }) {
|
|
977
|
-
const e = t, r = n, a =
|
|
978
|
+
const e = t, r = n, a = ke(t, "modelValue"), i = Ae("widgetRef"), l = K(() => {
|
|
978
979
|
switch (e.config?.widget?.widget) {
|
|
979
980
|
case "TextBox":
|
|
980
|
-
return
|
|
981
|
+
return qe;
|
|
981
982
|
case "Number":
|
|
982
|
-
return
|
|
983
|
+
return so;
|
|
983
984
|
case "SelectList":
|
|
984
|
-
return
|
|
985
|
+
return Ye;
|
|
985
986
|
case "Cascade":
|
|
986
|
-
return
|
|
987
|
+
return fo;
|
|
987
988
|
case "File":
|
|
988
|
-
return
|
|
989
|
+
return go;
|
|
989
990
|
case "TextArea":
|
|
990
|
-
return
|
|
991
|
+
return bo;
|
|
991
992
|
case "DropDown":
|
|
992
|
-
return
|
|
993
|
+
return Ye;
|
|
993
994
|
case "CheckBox":
|
|
994
|
-
return
|
|
995
|
+
return ho;
|
|
995
996
|
default:
|
|
996
|
-
return
|
|
997
|
+
return qe;
|
|
997
998
|
}
|
|
998
999
|
}), c = m(""), s = (f) => {
|
|
999
1000
|
c.value = f;
|
|
@@ -1020,28 +1021,28 @@ const rt = /* @__PURE__ */ Y(Fo, [["render", Ro], ["__scopeId", "data-v-1d3893b1
|
|
|
1020
1021
|
return e?.config?.widget?.title;
|
|
1021
1022
|
}
|
|
1022
1023
|
});
|
|
1023
|
-
const
|
|
1024
|
-
return Object.defineProperty(
|
|
1024
|
+
const b = { props: e, emits: r, model: a, widgetRef: i, curComp: l, errMsg: c, errHandler: s, changeHandler: d, isFileUpload: g, formatTitle: v, ToolTip: st };
|
|
1025
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
1025
1026
|
}
|
|
1026
|
-
}),
|
|
1027
|
+
}), Oo = { class: "title" }, $o = {
|
|
1027
1028
|
key: 0,
|
|
1028
1029
|
class: "required"
|
|
1029
|
-
},
|
|
1030
|
+
}, jo = {
|
|
1030
1031
|
key: 0,
|
|
1031
1032
|
class: "err-msg"
|
|
1032
1033
|
};
|
|
1033
|
-
function
|
|
1034
|
+
function Mo(t, o, n, e, r, a) {
|
|
1034
1035
|
return u(), _("div", null, [
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
e.props.config.validations.
|
|
1038
|
-
|
|
1036
|
+
y("div", Oo, [
|
|
1037
|
+
ae(Q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
|
|
1038
|
+
e.props.required || e.props.config.validations.some((i) => i.ruleName === "Required") ? (u(), _("span", $o, " * ")) : re("", !0),
|
|
1039
|
+
F(e.ToolTip, {
|
|
1039
1040
|
"is-visible": e.props.config.widget?.isVisible ?? !1,
|
|
1040
1041
|
"output-text": e.props.config.widget?.outputText ?? []
|
|
1041
1042
|
}, null, 8, ["is-visible", "output-text"])
|
|
1042
1043
|
]),
|
|
1043
|
-
|
|
1044
|
-
(u(),
|
|
1044
|
+
y("div", null, [
|
|
1045
|
+
(u(), D($e(e.curComp), {
|
|
1045
1046
|
ref: "widgetRef",
|
|
1046
1047
|
modelValue: e.model,
|
|
1047
1048
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => e.model = i),
|
|
@@ -1053,11 +1054,11 @@ function $o(t, o, n, e, r, a) {
|
|
|
1053
1054
|
onError: e.errHandler,
|
|
1054
1055
|
onChange: e.changeHandler
|
|
1055
1056
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
1056
|
-
e.errMsg.length > 0 ? (u(), _("div",
|
|
1057
|
+
e.errMsg.length > 0 ? (u(), _("div", jo, Q(e.errMsg), 1)) : re("", !0)
|
|
1057
1058
|
])
|
|
1058
1059
|
]);
|
|
1059
1060
|
}
|
|
1060
|
-
const
|
|
1061
|
+
const Te = /* @__PURE__ */ J(Lo, [["render", Mo], ["__scopeId", "data-v-67595df1"], ["__file", "index.vue"]]), Eo = /* @__PURE__ */ z({
|
|
1061
1062
|
__name: "SubmitButton",
|
|
1062
1063
|
props: {
|
|
1063
1064
|
url: {},
|
|
@@ -1075,20 +1076,20 @@ const Ve = /* @__PURE__ */ Y(Bo, [["render", $o], ["__scopeId", "data-v-af9c00b7
|
|
|
1075
1076
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
1076
1077
|
}
|
|
1077
1078
|
});
|
|
1078
|
-
function
|
|
1079
|
-
const i =
|
|
1080
|
-
return u(),
|
|
1079
|
+
function Ko(t, o, n, e, r, a) {
|
|
1080
|
+
const i = V("AButton");
|
|
1081
|
+
return u(), D(i, {
|
|
1081
1082
|
loading: n.loading,
|
|
1082
1083
|
type: "primary",
|
|
1083
1084
|
onClick: e.clickHandler
|
|
1084
1085
|
}, {
|
|
1085
|
-
default:
|
|
1086
|
+
default: x(() => [
|
|
1086
1087
|
ue(t.$slots, "default")
|
|
1087
1088
|
]),
|
|
1088
1089
|
_: 3
|
|
1089
1090
|
}, 8, ["loading"]);
|
|
1090
1091
|
}
|
|
1091
|
-
const
|
|
1092
|
+
const Qe = /* @__PURE__ */ J(Eo, [["render", Ko], ["__file", "SubmitButton.vue"]]), zo = /* @__PURE__ */ z({
|
|
1092
1093
|
__name: "DetailLink",
|
|
1093
1094
|
props: {
|
|
1094
1095
|
url: {},
|
|
@@ -1106,16 +1107,16 @@ const Ye = /* @__PURE__ */ Y(jo, [["render", Mo], ["__file", "SubmitButton.vue"]
|
|
|
1106
1107
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
1107
1108
|
}
|
|
1108
1109
|
});
|
|
1109
|
-
function
|
|
1110
|
-
const i =
|
|
1111
|
-
return u(),
|
|
1112
|
-
default:
|
|
1110
|
+
function Wo(t, o, n, e, r, a) {
|
|
1111
|
+
const i = V("ALink");
|
|
1112
|
+
return u(), D(i, { onClick: e.clickHandler }, {
|
|
1113
|
+
default: x(() => [
|
|
1113
1114
|
ue(t.$slots, "default")
|
|
1114
1115
|
]),
|
|
1115
1116
|
_: 3
|
|
1116
1117
|
});
|
|
1117
1118
|
}
|
|
1118
|
-
const
|
|
1119
|
+
const Go = /* @__PURE__ */ J(zo, [["render", Wo], ["__file", "DetailLink.vue"]]), qo = /* @__PURE__ */ z({
|
|
1119
1120
|
__name: "index",
|
|
1120
1121
|
props: {
|
|
1121
1122
|
config: {},
|
|
@@ -1128,50 +1129,50 @@ const Ko = /* @__PURE__ */ Y(Eo, [["render", zo], ["__file", "DetailLink.vue"]])
|
|
|
1128
1129
|
function a(d, g) {
|
|
1129
1130
|
r("click", e.config.widget, d, g, e.config.title);
|
|
1130
1131
|
}
|
|
1131
|
-
const i =
|
|
1132
|
+
const i = K(() => {
|
|
1132
1133
|
switch (e.config.location) {
|
|
1133
1134
|
case "InOperation":
|
|
1134
|
-
return
|
|
1135
|
+
return Qe;
|
|
1135
1136
|
case "InTable":
|
|
1136
|
-
return
|
|
1137
|
+
return Go;
|
|
1137
1138
|
default:
|
|
1138
|
-
return
|
|
1139
|
+
return Qe;
|
|
1139
1140
|
}
|
|
1140
|
-
}), l =
|
|
1141
|
+
}), l = K(() => e.config.widget === X.Submit ? e.config.requestUrl ?? "" : e.config.widget === X.Link ? e.config.redirectUrl ?? "" : ""), c = K(() => e.config.redirectType ?? "Details"), s = { props: e, emits: r, clickHandler: a, curComp: i, curUrl: l, redirectType: c };
|
|
1141
1142
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
1142
1143
|
}
|
|
1143
1144
|
});
|
|
1144
|
-
function
|
|
1145
|
-
return u(),
|
|
1145
|
+
function Yo(t, o, n, e, r, a) {
|
|
1146
|
+
return u(), D($e(e.curComp), {
|
|
1146
1147
|
url: e.curUrl,
|
|
1147
1148
|
"redirect-type": e.redirectType,
|
|
1148
1149
|
loading: n.loading,
|
|
1149
1150
|
onClick: e.clickHandler
|
|
1150
1151
|
}, {
|
|
1151
|
-
default:
|
|
1152
|
-
|
|
1152
|
+
default: x(() => [
|
|
1153
|
+
ae(Q(e.props.config.title), 1)
|
|
1153
1154
|
]),
|
|
1154
1155
|
_: 1
|
|
1155
1156
|
}, 8, ["url", "redirect-type", "loading"]);
|
|
1156
1157
|
}
|
|
1157
|
-
const
|
|
1158
|
-
function
|
|
1159
|
-
const t =
|
|
1160
|
-
return t ||
|
|
1158
|
+
const Ie = /* @__PURE__ */ J(qo, [["render", Yo], ["__file", "index.vue"]]), it = Symbol("library-router");
|
|
1159
|
+
function Pe() {
|
|
1160
|
+
const t = be(it, null);
|
|
1161
|
+
return t || yt();
|
|
1161
1162
|
}
|
|
1162
|
-
const
|
|
1163
|
+
const lt = Symbol("library-triggers");
|
|
1163
1164
|
function Ee() {
|
|
1164
|
-
const t =
|
|
1165
|
+
const t = be(lt, null);
|
|
1165
1166
|
return t || {};
|
|
1166
1167
|
}
|
|
1167
|
-
const
|
|
1168
|
-
function
|
|
1169
|
-
return
|
|
1168
|
+
const Qo = Symbol("library-pinia"), ct = Symbol("library-bpmStore"), dt = Symbol("library-svrStore");
|
|
1169
|
+
function Ne() {
|
|
1170
|
+
return be(ct, null);
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return
|
|
1172
|
+
function Fe() {
|
|
1173
|
+
return be(dt, null);
|
|
1173
1174
|
}
|
|
1174
|
-
const
|
|
1175
|
+
const Jo = /* @__PURE__ */ z({
|
|
1175
1176
|
__name: "TopBar",
|
|
1176
1177
|
props: {
|
|
1177
1178
|
title: {},
|
|
@@ -1183,27 +1184,27 @@ const Yo = /* @__PURE__ */ z({
|
|
|
1183
1184
|
const n = {};
|
|
1184
1185
|
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
1185
1186
|
}
|
|
1186
|
-
}),
|
|
1187
|
-
function
|
|
1188
|
-
const i =
|
|
1189
|
-
return u(), _("div",
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1187
|
+
}), Xo = { class: "top-bar" }, Zo = { class: "banner-info" }, en = { class: "page-title" }, tn = { class: "page-subtitle" }, on = { class: "avatar-wrapper" }, nn = { class: "user-email" };
|
|
1188
|
+
function an(t, o, n, e, r, a) {
|
|
1189
|
+
const i = V("a-avatar"), l = V("a-popover");
|
|
1190
|
+
return u(), _("div", Xo, [
|
|
1191
|
+
y("div", Zo, [
|
|
1192
|
+
y("div", en, Q(n.title), 1),
|
|
1193
|
+
y("div", tn, Q(n.subTitle), 1)
|
|
1193
1194
|
]),
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
content:
|
|
1197
|
-
|
|
1195
|
+
y("div", on, [
|
|
1196
|
+
F(l, { trigger: "click" }, {
|
|
1197
|
+
content: x(() => [
|
|
1198
|
+
y("div", nn, Q(n.email), 1)
|
|
1198
1199
|
]),
|
|
1199
|
-
default:
|
|
1200
|
-
|
|
1200
|
+
default: x(() => [
|
|
1201
|
+
F(i, {
|
|
1201
1202
|
size: 48,
|
|
1202
1203
|
autoFixFontSize: "",
|
|
1203
1204
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
1204
1205
|
}, {
|
|
1205
|
-
default:
|
|
1206
|
-
|
|
1206
|
+
default: x(() => [
|
|
1207
|
+
ae(Q(n.email.charAt(0).toUpperCase()), 1)
|
|
1207
1208
|
]),
|
|
1208
1209
|
_: 1
|
|
1209
1210
|
})
|
|
@@ -1213,8 +1214,8 @@ function on(t, o, n, e, r, a) {
|
|
|
1213
1214
|
])
|
|
1214
1215
|
]);
|
|
1215
1216
|
}
|
|
1216
|
-
const
|
|
1217
|
-
function
|
|
1217
|
+
const Ue = /* @__PURE__ */ J(Jo, [["render", an], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
1218
|
+
function Ke(t) {
|
|
1218
1219
|
const o = je(), n = [];
|
|
1219
1220
|
if (o.fieldsGroup) {
|
|
1220
1221
|
o.fieldsGroup.forEach((a) => {
|
|
@@ -1225,7 +1226,7 @@ function ze(t) {
|
|
|
1225
1226
|
return r.length && n.push({ name: "Grading Review History (For example: re-submit the grading request)", fields: r }), n;
|
|
1226
1227
|
}
|
|
1227
1228
|
}
|
|
1228
|
-
class
|
|
1229
|
+
class Re {
|
|
1229
1230
|
pageActionType;
|
|
1230
1231
|
className = "";
|
|
1231
1232
|
store = { svrStore: {}, bpmStore: {} };
|
|
@@ -1246,10 +1247,10 @@ class Fe {
|
|
|
1246
1247
|
return this.opt = o, this;
|
|
1247
1248
|
}
|
|
1248
1249
|
build() {
|
|
1249
|
-
return this.pageActionType ? this.opt.workflowId ? new
|
|
1250
|
+
return this.pageActionType ? this.opt.workflowId ? new Ve(this.pageActionType, this.className, this.store, this.opt) : new Ve(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new Ve(_e.ReCreate, this.className, this.store, this.opt) : new Ve(_e.Create, this.className, this.store);
|
|
1250
1251
|
}
|
|
1251
1252
|
}
|
|
1252
|
-
class
|
|
1253
|
+
class Ve {
|
|
1253
1254
|
pageActionType;
|
|
1254
1255
|
className;
|
|
1255
1256
|
store;
|
|
@@ -1264,40 +1265,40 @@ class xe {
|
|
|
1264
1265
|
this.pageActionType = o, this.className = n, this.store = e, r && (this.opt = r);
|
|
1265
1266
|
}
|
|
1266
1267
|
getPageData() {
|
|
1267
|
-
return this.opt ?
|
|
1268
|
+
return this.opt ? Ge(this.pageActionType, this.className, this.store, this.opt) : Ge(this.pageActionType, this.className, this.store);
|
|
1268
1269
|
}
|
|
1269
1270
|
getBtnList() {
|
|
1270
|
-
return
|
|
1271
|
+
return Ft(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
|
|
1271
1272
|
}
|
|
1272
1273
|
getFiles() {
|
|
1273
|
-
return this.getWorkflowId() ?
|
|
1274
|
+
return this.getWorkflowId() ? zt(this.className, this.getWorkflowId()) : Promise.resolve({});
|
|
1274
1275
|
}
|
|
1275
1276
|
removeFile(o) {
|
|
1276
|
-
return
|
|
1277
|
+
return Wt(this.className, o);
|
|
1277
1278
|
}
|
|
1278
1279
|
getProcess() {
|
|
1279
|
-
return
|
|
1280
|
+
return Et(this.className, this.getWorkflowId());
|
|
1280
1281
|
}
|
|
1281
1282
|
getCommentsHistory() {
|
|
1282
|
-
return
|
|
1283
|
+
return Qt(this.getWorkflowId());
|
|
1283
1284
|
}
|
|
1284
1285
|
getAssociator() {
|
|
1285
|
-
return
|
|
1286
|
+
return Jt(this.getWorkflowId());
|
|
1286
1287
|
}
|
|
1287
1288
|
getApprovers() {
|
|
1288
|
-
return
|
|
1289
|
+
return Gt();
|
|
1289
1290
|
}
|
|
1290
1291
|
assignApprover(o) {
|
|
1291
|
-
return
|
|
1292
|
+
return qt(this.getWorkflowId(), o);
|
|
1292
1293
|
}
|
|
1293
1294
|
addComments(o) {
|
|
1294
|
-
return
|
|
1295
|
+
return Yt(this.getWorkflowId(), this.getApproverEmail(), o);
|
|
1295
1296
|
}
|
|
1296
1297
|
deleteAssociator(o) {
|
|
1297
|
-
return
|
|
1298
|
+
return Xt(o);
|
|
1298
1299
|
}
|
|
1299
1300
|
}
|
|
1300
|
-
const
|
|
1301
|
+
const rn = /* @__PURE__ */ z({
|
|
1301
1302
|
__name: "CreateView",
|
|
1302
1303
|
props: {
|
|
1303
1304
|
className: {},
|
|
@@ -1305,7 +1306,7 @@ const nn = /* @__PURE__ */ z({
|
|
|
1305
1306
|
},
|
|
1306
1307
|
setup(t, { expose: o }) {
|
|
1307
1308
|
o();
|
|
1308
|
-
const n =
|
|
1309
|
+
const n = Ne(), e = Fe(), r = Pe(), a = Ee(), i = Ae("dataWidgets"), l = ve(), c = t, s = m({
|
|
1309
1310
|
pageType: "",
|
|
1310
1311
|
fields: {},
|
|
1311
1312
|
globalValidations: [],
|
|
@@ -1321,133 +1322,133 @@ const nn = /* @__PURE__ */ z({
|
|
|
1321
1322
|
workflowId: ""
|
|
1322
1323
|
}
|
|
1323
1324
|
}), d = m([]), g = m({});
|
|
1324
|
-
function v(
|
|
1325
|
-
return
|
|
1326
|
-
fieldKey:
|
|
1325
|
+
function v(C) {
|
|
1326
|
+
return C ? Object.entries(C).map(([S, U]) => ({
|
|
1327
|
+
fieldKey: S,
|
|
1327
1328
|
...U
|
|
1328
|
-
})).filter((
|
|
1329
|
+
})).filter((S) => S.widget && S.widget.widget !== "Hidden").filter((S) => !ee.value.includes(S.fieldKey)) : [];
|
|
1329
1330
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1332
|
-
(
|
|
1331
|
+
function b(C) {
|
|
1332
|
+
return C ? Object.entries(C).filter(([S, U]) => U.dependent).reduce(
|
|
1333
|
+
(S, [U, $]) => (S[U] = $.dependent, S),
|
|
1333
1334
|
{}
|
|
1334
1335
|
) : [];
|
|
1335
1336
|
}
|
|
1336
|
-
const f =
|
|
1337
|
+
const f = K(() => s.value?.actions ? [...s.value.actions].reverse() : []), p = m({}), h = m(!1);
|
|
1337
1338
|
fe(async () => {
|
|
1338
|
-
|
|
1339
|
-
const
|
|
1340
|
-
s.value = await
|
|
1339
|
+
h.value = !0;
|
|
1340
|
+
const C = new Re().setWorkflowId(c.workflowId).setClassName(c.className).setStore({ svrStore: e, bpmStore: n }).build();
|
|
1341
|
+
s.value = await C.getPageData(), d.value = v(s.value.fields), g.value = b(s.value.fields);
|
|
1341
1342
|
for (const T in s.value.fields) {
|
|
1342
1343
|
if (s.value.fields[T].widget?.widget === "File") {
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1344
|
+
const S = d.value.find((U) => U.fieldKey === T);
|
|
1345
|
+
S && S.widget && (S.widget.files = []);
|
|
1345
1346
|
}
|
|
1346
1347
|
p.value[T] = s.value.fields[T].modelValue;
|
|
1347
1348
|
}
|
|
1348
|
-
|
|
1349
|
+
h.value = !1;
|
|
1349
1350
|
});
|
|
1350
|
-
function
|
|
1351
|
+
function Z() {
|
|
1351
1352
|
return e()?.userInfo?.email_address ?? "";
|
|
1352
1353
|
}
|
|
1353
|
-
async function
|
|
1354
|
+
async function oe(C, T, S, U, $) {
|
|
1354
1355
|
switch (T) {
|
|
1355
|
-
case
|
|
1356
|
-
let
|
|
1357
|
-
if (i.value?.forEach((
|
|
1358
|
-
|
|
1359
|
-
}), !
|
|
1356
|
+
case X.Submit:
|
|
1357
|
+
let H = !0;
|
|
1358
|
+
if (i.value?.forEach((W) => {
|
|
1359
|
+
W?.validate && (W.validate() || (H = !1));
|
|
1360
|
+
}), !H) {
|
|
1360
1361
|
l?.appContext.config.globalProperties.$message.error(
|
|
1361
1362
|
"form validation failed, please check the input fields"
|
|
1362
1363
|
);
|
|
1363
1364
|
return;
|
|
1364
1365
|
}
|
|
1365
|
-
|
|
1366
|
+
h.value = !0;
|
|
1366
1367
|
try {
|
|
1367
|
-
a[
|
|
1368
|
-
const
|
|
1368
|
+
a[$]?.({ message: `${$} action triggered` });
|
|
1369
|
+
const W = {
|
|
1369
1370
|
...p.value,
|
|
1370
1371
|
...g.value
|
|
1371
1372
|
};
|
|
1372
|
-
a.createPageBeforeSubmit?.(
|
|
1373
|
-
const
|
|
1373
|
+
a.createPageBeforeSubmit?.(W);
|
|
1374
|
+
const ie = await Rt(
|
|
1374
1375
|
c.className,
|
|
1375
|
-
|
|
1376
|
-
|
|
1376
|
+
W,
|
|
1377
|
+
S
|
|
1377
1378
|
);
|
|
1378
|
-
a[`${
|
|
1379
|
+
a[`${$}Success` || ""]?.({
|
|
1379
1380
|
message: "Workflow created successfully",
|
|
1380
1381
|
workflowId: c.workflowId,
|
|
1381
|
-
res:
|
|
1382
|
+
res: ie
|
|
1382
1383
|
});
|
|
1383
|
-
const
|
|
1384
|
-
await Promise.all(
|
|
1385
|
-
`Your grading request has been submitted, ID is ${
|
|
1386
|
-
), r.push({ name: "Details", params: { workflowId:
|
|
1384
|
+
const le = i.value?.map((se) => se?.submit ? se.submit(ie.toString()) : Promise.resolve()) || [];
|
|
1385
|
+
await Promise.all(le), h.value = !1, l?.appContext.config.globalProperties.$notification.success(
|
|
1386
|
+
`Your grading request has been submitted, ID is ${ie.toString()}.`
|
|
1387
|
+
), r.push({ name: "Details", params: { workflowId: ie.toString() } });
|
|
1387
1388
|
} catch {
|
|
1388
1389
|
l?.appContext.config.globalProperties.$notification.error(
|
|
1389
1390
|
"Failed to submit your grading request"
|
|
1390
|
-
),
|
|
1391
|
+
), h.value = !1;
|
|
1391
1392
|
}
|
|
1392
1393
|
break;
|
|
1393
|
-
case
|
|
1394
|
+
case X.Link:
|
|
1394
1395
|
try {
|
|
1395
|
-
await a[
|
|
1396
|
+
await a[C.eventName || ""]?.(p.value, ee), r.push({
|
|
1396
1397
|
name: U,
|
|
1397
1398
|
params: { className: c.className }
|
|
1398
|
-
}), await a[`${
|
|
1399
|
+
}), await a[`${C.eventName || ""}Success`]?.({
|
|
1399
1400
|
message: `Router to ${U} pushed`
|
|
1400
1401
|
});
|
|
1401
|
-
} catch (
|
|
1402
|
-
console.error("Error in link action trigger:",
|
|
1402
|
+
} catch (W) {
|
|
1403
|
+
console.error("Error in link action trigger:", W);
|
|
1403
1404
|
}
|
|
1404
1405
|
break;
|
|
1405
1406
|
default:
|
|
1406
1407
|
console.warn("Unknown action type:", T);
|
|
1407
1408
|
}
|
|
1408
1409
|
}
|
|
1409
|
-
const
|
|
1410
|
+
const E = [
|
|
1410
1411
|
"jobScpope",
|
|
1411
1412
|
"currentWorkdayId",
|
|
1412
1413
|
"originalGrade",
|
|
1413
1414
|
"jobTitlePrevious",
|
|
1414
1415
|
"jobAttachmentPrevious",
|
|
1415
1416
|
"positionId"
|
|
1416
|
-
],
|
|
1417
|
-
function
|
|
1418
|
-
a[
|
|
1417
|
+
], ee = m(E);
|
|
1418
|
+
function ne(C, T) {
|
|
1419
|
+
a[C]?.({ fieldValue: T, hiddenFields: ee, formData: p }), s.value && (d.value = v(s.value.fields));
|
|
1419
1420
|
}
|
|
1420
|
-
const
|
|
1421
|
-
return Object.defineProperty(
|
|
1421
|
+
const A = K(() => Ke(d.value)), k = { bpmStore: n, svrStore: e, router: r, triggers: a, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: g, genField: v, genDependentField: b, reversedActions: f, _data: p, loading: h, getApproverEmail: Z, clickHandler: oe, newHiddenFields: E, hiddenFields: ee, changeHandler: ne, groupedFields: A, DataWidgets: Te, ActionButton: Ie, TopBar: Ue };
|
|
1422
|
+
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
1422
1423
|
}
|
|
1423
|
-
}),
|
|
1424
|
+
}), sn = { class: "page-container" }, ln = { class: "page-body" }, cn = { class: "form-card" }, dn = { class: "form-fields-vertical" }, un = { class: "form-fields" }, fn = {
|
|
1424
1425
|
key: 0,
|
|
1425
1426
|
class: "form-content"
|
|
1426
|
-
},
|
|
1427
|
-
function
|
|
1428
|
-
const i =
|
|
1429
|
-
return u(), _("div",
|
|
1430
|
-
|
|
1427
|
+
}, pn = { class: "page-footer" }, mn = { class: "action-container" }, gn = { class: "action-buttons" };
|
|
1428
|
+
function _n(t, o, n, e, r, a) {
|
|
1429
|
+
const i = V("a-card"), l = V("a-spin");
|
|
1430
|
+
return u(), _("div", sn, [
|
|
1431
|
+
F(e.TopBar, {
|
|
1431
1432
|
title: e.pageData.banner.title,
|
|
1432
1433
|
subTitle: e.pageData.banner.subTitle,
|
|
1433
1434
|
email: e.getApproverEmail()
|
|
1434
1435
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1435
|
-
|
|
1436
|
-
|
|
1436
|
+
y("div", ln, [
|
|
1437
|
+
F(l, {
|
|
1437
1438
|
loading: e.loading,
|
|
1438
1439
|
class: "form-container"
|
|
1439
1440
|
}, {
|
|
1440
|
-
default:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
(u(!0), _(
|
|
1441
|
+
default: x(() => [
|
|
1442
|
+
y("div", cn, [
|
|
1443
|
+
y("div", dn, [
|
|
1444
|
+
(u(!0), _(O, null, M(e.groupedFields, (c) => (u(), D(i, {
|
|
1444
1445
|
key: c.name,
|
|
1445
1446
|
title: c.name,
|
|
1446
1447
|
style: { "margin-bottom": "24px" }
|
|
1447
1448
|
}, {
|
|
1448
|
-
default:
|
|
1449
|
-
|
|
1450
|
-
(u(!0), _(
|
|
1449
|
+
default: x(() => [
|
|
1450
|
+
y("div", un, [
|
|
1451
|
+
(u(!0), _(O, null, M(c.fields, (s) => (u(), D(e.DataWidgets, {
|
|
1451
1452
|
key: s.fieldKey,
|
|
1452
1453
|
ref_for: !0,
|
|
1453
1454
|
ref: "dataWidgets",
|
|
@@ -1464,19 +1465,19 @@ function mn(t, o, n, e, r, a) {
|
|
|
1464
1465
|
_: 2
|
|
1465
1466
|
}, 1032, ["title"]))), 128))
|
|
1466
1467
|
]),
|
|
1467
|
-
t.$slots.content ? (u(), _("div",
|
|
1468
|
+
t.$slots.content ? (u(), _("div", fn, [
|
|
1468
1469
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
1469
|
-
])) :
|
|
1470
|
+
])) : re("", !0)
|
|
1470
1471
|
])
|
|
1471
1472
|
]),
|
|
1472
1473
|
_: 3
|
|
1473
1474
|
}, 8, ["loading"])
|
|
1474
1475
|
]),
|
|
1475
|
-
|
|
1476
|
-
|
|
1476
|
+
y("div", pn, [
|
|
1477
|
+
y("div", mn, [
|
|
1477
1478
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
1478
|
-
|
|
1479
|
-
(u(!0), _(
|
|
1479
|
+
y("div", gn, [
|
|
1480
|
+
(u(!0), _(O, null, M(e.reversedActions, (c) => (u(), D(e.ActionButton, {
|
|
1480
1481
|
key: c.title,
|
|
1481
1482
|
loading: e.loading,
|
|
1482
1483
|
config: c,
|
|
@@ -1488,7 +1489,7 @@ function mn(t, o, n, e, r, a) {
|
|
|
1488
1489
|
])
|
|
1489
1490
|
]);
|
|
1490
1491
|
}
|
|
1491
|
-
const
|
|
1492
|
+
const vn = /* @__PURE__ */ J(rn, [["render", _n], ["__scopeId", "data-v-7ac0ce3d"], ["__file", "CreateView.vue"]]), bn = /* @__PURE__ */ z({
|
|
1492
1493
|
__name: "UpdateView",
|
|
1493
1494
|
props: {
|
|
1494
1495
|
className: {},
|
|
@@ -1496,7 +1497,7 @@ const gn = /* @__PURE__ */ Y(nn, [["render", mn], ["__scopeId", "data-v-7ac0ce3d
|
|
|
1496
1497
|
},
|
|
1497
1498
|
setup(t, { expose: o }) {
|
|
1498
1499
|
o();
|
|
1499
|
-
const n =
|
|
1500
|
+
const n = Pe(), e = Ee(), r = Fe(), a = Ne(), i = Ae("dataWidgets"), l = ve(), c = t, s = m({
|
|
1500
1501
|
pageType: "",
|
|
1501
1502
|
fields: {},
|
|
1502
1503
|
globalValidations: [],
|
|
@@ -1512,104 +1513,104 @@ const gn = /* @__PURE__ */ Y(nn, [["render", mn], ["__scopeId", "data-v-7ac0ce3d
|
|
|
1512
1513
|
workflowId: ""
|
|
1513
1514
|
}
|
|
1514
1515
|
}), d = m([]), g = m({});
|
|
1515
|
-
function v(
|
|
1516
|
-
return
|
|
1516
|
+
function v(k) {
|
|
1517
|
+
return k ? Object.entries(k).map(([T, S]) => ({
|
|
1517
1518
|
fieldKey: T,
|
|
1518
|
-
...
|
|
1519
|
-
})).filter((T) => T.widget && T.widget.widget !== "Hidden").filter((T) => !
|
|
1519
|
+
...S
|
|
1520
|
+
})).filter((T) => T.widget && T.widget.widget !== "Hidden").filter((T) => !E.value.includes(T.fieldKey)) : [];
|
|
1520
1521
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return
|
|
1522
|
+
function b(k) {
|
|
1523
|
+
return k ? Object.entries(k).filter(([T, S]) => S.dependent).reduce((T, [S, U]) => (T[S] = U.dependent, T), {}) : [];
|
|
1523
1524
|
}
|
|
1524
|
-
const f =
|
|
1525
|
+
const f = K(() => s.value?.actions ? [...s.value.actions].reverse() : []), p = m({}), h = m(!1);
|
|
1525
1526
|
fe(async () => {
|
|
1526
|
-
|
|
1527
|
-
const
|
|
1528
|
-
s.value = await
|
|
1529
|
-
const
|
|
1527
|
+
h.value = !0;
|
|
1528
|
+
const k = new Re().setPageActionType(_e.Update).setClassName(c.className).setStore({ svrStore: r, bpmStore: a }).setWorkflowId(c.workflowId).build();
|
|
1529
|
+
s.value = await k.getPageData();
|
|
1530
|
+
const C = await k.getBtnList(), T = await k.getFiles();
|
|
1530
1531
|
s.value.actions = s.value.actions?.filter((U) => {
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1532
|
+
const $ = C.find((H) => H.button === U.title);
|
|
1533
|
+
return $ ? $.isShow : !0;
|
|
1533
1534
|
});
|
|
1534
|
-
const
|
|
1535
|
-
e.Test?.({ fieldValue:
|
|
1535
|
+
const S = s.value.fields.requestType.modelValue;
|
|
1536
|
+
e.Test?.({ fieldValue: S, hiddenFields: E, formData: p }), d.value = v(s.value.fields), g.value = b(s.value.fields);
|
|
1536
1537
|
for (const U in s.value.fields) {
|
|
1537
1538
|
if (s.value.fields[U].widget?.widget === "File") {
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1539
|
+
const $ = d.value.find((H) => H.fieldKey === U);
|
|
1540
|
+
$ && $.widget && ($.widget.files = T[U] ?? [], $.widget.removeFile = (H) => k.removeFile(H));
|
|
1540
1541
|
}
|
|
1541
1542
|
p.value[U] = s.value.fields[U].modelValue;
|
|
1542
1543
|
}
|
|
1543
|
-
|
|
1544
|
+
h.value = !1;
|
|
1544
1545
|
});
|
|
1545
|
-
function
|
|
1546
|
+
function Z() {
|
|
1546
1547
|
return r()?.userInfo?.email_address ?? "";
|
|
1547
1548
|
}
|
|
1548
|
-
async function
|
|
1549
|
-
switch (
|
|
1550
|
-
case
|
|
1551
|
-
let
|
|
1552
|
-
if (i.value?.forEach((
|
|
1553
|
-
|
|
1554
|
-
}),
|
|
1549
|
+
async function oe(k, C, T, S, U) {
|
|
1550
|
+
switch (C) {
|
|
1551
|
+
case X.Submit:
|
|
1552
|
+
let $ = !0;
|
|
1553
|
+
if (i.value?.forEach((H) => {
|
|
1554
|
+
H?.validate && (H.validate() || ($ = !1));
|
|
1555
|
+
}), !$) {
|
|
1555
1556
|
l?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1556
1557
|
return;
|
|
1557
1558
|
}
|
|
1558
|
-
|
|
1559
|
+
h.value = !0;
|
|
1559
1560
|
try {
|
|
1560
|
-
const
|
|
1561
|
-
e.updatePageBeforeSubmit?.(
|
|
1562
|
-
const
|
|
1563
|
-
await Promise.all(
|
|
1561
|
+
const H = { ...p.value, ...g.value };
|
|
1562
|
+
e.updatePageBeforeSubmit?.(H, a().employeeInfo);
|
|
1563
|
+
const W = await Dt(c.className, c.workflowId, H, T), ie = i.value?.map((le) => le?.submit ? le.submit(W.toString()) : Promise.resolve()) || [];
|
|
1564
|
+
await Promise.all(ie), h.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${W.toString()}.`);
|
|
1564
1565
|
} catch {
|
|
1565
|
-
l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"),
|
|
1566
|
+
l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), h.value = !1;
|
|
1566
1567
|
}
|
|
1567
1568
|
break;
|
|
1568
|
-
case
|
|
1569
|
+
case X.Link:
|
|
1569
1570
|
try {
|
|
1570
|
-
await e[
|
|
1571
|
+
await e[k.eventName || ""]?.(p.value, E), n.push({ name: S, params: { className: c.className } });
|
|
1571
1572
|
} catch {
|
|
1572
1573
|
}
|
|
1573
1574
|
break;
|
|
1574
1575
|
default:
|
|
1575
|
-
console.warn("Unknown action type:",
|
|
1576
|
+
console.warn("Unknown action type:", C);
|
|
1576
1577
|
}
|
|
1577
1578
|
}
|
|
1578
|
-
const
|
|
1579
|
-
function
|
|
1580
|
-
e[
|
|
1579
|
+
const E = m([]);
|
|
1580
|
+
function ee(k, C) {
|
|
1581
|
+
e[k]?.({ fieldValue: C, hiddenFields: E, formData: p }), s.value && (d.value = v(s.value.fields));
|
|
1581
1582
|
}
|
|
1582
|
-
const
|
|
1583
|
-
return Object.defineProperty(
|
|
1583
|
+
const ne = K(() => Ke(d.value)), A = { router: n, triggers: e, svrStore: r, bpmStore: a, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: g, genField: v, genDependentField: b, reversedActions: f, _data: p, loading: h, getApproverEmail: Z, clickHandler: oe, hiddenFields: E, changeHandler: ee, groupedFields: ne, DataWidgets: Te, ActionButton: Ie, TopBar: Ue };
|
|
1584
|
+
return Object.defineProperty(A, "__isScriptSetup", { enumerable: !1, value: !0 }), A;
|
|
1584
1585
|
}
|
|
1585
|
-
}),
|
|
1586
|
+
}), yn = { class: "page-container" }, wn = { class: "page-body" }, hn = { class: "form-card" }, kn = { class: "form-fields-vertical" }, Cn = { class: "form-fields" }, Sn = {
|
|
1586
1587
|
key: 0,
|
|
1587
1588
|
class: "form-content"
|
|
1588
|
-
},
|
|
1589
|
-
function
|
|
1590
|
-
const i =
|
|
1591
|
-
return u(), _("div",
|
|
1592
|
-
|
|
1589
|
+
}, xn = { class: "page-footer" }, Vn = { class: "action-container" }, An = { class: "action-buttons" };
|
|
1590
|
+
function Tn(t, o, n, e, r, a) {
|
|
1591
|
+
const i = V("a-card"), l = V("a-spin");
|
|
1592
|
+
return u(), _("div", yn, [
|
|
1593
|
+
F(e.TopBar, {
|
|
1593
1594
|
title: e.pageData.banner.title,
|
|
1594
1595
|
subTitle: e.pageData.banner.subTitle,
|
|
1595
1596
|
email: e.getApproverEmail()
|
|
1596
1597
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1597
|
-
|
|
1598
|
-
|
|
1598
|
+
y("div", wn, [
|
|
1599
|
+
F(l, {
|
|
1599
1600
|
loading: e.loading,
|
|
1600
1601
|
class: "form-container"
|
|
1601
1602
|
}, {
|
|
1602
|
-
default:
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
(u(!0), _(
|
|
1603
|
+
default: x(() => [
|
|
1604
|
+
y("div", hn, [
|
|
1605
|
+
y("div", kn, [
|
|
1606
|
+
(u(!0), _(O, null, M(e.groupedFields, (c) => (u(), D(i, {
|
|
1606
1607
|
key: c.name,
|
|
1607
1608
|
title: c.name,
|
|
1608
1609
|
style: { "margin-bottom": "24px" }
|
|
1609
1610
|
}, {
|
|
1610
|
-
default:
|
|
1611
|
-
|
|
1612
|
-
(u(!0), _(
|
|
1611
|
+
default: x(() => [
|
|
1612
|
+
y("div", Cn, [
|
|
1613
|
+
(u(!0), _(O, null, M(c.fields, (s) => (u(), D(e.DataWidgets, {
|
|
1613
1614
|
key: s.fieldKey,
|
|
1614
1615
|
ref_for: !0,
|
|
1615
1616
|
ref: "dataWidgets",
|
|
@@ -1626,19 +1627,19 @@ function Vn(t, o, n, e, r, a) {
|
|
|
1626
1627
|
_: 2
|
|
1627
1628
|
}, 1032, ["title"]))), 128))
|
|
1628
1629
|
]),
|
|
1629
|
-
t.$slots.content ? (u(), _("div",
|
|
1630
|
+
t.$slots.content ? (u(), _("div", Sn, [
|
|
1630
1631
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
1631
|
-
])) :
|
|
1632
|
+
])) : re("", !0)
|
|
1632
1633
|
])
|
|
1633
1634
|
]),
|
|
1634
1635
|
_: 3
|
|
1635
1636
|
}, 8, ["loading"])
|
|
1636
1637
|
]),
|
|
1637
|
-
|
|
1638
|
-
|
|
1638
|
+
y("div", xn, [
|
|
1639
|
+
y("div", Vn, [
|
|
1639
1640
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
1640
|
-
|
|
1641
|
-
(u(!0), _(
|
|
1641
|
+
y("div", An, [
|
|
1642
|
+
(u(!0), _(O, null, M(e.reversedActions, (c) => (u(), D(e.ActionButton, {
|
|
1642
1643
|
key: c.title,
|
|
1643
1644
|
loading: e.loading,
|
|
1644
1645
|
config: c,
|
|
@@ -1650,11 +1651,11 @@ function Vn(t, o, n, e, r, a) {
|
|
|
1650
1651
|
])
|
|
1651
1652
|
]);
|
|
1652
1653
|
}
|
|
1653
|
-
const
|
|
1654
|
-
function
|
|
1655
|
-
return
|
|
1654
|
+
const In = /* @__PURE__ */ J(bn, [["render", Tn], ["__scopeId", "data-v-605f261e"], ["__file", "UpdateView.vue"]]), ut = Symbol("library-custom-comp");
|
|
1655
|
+
function Pn() {
|
|
1656
|
+
return be(ut, null);
|
|
1656
1657
|
}
|
|
1657
|
-
const
|
|
1658
|
+
const Nn = /* @__PURE__ */ z({
|
|
1658
1659
|
__name: "DetailView",
|
|
1659
1660
|
props: {
|
|
1660
1661
|
className: {},
|
|
@@ -1662,7 +1663,7 @@ const In = /* @__PURE__ */ z({
|
|
|
1662
1663
|
},
|
|
1663
1664
|
setup(t, { expose: o }) {
|
|
1664
1665
|
o();
|
|
1665
|
-
const n =
|
|
1666
|
+
const n = Fe(), e = Ne(), r = Ee(), a = Pe(), i = Pn(), l = ve(), c = t;
|
|
1666
1667
|
let s;
|
|
1667
1668
|
const d = m({
|
|
1668
1669
|
pageType: "",
|
|
@@ -1679,18 +1680,34 @@ const In = /* @__PURE__ */ z({
|
|
|
1679
1680
|
workFlowReason: "",
|
|
1680
1681
|
workflowId: ""
|
|
1681
1682
|
}
|
|
1682
|
-
}), g = m([]);
|
|
1683
|
-
function
|
|
1684
|
-
return
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1683
|
+
}), g = m([]), v = Ae("dataWidgets");
|
|
1684
|
+
function b(P) {
|
|
1685
|
+
return P ? Object.entries(P).map(([G, N]) => {
|
|
1686
|
+
typeof N.modelValue == "boolean" ? N.fieldValue = N.modelValue ? "Yes" : "No" : N.fieldValue = N.modelValue;
|
|
1687
|
+
const j = {
|
|
1688
|
+
fieldKey: G,
|
|
1689
|
+
...N
|
|
1690
|
+
};
|
|
1691
|
+
return j.widget?.readonly || j.validations?.some(
|
|
1692
|
+
(me) => me.ruleName === "Required"
|
|
1693
|
+
) ? j : {
|
|
1694
|
+
...j,
|
|
1695
|
+
validations: [
|
|
1696
|
+
...j.validations || [],
|
|
1697
|
+
{
|
|
1698
|
+
ruleName: "Required",
|
|
1699
|
+
ruleParameter: "",
|
|
1700
|
+
errorMessage: `${pe(j.widget?.title) || j.fieldKey} is required`
|
|
1701
|
+
}
|
|
1702
|
+
]
|
|
1703
|
+
};
|
|
1704
|
+
}).filter((G) => G.widget && G.widget.widget !== "Hidden").filter((G) => !C.value.includes(G.fieldKey)) : [];
|
|
1688
1705
|
}
|
|
1689
|
-
const
|
|
1690
|
-
const
|
|
1691
|
-
return
|
|
1692
|
-
const
|
|
1693
|
-
id:
|
|
1706
|
+
const f = K(() => Ke(g.value)), p = K(() => d.value?.actions ? [...d.value.actions].reverse() : []), h = m(!0), Z = (P, L) => {
|
|
1707
|
+
const G = P.findIndex((N) => N.isCurrent);
|
|
1708
|
+
return P.map((N, j) => {
|
|
1709
|
+
const R = {
|
|
1710
|
+
id: N.id,
|
|
1694
1711
|
title: "",
|
|
1695
1712
|
proxy: "",
|
|
1696
1713
|
sub: "",
|
|
@@ -1698,131 +1715,140 @@ const In = /* @__PURE__ */ z({
|
|
|
1698
1715
|
status: 1,
|
|
1699
1716
|
time: ""
|
|
1700
1717
|
};
|
|
1701
|
-
|
|
1702
|
-
const
|
|
1703
|
-
if (
|
|
1704
|
-
|
|
1718
|
+
R.title = N.workflowProcessApprovers[0]?.name;
|
|
1719
|
+
const me = N.workflowProcessApprovers[N.workflowProcessApprovers.length - 1], Ce = N.workflowHistorys[N.workflowHistorys.length - 1], we = Ce?.workflowHistoryApprovers[Ce?.workflowHistoryApprovers?.length - 1];
|
|
1720
|
+
if (me && we && me?.email?.toLowerCase() !== we?.approverEmail?.toLowerCase() && (R.title = `${we.name}`, R.proxy = `Proxy: ${me.name}`), N.sort > 1 ? R.sub = "Approver Role: " + N.nodeName.replace("Submit", "").replace("Approve", "") : R.sub = "Submit Application", N.isCurrent && L !== -1)
|
|
1721
|
+
R.desc = "In Approval", R.status = 1;
|
|
1705
1722
|
else {
|
|
1706
|
-
const te =
|
|
1723
|
+
const te = N.workflowHistorys[N.workflowHistorys.length - 1];
|
|
1707
1724
|
if (te && te.status === 100)
|
|
1708
|
-
|
|
1725
|
+
R.time = xe(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.status = 2, R.desc = "approve success!";
|
|
1709
1726
|
else if (te && te.status === 999)
|
|
1710
|
-
|
|
1727
|
+
R.time = xe(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.status = 0, R.desc = "approve reject!";
|
|
1711
1728
|
else if (te)
|
|
1712
|
-
if (
|
|
1713
|
-
|
|
1729
|
+
if (R.time = xe(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), N.sort === 1)
|
|
1730
|
+
R.status = 2, R.desc = "";
|
|
1714
1731
|
else {
|
|
1715
|
-
const
|
|
1716
|
-
|
|
1732
|
+
const Se = te.workflowHistoryApprovers[0];
|
|
1733
|
+
R.status = 3, R.desc = Se?.reason ? `Rejected reason: ${Se.reason}` : "Rejected";
|
|
1717
1734
|
}
|
|
1718
|
-
else
|
|
1735
|
+
else j < G || G === -1 ? (R.status = 0, R.desc = "Skipped") : (R.status = 0, R.desc = "Pending Approval");
|
|
1719
1736
|
te && te.status;
|
|
1720
1737
|
}
|
|
1721
|
-
return
|
|
1738
|
+
return R;
|
|
1722
1739
|
});
|
|
1723
|
-
},
|
|
1724
|
-
async function V() {
|
|
1725
|
-
const I = await s.getBtnList();
|
|
1726
|
-
d.value.actions = d.value.actions?.filter((H) => {
|
|
1727
|
-
const K = I.find((P) => P.button === H.title);
|
|
1728
|
-
return K ? K.isShow : !0;
|
|
1729
|
-
}), ee.value = I.find((H) => H.button === "IsGlobal")?.isShow ?? !1, M.value = I.find((H) => H.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((H) => H.button === "AssignList")?.isShow ?? !1, ie.value = I.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1730
|
-
}
|
|
1731
|
-
const h = m([]);
|
|
1740
|
+
}, oe = m([]), E = m(!1), ee = m(!1), ne = m(!1), A = m(!1);
|
|
1732
1741
|
async function k() {
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
+
const P = await s.getBtnList();
|
|
1743
|
+
d.value.actions = d.value.actions?.filter((L) => {
|
|
1744
|
+
const G = P.find((N) => N.button === L.title);
|
|
1745
|
+
return G ? G.isShow : !0;
|
|
1746
|
+
}), E.value = P.find((L) => L.button === "IsGlobal")?.isShow ?? !1, ee.value = P.find((L) => L.button === "AssignButton")?.isShow ?? !1, ne.value = P.find((L) => L.button === "AssignList")?.isShow ?? !1, A.value = P.find((L) => L.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1747
|
+
}
|
|
1748
|
+
const C = m([]);
|
|
1749
|
+
async function T() {
|
|
1750
|
+
h.value = !0, s = new Re().setPageActionType(_e.Details).setClassName(c.className).setStore({ svrStore: n, bpmStore: e }).setWorkflowId(c.workflowId).build(), d.value = await s.getPageData();
|
|
1751
|
+
const P = await s.getFiles();
|
|
1752
|
+
le.value = await s.getApprovers(), W.value = await s.getCommentsHistory(), se.value = await s.getAssociator(), await k(), r.detailPageLoaded?.(d, e().employeeInfo);
|
|
1753
|
+
const L = d.value.fields.requestType.modelValue;
|
|
1754
|
+
r.Test?.({ fieldValue: L, hiddenFields: C }), g.value = b(d.value.fields);
|
|
1755
|
+
for (const N in d.value.fields)
|
|
1756
|
+
if (d.value.fields[N].widget?.widget === "File") {
|
|
1757
|
+
const j = g.value.find((R) => R.fieldKey === N);
|
|
1758
|
+
j && j.widget && (j.widget.files = P[N] ?? []);
|
|
1742
1759
|
}
|
|
1743
|
-
const
|
|
1744
|
-
|
|
1760
|
+
const G = await s.getProcess();
|
|
1761
|
+
oe.value = Z(G, 0), h.value = !1;
|
|
1745
1762
|
}
|
|
1746
|
-
fe(
|
|
1747
|
-
async function
|
|
1748
|
-
return r[
|
|
1763
|
+
fe(T);
|
|
1764
|
+
async function S(P, L) {
|
|
1765
|
+
return r[P]?.(L);
|
|
1749
1766
|
}
|
|
1750
|
-
function
|
|
1767
|
+
function U() {
|
|
1751
1768
|
return n()?.userInfo?.email_address ?? "";
|
|
1752
1769
|
}
|
|
1753
|
-
async function
|
|
1770
|
+
async function $(P, L, G, N, j) {
|
|
1754
1771
|
try {
|
|
1755
|
-
switch (
|
|
1756
|
-
case
|
|
1757
|
-
|
|
1758
|
-
|
|
1772
|
+
switch (L) {
|
|
1773
|
+
case X.Submit:
|
|
1774
|
+
let R = !0;
|
|
1775
|
+
if (v.value?.forEach((ge) => {
|
|
1776
|
+
ge?.validate && !ge.validate() && (R = !1);
|
|
1777
|
+
}), !R) {
|
|
1778
|
+
l?.appContext.config.globalProperties.$message.error(
|
|
1779
|
+
"Please complete all required fields before submit."
|
|
1780
|
+
);
|
|
1781
|
+
return;
|
|
1782
|
+
}
|
|
1783
|
+
const { reason: me, ifGlobal: Ce } = await S(j, {
|
|
1784
|
+
isGlobal: E.value
|
|
1759
1785
|
});
|
|
1760
|
-
|
|
1761
|
-
const
|
|
1786
|
+
h.value = !0;
|
|
1787
|
+
const we = g.value.find((ge) => ge.fieldKey === "approvedGrade")?.modelValue, te = j === "Approve" ? "100" : "-1", Se = await jt(
|
|
1762
1788
|
c.className,
|
|
1763
1789
|
c.workflowId,
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1790
|
+
U(),
|
|
1791
|
+
me,
|
|
1792
|
+
G,
|
|
1793
|
+
te,
|
|
1794
|
+
Ce,
|
|
1769
1795
|
{
|
|
1770
|
-
approvedGrade:
|
|
1796
|
+
approvedGrade: we
|
|
1771
1797
|
}
|
|
1772
1798
|
);
|
|
1773
|
-
await
|
|
1799
|
+
await S(`${j}Success`, {
|
|
1774
1800
|
workflowId: c.workflowId,
|
|
1775
|
-
res:
|
|
1776
|
-
}),
|
|
1777
|
-
const
|
|
1801
|
+
res: Se
|
|
1802
|
+
}), h.value = !1;
|
|
1803
|
+
const ft = j === "Approve" ? `Request ID ${c.workflowId} has been approved.` : `Request ID ${c.workflowId} has been rejected.`;
|
|
1778
1804
|
l?.appContext.config.globalProperties.$notification.success(
|
|
1779
|
-
|
|
1780
|
-
),
|
|
1805
|
+
ft
|
|
1806
|
+
), T();
|
|
1781
1807
|
break;
|
|
1782
|
-
case
|
|
1808
|
+
case X.Link:
|
|
1783
1809
|
try {
|
|
1784
|
-
await r[
|
|
1785
|
-
name:
|
|
1810
|
+
await r[P.eventName || ""]?.(), a.push({
|
|
1811
|
+
name: N,
|
|
1786
1812
|
params: { className: c.className, workflowId: c.workflowId }
|
|
1787
1813
|
});
|
|
1788
|
-
} catch (
|
|
1789
|
-
console.error("Error in link action trigger:",
|
|
1814
|
+
} catch (ge) {
|
|
1815
|
+
console.error("Error in link action trigger:", ge);
|
|
1790
1816
|
}
|
|
1791
1817
|
break;
|
|
1792
|
-
case
|
|
1793
|
-
await r[
|
|
1794
|
-
approvers:
|
|
1795
|
-
associators:
|
|
1796
|
-
isShowAssignSelect:
|
|
1797
|
-
isShowAssignList:
|
|
1798
|
-
assignCallback:
|
|
1799
|
-
deleteAssociatorCallback:
|
|
1818
|
+
case X.Button:
|
|
1819
|
+
await r[P.eventName || ""]?.({
|
|
1820
|
+
approvers: le,
|
|
1821
|
+
associators: se,
|
|
1822
|
+
isShowAssignSelect: ee,
|
|
1823
|
+
isShowAssignList: ne,
|
|
1824
|
+
assignCallback: w,
|
|
1825
|
+
deleteAssociatorCallback: B
|
|
1800
1826
|
});
|
|
1801
1827
|
break;
|
|
1802
1828
|
default:
|
|
1803
|
-
console.warn("Unknown action type:",
|
|
1829
|
+
console.warn("Unknown action type:", L);
|
|
1804
1830
|
}
|
|
1805
1831
|
} catch {
|
|
1806
1832
|
}
|
|
1807
1833
|
}
|
|
1808
|
-
const
|
|
1809
|
-
async function
|
|
1810
|
-
if (!
|
|
1834
|
+
const H = m(""), W = m([]), ie = m(""), le = m([]), se = m([]);
|
|
1835
|
+
async function w(P) {
|
|
1836
|
+
if (!P) {
|
|
1811
1837
|
l?.appContext.config.globalProperties.$message.error(
|
|
1812
1838
|
"Please select an approver"
|
|
1813
1839
|
);
|
|
1814
1840
|
return;
|
|
1815
1841
|
}
|
|
1816
|
-
await
|
|
1842
|
+
await I(
|
|
1817
1843
|
"Confirm Assign Approver",
|
|
1818
1844
|
"Do you want to assign the selected approver?"
|
|
1819
1845
|
);
|
|
1820
1846
|
try {
|
|
1821
|
-
await s.assignApprover(
|
|
1847
|
+
await s.assignApprover(P), se.value = await s.getAssociator(), k(), l?.appContext.config.globalProperties.$notification.success(
|
|
1822
1848
|
"Assign Approver clicked!"
|
|
1823
1849
|
);
|
|
1824
|
-
} catch (
|
|
1825
|
-
if (
|
|
1850
|
+
} catch (L) {
|
|
1851
|
+
if (L.status === 409) {
|
|
1826
1852
|
l?.appContext.config.globalProperties.$notification.error(
|
|
1827
1853
|
"This user is already an associator"
|
|
1828
1854
|
);
|
|
@@ -1833,22 +1859,22 @@ const In = /* @__PURE__ */ z({
|
|
|
1833
1859
|
);
|
|
1834
1860
|
}
|
|
1835
1861
|
}
|
|
1836
|
-
async function
|
|
1837
|
-
const { Modal:
|
|
1838
|
-
return new Promise((
|
|
1839
|
-
|
|
1840
|
-
title:
|
|
1841
|
-
content:
|
|
1862
|
+
async function I(P, L) {
|
|
1863
|
+
const { Modal: G } = await import("@arco-design/web-vue");
|
|
1864
|
+
return new Promise((N, j) => {
|
|
1865
|
+
G.confirm({
|
|
1866
|
+
title: P,
|
|
1867
|
+
content: L,
|
|
1842
1868
|
okText: "OK",
|
|
1843
1869
|
cancelText: "Cancel",
|
|
1844
|
-
onOk: () =>
|
|
1845
|
-
onCancel: () =>
|
|
1870
|
+
onOk: () => N(!0),
|
|
1871
|
+
onCancel: () => j()
|
|
1846
1872
|
});
|
|
1847
1873
|
});
|
|
1848
1874
|
}
|
|
1849
|
-
async function
|
|
1875
|
+
async function B(P) {
|
|
1850
1876
|
try {
|
|
1851
|
-
await
|
|
1877
|
+
await I(
|
|
1852
1878
|
"Confirm Delete Associator",
|
|
1853
1879
|
"Do you want to delete this associator?"
|
|
1854
1880
|
);
|
|
@@ -1856,7 +1882,7 @@ const In = /* @__PURE__ */ z({
|
|
|
1856
1882
|
return;
|
|
1857
1883
|
}
|
|
1858
1884
|
try {
|
|
1859
|
-
await s.deleteAssociator(
|
|
1885
|
+
await s.deleteAssociator(P.toString()), se.value = await s.getAssociator(), l?.appContext.config.globalProperties.$notification.success(
|
|
1860
1886
|
"Associator deleted successfully!"
|
|
1861
1887
|
);
|
|
1862
1888
|
} catch {
|
|
@@ -1865,114 +1891,115 @@ const In = /* @__PURE__ */ z({
|
|
|
1865
1891
|
);
|
|
1866
1892
|
}
|
|
1867
1893
|
}
|
|
1868
|
-
async function
|
|
1869
|
-
if (!
|
|
1894
|
+
async function de() {
|
|
1895
|
+
if (!H.value.trim()) {
|
|
1870
1896
|
l?.appContext.config.globalProperties.$message.error(
|
|
1871
1897
|
"Comment cannot be empty"
|
|
1872
1898
|
);
|
|
1873
1899
|
return;
|
|
1874
1900
|
}
|
|
1875
|
-
await s.addComments(
|
|
1901
|
+
await s.addComments(H.value.trim()), H.value = "", W.value = await s.getCommentsHistory(), l?.appContext.config.globalProperties.$notification.success(
|
|
1876
1902
|
"Add Comment clicked!"
|
|
1877
1903
|
);
|
|
1878
1904
|
}
|
|
1879
|
-
function
|
|
1880
|
-
return
|
|
1905
|
+
function pe(P) {
|
|
1906
|
+
return P ? P === "OtherInformationText" ? "Other Information" : P : "";
|
|
1881
1907
|
}
|
|
1882
|
-
const
|
|
1908
|
+
const ze = { svrStore: n, bpmStore: e, triggers: r, router: a, customComps: i, instance: l, props: c, get page() {
|
|
1883
1909
|
return s;
|
|
1884
|
-
}, set page(
|
|
1885
|
-
s =
|
|
1886
|
-
}, pageData: d, _fields: g,
|
|
1887
|
-
return
|
|
1888
|
-
}, TopBar:
|
|
1889
|
-
return
|
|
1890
|
-
}, ToolTip:
|
|
1891
|
-
return Object.defineProperty(
|
|
1910
|
+
}, set page(P) {
|
|
1911
|
+
s = P;
|
|
1912
|
+
}, pageData: d, _fields: g, dataWidgetsRefs: v, genField: b, groupedFields: f, reversedActions: p, loading: h, mapWorkflowSteps: Z, steps: oe, isGlobal: E, isShowAssignSelect: ee, isShowAssignList: ne, isShowCommentTextArea: A, reloadButtonList: k, hiddenFields: C, load: T, triggerFn: S, getApproverEmail: U, clickHandler: $, comment: H, commentsHistory: W, selectedApprover: ie, approvers: le, associators: se, onAssignApprover: w, confirmDialog: I, onDeleteAssociator: B, onAddComment: de, formatTitle: pe, ActionButton: Ie, get IconDownload() {
|
|
1913
|
+
return Uo;
|
|
1914
|
+
}, TopBar: Ue, get formatDate() {
|
|
1915
|
+
return xe;
|
|
1916
|
+
}, ToolTip: st, DataWidgets: Te };
|
|
1917
|
+
return Object.defineProperty(ze, "__isScriptSetup", { enumerable: !1, value: !0 }), ze;
|
|
1892
1918
|
}
|
|
1893
|
-
}),
|
|
1919
|
+
}), Fn = { class: "page-container" }, Un = { class: "page-body" }, Rn = { class: "detail-card" }, Dn = { class: "form-fields-vertical" }, Bn = { class: "detail-fields" }, Hn = { class: "detail-field" }, Ln = {
|
|
1894
1920
|
key: 0,
|
|
1895
1921
|
class: "detail-field"
|
|
1896
|
-
},
|
|
1922
|
+
}, On = { class: "field-label" }, $n = {
|
|
1897
1923
|
key: 1,
|
|
1898
1924
|
class: "field-value"
|
|
1899
|
-
},
|
|
1925
|
+
}, jn = {
|
|
1900
1926
|
key: 2,
|
|
1901
1927
|
class: "detail-field-wrapper"
|
|
1902
|
-
},
|
|
1928
|
+
}, Mn = { class: "detail-field" }, En = {
|
|
1903
1929
|
key: 0,
|
|
1904
1930
|
class: "detail-content"
|
|
1905
|
-
},
|
|
1906
|
-
function
|
|
1907
|
-
const i =
|
|
1908
|
-
|
|
1909
|
-
const s =
|
|
1910
|
-
return u(), _("div",
|
|
1911
|
-
|
|
1931
|
+
}, Kn = { class: "page-footer" }, zn = { class: "action-container" }, Wn = { class: "action-buttons" };
|
|
1932
|
+
function Gn(t, o, n, e, r, a) {
|
|
1933
|
+
const i = V("a-link"), l = V("a-space"), c = V("a-card");
|
|
1934
|
+
V("a-option"), V("a-select");
|
|
1935
|
+
const s = V("a-button"), d = V("a-list-item"), g = V("a-list"), v = V("a-textarea"), b = V("a-spin");
|
|
1936
|
+
return u(), _("div", Fn, [
|
|
1937
|
+
F(e.TopBar, {
|
|
1912
1938
|
title: e.pageData.banner.title,
|
|
1913
1939
|
subTitle: e.pageData.banner.subTitle,
|
|
1914
1940
|
email: e.getApproverEmail()
|
|
1915
1941
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1916
|
-
|
|
1917
|
-
|
|
1942
|
+
y("div", Un, [
|
|
1943
|
+
F(b, {
|
|
1918
1944
|
loading: e.loading,
|
|
1919
1945
|
class: "detail-container"
|
|
1920
1946
|
}, {
|
|
1921
|
-
default:
|
|
1922
|
-
|
|
1923
|
-
(u(),
|
|
1924
|
-
|
|
1925
|
-
(u(!0), _(
|
|
1947
|
+
default: x(() => [
|
|
1948
|
+
y("div", Rn, [
|
|
1949
|
+
(u(), D($e(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
|
|
1950
|
+
y("div", Dn, [
|
|
1951
|
+
(u(!0), _(O, null, M(e.groupedFields, (f) => (u(), D(c, {
|
|
1926
1952
|
key: f.name,
|
|
1927
1953
|
title: f.name,
|
|
1928
1954
|
style: { "margin-bottom": "24px" }
|
|
1929
1955
|
}, {
|
|
1930
|
-
default:
|
|
1931
|
-
|
|
1932
|
-
(u(!0), _(
|
|
1956
|
+
default: x(() => [
|
|
1957
|
+
y("div", Bn, [
|
|
1958
|
+
(u(!0), _(O, null, M(f.fields, (p) => (u(), _("div", {
|
|
1933
1959
|
key: p.fieldKey,
|
|
1934
1960
|
class: "detail-field-wrapper"
|
|
1935
1961
|
}, [
|
|
1936
|
-
|
|
1937
|
-
p.widget?.readonly ? (u(), _(
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1962
|
+
y("div", Hn, [
|
|
1963
|
+
p.widget?.readonly ? (u(), _(O, { key: 1 }, [
|
|
1964
|
+
y("div", On, [
|
|
1965
|
+
ae(Q(e.formatTitle(p.widget?.title)) + " ", 1),
|
|
1966
|
+
F(e.ToolTip, {
|
|
1941
1967
|
"is-visible": p.widget?.isVisible ?? !1,
|
|
1942
1968
|
"output-text": p.widget?.outputText ?? []
|
|
1943
1969
|
}, null, 8, ["is-visible", "output-text"])
|
|
1944
1970
|
]),
|
|
1945
|
-
p.widget?.widget === "File" ? (u(!0), _(
|
|
1971
|
+
p.widget?.widget === "File" ? (u(!0), _(O, { key: 0 }, M(p.widget.files, (h) => (u(), _("div", {
|
|
1946
1972
|
class: "field-value",
|
|
1947
|
-
key:
|
|
1973
|
+
key: h.id
|
|
1948
1974
|
}, [
|
|
1949
|
-
|
|
1950
|
-
default:
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
href:
|
|
1975
|
+
F(l, null, {
|
|
1976
|
+
default: x(() => [
|
|
1977
|
+
ae(Q(h.name) + " ", 1),
|
|
1978
|
+
F(i, {
|
|
1979
|
+
href: h.url,
|
|
1954
1980
|
target: "_blank"
|
|
1955
1981
|
}, {
|
|
1956
|
-
default:
|
|
1957
|
-
|
|
1982
|
+
default: x(() => [
|
|
1983
|
+
F(e.IconDownload, { style: { color: "#7A00E6" } })
|
|
1958
1984
|
]),
|
|
1959
1985
|
_: 2
|
|
1960
1986
|
}, 1032, ["href"])
|
|
1961
1987
|
]),
|
|
1962
1988
|
_: 2
|
|
1963
1989
|
}, 1024)
|
|
1964
|
-
]))), 128)) : (u(), _("div",
|
|
1965
|
-
], 64)) : (u(), _("div",
|
|
1966
|
-
|
|
1990
|
+
]))), 128)) : (u(), _("div", $n, Q(p.fieldValue), 1))
|
|
1991
|
+
], 64)) : (u(), _("div", Ln, [
|
|
1992
|
+
F(e.DataWidgets, {
|
|
1967
1993
|
ref_for: !0,
|
|
1968
1994
|
ref: "dataWidgets",
|
|
1995
|
+
"field-key": p.fieldKey,
|
|
1969
1996
|
name: p.fieldKey,
|
|
1970
1997
|
config: p,
|
|
1971
1998
|
"class-name": n.className,
|
|
1972
1999
|
modelValue: p.modelValue,
|
|
1973
|
-
"onUpdate:modelValue": (
|
|
2000
|
+
"onUpdate:modelValue": (h) => p.modelValue = h,
|
|
1974
2001
|
class: "form-field"
|
|
1975
|
-
}, null, 8, ["name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
2002
|
+
}, null, 8, ["field-key", "name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
1976
2003
|
]))
|
|
1977
2004
|
])
|
|
1978
2005
|
]))), 128))
|
|
@@ -1980,57 +2007,57 @@ function Kn(t, o, n, e, r, a) {
|
|
|
1980
2007
|
]),
|
|
1981
2008
|
_: 2
|
|
1982
2009
|
}, 1032, ["title"]))), 128)),
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
e.isShowCommentTextArea ? (u(), _("div",
|
|
1986
|
-
|
|
1987
|
-
o[6] || (o[6] =
|
|
1988
|
-
|
|
2010
|
+
re("", !0),
|
|
2011
|
+
re("", !0),
|
|
2012
|
+
e.isShowCommentTextArea ? (u(), _("div", jn, [
|
|
2013
|
+
y("div", Mn, [
|
|
2014
|
+
o[6] || (o[6] = y("div", { class: "field-label" }, "Comment", -1)),
|
|
2015
|
+
F(v, {
|
|
1989
2016
|
modelValue: e.comment,
|
|
1990
2017
|
"onUpdate:modelValue": o[1] || (o[1] = (f) => e.comment = f)
|
|
1991
2018
|
}, null, 8, ["modelValue"]),
|
|
1992
|
-
|
|
2019
|
+
F(s, {
|
|
1993
2020
|
type: "primary",
|
|
1994
2021
|
onClick: e.onAddComment
|
|
1995
2022
|
}, {
|
|
1996
|
-
default:
|
|
1997
|
-
|
|
2023
|
+
default: x(() => o[5] || (o[5] = [
|
|
2024
|
+
ae("Add Comment", -1)
|
|
1998
2025
|
])),
|
|
1999
2026
|
_: 1,
|
|
2000
2027
|
__: [5]
|
|
2001
2028
|
})
|
|
2002
2029
|
])
|
|
2003
|
-
])) :
|
|
2004
|
-
e.commentsHistory.length ? (u(),
|
|
2005
|
-
header:
|
|
2006
|
-
|
|
2030
|
+
])) : re("", !0),
|
|
2031
|
+
e.commentsHistory.length ? (u(), D(g, { key: 3 }, {
|
|
2032
|
+
header: x(() => o[7] || (o[7] = [
|
|
2033
|
+
ae(" Comments History ", -1)
|
|
2007
2034
|
])),
|
|
2008
|
-
default:
|
|
2009
|
-
(u(!0), _(
|
|
2035
|
+
default: x(() => [
|
|
2036
|
+
(u(!0), _(O, null, M(e.commentsHistory, (f) => (u(), D(d, {
|
|
2010
2037
|
key: f.associator
|
|
2011
2038
|
}, {
|
|
2012
|
-
default:
|
|
2013
|
-
|
|
2039
|
+
default: x(() => [
|
|
2040
|
+
ae(Q(f.associator) + ": " + Q(f.comments) + " (" + Q(e.formatDate(f.createdAt)) + ") ", 1)
|
|
2014
2041
|
]),
|
|
2015
2042
|
_: 2
|
|
2016
2043
|
}, 1024))), 128))
|
|
2017
2044
|
]),
|
|
2018
2045
|
_: 1
|
|
2019
|
-
})) :
|
|
2046
|
+
})) : re("", !0)
|
|
2020
2047
|
]),
|
|
2021
|
-
t.$slots.content ? (u(), _("div",
|
|
2048
|
+
t.$slots.content ? (u(), _("div", En, [
|
|
2022
2049
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
2023
|
-
])) :
|
|
2050
|
+
])) : re("", !0)
|
|
2024
2051
|
])
|
|
2025
2052
|
]),
|
|
2026
2053
|
_: 3
|
|
2027
2054
|
}, 8, ["loading"])
|
|
2028
2055
|
]),
|
|
2029
|
-
|
|
2030
|
-
|
|
2056
|
+
y("div", Kn, [
|
|
2057
|
+
y("div", zn, [
|
|
2031
2058
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
2032
|
-
|
|
2033
|
-
(u(!0), _(
|
|
2059
|
+
y("div", Wn, [
|
|
2060
|
+
(u(!0), _(O, null, M(e.reversedActions, (f) => (u(), D(e.ActionButton, {
|
|
2034
2061
|
key: f.title,
|
|
2035
2062
|
loading: e.loading,
|
|
2036
2063
|
config: f,
|
|
@@ -2042,7 +2069,7 @@ function Kn(t, o, n, e, r, a) {
|
|
|
2042
2069
|
])
|
|
2043
2070
|
]);
|
|
2044
2071
|
}
|
|
2045
|
-
const
|
|
2072
|
+
const qn = /* @__PURE__ */ J(Nn, [["render", Gn], ["__scopeId", "data-v-117ace1a"], ["__file", "DetailView.vue"]]), Yn = /* @__PURE__ */ z({
|
|
2046
2073
|
name: "ListView",
|
|
2047
2074
|
__name: "ListView",
|
|
2048
2075
|
props: {
|
|
@@ -2050,7 +2077,7 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
|
|
|
2050
2077
|
},
|
|
2051
2078
|
setup(t, { expose: o }) {
|
|
2052
2079
|
o();
|
|
2053
|
-
const n =
|
|
2080
|
+
const n = Fe(), e = Ne(), r = Pe(), a = ve(), i = t, l = m(), c = mt({
|
|
2054
2081
|
current: 1,
|
|
2055
2082
|
total: 0,
|
|
2056
2083
|
pageSize: 10,
|
|
@@ -2060,34 +2087,34 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
|
|
|
2060
2087
|
filters: []
|
|
2061
2088
|
});
|
|
2062
2089
|
function s() {
|
|
2063
|
-
const
|
|
2090
|
+
const w = Object.entries(S.value).filter(([, { value: I }]) => I && I !== "").map(([I, { value: B, operator: de }]) => {
|
|
2064
2091
|
const pe = typeof B == "string" ? B.trim() : B;
|
|
2065
2092
|
return {
|
|
2066
|
-
key:
|
|
2093
|
+
key: I,
|
|
2067
2094
|
value: pe,
|
|
2068
|
-
operator:
|
|
2095
|
+
operator: de
|
|
2069
2096
|
// 根据实际需要调整操作符
|
|
2070
2097
|
};
|
|
2071
2098
|
});
|
|
2072
2099
|
return {
|
|
2073
2100
|
pageNumber: c.current,
|
|
2074
2101
|
pageSize: c.pageSize,
|
|
2075
|
-
filters: [...c.filters, ...
|
|
2102
|
+
filters: [...c.filters, ...w],
|
|
2076
2103
|
sorts: [{
|
|
2077
2104
|
key: "workflowId",
|
|
2078
2105
|
type: 1
|
|
2079
2106
|
}]
|
|
2080
2107
|
};
|
|
2081
2108
|
}
|
|
2082
|
-
const d =
|
|
2083
|
-
x:
|
|
2109
|
+
const d = K(() => ({
|
|
2110
|
+
x: b.value.length * 150 + 250
|
|
2084
2111
|
// 只设置横向滚动
|
|
2085
2112
|
// 移除 y 属性,让表格高度自适应
|
|
2086
|
-
})), g = (
|
|
2087
|
-
const
|
|
2088
|
-
title:
|
|
2113
|
+
})), g = (w) => {
|
|
2114
|
+
const I = Object.entries(w).filter(([, B]) => B.widget?.column).map(([B, de], pe) => ({
|
|
2115
|
+
title: de.widget.title,
|
|
2089
2116
|
dataIndex: B.charAt(0).toLowerCase() + B.slice(1),
|
|
2090
|
-
order:
|
|
2117
|
+
order: de.order,
|
|
2091
2118
|
ellipsis: !0,
|
|
2092
2119
|
tooltip: !0,
|
|
2093
2120
|
width: 150,
|
|
@@ -2095,8 +2122,8 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
|
|
|
2095
2122
|
// 启用最小宽度
|
|
2096
2123
|
resizable: !0
|
|
2097
2124
|
// 启用列宽调整
|
|
2098
|
-
})).sort((B,
|
|
2099
|
-
|
|
2125
|
+
})).sort((B, de) => B.order - de.order);
|
|
2126
|
+
I.push({
|
|
2100
2127
|
title: "Actions",
|
|
2101
2128
|
slotName: "optional",
|
|
2102
2129
|
align: "center",
|
|
@@ -2104,116 +2131,116 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
|
|
|
2104
2131
|
minWidth: 200,
|
|
2105
2132
|
fixed: "right",
|
|
2106
2133
|
resizable: !1
|
|
2107
|
-
}),
|
|
2108
|
-
}, v = m([]),
|
|
2134
|
+
}), b.value = I;
|
|
2135
|
+
}, v = m([]), b = m([]), f = m(!0), p = m(!0), h = m(), Z = async () => {
|
|
2109
2136
|
p.value = !0;
|
|
2110
|
-
const
|
|
2111
|
-
v.value =
|
|
2112
|
-
},
|
|
2137
|
+
const w = await Ut(i.className, s());
|
|
2138
|
+
v.value = w.data, c.total = w.totalCount, p.value = !1;
|
|
2139
|
+
}, oe = m(!1);
|
|
2113
2140
|
fe(async () => {
|
|
2114
2141
|
f.value = !0;
|
|
2115
|
-
const
|
|
2116
|
-
l.value = await
|
|
2117
|
-
}),
|
|
2118
|
-
|
|
2142
|
+
const w = new Re().setPageActionType(_e.List).setClassName(i.className).setStore({ svrStore: n, bpmStore: e }).build();
|
|
2143
|
+
l.value = await w.getPageData(), g(l.value.fields), $(l.value.fields), H(), T(l.value?.tabs?.[0]?.key || ""), h.value = l.value.actions, f.value = !1, oe.value = !0;
|
|
2144
|
+
}), gt(() => {
|
|
2145
|
+
oe.value && Z();
|
|
2119
2146
|
});
|
|
2120
|
-
const
|
|
2121
|
-
c.current =
|
|
2122
|
-
},
|
|
2123
|
-
c.pageSize =
|
|
2147
|
+
const E = (w) => {
|
|
2148
|
+
c.current = w, Z();
|
|
2149
|
+
}, ee = (w) => {
|
|
2150
|
+
c.pageSize = w, Z();
|
|
2124
2151
|
};
|
|
2125
|
-
function
|
|
2126
|
-
switch (
|
|
2127
|
-
case
|
|
2152
|
+
function ne(w, I, B, de, pe) {
|
|
2153
|
+
switch (w) {
|
|
2154
|
+
case X.Link:
|
|
2128
2155
|
r.push({ name: B, params: { workflowId: pe } });
|
|
2129
2156
|
break;
|
|
2130
2157
|
default:
|
|
2131
|
-
console.warn("Unknown action type:",
|
|
2158
|
+
console.warn("Unknown action type:", w);
|
|
2132
2159
|
}
|
|
2133
2160
|
}
|
|
2134
|
-
function
|
|
2135
|
-
switch (
|
|
2136
|
-
case
|
|
2137
|
-
|
|
2161
|
+
function A(w, I, B) {
|
|
2162
|
+
switch (w) {
|
|
2163
|
+
case X.Submit:
|
|
2164
|
+
Zt(I, { filters: [{ key: "approverList", value: k(), operator: 2 }] }), a?.appContext.config.globalProperties.$notification.success("submit success!");
|
|
2138
2165
|
break;
|
|
2139
|
-
case
|
|
2166
|
+
case X.Link:
|
|
2140
2167
|
r.push({ name: B });
|
|
2141
2168
|
break;
|
|
2142
2169
|
default:
|
|
2143
|
-
console.warn("Unknown action type:",
|
|
2170
|
+
console.warn("Unknown action type:", w);
|
|
2144
2171
|
}
|
|
2145
2172
|
}
|
|
2146
|
-
function
|
|
2173
|
+
function k() {
|
|
2147
2174
|
return n()?.userInfo?.email_address ?? "";
|
|
2148
2175
|
}
|
|
2149
|
-
function
|
|
2150
|
-
return typeof
|
|
2176
|
+
function C(w, I) {
|
|
2177
|
+
return typeof w != "string" || w.indexOf("{currentUserEmail}") === -1 ? w : w.replace(/{currentUserEmail}/g, I);
|
|
2151
2178
|
}
|
|
2152
|
-
function T(
|
|
2153
|
-
const
|
|
2154
|
-
c.filters =
|
|
2179
|
+
function T(w) {
|
|
2180
|
+
const I = l.value?.tabs?.find((B) => B.key === w)?.filters;
|
|
2181
|
+
c.filters = I?.map((B) => ({
|
|
2155
2182
|
...B,
|
|
2156
|
-
value:
|
|
2157
|
-
})) || [], c.current = 1,
|
|
2183
|
+
value: C(B.value, k())
|
|
2184
|
+
})) || [], c.current = 1, Z();
|
|
2158
2185
|
}
|
|
2159
|
-
const
|
|
2160
|
-
function
|
|
2161
|
-
if (!
|
|
2162
|
-
U.value = Object.entries(
|
|
2186
|
+
const S = m({}), U = m([]);
|
|
2187
|
+
function $(w) {
|
|
2188
|
+
if (!w) return [];
|
|
2189
|
+
U.value = Object.entries(w).filter(([, I]) => I.isFiltered).map(([I, B]) => ({ fieldKey: I, fieldConfig: B }));
|
|
2163
2190
|
}
|
|
2164
|
-
const
|
|
2165
|
-
const
|
|
2166
|
-
U.value.forEach(({ fieldKey:
|
|
2167
|
-
|
|
2168
|
-
}),
|
|
2169
|
-
},
|
|
2170
|
-
c.current = 1,
|
|
2171
|
-
},
|
|
2172
|
-
l.value &&
|
|
2191
|
+
const H = () => {
|
|
2192
|
+
const w = {};
|
|
2193
|
+
U.value.forEach(({ fieldKey: I, fieldConfig: B }) => {
|
|
2194
|
+
w[I] = {}, w[I].value = B.modelValue, w[I].operator = B.operator;
|
|
2195
|
+
}), S.value = w;
|
|
2196
|
+
}, W = () => {
|
|
2197
|
+
c.current = 1, Z();
|
|
2198
|
+
}, ie = () => {
|
|
2199
|
+
l.value && H(), W();
|
|
2173
2200
|
};
|
|
2174
|
-
function
|
|
2175
|
-
return !(
|
|
2201
|
+
function le(w, I) {
|
|
2202
|
+
return !(w.location !== "InTable" || w.title === "Update" && (I.sort === 3 || I.status === 100 || I.status === -1));
|
|
2176
2203
|
}
|
|
2177
|
-
const
|
|
2178
|
-
return Object.defineProperty(
|
|
2204
|
+
const se = { svrStore: n, bpmStore: e, router: r, instance: a, props: i, pageData: l, paging: c, createListParams: s, scroll: d, mapColumns: g, _data: v, _columns: b, loadingPage: f, loadingTable: p, actions: h, loadData: Z, mounted: oe, pageChangeHandler: E, pageSizeChangeHandler: ee, clickHandler: ne, createHandler: A, getApproverEmail: k, replaceEmail: C, tabHandler: T, searchForm: S, searchableFields: U, mapSearchableFields: $, initSearchForm: H, handleSearch: W, handleReset: ie, judgeHiddenActions: le, ActionButton: Ie, DataWidgets: Te, TopBar: Ue };
|
|
2205
|
+
return Object.defineProperty(se, "__isScriptSetup", { enumerable: !1, value: !0 }), se;
|
|
2179
2206
|
}
|
|
2180
|
-
}),
|
|
2181
|
-
function
|
|
2182
|
-
const i =
|
|
2183
|
-
return u(), _("div",
|
|
2184
|
-
|
|
2207
|
+
}), Qn = { class: "list-container" }, Jn = { class: "query-title" };
|
|
2208
|
+
function Xn(t, o, n, e, r, a) {
|
|
2209
|
+
const i = V("a-space"), l = V("a-col"), c = V("a-button"), s = V("a-row"), d = V("a-card"), g = V("a-tab-pane"), v = V("a-tabs"), b = V("a-table");
|
|
2210
|
+
return u(), _("div", Qn, [
|
|
2211
|
+
F(e.TopBar, {
|
|
2185
2212
|
title: e.pageData?.banner.title ?? "",
|
|
2186
2213
|
subTitle: e.pageData?.banner.subTitle ?? "",
|
|
2187
2214
|
email: e.getApproverEmail()
|
|
2188
2215
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
2189
|
-
|
|
2190
|
-
default:
|
|
2191
|
-
|
|
2192
|
-
o[0] || (o[0] =
|
|
2193
|
-
|
|
2194
|
-
default:
|
|
2195
|
-
(u(!0), _(
|
|
2216
|
+
F(d, null, {
|
|
2217
|
+
default: x(() => [
|
|
2218
|
+
y("div", Jn, [
|
|
2219
|
+
o[0] || (o[0] = y("h3", null, "Search Conditions", -1)),
|
|
2220
|
+
F(i, { size: "medium" }, {
|
|
2221
|
+
default: x(() => [
|
|
2222
|
+
(u(!0), _(O, null, M(e.actions, (f) => (u(), _(O, {
|
|
2196
2223
|
key: f.title
|
|
2197
2224
|
}, [
|
|
2198
|
-
f.location === "InOperation" ? (u(),
|
|
2225
|
+
f.location === "InOperation" ? (u(), D(e.ActionButton, {
|
|
2199
2226
|
key: 0,
|
|
2200
2227
|
config: f,
|
|
2201
2228
|
onClick: e.createHandler
|
|
2202
|
-
}, null, 8, ["config"])) :
|
|
2229
|
+
}, null, 8, ["config"])) : re("", !0)
|
|
2203
2230
|
], 64))), 128))
|
|
2204
2231
|
]),
|
|
2205
2232
|
_: 1
|
|
2206
2233
|
})
|
|
2207
2234
|
]),
|
|
2208
|
-
|
|
2209
|
-
default:
|
|
2210
|
-
(u(!0), _(
|
|
2235
|
+
F(s, { gutter: [24, 20] }, {
|
|
2236
|
+
default: x(() => [
|
|
2237
|
+
(u(!0), _(O, null, M(e.searchableFields, (f) => (u(), D(l, {
|
|
2211
2238
|
key: f.fieldKey,
|
|
2212
2239
|
span: 6,
|
|
2213
2240
|
class: "search-col"
|
|
2214
2241
|
}, {
|
|
2215
|
-
default:
|
|
2216
|
-
|
|
2242
|
+
default: x(() => [
|
|
2243
|
+
F(e.DataWidgets, {
|
|
2217
2244
|
name: f.fieldKey,
|
|
2218
2245
|
config: f.fieldConfig,
|
|
2219
2246
|
modelValue: e.searchForm[f.fieldKey].value,
|
|
@@ -2223,30 +2250,30 @@ function Qn(t, o, n, e, r, a) {
|
|
|
2223
2250
|
]),
|
|
2224
2251
|
_: 2
|
|
2225
2252
|
}, 1024))), 128)),
|
|
2226
|
-
|
|
2253
|
+
F(l, {
|
|
2227
2254
|
span: 6,
|
|
2228
2255
|
class: "search-col form-buttons"
|
|
2229
2256
|
}, {
|
|
2230
|
-
default:
|
|
2231
|
-
|
|
2232
|
-
default:
|
|
2233
|
-
|
|
2257
|
+
default: x(() => [
|
|
2258
|
+
F(i, { size: "medium" }, {
|
|
2259
|
+
default: x(() => [
|
|
2260
|
+
F(c, {
|
|
2234
2261
|
type: "primary",
|
|
2235
2262
|
size: "medium",
|
|
2236
2263
|
onClick: e.handleSearch
|
|
2237
2264
|
}, {
|
|
2238
|
-
default:
|
|
2239
|
-
|
|
2265
|
+
default: x(() => o[1] || (o[1] = [
|
|
2266
|
+
ae(" Search ", -1)
|
|
2240
2267
|
])),
|
|
2241
2268
|
_: 1,
|
|
2242
2269
|
__: [1]
|
|
2243
2270
|
}),
|
|
2244
|
-
|
|
2271
|
+
F(c, {
|
|
2245
2272
|
size: "medium",
|
|
2246
2273
|
onClick: e.handleReset
|
|
2247
2274
|
}, {
|
|
2248
|
-
default:
|
|
2249
|
-
|
|
2275
|
+
default: x(() => o[2] || (o[2] = [
|
|
2276
|
+
ae(" Reset ", -1)
|
|
2250
2277
|
])),
|
|
2251
2278
|
_: 1,
|
|
2252
2279
|
__: [2]
|
|
@@ -2263,19 +2290,19 @@ function Qn(t, o, n, e, r, a) {
|
|
|
2263
2290
|
]),
|
|
2264
2291
|
_: 1
|
|
2265
2292
|
}),
|
|
2266
|
-
|
|
2293
|
+
F(v, {
|
|
2267
2294
|
size: "large",
|
|
2268
2295
|
onTabClick: e.tabHandler
|
|
2269
2296
|
}, {
|
|
2270
|
-
default:
|
|
2271
|
-
(u(!0), _(
|
|
2297
|
+
default: x(() => [
|
|
2298
|
+
(u(!0), _(O, null, M(e.pageData?.tabs, (f) => (u(), D(g, {
|
|
2272
2299
|
key: f.key,
|
|
2273
2300
|
title: f.title
|
|
2274
2301
|
}, null, 8, ["title"]))), 128))
|
|
2275
2302
|
]),
|
|
2276
2303
|
_: 1
|
|
2277
2304
|
}),
|
|
2278
|
-
|
|
2305
|
+
F(b, {
|
|
2279
2306
|
columns: e._columns,
|
|
2280
2307
|
data: e._data,
|
|
2281
2308
|
stripe: "",
|
|
@@ -2294,18 +2321,18 @@ function Qn(t, o, n, e, r, a) {
|
|
|
2294
2321
|
onPageChange: e.pageChangeHandler,
|
|
2295
2322
|
onPageSizeChange: e.pageSizeChangeHandler
|
|
2296
2323
|
}, {
|
|
2297
|
-
optional:
|
|
2298
|
-
|
|
2299
|
-
default:
|
|
2300
|
-
(u(!0), _(
|
|
2324
|
+
optional: x(({ record: f }) => [
|
|
2325
|
+
F(i, { size: "small" }, {
|
|
2326
|
+
default: x(() => [
|
|
2327
|
+
(u(!0), _(O, null, M(e.actions, (p) => (u(), _(O, {
|
|
2301
2328
|
key: p.title
|
|
2302
2329
|
}, [
|
|
2303
|
-
e.judgeHiddenActions(p, f) ? (u(),
|
|
2330
|
+
e.judgeHiddenActions(p, f) ? (u(), D(e.ActionButton, {
|
|
2304
2331
|
key: 0,
|
|
2305
2332
|
config: p,
|
|
2306
2333
|
size: "small",
|
|
2307
|
-
onClick: (...
|
|
2308
|
-
}, null, 8, ["config", "onClick"])) :
|
|
2334
|
+
onClick: (...h) => e.clickHandler(...h, f.workflowId)
|
|
2335
|
+
}, null, 8, ["config", "onClick"])) : re("", !0)
|
|
2309
2336
|
], 64))), 128))
|
|
2310
2337
|
]),
|
|
2311
2338
|
_: 2
|
|
@@ -2315,12 +2342,12 @@ function Qn(t, o, n, e, r, a) {
|
|
|
2315
2342
|
}, 8, ["columns", "data", "pagination", "loading", "scroll"])
|
|
2316
2343
|
]);
|
|
2317
2344
|
}
|
|
2318
|
-
const
|
|
2345
|
+
const Zn = /* @__PURE__ */ J(Yn, [["render", Xn], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), ra = {
|
|
2319
2346
|
install(t, o = {}) {
|
|
2320
|
-
o.config &&
|
|
2347
|
+
o.config && St(o.config), o.router && t.provide(it, o.router), o.pinia && t.provide(Qo, o.pinia), o.useBpmStore && t.provide(ct, o.useBpmStore), o.useSvrStore && t.provide(dt, o.useSvrStore), o.triggers && t.provide(lt, o.triggers), o.customComps && t.provide(ut, o.customComps), t.component("CreateView", vn), t.component("UpdateView", In), t.component("DetailView", qn), t.component("ListView", Zn);
|
|
2321
2348
|
}
|
|
2322
2349
|
};
|
|
2323
2350
|
export {
|
|
2324
|
-
|
|
2351
|
+
ra as default
|
|
2325
2352
|
};
|
|
2326
2353
|
//# sourceMappingURL=index.es.js.map
|