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