@chase-shao/vue-component-lib 1.2.108 → 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.d.ts +0 -1
- 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 +676 -657
- 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
|
|
@@ -56,7 +56,7 @@ let Oe = {};
|
|
|
56
56
|
function Vt(t) {
|
|
57
57
|
Oe = { ...Oe, ...t };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ze() {
|
|
60
60
|
return Oe;
|
|
61
61
|
}
|
|
62
62
|
const ot = Symbol("library-router");
|
|
@@ -75,7 +75,7 @@ function ve() {
|
|
|
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,31 +126,31 @@ 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
147
|
function Rt() {
|
|
148
|
-
if (!
|
|
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
155
|
const Ut = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ge = { randomUUID: Ut };
|
|
156
156
|
function it(t, o, n) {
|
|
@@ -162,8 +162,8 @@ function it(t, o, n) {
|
|
|
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
300
|
async function Ot(t, o, n, e) {
|
|
301
|
-
const a = await
|
|
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
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 = $t(s, n), 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,31 +423,31 @@ 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 =
|
|
433
|
+
const i = T("AInput");
|
|
435
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": "",
|
|
439
|
-
|
|
440
|
-
|
|
438
|
+
"show-word-limit": "",
|
|
439
|
+
disabled: e.props.config.readonly,
|
|
440
|
+
"max-length": e.props.config.maxLength,
|
|
441
441
|
onInput: e.inputHandler,
|
|
442
442
|
onChange: e.changeHandler
|
|
443
443
|
}, null, 8, ["modelValue", "disabled", "max-length"]);
|
|
444
444
|
}
|
|
445
|
-
const Ye = /* @__PURE__ */
|
|
445
|
+
const Ye = /* @__PURE__ */ X(so, [["render", io], ["__file", "InputText.vue"]]), lo = /* @__PURE__ */ Y({
|
|
446
446
|
__name: "InputNumber",
|
|
447
447
|
props: /* @__PURE__ */ ce({
|
|
448
448
|
fieldKey: {},
|
|
449
449
|
modelValue: {},
|
|
450
450
|
config: {},
|
|
451
|
-
readonly: { type: Boolean },
|
|
452
451
|
validations: {},
|
|
453
452
|
triggers: {}
|
|
454
453
|
}, {
|
|
@@ -457,50 +456,50 @@ const Ye = /* @__PURE__ */ Q(so, [["render", io], ["__file", "InputText.vue"]]),
|
|
|
457
456
|
}),
|
|
458
457
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
459
458
|
setup(t, { expose: o, emit: n }) {
|
|
460
|
-
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);
|
|
461
460
|
ge(() => {
|
|
462
|
-
e.validations && e.validations.forEach((
|
|
463
|
-
|
|
461
|
+
e.validations && e.validations.forEach((y) => {
|
|
462
|
+
y.ruleName === "Max" && (i.value = y.ruleParameter), y.ruleName === "Min" && (l.value = y.ruleParameter);
|
|
464
463
|
});
|
|
465
464
|
});
|
|
466
|
-
const c = (
|
|
467
|
-
a("input",
|
|
468
|
-
}, d = (
|
|
469
|
-
const
|
|
470
|
-
a("error",
|
|
471
|
-
|
|
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);
|
|
472
471
|
});
|
|
473
472
|
};
|
|
474
473
|
o({
|
|
475
474
|
validate() {
|
|
476
|
-
const
|
|
477
|
-
return a("error",
|
|
475
|
+
const y = c(e.modelValue);
|
|
476
|
+
return a("error", y.res ? "" : y.errorMessages), y.res;
|
|
478
477
|
}
|
|
479
478
|
});
|
|
480
|
-
const
|
|
481
|
-
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;
|
|
482
481
|
}
|
|
483
482
|
});
|
|
484
483
|
function co(t, o, n, e, a, r) {
|
|
485
|
-
const i =
|
|
484
|
+
const i = T("AInputNumber");
|
|
486
485
|
return u(), L(i, {
|
|
487
486
|
modelValue: e.model,
|
|
488
487
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
489
488
|
clearable: "",
|
|
490
|
-
|
|
489
|
+
"show-word-limit": "",
|
|
490
|
+
disabled: e.props.config.readonly,
|
|
491
491
|
max: e.max,
|
|
492
492
|
min: e.min,
|
|
493
493
|
onInput: e.inputHandler,
|
|
494
494
|
onChange: e.changeHandler
|
|
495
495
|
}, null, 8, ["modelValue", "disabled", "max", "min"]);
|
|
496
496
|
}
|
|
497
|
-
const uo = /* @__PURE__ */
|
|
497
|
+
const uo = /* @__PURE__ */ X(lo, [["render", co], ["__file", "InputNumber.vue"]]), fo = /* @__PURE__ */ Y({
|
|
498
498
|
__name: "SelectList",
|
|
499
499
|
props: /* @__PURE__ */ ce({
|
|
500
500
|
fieldKey: {},
|
|
501
501
|
modelValue: {},
|
|
502
502
|
config: {},
|
|
503
|
-
readonly: { type: Boolean },
|
|
504
503
|
validations: {},
|
|
505
504
|
triggers: {}
|
|
506
505
|
}, {
|
|
@@ -509,42 +508,42 @@ const uo = /* @__PURE__ */ Q(lo, [["render", co], ["__file", "InputNumber.vue"]]
|
|
|
509
508
|
}),
|
|
510
509
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
|
|
511
510
|
setup(t, { expose: o, emit: n }) {
|
|
512
|
-
const e = t, a = n, r =
|
|
513
|
-
const
|
|
514
|
-
return e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
515
|
-
|
|
516
|
-
a(
|
|
517
|
-
const
|
|
518
|
-
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);
|
|
519
518
|
};
|
|
520
|
-
}),
|
|
519
|
+
}), k;
|
|
521
520
|
}), d = async () => {
|
|
522
521
|
if (e.config.dataSourceProvider) {
|
|
523
522
|
i.value = await Wt(e.config.dataSourceProvider);
|
|
524
|
-
const
|
|
525
|
-
|
|
523
|
+
const k = e.modelValue;
|
|
524
|
+
k != null && k !== "" && (i.value.some((m) => m.value === k) || a("update:modelValue", ""));
|
|
526
525
|
}
|
|
527
526
|
};
|
|
528
527
|
ge(d);
|
|
529
|
-
const
|
|
530
|
-
a("update:modelValue",
|
|
531
|
-
const
|
|
532
|
-
a("error",
|
|
533
|
-
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);
|
|
534
533
|
});
|
|
535
534
|
};
|
|
536
535
|
o({
|
|
537
536
|
validate() {
|
|
538
|
-
const
|
|
539
|
-
return a("error",
|
|
537
|
+
const k = c(e.modelValue);
|
|
538
|
+
return a("error", k.res ? "" : k.errorMessages), k.res;
|
|
540
539
|
}
|
|
541
540
|
});
|
|
542
|
-
const
|
|
543
|
-
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;
|
|
544
543
|
}
|
|
545
544
|
});
|
|
546
545
|
function po(t, o, n, e, a, r) {
|
|
547
|
-
const i =
|
|
546
|
+
const i = T("AOption"), l = T("ASelect");
|
|
548
547
|
return u(), L(l, {
|
|
549
548
|
"allow-clear": "",
|
|
550
549
|
modelValue: e.model,
|
|
@@ -555,8 +554,8 @@ function po(t, o, n, e, a, r) {
|
|
|
555
554
|
disabled: e.props.config.readonly,
|
|
556
555
|
onChange: e.changeHandler
|
|
557
556
|
}, {
|
|
558
|
-
default:
|
|
559
|
-
(u(!0),
|
|
557
|
+
default: x(() => [
|
|
558
|
+
(u(!0), w(j, null, G(e._options, (c) => (u(), L(i, {
|
|
560
559
|
key: c.value,
|
|
561
560
|
value: c.value,
|
|
562
561
|
label: c.label
|
|
@@ -565,7 +564,7 @@ function po(t, o, n, e, a, r) {
|
|
|
565
564
|
_: 1
|
|
566
565
|
}, 8, ["modelValue", "loading", "disabled"]);
|
|
567
566
|
}
|
|
568
|
-
const Qe = /* @__PURE__ */
|
|
567
|
+
const Qe = /* @__PURE__ */ X(fo, [["render", po], ["__file", "SelectList.vue"]]), mo = /* @__PURE__ */ Y({
|
|
569
568
|
__name: "Cascader",
|
|
570
569
|
props: {
|
|
571
570
|
modelValue: {},
|
|
@@ -573,15 +572,15 @@ const Qe = /* @__PURE__ */ Q(fo, [["render", po], ["__file", "SelectList.vue"]])
|
|
|
573
572
|
},
|
|
574
573
|
emits: ["update:modelValue", "change"],
|
|
575
574
|
setup(t, { expose: o, emit: n }) {
|
|
576
|
-
const e = t, a = n, r =
|
|
575
|
+
const e = t, a = n, r = _(e.config.options ?? []), i = (s) => {
|
|
577
576
|
a("update:modelValue", s), a("change", s);
|
|
578
577
|
};
|
|
579
578
|
ge(async () => {
|
|
580
579
|
if (e.config) {
|
|
581
580
|
const s = e.config.dataSourceProvider;
|
|
582
581
|
if (s) {
|
|
583
|
-
const
|
|
584
|
-
r.value =
|
|
582
|
+
const b = await (await J()).get(s);
|
|
583
|
+
r.value = b.data;
|
|
585
584
|
}
|
|
586
585
|
}
|
|
587
586
|
});
|
|
@@ -596,12 +595,12 @@ const Qe = /* @__PURE__ */ Q(fo, [["render", po], ["__file", "SelectList.vue"]])
|
|
|
596
595
|
}
|
|
597
596
|
});
|
|
598
597
|
function go(t, o, n, e, a, r) {
|
|
599
|
-
const i =
|
|
598
|
+
const i = T("ACascader"), l = T("ASpace");
|
|
600
599
|
return u(), L(l, {
|
|
601
600
|
direction: "vertical",
|
|
602
601
|
size: "large"
|
|
603
602
|
}, {
|
|
604
|
-
default:
|
|
603
|
+
default: x(() => [
|
|
605
604
|
P(i, {
|
|
606
605
|
"field-names": e.fieldNames,
|
|
607
606
|
"model-value": n.modelValue,
|
|
@@ -614,7 +613,7 @@ function go(t, o, n, e, a, r) {
|
|
|
614
613
|
_: 1
|
|
615
614
|
});
|
|
616
615
|
}
|
|
617
|
-
const _o = /* @__PURE__ */
|
|
616
|
+
const _o = /* @__PURE__ */ X(mo, [["render", go], ["__file", "Cascader.vue"]]), Je = 1024 * 1024, vo = /* @__PURE__ */ Y({
|
|
618
617
|
__name: "FileUpload",
|
|
619
618
|
props: {
|
|
620
619
|
className: {},
|
|
@@ -623,84 +622,87 @@ const _o = /* @__PURE__ */ Q(mo, [["render", go], ["__file", "Cascader.vue"]]),
|
|
|
623
622
|
fieldKey: {},
|
|
624
623
|
modelValue: {},
|
|
625
624
|
config: {},
|
|
626
|
-
readonly: { type: Boolean },
|
|
627
625
|
validations: {},
|
|
628
626
|
triggers: {}
|
|
629
627
|
},
|
|
630
628
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
631
629
|
setup(t, { expose: o, emit: n }) {
|
|
632
|
-
const e = t, a = n, r =
|
|
633
|
-
function
|
|
634
|
-
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);
|
|
635
633
|
}
|
|
636
|
-
const
|
|
634
|
+
const y = z(() => {
|
|
637
635
|
if (e.config.uploadURL) {
|
|
638
|
-
const
|
|
639
|
-
return
|
|
636
|
+
const f = c + e.config.uploadURL;
|
|
637
|
+
return b(f, d.value, e.className);
|
|
640
638
|
}
|
|
641
639
|
return "";
|
|
642
640
|
});
|
|
643
|
-
function
|
|
644
|
-
if (!(typeof
|
|
645
|
-
return
|
|
641
|
+
function k(f) {
|
|
642
|
+
if (!(typeof f != "number" || f <= 0))
|
|
643
|
+
return f * Je;
|
|
646
644
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
645
|
+
function p(f) {
|
|
646
|
+
if (!(typeof f != "number" || f <= 0))
|
|
647
|
+
return f;
|
|
650
648
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
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`;
|
|
654
652
|
}
|
|
655
|
-
|
|
656
|
-
|
|
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);
|
|
656
|
+
}
|
|
657
|
+
const le = (f) => {
|
|
658
|
+
f.stopPropagation(), s.value.submit();
|
|
657
659
|
};
|
|
658
|
-
function
|
|
659
|
-
const { file:
|
|
660
|
-
return new Promise((
|
|
660
|
+
function re(f) {
|
|
661
|
+
const { file: F, name: B } = f, E = B ?? F.name;
|
|
662
|
+
return new Promise((g, A) => {
|
|
661
663
|
St.confirm({
|
|
662
664
|
title: "Confirm Delete",
|
|
663
|
-
content: `Are you sure you want to delete ${
|
|
665
|
+
content: `Are you sure you want to delete ${E}?`,
|
|
664
666
|
async onOk() {
|
|
665
|
-
if (
|
|
666
|
-
return await e.config.removeFile(
|
|
667
|
-
|
|
667
|
+
if (f.status !== "init" && e.config.removeFile)
|
|
668
|
+
return await e.config.removeFile(f.uid), g(!0);
|
|
669
|
+
g(!0);
|
|
668
670
|
},
|
|
669
|
-
onCancel: () =>
|
|
671
|
+
onCancel: () => A("cancel")
|
|
670
672
|
});
|
|
671
673
|
});
|
|
672
674
|
}
|
|
673
|
-
const
|
|
674
|
-
|
|
675
|
-
},
|
|
676
|
-
|
|
677
|
-
},
|
|
678
|
-
|
|
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");
|
|
679
681
|
};
|
|
680
682
|
o({
|
|
681
|
-
submit(
|
|
682
|
-
return new Promise((
|
|
683
|
-
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) => {
|
|
684
686
|
r.value = {
|
|
685
|
-
Authorization: `Bearer ${
|
|
687
|
+
Authorization: `Bearer ${E}`
|
|
686
688
|
}, vt(() => {
|
|
687
689
|
s.value?.submit();
|
|
688
690
|
});
|
|
689
|
-
}) :
|
|
691
|
+
}) : F(f)) : F(f);
|
|
690
692
|
});
|
|
691
693
|
},
|
|
692
694
|
validate() {
|
|
693
|
-
const
|
|
694
|
-
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;
|
|
695
697
|
}
|
|
696
698
|
});
|
|
697
|
-
const
|
|
698
|
-
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;
|
|
699
701
|
}
|
|
700
702
|
}), ho = { style: { "margin-top": "8px", color: "#86909c", "font-size": "12px" } };
|
|
701
703
|
function bo(t, o, n, e, a, r) {
|
|
702
|
-
const i =
|
|
703
|
-
return u(),
|
|
704
|
+
const i = T("a-button"), l = T("a-upload");
|
|
705
|
+
return u(), w(j, null, [
|
|
704
706
|
P(l, {
|
|
705
707
|
ref: "uploadRef",
|
|
706
708
|
"default-file-list": e.props.config.files,
|
|
@@ -715,11 +717,11 @@ function bo(t, o, n, e, a, r) {
|
|
|
715
717
|
onSuccess: e.handleUploadSuccess,
|
|
716
718
|
onError: e.handleUploadError
|
|
717
719
|
}, {
|
|
718
|
-
"start-icon":
|
|
719
|
-
"upload-button":
|
|
720
|
+
"start-icon": x(() => o[0] || (o[0] = [])),
|
|
721
|
+
"upload-button": x(() => [
|
|
720
722
|
P(i, { type: "primary" }, {
|
|
721
|
-
default:
|
|
722
|
-
|
|
723
|
+
default: x(() => o[1] || (o[1] = [
|
|
724
|
+
ae("Select File", -1)
|
|
723
725
|
])),
|
|
724
726
|
_: 1,
|
|
725
727
|
__: [1]
|
|
@@ -727,28 +729,27 @@ function bo(t, o, n, e, a, r) {
|
|
|
727
729
|
]),
|
|
728
730
|
_: 1
|
|
729
731
|
}, 8, ["default-file-list", "action", "limit", "headers"]),
|
|
730
|
-
|
|
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)
|
|
731
733
|
], 64);
|
|
732
734
|
}
|
|
733
|
-
const
|
|
735
|
+
const wo = /* @__PURE__ */ X(vo, [["render", bo], ["__file", "FileUpload.vue"]]), yo = /* @__PURE__ */ Y({
|
|
734
736
|
__name: "TextArea",
|
|
735
737
|
props: {
|
|
736
738
|
fieldKey: {},
|
|
737
739
|
modelValue: {},
|
|
738
740
|
config: {},
|
|
739
|
-
readonly: { type: Boolean },
|
|
740
741
|
validations: {},
|
|
741
742
|
triggers: {}
|
|
742
743
|
},
|
|
743
744
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
744
745
|
setup(t, { expose: o, emit: n }) {
|
|
745
|
-
const e = t, a = n, r = (s) =>
|
|
746
|
+
const e = t, a = n, r = (s) => we(e.validations, s), i = (s) => {
|
|
746
747
|
a("update:modelValue", s), a("input", s);
|
|
747
748
|
}, l = (s) => {
|
|
748
749
|
a("update:modelValue", s);
|
|
749
750
|
const d = r(s);
|
|
750
|
-
a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
751
|
-
|
|
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);
|
|
752
753
|
});
|
|
753
754
|
};
|
|
754
755
|
o({
|
|
@@ -762,24 +763,28 @@ const yo = /* @__PURE__ */ Q(vo, [["render", bo], ["__file", "FileUpload.vue"]])
|
|
|
762
763
|
}
|
|
763
764
|
});
|
|
764
765
|
function ko(t, o, n, e, a, r) {
|
|
765
|
-
const i =
|
|
766
|
+
const i = T("ATextarea");
|
|
766
767
|
return u(), L(i, {
|
|
767
768
|
"model-value": e.props.modelValue,
|
|
768
769
|
placeholder: "Please enter something",
|
|
769
770
|
"allow-clear": "",
|
|
770
|
-
|
|
771
|
-
|
|
771
|
+
"show-word-limit": "",
|
|
772
|
+
disabled: e.props.config.readonly,
|
|
773
|
+
"max-length": e.props.config.maxLength,
|
|
774
|
+
"auto-size": {
|
|
775
|
+
minRows: 2,
|
|
776
|
+
maxRows: 2
|
|
777
|
+
},
|
|
772
778
|
onInput: e.inputHandler,
|
|
773
779
|
onChange: e.changeHandler
|
|
774
780
|
}, null, 8, ["model-value", "disabled", "max-length"]);
|
|
775
781
|
}
|
|
776
|
-
const So = /* @__PURE__ */
|
|
782
|
+
const So = /* @__PURE__ */ X(yo, [["render", ko], ["__file", "TextArea.vue"]]), Co = /* @__PURE__ */ Y({
|
|
777
783
|
__name: "CheckBox",
|
|
778
784
|
props: /* @__PURE__ */ ce({
|
|
779
785
|
fieldKey: {},
|
|
780
786
|
modelValue: {},
|
|
781
787
|
config: {},
|
|
782
|
-
readonly: { type: Boolean },
|
|
783
788
|
validations: {},
|
|
784
789
|
triggers: {}
|
|
785
790
|
}, {
|
|
@@ -788,10 +793,10 @@ const So = /* @__PURE__ */ Q(wo, [["render", ko], ["__file", "TextArea.vue"]]),
|
|
|
788
793
|
}),
|
|
789
794
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
790
795
|
setup(t, { expose: o, emit: n }) {
|
|
791
|
-
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) => {
|
|
792
797
|
const d = i(s);
|
|
793
|
-
a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((
|
|
794
|
-
|
|
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);
|
|
795
800
|
});
|
|
796
801
|
};
|
|
797
802
|
o({
|
|
@@ -805,7 +810,7 @@ const So = /* @__PURE__ */ Q(wo, [["render", ko], ["__file", "TextArea.vue"]]),
|
|
|
805
810
|
}
|
|
806
811
|
});
|
|
807
812
|
function xo(t, o, n, e, a, r) {
|
|
808
|
-
const i =
|
|
813
|
+
const i = T("ACheckbox");
|
|
809
814
|
return u(), L(i, {
|
|
810
815
|
modelValue: e.model,
|
|
811
816
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
|
|
@@ -813,14 +818,14 @@ function xo(t, o, n, e, a, r) {
|
|
|
813
818
|
disabled: e.props.readonly || e.props.config.Readonly,
|
|
814
819
|
onChange: e.changeHandler
|
|
815
820
|
}, {
|
|
816
|
-
default:
|
|
817
|
-
|
|
821
|
+
default: x(() => o[1] || (o[1] = [
|
|
822
|
+
ae("Yes", -1)
|
|
818
823
|
])),
|
|
819
824
|
_: 1,
|
|
820
825
|
__: [1]
|
|
821
826
|
}, 8, ["modelValue", "disabled"]);
|
|
822
827
|
}
|
|
823
|
-
const To = /* @__PURE__ */
|
|
828
|
+
const To = /* @__PURE__ */ X(Co, [["render", xo], ["__file", "CheckBox.vue"]]), Vo = Symbol("ArcoConfigProvider"), Ao = "arco", Io = "$arco", lt = (t) => {
|
|
824
829
|
var o, n, e;
|
|
825
830
|
const a = me(), r = be(Vo, void 0);
|
|
826
831
|
return `${(e = (n = r?.prefixCls) != null ? n : (o = a?.appContext.config.globalProperties[Io]) == null ? void 0 : o.classPrefix) != null ? e : Ao}-${t}`;
|
|
@@ -833,7 +838,7 @@ var dt = (t, o) => {
|
|
|
833
838
|
t[n] = e;
|
|
834
839
|
return t;
|
|
835
840
|
};
|
|
836
|
-
const Fo =
|
|
841
|
+
const Fo = Y({
|
|
837
842
|
name: "IconQuestionCircle",
|
|
838
843
|
props: {
|
|
839
844
|
size: {
|
|
@@ -860,7 +865,7 @@ const Fo = W({
|
|
|
860
865
|
click: (t) => !0
|
|
861
866
|
},
|
|
862
867
|
setup(t, { emit: o }) {
|
|
863
|
-
const n = lt("icon"), e =
|
|
868
|
+
const n = lt("icon"), e = z(() => [n, `${n}-question-circle`, { [`${n}-spin`]: t.spin }]), a = z(() => {
|
|
864
869
|
const i = {};
|
|
865
870
|
return t.size && (i.fontSize = ct(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
|
|
866
871
|
});
|
|
@@ -874,7 +879,7 @@ const Fo = W({
|
|
|
874
879
|
}
|
|
875
880
|
}), No = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
876
881
|
function Ro(t, o, n, e, a, r) {
|
|
877
|
-
return u(),
|
|
882
|
+
return u(), w("svg", {
|
|
878
883
|
viewBox: "0 0 48 48",
|
|
879
884
|
fill: "none",
|
|
880
885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -886,18 +891,18 @@ function Ro(t, o, n, e, a, r) {
|
|
|
886
891
|
"stroke-linejoin": t.strokeLinejoin,
|
|
887
892
|
onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
|
|
888
893
|
}, o[1] || (o[1] = [
|
|
889
|
-
|
|
890
|
-
|
|
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)
|
|
891
896
|
]), 14, No);
|
|
892
897
|
}
|
|
893
|
-
var
|
|
894
|
-
const Uo = Object.assign(
|
|
898
|
+
var Be = /* @__PURE__ */ dt(Fo, [["render", Ro]]);
|
|
899
|
+
const Uo = Object.assign(Be, {
|
|
895
900
|
install: (t, o) => {
|
|
896
901
|
var n;
|
|
897
902
|
const e = (n = o?.iconPrefix) != null ? n : "";
|
|
898
|
-
t.component(e +
|
|
903
|
+
t.component(e + Be.name, Be);
|
|
899
904
|
}
|
|
900
|
-
}),
|
|
905
|
+
}), Do = Y({
|
|
901
906
|
name: "IconDownload",
|
|
902
907
|
props: {
|
|
903
908
|
size: {
|
|
@@ -924,7 +929,7 @@ const Uo = Object.assign(Le, {
|
|
|
924
929
|
click: (t) => !0
|
|
925
930
|
},
|
|
926
931
|
setup(t, { emit: o }) {
|
|
927
|
-
const n = lt("icon"), e =
|
|
932
|
+
const n = lt("icon"), e = z(() => [n, `${n}-download`, { [`${n}-spin`]: t.spin }]), a = z(() => {
|
|
928
933
|
const i = {};
|
|
929
934
|
return t.size && (i.fontSize = ct(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
|
|
930
935
|
});
|
|
@@ -936,9 +941,9 @@ const Uo = Object.assign(Le, {
|
|
|
936
941
|
}
|
|
937
942
|
};
|
|
938
943
|
}
|
|
939
|
-
}),
|
|
940
|
-
function
|
|
941
|
-
return u(),
|
|
944
|
+
}), Lo = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
945
|
+
function Bo(t, o, n, e, a, r) {
|
|
946
|
+
return u(), w("svg", {
|
|
942
947
|
viewBox: "0 0 48 48",
|
|
943
948
|
fill: "none",
|
|
944
949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -950,17 +955,17 @@ function Lo(t, o, n, e, a, r) {
|
|
|
950
955
|
"stroke-linejoin": t.strokeLinejoin,
|
|
951
956
|
onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
|
|
952
957
|
}, o[1] || (o[1] = [
|
|
953
|
-
|
|
954
|
-
]), 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);
|
|
955
960
|
}
|
|
956
|
-
var He = /* @__PURE__ */ dt(
|
|
961
|
+
var He = /* @__PURE__ */ dt(Do, [["render", Bo]]);
|
|
957
962
|
const Ho = Object.assign(He, {
|
|
958
963
|
install: (t, o) => {
|
|
959
964
|
var n;
|
|
960
965
|
const e = (n = o?.iconPrefix) != null ? n : "";
|
|
961
966
|
t.component(e + He.name, He);
|
|
962
967
|
}
|
|
963
|
-
}), Oo = /* @__PURE__ */
|
|
968
|
+
}), Oo = /* @__PURE__ */ Y({
|
|
964
969
|
__name: "ToolTip",
|
|
965
970
|
props: {
|
|
966
971
|
isVisible: { type: Boolean },
|
|
@@ -968,45 +973,45 @@ const Ho = Object.assign(He, {
|
|
|
968
973
|
},
|
|
969
974
|
setup(t, { expose: o }) {
|
|
970
975
|
o();
|
|
971
|
-
const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", a =
|
|
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() {
|
|
972
977
|
return Uo;
|
|
973
978
|
} };
|
|
974
979
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
975
980
|
}
|
|
976
|
-
}), $o = { class: "list-unstyled" },
|
|
977
|
-
function
|
|
978
|
-
const i =
|
|
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");
|
|
979
984
|
return e.props.isVisible ? (u(), L(i, {
|
|
980
985
|
key: 0,
|
|
981
986
|
"background-color": "#7A00E6"
|
|
982
987
|
}, {
|
|
983
|
-
content:
|
|
984
|
-
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", {
|
|
985
990
|
key: l.title,
|
|
986
991
|
class: "list-unstyled"
|
|
987
992
|
}, [
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
(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", {
|
|
992
997
|
key: c.title
|
|
993
998
|
}, [
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
(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))
|
|
997
1002
|
])
|
|
998
1003
|
]))), 128))
|
|
999
1004
|
])
|
|
1000
1005
|
])
|
|
1001
1006
|
]))), 128))
|
|
1002
1007
|
]),
|
|
1003
|
-
default:
|
|
1008
|
+
default: x(() => [
|
|
1004
1009
|
P(e.IconQuestionCircle, { class: "icon" })
|
|
1005
1010
|
]),
|
|
1006
1011
|
_: 1
|
|
1007
|
-
})) :
|
|
1012
|
+
})) : se("", !0);
|
|
1008
1013
|
}
|
|
1009
|
-
const ut = /* @__PURE__ */
|
|
1014
|
+
const ut = /* @__PURE__ */ X(Oo, [["render", zo], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Mo = /* @__PURE__ */ Y({
|
|
1010
1015
|
__name: "index",
|
|
1011
1016
|
props: /* @__PURE__ */ ce({
|
|
1012
1017
|
config: {},
|
|
@@ -1014,7 +1019,6 @@ const ut = /* @__PURE__ */ Q(Oo, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1014
1019
|
required: { type: Boolean },
|
|
1015
1020
|
fieldKey: {},
|
|
1016
1021
|
modelValue: {},
|
|
1017
|
-
readonly: { type: Boolean },
|
|
1018
1022
|
validations: {},
|
|
1019
1023
|
triggers: {}
|
|
1020
1024
|
}, {
|
|
@@ -1023,7 +1027,7 @@ const ut = /* @__PURE__ */ Q(Oo, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1023
1027
|
}),
|
|
1024
1028
|
emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
1025
1029
|
setup(t, { expose: o, emit: n }) {
|
|
1026
|
-
const e = t, a = n, r = Se(t, "modelValue"), i = Ae("widgetRef"), l =
|
|
1030
|
+
const e = t, a = n, r = Se(t, "modelValue"), i = Ae("widgetRef"), l = z(() => {
|
|
1027
1031
|
switch (e.config?.widget?.widget) {
|
|
1028
1032
|
case "TextBox":
|
|
1029
1033
|
return Ye;
|
|
@@ -1034,7 +1038,7 @@ const ut = /* @__PURE__ */ Q(Oo, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1034
1038
|
case "Cascade":
|
|
1035
1039
|
return _o;
|
|
1036
1040
|
case "File":
|
|
1037
|
-
return
|
|
1041
|
+
return wo;
|
|
1038
1042
|
case "TextArea":
|
|
1039
1043
|
return So;
|
|
1040
1044
|
case "DropDown":
|
|
@@ -1044,23 +1048,23 @@ const ut = /* @__PURE__ */ Q(Oo, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1044
1048
|
default:
|
|
1045
1049
|
return Ye;
|
|
1046
1050
|
}
|
|
1047
|
-
}), c =
|
|
1048
|
-
c.value =
|
|
1049
|
-
}, d = (
|
|
1050
|
-
a("change",
|
|
1051
|
+
}), c = _(""), s = (p) => {
|
|
1052
|
+
c.value = p;
|
|
1053
|
+
}, d = (p, m) => {
|
|
1054
|
+
a("change", p, m);
|
|
1051
1055
|
};
|
|
1052
|
-
function
|
|
1056
|
+
function b() {
|
|
1053
1057
|
return e.config?.widget?.widget === "File";
|
|
1054
1058
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return
|
|
1059
|
+
function y(p) {
|
|
1060
|
+
return p === "OtherInformationText" ? "Other Information" : p;
|
|
1057
1061
|
}
|
|
1058
1062
|
o({
|
|
1059
1063
|
isFileUpload() {
|
|
1060
1064
|
return e.config?.widget?.widget === "File";
|
|
1061
1065
|
},
|
|
1062
|
-
submit(
|
|
1063
|
-
return
|
|
1066
|
+
submit(p) {
|
|
1067
|
+
return b() ? i.value.submit(p) : Promise.resolve(p);
|
|
1064
1068
|
},
|
|
1065
1069
|
validate() {
|
|
1066
1070
|
return i.value?.validate();
|
|
@@ -1069,8 +1073,8 @@ const ut = /* @__PURE__ */ Q(Oo, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1069
1073
|
return e?.config?.widget?.title;
|
|
1070
1074
|
}
|
|
1071
1075
|
});
|
|
1072
|
-
const
|
|
1073
|
-
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;
|
|
1074
1078
|
}
|
|
1075
1079
|
}), Eo = { class: "title" }, Ko = {
|
|
1076
1080
|
key: 0,
|
|
@@ -1080,17 +1084,17 @@ const ut = /* @__PURE__ */ Q(Oo, [["render", jo], ["__scopeId", "data-v-1d3893b1
|
|
|
1080
1084
|
class: "err-msg"
|
|
1081
1085
|
};
|
|
1082
1086
|
function Go(t, o, n, e, a, r) {
|
|
1083
|
-
return u(),
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
e.props.required || e.props.config.validations.some((i) => i.ruleName === "Required") ? (u(),
|
|
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),
|
|
1087
1091
|
P(e.ToolTip, {
|
|
1088
1092
|
"is-visible": e.props.config.widget?.isVisible ?? !1,
|
|
1089
1093
|
"output-text": e.props.config.widget?.outputText ?? []
|
|
1090
1094
|
}, null, 8, ["is-visible", "output-text"])
|
|
1091
1095
|
]),
|
|
1092
|
-
|
|
1093
|
-
(u(), L(
|
|
1096
|
+
S("div", null, [
|
|
1097
|
+
(u(), L(je(e.curComp), {
|
|
1094
1098
|
ref: "widgetRef",
|
|
1095
1099
|
modelValue: e.model,
|
|
1096
1100
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => e.model = i),
|
|
@@ -1102,11 +1106,11 @@ function Go(t, o, n, e, a, r) {
|
|
|
1102
1106
|
onError: e.errHandler,
|
|
1103
1107
|
onChange: e.changeHandler
|
|
1104
1108
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
1105
|
-
e.errMsg.length > 0 ? (u(),
|
|
1109
|
+
e.errMsg.length > 0 ? (u(), w("div", Wo, q(e.errMsg), 1)) : se("", !0)
|
|
1106
1110
|
])
|
|
1107
1111
|
]);
|
|
1108
1112
|
}
|
|
1109
|
-
const Ie = /* @__PURE__ */
|
|
1113
|
+
const Ie = /* @__PURE__ */ X(Mo, [["render", Go], ["__scopeId", "data-v-67595df1"], ["__file", "index.vue"]]), qo = /* @__PURE__ */ Y({
|
|
1110
1114
|
__name: "SubmitButton",
|
|
1111
1115
|
props: {
|
|
1112
1116
|
url: {},
|
|
@@ -1125,19 +1129,19 @@ const Ie = /* @__PURE__ */ Q(zo, [["render", Go], ["__scopeId", "data-v-67595df1
|
|
|
1125
1129
|
}
|
|
1126
1130
|
});
|
|
1127
1131
|
function Yo(t, o, n, e, a, r) {
|
|
1128
|
-
const i =
|
|
1132
|
+
const i = T("AButton");
|
|
1129
1133
|
return u(), L(i, {
|
|
1130
1134
|
loading: n.loading,
|
|
1131
1135
|
type: "primary",
|
|
1132
1136
|
onClick: e.clickHandler
|
|
1133
1137
|
}, {
|
|
1134
|
-
default:
|
|
1138
|
+
default: x(() => [
|
|
1135
1139
|
ue(t.$slots, "default")
|
|
1136
1140
|
]),
|
|
1137
1141
|
_: 3
|
|
1138
1142
|
}, 8, ["loading"]);
|
|
1139
1143
|
}
|
|
1140
|
-
const Ze = /* @__PURE__ */
|
|
1144
|
+
const Ze = /* @__PURE__ */ X(qo, [["render", Yo], ["__file", "SubmitButton.vue"]]), Qo = /* @__PURE__ */ Y({
|
|
1141
1145
|
__name: "DetailLink",
|
|
1142
1146
|
props: {
|
|
1143
1147
|
url: {},
|
|
@@ -1156,15 +1160,15 @@ const Ze = /* @__PURE__ */ Q(qo, [["render", Yo], ["__file", "SubmitButton.vue"]
|
|
|
1156
1160
|
}
|
|
1157
1161
|
});
|
|
1158
1162
|
function Jo(t, o, n, e, a, r) {
|
|
1159
|
-
const i =
|
|
1163
|
+
const i = T("ALink");
|
|
1160
1164
|
return u(), L(i, { onClick: e.clickHandler }, {
|
|
1161
|
-
default:
|
|
1165
|
+
default: x(() => [
|
|
1162
1166
|
ue(t.$slots, "default")
|
|
1163
1167
|
]),
|
|
1164
1168
|
_: 3
|
|
1165
1169
|
});
|
|
1166
1170
|
}
|
|
1167
|
-
const Zo = /* @__PURE__ */
|
|
1171
|
+
const Zo = /* @__PURE__ */ X(Qo, [["render", Jo], ["__file", "DetailLink.vue"]]), Xo = /* @__PURE__ */ Y({
|
|
1168
1172
|
__name: "index",
|
|
1169
1173
|
props: {
|
|
1170
1174
|
config: {},
|
|
@@ -1174,10 +1178,10 @@ const Zo = /* @__PURE__ */ Q(Qo, [["render", Jo], ["__file", "DetailLink.vue"]])
|
|
|
1174
1178
|
setup(t, { expose: o, emit: n }) {
|
|
1175
1179
|
o();
|
|
1176
1180
|
const e = t, a = n;
|
|
1177
|
-
function r(d,
|
|
1178
|
-
a("click", e.config.widget, d,
|
|
1181
|
+
function r(d, b) {
|
|
1182
|
+
a("click", e.config.widget, d, b, e.config.title);
|
|
1179
1183
|
}
|
|
1180
|
-
const i =
|
|
1184
|
+
const i = z(() => {
|
|
1181
1185
|
switch (e.config.location) {
|
|
1182
1186
|
case "InOperation":
|
|
1183
1187
|
return Ze;
|
|
@@ -1186,24 +1190,24 @@ const Zo = /* @__PURE__ */ Q(Qo, [["render", Jo], ["__file", "DetailLink.vue"]])
|
|
|
1186
1190
|
default:
|
|
1187
1191
|
return Ze;
|
|
1188
1192
|
}
|
|
1189
|
-
}), l =
|
|
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 };
|
|
1190
1194
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
1191
1195
|
}
|
|
1192
1196
|
});
|
|
1193
1197
|
function en(t, o, n, e, a, r) {
|
|
1194
|
-
return u(), L(
|
|
1198
|
+
return u(), L(je(e.curComp), {
|
|
1195
1199
|
url: e.curUrl,
|
|
1196
1200
|
"redirect-type": e.redirectType,
|
|
1197
1201
|
loading: n.loading,
|
|
1198
1202
|
onClick: e.clickHandler
|
|
1199
1203
|
}, {
|
|
1200
|
-
default:
|
|
1201
|
-
|
|
1204
|
+
default: x(() => [
|
|
1205
|
+
ae(q(e.props.config.title), 1)
|
|
1202
1206
|
]),
|
|
1203
1207
|
_: 1
|
|
1204
1208
|
}, 8, ["url", "redirect-type", "loading"]);
|
|
1205
1209
|
}
|
|
1206
|
-
const Pe = /* @__PURE__ */
|
|
1210
|
+
const Pe = /* @__PURE__ */ X(Xo, [["render", en], ["__file", "index.vue"]]), ft = Symbol("library-triggers");
|
|
1207
1211
|
function Ee() {
|
|
1208
1212
|
const t = be(ft, null);
|
|
1209
1213
|
return t || {};
|
|
@@ -1215,7 +1219,7 @@ function Fe() {
|
|
|
1215
1219
|
function Ne() {
|
|
1216
1220
|
return be(mt, null);
|
|
1217
1221
|
}
|
|
1218
|
-
const on = /* @__PURE__ */
|
|
1222
|
+
const on = /* @__PURE__ */ Y({
|
|
1219
1223
|
__name: "TopBar",
|
|
1220
1224
|
props: {
|
|
1221
1225
|
title: {},
|
|
@@ -1229,25 +1233,25 @@ const on = /* @__PURE__ */ W({
|
|
|
1229
1233
|
}
|
|
1230
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" };
|
|
1231
1235
|
function dn(t, o, n, e, a, r) {
|
|
1232
|
-
const i =
|
|
1233
|
-
return u(),
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
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)
|
|
1237
1241
|
]),
|
|
1238
|
-
|
|
1242
|
+
S("div", ln, [
|
|
1239
1243
|
P(l, { trigger: "click" }, {
|
|
1240
|
-
content:
|
|
1241
|
-
|
|
1244
|
+
content: x(() => [
|
|
1245
|
+
S("div", cn, q(n.email), 1)
|
|
1242
1246
|
]),
|
|
1243
|
-
default:
|
|
1247
|
+
default: x(() => [
|
|
1244
1248
|
P(i, {
|
|
1245
1249
|
size: 48,
|
|
1246
1250
|
autoFixFontSize: "",
|
|
1247
1251
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
1248
1252
|
}, {
|
|
1249
|
-
default:
|
|
1250
|
-
|
|
1253
|
+
default: x(() => [
|
|
1254
|
+
ae(q(n.email.charAt(0).toUpperCase()), 1)
|
|
1251
1255
|
]),
|
|
1252
1256
|
_: 1
|
|
1253
1257
|
})
|
|
@@ -1257,9 +1261,9 @@ function dn(t, o, n, e, a, r) {
|
|
|
1257
1261
|
])
|
|
1258
1262
|
]);
|
|
1259
1263
|
}
|
|
1260
|
-
const Re = /* @__PURE__ */
|
|
1264
|
+
const Re = /* @__PURE__ */ X(on, [["render", dn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
1261
1265
|
function Ke(t) {
|
|
1262
|
-
const o =
|
|
1266
|
+
const o = ze(), n = [];
|
|
1263
1267
|
if (o.fieldsGroup) {
|
|
1264
1268
|
o.fieldsGroup.forEach((r) => {
|
|
1265
1269
|
const i = r.keys.map((l) => t.find((c) => c.fieldKey === l)).filter(Boolean);
|
|
@@ -1311,7 +1315,7 @@ class Ve {
|
|
|
1311
1315
|
return this.opt ? qe(this.pageActionType, this.className, this.store, this.opt) : qe(this.pageActionType, this.className, this.store);
|
|
1312
1316
|
}
|
|
1313
1317
|
getBtnList() {
|
|
1314
|
-
return
|
|
1318
|
+
return Lt(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
|
|
1315
1319
|
}
|
|
1316
1320
|
getFiles() {
|
|
1317
1321
|
return this.getWorkflowId() ? Yt(this.className, this.getWorkflowId()) : Promise.resolve({});
|
|
@@ -1341,7 +1345,7 @@ class Ve {
|
|
|
1341
1345
|
return oo(o);
|
|
1342
1346
|
}
|
|
1343
1347
|
}
|
|
1344
|
-
const un = /* @__PURE__ */
|
|
1348
|
+
const un = /* @__PURE__ */ Y({
|
|
1345
1349
|
__name: "CreateView",
|
|
1346
1350
|
props: {
|
|
1347
1351
|
className: {},
|
|
@@ -1349,7 +1353,7 @@ const un = /* @__PURE__ */ W({
|
|
|
1349
1353
|
},
|
|
1350
1354
|
setup(t, { expose: o }) {
|
|
1351
1355
|
o();
|
|
1352
|
-
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 = _({
|
|
1353
1357
|
pageType: "",
|
|
1354
1358
|
fields: {},
|
|
1355
1359
|
globalValidations: [],
|
|
@@ -1364,136 +1368,151 @@ const un = /* @__PURE__ */ W({
|
|
|
1364
1368
|
workFlowReason: "",
|
|
1365
1369
|
workflowId: ""
|
|
1366
1370
|
}
|
|
1367
|
-
}), d =
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1370
|
-
fieldKey:
|
|
1371
|
-
...
|
|
1372
|
-
})).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)) : [];
|
|
1373
1377
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1376
|
-
(
|
|
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),
|
|
1377
1381
|
{}
|
|
1378
1382
|
) : [];
|
|
1379
1383
|
}
|
|
1380
|
-
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
|
+
}
|
|
1381
1400
|
ge(async () => {
|
|
1382
|
-
|
|
1383
|
-
const
|
|
1384
|
-
s.value = await
|
|
1385
|
-
const
|
|
1386
|
-
r.Test?.({ fieldValue:
|
|
1387
|
-
for (const
|
|
1388
|
-
if (s.value.fields[
|
|
1389
|
-
const
|
|
1390
|
-
|
|
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 = []);
|
|
1391
1410
|
}
|
|
1392
|
-
m.value[
|
|
1411
|
+
m.value[h] = s.value.fields[h].modelValue;
|
|
1393
1412
|
}
|
|
1394
|
-
|
|
1413
|
+
C.value = !1;
|
|
1395
1414
|
});
|
|
1396
|
-
function
|
|
1415
|
+
function ie() {
|
|
1397
1416
|
return e()?.userInfo?.email_address ?? "";
|
|
1398
1417
|
}
|
|
1399
|
-
async function
|
|
1400
|
-
switch (
|
|
1401
|
-
case
|
|
1402
|
-
let
|
|
1403
|
-
if (i.value?.forEach((
|
|
1404
|
-
|
|
1405
|
-
}), !
|
|
1418
|
+
async function le(v, I, h, f, F) {
|
|
1419
|
+
switch (I) {
|
|
1420
|
+
case te.Submit:
|
|
1421
|
+
let B = !0;
|
|
1422
|
+
if (i.value?.forEach((E) => {
|
|
1423
|
+
E?.validate && (E.validate() || (B = !1));
|
|
1424
|
+
}), !B) {
|
|
1406
1425
|
l?.appContext.config.globalProperties.$message.error(
|
|
1407
1426
|
"form validation failed, please check the input fields"
|
|
1408
1427
|
);
|
|
1409
1428
|
return;
|
|
1410
1429
|
}
|
|
1411
|
-
|
|
1430
|
+
C.value = !0;
|
|
1412
1431
|
try {
|
|
1413
|
-
r[
|
|
1414
|
-
const
|
|
1415
|
-
...m.value,
|
|
1416
|
-
...
|
|
1432
|
+
r[F]?.({ message: `${F} action triggered` });
|
|
1433
|
+
const E = {
|
|
1434
|
+
...W(m.value),
|
|
1435
|
+
...b.value
|
|
1417
1436
|
};
|
|
1418
|
-
r.createPageBeforeSubmit?.(
|
|
1419
|
-
const
|
|
1437
|
+
r.createPageBeforeSubmit?.(E);
|
|
1438
|
+
const g = await Ht(
|
|
1420
1439
|
c.className,
|
|
1421
|
-
|
|
1422
|
-
|
|
1440
|
+
E,
|
|
1441
|
+
h
|
|
1423
1442
|
);
|
|
1424
|
-
r[`${
|
|
1443
|
+
r[`${F}Success` || ""]?.({
|
|
1425
1444
|
message: "Workflow created successfully",
|
|
1426
1445
|
workflowId: c.workflowId,
|
|
1427
|
-
res:
|
|
1446
|
+
res: g
|
|
1428
1447
|
});
|
|
1429
|
-
const
|
|
1430
|
-
await Promise.all(
|
|
1431
|
-
`Your grading request has been submitted, ID is ${
|
|
1432
|
-
), 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() } });
|
|
1433
1452
|
} catch {
|
|
1434
1453
|
l?.appContext.config.globalProperties.$notification.error(
|
|
1435
1454
|
"Failed to submit your grading request"
|
|
1436
|
-
),
|
|
1455
|
+
), C.value = !1;
|
|
1437
1456
|
}
|
|
1438
1457
|
break;
|
|
1439
|
-
case
|
|
1458
|
+
case te.Link:
|
|
1440
1459
|
try {
|
|
1441
|
-
await r[
|
|
1442
|
-
name:
|
|
1460
|
+
await r[v.eventName || ""]?.(m.value, V), a.push({
|
|
1461
|
+
name: f,
|
|
1443
1462
|
params: { className: c.className }
|
|
1444
|
-
}), await r[`${
|
|
1445
|
-
message: `Router to ${
|
|
1463
|
+
}), await r[`${v.eventName || ""}Success`]?.({
|
|
1464
|
+
message: `Router to ${f} pushed`
|
|
1446
1465
|
});
|
|
1447
|
-
} catch (
|
|
1448
|
-
console.error("Error in link action trigger:",
|
|
1466
|
+
} catch (E) {
|
|
1467
|
+
console.error("Error in link action trigger:", E);
|
|
1449
1468
|
}
|
|
1450
1469
|
break;
|
|
1451
1470
|
default:
|
|
1452
|
-
console.warn("Unknown action type:",
|
|
1471
|
+
console.warn("Unknown action type:", I);
|
|
1453
1472
|
}
|
|
1454
1473
|
}
|
|
1455
|
-
const
|
|
1474
|
+
const re = [
|
|
1456
1475
|
"jobScpope",
|
|
1457
1476
|
"currentWorkdayId",
|
|
1458
1477
|
"originalGrade",
|
|
1459
1478
|
"jobTitlePrevious",
|
|
1460
1479
|
"jobAttachmentPrevious",
|
|
1461
1480
|
"positionId"
|
|
1462
|
-
],
|
|
1463
|
-
function
|
|
1464
|
-
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));
|
|
1465
1484
|
}
|
|
1466
|
-
const
|
|
1467
|
-
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;
|
|
1468
1487
|
}
|
|
1469
1488
|
}), fn = { class: "page-container" }, pn = { class: "page-body" }, mn = { class: "form-card" }, gn = { class: "form-fields-vertical" }, _n = { class: "form-fields" }, vn = {
|
|
1470
1489
|
key: 0,
|
|
1471
1490
|
class: "form-content"
|
|
1472
|
-
}, hn = { class: "page-footer" }, bn = { class: "action-container" },
|
|
1473
|
-
function
|
|
1474
|
-
const i =
|
|
1475
|
-
return u(),
|
|
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, [
|
|
1476
1495
|
P(e.TopBar, {
|
|
1477
1496
|
title: e.pageData.banner.title,
|
|
1478
1497
|
subTitle: e.pageData.banner.subTitle,
|
|
1479
1498
|
email: e.getApproverEmail()
|
|
1480
1499
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1481
|
-
|
|
1500
|
+
S("div", pn, [
|
|
1482
1501
|
P(l, {
|
|
1483
1502
|
loading: e.loading,
|
|
1484
1503
|
class: "form-container"
|
|
1485
1504
|
}, {
|
|
1486
|
-
default:
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
(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, {
|
|
1490
1509
|
key: c.name,
|
|
1491
1510
|
title: c.name,
|
|
1492
1511
|
style: { "margin-bottom": "24px" }
|
|
1493
1512
|
}, {
|
|
1494
|
-
default:
|
|
1495
|
-
|
|
1496
|
-
(u(!0),
|
|
1513
|
+
default: x(() => [
|
|
1514
|
+
S("div", _n, [
|
|
1515
|
+
(u(!0), w(j, null, G(c.fields, (s) => (u(), L(e.DataWidgets, {
|
|
1497
1516
|
key: s.fieldKey,
|
|
1498
1517
|
ref_for: !0,
|
|
1499
1518
|
ref: "dataWidgets",
|
|
@@ -1510,19 +1529,19 @@ function wn(t, o, n, e, a, r) {
|
|
|
1510
1529
|
_: 2
|
|
1511
1530
|
}, 1032, ["title"]))), 128))
|
|
1512
1531
|
]),
|
|
1513
|
-
t.$slots.content ? (u(),
|
|
1532
|
+
t.$slots.content ? (u(), w("div", vn, [
|
|
1514
1533
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
1515
|
-
])) :
|
|
1534
|
+
])) : se("", !0)
|
|
1516
1535
|
])
|
|
1517
1536
|
]),
|
|
1518
1537
|
_: 3
|
|
1519
1538
|
}, 8, ["loading"])
|
|
1520
1539
|
]),
|
|
1521
|
-
|
|
1522
|
-
|
|
1540
|
+
S("div", hn, [
|
|
1541
|
+
S("div", bn, [
|
|
1523
1542
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
1524
|
-
|
|
1525
|
-
(u(!0),
|
|
1543
|
+
S("div", wn, [
|
|
1544
|
+
(u(!0), w(j, null, G(e.reversedActions, (c) => (u(), L(e.ActionButton, {
|
|
1526
1545
|
key: c.title,
|
|
1527
1546
|
loading: e.loading,
|
|
1528
1547
|
config: c,
|
|
@@ -1534,7 +1553,7 @@ function wn(t, o, n, e, a, r) {
|
|
|
1534
1553
|
])
|
|
1535
1554
|
]);
|
|
1536
1555
|
}
|
|
1537
|
-
const kn = /* @__PURE__ */
|
|
1556
|
+
const kn = /* @__PURE__ */ X(un, [["render", yn], ["__scopeId", "data-v-89686fdd"], ["__file", "CreateView.vue"]]), Sn = /* @__PURE__ */ Y({
|
|
1538
1557
|
__name: "UpdateView",
|
|
1539
1558
|
props: {
|
|
1540
1559
|
className: {},
|
|
@@ -1542,7 +1561,7 @@ const kn = /* @__PURE__ */ Q(un, [["render", wn], ["__scopeId", "data-v-31413447
|
|
|
1542
1561
|
},
|
|
1543
1562
|
setup(t, { expose: o }) {
|
|
1544
1563
|
o();
|
|
1545
|
-
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 = _({
|
|
1546
1565
|
pageType: "",
|
|
1547
1566
|
fields: {},
|
|
1548
1567
|
globalValidations: [],
|
|
@@ -1557,105 +1576,105 @@ const kn = /* @__PURE__ */ Q(un, [["render", wn], ["__scopeId", "data-v-31413447
|
|
|
1557
1576
|
workFlowReason: "",
|
|
1558
1577
|
workflowId: ""
|
|
1559
1578
|
}
|
|
1560
|
-
}), d =
|
|
1561
|
-
function
|
|
1562
|
-
return V ? Object.entries(V).map(([
|
|
1563
|
-
fieldKey:
|
|
1564
|
-
...
|
|
1565
|
-
})).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)) : [];
|
|
1566
1585
|
}
|
|
1567
|
-
function
|
|
1568
|
-
return V ? Object.entries(V).filter(([
|
|
1586
|
+
function k(V) {
|
|
1587
|
+
return V ? Object.entries(V).filter(([H, M]) => M.dependent).reduce((H, [M, v]) => (H[M] = v.dependent, H), {}) : [];
|
|
1569
1588
|
}
|
|
1570
|
-
const
|
|
1589
|
+
const p = z(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = _({}), C = _(!1);
|
|
1571
1590
|
ge(async () => {
|
|
1572
|
-
|
|
1591
|
+
C.value = !0;
|
|
1573
1592
|
const V = new Ue().setPageActionType(he.Update).setClassName(c.className).setStore({ svrStore: a, bpmStore: r }).setWorkflowId(c.workflowId).build();
|
|
1574
1593
|
s.value = await V.getPageData();
|
|
1575
|
-
const
|
|
1576
|
-
s.value.actions = s.value.actions?.filter((
|
|
1577
|
-
const
|
|
1578
|
-
return
|
|
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;
|
|
1579
1598
|
});
|
|
1580
|
-
const
|
|
1581
|
-
e.Test?.({ fieldValue:
|
|
1582
|
-
for (const
|
|
1583
|
-
if (s.value.fields[
|
|
1584
|
-
const
|
|
1585
|
-
|
|
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));
|
|
1586
1605
|
}
|
|
1587
|
-
m.value[
|
|
1606
|
+
m.value[v] = s.value.fields[v].modelValue;
|
|
1588
1607
|
}
|
|
1589
|
-
|
|
1608
|
+
C.value = !1;
|
|
1590
1609
|
});
|
|
1591
|
-
function
|
|
1610
|
+
function ee() {
|
|
1592
1611
|
return a()?.userInfo?.email_address ?? "";
|
|
1593
1612
|
}
|
|
1594
|
-
async function
|
|
1595
|
-
switch (
|
|
1596
|
-
case
|
|
1597
|
-
let
|
|
1598
|
-
if (i.value?.forEach((
|
|
1599
|
-
|
|
1600
|
-
}), !
|
|
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) {
|
|
1601
1620
|
l?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1602
1621
|
return;
|
|
1603
1622
|
}
|
|
1604
|
-
|
|
1623
|
+
C.value = !0;
|
|
1605
1624
|
try {
|
|
1606
|
-
const
|
|
1607
|
-
e.updatePageBeforeSubmit?.(
|
|
1608
|
-
const
|
|
1609
|
-
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()}.`);
|
|
1610
1629
|
} catch {
|
|
1611
|
-
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;
|
|
1612
1631
|
}
|
|
1613
1632
|
break;
|
|
1614
|
-
case
|
|
1633
|
+
case te.Link:
|
|
1615
1634
|
try {
|
|
1616
|
-
await e[V.eventName || ""]?.(m.value,
|
|
1635
|
+
await e[V.eventName || ""]?.(m.value, W), n.push({ name: M, params: { className: c.className } });
|
|
1617
1636
|
} catch {
|
|
1618
1637
|
}
|
|
1619
1638
|
break;
|
|
1620
1639
|
default:
|
|
1621
|
-
console.warn("Unknown action type:",
|
|
1640
|
+
console.warn("Unknown action type:", $);
|
|
1622
1641
|
}
|
|
1623
1642
|
}
|
|
1624
|
-
const
|
|
1625
|
-
function
|
|
1626
|
-
e[V]?.({ fieldValue:
|
|
1643
|
+
const W = _([]);
|
|
1644
|
+
function ie(V, $) {
|
|
1645
|
+
e[V]?.({ fieldValue: $, hiddenFields: W, formData: m }), s.value && (d.value = y(s.value.fields));
|
|
1627
1646
|
}
|
|
1628
|
-
const le =
|
|
1629
|
-
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;
|
|
1630
1649
|
}
|
|
1631
1650
|
}), Cn = { class: "page-container" }, xn = { class: "page-body" }, Tn = { class: "form-card" }, Vn = { class: "form-fields-vertical" }, An = { class: "form-fields" }, In = {
|
|
1632
1651
|
key: 0,
|
|
1633
1652
|
class: "form-content"
|
|
1634
1653
|
}, Pn = { class: "page-footer" }, Fn = { class: "action-container" }, Nn = { class: "action-buttons" };
|
|
1635
1654
|
function Rn(t, o, n, e, a, r) {
|
|
1636
|
-
const i =
|
|
1637
|
-
return u(),
|
|
1655
|
+
const i = T("a-card"), l = T("a-spin");
|
|
1656
|
+
return u(), w("div", Cn, [
|
|
1638
1657
|
P(e.TopBar, {
|
|
1639
1658
|
title: e.pageData.banner.title,
|
|
1640
1659
|
subTitle: e.pageData.banner.subTitle,
|
|
1641
1660
|
email: e.getApproverEmail()
|
|
1642
1661
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1643
|
-
|
|
1662
|
+
S("div", xn, [
|
|
1644
1663
|
P(l, {
|
|
1645
1664
|
loading: e.loading,
|
|
1646
1665
|
class: "form-container"
|
|
1647
1666
|
}, {
|
|
1648
|
-
default:
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
(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, {
|
|
1652
1671
|
key: c.name,
|
|
1653
1672
|
title: c.name,
|
|
1654
1673
|
style: { "margin-bottom": "24px" }
|
|
1655
1674
|
}, {
|
|
1656
|
-
default:
|
|
1657
|
-
|
|
1658
|
-
(u(!0),
|
|
1675
|
+
default: x(() => [
|
|
1676
|
+
S("div", An, [
|
|
1677
|
+
(u(!0), w(j, null, G(c.fields, (s) => (u(), L(e.DataWidgets, {
|
|
1659
1678
|
key: s.fieldKey,
|
|
1660
1679
|
ref_for: !0,
|
|
1661
1680
|
ref: "dataWidgets",
|
|
@@ -1672,19 +1691,19 @@ function Rn(t, o, n, e, a, r) {
|
|
|
1672
1691
|
_: 2
|
|
1673
1692
|
}, 1032, ["title"]))), 128))
|
|
1674
1693
|
]),
|
|
1675
|
-
t.$slots.content ? (u(),
|
|
1694
|
+
t.$slots.content ? (u(), w("div", In, [
|
|
1676
1695
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
1677
|
-
])) :
|
|
1696
|
+
])) : se("", !0)
|
|
1678
1697
|
])
|
|
1679
1698
|
]),
|
|
1680
1699
|
_: 3
|
|
1681
1700
|
}, 8, ["loading"])
|
|
1682
1701
|
]),
|
|
1683
|
-
|
|
1684
|
-
|
|
1702
|
+
S("div", Pn, [
|
|
1703
|
+
S("div", Fn, [
|
|
1685
1704
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
1686
|
-
|
|
1687
|
-
(u(!0),
|
|
1705
|
+
S("div", Nn, [
|
|
1706
|
+
(u(!0), w(j, null, G(e.reversedActions, (c) => (u(), L(e.ActionButton, {
|
|
1688
1707
|
key: c.title,
|
|
1689
1708
|
loading: e.loading,
|
|
1690
1709
|
config: c,
|
|
@@ -1696,11 +1715,11 @@ function Rn(t, o, n, e, a, r) {
|
|
|
1696
1715
|
])
|
|
1697
1716
|
]);
|
|
1698
1717
|
}
|
|
1699
|
-
const Un = /* @__PURE__ */
|
|
1700
|
-
function
|
|
1718
|
+
const Un = /* @__PURE__ */ X(Sn, [["render", Rn], ["__scopeId", "data-v-605f261e"], ["__file", "UpdateView.vue"]]), gt = Symbol("library-custom-comp");
|
|
1719
|
+
function Dn() {
|
|
1701
1720
|
return be(gt, null);
|
|
1702
1721
|
}
|
|
1703
|
-
const
|
|
1722
|
+
const Ln = /* @__PURE__ */ Y({
|
|
1704
1723
|
__name: "DetailView",
|
|
1705
1724
|
props: {
|
|
1706
1725
|
className: {},
|
|
@@ -1708,9 +1727,9 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1708
1727
|
},
|
|
1709
1728
|
setup(t, { expose: o }) {
|
|
1710
1729
|
o();
|
|
1711
|
-
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;
|
|
1712
1731
|
let s;
|
|
1713
|
-
const d =
|
|
1732
|
+
const d = _({
|
|
1714
1733
|
pageType: "",
|
|
1715
1734
|
fields: {},
|
|
1716
1735
|
globalValidations: [],
|
|
@@ -1725,33 +1744,33 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1725
1744
|
workFlowReason: "",
|
|
1726
1745
|
workflowId: ""
|
|
1727
1746
|
}
|
|
1728
|
-
}),
|
|
1729
|
-
function
|
|
1730
|
-
return N ? Object.entries(N).map(([
|
|
1747
|
+
}), b = _([]), y = Ae("dataWidgets");
|
|
1748
|
+
function k(N) {
|
|
1749
|
+
return N ? Object.entries(N).map(([Q, R]) => {
|
|
1731
1750
|
typeof R.modelValue == "boolean" ? R.fieldValue = R.modelValue ? "Yes" : "No" : R.fieldValue = R.modelValue;
|
|
1732
|
-
const
|
|
1733
|
-
fieldKey:
|
|
1751
|
+
const K = {
|
|
1752
|
+
fieldKey: Q,
|
|
1734
1753
|
...R
|
|
1735
1754
|
};
|
|
1736
|
-
return
|
|
1755
|
+
return K.widget?.readonly || K.validations?.some(
|
|
1737
1756
|
(pe) => pe.ruleName === "Required"
|
|
1738
|
-
) ?
|
|
1739
|
-
...
|
|
1757
|
+
) ? K : {
|
|
1758
|
+
...K,
|
|
1740
1759
|
validations: [
|
|
1741
|
-
...
|
|
1760
|
+
...K.validations || [],
|
|
1742
1761
|
{
|
|
1743
1762
|
ruleName: "Required",
|
|
1744
1763
|
ruleParameter: "",
|
|
1745
|
-
errorMessage: `${fe(
|
|
1764
|
+
errorMessage: `${fe(K.widget?.title) || K.fieldKey} is required`
|
|
1746
1765
|
}
|
|
1747
1766
|
]
|
|
1748
1767
|
};
|
|
1749
|
-
}).filter((
|
|
1768
|
+
}).filter((Q) => Q.widget && Q.widget.widget !== "Hidden").filter((Q) => !$.value.includes(Q.fieldKey)) : [];
|
|
1750
1769
|
}
|
|
1751
|
-
const
|
|
1752
|
-
const
|
|
1753
|
-
return N.map((R,
|
|
1754
|
-
const
|
|
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 = {
|
|
1755
1774
|
id: R.id,
|
|
1756
1775
|
title: "",
|
|
1757
1776
|
proxy: "",
|
|
@@ -1760,97 +1779,97 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1760
1779
|
status: 1,
|
|
1761
1780
|
time: ""
|
|
1762
1781
|
};
|
|
1763
|
-
|
|
1764
|
-
const pe = R.workflowProcessApprovers[R.workflowProcessApprovers.length - 1], Ce = R.workflowHistorys[R.workflowHistorys.length - 1],
|
|
1765
|
-
if (pe &&
|
|
1766
|
-
|
|
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;
|
|
1767
1786
|
else {
|
|
1768
|
-
const
|
|
1769
|
-
if (
|
|
1770
|
-
|
|
1771
|
-
else if (
|
|
1772
|
-
|
|
1773
|
-
else if (
|
|
1774
|
-
if (
|
|
1775
|
-
|
|
1787
|
+
const ne = R.workflowHistorys[R.workflowHistorys.length - 1];
|
|
1788
|
+
if (ne && ne.status === 100)
|
|
1789
|
+
D.time = Te(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 2, D.desc = "approve success!";
|
|
1790
|
+
else if (ne && ne.status === 999)
|
|
1791
|
+
D.time = Te(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 0, D.desc = "approve reject!";
|
|
1792
|
+
else if (ne)
|
|
1793
|
+
if (D.time = Te(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.sort === 1)
|
|
1794
|
+
D.status = 2, D.desc = "";
|
|
1776
1795
|
else {
|
|
1777
|
-
const xe =
|
|
1778
|
-
|
|
1796
|
+
const xe = ne.workflowHistoryApprovers[0];
|
|
1797
|
+
D.status = 3, D.desc = xe?.reason ? `Rejected reason: ${xe.reason}` : "Rejected";
|
|
1779
1798
|
}
|
|
1780
|
-
else
|
|
1781
|
-
|
|
1799
|
+
else K < Q || Q === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
|
|
1800
|
+
ne && ne.status;
|
|
1782
1801
|
}
|
|
1783
|
-
return
|
|
1802
|
+
return D;
|
|
1784
1803
|
});
|
|
1785
|
-
},
|
|
1804
|
+
}, oe = _([]), W = _(!1), ie = _(!1), le = _(!1), re = _(!1);
|
|
1786
1805
|
async function V() {
|
|
1787
1806
|
const N = await s.getBtnList();
|
|
1788
|
-
d.value.actions = d.value.actions?.filter((
|
|
1789
|
-
const
|
|
1790
|
-
return
|
|
1791
|
-
}),
|
|
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;
|
|
1792
1811
|
}
|
|
1793
|
-
const
|
|
1794
|
-
async function
|
|
1795
|
-
|
|
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();
|
|
1796
1815
|
const N = await s.getFiles();
|
|
1797
|
-
|
|
1798
|
-
const
|
|
1799
|
-
a.Test?.({ fieldValue:
|
|
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);
|
|
1800
1819
|
for (const R in d.value.fields)
|
|
1801
1820
|
if (d.value.fields[R].widget?.widget === "File") {
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1821
|
+
const K = b.value.find((D) => D.fieldKey === R);
|
|
1822
|
+
K && K.widget && (K.widget.files = N[R] ?? []);
|
|
1804
1823
|
}
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1824
|
+
const Q = await s.getProcess();
|
|
1825
|
+
oe.value = ee(Q, 0), C.value = !1;
|
|
1807
1826
|
}
|
|
1808
|
-
ge(
|
|
1809
|
-
async function
|
|
1810
|
-
return a[N]?.(
|
|
1827
|
+
ge(H);
|
|
1828
|
+
async function M(N, O) {
|
|
1829
|
+
return a[N]?.(O);
|
|
1811
1830
|
}
|
|
1812
|
-
function
|
|
1831
|
+
function v() {
|
|
1813
1832
|
return n()?.userInfo?.email_address ?? "";
|
|
1814
1833
|
}
|
|
1815
|
-
async function
|
|
1834
|
+
async function I(N, O, Q, R, K) {
|
|
1816
1835
|
try {
|
|
1817
|
-
switch (
|
|
1818
|
-
case
|
|
1819
|
-
let
|
|
1820
|
-
if (
|
|
1821
|
-
_e?.validate && !_e.validate() && (
|
|
1822
|
-
}), !
|
|
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) {
|
|
1823
1842
|
l?.appContext.config.globalProperties.$message.error(
|
|
1824
1843
|
"Please complete all required fields before submit."
|
|
1825
1844
|
);
|
|
1826
1845
|
return;
|
|
1827
1846
|
}
|
|
1828
|
-
const { reason: pe, ifGlobal: Ce } = await
|
|
1829
|
-
isGlobal:
|
|
1847
|
+
const { reason: pe, ifGlobal: Ce } = await M(K, {
|
|
1848
|
+
isGlobal: W.value
|
|
1830
1849
|
});
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1850
|
+
C.value = !0;
|
|
1851
|
+
const ye = b.value.find((_e) => _e.fieldKey === "approvedGrade")?.modelValue, ne = K === "Approve" ? "100" : "-1", xe = await Kt(
|
|
1833
1852
|
c.className,
|
|
1834
1853
|
c.workflowId,
|
|
1835
|
-
|
|
1854
|
+
v(),
|
|
1836
1855
|
pe,
|
|
1837
|
-
|
|
1838
|
-
|
|
1856
|
+
Q,
|
|
1857
|
+
ne,
|
|
1839
1858
|
Ce,
|
|
1840
1859
|
{
|
|
1841
|
-
approvedGrade:
|
|
1860
|
+
approvedGrade: ye
|
|
1842
1861
|
}
|
|
1843
1862
|
);
|
|
1844
|
-
await
|
|
1863
|
+
await M(`${K}Success`, {
|
|
1845
1864
|
workflowId: c.workflowId,
|
|
1846
1865
|
res: xe
|
|
1847
|
-
}),
|
|
1848
|
-
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.`;
|
|
1849
1868
|
l?.appContext.config.globalProperties.$notification.success(
|
|
1850
1869
|
_t
|
|
1851
|
-
),
|
|
1870
|
+
), H();
|
|
1852
1871
|
break;
|
|
1853
|
-
case
|
|
1872
|
+
case te.Link:
|
|
1854
1873
|
try {
|
|
1855
1874
|
await a[N.eventName || ""]?.(), r.push({
|
|
1856
1875
|
name: R,
|
|
@@ -1860,40 +1879,40 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1860
1879
|
console.error("Error in link action trigger:", _e);
|
|
1861
1880
|
}
|
|
1862
1881
|
break;
|
|
1863
|
-
case
|
|
1882
|
+
case te.Button:
|
|
1864
1883
|
await a[N.eventName || ""]?.({
|
|
1865
|
-
approvers:
|
|
1866
|
-
associators:
|
|
1867
|
-
isShowAssignSelect:
|
|
1884
|
+
approvers: B,
|
|
1885
|
+
associators: E,
|
|
1886
|
+
isShowAssignSelect: ie,
|
|
1868
1887
|
isShowAssignList: le,
|
|
1869
|
-
assignCallback:
|
|
1870
|
-
deleteAssociatorCallback:
|
|
1888
|
+
assignCallback: g,
|
|
1889
|
+
deleteAssociatorCallback: U
|
|
1871
1890
|
});
|
|
1872
1891
|
break;
|
|
1873
1892
|
default:
|
|
1874
|
-
console.warn("Unknown action type:",
|
|
1893
|
+
console.warn("Unknown action type:", O);
|
|
1875
1894
|
}
|
|
1876
1895
|
} catch {
|
|
1877
1896
|
}
|
|
1878
1897
|
}
|
|
1879
|
-
const
|
|
1880
|
-
async function
|
|
1898
|
+
const h = _(""), f = _([]), F = _(""), B = _([]), E = _([]);
|
|
1899
|
+
async function g(N) {
|
|
1881
1900
|
if (!N) {
|
|
1882
1901
|
l?.appContext.config.globalProperties.$message.error(
|
|
1883
1902
|
"Please select an approver"
|
|
1884
1903
|
);
|
|
1885
1904
|
return;
|
|
1886
1905
|
}
|
|
1887
|
-
await
|
|
1906
|
+
await A(
|
|
1888
1907
|
"Confirm Assign Approver",
|
|
1889
1908
|
"Do you want to assign the selected approver?"
|
|
1890
1909
|
);
|
|
1891
1910
|
try {
|
|
1892
|
-
await s.assignApprover(N),
|
|
1911
|
+
await s.assignApprover(N), E.value = await s.getAssociator(), V(), l?.appContext.config.globalProperties.$notification.success(
|
|
1893
1912
|
"Assign Approver clicked!"
|
|
1894
1913
|
);
|
|
1895
|
-
} catch (
|
|
1896
|
-
if (
|
|
1914
|
+
} catch (O) {
|
|
1915
|
+
if (O.status === 409) {
|
|
1897
1916
|
l?.appContext.config.globalProperties.$notification.error(
|
|
1898
1917
|
"This user is already an associator"
|
|
1899
1918
|
);
|
|
@@ -1904,22 +1923,22 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1904
1923
|
);
|
|
1905
1924
|
}
|
|
1906
1925
|
}
|
|
1907
|
-
async function
|
|
1908
|
-
const { Modal:
|
|
1909
|
-
return new Promise((R,
|
|
1910
|
-
|
|
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({
|
|
1911
1930
|
title: N,
|
|
1912
|
-
content:
|
|
1931
|
+
content: O,
|
|
1913
1932
|
okText: "OK",
|
|
1914
1933
|
cancelText: "Cancel",
|
|
1915
1934
|
onOk: () => R(!0),
|
|
1916
|
-
onCancel: () =>
|
|
1935
|
+
onCancel: () => K()
|
|
1917
1936
|
});
|
|
1918
1937
|
});
|
|
1919
1938
|
}
|
|
1920
|
-
async function
|
|
1939
|
+
async function U(N) {
|
|
1921
1940
|
try {
|
|
1922
|
-
await
|
|
1941
|
+
await A(
|
|
1923
1942
|
"Confirm Delete Associator",
|
|
1924
1943
|
"Do you want to delete this associator?"
|
|
1925
1944
|
);
|
|
@@ -1927,7 +1946,7 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1927
1946
|
return;
|
|
1928
1947
|
}
|
|
1929
1948
|
try {
|
|
1930
|
-
await s.deleteAssociator(N.toString()),
|
|
1949
|
+
await s.deleteAssociator(N.toString()), E.value = await s.getAssociator(), l?.appContext.config.globalProperties.$notification.success(
|
|
1931
1950
|
"Associator deleted successfully!"
|
|
1932
1951
|
);
|
|
1933
1952
|
} catch {
|
|
@@ -1937,13 +1956,13 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1937
1956
|
}
|
|
1938
1957
|
}
|
|
1939
1958
|
async function de() {
|
|
1940
|
-
if (!
|
|
1959
|
+
if (!h.value.trim()) {
|
|
1941
1960
|
l?.appContext.config.globalProperties.$message.error(
|
|
1942
1961
|
"Comment cannot be empty"
|
|
1943
1962
|
);
|
|
1944
1963
|
return;
|
|
1945
1964
|
}
|
|
1946
|
-
await s.addComments(
|
|
1965
|
+
await s.addComments(h.value.trim()), h.value = "", f.value = await s.getCommentsHistory(), l?.appContext.config.globalProperties.$notification.success(
|
|
1947
1966
|
"Add Comment clicked!"
|
|
1948
1967
|
);
|
|
1949
1968
|
}
|
|
@@ -1954,14 +1973,14 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1954
1973
|
return s;
|
|
1955
1974
|
}, set page(N) {
|
|
1956
1975
|
s = N;
|
|
1957
|
-
}, 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() {
|
|
1958
1977
|
return Ho;
|
|
1959
1978
|
}, TopBar: Re, get formatDate() {
|
|
1960
1979
|
return Te;
|
|
1961
1980
|
}, ToolTip: ut, DataWidgets: Ie };
|
|
1962
1981
|
return Object.defineProperty(We, "__isScriptSetup", { enumerable: !1, value: !0 }), We;
|
|
1963
1982
|
}
|
|
1964
|
-
}),
|
|
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 = {
|
|
1965
1984
|
key: 0,
|
|
1966
1985
|
class: "detail-field"
|
|
1967
1986
|
}, En = { class: "field-label" }, Kn = {
|
|
@@ -1975,56 +1994,56 @@ const Dn = /* @__PURE__ */ W({
|
|
|
1975
1994
|
class: "detail-content"
|
|
1976
1995
|
}, Yn = { class: "page-footer" }, Qn = { class: "action-container" }, Jn = { class: "action-buttons" };
|
|
1977
1996
|
function Zn(t, o, n, e, a, r) {
|
|
1978
|
-
const i =
|
|
1979
|
-
|
|
1980
|
-
const s =
|
|
1981
|
-
return u(),
|
|
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, [
|
|
1982
2001
|
P(e.TopBar, {
|
|
1983
2002
|
title: e.pageData.banner.title,
|
|
1984
2003
|
subTitle: e.pageData.banner.subTitle,
|
|
1985
2004
|
email: e.getApproverEmail()
|
|
1986
2005
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1987
|
-
|
|
1988
|
-
P(
|
|
2006
|
+
S("div", Hn, [
|
|
2007
|
+
P(k, {
|
|
1989
2008
|
loading: e.loading,
|
|
1990
2009
|
class: "detail-container"
|
|
1991
2010
|
}, {
|
|
1992
|
-
default:
|
|
1993
|
-
|
|
1994
|
-
(u(), L(
|
|
1995
|
-
|
|
1996
|
-
(u(!0),
|
|
1997
|
-
key:
|
|
1998
|
-
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,
|
|
1999
2018
|
style: { "margin-bottom": "24px" }
|
|
2000
2019
|
}, {
|
|
2001
|
-
default:
|
|
2002
|
-
|
|
2003
|
-
(u(!0),
|
|
2020
|
+
default: x(() => [
|
|
2021
|
+
S("div", jn, [
|
|
2022
|
+
(u(!0), w(j, null, G(p.fields, (m) => (u(), w("div", {
|
|
2004
2023
|
key: m.fieldKey,
|
|
2005
2024
|
class: "detail-field-wrapper"
|
|
2006
2025
|
}, [
|
|
2007
|
-
|
|
2008
|
-
m.widget?.readonly ? (u(),
|
|
2009
|
-
|
|
2010
|
-
|
|
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),
|
|
2011
2030
|
P(e.ToolTip, {
|
|
2012
2031
|
"is-visible": m.widget?.isVisible ?? !1,
|
|
2013
2032
|
"output-text": m.widget?.outputText ?? []
|
|
2014
2033
|
}, null, 8, ["is-visible", "output-text"])
|
|
2015
2034
|
]),
|
|
2016
|
-
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", {
|
|
2017
2036
|
class: "field-value",
|
|
2018
|
-
key:
|
|
2037
|
+
key: C.id
|
|
2019
2038
|
}, [
|
|
2020
2039
|
P(l, null, {
|
|
2021
|
-
default:
|
|
2022
|
-
|
|
2040
|
+
default: x(() => [
|
|
2041
|
+
ae(q(C.name) + " ", 1),
|
|
2023
2042
|
P(i, {
|
|
2024
|
-
href:
|
|
2043
|
+
href: C.url,
|
|
2025
2044
|
target: "_blank"
|
|
2026
2045
|
}, {
|
|
2027
|
-
default:
|
|
2046
|
+
default: x(() => [
|
|
2028
2047
|
P(e.IconDownload, { style: { color: "#7A00E6" } })
|
|
2029
2048
|
]),
|
|
2030
2049
|
_: 2
|
|
@@ -2032,8 +2051,8 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2032
2051
|
]),
|
|
2033
2052
|
_: 2
|
|
2034
2053
|
}, 1024)
|
|
2035
|
-
]))), 128)) : (u(),
|
|
2036
|
-
], 64)) : (u(),
|
|
2054
|
+
]))), 128)) : (u(), w("div", Kn, q(m.fieldValue), 1))
|
|
2055
|
+
], 64)) : (u(), w("div", Mn, [
|
|
2037
2056
|
P(e.DataWidgets, {
|
|
2038
2057
|
ref_for: !0,
|
|
2039
2058
|
ref: "dataWidgets",
|
|
@@ -2042,7 +2061,7 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2042
2061
|
config: m,
|
|
2043
2062
|
"class-name": n.className,
|
|
2044
2063
|
modelValue: m.modelValue,
|
|
2045
|
-
"onUpdate:modelValue": (
|
|
2064
|
+
"onUpdate:modelValue": (C) => m.modelValue = C,
|
|
2046
2065
|
class: "form-field"
|
|
2047
2066
|
}, null, 8, ["field-key", "name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
2048
2067
|
]))
|
|
@@ -2052,69 +2071,69 @@ function Zn(t, o, n, e, a, r) {
|
|
|
2052
2071
|
]),
|
|
2053
2072
|
_: 2
|
|
2054
2073
|
}, 1032, ["title"]))), 128)),
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
e.isShowCommentTextArea ? (u(),
|
|
2058
|
-
|
|
2059
|
-
o[6] || (o[6] =
|
|
2060
|
-
P(
|
|
2074
|
+
se("", !0),
|
|
2075
|
+
se("", !0),
|
|
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, {
|
|
2061
2080
|
modelValue: e.comment,
|
|
2062
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
2081
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => e.comment = p)
|
|
2063
2082
|
}, null, 8, ["modelValue"]),
|
|
2064
2083
|
P(s, {
|
|
2065
2084
|
type: "primary",
|
|
2066
2085
|
onClick: e.onAddComment
|
|
2067
2086
|
}, {
|
|
2068
|
-
default:
|
|
2069
|
-
|
|
2087
|
+
default: x(() => o[5] || (o[5] = [
|
|
2088
|
+
ae("Add Comment", -1)
|
|
2070
2089
|
])),
|
|
2071
2090
|
_: 1,
|
|
2072
2091
|
__: [5]
|
|
2073
2092
|
})
|
|
2074
2093
|
])
|
|
2075
|
-
])) :
|
|
2076
|
-
e.commentsHistory.length ? (u(), L(
|
|
2077
|
-
header:
|
|
2078
|
-
|
|
2094
|
+
])) : se("", !0),
|
|
2095
|
+
e.commentsHistory.length ? (u(), L(b, { key: 3 }, {
|
|
2096
|
+
header: x(() => o[7] || (o[7] = [
|
|
2097
|
+
ae(" Comments History ", -1)
|
|
2079
2098
|
])),
|
|
2080
|
-
default:
|
|
2081
|
-
(u(!0),
|
|
2082
|
-
key:
|
|
2099
|
+
default: x(() => [
|
|
2100
|
+
(u(!0), w(j, null, G(e.commentsHistory, (p) => (u(), L(d, {
|
|
2101
|
+
key: p.associator
|
|
2083
2102
|
}, {
|
|
2084
|
-
default:
|
|
2085
|
-
|
|
2103
|
+
default: x(() => [
|
|
2104
|
+
ae(q(p.associator) + ": " + q(p.comments) + " (" + q(e.formatDate(p.createdAt)) + ") ", 1)
|
|
2086
2105
|
]),
|
|
2087
2106
|
_: 2
|
|
2088
2107
|
}, 1024))), 128))
|
|
2089
2108
|
]),
|
|
2090
2109
|
_: 1
|
|
2091
|
-
})) :
|
|
2110
|
+
})) : se("", !0)
|
|
2092
2111
|
]),
|
|
2093
|
-
t.$slots.content ? (u(),
|
|
2112
|
+
t.$slots.content ? (u(), w("div", qn, [
|
|
2094
2113
|
ue(t.$slots, "content", {}, void 0, !0)
|
|
2095
|
-
])) :
|
|
2114
|
+
])) : se("", !0)
|
|
2096
2115
|
])
|
|
2097
2116
|
]),
|
|
2098
2117
|
_: 3
|
|
2099
2118
|
}, 8, ["loading"])
|
|
2100
2119
|
]),
|
|
2101
|
-
|
|
2102
|
-
|
|
2120
|
+
S("div", Yn, [
|
|
2121
|
+
S("div", Qn, [
|
|
2103
2122
|
ue(t.$slots, "action", {}, void 0, !0),
|
|
2104
|
-
|
|
2105
|
-
(u(!0),
|
|
2106
|
-
key:
|
|
2123
|
+
S("div", Jn, [
|
|
2124
|
+
(u(!0), w(j, null, G(e.reversedActions, (p) => (u(), L(e.ActionButton, {
|
|
2125
|
+
key: p.title,
|
|
2107
2126
|
loading: e.loading,
|
|
2108
|
-
config:
|
|
2127
|
+
config: p,
|
|
2109
2128
|
class: "action-button",
|
|
2110
|
-
onClick: (...m) => e.clickHandler(
|
|
2129
|
+
onClick: (...m) => e.clickHandler(p, ...m)
|
|
2111
2130
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
2112
2131
|
])
|
|
2113
2132
|
])
|
|
2114
2133
|
])
|
|
2115
2134
|
]);
|
|
2116
2135
|
}
|
|
2117
|
-
const Xn = /* @__PURE__ */
|
|
2136
|
+
const Xn = /* @__PURE__ */ X(Ln, [["render", Zn], ["__scopeId", "data-v-117ace1a"], ["__file", "DetailView.vue"]]), er = /* @__PURE__ */ Y({
|
|
2118
2137
|
name: "ListView",
|
|
2119
2138
|
__name: "ListView",
|
|
2120
2139
|
props: {
|
|
@@ -2122,7 +2141,7 @@ const Xn = /* @__PURE__ */ Q(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2122
2141
|
},
|
|
2123
2142
|
setup(t, { expose: o }) {
|
|
2124
2143
|
o();
|
|
2125
|
-
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({
|
|
2126
2145
|
current: 1,
|
|
2127
2146
|
total: 0,
|
|
2128
2147
|
pageSize: 10,
|
|
@@ -2132,10 +2151,10 @@ const Xn = /* @__PURE__ */ Q(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2132
2151
|
filters: []
|
|
2133
2152
|
});
|
|
2134
2153
|
function s() {
|
|
2135
|
-
const
|
|
2136
|
-
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;
|
|
2137
2156
|
return {
|
|
2138
|
-
key:
|
|
2157
|
+
key: A,
|
|
2139
2158
|
value: fe,
|
|
2140
2159
|
operator: de
|
|
2141
2160
|
// 根据实际需要调整操作符
|
|
@@ -2144,21 +2163,21 @@ const Xn = /* @__PURE__ */ Q(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2144
2163
|
return {
|
|
2145
2164
|
pageNumber: c.current,
|
|
2146
2165
|
pageSize: c.pageSize,
|
|
2147
|
-
filters: [...c.filters, ...
|
|
2166
|
+
filters: [...c.filters, ...g],
|
|
2148
2167
|
sorts: [{
|
|
2149
2168
|
key: "workflowId",
|
|
2150
2169
|
type: 1
|
|
2151
2170
|
}]
|
|
2152
2171
|
};
|
|
2153
2172
|
}
|
|
2154
|
-
const d =
|
|
2155
|
-
x:
|
|
2173
|
+
const d = z(() => ({
|
|
2174
|
+
x: k.value.length * 150 + 250
|
|
2156
2175
|
// 只设置横向滚动
|
|
2157
2176
|
// 移除 y 属性,让表格高度自适应
|
|
2158
|
-
})),
|
|
2159
|
-
const
|
|
2177
|
+
})), b = (g) => {
|
|
2178
|
+
const A = Object.entries(g).filter(([, U]) => U.widget?.column).map(([U, de], fe) => ({
|
|
2160
2179
|
title: de.widget.title,
|
|
2161
|
-
dataIndex:
|
|
2180
|
+
dataIndex: U.charAt(0).toLowerCase() + U.slice(1),
|
|
2162
2181
|
order: de.order,
|
|
2163
2182
|
ellipsis: !0,
|
|
2164
2183
|
tooltip: !0,
|
|
@@ -2167,8 +2186,8 @@ const Xn = /* @__PURE__ */ Q(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2167
2186
|
// 启用最小宽度
|
|
2168
2187
|
resizable: !0
|
|
2169
2188
|
// 启用列宽调整
|
|
2170
|
-
})).sort((
|
|
2171
|
-
|
|
2189
|
+
})).sort((U, de) => U.order - de.order);
|
|
2190
|
+
A.push({
|
|
2172
2191
|
title: "Actions",
|
|
2173
2192
|
slotName: "optional",
|
|
2174
2193
|
align: "center",
|
|
@@ -2176,120 +2195,120 @@ const Xn = /* @__PURE__ */ Q(Dn, [["render", Zn], ["__scopeId", "data-v-117ace1a
|
|
|
2176
2195
|
minWidth: 200,
|
|
2177
2196
|
fixed: "right",
|
|
2178
2197
|
resizable: !1
|
|
2179
|
-
}),
|
|
2180
|
-
},
|
|
2198
|
+
}), k.value = A;
|
|
2199
|
+
}, y = _([]), k = _([]), p = _(!0), m = _(!0), C = _(), ee = async () => {
|
|
2181
2200
|
m.value = !0;
|
|
2182
|
-
const
|
|
2183
|
-
|
|
2184
|
-
},
|
|
2201
|
+
const g = await Bt(i.className, s());
|
|
2202
|
+
y.value = g.data, c.total = g.totalCount, m.value = !1;
|
|
2203
|
+
}, oe = _(!1);
|
|
2185
2204
|
ge(async () => {
|
|
2186
|
-
|
|
2187
|
-
const
|
|
2188
|
-
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;
|
|
2189
2208
|
}), bt(() => {
|
|
2190
|
-
|
|
2209
|
+
oe.value && ee();
|
|
2191
2210
|
});
|
|
2192
|
-
const
|
|
2193
|
-
c.current =
|
|
2194
|
-
},
|
|
2195
|
-
c.pageSize =
|
|
2211
|
+
const W = (g) => {
|
|
2212
|
+
c.current = g, ee();
|
|
2213
|
+
}, ie = (g) => {
|
|
2214
|
+
c.pageSize = g, ee();
|
|
2196
2215
|
};
|
|
2197
|
-
function le(
|
|
2198
|
-
switch (
|
|
2199
|
-
case
|
|
2200
|
-
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 } });
|
|
2201
2220
|
break;
|
|
2202
2221
|
default:
|
|
2203
|
-
console.warn("Unknown action type:",
|
|
2222
|
+
console.warn("Unknown action type:", g);
|
|
2204
2223
|
}
|
|
2205
2224
|
}
|
|
2206
|
-
function
|
|
2207
|
-
switch (
|
|
2208
|
-
case
|
|
2209
|
-
no(
|
|
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!");
|
|
2210
2229
|
break;
|
|
2211
|
-
case
|
|
2212
|
-
a.push({ name:
|
|
2230
|
+
case te.Link:
|
|
2231
|
+
a.push({ name: U });
|
|
2213
2232
|
break;
|
|
2214
2233
|
default:
|
|
2215
|
-
console.warn("Unknown action type:",
|
|
2234
|
+
console.warn("Unknown action type:", g);
|
|
2216
2235
|
}
|
|
2217
2236
|
}
|
|
2218
2237
|
function V() {
|
|
2219
2238
|
return n()?.userInfo?.email_address ?? "";
|
|
2220
2239
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return typeof
|
|
2240
|
+
function $(g, A) {
|
|
2241
|
+
return typeof g != "string" || g.indexOf("{currentUserEmail}") === -1 ? g : g.replace(/{currentUserEmail}/g, A);
|
|
2223
2242
|
}
|
|
2224
|
-
function
|
|
2225
|
-
const
|
|
2226
|
-
c.filters =
|
|
2227
|
-
...
|
|
2228
|
-
value: U
|
|
2229
|
-
})) || [], c.current = 1,
|
|
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())
|
|
2248
|
+
})) || [], c.current = 1, ee();
|
|
2230
2249
|
}
|
|
2231
|
-
const
|
|
2232
|
-
function
|
|
2233
|
-
if (!
|
|
2234
|
-
|
|
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 }));
|
|
2235
2254
|
}
|
|
2236
|
-
const
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
}),
|
|
2241
|
-
},
|
|
2242
|
-
c.current = 1,
|
|
2243
|
-
},
|
|
2244
|
-
l.value &&
|
|
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 = () => {
|
|
2261
|
+
c.current = 1, ee();
|
|
2262
|
+
}, F = () => {
|
|
2263
|
+
l.value && h(), f();
|
|
2245
2264
|
};
|
|
2246
|
-
function
|
|
2247
|
-
return !(
|
|
2265
|
+
function B(g, A) {
|
|
2266
|
+
return !(g.location !== "InTable" || g.title === "Update" && (A.sort === 3 || A.status === 100 || A.status === -1));
|
|
2248
2267
|
}
|
|
2249
|
-
const
|
|
2250
|
-
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;
|
|
2251
2270
|
}
|
|
2252
2271
|
}), tr = { class: "list-container" }, or = { class: "query-title" };
|
|
2253
2272
|
function nr(t, o, n, e, a, r) {
|
|
2254
|
-
const i =
|
|
2255
|
-
return u(),
|
|
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, [
|
|
2256
2275
|
P(e.TopBar, {
|
|
2257
2276
|
title: e.pageData?.banner.title ?? "",
|
|
2258
2277
|
subTitle: e.pageData?.banner.subTitle ?? "",
|
|
2259
2278
|
email: e.getApproverEmail()
|
|
2260
2279
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
2261
2280
|
P(d, null, {
|
|
2262
|
-
default:
|
|
2263
|
-
|
|
2264
|
-
o[0] || (o[0] =
|
|
2281
|
+
default: x(() => [
|
|
2282
|
+
S("div", or, [
|
|
2283
|
+
o[0] || (o[0] = S("h3", null, "Search Conditions", -1)),
|
|
2265
2284
|
P(i, { size: "medium" }, {
|
|
2266
|
-
default:
|
|
2267
|
-
(u(!0),
|
|
2268
|
-
key:
|
|
2285
|
+
default: x(() => [
|
|
2286
|
+
(u(!0), w(j, null, G(e.actions, (p) => (u(), w(j, {
|
|
2287
|
+
key: p.title
|
|
2269
2288
|
}, [
|
|
2270
|
-
|
|
2289
|
+
p.location === "InOperation" ? (u(), L(e.ActionButton, {
|
|
2271
2290
|
key: 0,
|
|
2272
|
-
config:
|
|
2291
|
+
config: p,
|
|
2273
2292
|
onClick: e.createHandler
|
|
2274
|
-
}, null, 8, ["config"])) :
|
|
2293
|
+
}, null, 8, ["config"])) : se("", !0)
|
|
2275
2294
|
], 64))), 128))
|
|
2276
2295
|
]),
|
|
2277
2296
|
_: 1
|
|
2278
2297
|
})
|
|
2279
2298
|
]),
|
|
2280
2299
|
P(s, { gutter: [24, 20] }, {
|
|
2281
|
-
default:
|
|
2282
|
-
(u(!0),
|
|
2283
|
-
key:
|
|
2300
|
+
default: x(() => [
|
|
2301
|
+
(u(!0), w(j, null, G(e.searchableFields, (p) => (u(), L(l, {
|
|
2302
|
+
key: p.fieldKey,
|
|
2284
2303
|
span: 6,
|
|
2285
2304
|
class: "search-col"
|
|
2286
2305
|
}, {
|
|
2287
|
-
default:
|
|
2306
|
+
default: x(() => [
|
|
2288
2307
|
P(e.DataWidgets, {
|
|
2289
|
-
name:
|
|
2290
|
-
config:
|
|
2291
|
-
modelValue: e.searchForm[
|
|
2292
|
-
"onUpdate:modelValue": (m) => e.searchForm[
|
|
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,
|
|
2293
2312
|
class: "form-field"
|
|
2294
2313
|
}, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
|
|
2295
2314
|
]),
|
|
@@ -2299,16 +2318,16 @@ function nr(t, o, n, e, a, r) {
|
|
|
2299
2318
|
span: 6,
|
|
2300
2319
|
class: "search-col form-buttons"
|
|
2301
2320
|
}, {
|
|
2302
|
-
default:
|
|
2321
|
+
default: x(() => [
|
|
2303
2322
|
P(i, { size: "medium" }, {
|
|
2304
|
-
default:
|
|
2323
|
+
default: x(() => [
|
|
2305
2324
|
P(c, {
|
|
2306
2325
|
type: "primary",
|
|
2307
2326
|
size: "medium",
|
|
2308
2327
|
onClick: e.handleSearch
|
|
2309
2328
|
}, {
|
|
2310
|
-
default:
|
|
2311
|
-
|
|
2329
|
+
default: x(() => o[1] || (o[1] = [
|
|
2330
|
+
ae(" Search ", -1)
|
|
2312
2331
|
])),
|
|
2313
2332
|
_: 1,
|
|
2314
2333
|
__: [1]
|
|
@@ -2317,8 +2336,8 @@ function nr(t, o, n, e, a, r) {
|
|
|
2317
2336
|
size: "medium",
|
|
2318
2337
|
onClick: e.handleReset
|
|
2319
2338
|
}, {
|
|
2320
|
-
default:
|
|
2321
|
-
|
|
2339
|
+
default: x(() => o[2] || (o[2] = [
|
|
2340
|
+
ae(" Reset ", -1)
|
|
2322
2341
|
])),
|
|
2323
2342
|
_: 1,
|
|
2324
2343
|
__: [2]
|
|
@@ -2335,19 +2354,19 @@ function nr(t, o, n, e, a, r) {
|
|
|
2335
2354
|
]),
|
|
2336
2355
|
_: 1
|
|
2337
2356
|
}),
|
|
2338
|
-
P(
|
|
2357
|
+
P(y, {
|
|
2339
2358
|
size: "large",
|
|
2340
2359
|
onTabClick: e.tabHandler
|
|
2341
2360
|
}, {
|
|
2342
|
-
default:
|
|
2343
|
-
(u(!0),
|
|
2344
|
-
key:
|
|
2345
|
-
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
|
|
2346
2365
|
}, null, 8, ["title"]))), 128))
|
|
2347
2366
|
]),
|
|
2348
2367
|
_: 1
|
|
2349
2368
|
}),
|
|
2350
|
-
P(
|
|
2369
|
+
P(k, {
|
|
2351
2370
|
columns: e._columns,
|
|
2352
2371
|
data: e._data,
|
|
2353
2372
|
stripe: "",
|
|
@@ -2366,18 +2385,18 @@ function nr(t, o, n, e, a, r) {
|
|
|
2366
2385
|
onPageChange: e.pageChangeHandler,
|
|
2367
2386
|
onPageSizeChange: e.pageSizeChangeHandler
|
|
2368
2387
|
}, {
|
|
2369
|
-
optional:
|
|
2388
|
+
optional: x(({ record: p }) => [
|
|
2370
2389
|
P(i, { size: "small" }, {
|
|
2371
|
-
default:
|
|
2372
|
-
(u(!0),
|
|
2390
|
+
default: x(() => [
|
|
2391
|
+
(u(!0), w(j, null, G(e.actions, (m) => (u(), w(j, {
|
|
2373
2392
|
key: m.title
|
|
2374
2393
|
}, [
|
|
2375
|
-
e.judgeHiddenActions(m,
|
|
2394
|
+
e.judgeHiddenActions(m, p) ? (u(), L(e.ActionButton, {
|
|
2376
2395
|
key: 0,
|
|
2377
2396
|
config: m,
|
|
2378
2397
|
size: "small",
|
|
2379
|
-
onClick: (...
|
|
2380
|
-
}, null, 8, ["config", "onClick"])) :
|
|
2398
|
+
onClick: (...C) => e.clickHandler(...C, p.workflowId)
|
|
2399
|
+
}, null, 8, ["config", "onClick"])) : se("", !0)
|
|
2381
2400
|
], 64))), 128))
|
|
2382
2401
|
]),
|
|
2383
2402
|
_: 2
|
|
@@ -2387,7 +2406,7 @@ function nr(t, o, n, e, a, r) {
|
|
|
2387
2406
|
}, 8, ["columns", "data", "pagination", "loading", "scroll"])
|
|
2388
2407
|
]);
|
|
2389
2408
|
}
|
|
2390
|
-
const rr = /* @__PURE__ */
|
|
2409
|
+
const rr = /* @__PURE__ */ X(er, [["render", nr], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), dr = {
|
|
2391
2410
|
install(t, o = {}) {
|
|
2392
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);
|
|
2393
2412
|
}
|