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