@chase-shao/vue-component-lib 1.2.44 → 1.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +488 -468
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/services/dataGen.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as h, defineComponent as F, mergeModels as q, useModel as ce, resolveComponent as I, createBlock as L, openBlock as v, onMounted as X, computed as B, withCtx as T, createElementBlock as C, Fragment as H, renderList as E, createVNode as N, nextTick as qe, createTextVNode as Z, useTemplateRef as he, createElementVNode as k, createCommentVNode as ee, toDisplayString as W, resolveDynamicComponent as ke, renderSlot as J, inject as ne, getCurrentInstance as ue, reactive as Se, normalizeStyle as Ye, normalizeClass as Je, unref as xe, onActivated as Xe } from "vue";
|
|
2
2
|
import Qe from "axios";
|
|
3
3
|
import { defineStore as Ze } from "pinia";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { Modal as et } from "@arco-design/web-vue";
|
|
5
|
+
import { useRouter as tt } from "vue-router";
|
|
6
|
+
const nt = Ze("main", () => ({
|
|
7
|
+
token: h(void 0)
|
|
8
|
+
})), at = async (e) => new Promise((t) => setTimeout(t, e)), ot = async (e, t, s, n = void 0) => {
|
|
8
9
|
if (e[t] === void 0)
|
|
9
10
|
try {
|
|
10
11
|
e[t] = null, e[t] = await s() || n;
|
|
@@ -12,7 +13,7 @@ const tt = Ze("main", () => ({
|
|
|
12
13
|
console.error(a), e[t] = void 0;
|
|
13
14
|
}
|
|
14
15
|
for (; e[t] === null; )
|
|
15
|
-
await
|
|
16
|
+
await at(100);
|
|
16
17
|
return e[t];
|
|
17
18
|
};
|
|
18
19
|
function Ue() {
|
|
@@ -33,14 +34,14 @@ function Ae() {
|
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
const Le = async () => {
|
|
36
|
-
const { apiBase: e, appSecret: t } = Ue(), s = Ae(), n =
|
|
37
|
-
return await
|
|
37
|
+
const { apiBase: e, appSecret: t } = Ue(), s = Ae(), n = nt();
|
|
38
|
+
return await ot(n, "token", async () => (await s.get(`${e}/GenerateToken`, {
|
|
38
39
|
params: {
|
|
39
40
|
appid: "bpm",
|
|
40
41
|
appsecret: t
|
|
41
42
|
}
|
|
42
43
|
}))?.data?.token);
|
|
43
|
-
},
|
|
44
|
+
}, O = async () => {
|
|
44
45
|
const e = await Le(), t = Ae();
|
|
45
46
|
return t.defaults.headers.common.Authorization = `Bearer ${e}`, t;
|
|
46
47
|
}, _e = {
|
|
@@ -53,31 +54,31 @@ const Le = async () => {
|
|
|
53
54
|
}, M = [];
|
|
54
55
|
for (let e = 0; e < 256; ++e)
|
|
55
56
|
M.push((e + 256).toString(16).slice(1));
|
|
56
|
-
function
|
|
57
|
+
function st(e, t = 0) {
|
|
57
58
|
return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
|
|
58
59
|
}
|
|
59
60
|
let we;
|
|
60
|
-
const
|
|
61
|
-
function
|
|
61
|
+
const rt = new Uint8Array(16);
|
|
62
|
+
function it() {
|
|
62
63
|
if (!we) {
|
|
63
64
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
64
65
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
65
66
|
we = crypto.getRandomValues.bind(crypto);
|
|
66
67
|
}
|
|
67
|
-
return we(
|
|
68
|
+
return we(rt);
|
|
68
69
|
}
|
|
69
|
-
const
|
|
70
|
+
const lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ie = { randomUUID: lt };
|
|
70
71
|
function Me(e, t, s) {
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
72
|
+
if (Ie.randomUUID && !e)
|
|
73
|
+
return Ie.randomUUID();
|
|
73
74
|
e = e || {};
|
|
74
|
-
const n = e.random ?? e.rng?.() ??
|
|
75
|
+
const n = e.random ?? e.rng?.() ?? it();
|
|
75
76
|
if (n.length < 16)
|
|
76
77
|
throw new Error("Random bytes length must be >= 16");
|
|
77
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
78
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, st(n);
|
|
78
79
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
80
|
+
var z = /* @__PURE__ */ ((e) => (e[e.Submit = 0] = "Submit", e[e.Link = 1] = "Link", e))(z || {}), te = /* @__PURE__ */ ((e) => (e[e.Create = 0] = "Create", e[e.Update = 1] = "Update", e[e.Details = 2] = "Details", e[e.List = 3] = "List", e))(te || {});
|
|
81
|
+
function ct(e, t, s) {
|
|
81
82
|
const n = {
|
|
82
83
|
pageType: "",
|
|
83
84
|
fields: {},
|
|
@@ -113,7 +114,7 @@ function lt(e, t, s) {
|
|
|
113
114
|
redirectUrl: a.redirectUrl,
|
|
114
115
|
redirectType: a.redirectType,
|
|
115
116
|
title: a.title,
|
|
116
|
-
widget: a.widget === "Link" ?
|
|
117
|
+
widget: a.widget === "Link" ? z.Link : z.Submit,
|
|
117
118
|
location: a.location,
|
|
118
119
|
attributeType: a.attributeType,
|
|
119
120
|
readonly: a.readonly
|
|
@@ -154,11 +155,11 @@ function lt(e, t, s) {
|
|
|
154
155
|
}), n;
|
|
155
156
|
}
|
|
156
157
|
const de = async (e, t, s, n) => {
|
|
157
|
-
const c = await (await
|
|
158
|
-
return
|
|
159
|
-
}, Fe = async (e, t, s) => (await (await
|
|
160
|
-
async function
|
|
161
|
-
const n = await (await
|
|
158
|
+
const c = await (await O()).get(`/General/${t}/${e}/page`, { params: n });
|
|
159
|
+
return ct(c?.data, e, s);
|
|
160
|
+
}, Fe = async (e, t, s) => (await (await O()).post(`/General/${t}/${e}/button/List`, null, { params: s }))?.data;
|
|
161
|
+
async function ut(e, t) {
|
|
162
|
+
const n = await (await O()).post(`/General/${e}/list`, t);
|
|
162
163
|
return {
|
|
163
164
|
data: n.data.data,
|
|
164
165
|
totalCount: n.data.totalCount
|
|
@@ -177,79 +178,82 @@ async function ct(e, t) {
|
|
|
177
178
|
// ),
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
|
-
async function
|
|
181
|
-
const a = await (await
|
|
181
|
+
async function dt(e, t, s) {
|
|
182
|
+
const a = await (await O()).post(s, t, {
|
|
182
183
|
params: {
|
|
183
184
|
className: e
|
|
184
185
|
}
|
|
185
186
|
});
|
|
186
187
|
return a.data.length > 0 ? a.data[0] : 0;
|
|
187
188
|
}
|
|
188
|
-
async function
|
|
189
|
-
const a = await
|
|
189
|
+
async function ft(e, t, s, n) {
|
|
190
|
+
const a = await O(), c = Ce(n, t);
|
|
190
191
|
return (await a.put(c, s))?.data;
|
|
191
192
|
}
|
|
192
193
|
function Ce(e, t) {
|
|
193
194
|
return e.replace(/{WorkflowId}/g, t);
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
+
function pt(e, t) {
|
|
196
197
|
return e.replace(/{ApproverEmail}/g, encodeURIComponent(t));
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
+
function mt(e, t) {
|
|
199
200
|
return e.replace(/{WorkFlowReason}/g, encodeURIComponent(t));
|
|
200
201
|
}
|
|
201
|
-
function
|
|
202
|
+
function gt(e, t) {
|
|
202
203
|
return e.replace(/{Status}/g, t);
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function vt(e, t) {
|
|
205
206
|
return e.replace(/{IfTriggerGlobal_RandP_Approval}/g, t);
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function _t(e, t) {
|
|
208
209
|
return e.replace(/{ClassName}/g, encodeURIComponent(t));
|
|
209
210
|
}
|
|
210
|
-
async function
|
|
211
|
-
const o = await
|
|
211
|
+
async function wt(e, t, s, n, a, c, l, d) {
|
|
212
|
+
const o = await O();
|
|
212
213
|
let r = Ce(c, t);
|
|
213
|
-
return r =
|
|
214
|
+
return r = pt(r, s), r = mt(r, n), r = gt(r, l), r = vt(r, d), r = _t(r, e), (await o.put(r, a))?.data;
|
|
214
215
|
}
|
|
215
|
-
async function
|
|
216
|
-
const a = (await (await
|
|
216
|
+
async function bt(e, t) {
|
|
217
|
+
const a = (await (await O()).get(e, { params: { value: t } }))?.data;
|
|
217
218
|
return Object.entries(a).map(([c, l]) => ({
|
|
218
219
|
value: c,
|
|
219
220
|
label: l
|
|
220
221
|
}));
|
|
221
222
|
}
|
|
222
|
-
async function
|
|
223
|
-
return (await (await
|
|
223
|
+
async function yt(e, t) {
|
|
224
|
+
return (await (await O()).get(`/General/${e}/${t}/process`))?.data;
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
+
function ht(e) {
|
|
226
227
|
return {
|
|
227
228
|
uid: e.id ?? Me(),
|
|
228
229
|
name: e.attachmentName ?? "unknown",
|
|
229
230
|
url: e.attachmentKey ?? ""
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
|
-
async function
|
|
233
|
-
return (await (await
|
|
233
|
+
async function Re(e, t) {
|
|
234
|
+
return (await (await O()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((c, l) => {
|
|
234
235
|
const { category: d } = l;
|
|
235
|
-
return c[d] || (c[d] = []), c[d].push(
|
|
236
|
+
return c[d] || (c[d] = []), c[d].push(ht(l)), c;
|
|
236
237
|
}, {});
|
|
237
238
|
}
|
|
239
|
+
async function kt(e, t) {
|
|
240
|
+
return (await O()).post(`/General/${e}/${t}/delete/attachment`);
|
|
241
|
+
}
|
|
238
242
|
const ae = (e, t) => {
|
|
239
243
|
let s = "";
|
|
240
244
|
return { res: e.every((a) => {
|
|
241
|
-
const c =
|
|
245
|
+
const c = St(a, t);
|
|
242
246
|
return c || (s = a.errorMessage), c;
|
|
243
247
|
}), errorMessages: s };
|
|
244
|
-
},
|
|
248
|
+
}, St = (e, t) => {
|
|
245
249
|
const { ruleName: s, ruleParameter: n } = e;
|
|
246
|
-
return
|
|
247
|
-
},
|
|
250
|
+
return Ct[s](n, t);
|
|
251
|
+
}, Ct = {
|
|
248
252
|
Regex: (e, t) => new RegExp(e).test(t),
|
|
249
253
|
Required: (e, t) => !!t
|
|
250
|
-
},
|
|
254
|
+
}, Ne = /* @__PURE__ */ F({
|
|
251
255
|
__name: "InputText",
|
|
252
|
-
props: /* @__PURE__ */
|
|
256
|
+
props: /* @__PURE__ */ q({
|
|
253
257
|
fieldKey: {},
|
|
254
258
|
modelValue: {},
|
|
255
259
|
config: {},
|
|
@@ -260,13 +264,13 @@ const ae = (e, t) => {
|
|
|
260
264
|
modelValue: {},
|
|
261
265
|
modelModifiers: {}
|
|
262
266
|
}),
|
|
263
|
-
emits: /* @__PURE__ */
|
|
267
|
+
emits: /* @__PURE__ */ q(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
264
268
|
setup(e, { expose: t, emit: s }) {
|
|
265
269
|
const n = e, a = s, c = ce(e, "modelValue"), l = (r) => ae(n.validations, r), d = (r) => {
|
|
266
270
|
a("input", r);
|
|
267
271
|
}, o = (r) => {
|
|
268
|
-
const
|
|
269
|
-
a("error",
|
|
272
|
+
const _ = l(r);
|
|
273
|
+
a("error", _.res ? "" : _.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((p) => {
|
|
270
274
|
p.event === "change" && a(p.event, p.handlerName, r);
|
|
271
275
|
});
|
|
272
276
|
};
|
|
@@ -275,11 +279,11 @@ const ae = (e, t) => {
|
|
|
275
279
|
const r = l(n.modelValue);
|
|
276
280
|
return a("error", r.res ? "" : r.errorMessages), r.res;
|
|
277
281
|
}
|
|
278
|
-
}), (r,
|
|
279
|
-
const p =
|
|
282
|
+
}), (r, _) => {
|
|
283
|
+
const p = I("AInput");
|
|
280
284
|
return v(), L(p, {
|
|
281
285
|
modelValue: c.value,
|
|
282
|
-
"onUpdate:modelValue":
|
|
286
|
+
"onUpdate:modelValue": _[0] || (_[0] = (b) => c.value = b),
|
|
283
287
|
"allow-clear": "",
|
|
284
288
|
disabled: n.readonly || n.config.Readonly,
|
|
285
289
|
onInput: d,
|
|
@@ -287,9 +291,9 @@ const ae = (e, t) => {
|
|
|
287
291
|
}, null, 8, ["modelValue", "disabled"]);
|
|
288
292
|
};
|
|
289
293
|
}
|
|
290
|
-
}),
|
|
294
|
+
}), Vt = /* @__PURE__ */ F({
|
|
291
295
|
__name: "InputNumber",
|
|
292
|
-
props: /* @__PURE__ */
|
|
296
|
+
props: /* @__PURE__ */ q({
|
|
293
297
|
fieldKey: {},
|
|
294
298
|
modelValue: {},
|
|
295
299
|
config: {},
|
|
@@ -300,20 +304,20 @@ const ae = (e, t) => {
|
|
|
300
304
|
modelValue: {},
|
|
301
305
|
modelModifiers: {}
|
|
302
306
|
}),
|
|
303
|
-
emits: /* @__PURE__ */
|
|
307
|
+
emits: /* @__PURE__ */ q(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
304
308
|
setup(e, { expose: t, emit: s }) {
|
|
305
|
-
const n = e, a = s, c = ce(e, "modelValue"), l =
|
|
306
|
-
|
|
309
|
+
const n = e, a = s, c = ce(e, "modelValue"), l = h(100), d = h(0);
|
|
310
|
+
X(() => {
|
|
307
311
|
n.validations && n.validations.forEach((p) => {
|
|
308
312
|
p.ruleName === "Max" && (l.value = p.ruleParameter), p.ruleName === "Min" && (d.value = p.ruleParameter);
|
|
309
313
|
});
|
|
310
314
|
});
|
|
311
315
|
const o = (p) => ae(n.validations, p), r = (p) => {
|
|
312
316
|
a("input", p);
|
|
313
|
-
},
|
|
317
|
+
}, _ = (p) => {
|
|
314
318
|
const b = o(p);
|
|
315
|
-
a("error", b.res ? "" : b.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
316
|
-
|
|
319
|
+
a("error", b.res ? "" : b.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
|
|
320
|
+
y.event === "change" && a(y.event, y.handlerName, p);
|
|
317
321
|
});
|
|
318
322
|
};
|
|
319
323
|
return t({
|
|
@@ -322,22 +326,22 @@ const ae = (e, t) => {
|
|
|
322
326
|
return a("error", p.res ? "" : p.errorMessages), p.res;
|
|
323
327
|
}
|
|
324
328
|
}), (p, b) => {
|
|
325
|
-
const
|
|
326
|
-
return v(), L(
|
|
329
|
+
const y = I("AInputNumber");
|
|
330
|
+
return v(), L(y, {
|
|
327
331
|
modelValue: c.value,
|
|
328
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
332
|
+
"onUpdate:modelValue": b[0] || (b[0] = (w) => c.value = w),
|
|
329
333
|
clearable: "",
|
|
330
334
|
disabled: n.readonly,
|
|
331
335
|
min: d.value,
|
|
332
336
|
max: l.value,
|
|
333
337
|
onInput: r,
|
|
334
|
-
onChange:
|
|
338
|
+
onChange: _
|
|
335
339
|
}, null, 8, ["modelValue", "disabled", "min", "max"]);
|
|
336
340
|
};
|
|
337
341
|
}
|
|
338
|
-
}),
|
|
342
|
+
}), Te = /* @__PURE__ */ F({
|
|
339
343
|
__name: "SelectList",
|
|
340
|
-
props: /* @__PURE__ */
|
|
344
|
+
props: /* @__PURE__ */ q({
|
|
341
345
|
fieldKey: {},
|
|
342
346
|
modelValue: {},
|
|
343
347
|
config: {},
|
|
@@ -348,26 +352,26 @@ const ae = (e, t) => {
|
|
|
348
352
|
modelValue: {},
|
|
349
353
|
modelModifiers: {}
|
|
350
354
|
}),
|
|
351
|
-
emits: /* @__PURE__ */
|
|
355
|
+
emits: /* @__PURE__ */ q(["update:modelValue", "change"], ["update:modelValue"]),
|
|
352
356
|
setup(e, { expose: t, emit: s }) {
|
|
353
|
-
const n = e, a = s, c =
|
|
354
|
-
|
|
357
|
+
const n = e, a = s, c = h(!1), l = h(n.config.options ?? []), d = ce(e, "modelValue"), o = (p) => ae(n.validations, p);
|
|
358
|
+
B(() => {
|
|
355
359
|
const p = {};
|
|
356
360
|
return n.triggers && n.triggers.length > 0 && n.triggers.forEach((b) => {
|
|
357
|
-
p[b.event] = (
|
|
358
|
-
a(b.event, b.handlerName,
|
|
359
|
-
const
|
|
360
|
-
a("error",
|
|
361
|
+
p[b.event] = (y) => {
|
|
362
|
+
a(b.event, b.handlerName, y);
|
|
363
|
+
const w = o(y);
|
|
364
|
+
a("error", w.res ? "" : w.errorMessages);
|
|
361
365
|
};
|
|
362
366
|
}), p;
|
|
363
|
-
}),
|
|
364
|
-
n.config.dataSourceProvider && (l.value = await
|
|
367
|
+
}), X(async () => {
|
|
368
|
+
n.config.dataSourceProvider && (l.value = await bt(n.config.dataSourceProvider));
|
|
365
369
|
});
|
|
366
|
-
const
|
|
370
|
+
const _ = (p) => {
|
|
367
371
|
a("update:modelValue", p);
|
|
368
372
|
const b = o(p);
|
|
369
|
-
a("error", b.res ? "" : b.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
370
|
-
|
|
373
|
+
a("error", b.res ? "" : b.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
|
|
374
|
+
y.event === "change" && a(y.event, y.handlerName, p);
|
|
371
375
|
});
|
|
372
376
|
};
|
|
373
377
|
return t({
|
|
@@ -376,28 +380,28 @@ const ae = (e, t) => {
|
|
|
376
380
|
return a("error", p.res ? "" : p.errorMessages), p.res;
|
|
377
381
|
}
|
|
378
382
|
}), (p, b) => {
|
|
379
|
-
const
|
|
380
|
-
return v(), L(
|
|
383
|
+
const y = I("AOption"), w = I("ASelect");
|
|
384
|
+
return v(), L(w, {
|
|
381
385
|
"allow-clear": "",
|
|
382
386
|
modelValue: d.value,
|
|
383
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
387
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => d.value = V),
|
|
384
388
|
loading: c.value,
|
|
385
389
|
"filter-option": !0,
|
|
386
390
|
"allow-search": !0,
|
|
387
|
-
onChange:
|
|
391
|
+
onChange: _
|
|
388
392
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
(v(!0),
|
|
391
|
-
key:
|
|
392
|
-
value:
|
|
393
|
-
label:
|
|
393
|
+
default: T(() => [
|
|
394
|
+
(v(!0), C(H, null, E(l.value, (V) => (v(), L(y, {
|
|
395
|
+
key: V.value,
|
|
396
|
+
value: V.value,
|
|
397
|
+
label: V.label
|
|
394
398
|
}, null, 8, ["value", "label"]))), 128))
|
|
395
399
|
]),
|
|
396
400
|
_: 1
|
|
397
401
|
}, 8, ["modelValue", "loading"]);
|
|
398
402
|
};
|
|
399
403
|
}
|
|
400
|
-
}),
|
|
404
|
+
}), $t = /* @__PURE__ */ F({
|
|
401
405
|
__name: "Cascader",
|
|
402
406
|
props: {
|
|
403
407
|
modelValue: {},
|
|
@@ -405,15 +409,15 @@ const ae = (e, t) => {
|
|
|
405
409
|
},
|
|
406
410
|
emits: ["update:modelValue", "change"],
|
|
407
411
|
setup(e, { expose: t, emit: s }) {
|
|
408
|
-
const n = e, a = s, c =
|
|
412
|
+
const n = e, a = s, c = h(n.config.options ?? []), l = (o) => {
|
|
409
413
|
a("update:modelValue", o), a("change", o);
|
|
410
414
|
};
|
|
411
|
-
|
|
415
|
+
X(async () => {
|
|
412
416
|
if (n.config) {
|
|
413
417
|
const o = n.config.dataSourceProvider;
|
|
414
418
|
if (o) {
|
|
415
|
-
const
|
|
416
|
-
c.value =
|
|
419
|
+
const _ = await (await O()).get(o);
|
|
420
|
+
c.value = _.data;
|
|
417
421
|
}
|
|
418
422
|
}
|
|
419
423
|
});
|
|
@@ -423,13 +427,13 @@ const ae = (e, t) => {
|
|
|
423
427
|
return !0;
|
|
424
428
|
}
|
|
425
429
|
}), (o, r) => {
|
|
426
|
-
const
|
|
430
|
+
const _ = I("ACascader"), p = I("ASpace");
|
|
427
431
|
return v(), L(p, {
|
|
428
432
|
direction: "vertical",
|
|
429
433
|
size: "large"
|
|
430
434
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
435
|
+
default: T(() => [
|
|
436
|
+
N(_, {
|
|
433
437
|
"field-names": d,
|
|
434
438
|
"model-value": o.modelValue,
|
|
435
439
|
options: c.value,
|
|
@@ -442,7 +446,7 @@ const ae = (e, t) => {
|
|
|
442
446
|
});
|
|
443
447
|
};
|
|
444
448
|
}
|
|
445
|
-
}),
|
|
449
|
+
}), xt = /* @__PURE__ */ F({
|
|
446
450
|
__name: "FileUpload",
|
|
447
451
|
props: {
|
|
448
452
|
className: {},
|
|
@@ -455,37 +459,52 @@ const ae = (e, t) => {
|
|
|
455
459
|
},
|
|
456
460
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
457
461
|
setup(e, { expose: t, emit: s }) {
|
|
458
|
-
const n = e, a = s, c =
|
|
459
|
-
|
|
460
|
-
const
|
|
462
|
+
const n = e, a = s, c = h({});
|
|
463
|
+
X(async () => {
|
|
464
|
+
const w = await Le();
|
|
461
465
|
c.value = {
|
|
462
|
-
Authorization: `Bearer ${
|
|
466
|
+
Authorization: `Bearer ${w}`
|
|
463
467
|
};
|
|
464
468
|
});
|
|
465
|
-
const l = (
|
|
466
|
-
function p(
|
|
467
|
-
return
|
|
469
|
+
const l = (w) => ae(n.validations, w), o = Ee().apiBase, r = h(null), _ = h("");
|
|
470
|
+
function p(w, V, R) {
|
|
471
|
+
return w.replace(/{WorkflowId}/g, V).replace(/{ClassName}/g, R);
|
|
468
472
|
}
|
|
469
|
-
const b =
|
|
473
|
+
const b = B(() => {
|
|
470
474
|
if (n.config.uploadURL) {
|
|
471
|
-
const
|
|
472
|
-
return p(
|
|
475
|
+
const w = o + n.config.uploadURL;
|
|
476
|
+
return p(w, _.value, n.className);
|
|
473
477
|
}
|
|
474
478
|
return "";
|
|
475
479
|
});
|
|
480
|
+
function y(w) {
|
|
481
|
+
const { file: V, name: R } = w, Y = R ?? V.name;
|
|
482
|
+
return new Promise((j, K) => {
|
|
483
|
+
et.confirm({
|
|
484
|
+
title: "确认删除",
|
|
485
|
+
content: `确认删除 ${Y}吗?`,
|
|
486
|
+
async onOk() {
|
|
487
|
+
if (w.status !== "init" && n.config.removeFile)
|
|
488
|
+
return await n.config.removeFile(w.uid), j(!0);
|
|
489
|
+
j(!0);
|
|
490
|
+
},
|
|
491
|
+
onCancel: () => K("cancel")
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
}
|
|
476
495
|
return t({
|
|
477
|
-
submit(
|
|
478
|
-
r.value && (n.config.uploadURL && (
|
|
496
|
+
submit(w) {
|
|
497
|
+
r.value && (n.config.uploadURL && (_.value = w), qe(() => {
|
|
479
498
|
r.value.submit();
|
|
480
499
|
}));
|
|
481
500
|
},
|
|
482
501
|
validate() {
|
|
483
|
-
const
|
|
484
|
-
return a("error",
|
|
502
|
+
const w = l(n.modelValue);
|
|
503
|
+
return a("error", w.res ? "" : w.errorMessages), w.res;
|
|
485
504
|
}
|
|
486
|
-
}), (
|
|
487
|
-
const
|
|
488
|
-
return v(), L(
|
|
505
|
+
}), (w, V) => {
|
|
506
|
+
const R = I("a-upload");
|
|
507
|
+
return v(), L(R, {
|
|
489
508
|
ref_key: "uploadRef",
|
|
490
509
|
ref: r,
|
|
491
510
|
"default-file-list": n.config.files,
|
|
@@ -493,14 +512,15 @@ const ae = (e, t) => {
|
|
|
493
512
|
limit: n.config.allowedNumber,
|
|
494
513
|
"auto-upload": !1,
|
|
495
514
|
name: "files",
|
|
496
|
-
headers: c.value
|
|
515
|
+
headers: c.value,
|
|
516
|
+
onBeforeRemove: y
|
|
497
517
|
}, {
|
|
498
|
-
"start-icon":
|
|
518
|
+
"start-icon": T(() => V[0] || (V[0] = [])),
|
|
499
519
|
_: 1
|
|
500
520
|
}, 8, ["default-file-list", "action", "limit", "headers"]);
|
|
501
521
|
};
|
|
502
522
|
}
|
|
503
|
-
}),
|
|
523
|
+
}), It = /* @__PURE__ */ F({
|
|
504
524
|
__name: "TextArea",
|
|
505
525
|
props: {
|
|
506
526
|
fieldKey: {},
|
|
@@ -517,8 +537,8 @@ const ae = (e, t) => {
|
|
|
517
537
|
}, d = (o) => {
|
|
518
538
|
a("update:modelValue", o);
|
|
519
539
|
const r = c(o);
|
|
520
|
-
a("error", r.res ? "" : r.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
521
|
-
|
|
540
|
+
a("error", r.res ? "" : r.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((_) => {
|
|
541
|
+
_.event === "change" && a(_.event, _.handlerName, o);
|
|
522
542
|
});
|
|
523
543
|
};
|
|
524
544
|
return t({
|
|
@@ -527,8 +547,8 @@ const ae = (e, t) => {
|
|
|
527
547
|
return a("error", o.res ? "" : o.errorMessages), o.res;
|
|
528
548
|
}
|
|
529
549
|
}), (o, r) => {
|
|
530
|
-
const
|
|
531
|
-
return v(), L(
|
|
550
|
+
const _ = I("ATextarea");
|
|
551
|
+
return v(), L(_, {
|
|
532
552
|
"model-value": n.modelValue,
|
|
533
553
|
placeholder: "Please enter something",
|
|
534
554
|
"allow-clear": "",
|
|
@@ -538,9 +558,9 @@ const ae = (e, t) => {
|
|
|
538
558
|
}, null, 8, ["model-value", "disabled"]);
|
|
539
559
|
};
|
|
540
560
|
}
|
|
541
|
-
}),
|
|
561
|
+
}), Nt = /* @__PURE__ */ F({
|
|
542
562
|
__name: "CheckBox",
|
|
543
|
-
props: /* @__PURE__ */
|
|
563
|
+
props: /* @__PURE__ */ q({
|
|
544
564
|
fieldKey: {},
|
|
545
565
|
modelValue: {},
|
|
546
566
|
config: {},
|
|
@@ -551,12 +571,12 @@ const ae = (e, t) => {
|
|
|
551
571
|
modelValue: {},
|
|
552
572
|
modelModifiers: {}
|
|
553
573
|
}),
|
|
554
|
-
emits: /* @__PURE__ */
|
|
574
|
+
emits: /* @__PURE__ */ q(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
555
575
|
setup(e, { expose: t, emit: s }) {
|
|
556
576
|
const n = e, a = s, c = ce(e, "modelValue"), l = (o) => ae(n.validations, o), d = (o) => {
|
|
557
577
|
const r = l(o);
|
|
558
|
-
a("error", r.res ? "" : r.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
559
|
-
|
|
578
|
+
a("error", r.res ? "" : r.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((_) => {
|
|
579
|
+
_.event === "change" && a(_.event, _.handlerName, o);
|
|
560
580
|
});
|
|
561
581
|
};
|
|
562
582
|
return t({
|
|
@@ -565,15 +585,15 @@ const ae = (e, t) => {
|
|
|
565
585
|
return a("error", o.res ? "" : o.errorMessages), o.res;
|
|
566
586
|
}
|
|
567
587
|
}), (o, r) => {
|
|
568
|
-
const
|
|
569
|
-
return v(), L(
|
|
588
|
+
const _ = I("ACheckbox");
|
|
589
|
+
return v(), L(_, {
|
|
570
590
|
modelValue: c.value,
|
|
571
591
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => c.value = p),
|
|
572
592
|
clearable: "",
|
|
573
593
|
disabled: n.readonly || n.config.Readonly,
|
|
574
594
|
onChange: d
|
|
575
595
|
}, {
|
|
576
|
-
default:
|
|
596
|
+
default: T(() => r[1] || (r[1] = [
|
|
577
597
|
Z("Yes", -1)
|
|
578
598
|
])),
|
|
579
599
|
_: 1,
|
|
@@ -581,15 +601,15 @@ const ae = (e, t) => {
|
|
|
581
601
|
}, 8, ["modelValue", "disabled"]);
|
|
582
602
|
};
|
|
583
603
|
}
|
|
584
|
-
}),
|
|
604
|
+
}), Tt = { class: "widget-wrapper" }, Ut = { class: "title mb-1.5" }, At = {
|
|
585
605
|
key: 0,
|
|
586
606
|
class: "required"
|
|
587
|
-
},
|
|
607
|
+
}, Lt = { class: "form-widget" }, Mt = { class: "widget" }, Ft = {
|
|
588
608
|
key: 0,
|
|
589
609
|
class: "err-msg"
|
|
590
|
-
},
|
|
610
|
+
}, Rt = /* @__PURE__ */ F({
|
|
591
611
|
__name: "index",
|
|
592
|
-
props: /* @__PURE__ */
|
|
612
|
+
props: /* @__PURE__ */ q({
|
|
593
613
|
config: {},
|
|
594
614
|
className: {},
|
|
595
615
|
fieldKey: {},
|
|
@@ -601,33 +621,33 @@ const ae = (e, t) => {
|
|
|
601
621
|
modelValue: {},
|
|
602
622
|
modelModifiers: {}
|
|
603
623
|
}),
|
|
604
|
-
emits: /* @__PURE__ */
|
|
624
|
+
emits: /* @__PURE__ */ q(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
605
625
|
setup(e, { expose: t, emit: s }) {
|
|
606
|
-
const n = e, a = s, c = ce(e, "modelValue"), l = he("widgetRef"), d =
|
|
626
|
+
const n = e, a = s, c = ce(e, "modelValue"), l = he("widgetRef"), d = B(() => {
|
|
607
627
|
switch (n.config?.widget?.widget) {
|
|
608
628
|
case "TextBox":
|
|
609
|
-
return
|
|
629
|
+
return Ne;
|
|
610
630
|
case "Number":
|
|
611
|
-
return
|
|
631
|
+
return Vt;
|
|
612
632
|
case "SelectList":
|
|
613
|
-
return
|
|
633
|
+
return Te;
|
|
614
634
|
case "Cascade":
|
|
615
|
-
return
|
|
635
|
+
return $t;
|
|
616
636
|
case "File":
|
|
617
|
-
return
|
|
637
|
+
return xt;
|
|
618
638
|
case "TextArea":
|
|
619
|
-
return
|
|
639
|
+
return It;
|
|
620
640
|
case "DropDown":
|
|
621
|
-
return
|
|
641
|
+
return Te;
|
|
622
642
|
case "CheckBox":
|
|
623
|
-
return
|
|
643
|
+
return Nt;
|
|
624
644
|
default:
|
|
625
|
-
return
|
|
645
|
+
return Ne;
|
|
626
646
|
}
|
|
627
|
-
}), o =
|
|
647
|
+
}), o = h(""), r = (b) => {
|
|
628
648
|
o.value = b;
|
|
629
|
-
},
|
|
630
|
-
a("change", b,
|
|
649
|
+
}, _ = (b, y) => {
|
|
650
|
+
a("change", b, y);
|
|
631
651
|
};
|
|
632
652
|
function p() {
|
|
633
653
|
return n.config?.widget?.widget === "File";
|
|
@@ -645,28 +665,28 @@ const ae = (e, t) => {
|
|
|
645
665
|
getCompName() {
|
|
646
666
|
return n?.config?.widget?.title;
|
|
647
667
|
}
|
|
648
|
-
}), (b,
|
|
649
|
-
|
|
650
|
-
Z(
|
|
651
|
-
n.config.validations.length ? (v(),
|
|
668
|
+
}), (b, y) => (v(), C("div", Tt, [
|
|
669
|
+
k("div", Ut, [
|
|
670
|
+
Z(W(n?.config?.widget?.title), 1),
|
|
671
|
+
n.config.validations.length ? (v(), C("span", At, "*")) : ee("", !0)
|
|
652
672
|
]),
|
|
653
|
-
|
|
654
|
-
|
|
673
|
+
k("div", Lt, [
|
|
674
|
+
k("div", Mt, [
|
|
655
675
|
(v(), L(ke(d.value), {
|
|
656
676
|
ref_key: "widgetRef",
|
|
657
677
|
ref: l,
|
|
658
678
|
modelValue: c.value,
|
|
659
|
-
"onUpdate:modelValue":
|
|
679
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => c.value = w),
|
|
660
680
|
"field-key": n.fieldKey,
|
|
661
681
|
config: n.config.widget,
|
|
662
682
|
validations: n.config.validations,
|
|
663
683
|
triggers: n.config.triggers,
|
|
664
684
|
"class-name": n.className,
|
|
665
685
|
onError: r,
|
|
666
|
-
onChange:
|
|
686
|
+
onChange: _
|
|
667
687
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"]))
|
|
668
688
|
]),
|
|
669
|
-
o.value.length > 0 ? (v(),
|
|
689
|
+
o.value.length > 0 ? (v(), C("div", Ft, W(o.value), 1)) : ee("", !0)
|
|
670
690
|
])
|
|
671
691
|
]));
|
|
672
692
|
}
|
|
@@ -675,7 +695,7 @@ const ae = (e, t) => {
|
|
|
675
695
|
for (const [n, a] of t)
|
|
676
696
|
s[n] = a;
|
|
677
697
|
return s;
|
|
678
|
-
}, Ve = /* @__PURE__ */ oe(
|
|
698
|
+
}, Ve = /* @__PURE__ */ oe(Rt, [["__scopeId", "data-v-9d7c1669"]]), Dt = /* @__PURE__ */ F({
|
|
679
699
|
__name: "SubmitButton",
|
|
680
700
|
props: {
|
|
681
701
|
url: {},
|
|
@@ -688,19 +708,19 @@ const ae = (e, t) => {
|
|
|
688
708
|
n("click", s.url, s.redirectType);
|
|
689
709
|
}
|
|
690
710
|
return (c, l) => {
|
|
691
|
-
const d =
|
|
711
|
+
const d = I("AButton");
|
|
692
712
|
return v(), L(d, {
|
|
693
713
|
type: "primary",
|
|
694
714
|
onClick: a
|
|
695
715
|
}, {
|
|
696
|
-
default:
|
|
697
|
-
|
|
716
|
+
default: T(() => [
|
|
717
|
+
J(c.$slots, "default")
|
|
698
718
|
]),
|
|
699
719
|
_: 3
|
|
700
720
|
});
|
|
701
721
|
};
|
|
702
722
|
}
|
|
703
|
-
}),
|
|
723
|
+
}), Ht = /* @__PURE__ */ F({
|
|
704
724
|
__name: "DetailLink",
|
|
705
725
|
props: {
|
|
706
726
|
url: {},
|
|
@@ -713,10 +733,10 @@ const ae = (e, t) => {
|
|
|
713
733
|
n("click", s.url, s.redirectType);
|
|
714
734
|
}
|
|
715
735
|
return (c, l) => {
|
|
716
|
-
const d =
|
|
736
|
+
const d = I("ALink");
|
|
717
737
|
return v(), L(d, { onClick: a }, {
|
|
718
|
-
default:
|
|
719
|
-
|
|
738
|
+
default: T(() => [
|
|
739
|
+
J(c.$slots, "default")
|
|
720
740
|
]),
|
|
721
741
|
_: 3
|
|
722
742
|
});
|
|
@@ -733,44 +753,44 @@ const ae = (e, t) => {
|
|
|
733
753
|
function a(o, r) {
|
|
734
754
|
n("click", s.config.widget, o, r, s.config.title);
|
|
735
755
|
}
|
|
736
|
-
const c =
|
|
756
|
+
const c = B(() => {
|
|
737
757
|
switch (s.config.location) {
|
|
738
758
|
case "InOperation":
|
|
739
|
-
return
|
|
759
|
+
return Dt;
|
|
740
760
|
case "InTable":
|
|
741
761
|
default:
|
|
742
|
-
return
|
|
762
|
+
return Ht;
|
|
743
763
|
}
|
|
744
|
-
}), l =
|
|
764
|
+
}), l = B(() => s.config.widget === z.Submit ? s.config.requestUrl ?? "" : s.config.widget === z.Link ? s.config.redirectUrl ?? "" : ""), d = B(() => s.config.redirectType ?? "Details");
|
|
745
765
|
return (o, r) => (v(), L(ke(c.value), {
|
|
746
766
|
url: l.value,
|
|
747
767
|
"redirect-type": d.value,
|
|
748
768
|
onClick: a
|
|
749
769
|
}, {
|
|
750
|
-
default:
|
|
751
|
-
Z(
|
|
770
|
+
default: T(() => [
|
|
771
|
+
Z(W(s.config.title), 1)
|
|
752
772
|
]),
|
|
753
773
|
_: 1
|
|
754
774
|
}, 8, ["url", "redirect-type"]));
|
|
755
775
|
}
|
|
756
|
-
}),
|
|
776
|
+
}), De = Symbol("library-router");
|
|
757
777
|
function fe() {
|
|
758
|
-
const e = ne(
|
|
759
|
-
return e ||
|
|
778
|
+
const e = ne(De, null);
|
|
779
|
+
return e || tt();
|
|
760
780
|
}
|
|
761
|
-
const
|
|
781
|
+
const He = Symbol("library-triggers");
|
|
762
782
|
function $e() {
|
|
763
|
-
const e = ne(
|
|
783
|
+
const e = ne(He, null);
|
|
764
784
|
return e || {};
|
|
765
785
|
}
|
|
766
|
-
const
|
|
786
|
+
const Pt = Symbol("library-pinia"), Pe = Symbol("library-bpmStore"), Be = Symbol("library-svrStore");
|
|
767
787
|
function pe() {
|
|
768
788
|
return ne(Pe, null);
|
|
769
789
|
}
|
|
770
790
|
function me() {
|
|
771
791
|
return ne(Be, null);
|
|
772
792
|
}
|
|
773
|
-
const
|
|
793
|
+
const Bt = { class: "top-bar" }, zt = { class: "banner-info" }, Et = { class: "page-title" }, Kt = { class: "page-subtitle" }, Ot = { class: "avatar-wrapper" }, jt = { class: "user-email" }, Gt = /* @__PURE__ */ F({
|
|
774
794
|
__name: "TopBar",
|
|
775
795
|
props: {
|
|
776
796
|
title: {},
|
|
@@ -779,25 +799,25 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
779
799
|
},
|
|
780
800
|
setup(e) {
|
|
781
801
|
return (t, s) => {
|
|
782
|
-
const n =
|
|
783
|
-
return v(),
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
802
|
+
const n = I("a-avatar"), a = I("a-popover");
|
|
803
|
+
return v(), C("div", Bt, [
|
|
804
|
+
k("div", zt, [
|
|
805
|
+
k("div", Et, W(t.title), 1),
|
|
806
|
+
k("div", Kt, W(t.subTitle), 1)
|
|
787
807
|
]),
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
content:
|
|
791
|
-
|
|
808
|
+
k("div", Ot, [
|
|
809
|
+
N(a, { trigger: "click" }, {
|
|
810
|
+
content: T(() => [
|
|
811
|
+
k("div", jt, W(t.email), 1)
|
|
792
812
|
]),
|
|
793
|
-
default:
|
|
794
|
-
|
|
813
|
+
default: T(() => [
|
|
814
|
+
N(n, {
|
|
795
815
|
size: 48,
|
|
796
816
|
autoFixFontSize: "",
|
|
797
817
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
798
818
|
}, {
|
|
799
|
-
default:
|
|
800
|
-
Z(
|
|
819
|
+
default: T(() => [
|
|
820
|
+
Z(W(t.email.charAt(0).toUpperCase()), 1)
|
|
801
821
|
]),
|
|
802
822
|
_: 1
|
|
803
823
|
})
|
|
@@ -808,16 +828,16 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
808
828
|
]);
|
|
809
829
|
};
|
|
810
830
|
}
|
|
811
|
-
}), ge = /* @__PURE__ */ oe(
|
|
831
|
+
}), ge = /* @__PURE__ */ oe(Gt, [["__scopeId", "data-v-c0457235"]]), Wt = { class: "page-container" }, qt = { class: "page-body" }, Yt = { class: "form-card" }, Jt = { class: "form-fields" }, Xt = {
|
|
812
832
|
key: 0,
|
|
813
833
|
class: "form-content"
|
|
814
|
-
},
|
|
834
|
+
}, Qt = { class: "page-footer" }, Zt = { class: "action-container" }, en = { class: "action-buttons" }, tn = /* @__PURE__ */ F({
|
|
815
835
|
__name: "CreateView",
|
|
816
836
|
props: {
|
|
817
837
|
className: {}
|
|
818
838
|
},
|
|
819
839
|
setup(e) {
|
|
820
|
-
const t = pe(), s = me(), n = fe(), a = $e(), c = he("dataWidgets"), l = ue(), d = e, o =
|
|
840
|
+
const t = pe(), s = me(), n = fe(), a = $e(), c = he("dataWidgets"), l = ue(), d = e, o = h({
|
|
821
841
|
pageType: "",
|
|
822
842
|
fields: {},
|
|
823
843
|
globalValidations: [],
|
|
@@ -825,37 +845,37 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
825
845
|
title: "",
|
|
826
846
|
subTitle: ""
|
|
827
847
|
}
|
|
828
|
-
}), r =
|
|
848
|
+
}), r = h([]), _ = h({});
|
|
829
849
|
function p(m) {
|
|
830
850
|
return m ? Object.entries(m).map(([i, u]) => ({
|
|
831
851
|
fieldKey: i,
|
|
832
852
|
...u
|
|
833
|
-
})).filter((i) => i.widget && i.widget.widget !== "Hidden").filter((i) => !
|
|
853
|
+
})).filter((i) => i.widget && i.widget.widget !== "Hidden").filter((i) => !K.value.includes(i.fieldKey)) : [];
|
|
834
854
|
}
|
|
835
855
|
function b(m) {
|
|
836
856
|
return m ? Object.entries(m).filter(([i, u]) => u.dependent).reduce((i, [u, f]) => (i[u] = f.dependent, i), {}) : [];
|
|
837
857
|
}
|
|
838
|
-
const
|
|
839
|
-
|
|
840
|
-
|
|
858
|
+
const y = B(() => o.value?.actions ? [...o.value.actions].reverse() : []), w = Se({}), V = h(!1);
|
|
859
|
+
X(async () => {
|
|
860
|
+
V.value = !0, o.value = await de(te.Create, d.className, {
|
|
841
861
|
svrStore: s,
|
|
842
862
|
bpmStore: t
|
|
843
|
-
}), r.value = p(o.value.fields),
|
|
863
|
+
}), r.value = p(o.value.fields), _.value = b(o.value.fields), console.log("🚀 ~ _dependent.value:", _.value);
|
|
844
864
|
for (const m in o.value.fields) {
|
|
845
865
|
if (o.value.fields[m].widget?.widget === "File") {
|
|
846
866
|
const g = r.value.find((i) => i.fieldKey === m);
|
|
847
867
|
g && g.widget && (g.widget.files = []);
|
|
848
868
|
}
|
|
849
|
-
|
|
869
|
+
w[m] = o.value.fields[m].modelValue;
|
|
850
870
|
}
|
|
851
|
-
|
|
871
|
+
V.value = !1;
|
|
852
872
|
});
|
|
853
|
-
function
|
|
873
|
+
function R() {
|
|
854
874
|
return s()?.userInfo?.email_address ?? "";
|
|
855
875
|
}
|
|
856
|
-
async function
|
|
876
|
+
async function Y(m, g, i) {
|
|
857
877
|
switch (m) {
|
|
858
|
-
case
|
|
878
|
+
case z.Submit:
|
|
859
879
|
let u = !0;
|
|
860
880
|
if (c.value?.forEach((U) => {
|
|
861
881
|
U?.validate && (U.validate() || (u = !1));
|
|
@@ -863,78 +883,78 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
863
883
|
l?.appContext.config.globalProperties.$message.error("表单验证未通过,请检查输入项");
|
|
864
884
|
return;
|
|
865
885
|
}
|
|
866
|
-
const f = await
|
|
886
|
+
const f = await dt(d.className, { ...w, ..._.value }, g);
|
|
867
887
|
c.value?.forEach((U) => {
|
|
868
888
|
U?.submit && U.submit(f.toString());
|
|
869
889
|
}), l?.appContext.config.globalProperties.$notification.success("创建成功!"), n.push({ name: "List", params: { className: d.className } });
|
|
870
890
|
break;
|
|
871
|
-
case
|
|
891
|
+
case z.Link:
|
|
872
892
|
i === "List" && n.push({ name: "List", params: { className: d.className } });
|
|
873
893
|
break;
|
|
874
894
|
default:
|
|
875
895
|
console.warn("Unknown action type:", m);
|
|
876
896
|
}
|
|
877
897
|
}
|
|
878
|
-
const
|
|
898
|
+
const K = h([
|
|
879
899
|
"jobScpope",
|
|
880
900
|
"currentWorkdayId",
|
|
881
901
|
"originalGrade",
|
|
882
902
|
"jobTitlePrevious",
|
|
883
903
|
"positionId"
|
|
884
904
|
]);
|
|
885
|
-
function
|
|
886
|
-
a[m]?.(g,
|
|
905
|
+
function x(m, g) {
|
|
906
|
+
a[m]?.(g, K), o.value && (r.value = p(o.value.fields));
|
|
887
907
|
}
|
|
888
908
|
return (m, g) => {
|
|
889
|
-
const i =
|
|
890
|
-
return v(),
|
|
891
|
-
|
|
909
|
+
const i = I("a-spin");
|
|
910
|
+
return v(), C("div", Wt, [
|
|
911
|
+
N(ge, {
|
|
892
912
|
title: o.value.banner.title,
|
|
893
913
|
subTitle: o.value.banner.subTitle,
|
|
894
|
-
email:
|
|
914
|
+
email: R()
|
|
895
915
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
loading:
|
|
916
|
+
k("div", qt, [
|
|
917
|
+
N(i, {
|
|
918
|
+
loading: V.value,
|
|
899
919
|
class: "form-container"
|
|
900
920
|
}, {
|
|
901
|
-
default:
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
(v(!0),
|
|
921
|
+
default: T(() => [
|
|
922
|
+
k("div", Yt, [
|
|
923
|
+
k("div", Jt, [
|
|
924
|
+
(v(!0), C(H, null, E(r.value, (u, f) => (v(), C("div", {
|
|
905
925
|
key: u.fieldKey,
|
|
906
926
|
class: "form-field-wrapper"
|
|
907
927
|
}, [
|
|
908
|
-
|
|
928
|
+
N(Ve, {
|
|
909
929
|
ref_for: !0,
|
|
910
930
|
ref: "dataWidgets",
|
|
911
931
|
"field-key": u.fieldKey,
|
|
912
932
|
config: u,
|
|
913
933
|
"class-name": m.className,
|
|
914
|
-
modelValue:
|
|
915
|
-
"onUpdate:modelValue": (U) =>
|
|
934
|
+
modelValue: w[u.fieldKey],
|
|
935
|
+
"onUpdate:modelValue": (U) => w[u.fieldKey] = U,
|
|
916
936
|
class: "form-field",
|
|
917
|
-
onChange:
|
|
937
|
+
onChange: x
|
|
918
938
|
}, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
919
939
|
]))), 128))
|
|
920
940
|
]),
|
|
921
|
-
m.$slots.content ? (v(),
|
|
922
|
-
|
|
941
|
+
m.$slots.content ? (v(), C("div", Xt, [
|
|
942
|
+
J(m.$slots, "content", {}, void 0, !0)
|
|
923
943
|
])) : ee("", !0)
|
|
924
944
|
])
|
|
925
945
|
]),
|
|
926
946
|
_: 3
|
|
927
947
|
}, 8, ["loading"])
|
|
928
948
|
]),
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
(v(!0),
|
|
949
|
+
k("div", Qt, [
|
|
950
|
+
k("div", Zt, [
|
|
951
|
+
J(m.$slots, "action", {}, void 0, !0),
|
|
952
|
+
k("div", en, [
|
|
953
|
+
(v(!0), C(H, null, E(y.value, (u) => (v(), L(le, {
|
|
934
954
|
key: u.Title,
|
|
935
955
|
config: u,
|
|
936
956
|
class: "action-button",
|
|
937
|
-
onClick:
|
|
957
|
+
onClick: Y
|
|
938
958
|
}, null, 8, ["config"]))), 128))
|
|
939
959
|
])
|
|
940
960
|
])
|
|
@@ -942,17 +962,17 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
942
962
|
]);
|
|
943
963
|
};
|
|
944
964
|
}
|
|
945
|
-
}),
|
|
965
|
+
}), nn = /* @__PURE__ */ oe(tn, [["__scopeId", "data-v-20f3970f"]]), an = { class: "page-container" }, on = { class: "page-body" }, sn = { class: "form-card" }, rn = { class: "form-fields" }, ln = {
|
|
946
966
|
key: 0,
|
|
947
967
|
class: "form-content"
|
|
948
|
-
},
|
|
968
|
+
}, cn = { class: "page-footer" }, un = { class: "action-container" }, dn = { class: "action-buttons" }, fn = /* @__PURE__ */ F({
|
|
949
969
|
__name: "UpdateView",
|
|
950
970
|
props: {
|
|
951
971
|
className: {},
|
|
952
972
|
workflowId: {}
|
|
953
973
|
},
|
|
954
974
|
setup(e) {
|
|
955
|
-
const t = fe(), s = $e(), n = me(), a = pe(), c = he("dataWidgets"), l = ue(), d = e, o =
|
|
975
|
+
const t = fe(), s = $e(), n = me(), a = pe(), c = he("dataWidgets"), l = ue(), d = e, o = h({
|
|
956
976
|
pageType: "",
|
|
957
977
|
fields: {},
|
|
958
978
|
globalValidations: [],
|
|
@@ -960,44 +980,44 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
960
980
|
title: "",
|
|
961
981
|
subTitle: ""
|
|
962
982
|
}
|
|
963
|
-
}), r =
|
|
983
|
+
}), r = h([]), _ = h({});
|
|
964
984
|
function p(m) {
|
|
965
985
|
return m ? Object.entries(m).map(([i, u]) => ({
|
|
966
986
|
fieldKey: i,
|
|
967
987
|
...u
|
|
968
|
-
})).filter((i) => i.widget && i.widget.widget !== "Hidden").filter((i) => !
|
|
988
|
+
})).filter((i) => i.widget && i.widget.widget !== "Hidden").filter((i) => !K.value.includes(i.fieldKey)) : [];
|
|
969
989
|
}
|
|
970
990
|
function b(m) {
|
|
971
991
|
return m ? Object.entries(m).filter(([i, u]) => u.dependent).reduce((i, [u, f]) => (i[u] = f.dependent, i), {}) : [];
|
|
972
992
|
}
|
|
973
|
-
const
|
|
974
|
-
|
|
975
|
-
|
|
993
|
+
const y = B(() => o.value?.actions ? [...o.value.actions].reverse() : []), w = Se({}), V = h(!1);
|
|
994
|
+
X(async () => {
|
|
995
|
+
V.value = !0, o.value = await de(te.Update, d.className, {
|
|
976
996
|
svrStore: n,
|
|
977
997
|
bpmStore: a
|
|
978
998
|
}, {
|
|
979
999
|
workflowId: d.workflowId
|
|
980
1000
|
});
|
|
981
|
-
const m = await Fe(te.Update, d.className, { workflowId: d.workflowId, email:
|
|
1001
|
+
const m = await Fe(te.Update, d.className, { workflowId: d.workflowId, email: R() }), g = await Re(d.className, d.workflowId);
|
|
982
1002
|
o.value.actions = o.value.actions?.filter((i) => {
|
|
983
1003
|
const u = m.find((f) => f.button === i.title);
|
|
984
1004
|
return u ? u.isShow : !0;
|
|
985
|
-
}), r.value = p(o.value.fields),
|
|
1005
|
+
}), r.value = p(o.value.fields), _.value = b(o.value.fields), console.log("🚀 ~ _dependent.value:", _.value);
|
|
986
1006
|
for (const i in o.value.fields) {
|
|
987
1007
|
if (o.value.fields[i].widget?.widget === "File") {
|
|
988
1008
|
const u = r.value.find((f) => f.fieldKey === i);
|
|
989
|
-
u && u.widget && (u.widget.files = g[i] ?? []);
|
|
1009
|
+
u && u.widget && (u.widget.files = g[i] ?? [], u.widget.removeFile = (f) => kt(d.className, f));
|
|
990
1010
|
}
|
|
991
|
-
|
|
1011
|
+
w[i] = o.value.fields[i].modelValue;
|
|
992
1012
|
}
|
|
993
|
-
|
|
1013
|
+
V.value = !1;
|
|
994
1014
|
});
|
|
995
|
-
function
|
|
1015
|
+
function R() {
|
|
996
1016
|
return n()?.userInfo?.email_address ?? "";
|
|
997
1017
|
}
|
|
998
|
-
async function
|
|
1018
|
+
async function Y(m, g, i) {
|
|
999
1019
|
switch (m) {
|
|
1000
|
-
case
|
|
1020
|
+
case z.Submit:
|
|
1001
1021
|
let u = !0;
|
|
1002
1022
|
if (c.value?.forEach((f) => {
|
|
1003
1023
|
f?.validate && (f.validate() || (u = !1));
|
|
@@ -1005,78 +1025,78 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
1005
1025
|
l?.appContext.config.globalProperties.$message.error("表单验证未通过,请检查输入项");
|
|
1006
1026
|
return;
|
|
1007
1027
|
}
|
|
1008
|
-
await
|
|
1028
|
+
await ft(d.className, d.workflowId, { ...w, ..._.value }, g), c.value?.forEach((f) => {
|
|
1009
1029
|
f?.submit && f.submit(d.workflowId);
|
|
1010
1030
|
}), l?.appContext.config.globalProperties.$notification.success("修改成功!"), t.push({ name: "List", params: { className: d.className } });
|
|
1011
1031
|
break;
|
|
1012
|
-
case
|
|
1032
|
+
case z.Link:
|
|
1013
1033
|
t.push({ name: i, params: { className: d.className } });
|
|
1014
1034
|
break;
|
|
1015
1035
|
default:
|
|
1016
1036
|
console.warn("Unknown action type:", m);
|
|
1017
1037
|
}
|
|
1018
1038
|
}
|
|
1019
|
-
const
|
|
1039
|
+
const K = h([
|
|
1020
1040
|
"jobScpope",
|
|
1021
1041
|
"currentWorkdayId",
|
|
1022
1042
|
"originalGrade",
|
|
1023
1043
|
"jobTitlePrevious",
|
|
1024
1044
|
"positionId"
|
|
1025
1045
|
]);
|
|
1026
|
-
function
|
|
1027
|
-
s[m]?.(g,
|
|
1046
|
+
function x(m, g) {
|
|
1047
|
+
s[m]?.(g, K), o.value && (r.value = p(o.value.fields));
|
|
1028
1048
|
}
|
|
1029
1049
|
return (m, g) => {
|
|
1030
|
-
const i =
|
|
1031
|
-
return v(),
|
|
1032
|
-
|
|
1050
|
+
const i = I("a-spin");
|
|
1051
|
+
return v(), C("div", an, [
|
|
1052
|
+
N(ge, {
|
|
1033
1053
|
title: o.value.banner.title,
|
|
1034
1054
|
subTitle: o.value.banner.subTitle,
|
|
1035
|
-
email:
|
|
1055
|
+
email: R()
|
|
1036
1056
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
loading:
|
|
1057
|
+
k("div", on, [
|
|
1058
|
+
N(i, {
|
|
1059
|
+
loading: V.value,
|
|
1040
1060
|
class: "form-container"
|
|
1041
1061
|
}, {
|
|
1042
|
-
default:
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
(v(!0),
|
|
1062
|
+
default: T(() => [
|
|
1063
|
+
k("div", sn, [
|
|
1064
|
+
k("div", rn, [
|
|
1065
|
+
(v(!0), C(H, null, E(r.value, (u, f) => (v(), C("div", {
|
|
1046
1066
|
key: u.fieldKey,
|
|
1047
1067
|
class: "form-field-wrapper"
|
|
1048
1068
|
}, [
|
|
1049
|
-
|
|
1069
|
+
N(Ve, {
|
|
1050
1070
|
ref_for: !0,
|
|
1051
1071
|
ref: "dataWidgets",
|
|
1052
1072
|
"field-key": u.fieldKey,
|
|
1053
1073
|
name: f,
|
|
1054
1074
|
config: u,
|
|
1055
1075
|
"class-name": m.className,
|
|
1056
|
-
modelValue:
|
|
1057
|
-
"onUpdate:modelValue": (U) =>
|
|
1076
|
+
modelValue: w[u.fieldKey],
|
|
1077
|
+
"onUpdate:modelValue": (U) => w[u.fieldKey] = U,
|
|
1058
1078
|
class: "form-field",
|
|
1059
|
-
onChange:
|
|
1079
|
+
onChange: x
|
|
1060
1080
|
}, null, 8, ["field-key", "name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
|
|
1061
1081
|
]))), 128))
|
|
1062
1082
|
]),
|
|
1063
|
-
m.$slots.content ? (v(),
|
|
1064
|
-
|
|
1083
|
+
m.$slots.content ? (v(), C("div", ln, [
|
|
1084
|
+
J(m.$slots, "content", {}, void 0, !0)
|
|
1065
1085
|
])) : ee("", !0)
|
|
1066
1086
|
])
|
|
1067
1087
|
]),
|
|
1068
1088
|
_: 3
|
|
1069
1089
|
}, 8, ["loading"])
|
|
1070
1090
|
]),
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
(v(!0),
|
|
1091
|
+
k("div", cn, [
|
|
1092
|
+
k("div", un, [
|
|
1093
|
+
J(m.$slots, "action", {}, void 0, !0),
|
|
1094
|
+
k("div", dn, [
|
|
1095
|
+
(v(!0), C(H, null, E(y.value, (u) => (v(), L(le, {
|
|
1076
1096
|
key: u.Title,
|
|
1077
1097
|
config: u,
|
|
1078
1098
|
class: "action-button",
|
|
1079
|
-
onClick:
|
|
1099
|
+
onClick: Y
|
|
1080
1100
|
}, null, 8, ["config"]))), 128))
|
|
1081
1101
|
])
|
|
1082
1102
|
])
|
|
@@ -1084,24 +1104,24 @@ const Rt = { class: "top-bar" }, Pt = { class: "banner-info" }, Bt = { class: "p
|
|
|
1084
1104
|
]);
|
|
1085
1105
|
};
|
|
1086
1106
|
}
|
|
1087
|
-
}),
|
|
1088
|
-
function
|
|
1107
|
+
}), pn = /* @__PURE__ */ oe(fn, [["__scopeId", "data-v-df5f0fda"]]), ze = Symbol("library-custom-comp");
|
|
1108
|
+
function mn() {
|
|
1089
1109
|
return ne(ze, null);
|
|
1090
1110
|
}
|
|
1091
|
-
const
|
|
1111
|
+
const gn = Symbol("ArcoConfigProvider"), vn = "arco", _n = "$arco", wn = (e) => {
|
|
1092
1112
|
var t, s, n;
|
|
1093
|
-
const a = ue(), c = ne(
|
|
1094
|
-
return `${(n = (s = c?.prefixCls) != null ? s : (t = a?.appContext.config.globalProperties[
|
|
1095
|
-
},
|
|
1096
|
-
function
|
|
1097
|
-
return
|
|
1113
|
+
const a = ue(), c = ne(gn, void 0);
|
|
1114
|
+
return `${(n = (s = c?.prefixCls) != null ? s : (t = a?.appContext.config.globalProperties[_n]) == null ? void 0 : t.classPrefix) != null ? n : vn}-${e}`;
|
|
1115
|
+
}, bn = Object.prototype.toString;
|
|
1116
|
+
function yn(e) {
|
|
1117
|
+
return bn.call(e) === "[object Number]" && e === e;
|
|
1098
1118
|
}
|
|
1099
|
-
var
|
|
1119
|
+
var hn = (e, t) => {
|
|
1100
1120
|
for (const [s, n] of t)
|
|
1101
1121
|
e[s] = n;
|
|
1102
1122
|
return e;
|
|
1103
1123
|
};
|
|
1104
|
-
const
|
|
1124
|
+
const kn = F({
|
|
1105
1125
|
name: "IconDownload",
|
|
1106
1126
|
props: {
|
|
1107
1127
|
size: {
|
|
@@ -1128,9 +1148,9 @@ const yn = F({
|
|
|
1128
1148
|
click: (e) => !0
|
|
1129
1149
|
},
|
|
1130
1150
|
setup(e, { emit: t }) {
|
|
1131
|
-
const s =
|
|
1151
|
+
const s = wn("icon"), n = B(() => [s, `${s}-download`, { [`${s}-spin`]: e.spin }]), a = B(() => {
|
|
1132
1152
|
const l = {};
|
|
1133
|
-
return e.size && (l.fontSize =
|
|
1153
|
+
return e.size && (l.fontSize = yn(e.size) ? `${e.size}px` : e.size), e.rotate && (l.transform = `rotate(${e.rotate}deg)`), l;
|
|
1134
1154
|
});
|
|
1135
1155
|
return {
|
|
1136
1156
|
cls: n,
|
|
@@ -1140,9 +1160,9 @@ const yn = F({
|
|
|
1140
1160
|
}
|
|
1141
1161
|
};
|
|
1142
1162
|
}
|
|
1143
|
-
}),
|
|
1144
|
-
function
|
|
1145
|
-
return v(),
|
|
1163
|
+
}), Sn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1164
|
+
function Cn(e, t, s, n, a, c) {
|
|
1165
|
+
return v(), C("svg", {
|
|
1146
1166
|
viewBox: "0 0 48 48",
|
|
1147
1167
|
fill: "none",
|
|
1148
1168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1154,30 +1174,30 @@ function kn(e, t, s, n, a, c) {
|
|
|
1154
1174
|
"stroke-linejoin": e.strokeLinejoin,
|
|
1155
1175
|
onClick: t[0] || (t[0] = (...l) => e.onClick && e.onClick(...l))
|
|
1156
1176
|
}, t[1] || (t[1] = [
|
|
1157
|
-
|
|
1158
|
-
]), 14,
|
|
1177
|
+
k("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
|
|
1178
|
+
]), 14, Sn);
|
|
1159
1179
|
}
|
|
1160
|
-
var be = /* @__PURE__ */
|
|
1161
|
-
const
|
|
1180
|
+
var be = /* @__PURE__ */ hn(kn, [["render", Cn]]);
|
|
1181
|
+
const Vn = Object.assign(be, {
|
|
1162
1182
|
install: (e, t) => {
|
|
1163
1183
|
var s;
|
|
1164
1184
|
const n = (s = t?.iconPrefix) != null ? s : "";
|
|
1165
1185
|
e.component(n + be.name, be);
|
|
1166
1186
|
}
|
|
1167
|
-
}),
|
|
1187
|
+
}), $n = { class: "page-container" }, xn = { class: "page-body" }, In = { class: "detail-card" }, Nn = { class: "detail-fields" }, Tn = { class: "detail-field" }, Un = { class: "field-label" }, An = {
|
|
1168
1188
|
key: 1,
|
|
1169
1189
|
class: "field-value"
|
|
1170
|
-
},
|
|
1190
|
+
}, Ln = {
|
|
1171
1191
|
key: 0,
|
|
1172
1192
|
class: "detail-content"
|
|
1173
|
-
},
|
|
1193
|
+
}, Mn = { class: "page-footer" }, Fn = { class: "action-container" }, Rn = { class: "action-buttons" }, Dn = /* @__PURE__ */ F({
|
|
1174
1194
|
__name: "DetailView",
|
|
1175
1195
|
props: {
|
|
1176
1196
|
className: {},
|
|
1177
1197
|
workflowId: {}
|
|
1178
1198
|
},
|
|
1179
1199
|
setup(e) {
|
|
1180
|
-
const t = me(), s = pe(), n = $e(), a = fe(), c =
|
|
1200
|
+
const t = me(), s = pe(), n = $e(), a = fe(), c = mn(), l = ue(), d = e, o = h({
|
|
1181
1201
|
pageType: "",
|
|
1182
1202
|
fields: {},
|
|
1183
1203
|
globalValidations: [],
|
|
@@ -1185,17 +1205,17 @@ const Sn = Object.assign(be, {
|
|
|
1185
1205
|
title: "",
|
|
1186
1206
|
subTitle: ""
|
|
1187
1207
|
}
|
|
1188
|
-
}), r =
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1208
|
+
}), r = h([]);
|
|
1209
|
+
function _(x) {
|
|
1210
|
+
return x ? Object.entries(x).map(([g, i]) => (typeof i.modelValue == "boolean" ? i.fieldValue = i.modelValue ? "Yes" : "No" : i.fieldValue = i.modelValue, {
|
|
1191
1211
|
fieldKey: g,
|
|
1192
1212
|
...i
|
|
1193
1213
|
})).filter((g) => g.widget && g.widget.widget !== "Hidden") : [];
|
|
1194
1214
|
}
|
|
1195
|
-
const p =
|
|
1196
|
-
const g = new Date(
|
|
1215
|
+
const p = B(() => o.value?.actions ? [...o.value.actions].reverse() : []), b = h(!0), y = (x, m = "yyyy-MM-dd hh:mm:ss.fff") => {
|
|
1216
|
+
const g = new Date(x);
|
|
1197
1217
|
if (isNaN(g.getTime()))
|
|
1198
|
-
return
|
|
1218
|
+
return x;
|
|
1199
1219
|
const i = {
|
|
1200
1220
|
yyyy: g.getFullYear(),
|
|
1201
1221
|
yy: g.getFullYear().toString().substring(2),
|
|
@@ -1216,9 +1236,9 @@ const Sn = Object.assign(be, {
|
|
|
1216
1236
|
for (const f of Object.keys(i))
|
|
1217
1237
|
u = u.replace(f, i[f]);
|
|
1218
1238
|
return u;
|
|
1219
|
-
},
|
|
1220
|
-
const g =
|
|
1221
|
-
return
|
|
1239
|
+
}, w = (x, m) => {
|
|
1240
|
+
const g = x.findIndex((i) => i.isCurrent);
|
|
1241
|
+
return x.map((i, u) => {
|
|
1222
1242
|
const f = {
|
|
1223
1243
|
id: i.id,
|
|
1224
1244
|
title: "",
|
|
@@ -1233,131 +1253,131 @@ const Sn = Object.assign(be, {
|
|
|
1233
1253
|
if (U && se && U?.email?.toLowerCase() !== se?.approverEmail?.toLowerCase() && (f.title = `${se.name}`, f.proxy = `代理: ${U.name}`), i.sort > 1 ? f.sub = "审批角色:" + i.nodeName.replace("Submit", "").replace("Approve", "") : f.sub = "提交申请", i.isCurrent && m !== -1)
|
|
1234
1254
|
f.desc = "审批中", f.status = 1;
|
|
1235
1255
|
else {
|
|
1236
|
-
const
|
|
1237
|
-
if (
|
|
1238
|
-
f.time =
|
|
1239
|
-
else if (
|
|
1240
|
-
f.time =
|
|
1241
|
-
else if (
|
|
1242
|
-
if (f.time =
|
|
1256
|
+
const P = i.workflowHistorys[i.workflowHistorys.length - 1];
|
|
1257
|
+
if (P && P.status === 100)
|
|
1258
|
+
f.time = y(P.takeActionAt, "yyyy-MM-dd hh:mm:ss"), f.status = 2, f.desc = "已审批";
|
|
1259
|
+
else if (P && P.status === 999)
|
|
1260
|
+
f.time = y(P.takeActionAt, "yyyy-MM-dd hh:mm:ss"), f.status = 0, f.desc = "已跳过";
|
|
1261
|
+
else if (P)
|
|
1262
|
+
if (f.time = y(P.takeActionAt, "yyyy-MM-dd hh:mm:ss"), i.sort === 1)
|
|
1243
1263
|
f.status = 2, f.desc = "";
|
|
1244
1264
|
else {
|
|
1245
|
-
const
|
|
1246
|
-
f.status = 3, f.desc =
|
|
1265
|
+
const S = P.workflowHistoryApprovers[0];
|
|
1266
|
+
f.status = 3, f.desc = S?.reason ? `拒绝原因:${S.reason}` : "已拒绝";
|
|
1247
1267
|
}
|
|
1248
1268
|
else u < g || g === -1 ? (f.status = 0, f.desc = "已跳过") : (f.status = 0, f.desc = "待审批");
|
|
1249
|
-
|
|
1269
|
+
P && P.status;
|
|
1250
1270
|
}
|
|
1251
1271
|
return f;
|
|
1252
1272
|
});
|
|
1253
|
-
},
|
|
1254
|
-
|
|
1273
|
+
}, V = h([]), R = h(!1);
|
|
1274
|
+
X(async () => {
|
|
1255
1275
|
b.value = !0, o.value = await de(te.Details, d.className, {
|
|
1256
1276
|
svrStore: t,
|
|
1257
1277
|
bpmStore: s
|
|
1258
1278
|
}, {
|
|
1259
1279
|
workflowId: d.workflowId
|
|
1260
1280
|
});
|
|
1261
|
-
const
|
|
1281
|
+
const x = await Fe(te.Details, d.className, { workflowId: d.workflowId, email: j() }), m = await Re(d.className, d.workflowId);
|
|
1262
1282
|
o.value.actions = o.value.actions?.filter((i) => {
|
|
1263
|
-
const u =
|
|
1283
|
+
const u = x.find((f) => f.button === i.title);
|
|
1264
1284
|
return u ? u.isShow : !0;
|
|
1265
|
-
}),
|
|
1285
|
+
}), R.value = x.find((i) => i.button === "IsGlobal")?.isShow ?? !1, r.value = _(o.value.fields);
|
|
1266
1286
|
for (const i in o.value.fields)
|
|
1267
1287
|
if (o.value.fields[i].widget?.widget === "File") {
|
|
1268
1288
|
const u = r.value.find((f) => f.fieldKey === i);
|
|
1269
1289
|
u && u.widget && (u.widget.files = m[i] ?? []);
|
|
1270
1290
|
}
|
|
1271
|
-
const g = await
|
|
1272
|
-
|
|
1291
|
+
const g = await yt(d.className, d.workflowId);
|
|
1292
|
+
V.value = w(g, 0), b.value = !1;
|
|
1273
1293
|
});
|
|
1274
|
-
async function
|
|
1275
|
-
return n[
|
|
1294
|
+
async function Y(x, m) {
|
|
1295
|
+
return n[x]?.(m);
|
|
1276
1296
|
}
|
|
1277
|
-
function
|
|
1297
|
+
function j() {
|
|
1278
1298
|
return t()?.userInfo?.email_address ?? "";
|
|
1279
1299
|
}
|
|
1280
|
-
async function
|
|
1300
|
+
async function K(x, m, g, i) {
|
|
1281
1301
|
try {
|
|
1282
|
-
switch (
|
|
1283
|
-
case
|
|
1284
|
-
const { reason: u, ifGlobal: f } = await
|
|
1285
|
-
await
|
|
1302
|
+
switch (x) {
|
|
1303
|
+
case z.Submit:
|
|
1304
|
+
const { reason: u, ifGlobal: f } = await Y(i, { isGlobal: R.value }), U = i === "Approve" ? "100" : "-1";
|
|
1305
|
+
await wt(d.className, d.workflowId, j(), u, [Number(d.workflowId)], m, U, f);
|
|
1286
1306
|
const Q = i === "Approve" ? "审批已通过!" : "审批已拒绝!";
|
|
1287
1307
|
l?.appContext.config.globalProperties.$notification.success(Q), a.push({ name: "List", params: { className: d.className } });
|
|
1288
1308
|
break;
|
|
1289
|
-
case
|
|
1309
|
+
case z.Link:
|
|
1290
1310
|
g === "List" && a.push({ name: "List", params: { className: d.className } });
|
|
1291
1311
|
break;
|
|
1292
1312
|
default:
|
|
1293
|
-
console.warn("Unknown action type:",
|
|
1313
|
+
console.warn("Unknown action type:", x);
|
|
1294
1314
|
}
|
|
1295
1315
|
} catch {
|
|
1296
1316
|
}
|
|
1297
1317
|
}
|
|
1298
|
-
return (
|
|
1299
|
-
const g =
|
|
1300
|
-
return v(),
|
|
1301
|
-
|
|
1318
|
+
return (x, m) => {
|
|
1319
|
+
const g = I("a-link"), i = I("a-space"), u = I("a-spin");
|
|
1320
|
+
return v(), C("div", $n, [
|
|
1321
|
+
N(ge, {
|
|
1302
1322
|
title: o.value.banner.title,
|
|
1303
1323
|
subTitle: o.value.banner.subTitle,
|
|
1304
|
-
email:
|
|
1324
|
+
email: j()
|
|
1305
1325
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1306
|
-
|
|
1307
|
-
|
|
1326
|
+
k("div", xn, [
|
|
1327
|
+
N(u, {
|
|
1308
1328
|
loading: b.value,
|
|
1309
1329
|
class: "detail-container"
|
|
1310
1330
|
}, {
|
|
1311
|
-
default:
|
|
1312
|
-
|
|
1313
|
-
(v(), L(ke(
|
|
1314
|
-
|
|
1315
|
-
(v(!0),
|
|
1331
|
+
default: T(() => [
|
|
1332
|
+
k("div", In, [
|
|
1333
|
+
(v(), L(ke(xe(c).Steps), { steps: V.value }, null, 8, ["steps"])),
|
|
1334
|
+
k("div", Nn, [
|
|
1335
|
+
(v(!0), C(H, null, E(r.value, (f) => (v(), C("div", {
|
|
1316
1336
|
key: f.fieldKey,
|
|
1317
1337
|
class: "detail-field-wrapper"
|
|
1318
1338
|
}, [
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
f.widget?.widget === "File" ? (v(!0),
|
|
1339
|
+
k("div", Tn, [
|
|
1340
|
+
k("div", Un, W(f.widget?.title), 1),
|
|
1341
|
+
f.widget?.widget === "File" ? (v(!0), C(H, { key: 0 }, E(f.widget.files, (U) => (v(), C("div", {
|
|
1322
1342
|
class: "field-value",
|
|
1323
1343
|
key: U.id
|
|
1324
1344
|
}, [
|
|
1325
|
-
|
|
1326
|
-
default:
|
|
1327
|
-
Z(
|
|
1328
|
-
|
|
1345
|
+
N(i, null, {
|
|
1346
|
+
default: T(() => [
|
|
1347
|
+
Z(W(U.name), 1),
|
|
1348
|
+
N(g, {
|
|
1329
1349
|
href: U.url,
|
|
1330
1350
|
target: "_blank"
|
|
1331
1351
|
}, {
|
|
1332
|
-
default:
|
|
1333
|
-
|
|
1352
|
+
default: T(() => [
|
|
1353
|
+
N(xe(Vn), { style: { color: "#7A00E6" } })
|
|
1334
1354
|
]),
|
|
1335
1355
|
_: 2
|
|
1336
1356
|
}, 1032, ["href"])
|
|
1337
1357
|
]),
|
|
1338
1358
|
_: 2
|
|
1339
1359
|
}, 1024)
|
|
1340
|
-
]))), 128)) : (v(),
|
|
1360
|
+
]))), 128)) : (v(), C("div", An, W(f.fieldValue), 1))
|
|
1341
1361
|
])
|
|
1342
1362
|
]))), 128))
|
|
1343
1363
|
]),
|
|
1344
|
-
|
|
1345
|
-
|
|
1364
|
+
x.$slots.content ? (v(), C("div", Ln, [
|
|
1365
|
+
J(x.$slots, "content", {}, void 0, !0)
|
|
1346
1366
|
])) : ee("", !0)
|
|
1347
1367
|
])
|
|
1348
1368
|
]),
|
|
1349
1369
|
_: 3
|
|
1350
1370
|
}, 8, ["loading"])
|
|
1351
1371
|
]),
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
(v(!0),
|
|
1372
|
+
k("div", Mn, [
|
|
1373
|
+
k("div", Fn, [
|
|
1374
|
+
J(x.$slots, "action", {}, void 0, !0),
|
|
1375
|
+
k("div", Rn, [
|
|
1376
|
+
(v(!0), C(H, null, E(p.value, (f) => (v(), L(le, {
|
|
1357
1377
|
key: f.Title,
|
|
1358
1378
|
config: f,
|
|
1359
1379
|
class: "action-button",
|
|
1360
|
-
onClick:
|
|
1380
|
+
onClick: K
|
|
1361
1381
|
}, null, 8, ["config"]))), 128))
|
|
1362
1382
|
])
|
|
1363
1383
|
])
|
|
@@ -1365,14 +1385,14 @@ const Sn = Object.assign(be, {
|
|
|
1365
1385
|
]);
|
|
1366
1386
|
};
|
|
1367
1387
|
}
|
|
1368
|
-
}),
|
|
1388
|
+
}), Hn = /* @__PURE__ */ oe(Dn, [["__scopeId", "data-v-7604f8d3"]]), Pn = { class: "list-container" }, Bn = { class: "query-title" }, zn = { class: "field-wrapper" }, En = /* @__PURE__ */ F({
|
|
1369
1389
|
name: "ListView",
|
|
1370
1390
|
__name: "ListView",
|
|
1371
1391
|
props: {
|
|
1372
1392
|
className: {}
|
|
1373
1393
|
},
|
|
1374
1394
|
setup(e) {
|
|
1375
|
-
const t = me(), s = pe(), n = fe(), a = e, c =
|
|
1395
|
+
const t = me(), s = pe(), n = fe(), a = e, c = h(), l = Se({
|
|
1376
1396
|
current: 1,
|
|
1377
1397
|
total: 0,
|
|
1378
1398
|
pageSize: 10,
|
|
@@ -1382,30 +1402,30 @@ const Sn = Object.assign(be, {
|
|
|
1382
1402
|
filters: []
|
|
1383
1403
|
});
|
|
1384
1404
|
function d() {
|
|
1385
|
-
const
|
|
1386
|
-
key:
|
|
1405
|
+
const S = Object.entries(u.value).filter(([, $]) => $ && $ !== "").map(([$, A]) => ({
|
|
1406
|
+
key: $,
|
|
1387
1407
|
value: A
|
|
1388
1408
|
// operator: 'like' // 根据实际需要调整操作符
|
|
1389
1409
|
}));
|
|
1390
1410
|
return {
|
|
1391
1411
|
pageNumber: l.current,
|
|
1392
1412
|
pageSize: l.pageSize,
|
|
1393
|
-
filters: [...l.filters, ...
|
|
1413
|
+
filters: [...l.filters, ...S],
|
|
1394
1414
|
sorts: [{
|
|
1395
1415
|
key: "status",
|
|
1396
1416
|
type: 0
|
|
1397
1417
|
}]
|
|
1398
1418
|
};
|
|
1399
1419
|
}
|
|
1400
|
-
const o =
|
|
1420
|
+
const o = B(() => ({
|
|
1401
1421
|
x: p.value.length * 150 + 250
|
|
1402
1422
|
// 只设置横向滚动
|
|
1403
1423
|
// 移除 y 属性,让表格高度自适应
|
|
1404
|
-
})), r = (
|
|
1405
|
-
const
|
|
1406
|
-
title:
|
|
1424
|
+
})), r = (S) => {
|
|
1425
|
+
const $ = Object.entries(S).filter(([, A]) => A.widget?.column).map(([A, G], re) => ({
|
|
1426
|
+
title: G.widget.title,
|
|
1407
1427
|
dataIndex: A.charAt(0).toLowerCase() + A.slice(1),
|
|
1408
|
-
order:
|
|
1428
|
+
order: G.order,
|
|
1409
1429
|
ellipsis: !0,
|
|
1410
1430
|
tooltip: !0,
|
|
1411
1431
|
width: 150,
|
|
@@ -1413,8 +1433,8 @@ const Sn = Object.assign(be, {
|
|
|
1413
1433
|
// 启用最小宽度
|
|
1414
1434
|
resizable: !0
|
|
1415
1435
|
// 启用列宽调整
|
|
1416
|
-
})).sort((A,
|
|
1417
|
-
|
|
1436
|
+
})).sort((A, G) => A.order - G.order);
|
|
1437
|
+
$.push({
|
|
1418
1438
|
title: "Actions",
|
|
1419
1439
|
slotName: "optional",
|
|
1420
1440
|
align: "center",
|
|
@@ -1422,105 +1442,105 @@ const Sn = Object.assign(be, {
|
|
|
1422
1442
|
minWidth: 200,
|
|
1423
1443
|
fixed: "right",
|
|
1424
1444
|
resizable: !1
|
|
1425
|
-
}), p.value =
|
|
1426
|
-
},
|
|
1427
|
-
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
},
|
|
1431
|
-
|
|
1445
|
+
}), p.value = $;
|
|
1446
|
+
}, _ = h([]), p = h([]), b = h(!0), y = h(!0), w = h(), V = async () => {
|
|
1447
|
+
y.value = !0;
|
|
1448
|
+
const S = await ut(a.className, d());
|
|
1449
|
+
_.value = S.data, l.total = S.totalCount, y.value = !1;
|
|
1450
|
+
}, R = h(!1);
|
|
1451
|
+
X(async () => {
|
|
1432
1452
|
b.value = !0, c.value = await de(3, a.className, {
|
|
1433
1453
|
svrStore: t,
|
|
1434
1454
|
bpmStore: s
|
|
1435
|
-
}), r(c.value.fields), U(c.value.fields), i(c.value?.tabs?.[0]?.key || ""),
|
|
1455
|
+
}), r(c.value.fields), U(c.value.fields), i(c.value?.tabs?.[0]?.key || ""), w.value = c.value.actions, b.value = !1, R.value = !0;
|
|
1436
1456
|
}), Xe(() => {
|
|
1437
|
-
|
|
1457
|
+
R.value && V();
|
|
1438
1458
|
});
|
|
1439
|
-
const
|
|
1440
|
-
l.current =
|
|
1441
|
-
},
|
|
1442
|
-
l.pageSize =
|
|
1459
|
+
const Y = (S) => {
|
|
1460
|
+
l.current = S, V();
|
|
1461
|
+
}, j = (S) => {
|
|
1462
|
+
l.pageSize = S, V();
|
|
1443
1463
|
};
|
|
1444
|
-
function
|
|
1445
|
-
switch (
|
|
1446
|
-
case
|
|
1464
|
+
function K(S, $, A, G, re) {
|
|
1465
|
+
switch (S) {
|
|
1466
|
+
case z.Link:
|
|
1447
1467
|
n.push({ name: A, params: { workflowId: re } });
|
|
1448
1468
|
break;
|
|
1449
1469
|
default:
|
|
1450
|
-
console.warn("Unknown action type:",
|
|
1470
|
+
console.warn("Unknown action type:", S);
|
|
1451
1471
|
}
|
|
1452
1472
|
}
|
|
1453
|
-
function
|
|
1454
|
-
switch (
|
|
1455
|
-
case
|
|
1473
|
+
function x(S, $, A) {
|
|
1474
|
+
switch (S) {
|
|
1475
|
+
case z.Link:
|
|
1456
1476
|
n.push({ name: A });
|
|
1457
1477
|
break;
|
|
1458
1478
|
default:
|
|
1459
|
-
console.warn("Unknown action type:",
|
|
1479
|
+
console.warn("Unknown action type:", S);
|
|
1460
1480
|
}
|
|
1461
1481
|
}
|
|
1462
1482
|
function m() {
|
|
1463
1483
|
return t()?.userInfo?.email_address ?? "";
|
|
1464
1484
|
}
|
|
1465
|
-
function g(
|
|
1466
|
-
return
|
|
1485
|
+
function g(S, $) {
|
|
1486
|
+
return S.replace(/{currentUserEmail}/g, $);
|
|
1467
1487
|
}
|
|
1468
|
-
function i(
|
|
1469
|
-
const
|
|
1470
|
-
l.filters =
|
|
1488
|
+
function i(S) {
|
|
1489
|
+
const $ = c.value?.tabs?.find((A) => A.key === S)?.filters;
|
|
1490
|
+
l.filters = $?.map((A) => ({
|
|
1471
1491
|
...A,
|
|
1472
1492
|
value: g(A.value, m())
|
|
1473
|
-
})) || [],
|
|
1493
|
+
})) || [], V();
|
|
1474
1494
|
}
|
|
1475
|
-
const u =
|
|
1476
|
-
const
|
|
1477
|
-
Object.entries(
|
|
1478
|
-
|
|
1479
|
-
}), u.value =
|
|
1495
|
+
const u = h({}), f = B(() => c.value?.fields ? Object.entries(c.value.fields).filter(([, S]) => S.isFiltered) : []), U = (S) => {
|
|
1496
|
+
const $ = {};
|
|
1497
|
+
Object.entries(S).forEach(([A, G]) => {
|
|
1498
|
+
$[A] = G.modelValue;
|
|
1499
|
+
}), u.value = $;
|
|
1480
1500
|
}, Q = () => {
|
|
1481
|
-
l.current = 1,
|
|
1501
|
+
l.current = 1, V();
|
|
1482
1502
|
}, se = () => {
|
|
1483
1503
|
c.value && U(c.value.fields), Q();
|
|
1484
1504
|
};
|
|
1485
|
-
function
|
|
1486
|
-
return !(
|
|
1505
|
+
function P(S, $) {
|
|
1506
|
+
return !(S.location !== "InTable" || S.title === "Update" && ($.status === 100 || $.status === -1));
|
|
1487
1507
|
}
|
|
1488
|
-
return (
|
|
1489
|
-
const A =
|
|
1490
|
-
return v(),
|
|
1491
|
-
|
|
1508
|
+
return (S, $) => {
|
|
1509
|
+
const A = I("a-col"), G = I("a-button"), re = I("a-space"), Ke = I("a-row"), Oe = I("a-card"), je = I("a-tab-pane"), Ge = I("a-tabs"), We = I("a-table");
|
|
1510
|
+
return v(), C("div", Pn, [
|
|
1511
|
+
N(ge, {
|
|
1492
1512
|
title: c.value?.banner.title ?? "",
|
|
1493
1513
|
subTitle: c.value?.banner.subTitle ?? "",
|
|
1494
1514
|
email: m()
|
|
1495
1515
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1496
|
-
|
|
1497
|
-
default:
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
(v(!0),
|
|
1516
|
+
N(Oe, null, {
|
|
1517
|
+
default: T(() => [
|
|
1518
|
+
k("div", Bn, [
|
|
1519
|
+
$[0] || ($[0] = k("h3", null, "查询条件", -1)),
|
|
1520
|
+
k("div", null, [
|
|
1521
|
+
(v(!0), C(H, null, E(w.value, (D) => (v(), C(H, {
|
|
1502
1522
|
key: D.title
|
|
1503
1523
|
}, [
|
|
1504
1524
|
D.location === "InOperation" ? (v(), L(le, {
|
|
1505
1525
|
key: 0,
|
|
1506
1526
|
config: D,
|
|
1507
|
-
onClick:
|
|
1527
|
+
onClick: x
|
|
1508
1528
|
}, null, 8, ["config"])) : ee("", !0)
|
|
1509
1529
|
], 64))), 128))
|
|
1510
1530
|
])
|
|
1511
1531
|
]),
|
|
1512
|
-
|
|
1532
|
+
N(Ke, {
|
|
1513
1533
|
gutter: [24, 20],
|
|
1514
1534
|
class: "search-row"
|
|
1515
1535
|
}, {
|
|
1516
|
-
default:
|
|
1517
|
-
(v(!0),
|
|
1536
|
+
default: T(() => [
|
|
1537
|
+
(v(!0), C(H, null, E(f.value, ([D, ie]) => (v(), L(A, {
|
|
1518
1538
|
key: D,
|
|
1519
1539
|
span: 6,
|
|
1520
1540
|
class: "search-col"
|
|
1521
1541
|
}, {
|
|
1522
|
-
default:
|
|
1523
|
-
|
|
1542
|
+
default: T(() => [
|
|
1543
|
+
N(Ve, {
|
|
1524
1544
|
name: D,
|
|
1525
1545
|
config: ie,
|
|
1526
1546
|
modelValue: u.value[D],
|
|
@@ -1530,30 +1550,30 @@ const Sn = Object.assign(be, {
|
|
|
1530
1550
|
]),
|
|
1531
1551
|
_: 2
|
|
1532
1552
|
}, 1024))), 128)),
|
|
1533
|
-
|
|
1553
|
+
N(A, {
|
|
1534
1554
|
span: 6,
|
|
1535
1555
|
class: "search-col"
|
|
1536
1556
|
}, {
|
|
1537
|
-
default:
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
default:
|
|
1541
|
-
|
|
1557
|
+
default: T(() => [
|
|
1558
|
+
k("div", zn, [
|
|
1559
|
+
N(re, { size: "medium" }, {
|
|
1560
|
+
default: T(() => [
|
|
1561
|
+
N(G, {
|
|
1542
1562
|
type: "primary",
|
|
1543
1563
|
size: "medium",
|
|
1544
1564
|
onClick: Q
|
|
1545
1565
|
}, {
|
|
1546
|
-
default:
|
|
1566
|
+
default: T(() => $[1] || ($[1] = [
|
|
1547
1567
|
Z(" 查询 ", -1)
|
|
1548
1568
|
])),
|
|
1549
1569
|
_: 1,
|
|
1550
1570
|
__: [1]
|
|
1551
1571
|
}),
|
|
1552
|
-
|
|
1572
|
+
N(G, {
|
|
1553
1573
|
size: "medium",
|
|
1554
1574
|
onClick: se
|
|
1555
1575
|
}, {
|
|
1556
|
-
default:
|
|
1576
|
+
default: T(() => $[2] || ($[2] = [
|
|
1557
1577
|
Z(" 重置 ", -1)
|
|
1558
1578
|
])),
|
|
1559
1579
|
_: 1,
|
|
@@ -1572,21 +1592,21 @@ const Sn = Object.assign(be, {
|
|
|
1572
1592
|
]),
|
|
1573
1593
|
_: 1
|
|
1574
1594
|
}),
|
|
1575
|
-
|
|
1595
|
+
N(Ge, {
|
|
1576
1596
|
size: "large",
|
|
1577
1597
|
onTabClick: i
|
|
1578
1598
|
}, {
|
|
1579
|
-
default:
|
|
1580
|
-
(v(!0),
|
|
1599
|
+
default: T(() => [
|
|
1600
|
+
(v(!0), C(H, null, E(c.value?.tabs, (D) => (v(), L(je, {
|
|
1581
1601
|
key: D.key,
|
|
1582
1602
|
title: D.title
|
|
1583
1603
|
}, null, 8, ["title"]))), 128))
|
|
1584
1604
|
]),
|
|
1585
1605
|
_: 1
|
|
1586
1606
|
}),
|
|
1587
|
-
|
|
1607
|
+
N(We, {
|
|
1588
1608
|
columns: p.value,
|
|
1589
|
-
data:
|
|
1609
|
+
data: _.value,
|
|
1590
1610
|
stripe: "",
|
|
1591
1611
|
border: "",
|
|
1592
1612
|
pagination: {
|
|
@@ -1598,23 +1618,23 @@ const Sn = Object.assign(be, {
|
|
|
1598
1618
|
showJumper: !0,
|
|
1599
1619
|
pageSizeOptions: [10, 20, 50, 100]
|
|
1600
1620
|
},
|
|
1601
|
-
loading:
|
|
1621
|
+
loading: y.value,
|
|
1602
1622
|
size: "medium",
|
|
1603
1623
|
scroll: o.value,
|
|
1604
|
-
onPageChange:
|
|
1605
|
-
onPageSizeChange:
|
|
1624
|
+
onPageChange: Y,
|
|
1625
|
+
onPageSizeChange: j
|
|
1606
1626
|
}, {
|
|
1607
|
-
optional:
|
|
1608
|
-
|
|
1609
|
-
default:
|
|
1610
|
-
(v(!0),
|
|
1627
|
+
optional: T(({ record: D }) => [
|
|
1628
|
+
N(re, { size: "small" }, {
|
|
1629
|
+
default: T(() => [
|
|
1630
|
+
(v(!0), C(H, null, E(w.value, (ie) => (v(), C(H, {
|
|
1611
1631
|
key: ie.title
|
|
1612
1632
|
}, [
|
|
1613
|
-
|
|
1633
|
+
P(ie, D) ? (v(), L(le, {
|
|
1614
1634
|
key: 0,
|
|
1615
1635
|
config: ie,
|
|
1616
1636
|
size: "small",
|
|
1617
|
-
onClick: (...ve) =>
|
|
1637
|
+
onClick: (...ve) => K(...ve, D.workflowId)
|
|
1618
1638
|
}, null, 8, ["config", "onClick"])) : ee("", !0)
|
|
1619
1639
|
], 64))), 128))
|
|
1620
1640
|
]),
|
|
@@ -1626,28 +1646,28 @@ const Sn = Object.assign(be, {
|
|
|
1626
1646
|
]);
|
|
1627
1647
|
};
|
|
1628
1648
|
}
|
|
1629
|
-
}),
|
|
1649
|
+
}), Kn = /* @__PURE__ */ oe(En, [["__scopeId", "data-v-477f539f"]]);
|
|
1630
1650
|
let ye = {};
|
|
1631
|
-
function
|
|
1651
|
+
function On(e) {
|
|
1632
1652
|
ye = { ...ye, ...e };
|
|
1633
1653
|
}
|
|
1634
1654
|
function Ee() {
|
|
1635
1655
|
return ye;
|
|
1636
1656
|
}
|
|
1637
|
-
const
|
|
1657
|
+
const Jn = {
|
|
1638
1658
|
install(e, t = {}) {
|
|
1639
|
-
t.config &&
|
|
1659
|
+
t.config && On(t.config), t.router && e.provide(De, t.router), t.pinia && e.provide(Pt, t.pinia), t.useBpmStore && e.provide(Pe, t.useBpmStore), t.useSvrStore && e.provide(Be, t.useSvrStore), t.triggers && e.provide(He, t.triggers), t.customComps && e.provide(ze, t.customComps), e.component("CreateView", nn), e.component("UpdateView", pn), e.component("DetailView", Hn), e.component("ListView", Kn);
|
|
1640
1660
|
}
|
|
1641
1661
|
};
|
|
1642
1662
|
export {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1663
|
+
nn as CreateView,
|
|
1664
|
+
Hn as DetailView,
|
|
1665
|
+
Kn as ListView,
|
|
1666
|
+
Pt as PiniaKey,
|
|
1667
|
+
De as RouterKey,
|
|
1668
|
+
pn as UpdateView,
|
|
1669
|
+
Jn as default,
|
|
1650
1670
|
Ee as getLibraryConfig,
|
|
1651
|
-
|
|
1671
|
+
On as setLibraryConfig
|
|
1652
1672
|
};
|
|
1653
1673
|
//# sourceMappingURL=index.es.js.map
|