@chase-shao/vue-component-lib 1.2.109 → 1.2.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data-gen/views/CreateView.vue.d.ts +12 -12
- package/dist/components/data-gen/views/DetailView.vue.d.ts +12 -12
- package/dist/components/data-gen/views/UpdateView.vue.d.ts +12 -12
- package/dist/components/data-gen/widgets/CheckBox.vue.d.ts +2 -2
- package/dist/components/data-gen/widgets/FileUpload.vue.d.ts +2 -2
- package/dist/components/data-gen/widgets/InputNumber.vue.d.ts +2 -2
- package/dist/components/data-gen/widgets/InputText.vue.d.ts +2 -2
- package/dist/components/data-gen/widgets/TextArea.vue.d.ts +2 -2
- package/dist/components/data-gen/widgets/index.vue.d.ts +5 -5
- 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 +696 -684
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/stores/useLibraryMainStore.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { ref as _, getCurrentInstance as me, inject as be, defineComponent as Y, mergeModels as ce, useModel as Se, resolveComponent as T, createBlock as L, openBlock as u, onMounted as ge, computed as z, withCtx as x, createElementBlock as w, Fragment as j, renderList as G, createVNode as P, nextTick as vt, createElementVNode as S, createTextVNode as ae, toDisplayString as q, normalizeStyle as Xe, normalizeClass as et, createCommentVNode as se, useTemplateRef as Ae, resolveDynamicComponent as je, renderSlot as ue, reactive as ht, onActivated as bt } from "vue";
|
|
2
|
+
import wt from "axios";
|
|
3
|
+
import { defineStore as yt } from "pinia";
|
|
4
4
|
import { useRouter as kt } from "vue-router";
|
|
5
5
|
import { Modal as St } from "@arco-design/web-vue";
|
|
6
|
-
const tt =
|
|
7
|
-
const t =
|
|
6
|
+
const tt = yt("main", () => {
|
|
7
|
+
const t = _(void 0), o = _(null);
|
|
8
8
|
return {
|
|
9
9
|
token: t,
|
|
10
10
|
error: o
|
|
@@ -52,30 +52,30 @@ const tt = wt("main", () => {
|
|
|
52
52
|
const e = document.createElement("a"), a = window.URL.createObjectURL(n);
|
|
53
53
|
e.href = a, e.download = o, e.click(), window.URL.revokeObjectURL(a);
|
|
54
54
|
};
|
|
55
|
-
let
|
|
55
|
+
let Oe = {};
|
|
56
56
|
function Vt(t) {
|
|
57
|
-
|
|
57
|
+
Oe = { ...Oe, ...t };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
59
|
+
function ze() {
|
|
60
|
+
return Oe;
|
|
61
61
|
}
|
|
62
62
|
const ot = Symbol("library-router");
|
|
63
|
-
let
|
|
63
|
+
let $e = null;
|
|
64
64
|
function At(t) {
|
|
65
|
-
|
|
65
|
+
$e = t ?? null;
|
|
66
66
|
}
|
|
67
67
|
function ve() {
|
|
68
68
|
if (me()) {
|
|
69
69
|
const o = be(ot, null);
|
|
70
70
|
return o || kt();
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
72
|
+
if ($e)
|
|
73
|
+
return $e;
|
|
74
74
|
throw new Error("Router is unavailable. Pass router when installing the plugin before using useLibraryRouter outside setup().");
|
|
75
75
|
}
|
|
76
76
|
const nt = me();
|
|
77
77
|
function rt() {
|
|
78
|
-
const t =
|
|
78
|
+
const t = ze();
|
|
79
79
|
return {
|
|
80
80
|
apiBase: t.apiBase || void 0 || "",
|
|
81
81
|
appSecret: t.appSecret || void 0 || ""
|
|
@@ -106,7 +106,7 @@ const Pt = (t) => {
|
|
|
106
106
|
t.message.includes("timeout") && nt?.appContext.config.globalProperties.$notification.error("请求超时,请检查网络");
|
|
107
107
|
};
|
|
108
108
|
function at() {
|
|
109
|
-
const { apiBase: t } = rt(), o =
|
|
109
|
+
const { apiBase: t } = rt(), o = wt.create({
|
|
110
110
|
baseURL: t,
|
|
111
111
|
timeout: 20 * 1e3,
|
|
112
112
|
// 20s
|
|
@@ -126,44 +126,44 @@ const st = async () => {
|
|
|
126
126
|
e.token = void 0;
|
|
127
127
|
}, (a.data?.expireSeconds ?? 3600) * 1e3), a?.data?.token;
|
|
128
128
|
});
|
|
129
|
-
},
|
|
129
|
+
}, J = async () => {
|
|
130
130
|
const t = await st(), o = at();
|
|
131
131
|
return o.defaults.headers.common.Authorization = `Bearer ${t}`, o;
|
|
132
|
-
},
|
|
132
|
+
}, De = {
|
|
133
133
|
CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
134
134
|
CurrentUserPositionCode: (t) => t.bpmStore()?.positionCode ?? 888,
|
|
135
135
|
CurrentDatetime: () => (/* @__PURE__ */ new Date()).toISOString(),
|
|
136
136
|
ApproverEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
137
137
|
ApproverPositionCode: (t) => t.bpmStore()?.positionCode ?? 999,
|
|
138
138
|
RejectReason: () => "Test Reject Reason"
|
|
139
|
-
},
|
|
139
|
+
}, Z = [];
|
|
140
140
|
for (let t = 0; t < 256; ++t)
|
|
141
|
-
|
|
141
|
+
Z.push((t + 256).toString(16).slice(1));
|
|
142
142
|
function Ft(t, o = 0) {
|
|
143
|
-
return (
|
|
143
|
+
return (Z[t[o + 0]] + Z[t[o + 1]] + Z[t[o + 2]] + Z[t[o + 3]] + "-" + Z[t[o + 4]] + Z[t[o + 5]] + "-" + Z[t[o + 6]] + Z[t[o + 7]] + "-" + Z[t[o + 8]] + Z[t[o + 9]] + "-" + Z[t[o + 10]] + Z[t[o + 11]] + Z[t[o + 12]] + Z[t[o + 13]] + Z[t[o + 14]] + Z[t[o + 15]]).toLowerCase();
|
|
144
144
|
}
|
|
145
|
-
let
|
|
145
|
+
let Le;
|
|
146
146
|
const Nt = new Uint8Array(16);
|
|
147
|
-
function
|
|
148
|
-
if (!
|
|
147
|
+
function Rt() {
|
|
148
|
+
if (!Le) {
|
|
149
149
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
150
150
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
151
|
-
|
|
151
|
+
Le = crypto.getRandomValues.bind(crypto);
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return Le(Nt);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Ut = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ge = { randomUUID: Ut };
|
|
156
156
|
function it(t, o, n) {
|
|
157
157
|
if (Ge.randomUUID && !t)
|
|
158
158
|
return Ge.randomUUID();
|
|
159
159
|
t = t || {};
|
|
160
|
-
const e = t.random ?? t.rng?.() ??
|
|
160
|
+
const e = t.random ?? t.rng?.() ?? Rt();
|
|
161
161
|
if (e.length < 16)
|
|
162
162
|
throw new Error("Random bytes length must be >= 16");
|
|
163
163
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, Ft(e);
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
165
|
+
var te = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(te || {}), he = /* @__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))(he || {});
|
|
166
|
+
function Dt(t, o, n) {
|
|
167
167
|
const e = {
|
|
168
168
|
pageType: "",
|
|
169
169
|
fields: {},
|
|
@@ -210,14 +210,14 @@ function Bt(t, o, n) {
|
|
|
210
210
|
redirectUrl: r.redirectUrl,
|
|
211
211
|
redirectType: r.redirectType,
|
|
212
212
|
title: r.title,
|
|
213
|
-
widget: r.widget === "Link" ?
|
|
213
|
+
widget: r.widget === "Link" ? te.Link : r.widget === "Submit" ? te.Submit : te.Button,
|
|
214
214
|
location: r.location,
|
|
215
215
|
attributeType: r.attributeType,
|
|
216
216
|
readonly: r.readonly,
|
|
217
217
|
eventName: r.eventName
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
} else r.attributeType === "Banner" && (e.banner.title = r.title, o === 0 || o === 5 ? e.banner.subTitle = r.subTitle : e.banner.subTitle =
|
|
220
|
+
} else r.attributeType === "Banner" && (e.banner.title = r.title, o === 0 || o === 5 ? e.banner.subTitle = r.subTitle : e.banner.subTitle = Me(r.subTitle, t.workflowId.propertyValue));
|
|
221
221
|
}), e.tabs && (e.tabs = e.tabs.sort((r, i) => r.order - i.order));
|
|
222
222
|
const a = {
|
|
223
223
|
id: "",
|
|
@@ -252,14 +252,14 @@ function Bt(t, o, n) {
|
|
|
252
252
|
l.modelValue = s;
|
|
253
253
|
break;
|
|
254
254
|
}
|
|
255
|
-
r === "onBehalf" && o === 0 && (l.modelValue =
|
|
255
|
+
r === "onBehalf" && o === 0 && (l.modelValue = De.CurrentUserEmail(n)), (o === 1 || o === 5) && (r === "directReports" || r === "employeesInTheTeam") && l.modelValue && (l.modelValue = Number(l.modelValue)), c?.forEach((d) => {
|
|
256
256
|
d.order || d.Order ? l.order = d.order ?? d.Order : d.attributeType === "UIControl" ? (d.outputText = d.outputText ? JSON.parse(d.outputText) : [], l.widget = {
|
|
257
257
|
...d,
|
|
258
258
|
column: !0
|
|
259
259
|
}) : d.attributeType === "UIValidationControl" && o !== 3 ? l.widget?.widget !== "CheckBox" && l.validations.push(d) : d.attributeType === "UIListed" ? l.widget = {
|
|
260
260
|
...d,
|
|
261
261
|
column: !0
|
|
262
|
-
} : d.attributeType === "UIFiltered" ? (l.isFiltered = !0, l.operator = d.operatorType) : d.dependentType ? l.dependent =
|
|
262
|
+
} : d.attributeType === "UIFiltered" ? (l.isFiltered = !0, l.operator = d.operatorType) : d.dependentType ? l.dependent = De[d.dependentType] ? De[d.dependentType](n) : "" : d.eventType === "Change" && l.triggers?.push({
|
|
263
263
|
event: "change",
|
|
264
264
|
handlerName: d.eventName
|
|
265
265
|
});
|
|
@@ -267,11 +267,11 @@ function Bt(t, o, n) {
|
|
|
267
267
|
}), e.pageFields = a, e;
|
|
268
268
|
}
|
|
269
269
|
const qe = async (t, o, n, e) => {
|
|
270
|
-
const r = await (await
|
|
271
|
-
return
|
|
272
|
-
},
|
|
273
|
-
async function
|
|
274
|
-
const e = await (await
|
|
270
|
+
const r = await (await J()).get(`/General/${o}/${t}/page`, { params: e });
|
|
271
|
+
return Dt(r?.data, t, n);
|
|
272
|
+
}, Lt = async (t, o, n) => (await (await J()).post(`/${o}/${t}/button/List`, null, { params: n }))?.data;
|
|
273
|
+
async function Bt(t, o) {
|
|
274
|
+
const e = await (await J()).post(`/General/${t}/list`, o);
|
|
275
275
|
return {
|
|
276
276
|
data: e.data.data,
|
|
277
277
|
totalCount: e.data.totalCount
|
|
@@ -291,48 +291,48 @@ async function Lt(t, o) {
|
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
async function Ht(t, o, n) {
|
|
294
|
-
return (await (await
|
|
294
|
+
return (await (await J()).post(n, o, {
|
|
295
295
|
params: {
|
|
296
296
|
className: t
|
|
297
297
|
}
|
|
298
298
|
})).data;
|
|
299
299
|
}
|
|
300
|
-
async function
|
|
301
|
-
const a = await
|
|
300
|
+
async function Ot(t, o, n, e) {
|
|
301
|
+
const a = await J(), r = Me(e, o);
|
|
302
302
|
return (await a.put(r, n))?.data;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Me(t, o) {
|
|
305
305
|
return t.replace(/{WorkflowId}/g, encodeURIComponent(o));
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function $t(t, o) {
|
|
308
308
|
return t.replace(/{ApproverEmail}/g, encodeURIComponent(o));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function jt(t, o) {
|
|
311
311
|
return t.replace(/{WorkFlowReason}/g, encodeURIComponent(o));
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function zt(t, o) {
|
|
314
314
|
return t.replace(/{Status}/g, o);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Mt(t, o) {
|
|
317
317
|
return t.replace(/{IfTriggerGlobal_RandP_Approval}/g, o);
|
|
318
318
|
}
|
|
319
319
|
function Et(t, o) {
|
|
320
320
|
return t.replace(/{ClassName}/g, encodeURIComponent(o));
|
|
321
321
|
}
|
|
322
322
|
async function Kt(t, o, n, e, a, r, i, l) {
|
|
323
|
-
const c = await
|
|
324
|
-
let s =
|
|
325
|
-
return s =
|
|
323
|
+
const c = await J();
|
|
324
|
+
let s = Me(a, o);
|
|
325
|
+
return s = $t(s, n), s = jt(s, e), s = zt(s, r), s = Mt(s, i), s = Et(s, t), (await c.put(s, l))?.data;
|
|
326
326
|
}
|
|
327
327
|
async function Wt(t, o) {
|
|
328
|
-
const a = (await (await
|
|
328
|
+
const a = (await (await J()).get(t, { params: { value: o } }))?.data;
|
|
329
329
|
return Object.entries(a).map(([r, i]) => ({
|
|
330
330
|
value: r,
|
|
331
331
|
label: i
|
|
332
332
|
}));
|
|
333
333
|
}
|
|
334
334
|
async function Gt(t, o) {
|
|
335
|
-
return (await (await
|
|
335
|
+
return (await (await J()).get(`/General/${t}/${o}/process`))?.data;
|
|
336
336
|
}
|
|
337
337
|
function qt(t) {
|
|
338
338
|
return {
|
|
@@ -342,45 +342,45 @@ function qt(t) {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
async function Yt(t, o) {
|
|
345
|
-
return (await (await
|
|
345
|
+
return (await (await J()).get(`/General/${t}/${o}/upload/get`))?.data.reduce((r, i) => {
|
|
346
346
|
const { category: l } = i;
|
|
347
347
|
return r[l] || (r[l] = []), r[l].push(qt(i)), r;
|
|
348
348
|
}, {});
|
|
349
349
|
}
|
|
350
350
|
async function Qt(t, o) {
|
|
351
|
-
return (await
|
|
351
|
+
return (await J()).post(`/General/${t}/${o}/delete/attachment`);
|
|
352
352
|
}
|
|
353
353
|
async function Jt() {
|
|
354
|
-
const o = await (await
|
|
354
|
+
const o = await (await J()).get("/Grading/dropdown/approvers");
|
|
355
355
|
return Object.entries(o?.data).map(([n, e]) => ({
|
|
356
356
|
label: n,
|
|
357
357
|
value: e
|
|
358
358
|
}));
|
|
359
359
|
}
|
|
360
360
|
async function Zt(t, o) {
|
|
361
|
-
return await (await
|
|
361
|
+
return await (await J()).post(`Grading/AssignComments/${t}/${encodeURIComponent(o)}`);
|
|
362
362
|
}
|
|
363
363
|
async function Xt(t, o, n) {
|
|
364
|
-
return await (await
|
|
364
|
+
return await (await J()).post(`Grading/AddComments/${t}/${encodeURIComponent(o)}`, n, {
|
|
365
365
|
headers: { "Content-Type": "application/json;charset=UTF-8" }
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
async function eo(t) {
|
|
369
|
-
return (await (await
|
|
369
|
+
return (await (await J()).get(`Grading/GetComments/${t}`))?.data;
|
|
370
370
|
}
|
|
371
371
|
async function to(t) {
|
|
372
|
-
return (await (await
|
|
372
|
+
return (await (await J()).get(`Grading/GetAssociator/${t}`))?.data;
|
|
373
373
|
}
|
|
374
374
|
async function oo(t) {
|
|
375
|
-
return await (await
|
|
375
|
+
return await (await J()).delete(`Grading/DeleteAssociator/${t}`);
|
|
376
376
|
}
|
|
377
377
|
async function no(t, o = null) {
|
|
378
|
-
const e = await (await
|
|
378
|
+
const e = await (await J()).post(t, o, {
|
|
379
379
|
responseType: "blob"
|
|
380
380
|
});
|
|
381
381
|
Tt(e?.data, "WorkflowData.xlsx");
|
|
382
382
|
}
|
|
383
|
-
const
|
|
383
|
+
const we = (t, o) => {
|
|
384
384
|
let n = "";
|
|
385
385
|
return { res: t.every((a) => {
|
|
386
386
|
const r = ro(a, o);
|
|
@@ -392,13 +392,12 @@ const ye = (t, o) => {
|
|
|
392
392
|
}, ao = {
|
|
393
393
|
Regex: (t, o) => new RegExp(t).test(o),
|
|
394
394
|
Required: (t, o) => !!o
|
|
395
|
-
}, so = /* @__PURE__ */
|
|
395
|
+
}, so = /* @__PURE__ */ Y({
|
|
396
396
|
__name: "InputText",
|
|
397
397
|
props: /* @__PURE__ */ ce({
|
|
398
398
|
fieldKey: {},
|
|
399
399
|
modelValue: {},
|
|
400
400
|
config: {},
|
|
401
|
-
readonly: { type: Boolean },
|
|
402
401
|
validations: {},
|
|
403
402
|
triggers: {}
|
|
404
403
|
}, {
|
|
@@ -407,12 +406,12 @@ const ye = (t, o) => {
|
|
|
407
406
|
}),
|
|
408
407
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
409
408
|
setup(t, { expose: o, emit: n }) {
|
|
410
|
-
const e = t, a = n, r = Se(t, "modelValue"), i = (d) =>
|
|
409
|
+
const e = t, a = n, r = Se(t, "modelValue"), i = (d) => we(e.validations, d), l = (d) => {
|
|
411
410
|
a("input", d);
|
|
412
411
|
}, c = (d) => {
|
|
413
|
-
const
|
|
414
|
-
a("error",
|
|
415
|
-
|
|
412
|
+
const b = i(d);
|
|
413
|
+
a("error", b.res ? "" : b.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((y) => {
|
|
414
|
+
y.event === "change" && a(y.event, y.handlerName, d);
|
|
416
415
|
});
|
|
417
416
|
};
|
|
418
417
|
o({
|
|
@@ -424,15 +423,15 @@ const ye = (t, o) => {
|
|
|
424
423
|
const s = { props: e, emits: a, model: r, validate: i, inputHandler: l, changeHandler: c };
|
|
425
424
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
426
425
|
}
|
|
427
|
-
}),
|
|
426
|
+
}), X = (t, o) => {
|
|
428
427
|
const n = t.__vccOpts || t;
|
|
429
428
|
for (const [e, a] of o)
|
|
430
429
|
n[e] = a;
|
|
431
430
|
return n;
|
|
432
431
|
};
|
|
433
432
|
function io(t, o, n, e, a, r) {
|
|
434
|
-
const i =
|
|
435
|
-
return u(),
|
|
433
|
+
const i = T("AInput");
|
|
434
|
+
return u(), L(i, {
|
|
436
435
|
modelValue: e.model,
|
|
437
436
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
438
437
|
"allow-clear": "",
|
|
@@ -443,13 +442,12 @@ function io(t, o, n, e, a, r) {
|
|
|
443
442
|
onChange: e.changeHandler
|
|
444
443
|
}, null, 8, ["modelValue", "disabled", "max-length"]);
|
|
445
444
|
}
|
|
446
|
-
const Ye = /* @__PURE__ */
|
|
445
|
+
const Ye = /* @__PURE__ */ X(so, [["render", io], ["__file", "InputText.vue"]]), lo = /* @__PURE__ */ Y({
|
|
447
446
|
__name: "InputNumber",
|
|
448
447
|
props: /* @__PURE__ */ ce({
|
|
449
448
|
fieldKey: {},
|
|
450
449
|
modelValue: {},
|
|
451
450
|
config: {},
|
|
452
|
-
readonly: { type: Boolean },
|
|
453
451
|
validations: {},
|
|
454
452
|
triggers: {}
|
|
455
453
|
}, {
|
|
@@ -458,33 +456,33 @@ const Ye = /* @__PURE__ */ Z(so, [["render", io], ["__file", "InputText.vue"]]),
|
|
|
458
456
|
}),
|
|
459
457
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
460
458
|
setup(t, { expose: o, emit: n }) {
|
|
461
|
-
const e = t, a = n, r = Se(t, "modelValue"), i =
|
|
459
|
+
const e = t, a = n, r = Se(t, "modelValue"), i = _(e.config.maxLength ?? 100), l = _(1);
|
|
462
460
|
ge(() => {
|
|
463
|
-
e.validations && e.validations.forEach((
|
|
464
|
-
|
|
461
|
+
e.validations && e.validations.forEach((y) => {
|
|
462
|
+
y.ruleName === "Max" && (i.value = y.ruleParameter), y.ruleName === "Min" && (l.value = y.ruleParameter);
|
|
465
463
|
});
|
|
466
464
|
});
|
|
467
|
-
const c = (
|
|
468
|
-
a("input",
|
|
469
|
-
}, d = (
|
|
470
|
-
const
|
|
471
|
-
a("error",
|
|
472
|
-
|
|
465
|
+
const c = (y) => we(e.validations, y), s = (y) => {
|
|
466
|
+
a("input", y);
|
|
467
|
+
}, d = (y) => {
|
|
468
|
+
const k = c(y);
|
|
469
|
+
a("error", k.res ? "" : k.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
|
|
470
|
+
p.event === "change" && a(p.event, p.handlerName, y);
|
|
473
471
|
});
|
|
474
472
|
};
|
|
475
473
|
o({
|
|
476
474
|
validate() {
|
|
477
|
-
const
|
|
478
|
-
return a("error",
|
|
475
|
+
const y = c(e.modelValue);
|
|
476
|
+
return a("error", y.res ? "" : y.errorMessages), y.res;
|
|
479
477
|
}
|
|
480
478
|
});
|
|
481
|
-
const
|
|
482
|
-
return Object.defineProperty(
|
|
479
|
+
const b = { props: e, emits: a, model: r, max: i, min: l, validate: c, inputHandler: s, changeHandler: d };
|
|
480
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
483
481
|
}
|
|
484
482
|
});
|
|
485
483
|
function co(t, o, n, e, a, r) {
|
|
486
|
-
const i =
|
|
487
|
-
return u(),
|
|
484
|
+
const i = T("AInputNumber");
|
|
485
|
+
return u(), L(i, {
|
|
488
486
|
modelValue: e.model,
|
|
489
487
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
490
488
|
clearable: "",
|
|
@@ -496,13 +494,12 @@ function co(t, o, n, e, a, r) {
|
|
|
496
494
|
onChange: e.changeHandler
|
|
497
495
|
}, null, 8, ["modelValue", "disabled", "max", "min"]);
|
|
498
496
|
}
|
|
499
|
-
const uo = /* @__PURE__ */
|
|
497
|
+
const uo = /* @__PURE__ */ X(lo, [["render", co], ["__file", "InputNumber.vue"]]), fo = /* @__PURE__ */ Y({
|
|
500
498
|
__name: "SelectList",
|
|
501
499
|
props: /* @__PURE__ */ ce({
|
|
502
500
|
fieldKey: {},
|
|
503
501
|
modelValue: {},
|
|
504
502
|
config: {},
|
|
505
|
-
readonly: { type: Boolean },
|
|
506
503
|
validations: {},
|
|
507
504
|
triggers: {}
|
|
508
505
|
}, {
|
|
@@ -511,43 +508,43 @@ const uo = /* @__PURE__ */ Z(lo, [["render", co], ["__file", "InputNumber.vue"]]
|
|
|
511
508
|
}),
|
|
512
509
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
|
|
513
510
|
setup(t, { expose: o, emit: n }) {
|
|
514
|
-
const e = t, a = n, r =
|
|
515
|
-
const
|
|
516
|
-
return e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
517
|
-
|
|
518
|
-
a(
|
|
519
|
-
const
|
|
520
|
-
a("error",
|
|
511
|
+
const e = t, a = n, r = _(!1), i = _(e.config.options ?? []), l = Se(t, "modelValue"), c = (k) => we(e.validations, k), s = z(() => {
|
|
512
|
+
const k = {};
|
|
513
|
+
return e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
|
|
514
|
+
k[p.event] = (m) => {
|
|
515
|
+
a(p.event, p.handlerName, m);
|
|
516
|
+
const C = c(m);
|
|
517
|
+
a("error", C.res ? "" : C.errorMessages);
|
|
521
518
|
};
|
|
522
|
-
}),
|
|
519
|
+
}), k;
|
|
523
520
|
}), d = async () => {
|
|
524
521
|
if (e.config.dataSourceProvider) {
|
|
525
522
|
i.value = await Wt(e.config.dataSourceProvider);
|
|
526
|
-
const
|
|
527
|
-
|
|
523
|
+
const k = e.modelValue;
|
|
524
|
+
k != null && k !== "" && (i.value.some((m) => m.value === k) || a("update:modelValue", ""));
|
|
528
525
|
}
|
|
529
526
|
};
|
|
530
527
|
ge(d);
|
|
531
|
-
const
|
|
532
|
-
a("update:modelValue",
|
|
533
|
-
const
|
|
534
|
-
a("error",
|
|
535
|
-
m.event === "change" && a(m.event, m.handlerName,
|
|
528
|
+
const b = (k) => {
|
|
529
|
+
a("update:modelValue", k);
|
|
530
|
+
const p = c(k);
|
|
531
|
+
a("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((m) => {
|
|
532
|
+
m.event === "change" && a(m.event, m.handlerName, k);
|
|
536
533
|
});
|
|
537
534
|
};
|
|
538
535
|
o({
|
|
539
536
|
validate() {
|
|
540
|
-
const
|
|
541
|
-
return a("error",
|
|
537
|
+
const k = c(e.modelValue);
|
|
538
|
+
return a("error", k.res ? "" : k.errorMessages), k.res;
|
|
542
539
|
}
|
|
543
540
|
});
|
|
544
|
-
const
|
|
545
|
-
return Object.defineProperty(
|
|
541
|
+
const y = { props: e, emits: a, loading: r, _options: i, model: l, validate: c, eventHandlers: s, loadOptions: d, changeHandler: b };
|
|
542
|
+
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
546
543
|
}
|
|
547
544
|
});
|
|
548
545
|
function po(t, o, n, e, a, r) {
|
|
549
|
-
const i =
|
|
550
|
-
return u(),
|
|
546
|
+
const i = T("AOption"), l = T("ASelect");
|
|
547
|
+
return u(), L(l, {
|
|
551
548
|
"allow-clear": "",
|
|
552
549
|
modelValue: e.model,
|
|
553
550
|
"onUpdate:modelValue": o[0] || (o[0] = (c) => e.model = c),
|
|
@@ -557,8 +554,8 @@ function po(t, o, n, e, a, r) {
|
|
|
557
554
|
disabled: e.props.config.readonly,
|
|
558
555
|
onChange: e.changeHandler
|
|
559
556
|
}, {
|
|
560
|
-
default:
|
|
561
|
-
(u(!0),
|
|
557
|
+
default: x(() => [
|
|
558
|
+
(u(!0), w(j, null, G(e._options, (c) => (u(), L(i, {
|
|
562
559
|
key: c.value,
|
|
563
560
|
value: c.value,
|
|
564
561
|
label: c.label
|
|
@@ -567,7 +564,7 @@ function po(t, o, n, e, a, r) {
|
|
|
567
564
|
_: 1
|
|
568
565
|
}, 8, ["modelValue", "loading", "disabled"]);
|
|
569
566
|
}
|
|
570
|
-
const Qe = /* @__PURE__ */
|
|
567
|
+
const Qe = /* @__PURE__ */ X(fo, [["render", po], ["__file", "SelectList.vue"]]), mo = /* @__PURE__ */ Y({
|
|
571
568
|
__name: "Cascader",
|
|
572
569
|
props: {
|
|
573
570
|
modelValue: {},
|
|
@@ -575,15 +572,15 @@ const Qe = /* @__PURE__ */ Z(fo, [["render", po], ["__file", "SelectList.vue"]])
|
|
|
575
572
|
},
|
|
576
573
|
emits: ["update:modelValue", "change"],
|
|
577
574
|
setup(t, { expose: o, emit: n }) {
|
|
578
|
-
const e = t, a = n, r =
|
|
575
|
+
const e = t, a = n, r = _(e.config.options ?? []), i = (s) => {
|
|
579
576
|
a("update:modelValue", s), a("change", s);
|
|
580
577
|
};
|
|
581
578
|
ge(async () => {
|
|
582
579
|
if (e.config) {
|
|
583
580
|
const s = e.config.dataSourceProvider;
|
|
584
581
|
if (s) {
|
|
585
|
-
const
|
|
586
|
-
r.value =
|
|
582
|
+
const b = await (await J()).get(s);
|
|
583
|
+
r.value = b.data;
|
|
587
584
|
}
|
|
588
585
|
}
|
|
589
586
|
});
|
|
@@ -598,13 +595,13 @@ const Qe = /* @__PURE__ */ Z(fo, [["render", po], ["__file", "SelectList.vue"]])
|
|
|
598
595
|
}
|
|
599
596
|
});
|
|
600
597
|
function go(t, o, n, e, a, r) {
|
|
601
|
-
const i =
|
|
602
|
-
return u(),
|
|
598
|
+
const i = T("ACascader"), l = T("ASpace");
|
|
599
|
+
return u(), L(l, {
|
|
603
600
|
direction: "vertical",
|
|
604
601
|
size: "large"
|
|
605
602
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
|
|
603
|
+
default: x(() => [
|
|
604
|
+
P(i, {
|
|
608
605
|
"field-names": e.fieldNames,
|
|
609
606
|
"model-value": n.modelValue,
|
|
610
607
|
options: e._options,
|
|
@@ -616,7 +613,7 @@ function go(t, o, n, e, a, r) {
|
|
|
616
613
|
_: 1
|
|
617
614
|
});
|
|
618
615
|
}
|
|
619
|
-
const _o = /* @__PURE__ */
|
|
616
|
+
const _o = /* @__PURE__ */ X(mo, [["render", go], ["__file", "Cascader.vue"]]), Je = 1024 * 1024, vo = /* @__PURE__ */ Y({
|
|
620
617
|
__name: "FileUpload",
|
|
621
618
|
props: {
|
|
622
619
|
className: {},
|
|
@@ -625,89 +622,88 @@ const _o = /* @__PURE__ */ Z(mo, [["render", go], ["__file", "Cascader.vue"]]),
|
|
|
625
622
|
fieldKey: {},
|
|
626
623
|
modelValue: {},
|
|
627
624
|
config: {},
|
|
628
|
-
readonly: { type: Boolean },
|
|
629
625
|
validations: {},
|
|
630
626
|
triggers: {}
|
|
631
627
|
},
|
|
632
628
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
633
629
|
setup(t, { expose: o, emit: n }) {
|
|
634
|
-
const e = t, a = n, r =
|
|
635
|
-
function
|
|
636
|
-
return
|
|
630
|
+
const e = t, a = n, r = _({}), i = (f) => we(e.validations, f), l = ze(), c = l.apiBase, s = _(null), d = _("");
|
|
631
|
+
function b(f, F, B) {
|
|
632
|
+
return f.replace(/{WorkflowId}/g, F).replace(/{ClassName}/g, B);
|
|
637
633
|
}
|
|
638
|
-
const
|
|
634
|
+
const y = z(() => {
|
|
639
635
|
if (e.config.uploadURL) {
|
|
640
|
-
const
|
|
641
|
-
return
|
|
636
|
+
const f = c + e.config.uploadURL;
|
|
637
|
+
return b(f, d.value, e.className);
|
|
642
638
|
}
|
|
643
639
|
return "";
|
|
644
640
|
});
|
|
645
|
-
function
|
|
646
|
-
if (!(typeof
|
|
647
|
-
return
|
|
641
|
+
function k(f) {
|
|
642
|
+
if (!(typeof f != "number" || f <= 0))
|
|
643
|
+
return f * Je;
|
|
648
644
|
}
|
|
649
|
-
function f
|
|
650
|
-
if (!(typeof
|
|
651
|
-
return
|
|
645
|
+
function p(f) {
|
|
646
|
+
if (!(typeof f != "number" || f <= 0))
|
|
647
|
+
return f;
|
|
652
648
|
}
|
|
653
|
-
const m = z(() =>
|
|
654
|
-
function
|
|
655
|
-
return
|
|
649
|
+
const m = z(() => k(e.maxSize ?? e.config.maxSize)), C = z(() => p(e.minSize ?? e.config.minSize)), ee = z(() => m.value ? W(m.value) : "unlimited"), oe = z(() => C.value ? W(C.value) : "0 B");
|
|
650
|
+
function W(f) {
|
|
651
|
+
return f < 1024 ? `${f} B` : f < 1024 * 1024 ? `${Math.round(f / 1024)} KB` : f < 1024 * 1024 * 1024 ? `${Math.round(f / (1024 * 1024))} MB` : `${Math.round(f / (1024 * 1024 * 1024))} GB`;
|
|
656
652
|
}
|
|
657
|
-
function
|
|
658
|
-
const
|
|
659
|
-
return typeof
|
|
653
|
+
function ie(f) {
|
|
654
|
+
const F = m.value, B = C.value;
|
|
655
|
+
return typeof F == "number" && F > 0 && f.size > F ? (a("error", `File size cannot exceed ${W(F)}`), !1) : typeof B == "number" && B > 0 && f.size < B ? (a("error", `File size cannot be smaller than ${W(B)}`), !1) : (a("error", ""), !0);
|
|
660
656
|
}
|
|
661
|
-
const
|
|
662
|
-
|
|
657
|
+
const le = (f) => {
|
|
658
|
+
f.stopPropagation(), s.value.submit();
|
|
663
659
|
};
|
|
664
|
-
function
|
|
665
|
-
const { file:
|
|
666
|
-
return new Promise((
|
|
660
|
+
function re(f) {
|
|
661
|
+
const { file: F, name: B } = f, E = B ?? F.name;
|
|
662
|
+
return new Promise((g, A) => {
|
|
667
663
|
St.confirm({
|
|
668
664
|
title: "Confirm Delete",
|
|
669
|
-
content: `Are you sure you want to delete ${
|
|
665
|
+
content: `Are you sure you want to delete ${E}?`,
|
|
670
666
|
async onOk() {
|
|
671
|
-
if (
|
|
672
|
-
return await e.config.removeFile(
|
|
673
|
-
|
|
667
|
+
if (f.status !== "init" && e.config.removeFile)
|
|
668
|
+
return await e.config.removeFile(f.uid), g(!0);
|
|
669
|
+
g(!0);
|
|
674
670
|
},
|
|
675
671
|
onCancel: () => A("cancel")
|
|
676
672
|
});
|
|
677
673
|
});
|
|
678
674
|
}
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
},
|
|
684
|
-
|
|
675
|
+
const V = _(null), $ = _(null), H = (f) => {
|
|
676
|
+
V.value && (V.value(f), V.value = null, $.value = null);
|
|
677
|
+
}, M = (f) => {
|
|
678
|
+
$.value && ($.value(f), V.value = null, $.value = null);
|
|
679
|
+
}, v = _([]), I = (f) => {
|
|
680
|
+
v.value = f.filter((F) => F.status === "init");
|
|
685
681
|
};
|
|
686
682
|
o({
|
|
687
|
-
submit(
|
|
688
|
-
return new Promise((
|
|
689
|
-
s.value ? (e.config.uploadURL && (d.value =
|
|
683
|
+
submit(f) {
|
|
684
|
+
return new Promise((F, B) => {
|
|
685
|
+
s.value ? (e.config.uploadURL && (d.value = f), V.value = F, $.value = B, v.value.length ? st().then((E) => {
|
|
690
686
|
r.value = {
|
|
691
|
-
Authorization: `Bearer ${
|
|
687
|
+
Authorization: `Bearer ${E}`
|
|
692
688
|
}, vt(() => {
|
|
693
689
|
s.value?.submit();
|
|
694
690
|
});
|
|
695
|
-
}) :
|
|
691
|
+
}) : F(f)) : F(f);
|
|
696
692
|
});
|
|
697
693
|
},
|
|
698
694
|
validate() {
|
|
699
|
-
const
|
|
700
|
-
return a("error",
|
|
695
|
+
const f = e.config.files ?? [], F = [...v.value, ...f].length > 0 ? "hasFile" : "", B = i(F);
|
|
696
|
+
return a("error", B.res ? "" : B.errorMessages), B.res;
|
|
701
697
|
}
|
|
702
698
|
});
|
|
703
|
-
const
|
|
704
|
-
return Object.defineProperty(
|
|
699
|
+
const h = { props: e, emits: a, headers: r, validate: i, config: l, ApiBase: c, uploadRef: s, id: d, replaceIdAndClassName: b, action: y, MB_SIZE: Je, mbToBytes: k, normalizeBytes: p, maxFileSize: m, minFileSize: C, maxFileSizeText: ee, minFileSizeText: oe, formatFileSize: W, onBeforeUpload: ie, submit: le, onBeforeRemove: re, uploadPromiseResolve: V, uploadPromiseReject: $, handleUploadSuccess: H, handleUploadError: M, readyFiles: v, onChange: I };
|
|
700
|
+
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
705
701
|
}
|
|
706
702
|
}), ho = { style: { "margin-top": "8px", color: "#86909c", "font-size": "12px" } };
|
|
707
703
|
function bo(t, o, n, e, a, r) {
|
|
708
|
-
const i =
|
|
709
|
-
return u(),
|
|
710
|
-
|
|
704
|
+
const i = T("a-button"), l = T("a-upload");
|
|
705
|
+
return u(), w(j, null, [
|
|
706
|
+
P(l, {
|
|
711
707
|
ref: "uploadRef",
|
|
712
708
|
"default-file-list": e.props.config.files,
|
|
713
709
|
action: e.action,
|
|
@@ -721,10 +717,10 @@ function bo(t, o, n, e, a, r) {
|
|
|
721
717
|
onSuccess: e.handleUploadSuccess,
|
|
722
718
|
onError: e.handleUploadError
|
|
723
719
|
}, {
|
|
724
|
-
"start-icon":
|
|
725
|
-
"upload-button":
|
|
726
|
-
|
|
727
|
-
default:
|
|
720
|
+
"start-icon": x(() => o[0] || (o[0] = [])),
|
|
721
|
+
"upload-button": x(() => [
|
|
722
|
+
P(i, { type: "primary" }, {
|
|
723
|
+
default: x(() => o[1] || (o[1] = [
|
|
728
724
|
ae("Select File", -1)
|
|
729
725
|
])),
|
|
730
726
|
_: 1,
|
|
@@ -733,28 +729,27 @@ function bo(t, o, n, e, a, r) {
|
|
|
733
729
|
]),
|
|
734
730
|
_: 1
|
|
735
731
|
}, 8, ["default-file-list", "action", "limit", "headers"]),
|
|
736
|
-
|
|
732
|
+
S("div", ho, " The maximum file size for uploads is " + q(e.maxFileSizeText) + ", and the minimum file size is greater than " + q(e.minFileSizeText) + ". ", 1)
|
|
737
733
|
], 64);
|
|
738
734
|
}
|
|
739
|
-
const
|
|
735
|
+
const wo = /* @__PURE__ */ X(vo, [["render", bo], ["__file", "FileUpload.vue"]]), yo = /* @__PURE__ */ Y({
|
|
740
736
|
__name: "TextArea",
|
|
741
737
|
props: {
|
|
742
738
|
fieldKey: {},
|
|
743
739
|
modelValue: {},
|
|
744
740
|
config: {},
|
|
745
|
-
readonly: { type: Boolean },
|
|
746
741
|
validations: {},
|
|
747
742
|
triggers: {}
|
|
748
743
|
},
|
|
749
744
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
750
745
|
setup(t, { expose: o, emit: n }) {
|
|
751
|
-
const e = t, a = n, r = (s) =>
|
|
746
|
+
const e = t, a = n, r = (s) => we(e.validations, s), i = (s) => {
|
|
752
747
|
a("update:modelValue", s), a("input", s);
|
|
753
748
|
}, l = (s) => {
|
|
754
749
|
a("update:modelValue", s);
|
|
755
750
|
const d = r(s);
|
|
756
|
-
a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
757
|
-
|
|
751
|
+
a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((b) => {
|
|
752
|
+
b.event === "change" && a(b.event, b.handlerName, s);
|
|
758
753
|
});
|
|
759
754
|
};
|
|
760
755
|
o({
|
|
@@ -768,25 +763,28 @@ const yo = /* @__PURE__ */ Z(vo, [["render", bo], ["__file", "FileUpload.vue"]])
|
|
|
768
763
|
}
|
|
769
764
|
});
|
|
770
765
|
function ko(t, o, n, e, a, r) {
|
|
771
|
-
const i =
|
|
772
|
-
return u(),
|
|
766
|
+
const i = T("ATextarea");
|
|
767
|
+
return u(), L(i, {
|
|
773
768
|
"model-value": e.props.modelValue,
|
|
774
769
|
placeholder: "Please enter something",
|
|
775
770
|
"allow-clear": "",
|
|
776
771
|
"show-word-limit": "",
|
|
777
772
|
disabled: e.props.config.readonly,
|
|
778
773
|
"max-length": e.props.config.maxLength,
|
|
774
|
+
"auto-size": {
|
|
775
|
+
minRows: 2,
|
|
776
|
+
maxRows: 2
|
|
777
|
+
},
|
|
779
778
|
onInput: e.inputHandler,
|
|
780
779
|
onChange: e.changeHandler
|
|
781
780
|
}, null, 8, ["model-value", "disabled", "max-length"]);
|
|
782
781
|
}
|
|
783
|
-
const So = /* @__PURE__ */
|
|
782
|
+
const So = /* @__PURE__ */ X(yo, [["render", ko], ["__file", "TextArea.vue"]]), Co = /* @__PURE__ */ Y({
|
|
784
783
|
__name: "CheckBox",
|
|
785
784
|
props: /* @__PURE__ */ ce({
|
|
786
785
|
fieldKey: {},
|
|
787
786
|
modelValue: {},
|
|
788
787
|
config: {},
|
|
789
|
-
readonly: { type: Boolean },
|
|
790
788
|
validations: {},
|
|
791
789
|
triggers: {}
|
|
792
790
|
}, {
|
|
@@ -795,10 +793,10 @@ const So = /* @__PURE__ */ Z(wo, [["render", ko], ["__file", "TextArea.vue"]]),
|
|
|
795
793
|
}),
|
|
796
794
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
797
795
|
setup(t, { expose: o, emit: n }) {
|
|
798
|
-
const e = t, a = n, r = Se(t, "modelValue"), i = (s) =>
|
|
796
|
+
const e = t, a = n, r = Se(t, "modelValue"), i = (s) => we(e.validations, s), l = (s) => {
|
|
799
797
|
const d = i(s);
|
|
800
|
-
a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
801
|
-
|
|
798
|
+
a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((b) => {
|
|
799
|
+
b.event === "change" && a(b.event, b.handlerName, s);
|
|
802
800
|
});
|
|
803
801
|
};
|
|
804
802
|
o({
|
|
@@ -812,22 +810,22 @@ const So = /* @__PURE__ */ Z(wo, [["render", ko], ["__file", "TextArea.vue"]]),
|
|
|
812
810
|
}
|
|
813
811
|
});
|
|
814
812
|
function xo(t, o, n, e, a, r) {
|
|
815
|
-
const i =
|
|
816
|
-
return u(),
|
|
813
|
+
const i = T("ACheckbox");
|
|
814
|
+
return u(), L(i, {
|
|
817
815
|
modelValue: e.model,
|
|
818
816
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
819
817
|
clearable: "",
|
|
820
818
|
disabled: e.props.readonly || e.props.config.Readonly,
|
|
821
819
|
onChange: e.changeHandler
|
|
822
820
|
}, {
|
|
823
|
-
default:
|
|
821
|
+
default: x(() => o[1] || (o[1] = [
|
|
824
822
|
ae("Yes", -1)
|
|
825
823
|
])),
|
|
826
824
|
_: 1,
|
|
827
825
|
__: [1]
|
|
828
826
|
}, 8, ["modelValue", "disabled"]);
|
|
829
827
|
}
|
|
830
|
-
const To = /* @__PURE__ */
|
|
828
|
+
const To = /* @__PURE__ */ X(Co, [["render", xo], ["__file", "CheckBox.vue"]]), Vo = Symbol("ArcoConfigProvider"), Ao = "arco", Io = "$arco", lt = (t) => {
|
|
831
829
|
var o, n, e;
|
|
832
830
|
const a = me(), r = be(Vo, void 0);
|
|
833
831
|
return `${(e = (n = r?.prefixCls) != null ? n : (o = a?.appContext.config.globalProperties[Io]) == null ? void 0 : o.classPrefix) != null ? e : Ao}-${t}`;
|
|
@@ -840,7 +838,7 @@ var dt = (t, o) => {
|
|
|
840
838
|
t[n] = e;
|
|
841
839
|
return t;
|
|
842
840
|
};
|
|
843
|
-
const Fo =
|
|
841
|
+
const Fo = Y({
|
|
844
842
|
name: "IconQuestionCircle",
|
|
845
843
|
props: {
|
|
846
844
|
size: {
|
|
@@ -880,8 +878,8 @@ const Fo = q({
|
|
|
880
878
|
};
|
|
881
879
|
}
|
|
882
880
|
}), No = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
883
|
-
function
|
|
884
|
-
return u(),
|
|
881
|
+
function Ro(t, o, n, e, a, r) {
|
|
882
|
+
return u(), w("svg", {
|
|
885
883
|
viewBox: "0 0 48 48",
|
|
886
884
|
fill: "none",
|
|
887
885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -893,18 +891,18 @@ function Uo(t, o, n, e, a, r) {
|
|
|
893
891
|
"stroke-linejoin": t.strokeLinejoin,
|
|
894
892
|
onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
|
|
895
893
|
}, o[1] || (o[1] = [
|
|
896
|
-
|
|
897
|
-
|
|
894
|
+
S("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),
|
|
895
|
+
S("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)
|
|
898
896
|
]), 14, No);
|
|
899
897
|
}
|
|
900
|
-
var
|
|
901
|
-
const
|
|
898
|
+
var Be = /* @__PURE__ */ dt(Fo, [["render", Ro]]);
|
|
899
|
+
const Uo = Object.assign(Be, {
|
|
902
900
|
install: (t, o) => {
|
|
903
901
|
var n;
|
|
904
902
|
const e = (n = o?.iconPrefix) != null ? n : "";
|
|
905
|
-
t.component(e +
|
|
903
|
+
t.component(e + Be.name, Be);
|
|
906
904
|
}
|
|
907
|
-
}),
|
|
905
|
+
}), Do = Y({
|
|
908
906
|
name: "IconDownload",
|
|
909
907
|
props: {
|
|
910
908
|
size: {
|
|
@@ -943,9 +941,9 @@ const Ro = Object.assign(Le, {
|
|
|
943
941
|
}
|
|
944
942
|
};
|
|
945
943
|
}
|
|
946
|
-
}),
|
|
947
|
-
function
|
|
948
|
-
return u(),
|
|
944
|
+
}), Lo = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
945
|
+
function Bo(t, o, n, e, a, r) {
|
|
946
|
+
return u(), w("svg", {
|
|
949
947
|
viewBox: "0 0 48 48",
|
|
950
948
|
fill: "none",
|
|
951
949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -957,17 +955,17 @@ function Lo(t, o, n, e, a, r) {
|
|
|
957
955
|
"stroke-linejoin": t.strokeLinejoin,
|
|
958
956
|
onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
|
|
959
957
|
}, o[1] || (o[1] = [
|
|
960
|
-
|
|
961
|
-
]), 14,
|
|
958
|
+
S("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
|
|
959
|
+
]), 14, Lo);
|
|
962
960
|
}
|
|
963
|
-
var He = /* @__PURE__ */ dt(
|
|
961
|
+
var He = /* @__PURE__ */ dt(Do, [["render", Bo]]);
|
|
964
962
|
const Ho = Object.assign(He, {
|
|
965
963
|
install: (t, o) => {
|
|
966
964
|
var n;
|
|
967
965
|
const e = (n = o?.iconPrefix) != null ? n : "";
|
|
968
966
|
t.component(e + He.name, He);
|
|
969
967
|
}
|
|
970
|
-
}),
|
|
968
|
+
}), Oo = /* @__PURE__ */ Y({
|
|
971
969
|
__name: "ToolTip",
|
|
972
970
|
props: {
|
|
973
971
|
isVisible: { type: Boolean },
|
|
@@ -976,44 +974,44 @@ const Ho = Object.assign(He, {
|
|
|
976
974
|
setup(t, { expose: o }) {
|
|
977
975
|
o();
|
|
978
976
|
const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", a = z(() => e(n.outputText) ? [] : n.outputText), r = z(() => e(n.outputText) ? n.outputText : []), i = { props: n, isTreeArray: e, stringOutput: a, treeOutput: r, get IconQuestionCircle() {
|
|
979
|
-
return
|
|
977
|
+
return Uo;
|
|
980
978
|
} };
|
|
981
979
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
982
980
|
}
|
|
983
|
-
}),
|
|
984
|
-
function
|
|
985
|
-
const i =
|
|
986
|
-
return e.props.isVisible ? (u(),
|
|
981
|
+
}), $o = { class: "list-unstyled" }, jo = { class: "list-style-square" };
|
|
982
|
+
function zo(t, o, n, e, a, r) {
|
|
983
|
+
const i = T("a-tooltip");
|
|
984
|
+
return e.props.isVisible ? (u(), L(i, {
|
|
987
985
|
key: 0,
|
|
988
986
|
"background-color": "#7A00E6"
|
|
989
987
|
}, {
|
|
990
|
-
content:
|
|
991
|
-
e.stringOutput.length ? (u(!0),
|
|
988
|
+
content: x(() => [
|
|
989
|
+
e.stringOutput.length ? (u(!0), w(j, { key: 0 }, G(e.stringOutput, (l) => (u(), w("p", { key: l }, q(l), 1))), 128)) : (u(!0), w(j, { key: 1 }, G(e.treeOutput, (l) => (u(), w("ul", {
|
|
992
990
|
key: l.title,
|
|
993
991
|
class: "list-unstyled"
|
|
994
992
|
}, [
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
(u(!0),
|
|
993
|
+
S("li", null, [
|
|
994
|
+
S("b", null, q(l.title), 1),
|
|
995
|
+
S("ul", $o, [
|
|
996
|
+
(u(!0), w(j, null, G(l.items, (c) => (u(), w("li", {
|
|
999
997
|
key: c.title
|
|
1000
998
|
}, [
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
(u(!0),
|
|
999
|
+
S("u", null, q(c.title), 1),
|
|
1000
|
+
S("ul", jo, [
|
|
1001
|
+
(u(!0), w(j, null, G(c.items, (s) => (u(), w("li", null, q(s), 1))), 256))
|
|
1004
1002
|
])
|
|
1005
1003
|
]))), 128))
|
|
1006
1004
|
])
|
|
1007
1005
|
])
|
|
1008
1006
|
]))), 128))
|
|
1009
1007
|
]),
|
|
1010
|
-
default:
|
|
1011
|
-
|
|
1008
|
+
default: x(() => [
|
|
1009
|
+
P(e.IconQuestionCircle, { class: "icon" })
|
|
1012
1010
|
]),
|
|
1013
1011
|
_: 1
|
|
1014
1012
|
})) : se("", !0);
|
|
1015
1013
|
}
|
|
1016
|
-
const ut = /* @__PURE__ */
|
|
1014
|
+
const ut = /* @__PURE__ */ X(Oo, [["render", zo], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Mo = /* @__PURE__ */ Y({
|
|
1017
1015
|
__name: "index",
|
|
1018
1016
|
props: /* @__PURE__ */ ce({
|
|
1019
1017
|
config: {},
|
|
@@ -1021,7 +1019,6 @@ const ut = /* @__PURE__ */ Z($o, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1021
1019
|
required: { type: Boolean },
|
|
1022
1020
|
fieldKey: {},
|
|
1023
1021
|
modelValue: {},
|
|
1024
|
-
readonly: { type: Boolean },
|
|
1025
1022
|
validations: {},
|
|
1026
1023
|
triggers: {}
|
|
1027
1024
|
}, {
|
|
@@ -1041,7 +1038,7 @@ const ut = /* @__PURE__ */ Z($o, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1041
1038
|
case "Cascade":
|
|
1042
1039
|
return _o;
|
|
1043
1040
|
case "File":
|
|
1044
|
-
return
|
|
1041
|
+
return wo;
|
|
1045
1042
|
case "TextArea":
|
|
1046
1043
|
return So;
|
|
1047
1044
|
case "DropDown":
|
|
@@ -1051,23 +1048,23 @@ const ut = /* @__PURE__ */ Z($o, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1051
1048
|
default:
|
|
1052
1049
|
return Ye;
|
|
1053
1050
|
}
|
|
1054
|
-
}), c =
|
|
1055
|
-
c.value =
|
|
1056
|
-
}, d = (
|
|
1057
|
-
a("change",
|
|
1051
|
+
}), c = _(""), s = (p) => {
|
|
1052
|
+
c.value = p;
|
|
1053
|
+
}, d = (p, m) => {
|
|
1054
|
+
a("change", p, m);
|
|
1058
1055
|
};
|
|
1059
|
-
function
|
|
1056
|
+
function b() {
|
|
1060
1057
|
return e.config?.widget?.widget === "File";
|
|
1061
1058
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1059
|
+
function y(p) {
|
|
1060
|
+
return p === "OtherInformationText" ? "Other Information" : p;
|
|
1064
1061
|
}
|
|
1065
1062
|
o({
|
|
1066
1063
|
isFileUpload() {
|
|
1067
1064
|
return e.config?.widget?.widget === "File";
|
|
1068
1065
|
},
|
|
1069
|
-
submit(
|
|
1070
|
-
return
|
|
1066
|
+
submit(p) {
|
|
1067
|
+
return b() ? i.value.submit(p) : Promise.resolve(p);
|
|
1071
1068
|
},
|
|
1072
1069
|
validate() {
|
|
1073
1070
|
return i.value?.validate();
|
|
@@ -1076,8 +1073,8 @@ const ut = /* @__PURE__ */ Z($o, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1076
1073
|
return e?.config?.widget?.title;
|
|
1077
1074
|
}
|
|
1078
1075
|
});
|
|
1079
|
-
const
|
|
1080
|
-
return Object.defineProperty(
|
|
1076
|
+
const k = { props: e, emits: a, model: r, widgetRef: i, curComp: l, errMsg: c, errHandler: s, changeHandler: d, isFileUpload: b, formatTitle: y, ToolTip: ut };
|
|
1077
|
+
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
1081
1078
|
}
|
|
1082
1079
|
}), Eo = { class: "title" }, Ko = {
|
|
1083
1080
|
key: 0,
|
|
@@ -1087,17 +1084,17 @@ const ut = /* @__PURE__ */ Z($o, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1087
1084
|
class: "err-msg"
|
|
1088
1085
|
};
|
|
1089
1086
|
function Go(t, o, n, e, a, r) {
|
|
1090
|
-
return u(),
|
|
1091
|
-
|
|
1092
|
-
ae(
|
|
1093
|
-
e.props.required || e.props.config.validations.some((i) => i.ruleName === "Required") ? (u(),
|
|
1094
|
-
|
|
1087
|
+
return u(), w("div", null, [
|
|
1088
|
+
S("div", Eo, [
|
|
1089
|
+
ae(q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
|
|
1090
|
+
e.props.required || e.props.config.validations.some((i) => i.ruleName === "Required") ? (u(), w("span", Ko, " * ")) : se("", !0),
|
|
1091
|
+
P(e.ToolTip, {
|
|
1095
1092
|
"is-visible": e.props.config.widget?.isVisible ?? !1,
|
|
1096
1093
|
"output-text": e.props.config.widget?.outputText ?? []
|
|
1097
1094
|
}, null, 8, ["is-visible", "output-text"])
|
|
1098
1095
|
]),
|
|
1099
|
-
|
|
1100
|
-
(u(),
|
|
1096
|
+
S("div", null, [
|
|
1097
|
+
(u(), L(je(e.curComp), {
|
|
1101
1098
|
ref: "widgetRef",
|
|
1102
1099
|
modelValue: e.model,
|
|
1103
1100
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => e.model = i),
|
|
@@ -1109,11 +1106,11 @@ function Go(t, o, n, e, a, r) {
|
|
|
1109
1106
|
onError: e.errHandler,
|
|
1110
1107
|
onChange: e.changeHandler
|
|
1111
1108
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
1112
|
-
e.errMsg.length > 0 ? (u(),
|
|
1109
|
+
e.errMsg.length > 0 ? (u(), w("div", Wo, q(e.errMsg), 1)) : se("", !0)
|
|
1113
1110
|
])
|
|
1114
1111
|
]);
|
|
1115
1112
|
}
|
|
1116
|
-
const Ie = /* @__PURE__ */
|
|
1113
|
+
const Ie = /* @__PURE__ */ X(Mo, [["render", Go], ["__scopeId", "data-v-67595df1"], ["__file", "index.vue"]]), qo = /* @__PURE__ */ Y({
|
|
1117
1114
|
__name: "SubmitButton",
|
|
1118
1115
|
props: {
|
|
1119
1116
|
url: {},
|
|
@@ -1132,19 +1129,19 @@ const Ie = /* @__PURE__ */ Z(zo, [["render", Go], ["__scopeId", "data-v-67595df1
|
|
|
1132
1129
|
}
|
|
1133
1130
|
});
|
|
1134
1131
|
function Yo(t, o, n, e, a, r) {
|
|
1135
|
-
const i =
|
|
1136
|
-
return u(),
|
|
1132
|
+
const i = T("AButton");
|
|
1133
|
+
return u(), L(i, {
|
|
1137
1134
|
loading: n.loading,
|
|
1138
1135
|
type: "primary",
|
|
1139
1136
|
onClick: e.clickHandler
|
|
1140
1137
|
}, {
|
|
1141
|
-
default:
|
|
1138
|
+
default: x(() => [
|
|
1142
1139
|
ue(t.$slots, "default")
|
|
1143
1140
|
]),
|
|
1144
1141
|
_: 3
|
|
1145
1142
|
}, 8, ["loading"]);
|
|
1146
1143
|
}
|
|
1147
|
-
const Ze = /* @__PURE__ */
|
|
1144
|
+
const Ze = /* @__PURE__ */ X(qo, [["render", Yo], ["__file", "SubmitButton.vue"]]), Qo = /* @__PURE__ */ Y({
|
|
1148
1145
|
__name: "DetailLink",
|
|
1149
1146
|
props: {
|
|
1150
1147
|
url: {},
|
|
@@ -1163,15 +1160,15 @@ const Ze = /* @__PURE__ */ Z(qo, [["render", Yo], ["__file", "SubmitButton.vue"]
|
|
|
1163
1160
|
}
|
|
1164
1161
|
});
|
|
1165
1162
|
function Jo(t, o, n, e, a, r) {
|
|
1166
|
-
const i =
|
|
1167
|
-
return u(),
|
|
1168
|
-
default:
|
|
1163
|
+
const i = T("ALink");
|
|
1164
|
+
return u(), L(i, { onClick: e.clickHandler }, {
|
|
1165
|
+
default: x(() => [
|
|
1169
1166
|
ue(t.$slots, "default")
|
|
1170
1167
|
]),
|
|
1171
1168
|
_: 3
|
|
1172
1169
|
});
|
|
1173
1170
|
}
|
|
1174
|
-
const Zo = /* @__PURE__ */
|
|
1171
|
+
const Zo = /* @__PURE__ */ X(Qo, [["render", Jo], ["__file", "DetailLink.vue"]]), Xo = /* @__PURE__ */ Y({
|
|
1175
1172
|
__name: "index",
|
|
1176
1173
|
props: {
|
|
1177
1174
|
config: {},
|
|
@@ -1181,8 +1178,8 @@ const Zo = /* @__PURE__ */ Z(Qo, [["render", Jo], ["__file", "DetailLink.vue"]])
|
|
|
1181
1178
|
setup(t, { expose: o, emit: n }) {
|
|
1182
1179
|
o();
|
|
1183
1180
|
const e = t, a = n;
|
|
1184
|
-
function r(d,
|
|
1185
|
-
a("click", e.config.widget, d,
|
|
1181
|
+
function r(d, b) {
|
|
1182
|
+
a("click", e.config.widget, d, b, e.config.title);
|
|
1186
1183
|
}
|
|
1187
1184
|
const i = z(() => {
|
|
1188
1185
|
switch (e.config.location) {
|
|
@@ -1193,24 +1190,24 @@ const Zo = /* @__PURE__ */ Z(Qo, [["render", Jo], ["__file", "DetailLink.vue"]])
|
|
|
1193
1190
|
default:
|
|
1194
1191
|
return Ze;
|
|
1195
1192
|
}
|
|
1196
|
-
}), l = z(() => e.config.widget ===
|
|
1193
|
+
}), l = z(() => e.config.widget === te.Submit ? e.config.requestUrl ?? "" : e.config.widget === te.Link ? e.config.redirectUrl ?? "" : ""), c = z(() => e.config.redirectType ?? "Details"), s = { props: e, emits: a, clickHandler: r, curComp: i, curUrl: l, redirectType: c };
|
|
1197
1194
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
1198
1195
|
}
|
|
1199
1196
|
});
|
|
1200
1197
|
function en(t, o, n, e, a, r) {
|
|
1201
|
-
return u(),
|
|
1198
|
+
return u(), L(je(e.curComp), {
|
|
1202
1199
|
url: e.curUrl,
|
|
1203
1200
|
"redirect-type": e.redirectType,
|
|
1204
1201
|
loading: n.loading,
|
|
1205
1202
|
onClick: e.clickHandler
|
|
1206
1203
|
}, {
|
|
1207
|
-
default:
|
|
1208
|
-
ae(
|
|
1204
|
+
default: x(() => [
|
|
1205
|
+
ae(q(e.props.config.title), 1)
|
|
1209
1206
|
]),
|
|
1210
1207
|
_: 1
|
|
1211
1208
|
}, 8, ["url", "redirect-type", "loading"]);
|
|
1212
1209
|
}
|
|
1213
|
-
const Pe = /* @__PURE__ */
|
|
1210
|
+
const Pe = /* @__PURE__ */ X(Xo, [["render", en], ["__file", "index.vue"]]), ft = Symbol("library-triggers");
|
|
1214
1211
|
function Ee() {
|
|
1215
1212
|
const t = be(ft, null);
|
|
1216
1213
|
return t || {};
|
|
@@ -1222,7 +1219,7 @@ function Fe() {
|
|
|
1222
1219
|
function Ne() {
|
|
1223
1220
|
return be(mt, null);
|
|
1224
1221
|
}
|
|
1225
|
-
const on = /* @__PURE__ */
|
|
1222
|
+
const on = /* @__PURE__ */ Y({
|
|
1226
1223
|
__name: "TopBar",
|
|
1227
1224
|
props: {
|
|
1228
1225
|
title: {},
|
|
@@ -1236,25 +1233,25 @@ const on = /* @__PURE__ */ q({
|
|
|
1236
1233
|
}
|
|
1237
1234
|
}), nn = { class: "top-bar" }, rn = { class: "banner-info" }, an = { class: "page-title" }, sn = { class: "page-subtitle" }, ln = { class: "avatar-wrapper" }, cn = { class: "user-email" };
|
|
1238
1235
|
function dn(t, o, n, e, a, r) {
|
|
1239
|
-
const i =
|
|
1240
|
-
return u(),
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1236
|
+
const i = T("a-avatar"), l = T("a-popover");
|
|
1237
|
+
return u(), w("div", nn, [
|
|
1238
|
+
S("div", rn, [
|
|
1239
|
+
S("div", an, q(n.title), 1),
|
|
1240
|
+
S("div", sn, q(n.subTitle), 1)
|
|
1244
1241
|
]),
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
content:
|
|
1248
|
-
|
|
1242
|
+
S("div", ln, [
|
|
1243
|
+
P(l, { trigger: "click" }, {
|
|
1244
|
+
content: x(() => [
|
|
1245
|
+
S("div", cn, q(n.email), 1)
|
|
1249
1246
|
]),
|
|
1250
|
-
default:
|
|
1251
|
-
|
|
1247
|
+
default: x(() => [
|
|
1248
|
+
P(i, {
|
|
1252
1249
|
size: 48,
|
|
1253
1250
|
autoFixFontSize: "",
|
|
1254
1251
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
1255
1252
|
}, {
|
|
1256
|
-
default:
|
|
1257
|
-
ae(
|
|
1253
|
+
default: x(() => [
|
|
1254
|
+
ae(q(n.email.charAt(0).toUpperCase()), 1)
|
|
1258
1255
|
]),
|
|
1259
1256
|
_: 1
|
|
1260
1257
|
})
|
|
@@ -1264,9 +1261,9 @@ function dn(t, o, n, e, a, r) {
|
|
|
1264
1261
|
])
|
|
1265
1262
|
]);
|
|
1266
1263
|
}
|
|
1267
|
-
const
|
|
1264
|
+
const Re = /* @__PURE__ */ X(on, [["render", dn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
1268
1265
|
function Ke(t) {
|
|
1269
|
-
const o =
|
|
1266
|
+
const o = ze(), n = [];
|
|
1270
1267
|
if (o.fieldsGroup) {
|
|
1271
1268
|
o.fieldsGroup.forEach((r) => {
|
|
1272
1269
|
const i = r.keys.map((l) => t.find((c) => c.fieldKey === l)).filter(Boolean);
|
|
@@ -1276,7 +1273,7 @@ function Ke(t) {
|
|
|
1276
1273
|
return a.length && n.push({ name: "Grading Review History (For example: re-submit the grading request)", fields: a }), n;
|
|
1277
1274
|
}
|
|
1278
1275
|
}
|
|
1279
|
-
class
|
|
1276
|
+
class Ue {
|
|
1280
1277
|
pageActionType;
|
|
1281
1278
|
className = "";
|
|
1282
1279
|
store = { svrStore: {}, bpmStore: {} };
|
|
@@ -1318,7 +1315,7 @@ class Ve {
|
|
|
1318
1315
|
return this.opt ? qe(this.pageActionType, this.className, this.store, this.opt) : qe(this.pageActionType, this.className, this.store);
|
|
1319
1316
|
}
|
|
1320
1317
|
getBtnList() {
|
|
1321
|
-
return
|
|
1318
|
+
return Lt(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
|
|
1322
1319
|
}
|
|
1323
1320
|
getFiles() {
|
|
1324
1321
|
return this.getWorkflowId() ? Yt(this.className, this.getWorkflowId()) : Promise.resolve({});
|
|
@@ -1348,7 +1345,7 @@ class Ve {
|
|
|
1348
1345
|
return oo(o);
|
|
1349
1346
|
}
|
|
1350
1347
|
}
|
|
1351
|
-
const un = /* @__PURE__ */
|
|
1348
|
+
const un = /* @__PURE__ */ Y({
|
|
1352
1349
|
__name: "CreateView",
|
|
1353
1350
|
props: {
|
|
1354
1351
|
className: {},
|
|
@@ -1356,7 +1353,7 @@ const un = /* @__PURE__ */ q({
|
|
|
1356
1353
|
},
|
|
1357
1354
|
setup(t, { expose: o }) {
|
|
1358
1355
|
o();
|
|
1359
|
-
const n = Fe(), e = Ne(), a = ve(), r = Ee(), i = Ae("dataWidgets"), l = me(), c = t, s =
|
|
1356
|
+
const n = Fe(), e = Ne(), a = ve(), r = Ee(), i = Ae("dataWidgets"), l = me(), c = t, s = _({
|
|
1360
1357
|
pageType: "",
|
|
1361
1358
|
fields: {},
|
|
1362
1359
|
globalValidations: [],
|
|
@@ -1371,136 +1368,151 @@ const un = /* @__PURE__ */ q({
|
|
|
1371
1368
|
workFlowReason: "",
|
|
1372
1369
|
workflowId: ""
|
|
1373
1370
|
}
|
|
1374
|
-
}), d =
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1377
|
-
fieldKey:
|
|
1378
|
-
...
|
|
1379
|
-
})).filter((
|
|
1371
|
+
}), d = _([]), b = _({});
|
|
1372
|
+
function y(v) {
|
|
1373
|
+
return v ? Object.entries(v).map(([h, f]) => ({
|
|
1374
|
+
fieldKey: h,
|
|
1375
|
+
...f
|
|
1376
|
+
})).filter((h) => h.widget && h.widget.widget !== "Hidden").filter((h) => !V.value.includes(h.fieldKey)) : [];
|
|
1380
1377
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1383
|
-
(
|
|
1378
|
+
function k(v) {
|
|
1379
|
+
return v ? Object.entries(v).filter(([h, f]) => f.dependent).reduce(
|
|
1380
|
+
(h, [f, F]) => (h[f] = F.dependent, h),
|
|
1384
1381
|
{}
|
|
1385
1382
|
) : [];
|
|
1386
1383
|
}
|
|
1387
|
-
const
|
|
1384
|
+
const p = z(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = _({}), C = _(!1);
|
|
1385
|
+
function ee(v) {
|
|
1386
|
+
return v.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1387
|
+
}
|
|
1388
|
+
function oe(v) {
|
|
1389
|
+
return typeof v == "string" ? ee(v) : Array.isArray(v) ? v.map((I) => oe(I)) : v && typeof v == "object" ? Object.entries(v).reduce(
|
|
1390
|
+
(I, [h, f]) => (I[h] = oe(f), I),
|
|
1391
|
+
{}
|
|
1392
|
+
) : v;
|
|
1393
|
+
}
|
|
1394
|
+
function W(v) {
|
|
1395
|
+
return Object.entries(v).reduce(
|
|
1396
|
+
(I, [h, f]) => (I[h] = oe(f), I),
|
|
1397
|
+
{}
|
|
1398
|
+
);
|
|
1399
|
+
}
|
|
1388
1400
|
ge(async () => {
|
|
1389
|
-
|
|
1390
|
-
const
|
|
1391
|
-
s.value = await
|
|
1392
|
-
const
|
|
1393
|
-
r.Test?.({ fieldValue:
|
|
1394
|
-
for (const
|
|
1395
|
-
if (s.value.fields[
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1401
|
+
C.value = !0;
|
|
1402
|
+
const v = new Ue().setWorkflowId(c.workflowId).setClassName(c.className).setStore({ svrStore: e, bpmStore: n }).build();
|
|
1403
|
+
s.value = await v.getPageData();
|
|
1404
|
+
const I = s.value.fields.requestType.modelValue;
|
|
1405
|
+
r.Test?.({ fieldValue: I, hiddenFields: V, formData: m }), d.value = y(s.value.fields), b.value = k(s.value.fields);
|
|
1406
|
+
for (const h in s.value.fields) {
|
|
1407
|
+
if (s.value.fields[h].widget?.widget === "File") {
|
|
1408
|
+
const f = d.value.find((F) => F.fieldKey === h);
|
|
1409
|
+
f && f.widget && (f.widget.files = []);
|
|
1398
1410
|
}
|
|
1399
|
-
m.value[
|
|
1411
|
+
m.value[h] = s.value.fields[h].modelValue;
|
|
1400
1412
|
}
|
|
1401
|
-
|
|
1413
|
+
C.value = !1;
|
|
1402
1414
|
});
|
|
1403
|
-
function
|
|
1415
|
+
function ie() {
|
|
1404
1416
|
return e()?.userInfo?.email_address ?? "";
|
|
1405
1417
|
}
|
|
1406
|
-
async function
|
|
1407
|
-
switch (
|
|
1408
|
-
case
|
|
1418
|
+
async function le(v, I, h, f, F) {
|
|
1419
|
+
switch (I) {
|
|
1420
|
+
case te.Submit:
|
|
1409
1421
|
let B = !0;
|
|
1410
|
-
if (i.value?.forEach((
|
|
1411
|
-
|
|
1422
|
+
if (i.value?.forEach((E) => {
|
|
1423
|
+
E?.validate && (E.validate() || (B = !1));
|
|
1412
1424
|
}), !B) {
|
|
1413
1425
|
l?.appContext.config.globalProperties.$message.error(
|
|
1414
1426
|
"form validation failed, please check the input fields"
|
|
1415
1427
|
);
|
|
1416
1428
|
return;
|
|
1417
1429
|
}
|
|
1418
|
-
|
|
1430
|
+
C.value = !0;
|
|
1419
1431
|
try {
|
|
1420
|
-
r[
|
|
1421
|
-
const
|
|
1422
|
-
...m.value,
|
|
1423
|
-
...
|
|
1432
|
+
r[F]?.({ message: `${F} action triggered` });
|
|
1433
|
+
const E = {
|
|
1434
|
+
...W(m.value),
|
|
1435
|
+
...b.value
|
|
1424
1436
|
};
|
|
1425
|
-
r.createPageBeforeSubmit?.(
|
|
1426
|
-
const
|
|
1437
|
+
r.createPageBeforeSubmit?.(E);
|
|
1438
|
+
const g = await Ht(
|
|
1427
1439
|
c.className,
|
|
1428
|
-
|
|
1429
|
-
|
|
1440
|
+
E,
|
|
1441
|
+
h
|
|
1430
1442
|
);
|
|
1431
|
-
r[`${
|
|
1443
|
+
r[`${F}Success` || ""]?.({
|
|
1432
1444
|
message: "Workflow created successfully",
|
|
1433
1445
|
workflowId: c.workflowId,
|
|
1434
|
-
res:
|
|
1446
|
+
res: g
|
|
1435
1447
|
});
|
|
1436
|
-
const
|
|
1437
|
-
await Promise.all(
|
|
1438
|
-
`Your grading request has been submitted, ID is ${
|
|
1439
|
-
), a.push({ name: "Details", params: { workflowId:
|
|
1448
|
+
const A = i.value?.map((U) => U?.submit ? U.submit(g.toString()) : Promise.resolve()) || [];
|
|
1449
|
+
await Promise.all(A), C.value = !1, l?.appContext.config.globalProperties.$notification.success(
|
|
1450
|
+
`Your grading request has been submitted, ID is ${g.toString()}.`
|
|
1451
|
+
), a.push({ name: "Details", params: { workflowId: g.toString() } });
|
|
1440
1452
|
} catch {
|
|
1441
1453
|
l?.appContext.config.globalProperties.$notification.error(
|
|
1442
1454
|
"Failed to submit your grading request"
|
|
1443
|
-
),
|
|
1455
|
+
), C.value = !1;
|
|
1444
1456
|
}
|
|
1445
1457
|
break;
|
|
1446
|
-
case
|
|
1458
|
+
case te.Link:
|
|
1447
1459
|
try {
|
|
1448
|
-
await r[
|
|
1449
|
-
name:
|
|
1460
|
+
await r[v.eventName || ""]?.(m.value, V), a.push({
|
|
1461
|
+
name: f,
|
|
1450
1462
|
params: { className: c.className }
|
|
1451
|
-
}), await r[`${
|
|
1452
|
-
message: `Router to ${
|
|
1463
|
+
}), await r[`${v.eventName || ""}Success`]?.({
|
|
1464
|
+
message: `Router to ${f} pushed`
|
|
1453
1465
|
});
|
|
1454
|
-
} catch (
|
|
1455
|
-
console.error("Error in link action trigger:",
|
|
1466
|
+
} catch (E) {
|
|
1467
|
+
console.error("Error in link action trigger:", E);
|
|
1456
1468
|
}
|
|
1457
1469
|
break;
|
|
1458
1470
|
default:
|
|
1459
|
-
console.warn("Unknown action type:",
|
|
1471
|
+
console.warn("Unknown action type:", I);
|
|
1460
1472
|
}
|
|
1461
1473
|
}
|
|
1462
|
-
const
|
|
1474
|
+
const re = [
|
|
1463
1475
|
"jobScpope",
|
|
1464
1476
|
"currentWorkdayId",
|
|
1465
1477
|
"originalGrade",
|
|
1466
1478
|
"jobTitlePrevious",
|
|
1467
1479
|
"jobAttachmentPrevious",
|
|
1468
1480
|
"positionId"
|
|
1469
|
-
],
|
|
1470
|
-
function
|
|
1471
|
-
r[
|
|
1481
|
+
], V = _(re);
|
|
1482
|
+
function $(v, I) {
|
|
1483
|
+
r[v]?.({ fieldValue: I, hiddenFields: V, formData: m }), s.value && (d.value = y(s.value.fields));
|
|
1472
1484
|
}
|
|
1473
|
-
const
|
|
1474
|
-
return Object.defineProperty(
|
|
1485
|
+
const H = z(() => Ke(d.value)), M = { bpmStore: n, svrStore: e, router: a, triggers: r, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: b, genField: y, genDependentField: k, reversedActions: p, _data: m, loading: C, escapeHtml: ee, sanitizeValue: oe, sanitizeFormData: W, getApproverEmail: ie, clickHandler: le, newHiddenFields: re, hiddenFields: V, changeHandler: $, groupedFields: H, DataWidgets: Ie, ActionButton: Pe, TopBar: Re };
|
|
1486
|
+
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
1475
1487
|
}
|
|
1476
1488
|
}), fn = { class: "page-container" }, pn = { class: "page-body" }, mn = { class: "form-card" }, gn = { class: "form-fields-vertical" }, _n = { class: "form-fields" }, vn = {
|
|
1477
1489
|
key: 0,
|
|
1478
1490
|
class: "form-content"
|
|
1479
|
-
}, hn = { class: "page-footer" }, bn = { class: "action-container" },
|
|
1480
|
-
function
|
|
1481
|
-
const i =
|
|
1482
|
-
return u(),
|
|
1483
|
-
|
|
1491
|
+
}, hn = { class: "page-footer" }, bn = { class: "action-container" }, wn = { class: "action-buttons" };
|
|
1492
|
+
function yn(t, o, n, e, a, r) {
|
|
1493
|
+
const i = T("a-card"), l = T("a-spin");
|
|
1494
|
+
return u(), w("div", fn, [
|
|
1495
|
+
P(e.TopBar, {
|
|
1484
1496
|
title: e.pageData.banner.title,
|
|
1485
1497
|
subTitle: e.pageData.banner.subTitle,
|
|
1486
1498
|
email: e.getApproverEmail()
|
|
1487
1499
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1488
|
-
|
|
1489
|
-
|
|
1500
|
+
S("div", pn, [
|
|
1501
|
+
P(l, {
|
|
1490
1502
|
loading: e.loading,
|
|
1491
1503
|
class: "form-container"
|
|
1492
1504
|
}, {
|
|
1493
|
-
default:
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
(u(!0),
|
|
1505
|
+
default: x(() => [
|
|
1506
|
+
S("div", mn, [
|
|
1507
|
+
S("div", gn, [
|
|
1508
|
+
(u(!0), w(j, null, G(e.groupedFields, (c) => (u(), L(i, {
|
|
1497
1509
|
key: c.name,
|
|
1498
1510
|
title: c.name,
|
|
1499
1511
|
style: { "margin-bottom": "24px" }
|
|
1500
1512
|
}, {
|
|
1501
|
-
default:
|
|
1502
|
-
|
|
1503
|
-
(u(!0),
|
|
1513
|
+
default: x(() => [
|
|
1514
|
+
S("div", _n, [
|
|
1515
|
+
(u(!0), w(j, null, G(c.fields, (s) => (u(), L(e.DataWidgets, {
|
|
1504
1516
|
key: s.fieldKey,
|
|
1505
1517
|
ref_for: !0,
|
|
1506
1518
|
ref: "dataWidgets",
|
|
@@ -1517,7 +1529,7 @@ function wn(t, o, n, e, a, r) {
|
|
|
1517
1529
|
_: 2
|
|
1518
1530
|
}, 1032, ["title"]))), 128))
|
|
1519
1531
|
]),
|
|
1520
|
-
t.$slots.content ? (u(),
|
|
1532
|
+
t.$slots.content ? (u(), w("div", vn, [
|
|
1521
1533
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
1522
1534
|
])) : se("", !0)
|
|
1523
1535
|
])
|
|
@@ -1525,11 +1537,11 @@ function wn(t, o, n, e, a, r) {
|
|
|
1525
1537
|
_: 3
|
|
1526
1538
|
}, 8, ["loading"])
|
|
1527
1539
|
]),
|
|
1528
|
-
|
|
1529
|
-
|
|
1540
|
+
S("div", hn, [
|
|
1541
|
+
S("div", bn, [
|
|
1530
1542
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
1531
|
-
|
|
1532
|
-
(u(!0),
|
|
1543
|
+
S("div", wn, [
|
|
1544
|
+
(u(!0), w(j, null, G(e.reversedActions, (c) => (u(), L(e.ActionButton, {
|
|
1533
1545
|
key: c.title,
|
|
1534
1546
|
loading: e.loading,
|
|
1535
1547
|
config: c,
|
|
@@ -1541,7 +1553,7 @@ function wn(t, o, n, e, a, r) {
|
|
|
1541
1553
|
])
|
|
1542
1554
|
]);
|
|
1543
1555
|
}
|
|
1544
|
-
const kn = /* @__PURE__ */
|
|
1556
|
+
const kn = /* @__PURE__ */ X(un, [["render", yn], ["__scopeId", "data-v-89686fdd"], ["__file", "CreateView.vue"]]), Sn = /* @__PURE__ */ Y({
|
|
1545
1557
|
__name: "UpdateView",
|
|
1546
1558
|
props: {
|
|
1547
1559
|
className: {},
|
|
@@ -1549,7 +1561,7 @@ const kn = /* @__PURE__ */ Z(un, [["render", wn], ["__scopeId", "data-v-31413447
|
|
|
1549
1561
|
},
|
|
1550
1562
|
setup(t, { expose: o }) {
|
|
1551
1563
|
o();
|
|
1552
|
-
const n = ve(), e = Ee(), a = Ne(), r = Fe(), i = Ae("dataWidgets"), l = me(), c = t, s =
|
|
1564
|
+
const n = ve(), e = Ee(), a = Ne(), r = Fe(), i = Ae("dataWidgets"), l = me(), c = t, s = _({
|
|
1553
1565
|
pageType: "",
|
|
1554
1566
|
fields: {},
|
|
1555
1567
|
globalValidations: [],
|
|
@@ -1564,105 +1576,105 @@ const kn = /* @__PURE__ */ Z(un, [["render", wn], ["__scopeId", "data-v-31413447
|
|
|
1564
1576
|
workFlowReason: "",
|
|
1565
1577
|
workflowId: ""
|
|
1566
1578
|
}
|
|
1567
|
-
}), d =
|
|
1568
|
-
function
|
|
1569
|
-
return
|
|
1570
|
-
fieldKey:
|
|
1571
|
-
...
|
|
1572
|
-
})).filter((
|
|
1579
|
+
}), d = _([]), b = _({});
|
|
1580
|
+
function y(V) {
|
|
1581
|
+
return V ? Object.entries(V).map(([H, M]) => ({
|
|
1582
|
+
fieldKey: H,
|
|
1583
|
+
...M
|
|
1584
|
+
})).filter((H) => H.widget && H.widget.widget !== "Hidden").filter((H) => !W.value.includes(H.fieldKey)) : [];
|
|
1573
1585
|
}
|
|
1574
|
-
function
|
|
1575
|
-
return
|
|
1586
|
+
function k(V) {
|
|
1587
|
+
return V ? Object.entries(V).filter(([H, M]) => M.dependent).reduce((H, [M, v]) => (H[M] = v.dependent, H), {}) : [];
|
|
1576
1588
|
}
|
|
1577
|
-
const
|
|
1589
|
+
const p = z(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = _({}), C = _(!1);
|
|
1578
1590
|
ge(async () => {
|
|
1579
|
-
|
|
1580
|
-
const
|
|
1581
|
-
s.value = await
|
|
1582
|
-
const
|
|
1583
|
-
s.value.actions = s.value.actions?.filter((
|
|
1584
|
-
const
|
|
1585
|
-
return
|
|
1591
|
+
C.value = !0;
|
|
1592
|
+
const V = new Ue().setPageActionType(he.Update).setClassName(c.className).setStore({ svrStore: a, bpmStore: r }).setWorkflowId(c.workflowId).build();
|
|
1593
|
+
s.value = await V.getPageData();
|
|
1594
|
+
const $ = await V.getBtnList(), H = await V.getFiles();
|
|
1595
|
+
s.value.actions = s.value.actions?.filter((v) => {
|
|
1596
|
+
const I = $.find((h) => h.button === v.title);
|
|
1597
|
+
return I ? I.isShow : !0;
|
|
1586
1598
|
});
|
|
1587
|
-
const
|
|
1588
|
-
e.Test?.({ fieldValue:
|
|
1589
|
-
for (const
|
|
1590
|
-
if (s.value.fields[
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1599
|
+
const M = s.value.fields.requestType.modelValue;
|
|
1600
|
+
e.Test?.({ fieldValue: M, hiddenFields: W, formData: m }), d.value = y(s.value.fields), b.value = k(s.value.fields);
|
|
1601
|
+
for (const v in s.value.fields) {
|
|
1602
|
+
if (s.value.fields[v].widget?.widget === "File") {
|
|
1603
|
+
const I = d.value.find((h) => h.fieldKey === v);
|
|
1604
|
+
I && I.widget && (I.widget.files = H[v] ?? [], I.widget.removeFile = (h) => V.removeFile(h));
|
|
1593
1605
|
}
|
|
1594
|
-
m.value[
|
|
1606
|
+
m.value[v] = s.value.fields[v].modelValue;
|
|
1595
1607
|
}
|
|
1596
|
-
|
|
1608
|
+
C.value = !1;
|
|
1597
1609
|
});
|
|
1598
1610
|
function ee() {
|
|
1599
1611
|
return a()?.userInfo?.email_address ?? "";
|
|
1600
1612
|
}
|
|
1601
|
-
async function
|
|
1602
|
-
switch (
|
|
1603
|
-
case
|
|
1604
|
-
let
|
|
1605
|
-
if (i.value?.forEach((
|
|
1606
|
-
|
|
1607
|
-
}),
|
|
1613
|
+
async function oe(V, $, H, M, v) {
|
|
1614
|
+
switch ($) {
|
|
1615
|
+
case te.Submit:
|
|
1616
|
+
let I = !0;
|
|
1617
|
+
if (i.value?.forEach((h) => {
|
|
1618
|
+
h?.validate && (h.validate() || (I = !1));
|
|
1619
|
+
}), !I) {
|
|
1608
1620
|
l?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1609
1621
|
return;
|
|
1610
1622
|
}
|
|
1611
|
-
|
|
1623
|
+
C.value = !0;
|
|
1612
1624
|
try {
|
|
1613
|
-
const
|
|
1614
|
-
e.updatePageBeforeSubmit?.(
|
|
1615
|
-
const
|
|
1616
|
-
await Promise.all(
|
|
1625
|
+
const h = { ...m.value, ...b.value };
|
|
1626
|
+
e.updatePageBeforeSubmit?.(h, r().employeeInfo);
|
|
1627
|
+
const f = await Ot(c.className, c.workflowId, h, H), F = i.value?.map((B) => B?.submit ? B.submit(f.toString()) : Promise.resolve()) || [];
|
|
1628
|
+
await Promise.all(F), C.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${f.toString()}.`);
|
|
1617
1629
|
} catch {
|
|
1618
|
-
l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"),
|
|
1630
|
+
l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
|
|
1619
1631
|
}
|
|
1620
1632
|
break;
|
|
1621
|
-
case
|
|
1633
|
+
case te.Link:
|
|
1622
1634
|
try {
|
|
1623
|
-
await e[
|
|
1635
|
+
await e[V.eventName || ""]?.(m.value, W), n.push({ name: M, params: { className: c.className } });
|
|
1624
1636
|
} catch {
|
|
1625
1637
|
}
|
|
1626
1638
|
break;
|
|
1627
1639
|
default:
|
|
1628
|
-
console.warn("Unknown action type:",
|
|
1640
|
+
console.warn("Unknown action type:", $);
|
|
1629
1641
|
}
|
|
1630
1642
|
}
|
|
1631
|
-
const
|
|
1632
|
-
function
|
|
1633
|
-
e[
|
|
1643
|
+
const W = _([]);
|
|
1644
|
+
function ie(V, $) {
|
|
1645
|
+
e[V]?.({ fieldValue: $, hiddenFields: W, formData: m }), s.value && (d.value = y(s.value.fields));
|
|
1634
1646
|
}
|
|
1635
|
-
const
|
|
1636
|
-
return Object.defineProperty(
|
|
1647
|
+
const le = z(() => Ke(d.value)), re = { router: n, triggers: e, svrStore: a, bpmStore: r, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: b, genField: y, genDependentField: k, reversedActions: p, _data: m, loading: C, getApproverEmail: ee, clickHandler: oe, hiddenFields: W, changeHandler: ie, groupedFields: le, DataWidgets: Ie, ActionButton: Pe, TopBar: Re };
|
|
1648
|
+
return Object.defineProperty(re, "__isScriptSetup", { enumerable: !1, value: !0 }), re;
|
|
1637
1649
|
}
|
|
1638
1650
|
}), Cn = { class: "page-container" }, xn = { class: "page-body" }, Tn = { class: "form-card" }, Vn = { class: "form-fields-vertical" }, An = { class: "form-fields" }, In = {
|
|
1639
1651
|
key: 0,
|
|
1640
1652
|
class: "form-content"
|
|
1641
1653
|
}, Pn = { class: "page-footer" }, Fn = { class: "action-container" }, Nn = { class: "action-buttons" };
|
|
1642
|
-
function
|
|
1643
|
-
const i =
|
|
1644
|
-
return u(),
|
|
1645
|
-
|
|
1654
|
+
function Rn(t, o, n, e, a, r) {
|
|
1655
|
+
const i = T("a-card"), l = T("a-spin");
|
|
1656
|
+
return u(), w("div", Cn, [
|
|
1657
|
+
P(e.TopBar, {
|
|
1646
1658
|
title: e.pageData.banner.title,
|
|
1647
1659
|
subTitle: e.pageData.banner.subTitle,
|
|
1648
1660
|
email: e.getApproverEmail()
|
|
1649
1661
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1650
|
-
|
|
1651
|
-
|
|
1662
|
+
S("div", xn, [
|
|
1663
|
+
P(l, {
|
|
1652
1664
|
loading: e.loading,
|
|
1653
1665
|
class: "form-container"
|
|
1654
1666
|
}, {
|
|
1655
|
-
default:
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
(u(!0),
|
|
1667
|
+
default: x(() => [
|
|
1668
|
+
S("div", Tn, [
|
|
1669
|
+
S("div", Vn, [
|
|
1670
|
+
(u(!0), w(j, null, G(e.groupedFields, (c) => (u(), L(i, {
|
|
1659
1671
|
key: c.name,
|
|
1660
1672
|
title: c.name,
|
|
1661
1673
|
style: { "margin-bottom": "24px" }
|
|
1662
1674
|
}, {
|
|
1663
|
-
default:
|
|
1664
|
-
|
|
1665
|
-
(u(!0),
|
|
1675
|
+
default: x(() => [
|
|
1676
|
+
S("div", An, [
|
|
1677
|
+
(u(!0), w(j, null, G(c.fields, (s) => (u(), L(e.DataWidgets, {
|
|
1666
1678
|
key: s.fieldKey,
|
|
1667
1679
|
ref_for: !0,
|
|
1668
1680
|
ref: "dataWidgets",
|
|
@@ -1679,7 +1691,7 @@ function Un(t, o, n, e, a, r) {
|
|
|
1679
1691
|
_: 2
|
|
1680
1692
|
}, 1032, ["title"]))), 128))
|
|
1681
1693
|
]),
|
|
1682
|
-
t.$slots.content ? (u(),
|
|
1694
|
+
t.$slots.content ? (u(), w("div", In, [
|
|
1683
1695
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
1684
1696
|
])) : se("", !0)
|
|
1685
1697
|
])
|
|
@@ -1687,11 +1699,11 @@ function Un(t, o, n, e, a, r) {
|
|
|
1687
1699
|
_: 3
|
|
1688
1700
|
}, 8, ["loading"])
|
|
1689
1701
|
]),
|
|
1690
|
-
|
|
1691
|
-
|
|
1702
|
+
S("div", Pn, [
|
|
1703
|
+
S("div", Fn, [
|
|
1692
1704
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
1693
|
-
|
|
1694
|
-
(u(!0),
|
|
1705
|
+
S("div", Nn, [
|
|
1706
|
+
(u(!0), w(j, null, G(e.reversedActions, (c) => (u(), L(e.ActionButton, {
|
|
1695
1707
|
key: c.title,
|
|
1696
1708
|
loading: e.loading,
|
|
1697
1709
|
config: c,
|
|
@@ -1703,11 +1715,11 @@ function Un(t, o, n, e, a, r) {
|
|
|
1703
1715
|
])
|
|
1704
1716
|
]);
|
|
1705
1717
|
}
|
|
1706
|
-
const
|
|
1707
|
-
function
|
|
1718
|
+
const Un = /* @__PURE__ */ X(Sn, [["render", Rn], ["__scopeId", "data-v-605f261e"], ["__file", "UpdateView.vue"]]), gt = Symbol("library-custom-comp");
|
|
1719
|
+
function Dn() {
|
|
1708
1720
|
return be(gt, null);
|
|
1709
1721
|
}
|
|
1710
|
-
const
|
|
1722
|
+
const Ln = /* @__PURE__ */ Y({
|
|
1711
1723
|
__name: "DetailView",
|
|
1712
1724
|
props: {
|
|
1713
1725
|
className: {},
|
|
@@ -1715,9 +1727,9 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1715
1727
|
},
|
|
1716
1728
|
setup(t, { expose: o }) {
|
|
1717
1729
|
o();
|
|
1718
|
-
const n = Ne(), e = Fe(), a = Ee(), r = ve(), i =
|
|
1730
|
+
const n = Ne(), e = Fe(), a = Ee(), r = ve(), i = Dn(), l = me(), c = t;
|
|
1719
1731
|
let s;
|
|
1720
|
-
const d =
|
|
1732
|
+
const d = _({
|
|
1721
1733
|
pageType: "",
|
|
1722
1734
|
fields: {},
|
|
1723
1735
|
globalValidations: [],
|
|
@@ -1732,34 +1744,34 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1732
1744
|
workFlowReason: "",
|
|
1733
1745
|
workflowId: ""
|
|
1734
1746
|
}
|
|
1735
|
-
}),
|
|
1736
|
-
function
|
|
1737
|
-
return N ? Object.entries(N).map(([
|
|
1738
|
-
typeof
|
|
1739
|
-
const
|
|
1740
|
-
fieldKey:
|
|
1741
|
-
...
|
|
1747
|
+
}), b = _([]), y = Ae("dataWidgets");
|
|
1748
|
+
function k(N) {
|
|
1749
|
+
return N ? Object.entries(N).map(([Q, R]) => {
|
|
1750
|
+
typeof R.modelValue == "boolean" ? R.fieldValue = R.modelValue ? "Yes" : "No" : R.fieldValue = R.modelValue;
|
|
1751
|
+
const K = {
|
|
1752
|
+
fieldKey: Q,
|
|
1753
|
+
...R
|
|
1742
1754
|
};
|
|
1743
|
-
return
|
|
1755
|
+
return K.widget?.readonly || K.validations?.some(
|
|
1744
1756
|
(pe) => pe.ruleName === "Required"
|
|
1745
|
-
) ?
|
|
1746
|
-
...
|
|
1757
|
+
) ? K : {
|
|
1758
|
+
...K,
|
|
1747
1759
|
validations: [
|
|
1748
|
-
...
|
|
1760
|
+
...K.validations || [],
|
|
1749
1761
|
{
|
|
1750
1762
|
ruleName: "Required",
|
|
1751
1763
|
ruleParameter: "",
|
|
1752
|
-
errorMessage: `${fe(
|
|
1764
|
+
errorMessage: `${fe(K.widget?.title) || K.fieldKey} is required`
|
|
1753
1765
|
}
|
|
1754
1766
|
]
|
|
1755
1767
|
};
|
|
1756
|
-
}).filter((
|
|
1768
|
+
}).filter((Q) => Q.widget && Q.widget.widget !== "Hidden").filter((Q) => !$.value.includes(Q.fieldKey)) : [];
|
|
1757
1769
|
}
|
|
1758
|
-
const
|
|
1759
|
-
const
|
|
1760
|
-
return N.map((
|
|
1761
|
-
const
|
|
1762
|
-
id:
|
|
1770
|
+
const p = z(() => Ke(b.value)), m = z(() => d.value?.actions ? [...d.value.actions].reverse() : []), C = _(!0), ee = (N, O) => {
|
|
1771
|
+
const Q = N.findIndex((R) => R.isCurrent);
|
|
1772
|
+
return N.map((R, K) => {
|
|
1773
|
+
const D = {
|
|
1774
|
+
id: R.id,
|
|
1763
1775
|
title: "",
|
|
1764
1776
|
proxy: "",
|
|
1765
1777
|
sub: "",
|
|
@@ -1767,124 +1779,124 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1767
1779
|
status: 1,
|
|
1768
1780
|
time: ""
|
|
1769
1781
|
};
|
|
1770
|
-
|
|
1771
|
-
const pe =
|
|
1772
|
-
if (pe &&
|
|
1773
|
-
|
|
1782
|
+
D.title = R.workflowProcessApprovers[0]?.name;
|
|
1783
|
+
const pe = R.workflowProcessApprovers[R.workflowProcessApprovers.length - 1], Ce = R.workflowHistorys[R.workflowHistorys.length - 1], ye = Ce?.workflowHistoryApprovers[Ce?.workflowHistoryApprovers?.length - 1];
|
|
1784
|
+
if (pe && ye && pe?.email?.toLowerCase() !== ye?.approverEmail?.toLowerCase() && (D.title = `${ye.name}`, D.proxy = `Proxy: ${pe.name}`), R.sort > 1 ? D.sub = "Approver Role: " + R.nodeName.replace("Submit", "").replace("Approve", "") : D.sub = "Submit Application", R.isCurrent && O !== -1)
|
|
1785
|
+
D.desc = "In Approval", D.status = 1;
|
|
1774
1786
|
else {
|
|
1775
|
-
const ne =
|
|
1787
|
+
const ne = R.workflowHistorys[R.workflowHistorys.length - 1];
|
|
1776
1788
|
if (ne && ne.status === 100)
|
|
1777
|
-
|
|
1789
|
+
D.time = Te(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 2, D.desc = "approve success!";
|
|
1778
1790
|
else if (ne && ne.status === 999)
|
|
1779
|
-
|
|
1791
|
+
D.time = Te(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 0, D.desc = "approve reject!";
|
|
1780
1792
|
else if (ne)
|
|
1781
|
-
if (
|
|
1782
|
-
|
|
1793
|
+
if (D.time = Te(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.sort === 1)
|
|
1794
|
+
D.status = 2, D.desc = "";
|
|
1783
1795
|
else {
|
|
1784
1796
|
const xe = ne.workflowHistoryApprovers[0];
|
|
1785
|
-
|
|
1797
|
+
D.status = 3, D.desc = xe?.reason ? `Rejected reason: ${xe.reason}` : "Rejected";
|
|
1786
1798
|
}
|
|
1787
|
-
else
|
|
1799
|
+
else K < Q || Q === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
|
|
1788
1800
|
ne && ne.status;
|
|
1789
1801
|
}
|
|
1790
|
-
return
|
|
1802
|
+
return D;
|
|
1791
1803
|
});
|
|
1792
|
-
},
|
|
1793
|
-
async function
|
|
1804
|
+
}, oe = _([]), W = _(!1), ie = _(!1), le = _(!1), re = _(!1);
|
|
1805
|
+
async function V() {
|
|
1794
1806
|
const N = await s.getBtnList();
|
|
1795
|
-
d.value.actions = d.value.actions?.filter((
|
|
1796
|
-
const
|
|
1797
|
-
return
|
|
1798
|
-
}),
|
|
1807
|
+
d.value.actions = d.value.actions?.filter((O) => {
|
|
1808
|
+
const Q = N.find((R) => R.button === O.title);
|
|
1809
|
+
return Q ? Q.isShow : !0;
|
|
1810
|
+
}), W.value = N.find((O) => O.button === "IsGlobal")?.isShow ?? !1, ie.value = N.find((O) => O.button === "AssignButton")?.isShow ?? !1, le.value = N.find((O) => O.button === "AssignList")?.isShow ?? !1, re.value = N.find((O) => O.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1799
1811
|
}
|
|
1800
|
-
const
|
|
1801
|
-
async function
|
|
1802
|
-
|
|
1812
|
+
const $ = _([]);
|
|
1813
|
+
async function H() {
|
|
1814
|
+
C.value = !0, s = new Ue().setPageActionType(he.Details).setClassName(c.className).setStore({ svrStore: n, bpmStore: e }).setWorkflowId(c.workflowId).build(), d.value = await s.getPageData();
|
|
1803
1815
|
const N = await s.getFiles();
|
|
1804
|
-
|
|
1805
|
-
const
|
|
1806
|
-
a.Test?.({ fieldValue:
|
|
1807
|
-
for (const
|
|
1808
|
-
if (d.value.fields[
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1816
|
+
B.value = await s.getApprovers(), f.value = await s.getCommentsHistory(), E.value = await s.getAssociator(), await V(), a.detailPageLoaded?.(d, e().employeeInfo);
|
|
1817
|
+
const O = d.value.fields.requestType.modelValue;
|
|
1818
|
+
a.Test?.({ fieldValue: O, hiddenFields: $ }), b.value = k(d.value.fields);
|
|
1819
|
+
for (const R in d.value.fields)
|
|
1820
|
+
if (d.value.fields[R].widget?.widget === "File") {
|
|
1821
|
+
const K = b.value.find((D) => D.fieldKey === R);
|
|
1822
|
+
K && K.widget && (K.widget.files = N[R] ?? []);
|
|
1811
1823
|
}
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1824
|
+
const Q = await s.getProcess();
|
|
1825
|
+
oe.value = ee(Q, 0), C.value = !1;
|
|
1814
1826
|
}
|
|
1815
|
-
ge(
|
|
1816
|
-
async function
|
|
1817
|
-
return a[N]?.(
|
|
1827
|
+
ge(H);
|
|
1828
|
+
async function M(N, O) {
|
|
1829
|
+
return a[N]?.(O);
|
|
1818
1830
|
}
|
|
1819
|
-
function
|
|
1831
|
+
function v() {
|
|
1820
1832
|
return n()?.userInfo?.email_address ?? "";
|
|
1821
1833
|
}
|
|
1822
|
-
async function
|
|
1834
|
+
async function I(N, O, Q, R, K) {
|
|
1823
1835
|
try {
|
|
1824
|
-
switch (
|
|
1825
|
-
case
|
|
1826
|
-
let
|
|
1827
|
-
if (
|
|
1828
|
-
_e?.validate && !_e.validate() && (
|
|
1829
|
-
}), !
|
|
1836
|
+
switch (O) {
|
|
1837
|
+
case te.Submit:
|
|
1838
|
+
let D = !0;
|
|
1839
|
+
if (y.value?.forEach((_e) => {
|
|
1840
|
+
_e?.validate && !_e.validate() && (D = !1);
|
|
1841
|
+
}), !D) {
|
|
1830
1842
|
l?.appContext.config.globalProperties.$message.error(
|
|
1831
1843
|
"Please complete all required fields before submit."
|
|
1832
1844
|
);
|
|
1833
1845
|
return;
|
|
1834
1846
|
}
|
|
1835
|
-
const { reason: pe, ifGlobal: Ce } = await
|
|
1836
|
-
isGlobal:
|
|
1847
|
+
const { reason: pe, ifGlobal: Ce } = await M(K, {
|
|
1848
|
+
isGlobal: W.value
|
|
1837
1849
|
});
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1850
|
+
C.value = !0;
|
|
1851
|
+
const ye = b.value.find((_e) => _e.fieldKey === "approvedGrade")?.modelValue, ne = K === "Approve" ? "100" : "-1", xe = await Kt(
|
|
1840
1852
|
c.className,
|
|
1841
1853
|
c.workflowId,
|
|
1842
|
-
|
|
1854
|
+
v(),
|
|
1843
1855
|
pe,
|
|
1844
|
-
|
|
1856
|
+
Q,
|
|
1845
1857
|
ne,
|
|
1846
1858
|
Ce,
|
|
1847
1859
|
{
|
|
1848
|
-
approvedGrade:
|
|
1860
|
+
approvedGrade: ye
|
|
1849
1861
|
}
|
|
1850
1862
|
);
|
|
1851
|
-
await
|
|
1863
|
+
await M(`${K}Success`, {
|
|
1852
1864
|
workflowId: c.workflowId,
|
|
1853
1865
|
res: xe
|
|
1854
|
-
}),
|
|
1855
|
-
const _t =
|
|
1866
|
+
}), C.value = !1;
|
|
1867
|
+
const _t = K === "Approve" ? `Request ID ${c.workflowId} has been approved.` : `Request ID ${c.workflowId} has been rejected.`;
|
|
1856
1868
|
l?.appContext.config.globalProperties.$notification.success(
|
|
1857
1869
|
_t
|
|
1858
|
-
),
|
|
1870
|
+
), H();
|
|
1859
1871
|
break;
|
|
1860
|
-
case
|
|
1872
|
+
case te.Link:
|
|
1861
1873
|
try {
|
|
1862
1874
|
await a[N.eventName || ""]?.(), r.push({
|
|
1863
|
-
name:
|
|
1875
|
+
name: R,
|
|
1864
1876
|
params: { className: c.className, workflowId: c.workflowId }
|
|
1865
1877
|
});
|
|
1866
1878
|
} catch (_e) {
|
|
1867
1879
|
console.error("Error in link action trigger:", _e);
|
|
1868
1880
|
}
|
|
1869
1881
|
break;
|
|
1870
|
-
case
|
|
1882
|
+
case te.Button:
|
|
1871
1883
|
await a[N.eventName || ""]?.({
|
|
1872
|
-
approvers:
|
|
1873
|
-
associators:
|
|
1874
|
-
isShowAssignSelect:
|
|
1875
|
-
isShowAssignList:
|
|
1876
|
-
assignCallback:
|
|
1877
|
-
deleteAssociatorCallback:
|
|
1884
|
+
approvers: B,
|
|
1885
|
+
associators: E,
|
|
1886
|
+
isShowAssignSelect: ie,
|
|
1887
|
+
isShowAssignList: le,
|
|
1888
|
+
assignCallback: g,
|
|
1889
|
+
deleteAssociatorCallback: U
|
|
1878
1890
|
});
|
|
1879
1891
|
break;
|
|
1880
1892
|
default:
|
|
1881
|
-
console.warn("Unknown action type:",
|
|
1893
|
+
console.warn("Unknown action type:", O);
|
|
1882
1894
|
}
|
|
1883
1895
|
} catch {
|
|
1884
1896
|
}
|
|
1885
1897
|
}
|
|
1886
|
-
const
|
|
1887
|
-
async function
|
|
1898
|
+
const h = _(""), f = _([]), F = _(""), B = _([]), E = _([]);
|
|
1899
|
+
async function g(N) {
|
|
1888
1900
|
if (!N) {
|
|
1889
1901
|
l?.appContext.config.globalProperties.$message.error(
|
|
1890
1902
|
"Please select an approver"
|
|
@@ -1896,11 +1908,11 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1896
1908
|
"Do you want to assign the selected approver?"
|
|
1897
1909
|
);
|
|
1898
1910
|
try {
|
|
1899
|
-
await s.assignApprover(N),
|
|
1911
|
+
await s.assignApprover(N), E.value = await s.getAssociator(), V(), l?.appContext.config.globalProperties.$notification.success(
|
|
1900
1912
|
"Assign Approver clicked!"
|
|
1901
1913
|
);
|
|
1902
|
-
} catch (
|
|
1903
|
-
if (
|
|
1914
|
+
} catch (O) {
|
|
1915
|
+
if (O.status === 409) {
|
|
1904
1916
|
l?.appContext.config.globalProperties.$notification.error(
|
|
1905
1917
|
"This user is already an associator"
|
|
1906
1918
|
);
|
|
@@ -1911,20 +1923,20 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1911
1923
|
);
|
|
1912
1924
|
}
|
|
1913
1925
|
}
|
|
1914
|
-
async function A(N,
|
|
1915
|
-
const { Modal:
|
|
1916
|
-
return new Promise((
|
|
1917
|
-
|
|
1926
|
+
async function A(N, O) {
|
|
1927
|
+
const { Modal: Q } = await import("@arco-design/web-vue");
|
|
1928
|
+
return new Promise((R, K) => {
|
|
1929
|
+
Q.confirm({
|
|
1918
1930
|
title: N,
|
|
1919
|
-
content:
|
|
1931
|
+
content: O,
|
|
1920
1932
|
okText: "OK",
|
|
1921
1933
|
cancelText: "Cancel",
|
|
1922
|
-
onOk: () =>
|
|
1923
|
-
onCancel: () =>
|
|
1934
|
+
onOk: () => R(!0),
|
|
1935
|
+
onCancel: () => K()
|
|
1924
1936
|
});
|
|
1925
1937
|
});
|
|
1926
1938
|
}
|
|
1927
|
-
async function
|
|
1939
|
+
async function U(N) {
|
|
1928
1940
|
try {
|
|
1929
1941
|
await A(
|
|
1930
1942
|
"Confirm Delete Associator",
|
|
@@ -1934,7 +1946,7 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1934
1946
|
return;
|
|
1935
1947
|
}
|
|
1936
1948
|
try {
|
|
1937
|
-
await s.deleteAssociator(N.toString()),
|
|
1949
|
+
await s.deleteAssociator(N.toString()), E.value = await s.getAssociator(), l?.appContext.config.globalProperties.$notification.success(
|
|
1938
1950
|
"Associator deleted successfully!"
|
|
1939
1951
|
);
|
|
1940
1952
|
} catch {
|
|
@@ -1944,13 +1956,13 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1944
1956
|
}
|
|
1945
1957
|
}
|
|
1946
1958
|
async function de() {
|
|
1947
|
-
if (!
|
|
1959
|
+
if (!h.value.trim()) {
|
|
1948
1960
|
l?.appContext.config.globalProperties.$message.error(
|
|
1949
1961
|
"Comment cannot be empty"
|
|
1950
1962
|
);
|
|
1951
1963
|
return;
|
|
1952
1964
|
}
|
|
1953
|
-
await s.addComments(
|
|
1965
|
+
await s.addComments(h.value.trim()), h.value = "", f.value = await s.getCommentsHistory(), l?.appContext.config.globalProperties.$notification.success(
|
|
1954
1966
|
"Add Comment clicked!"
|
|
1955
1967
|
);
|
|
1956
1968
|
}
|
|
@@ -1961,14 +1973,14 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1961
1973
|
return s;
|
|
1962
1974
|
}, set page(N) {
|
|
1963
1975
|
s = N;
|
|
1964
|
-
}, pageData: d, _fields:
|
|
1976
|
+
}, pageData: d, _fields: b, dataWidgetsRefs: y, genField: k, groupedFields: p, reversedActions: m, loading: C, mapWorkflowSteps: ee, steps: oe, isGlobal: W, isShowAssignSelect: ie, isShowAssignList: le, isShowCommentTextArea: re, reloadButtonList: V, hiddenFields: $, load: H, triggerFn: M, getApproverEmail: v, clickHandler: I, comment: h, commentsHistory: f, selectedApprover: F, approvers: B, associators: E, onAssignApprover: g, confirmDialog: A, onDeleteAssociator: U, onAddComment: de, formatTitle: fe, ActionButton: Pe, get IconDownload() {
|
|
1965
1977
|
return Ho;
|
|
1966
|
-
}, TopBar:
|
|
1978
|
+
}, TopBar: Re, get formatDate() {
|
|
1967
1979
|
return Te;
|
|
1968
1980
|
}, ToolTip: ut, DataWidgets: Ie };
|
|
1969
1981
|
return Object.defineProperty(We, "__isScriptSetup", { enumerable: !1, value: !0 }), We;
|
|
1970
1982
|
}
|
|
1971
|
-
}),
|
|
1983
|
+
}), Bn = { class: "page-container" }, Hn = { class: "page-body" }, On = { class: "detail-card" }, $n = { class: "form-fields-vertical" }, jn = { class: "detail-fields" }, zn = { class: "detail-field" }, Mn = {
|
|
1972
1984
|
key: 0,
|
|
1973
1985
|
class: "detail-field"
|
|
1974
1986
|
}, En = { class: "field-label" }, Kn = {
|
|
@@ -1982,66 +1994,66 @@ const Dn = /* @__PURE__ */ q({
|
|
|
1982
1994
|
class: "detail-content"
|
|
1983
1995
|
}, Yn = { class: "page-footer" }, Qn = { class: "action-container" }, Jn = { class: "action-buttons" };
|
|
1984
1996
|
function Zn(t, o, n, e, a, r) {
|
|
1985
|
-
const i =
|
|
1986
|
-
|
|
1987
|
-
const s =
|
|
1988
|
-
return u(),
|
|
1989
|
-
|
|
1997
|
+
const i = T("a-link"), l = T("a-space"), c = T("a-card");
|
|
1998
|
+
T("a-option"), T("a-select");
|
|
1999
|
+
const s = T("a-button"), d = T("a-list-item"), b = T("a-list"), y = T("a-textarea"), k = T("a-spin");
|
|
2000
|
+
return u(), w("div", Bn, [
|
|
2001
|
+
P(e.TopBar, {
|
|
1990
2002
|
title: e.pageData.banner.title,
|
|
1991
2003
|
subTitle: e.pageData.banner.subTitle,
|
|
1992
2004
|
email: e.getApproverEmail()
|
|
1993
2005
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1994
|
-
|
|
1995
|
-
|
|
2006
|
+
S("div", Hn, [
|
|
2007
|
+
P(k, {
|
|
1996
2008
|
loading: e.loading,
|
|
1997
2009
|
class: "detail-container"
|
|
1998
2010
|
}, {
|
|
1999
|
-
default:
|
|
2000
|
-
|
|
2001
|
-
(u(),
|
|
2002
|
-
|
|
2003
|
-
(u(!0),
|
|
2004
|
-
key:
|
|
2005
|
-
title:
|
|
2011
|
+
default: x(() => [
|
|
2012
|
+
S("div", On, [
|
|
2013
|
+
(u(), L(je(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
|
|
2014
|
+
S("div", $n, [
|
|
2015
|
+
(u(!0), w(j, null, G(e.groupedFields, (p) => (u(), L(c, {
|
|
2016
|
+
key: p.name,
|
|
2017
|
+
title: p.name,
|
|
2006
2018
|
style: { "margin-bottom": "24px" }
|
|
2007
2019
|
}, {
|
|
2008
|
-
default:
|
|
2009
|
-
|
|
2010
|
-
(u(!0),
|
|
2020
|
+
default: x(() => [
|
|
2021
|
+
S("div", jn, [
|
|
2022
|
+
(u(!0), w(j, null, G(p.fields, (m) => (u(), w("div", {
|
|
2011
2023
|
key: m.fieldKey,
|
|
2012
2024
|
class: "detail-field-wrapper"
|
|
2013
2025
|
}, [
|
|
2014
|
-
|
|
2015
|
-
m.widget?.readonly ? (u(),
|
|
2016
|
-
|
|
2017
|
-
ae(
|
|
2018
|
-
|
|
2026
|
+
S("div", zn, [
|
|
2027
|
+
m.widget?.readonly ? (u(), w(j, { key: 1 }, [
|
|
2028
|
+
S("div", En, [
|
|
2029
|
+
ae(q(e.formatTitle(m.widget?.title)) + " ", 1),
|
|
2030
|
+
P(e.ToolTip, {
|
|
2019
2031
|
"is-visible": m.widget?.isVisible ?? !1,
|
|
2020
2032
|
"output-text": m.widget?.outputText ?? []
|
|
2021
2033
|
}, null, 8, ["is-visible", "output-text"])
|
|
2022
2034
|
]),
|
|
2023
|
-
m.widget?.widget === "File" ? (u(!0),
|
|
2035
|
+
m.widget?.widget === "File" ? (u(!0), w(j, { key: 0 }, G(m.widget.files, (C) => (u(), w("div", {
|
|
2024
2036
|
class: "field-value",
|
|
2025
|
-
key:
|
|
2037
|
+
key: C.id
|
|
2026
2038
|
}, [
|
|
2027
|
-
|
|
2028
|
-
default:
|
|
2029
|
-
ae(
|
|
2030
|
-
|
|
2031
|
-
href:
|
|
2039
|
+
P(l, null, {
|
|
2040
|
+
default: x(() => [
|
|
2041
|
+
ae(q(C.name) + " ", 1),
|
|
2042
|
+
P(i, {
|
|
2043
|
+
href: C.url,
|
|
2032
2044
|
target: "_blank"
|
|
2033
2045
|
}, {
|
|
2034
|
-
default:
|
|
2035
|
-
|
|
2046
|
+
default: x(() => [
|
|
2047
|
+
P(e.IconDownload, { style: { color: "#7A00E6" } })
|
|
2036
2048
|
]),
|
|
2037
2049
|
_: 2
|
|
2038
2050
|
}, 1032, ["href"])
|
|
2039
2051
|
]),
|
|
2040
2052
|
_: 2
|
|
2041
2053
|
}, 1024)
|
|
2042
|
-
]))), 128)) : (u(),
|
|
2043
|
-
], 64)) : (u(),
|
|
2044
|
-
|
|
2054
|
+
]))), 128)) : (u(), w("div", Kn, q(m.fieldValue), 1))
|
|
2055
|
+
], 64)) : (u(), w("div", Mn, [
|
|
2056
|
+
P(e.DataWidgets, {
|
|
2045
2057
|
ref_for: !0,
|
|
2046
2058
|
ref: "dataWidgets",
|
|
2047
2059
|
"field-key": m.fieldKey,
|
|
@@ -2049,7 +2061,7 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2049
2061
|
config: m,
|
|
2050
2062
|
"class-name": n.className,
|
|
2051
2063
|
modelValue: m.modelValue,
|
|
2052
|
-
"onUpdate:modelValue": (
|
|
2064
|
+
"onUpdate:modelValue": (C) => m.modelValue = C,
|
|
2053
2065
|
class: "form-field"
|
|
2054
2066
|
}, null, 8, ["field-key", "name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
2055
2067
|
]))
|
|
@@ -2061,18 +2073,18 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2061
2073
|
}, 1032, ["title"]))), 128)),
|
|
2062
2074
|
se("", !0),
|
|
2063
2075
|
se("", !0),
|
|
2064
|
-
e.isShowCommentTextArea ? (u(),
|
|
2065
|
-
|
|
2066
|
-
o[6] || (o[6] =
|
|
2067
|
-
|
|
2076
|
+
e.isShowCommentTextArea ? (u(), w("div", Wn, [
|
|
2077
|
+
S("div", Gn, [
|
|
2078
|
+
o[6] || (o[6] = S("div", { class: "field-label" }, "Comment", -1)),
|
|
2079
|
+
P(y, {
|
|
2068
2080
|
modelValue: e.comment,
|
|
2069
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
2081
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => e.comment = p)
|
|
2070
2082
|
}, null, 8, ["modelValue"]),
|
|
2071
|
-
|
|
2083
|
+
P(s, {
|
|
2072
2084
|
type: "primary",
|
|
2073
2085
|
onClick: e.onAddComment
|
|
2074
2086
|
}, {
|
|
2075
|
-
default:
|
|
2087
|
+
default: x(() => o[5] || (o[5] = [
|
|
2076
2088
|
ae("Add Comment", -1)
|
|
2077
2089
|
])),
|
|
2078
2090
|
_: 1,
|
|
@@ -2080,16 +2092,16 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2080
2092
|
})
|
|
2081
2093
|
])
|
|
2082
2094
|
])) : se("", !0),
|
|
2083
|
-
e.commentsHistory.length ? (u(),
|
|
2084
|
-
header:
|
|
2095
|
+
e.commentsHistory.length ? (u(), L(b, { key: 3 }, {
|
|
2096
|
+
header: x(() => o[7] || (o[7] = [
|
|
2085
2097
|
ae(" Comments History ", -1)
|
|
2086
2098
|
])),
|
|
2087
|
-
default:
|
|
2088
|
-
(u(!0),
|
|
2089
|
-
key:
|
|
2099
|
+
default: x(() => [
|
|
2100
|
+
(u(!0), w(j, null, G(e.commentsHistory, (p) => (u(), L(d, {
|
|
2101
|
+
key: p.associator
|
|
2090
2102
|
}, {
|
|
2091
|
-
default:
|
|
2092
|
-
ae(
|
|
2103
|
+
default: x(() => [
|
|
2104
|
+
ae(q(p.associator) + ": " + q(p.comments) + " (" + q(e.formatDate(p.createdAt)) + ") ", 1)
|
|
2093
2105
|
]),
|
|
2094
2106
|
_: 2
|
|
2095
2107
|
}, 1024))), 128))
|
|
@@ -2097,7 +2109,7 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2097
2109
|
_: 1
|
|
2098
2110
|
})) : se("", !0)
|
|
2099
2111
|
]),
|
|
2100
|
-
t.$slots.content ? (u(),
|
|
2112
|
+
t.$slots.content ? (u(), w("div", qn, [
|
|
2101
2113
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
2102
2114
|
])) : se("", !0)
|
|
2103
2115
|
])
|
|
@@ -2105,23 +2117,23 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2105
2117
|
_: 3
|
|
2106
2118
|
}, 8, ["loading"])
|
|
2107
2119
|
]),
|
|
2108
|
-
|
|
2109
|
-
|
|
2120
|
+
S("div", Yn, [
|
|
2121
|
+
S("div", Qn, [
|
|
2110
2122
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
2111
|
-
|
|
2112
|
-
(u(!0),
|
|
2113
|
-
key:
|
|
2123
|
+
S("div", Jn, [
|
|
2124
|
+
(u(!0), w(j, null, G(e.reversedActions, (p) => (u(), L(e.ActionButton, {
|
|
2125
|
+
key: p.title,
|
|
2114
2126
|
loading: e.loading,
|
|
2115
|
-
config:
|
|
2127
|
+
config: p,
|
|
2116
2128
|
class: "action-button",
|
|
2117
|
-
onClick: (...m) => e.clickHandler(
|
|
2129
|
+
onClick: (...m) => e.clickHandler(p, ...m)
|
|
2118
2130
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
2119
2131
|
])
|
|
2120
2132
|
])
|
|
2121
2133
|
])
|
|
2122
2134
|
]);
|
|
2123
2135
|
}
|
|
2124
|
-
const Xn = /* @__PURE__ */
|
|
2136
|
+
const Xn = /* @__PURE__ */ X(Ln, [["render", Zn], ["__scopeId", "data-v-117ace1a"], ["__file", "DetailView.vue"]]), er = /* @__PURE__ */ Y({
|
|
2125
2137
|
name: "ListView",
|
|
2126
2138
|
__name: "ListView",
|
|
2127
2139
|
props: {
|
|
@@ -2129,7 +2141,7 @@ const Xn = /* @__PURE__ */ Z(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2129
2141
|
},
|
|
2130
2142
|
setup(t, { expose: o }) {
|
|
2131
2143
|
o();
|
|
2132
|
-
const n = Ne(), e = Fe(), a = ve(), r = me(), i = t, l =
|
|
2144
|
+
const n = Ne(), e = Fe(), a = ve(), r = me(), i = t, l = _(), c = ht({
|
|
2133
2145
|
current: 1,
|
|
2134
2146
|
total: 0,
|
|
2135
2147
|
pageSize: 10,
|
|
@@ -2139,8 +2151,8 @@ const Xn = /* @__PURE__ */ Z(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2139
2151
|
filters: []
|
|
2140
2152
|
});
|
|
2141
2153
|
function s() {
|
|
2142
|
-
const
|
|
2143
|
-
const fe = typeof
|
|
2154
|
+
const g = Object.entries(M.value).filter(([, { value: A }]) => A && A !== "").map(([A, { value: U, operator: de }]) => {
|
|
2155
|
+
const fe = typeof U == "string" ? U.trim() : U;
|
|
2144
2156
|
return {
|
|
2145
2157
|
key: A,
|
|
2146
2158
|
value: fe,
|
|
@@ -2151,7 +2163,7 @@ const Xn = /* @__PURE__ */ Z(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2151
2163
|
return {
|
|
2152
2164
|
pageNumber: c.current,
|
|
2153
2165
|
pageSize: c.pageSize,
|
|
2154
|
-
filters: [...c.filters, ...
|
|
2166
|
+
filters: [...c.filters, ...g],
|
|
2155
2167
|
sorts: [{
|
|
2156
2168
|
key: "workflowId",
|
|
2157
2169
|
type: 1
|
|
@@ -2159,13 +2171,13 @@ const Xn = /* @__PURE__ */ Z(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2159
2171
|
};
|
|
2160
2172
|
}
|
|
2161
2173
|
const d = z(() => ({
|
|
2162
|
-
x:
|
|
2174
|
+
x: k.value.length * 150 + 250
|
|
2163
2175
|
// 只设置横向滚动
|
|
2164
2176
|
// 移除 y 属性,让表格高度自适应
|
|
2165
|
-
})),
|
|
2166
|
-
const A = Object.entries(
|
|
2177
|
+
})), b = (g) => {
|
|
2178
|
+
const A = Object.entries(g).filter(([, U]) => U.widget?.column).map(([U, de], fe) => ({
|
|
2167
2179
|
title: de.widget.title,
|
|
2168
|
-
dataIndex:
|
|
2180
|
+
dataIndex: U.charAt(0).toLowerCase() + U.slice(1),
|
|
2169
2181
|
order: de.order,
|
|
2170
2182
|
ellipsis: !0,
|
|
2171
2183
|
tooltip: !0,
|
|
@@ -2174,7 +2186,7 @@ const Xn = /* @__PURE__ */ Z(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2174
2186
|
// 启用最小宽度
|
|
2175
2187
|
resizable: !0
|
|
2176
2188
|
// 启用列宽调整
|
|
2177
|
-
})).sort((
|
|
2189
|
+
})).sort((U, de) => U.order - de.order);
|
|
2178
2190
|
A.push({
|
|
2179
2191
|
title: "Actions",
|
|
2180
2192
|
slotName: "optional",
|
|
@@ -2183,100 +2195,100 @@ const Xn = /* @__PURE__ */ Z(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2183
2195
|
minWidth: 200,
|
|
2184
2196
|
fixed: "right",
|
|
2185
2197
|
resizable: !1
|
|
2186
|
-
}),
|
|
2187
|
-
},
|
|
2198
|
+
}), k.value = A;
|
|
2199
|
+
}, y = _([]), k = _([]), p = _(!0), m = _(!0), C = _(), ee = async () => {
|
|
2188
2200
|
m.value = !0;
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2191
|
-
},
|
|
2201
|
+
const g = await Bt(i.className, s());
|
|
2202
|
+
y.value = g.data, c.total = g.totalCount, m.value = !1;
|
|
2203
|
+
}, oe = _(!1);
|
|
2192
2204
|
ge(async () => {
|
|
2193
|
-
|
|
2194
|
-
const
|
|
2195
|
-
l.value = await
|
|
2205
|
+
p.value = !0;
|
|
2206
|
+
const g = new Ue().setPageActionType(he.List).setClassName(i.className).setStore({ svrStore: n, bpmStore: e }).build();
|
|
2207
|
+
l.value = await g.getPageData(), b(l.value.fields), I(l.value.fields), h(), H(l.value?.tabs?.[0]?.key || ""), C.value = l.value.actions, p.value = !1, oe.value = !0;
|
|
2196
2208
|
}), bt(() => {
|
|
2197
|
-
|
|
2209
|
+
oe.value && ee();
|
|
2198
2210
|
});
|
|
2199
|
-
const
|
|
2200
|
-
c.current =
|
|
2201
|
-
},
|
|
2202
|
-
c.pageSize =
|
|
2211
|
+
const W = (g) => {
|
|
2212
|
+
c.current = g, ee();
|
|
2213
|
+
}, ie = (g) => {
|
|
2214
|
+
c.pageSize = g, ee();
|
|
2203
2215
|
};
|
|
2204
|
-
function
|
|
2205
|
-
switch (
|
|
2206
|
-
case
|
|
2207
|
-
a.push({ name:
|
|
2216
|
+
function le(g, A, U, de, fe) {
|
|
2217
|
+
switch (g) {
|
|
2218
|
+
case te.Link:
|
|
2219
|
+
a.push({ name: U, params: { workflowId: fe } });
|
|
2208
2220
|
break;
|
|
2209
2221
|
default:
|
|
2210
|
-
console.warn("Unknown action type:",
|
|
2222
|
+
console.warn("Unknown action type:", g);
|
|
2211
2223
|
}
|
|
2212
2224
|
}
|
|
2213
|
-
function
|
|
2214
|
-
switch (
|
|
2215
|
-
case
|
|
2216
|
-
no(A, { filters: [{ key: "approverList", value:
|
|
2225
|
+
function re(g, A, U) {
|
|
2226
|
+
switch (g) {
|
|
2227
|
+
case te.Submit:
|
|
2228
|
+
no(A, { filters: [{ key: "approverList", value: V(), operator: 2 }] }), r?.appContext.config.globalProperties.$notification.success("submit success!");
|
|
2217
2229
|
break;
|
|
2218
|
-
case
|
|
2219
|
-
a.push({ name:
|
|
2230
|
+
case te.Link:
|
|
2231
|
+
a.push({ name: U });
|
|
2220
2232
|
break;
|
|
2221
2233
|
default:
|
|
2222
|
-
console.warn("Unknown action type:",
|
|
2234
|
+
console.warn("Unknown action type:", g);
|
|
2223
2235
|
}
|
|
2224
2236
|
}
|
|
2225
|
-
function
|
|
2237
|
+
function V() {
|
|
2226
2238
|
return n()?.userInfo?.email_address ?? "";
|
|
2227
2239
|
}
|
|
2228
|
-
function
|
|
2229
|
-
return typeof
|
|
2240
|
+
function $(g, A) {
|
|
2241
|
+
return typeof g != "string" || g.indexOf("{currentUserEmail}") === -1 ? g : g.replace(/{currentUserEmail}/g, A);
|
|
2230
2242
|
}
|
|
2231
|
-
function
|
|
2232
|
-
const A = l.value?.tabs?.find((
|
|
2233
|
-
c.filters = A?.map((
|
|
2234
|
-
...
|
|
2235
|
-
value:
|
|
2243
|
+
function H(g) {
|
|
2244
|
+
const A = l.value?.tabs?.find((U) => U.key === g)?.filters;
|
|
2245
|
+
c.filters = A?.map((U) => ({
|
|
2246
|
+
...U,
|
|
2247
|
+
value: $(U.value, V())
|
|
2236
2248
|
})) || [], c.current = 1, ee();
|
|
2237
2249
|
}
|
|
2238
|
-
const
|
|
2239
|
-
function
|
|
2240
|
-
if (!
|
|
2241
|
-
|
|
2250
|
+
const M = _({}), v = _([]);
|
|
2251
|
+
function I(g) {
|
|
2252
|
+
if (!g) return [];
|
|
2253
|
+
v.value = Object.entries(g).filter(([, A]) => A.isFiltered).map(([A, U]) => ({ fieldKey: A, fieldConfig: U }));
|
|
2242
2254
|
}
|
|
2243
|
-
const
|
|
2244
|
-
const
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
}),
|
|
2248
|
-
},
|
|
2255
|
+
const h = () => {
|
|
2256
|
+
const g = {};
|
|
2257
|
+
v.value.forEach(({ fieldKey: A, fieldConfig: U }) => {
|
|
2258
|
+
g[A] = {}, g[A].value = U.modelValue, g[A].operator = U.operator;
|
|
2259
|
+
}), M.value = g;
|
|
2260
|
+
}, f = () => {
|
|
2249
2261
|
c.current = 1, ee();
|
|
2250
|
-
},
|
|
2251
|
-
l.value &&
|
|
2262
|
+
}, F = () => {
|
|
2263
|
+
l.value && h(), f();
|
|
2252
2264
|
};
|
|
2253
|
-
function
|
|
2254
|
-
return !(
|
|
2265
|
+
function B(g, A) {
|
|
2266
|
+
return !(g.location !== "InTable" || g.title === "Update" && (A.sort === 3 || A.status === 100 || A.status === -1));
|
|
2255
2267
|
}
|
|
2256
|
-
const
|
|
2257
|
-
return Object.defineProperty(
|
|
2268
|
+
const E = { svrStore: n, bpmStore: e, router: a, instance: r, props: i, pageData: l, paging: c, createListParams: s, scroll: d, mapColumns: b, _data: y, _columns: k, loadingPage: p, loadingTable: m, actions: C, loadData: ee, mounted: oe, pageChangeHandler: W, pageSizeChangeHandler: ie, clickHandler: le, createHandler: re, getApproverEmail: V, replaceEmail: $, tabHandler: H, searchForm: M, searchableFields: v, mapSearchableFields: I, initSearchForm: h, handleSearch: f, handleReset: F, judgeHiddenActions: B, ActionButton: Pe, DataWidgets: Ie, TopBar: Re };
|
|
2269
|
+
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
2258
2270
|
}
|
|
2259
2271
|
}), tr = { class: "list-container" }, or = { class: "query-title" };
|
|
2260
2272
|
function nr(t, o, n, e, a, r) {
|
|
2261
|
-
const i =
|
|
2262
|
-
return u(),
|
|
2263
|
-
|
|
2273
|
+
const i = T("a-space"), l = T("a-col"), c = T("a-button"), s = T("a-row"), d = T("a-card"), b = T("a-tab-pane"), y = T("a-tabs"), k = T("a-table");
|
|
2274
|
+
return u(), w("div", tr, [
|
|
2275
|
+
P(e.TopBar, {
|
|
2264
2276
|
title: e.pageData?.banner.title ?? "",
|
|
2265
2277
|
subTitle: e.pageData?.banner.subTitle ?? "",
|
|
2266
2278
|
email: e.getApproverEmail()
|
|
2267
2279
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
2268
|
-
|
|
2269
|
-
default:
|
|
2270
|
-
|
|
2271
|
-
o[0] || (o[0] =
|
|
2272
|
-
|
|
2273
|
-
default:
|
|
2274
|
-
(u(!0),
|
|
2275
|
-
key:
|
|
2280
|
+
P(d, null, {
|
|
2281
|
+
default: x(() => [
|
|
2282
|
+
S("div", or, [
|
|
2283
|
+
o[0] || (o[0] = S("h3", null, "Search Conditions", -1)),
|
|
2284
|
+
P(i, { size: "medium" }, {
|
|
2285
|
+
default: x(() => [
|
|
2286
|
+
(u(!0), w(j, null, G(e.actions, (p) => (u(), w(j, {
|
|
2287
|
+
key: p.title
|
|
2276
2288
|
}, [
|
|
2277
|
-
|
|
2289
|
+
p.location === "InOperation" ? (u(), L(e.ActionButton, {
|
|
2278
2290
|
key: 0,
|
|
2279
|
-
config:
|
|
2291
|
+
config: p,
|
|
2280
2292
|
onClick: e.createHandler
|
|
2281
2293
|
}, null, 8, ["config"])) : se("", !0)
|
|
2282
2294
|
], 64))), 128))
|
|
@@ -2284,47 +2296,47 @@ function nr(t, o, n, e, a, r) {
|
|
|
2284
2296
|
_: 1
|
|
2285
2297
|
})
|
|
2286
2298
|
]),
|
|
2287
|
-
|
|
2288
|
-
default:
|
|
2289
|
-
(u(!0),
|
|
2290
|
-
key:
|
|
2299
|
+
P(s, { gutter: [24, 20] }, {
|
|
2300
|
+
default: x(() => [
|
|
2301
|
+
(u(!0), w(j, null, G(e.searchableFields, (p) => (u(), L(l, {
|
|
2302
|
+
key: p.fieldKey,
|
|
2291
2303
|
span: 6,
|
|
2292
2304
|
class: "search-col"
|
|
2293
2305
|
}, {
|
|
2294
|
-
default:
|
|
2295
|
-
|
|
2296
|
-
name:
|
|
2297
|
-
config:
|
|
2298
|
-
modelValue: e.searchForm[
|
|
2299
|
-
"onUpdate:modelValue": (m) => e.searchForm[
|
|
2306
|
+
default: x(() => [
|
|
2307
|
+
P(e.DataWidgets, {
|
|
2308
|
+
name: p.fieldKey,
|
|
2309
|
+
config: p.fieldConfig,
|
|
2310
|
+
modelValue: e.searchForm[p.fieldKey].value,
|
|
2311
|
+
"onUpdate:modelValue": (m) => e.searchForm[p.fieldKey].value = m,
|
|
2300
2312
|
class: "form-field"
|
|
2301
2313
|
}, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
|
|
2302
2314
|
]),
|
|
2303
2315
|
_: 2
|
|
2304
2316
|
}, 1024))), 128)),
|
|
2305
|
-
|
|
2317
|
+
P(l, {
|
|
2306
2318
|
span: 6,
|
|
2307
2319
|
class: "search-col form-buttons"
|
|
2308
2320
|
}, {
|
|
2309
|
-
default:
|
|
2310
|
-
|
|
2311
|
-
default:
|
|
2312
|
-
|
|
2321
|
+
default: x(() => [
|
|
2322
|
+
P(i, { size: "medium" }, {
|
|
2323
|
+
default: x(() => [
|
|
2324
|
+
P(c, {
|
|
2313
2325
|
type: "primary",
|
|
2314
2326
|
size: "medium",
|
|
2315
2327
|
onClick: e.handleSearch
|
|
2316
2328
|
}, {
|
|
2317
|
-
default:
|
|
2329
|
+
default: x(() => o[1] || (o[1] = [
|
|
2318
2330
|
ae(" Search ", -1)
|
|
2319
2331
|
])),
|
|
2320
2332
|
_: 1,
|
|
2321
2333
|
__: [1]
|
|
2322
2334
|
}),
|
|
2323
|
-
|
|
2335
|
+
P(c, {
|
|
2324
2336
|
size: "medium",
|
|
2325
2337
|
onClick: e.handleReset
|
|
2326
2338
|
}, {
|
|
2327
|
-
default:
|
|
2339
|
+
default: x(() => o[2] || (o[2] = [
|
|
2328
2340
|
ae(" Reset ", -1)
|
|
2329
2341
|
])),
|
|
2330
2342
|
_: 1,
|
|
@@ -2342,19 +2354,19 @@ function nr(t, o, n, e, a, r) {
|
|
|
2342
2354
|
]),
|
|
2343
2355
|
_: 1
|
|
2344
2356
|
}),
|
|
2345
|
-
|
|
2357
|
+
P(y, {
|
|
2346
2358
|
size: "large",
|
|
2347
2359
|
onTabClick: e.tabHandler
|
|
2348
2360
|
}, {
|
|
2349
|
-
default:
|
|
2350
|
-
(u(!0),
|
|
2351
|
-
key:
|
|
2352
|
-
title:
|
|
2361
|
+
default: x(() => [
|
|
2362
|
+
(u(!0), w(j, null, G(e.pageData?.tabs, (p) => (u(), L(b, {
|
|
2363
|
+
key: p.key,
|
|
2364
|
+
title: p.title
|
|
2353
2365
|
}, null, 8, ["title"]))), 128))
|
|
2354
2366
|
]),
|
|
2355
2367
|
_: 1
|
|
2356
2368
|
}),
|
|
2357
|
-
|
|
2369
|
+
P(k, {
|
|
2358
2370
|
columns: e._columns,
|
|
2359
2371
|
data: e._data,
|
|
2360
2372
|
stripe: "",
|
|
@@ -2373,17 +2385,17 @@ function nr(t, o, n, e, a, r) {
|
|
|
2373
2385
|
onPageChange: e.pageChangeHandler,
|
|
2374
2386
|
onPageSizeChange: e.pageSizeChangeHandler
|
|
2375
2387
|
}, {
|
|
2376
|
-
optional:
|
|
2377
|
-
|
|
2378
|
-
default:
|
|
2379
|
-
(u(!0),
|
|
2388
|
+
optional: x(({ record: p }) => [
|
|
2389
|
+
P(i, { size: "small" }, {
|
|
2390
|
+
default: x(() => [
|
|
2391
|
+
(u(!0), w(j, null, G(e.actions, (m) => (u(), w(j, {
|
|
2380
2392
|
key: m.title
|
|
2381
2393
|
}, [
|
|
2382
|
-
e.judgeHiddenActions(m,
|
|
2394
|
+
e.judgeHiddenActions(m, p) ? (u(), L(e.ActionButton, {
|
|
2383
2395
|
key: 0,
|
|
2384
2396
|
config: m,
|
|
2385
2397
|
size: "small",
|
|
2386
|
-
onClick: (...
|
|
2398
|
+
onClick: (...C) => e.clickHandler(...C, p.workflowId)
|
|
2387
2399
|
}, null, 8, ["config", "onClick"])) : se("", !0)
|
|
2388
2400
|
], 64))), 128))
|
|
2389
2401
|
]),
|
|
@@ -2394,9 +2406,9 @@ function nr(t, o, n, e, a, r) {
|
|
|
2394
2406
|
}, 8, ["columns", "data", "pagination", "loading", "scroll"])
|
|
2395
2407
|
]);
|
|
2396
2408
|
}
|
|
2397
|
-
const rr = /* @__PURE__ */
|
|
2409
|
+
const rr = /* @__PURE__ */ X(er, [["render", nr], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), dr = {
|
|
2398
2410
|
install(t, o = {}) {
|
|
2399
|
-
o.config && Vt(o.config), o.router && (At(o.router), t.provide(ot, o.router)), o.pinia && t.provide(tn, o.pinia), o.useBpmStore && t.provide(pt, o.useBpmStore), o.useSvrStore && t.provide(mt, o.useSvrStore), o.triggers && t.provide(ft, o.triggers), o.customComps && t.provide(gt, o.customComps), t.component("CreateView", kn), t.component("UpdateView",
|
|
2411
|
+
o.config && Vt(o.config), o.router && (At(o.router), t.provide(ot, o.router)), o.pinia && t.provide(tn, o.pinia), o.useBpmStore && t.provide(pt, o.useBpmStore), o.useSvrStore && t.provide(mt, o.useSvrStore), o.triggers && t.provide(ft, o.triggers), o.customComps && t.provide(gt, o.customComps), t.component("CreateView", kn), t.component("UpdateView", Un), t.component("DetailView", Xn), t.component("ListView", rr);
|
|
2400
2412
|
}
|
|
2401
2413
|
};
|
|
2402
2414
|
export {
|