@chase-shao/vue-component-lib 1.2.54 → 1.2.56
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 +689 -686
- 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,11 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { Modal as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
7
|
-
token:
|
|
8
|
-
})),
|
|
1
|
+
import { ref as b, defineComponent as z, mergeModels as ae, useModel as _e, resolveComponent as S, createBlock as U, openBlock as u, onMounted as ce, computed as q, withCtx as _, createElementBlock as C, Fragment as M, renderList as B, createVNode as P, nextTick as ot, createTextVNode as O, useTemplateRef as Le, createElementVNode as h, createCommentVNode as Z, toDisplayString as W, resolveDynamicComponent as Pe, renderSlot as le, inject as fe, getCurrentInstance as we, reactive as De, normalizeStyle as at, normalizeClass as st, unref as Ae, onActivated as rt } from "vue";
|
|
2
|
+
import it from "axios";
|
|
3
|
+
import { defineStore as lt } from "pinia";
|
|
4
|
+
import { Modal as ct } from "@arco-design/web-vue";
|
|
5
|
+
import { useRouter as ut } from "vue-router";
|
|
6
|
+
const dt = lt("main", () => ({
|
|
7
|
+
token: b(void 0)
|
|
8
|
+
})), ft = async (e) => new Promise((t) => setTimeout(t, e)), pt = async (e, t, a, n = void 0) => {
|
|
9
9
|
if (e[t] === void 0)
|
|
10
10
|
try {
|
|
11
11
|
e[t] = null, e[t] = await a() || n;
|
|
@@ -13,7 +13,7 @@ const ut = it("main", () => ({
|
|
|
13
13
|
console.error(o), e[t] = void 0;
|
|
14
14
|
}
|
|
15
15
|
for (; e[t] === null; )
|
|
16
|
-
await
|
|
16
|
+
await ft(100);
|
|
17
17
|
return e[t];
|
|
18
18
|
}, ge = (e) => {
|
|
19
19
|
const t = `0${e}`;
|
|
@@ -43,23 +43,23 @@ const ut = it("main", () => ({
|
|
|
43
43
|
return e.toLocaleString();
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
let
|
|
47
|
-
function
|
|
48
|
-
|
|
46
|
+
let Fe = {};
|
|
47
|
+
function mt(e) {
|
|
48
|
+
Fe = { ...Fe, ...e };
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function Re() {
|
|
51
|
+
return Fe;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const e =
|
|
53
|
+
function Oe() {
|
|
54
|
+
const e = Re();
|
|
55
55
|
return {
|
|
56
56
|
apiBase: e.apiBase || void 0 || "",
|
|
57
57
|
appSecret: e.appSecret || void 0 || ""
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
const { apiBase: e } =
|
|
62
|
-
return
|
|
60
|
+
function We() {
|
|
61
|
+
const { apiBase: e } = Oe();
|
|
62
|
+
return it.create({
|
|
63
63
|
baseURL: e,
|
|
64
64
|
timeout: 1e4,
|
|
65
65
|
// 10s
|
|
@@ -67,52 +67,52 @@ function Oe() {
|
|
|
67
67
|
withCredentials: !0
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
const { apiBase: e, appSecret: t } =
|
|
72
|
-
return await
|
|
70
|
+
const qe = async () => {
|
|
71
|
+
const { apiBase: e, appSecret: t } = Oe(), a = We(), n = dt();
|
|
72
|
+
return await pt(n, "token", async () => (await a.get(`${e}/GenerateToken`, {
|
|
73
73
|
params: {
|
|
74
74
|
appid: "bpm",
|
|
75
75
|
appsecret: t
|
|
76
76
|
}
|
|
77
77
|
}))?.data?.token);
|
|
78
|
-
},
|
|
79
|
-
const e = await
|
|
78
|
+
}, E = async () => {
|
|
79
|
+
const e = await qe(), t = We();
|
|
80
80
|
return t.defaults.headers.common.Authorization = `Bearer ${e}`, t;
|
|
81
|
-
},
|
|
81
|
+
}, Ie = {
|
|
82
82
|
CurrentUserEmail: (e) => e.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
83
83
|
CurrentUserPositionCode: (e) => e.bpmStore()?.positionCode ?? 888,
|
|
84
84
|
CurrentDatetime: () => (/* @__PURE__ */ new Date()).toISOString(),
|
|
85
85
|
ApproverEmail: (e) => e.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
|
|
86
86
|
ApproverPositionCode: (e) => e.bpmStore()?.positionCode ?? 999,
|
|
87
87
|
RejectReason: () => "Test Reject Reason"
|
|
88
|
-
},
|
|
88
|
+
}, j = [];
|
|
89
89
|
for (let e = 0; e < 256; ++e)
|
|
90
|
-
|
|
91
|
-
function
|
|
92
|
-
return (
|
|
90
|
+
j.push((e + 256).toString(16).slice(1));
|
|
91
|
+
function gt(e, t = 0) {
|
|
92
|
+
return (j[e[t + 0]] + j[e[t + 1]] + j[e[t + 2]] + j[e[t + 3]] + "-" + j[e[t + 4]] + j[e[t + 5]] + "-" + j[e[t + 6]] + j[e[t + 7]] + "-" + j[e[t + 8]] + j[e[t + 9]] + "-" + j[e[t + 10]] + j[e[t + 11]] + j[e[t + 12]] + j[e[t + 13]] + j[e[t + 14]] + j[e[t + 15]]).toLowerCase();
|
|
93
93
|
}
|
|
94
|
-
let
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
if (!
|
|
94
|
+
let Te;
|
|
95
|
+
const vt = new Uint8Array(16);
|
|
96
|
+
function _t() {
|
|
97
|
+
if (!Te) {
|
|
98
98
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
99
99
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
100
|
-
|
|
100
|
+
Te = crypto.getRandomValues.bind(crypto);
|
|
101
101
|
}
|
|
102
|
-
return
|
|
102
|
+
return Te(vt);
|
|
103
103
|
}
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
return
|
|
104
|
+
const yt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), je = { randomUUID: yt };
|
|
105
|
+
function Ye(e, t, a) {
|
|
106
|
+
if (je.randomUUID && !e)
|
|
107
|
+
return je.randomUUID();
|
|
108
108
|
e = e || {};
|
|
109
|
-
const n = e.random ?? e.rng?.() ??
|
|
109
|
+
const n = e.random ?? e.rng?.() ?? _t();
|
|
110
110
|
if (n.length < 16)
|
|
111
111
|
throw new Error("Random bytes length must be >= 16");
|
|
112
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
112
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, gt(n);
|
|
113
113
|
}
|
|
114
114
|
var Y = /* @__PURE__ */ ((e) => (e[e.Submit = 0] = "Submit", e[e.Link = 1] = "Link", e))(Y || {}), de = /* @__PURE__ */ ((e) => (e[e.Create = 0] = "Create", e[e.Update = 1] = "Update", e[e.Details = 2] = "Details", e[e.List = 3] = "List", e))(de || {});
|
|
115
|
-
function
|
|
115
|
+
function wt(e, t, a) {
|
|
116
116
|
const n = {
|
|
117
117
|
pageType: "",
|
|
118
118
|
fields: {},
|
|
@@ -135,7 +135,7 @@ function yt(e, t, a) {
|
|
|
135
135
|
else if (o.attributeType === "UIControl") {
|
|
136
136
|
if (o.widget === "Tab") {
|
|
137
137
|
n.tabs || (n.tabs = []), n.tabs.push({
|
|
138
|
-
key:
|
|
138
|
+
key: Ye(),
|
|
139
139
|
title: o.title,
|
|
140
140
|
filters: o.filters ? JSON.parse(o.filters) : [],
|
|
141
141
|
order: o.order
|
|
@@ -154,7 +154,7 @@ function yt(e, t, a) {
|
|
|
154
154
|
readonly: o.readonly,
|
|
155
155
|
loading: !1
|
|
156
156
|
});
|
|
157
|
-
} else o.attributeType === "Banner" && (n.banner.title = o.title, n.banner.subTitle = t === 0 ? o.subTitle :
|
|
157
|
+
} else o.attributeType === "Banner" && (n.banner.title = o.title, n.banner.subTitle = t === 0 ? o.subTitle : Me(o.subTitle, e.workflowId.propertyValue));
|
|
158
158
|
}), n.tabs && (n.tabs = n.tabs.sort((o, l) => o.order - l.order)), Object.entries(e).forEach(([o, l]) => {
|
|
159
159
|
if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || t !== 3 && o === "workflowId")
|
|
160
160
|
return;
|
|
@@ -176,14 +176,14 @@ function yt(e, t, a) {
|
|
|
176
176
|
r.modelValue = s;
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
179
|
-
o === "onBehalf" && t === 0 && (r.modelValue =
|
|
179
|
+
o === "onBehalf" && t === 0 && (r.modelValue = Ie.CurrentUserEmail(a)), c?.forEach((i) => {
|
|
180
180
|
i.order || i.Order ? r.order = i.order ?? i.Order : i.attributeType === "UIControl" ? r.widget = {
|
|
181
181
|
...i,
|
|
182
182
|
column: !0
|
|
183
183
|
} : i.attributeType === "UIValidationControl" && t !== 3 ? r.widget?.widget !== "CheckBox" && r.validations.push(i) : i.attributeType === "UIListed" ? r.widget = {
|
|
184
184
|
...i,
|
|
185
185
|
column: !0
|
|
186
|
-
} : i.attributeType === "UIFiltered" ? (r.isFiltered = !0, r.operator = i.operatorType) : i.dependentType ? r.dependent =
|
|
186
|
+
} : i.attributeType === "UIFiltered" ? (r.isFiltered = !0, r.operator = i.operatorType) : i.dependentType ? r.dependent = Ie[i.dependentType] ? Ie[i.dependentType](a) : "" : i.eventType === "Change" && r.triggers?.push({
|
|
187
187
|
event: "change",
|
|
188
188
|
handlerName: i.eventName
|
|
189
189
|
});
|
|
@@ -191,11 +191,11 @@ function yt(e, t, a) {
|
|
|
191
191
|
}), n;
|
|
192
192
|
}
|
|
193
193
|
const be = async (e, t, a, n) => {
|
|
194
|
-
const l = await (await
|
|
195
|
-
return
|
|
196
|
-
},
|
|
197
|
-
async function
|
|
198
|
-
const n = await (await
|
|
194
|
+
const l = await (await E()).get(`/General/${t}/${e}/page`, { params: n });
|
|
195
|
+
return wt(l?.data, e, a);
|
|
196
|
+
}, Je = async (e, t, a) => (await (await E()).post(`/${t}/${e}/button/List`, null, { params: a }))?.data;
|
|
197
|
+
async function bt(e, t) {
|
|
198
|
+
const n = await (await E()).post(`/General/${e}/list`, t);
|
|
199
199
|
return {
|
|
200
200
|
data: n.data.data,
|
|
201
201
|
totalCount: n.data.totalCount
|
|
@@ -214,106 +214,106 @@ async function wt(e, t) {
|
|
|
214
214
|
// ),
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
async function
|
|
218
|
-
const o = await (await
|
|
217
|
+
async function ht(e, t, a) {
|
|
218
|
+
const o = await (await E()).post(a, t, {
|
|
219
219
|
params: {
|
|
220
220
|
className: e
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
return o.data.length > 0 ? o.data[0] : 0;
|
|
224
224
|
}
|
|
225
|
-
async function
|
|
226
|
-
const o = await
|
|
225
|
+
async function kt(e, t, a, n) {
|
|
226
|
+
const o = await E(), l = Me(n, t);
|
|
227
227
|
return (await o.put(l, a))?.data;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Me(e, t) {
|
|
230
230
|
return e.replace(/{WorkflowId}/g, t);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Ct(e, t) {
|
|
233
233
|
return e.replace(/{ApproverEmail}/g, encodeURIComponent(t));
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function St(e, t) {
|
|
236
236
|
return e.replace(/{WorkFlowReason}/g, encodeURIComponent(t));
|
|
237
237
|
}
|
|
238
238
|
function Vt(e, t) {
|
|
239
239
|
return e.replace(/{Status}/g, t);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function xt(e, t) {
|
|
242
242
|
return e.replace(/{IfTriggerGlobal_RandP_Approval}/g, t);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function $t(e, t) {
|
|
245
245
|
return e.replace(/{ClassName}/g, encodeURIComponent(t));
|
|
246
246
|
}
|
|
247
|
-
async function
|
|
248
|
-
const s = await
|
|
249
|
-
let i =
|
|
250
|
-
return i =
|
|
247
|
+
async function At(e, t, a, n, o, l, r, c) {
|
|
248
|
+
const s = await E();
|
|
249
|
+
let i = Me(l, t);
|
|
250
|
+
return i = Ct(i, a), i = St(i, n), i = Vt(i, r), i = xt(i, c), i = $t(i, e), (await s.put(i, o))?.data;
|
|
251
251
|
}
|
|
252
|
-
async function
|
|
253
|
-
const o = (await (await
|
|
252
|
+
async function It(e, t) {
|
|
253
|
+
const o = (await (await E()).get(e, { params: { value: t } }))?.data;
|
|
254
254
|
return Object.entries(o).map(([l, r]) => ({
|
|
255
255
|
value: l,
|
|
256
256
|
label: r
|
|
257
257
|
}));
|
|
258
258
|
}
|
|
259
|
-
async function
|
|
260
|
-
return (await (await
|
|
259
|
+
async function Tt(e, t) {
|
|
260
|
+
return (await (await E()).get(`/General/${e}/${t}/process`))?.data;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Ut(e) {
|
|
263
263
|
return {
|
|
264
|
-
uid: e.id ??
|
|
264
|
+
uid: e.id ?? Ye(),
|
|
265
265
|
name: e.attachmentName ?? "unknown",
|
|
266
266
|
url: e.attachmentKey ?? ""
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
async function
|
|
270
|
-
return (await (await
|
|
269
|
+
async function Xe(e, t) {
|
|
270
|
+
return (await (await E()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((l, r) => {
|
|
271
271
|
const { category: c } = r;
|
|
272
|
-
return l[c] || (l[c] = []), l[c].push(
|
|
272
|
+
return l[c] || (l[c] = []), l[c].push(Ut(r)), l;
|
|
273
273
|
}, {});
|
|
274
274
|
}
|
|
275
|
-
async function
|
|
276
|
-
return (await
|
|
275
|
+
async function Nt(e, t) {
|
|
276
|
+
return (await E()).post(`/General/${e}/${t}/delete/attachment`);
|
|
277
277
|
}
|
|
278
|
-
async function
|
|
279
|
-
const t = await (await
|
|
278
|
+
async function Ft() {
|
|
279
|
+
const t = await (await E()).get("/Grading/dropdown/approvers");
|
|
280
280
|
return Object.entries(t?.data).map(([a, n]) => ({
|
|
281
281
|
label: a,
|
|
282
282
|
value: n
|
|
283
283
|
}));
|
|
284
284
|
}
|
|
285
|
-
async function
|
|
286
|
-
return await (await
|
|
285
|
+
async function Lt(e, t) {
|
|
286
|
+
return await (await E()).post(`Grading/AssignComments/${e}/${encodeURIComponent(t)}`);
|
|
287
287
|
}
|
|
288
|
-
async function
|
|
289
|
-
return await (await
|
|
288
|
+
async function Pt(e, t, a) {
|
|
289
|
+
return await (await E()).post(`Grading/AddComments/${e}/${encodeURIComponent(t)}`, a, {
|
|
290
290
|
headers: { "Content-Type": "application/json;charset=UTF-8" }
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
async function
|
|
294
|
-
return (await (await
|
|
293
|
+
async function ze(e) {
|
|
294
|
+
return (await (await E()).get(`Grading/GetComments/${e}`))?.data;
|
|
295
295
|
}
|
|
296
|
-
async function
|
|
297
|
-
return (await (await
|
|
296
|
+
async function Ue(e) {
|
|
297
|
+
return (await (await E()).post(`Grading/GetAssociator/${e}`))?.data;
|
|
298
298
|
}
|
|
299
|
-
async function
|
|
300
|
-
return await (await
|
|
299
|
+
async function Dt(e) {
|
|
300
|
+
return await (await E()).post(`Grading/DeleteAssociator/${e}`);
|
|
301
301
|
}
|
|
302
302
|
const pe = (e, t) => {
|
|
303
303
|
let a = "";
|
|
304
304
|
return { res: e.every((o) => {
|
|
305
|
-
const l =
|
|
305
|
+
const l = Rt(o, t);
|
|
306
306
|
return l || (a = o.errorMessage), l;
|
|
307
307
|
}), errorMessages: a };
|
|
308
|
-
},
|
|
308
|
+
}, Rt = (e, t) => {
|
|
309
309
|
const { ruleName: a, ruleParameter: n } = e;
|
|
310
|
-
return
|
|
311
|
-
},
|
|
310
|
+
return Mt[a](n, t);
|
|
311
|
+
}, Mt = {
|
|
312
312
|
Regex: (e, t) => new RegExp(e).test(t),
|
|
313
313
|
Required: (e, t) => !!t
|
|
314
|
-
},
|
|
314
|
+
}, Ee = /* @__PURE__ */ z({
|
|
315
315
|
__name: "InputText",
|
|
316
|
-
props: /* @__PURE__ */
|
|
316
|
+
props: /* @__PURE__ */ ae({
|
|
317
317
|
fieldKey: {},
|
|
318
318
|
modelValue: {},
|
|
319
319
|
config: {},
|
|
@@ -324,14 +324,14 @@ const pe = (e, t) => {
|
|
|
324
324
|
modelValue: {},
|
|
325
325
|
modelModifiers: {}
|
|
326
326
|
}),
|
|
327
|
-
emits: /* @__PURE__ */
|
|
327
|
+
emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
328
328
|
setup(e, { expose: t, emit: a }) {
|
|
329
329
|
const n = e, o = a, l = _e(e, "modelValue"), r = (i) => pe(n.validations, i), c = (i) => {
|
|
330
330
|
o("input", i);
|
|
331
331
|
}, s = (i) => {
|
|
332
|
-
const
|
|
333
|
-
o("error",
|
|
334
|
-
|
|
332
|
+
const y = r(i);
|
|
333
|
+
o("error", y.res ? "" : y.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((d) => {
|
|
334
|
+
d.event === "change" && o(d.event, d.handlerName, i);
|
|
335
335
|
});
|
|
336
336
|
};
|
|
337
337
|
return t({
|
|
@@ -339,11 +339,11 @@ const pe = (e, t) => {
|
|
|
339
339
|
const i = r(n.modelValue);
|
|
340
340
|
return o("error", i.res ? "" : i.errorMessages), i.res;
|
|
341
341
|
}
|
|
342
|
-
}), (i,
|
|
343
|
-
const
|
|
344
|
-
return u(), U(
|
|
342
|
+
}), (i, y) => {
|
|
343
|
+
const d = S("AInput");
|
|
344
|
+
return u(), U(d, {
|
|
345
345
|
modelValue: l.value,
|
|
346
|
-
"onUpdate:modelValue":
|
|
346
|
+
"onUpdate:modelValue": y[0] || (y[0] = (V) => l.value = V),
|
|
347
347
|
"allow-clear": "",
|
|
348
348
|
disabled: n.readonly || n.config.Readonly,
|
|
349
349
|
onInput: c,
|
|
@@ -351,9 +351,9 @@ const pe = (e, t) => {
|
|
|
351
351
|
}, null, 8, ["modelValue", "disabled"]);
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
}),
|
|
354
|
+
}), Ht = /* @__PURE__ */ z({
|
|
355
355
|
__name: "InputNumber",
|
|
356
|
-
props: /* @__PURE__ */
|
|
356
|
+
props: /* @__PURE__ */ ae({
|
|
357
357
|
fieldKey: {},
|
|
358
358
|
modelValue: {},
|
|
359
359
|
config: {},
|
|
@@ -364,44 +364,44 @@ const pe = (e, t) => {
|
|
|
364
364
|
modelValue: {},
|
|
365
365
|
modelModifiers: {}
|
|
366
366
|
}),
|
|
367
|
-
emits: /* @__PURE__ */
|
|
367
|
+
emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
368
368
|
setup(e, { expose: t, emit: a }) {
|
|
369
|
-
const n = e, o = a, l = _e(e, "modelValue"), r =
|
|
369
|
+
const n = e, o = a, l = _e(e, "modelValue"), r = b(100), c = b(0);
|
|
370
370
|
ce(() => {
|
|
371
|
-
n.validations && n.validations.forEach((
|
|
372
|
-
|
|
371
|
+
n.validations && n.validations.forEach((d) => {
|
|
372
|
+
d.ruleName === "Max" && (r.value = d.ruleParameter), d.ruleName === "Min" && (c.value = d.ruleParameter);
|
|
373
373
|
});
|
|
374
374
|
});
|
|
375
|
-
const s = (
|
|
376
|
-
o("input",
|
|
377
|
-
},
|
|
378
|
-
const
|
|
379
|
-
o("error",
|
|
380
|
-
I.event === "change" && o(I.event, I.handlerName,
|
|
375
|
+
const s = (d) => pe(n.validations, d), i = (d) => {
|
|
376
|
+
o("input", d);
|
|
377
|
+
}, y = (d) => {
|
|
378
|
+
const V = s(d);
|
|
379
|
+
o("error", V.res ? "" : V.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((I) => {
|
|
380
|
+
I.event === "change" && o(I.event, I.handlerName, d);
|
|
381
381
|
});
|
|
382
382
|
};
|
|
383
383
|
return t({
|
|
384
384
|
validate() {
|
|
385
|
-
const
|
|
386
|
-
return o("error",
|
|
385
|
+
const d = s(n.modelValue);
|
|
386
|
+
return o("error", d.res ? "" : d.errorMessages), d.res;
|
|
387
387
|
}
|
|
388
|
-
}), (
|
|
389
|
-
const I =
|
|
388
|
+
}), (d, V) => {
|
|
389
|
+
const I = S("AInputNumber");
|
|
390
390
|
return u(), U(I, {
|
|
391
391
|
modelValue: l.value,
|
|
392
|
-
"onUpdate:modelValue":
|
|
392
|
+
"onUpdate:modelValue": V[0] || (V[0] = (v) => l.value = v),
|
|
393
393
|
clearable: "",
|
|
394
394
|
disabled: n.readonly,
|
|
395
395
|
min: c.value,
|
|
396
396
|
max: r.value,
|
|
397
397
|
onInput: i,
|
|
398
|
-
onChange:
|
|
398
|
+
onChange: y
|
|
399
399
|
}, null, 8, ["modelValue", "disabled", "min", "max"]);
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
|
-
}),
|
|
402
|
+
}), Ge = /* @__PURE__ */ z({
|
|
403
403
|
__name: "SelectList",
|
|
404
|
-
props: /* @__PURE__ */
|
|
404
|
+
props: /* @__PURE__ */ ae({
|
|
405
405
|
fieldKey: {},
|
|
406
406
|
modelValue: {},
|
|
407
407
|
config: {},
|
|
@@ -412,46 +412,46 @@ const pe = (e, t) => {
|
|
|
412
412
|
modelValue: {},
|
|
413
413
|
modelModifiers: {}
|
|
414
414
|
}),
|
|
415
|
-
emits: /* @__PURE__ */
|
|
415
|
+
emits: /* @__PURE__ */ ae(["update:modelValue", "change"], ["update:modelValue"]),
|
|
416
416
|
setup(e, { expose: t, emit: a }) {
|
|
417
|
-
const n = e, o = a, l =
|
|
417
|
+
const n = e, o = a, l = b(!1), r = b(n.config.options ?? []), c = _e(e, "modelValue"), s = (d) => pe(n.validations, d);
|
|
418
418
|
q(() => {
|
|
419
|
-
const
|
|
420
|
-
return n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
421
|
-
|
|
422
|
-
o(
|
|
423
|
-
const
|
|
424
|
-
o("error",
|
|
419
|
+
const d = {};
|
|
420
|
+
return n.triggers && n.triggers.length > 0 && n.triggers.forEach((V) => {
|
|
421
|
+
d[V.event] = (I) => {
|
|
422
|
+
o(V.event, V.handlerName, I);
|
|
423
|
+
const v = s(I);
|
|
424
|
+
o("error", v.res ? "" : v.errorMessages);
|
|
425
425
|
};
|
|
426
|
-
}),
|
|
426
|
+
}), d;
|
|
427
427
|
}), ce(async () => {
|
|
428
|
-
n.config.dataSourceProvider && (r.value = await
|
|
428
|
+
n.config.dataSourceProvider && (r.value = await It(n.config.dataSourceProvider));
|
|
429
429
|
});
|
|
430
|
-
const
|
|
431
|
-
o("update:modelValue",
|
|
432
|
-
const
|
|
433
|
-
o("error",
|
|
434
|
-
I.event === "change" && o(I.event, I.handlerName,
|
|
430
|
+
const y = (d) => {
|
|
431
|
+
o("update:modelValue", d);
|
|
432
|
+
const V = s(d);
|
|
433
|
+
o("error", V.res ? "" : V.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((I) => {
|
|
434
|
+
I.event === "change" && o(I.event, I.handlerName, d);
|
|
435
435
|
});
|
|
436
436
|
};
|
|
437
437
|
return t({
|
|
438
438
|
validate() {
|
|
439
|
-
const
|
|
440
|
-
return o("error",
|
|
439
|
+
const d = s(n.modelValue);
|
|
440
|
+
return o("error", d.res ? "" : d.errorMessages), d.res;
|
|
441
441
|
}
|
|
442
|
-
}), (
|
|
443
|
-
const I =
|
|
444
|
-
return u(), U(
|
|
442
|
+
}), (d, V) => {
|
|
443
|
+
const I = S("AOption"), v = S("ASelect");
|
|
444
|
+
return u(), U(v, {
|
|
445
445
|
"allow-clear": "",
|
|
446
446
|
modelValue: c.value,
|
|
447
|
-
"onUpdate:modelValue":
|
|
447
|
+
"onUpdate:modelValue": V[0] || (V[0] = (T) => c.value = T),
|
|
448
448
|
loading: l.value,
|
|
449
449
|
"filter-option": !0,
|
|
450
450
|
"allow-search": !0,
|
|
451
|
-
onChange:
|
|
451
|
+
onChange: y
|
|
452
452
|
}, {
|
|
453
|
-
default:
|
|
454
|
-
(u(!0),
|
|
453
|
+
default: _(() => [
|
|
454
|
+
(u(!0), C(M, null, B(r.value, (T) => (u(), U(I, {
|
|
455
455
|
key: T.value,
|
|
456
456
|
value: T.value,
|
|
457
457
|
label: T.label
|
|
@@ -461,7 +461,7 @@ const pe = (e, t) => {
|
|
|
461
461
|
}, 8, ["modelValue", "loading"]);
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
-
}),
|
|
464
|
+
}), Bt = /* @__PURE__ */ z({
|
|
465
465
|
__name: "Cascader",
|
|
466
466
|
props: {
|
|
467
467
|
modelValue: {},
|
|
@@ -469,15 +469,15 @@ const pe = (e, t) => {
|
|
|
469
469
|
},
|
|
470
470
|
emits: ["update:modelValue", "change"],
|
|
471
471
|
setup(e, { expose: t, emit: a }) {
|
|
472
|
-
const n = e, o = a, l =
|
|
472
|
+
const n = e, o = a, l = b(n.config.options ?? []), r = (s) => {
|
|
473
473
|
o("update:modelValue", s), o("change", s);
|
|
474
474
|
};
|
|
475
475
|
ce(async () => {
|
|
476
476
|
if (n.config) {
|
|
477
477
|
const s = n.config.dataSourceProvider;
|
|
478
478
|
if (s) {
|
|
479
|
-
const
|
|
480
|
-
l.value =
|
|
479
|
+
const y = await (await E()).get(s);
|
|
480
|
+
l.value = y.data;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
});
|
|
@@ -487,13 +487,13 @@ const pe = (e, t) => {
|
|
|
487
487
|
return !0;
|
|
488
488
|
}
|
|
489
489
|
}), (s, i) => {
|
|
490
|
-
const
|
|
491
|
-
return u(), U(
|
|
490
|
+
const y = S("ACascader"), d = S("ASpace");
|
|
491
|
+
return u(), U(d, {
|
|
492
492
|
direction: "vertical",
|
|
493
493
|
size: "large"
|
|
494
494
|
}, {
|
|
495
|
-
default:
|
|
496
|
-
|
|
495
|
+
default: _(() => [
|
|
496
|
+
P(y, {
|
|
497
497
|
"field-names": c,
|
|
498
498
|
"model-value": s.modelValue,
|
|
499
499
|
options: l.value,
|
|
@@ -506,7 +506,7 @@ const pe = (e, t) => {
|
|
|
506
506
|
});
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
509
|
+
}), Kt = /* @__PURE__ */ z({
|
|
510
510
|
__name: "FileUpload",
|
|
511
511
|
props: {
|
|
512
512
|
className: {},
|
|
@@ -519,66 +519,66 @@ const pe = (e, t) => {
|
|
|
519
519
|
},
|
|
520
520
|
emits: ["update:modelValue", "change", "error", "input"],
|
|
521
521
|
setup(e, { expose: t, emit: a }) {
|
|
522
|
-
const n = e, o = a, l =
|
|
522
|
+
const n = e, o = a, l = b({});
|
|
523
523
|
ce(async () => {
|
|
524
|
-
const
|
|
524
|
+
const v = await qe();
|
|
525
525
|
l.value = {
|
|
526
|
-
Authorization: `Bearer ${
|
|
526
|
+
Authorization: `Bearer ${v}`
|
|
527
527
|
};
|
|
528
528
|
});
|
|
529
|
-
const r = (
|
|
530
|
-
function
|
|
531
|
-
return
|
|
529
|
+
const r = (v) => pe(n.validations, v), s = Re().apiBase, i = b(null), y = b("");
|
|
530
|
+
function d(v, T, G) {
|
|
531
|
+
return v.replace(/{WorkflowId}/g, T).replace(/{ClassName}/g, G);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const V = q(() => {
|
|
534
534
|
if (n.config.uploadURL) {
|
|
535
|
-
const
|
|
536
|
-
return
|
|
535
|
+
const v = s + n.config.uploadURL;
|
|
536
|
+
return d(v, y.value, n.className);
|
|
537
537
|
}
|
|
538
538
|
return "";
|
|
539
539
|
});
|
|
540
|
-
function I(
|
|
541
|
-
const { file: T, name:
|
|
542
|
-
return new Promise((
|
|
543
|
-
|
|
540
|
+
function I(v) {
|
|
541
|
+
const { file: T, name: G } = v, J = G ?? T.name;
|
|
542
|
+
return new Promise((se, X) => {
|
|
543
|
+
ct.confirm({
|
|
544
544
|
title: "Confirm Delete",
|
|
545
545
|
content: `Are you sure you want to delete ${J}?`,
|
|
546
546
|
async onOk() {
|
|
547
|
-
if (
|
|
548
|
-
return await n.config.removeFile(
|
|
549
|
-
|
|
547
|
+
if (v.status !== "init" && n.config.removeFile)
|
|
548
|
+
return await n.config.removeFile(v.uid), se(!0);
|
|
549
|
+
se(!0);
|
|
550
550
|
},
|
|
551
551
|
onCancel: () => X("cancel")
|
|
552
552
|
});
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
return t({
|
|
556
|
-
submit(
|
|
557
|
-
i.value && (n.config.uploadURL && (
|
|
556
|
+
submit(v) {
|
|
557
|
+
i.value && (n.config.uploadURL && (y.value = v), ot(() => {
|
|
558
558
|
i.value.submit();
|
|
559
559
|
}));
|
|
560
560
|
},
|
|
561
561
|
validate() {
|
|
562
|
-
const
|
|
563
|
-
return o("error",
|
|
562
|
+
const v = r(n.modelValue);
|
|
563
|
+
return o("error", v.res ? "" : v.errorMessages), v.res;
|
|
564
564
|
}
|
|
565
|
-
}), (
|
|
566
|
-
const
|
|
565
|
+
}), (v, T) => {
|
|
566
|
+
const G = S("a-button"), J = S("a-upload");
|
|
567
567
|
return u(), U(J, {
|
|
568
568
|
ref_key: "uploadRef",
|
|
569
569
|
ref: i,
|
|
570
570
|
"default-file-list": n.config.files,
|
|
571
|
-
action:
|
|
571
|
+
action: V.value,
|
|
572
572
|
limit: n.config.allowedNumber,
|
|
573
573
|
"auto-upload": !1,
|
|
574
574
|
name: "files",
|
|
575
575
|
headers: l.value,
|
|
576
576
|
onBeforeRemove: I
|
|
577
577
|
}, {
|
|
578
|
-
"start-icon":
|
|
579
|
-
"upload-button":
|
|
580
|
-
|
|
581
|
-
default:
|
|
578
|
+
"start-icon": _(() => T[0] || (T[0] = [])),
|
|
579
|
+
"upload-button": _(() => [
|
|
580
|
+
P(G, { type: "primary" }, {
|
|
581
|
+
default: _(() => T[1] || (T[1] = [
|
|
582
582
|
O("Select File", -1)
|
|
583
583
|
])),
|
|
584
584
|
_: 1,
|
|
@@ -589,7 +589,7 @@ const pe = (e, t) => {
|
|
|
589
589
|
}, 8, ["default-file-list", "action", "limit", "headers"]);
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
}),
|
|
592
|
+
}), jt = /* @__PURE__ */ z({
|
|
593
593
|
__name: "TextArea",
|
|
594
594
|
props: {
|
|
595
595
|
fieldKey: {},
|
|
@@ -606,8 +606,8 @@ const pe = (e, t) => {
|
|
|
606
606
|
}, c = (s) => {
|
|
607
607
|
o("update:modelValue", s);
|
|
608
608
|
const i = l(s);
|
|
609
|
-
o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
610
|
-
|
|
609
|
+
o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
|
|
610
|
+
y.event === "change" && o(y.event, y.handlerName, s);
|
|
611
611
|
});
|
|
612
612
|
};
|
|
613
613
|
return t({
|
|
@@ -616,8 +616,8 @@ const pe = (e, t) => {
|
|
|
616
616
|
return o("error", s.res ? "" : s.errorMessages), s.res;
|
|
617
617
|
}
|
|
618
618
|
}), (s, i) => {
|
|
619
|
-
const
|
|
620
|
-
return u(), U(
|
|
619
|
+
const y = S("ATextarea");
|
|
620
|
+
return u(), U(y, {
|
|
621
621
|
"model-value": n.modelValue,
|
|
622
622
|
placeholder: "Please enter something",
|
|
623
623
|
"allow-clear": "",
|
|
@@ -627,9 +627,9 @@ const pe = (e, t) => {
|
|
|
627
627
|
}, null, 8, ["model-value", "disabled"]);
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
|
-
}),
|
|
630
|
+
}), zt = /* @__PURE__ */ z({
|
|
631
631
|
__name: "CheckBox",
|
|
632
|
-
props: /* @__PURE__ */
|
|
632
|
+
props: /* @__PURE__ */ ae({
|
|
633
633
|
fieldKey: {},
|
|
634
634
|
modelValue: {},
|
|
635
635
|
config: {},
|
|
@@ -640,12 +640,12 @@ const pe = (e, t) => {
|
|
|
640
640
|
modelValue: {},
|
|
641
641
|
modelModifiers: {}
|
|
642
642
|
}),
|
|
643
|
-
emits: /* @__PURE__ */
|
|
643
|
+
emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
|
|
644
644
|
setup(e, { expose: t, emit: a }) {
|
|
645
645
|
const n = e, o = a, l = _e(e, "modelValue"), r = (s) => pe(n.validations, s), c = (s) => {
|
|
646
646
|
const i = r(s);
|
|
647
|
-
o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((
|
|
648
|
-
|
|
647
|
+
o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
|
|
648
|
+
y.event === "change" && o(y.event, y.handlerName, s);
|
|
649
649
|
});
|
|
650
650
|
};
|
|
651
651
|
return t({
|
|
@@ -654,15 +654,15 @@ const pe = (e, t) => {
|
|
|
654
654
|
return o("error", s.res ? "" : s.errorMessages), s.res;
|
|
655
655
|
}
|
|
656
656
|
}), (s, i) => {
|
|
657
|
-
const
|
|
658
|
-
return u(), U(
|
|
657
|
+
const y = S("ACheckbox");
|
|
658
|
+
return u(), U(y, {
|
|
659
659
|
modelValue: l.value,
|
|
660
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
660
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => l.value = d),
|
|
661
661
|
clearable: "",
|
|
662
662
|
disabled: n.readonly || n.config.Readonly,
|
|
663
663
|
onChange: c
|
|
664
664
|
}, {
|
|
665
|
-
default:
|
|
665
|
+
default: _(() => i[1] || (i[1] = [
|
|
666
666
|
O("Yes", -1)
|
|
667
667
|
])),
|
|
668
668
|
_: 1,
|
|
@@ -670,15 +670,15 @@ const pe = (e, t) => {
|
|
|
670
670
|
}, 8, ["modelValue", "disabled"]);
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
}),
|
|
673
|
+
}), Et = { class: "title" }, Gt = {
|
|
674
674
|
key: 0,
|
|
675
675
|
class: "required"
|
|
676
|
-
},
|
|
676
|
+
}, Ot = {
|
|
677
677
|
key: 0,
|
|
678
678
|
class: "err-msg"
|
|
679
|
-
},
|
|
679
|
+
}, Wt = /* @__PURE__ */ z({
|
|
680
680
|
__name: "index",
|
|
681
|
-
props: /* @__PURE__ */
|
|
681
|
+
props: /* @__PURE__ */ ae({
|
|
682
682
|
config: {},
|
|
683
683
|
className: {},
|
|
684
684
|
fieldKey: {},
|
|
@@ -690,43 +690,43 @@ const pe = (e, t) => {
|
|
|
690
690
|
modelValue: {},
|
|
691
691
|
modelModifiers: {}
|
|
692
692
|
}),
|
|
693
|
-
emits: /* @__PURE__ */
|
|
693
|
+
emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error"], ["update:modelValue"]),
|
|
694
694
|
setup(e, { expose: t, emit: a }) {
|
|
695
|
-
const n = e, o = a, l = _e(e, "modelValue"), r =
|
|
695
|
+
const n = e, o = a, l = _e(e, "modelValue"), r = Le("widgetRef"), c = q(() => {
|
|
696
696
|
switch (n.config?.widget?.widget) {
|
|
697
697
|
case "TextBox":
|
|
698
|
-
return
|
|
698
|
+
return Ee;
|
|
699
699
|
case "Number":
|
|
700
|
-
return
|
|
700
|
+
return Ht;
|
|
701
701
|
case "SelectList":
|
|
702
|
-
return
|
|
702
|
+
return Ge;
|
|
703
703
|
case "Cascade":
|
|
704
|
-
return Ht;
|
|
705
|
-
case "File":
|
|
706
704
|
return Bt;
|
|
707
|
-
case "
|
|
705
|
+
case "File":
|
|
708
706
|
return Kt;
|
|
707
|
+
case "TextArea":
|
|
708
|
+
return jt;
|
|
709
709
|
case "DropDown":
|
|
710
|
-
return
|
|
710
|
+
return Ge;
|
|
711
711
|
case "CheckBox":
|
|
712
|
-
return
|
|
712
|
+
return zt;
|
|
713
713
|
default:
|
|
714
|
-
return
|
|
714
|
+
return Ee;
|
|
715
715
|
}
|
|
716
|
-
}), s =
|
|
717
|
-
s.value =
|
|
718
|
-
},
|
|
719
|
-
o("change",
|
|
716
|
+
}), s = b(""), i = (V) => {
|
|
717
|
+
s.value = V;
|
|
718
|
+
}, y = (V, I) => {
|
|
719
|
+
o("change", V, I);
|
|
720
720
|
};
|
|
721
|
-
function
|
|
721
|
+
function d() {
|
|
722
722
|
return n.config?.widget?.widget === "File";
|
|
723
723
|
}
|
|
724
724
|
return t({
|
|
725
725
|
isFileUpload() {
|
|
726
726
|
return n.config?.widget?.widget === "File";
|
|
727
727
|
},
|
|
728
|
-
submit(
|
|
729
|
-
|
|
728
|
+
submit(V) {
|
|
729
|
+
d() && r.value.submit(V);
|
|
730
730
|
},
|
|
731
731
|
validate() {
|
|
732
732
|
return r.value?.validate();
|
|
@@ -734,26 +734,26 @@ const pe = (e, t) => {
|
|
|
734
734
|
getCompName() {
|
|
735
735
|
return n?.config?.widget?.title;
|
|
736
736
|
}
|
|
737
|
-
}), (
|
|
738
|
-
|
|
737
|
+
}), (V, I) => (u(), C("div", null, [
|
|
738
|
+
h("div", Et, [
|
|
739
739
|
O(W(n?.config?.widget?.title) + " ", 1),
|
|
740
|
-
n.config.validations.length ? (u(),
|
|
740
|
+
n.config.validations.length ? (u(), C("span", Gt, "*")) : Z("", !0)
|
|
741
741
|
]),
|
|
742
|
-
|
|
743
|
-
(u(), U(
|
|
742
|
+
h("div", null, [
|
|
743
|
+
(u(), U(Pe(c.value), {
|
|
744
744
|
ref_key: "widgetRef",
|
|
745
745
|
ref: r,
|
|
746
746
|
modelValue: l.value,
|
|
747
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
747
|
+
"onUpdate:modelValue": I[0] || (I[0] = (v) => l.value = v),
|
|
748
748
|
"field-key": n.fieldKey,
|
|
749
749
|
config: n.config.widget,
|
|
750
750
|
validations: n.config.validations,
|
|
751
751
|
triggers: n.config.triggers,
|
|
752
752
|
"class-name": n.className,
|
|
753
753
|
onError: i,
|
|
754
|
-
onChange:
|
|
754
|
+
onChange: y
|
|
755
755
|
}, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
|
|
756
|
-
s.value.length > 0 ? (u(),
|
|
756
|
+
s.value.length > 0 ? (u(), C("div", Ot, W(s.value), 1)) : Z("", !0)
|
|
757
757
|
])
|
|
758
758
|
]));
|
|
759
759
|
}
|
|
@@ -762,7 +762,7 @@ const pe = (e, t) => {
|
|
|
762
762
|
for (const [n, o] of t)
|
|
763
763
|
a[n] = o;
|
|
764
764
|
return a;
|
|
765
|
-
},
|
|
765
|
+
}, He = /* @__PURE__ */ me(Wt, [["__scopeId", "data-v-1022c8cb"]]), qt = /* @__PURE__ */ z({
|
|
766
766
|
__name: "SubmitButton",
|
|
767
767
|
props: {
|
|
768
768
|
url: {},
|
|
@@ -776,20 +776,20 @@ const pe = (e, t) => {
|
|
|
776
776
|
n("click", a.url, a.redirectType);
|
|
777
777
|
}
|
|
778
778
|
return (l, r) => {
|
|
779
|
-
const c =
|
|
779
|
+
const c = S("AButton");
|
|
780
780
|
return u(), U(c, {
|
|
781
781
|
loading: l.loading,
|
|
782
782
|
type: "primary",
|
|
783
783
|
onClick: o
|
|
784
784
|
}, {
|
|
785
|
-
default:
|
|
785
|
+
default: _(() => [
|
|
786
786
|
le(l.$slots, "default")
|
|
787
787
|
]),
|
|
788
788
|
_: 3
|
|
789
789
|
}, 8, ["loading"]);
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
}),
|
|
792
|
+
}), Yt = /* @__PURE__ */ z({
|
|
793
793
|
__name: "DetailLink",
|
|
794
794
|
props: {
|
|
795
795
|
url: {},
|
|
@@ -803,16 +803,16 @@ const pe = (e, t) => {
|
|
|
803
803
|
n("click", a.url, a.redirectType);
|
|
804
804
|
}
|
|
805
805
|
return (l, r) => {
|
|
806
|
-
const c =
|
|
806
|
+
const c = S("ALink");
|
|
807
807
|
return u(), U(c, { onClick: o }, {
|
|
808
|
-
default:
|
|
808
|
+
default: _(() => [
|
|
809
809
|
le(l.$slots, "default")
|
|
810
810
|
]),
|
|
811
811
|
_: 3
|
|
812
812
|
});
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
}), ve = /* @__PURE__ */
|
|
815
|
+
}), ve = /* @__PURE__ */ z({
|
|
816
816
|
__name: "index",
|
|
817
817
|
props: {
|
|
818
818
|
config: {},
|
|
@@ -827,42 +827,42 @@ const pe = (e, t) => {
|
|
|
827
827
|
const l = q(() => {
|
|
828
828
|
switch (a.config.location) {
|
|
829
829
|
case "InOperation":
|
|
830
|
-
return
|
|
830
|
+
return qt;
|
|
831
831
|
case "InTable":
|
|
832
832
|
default:
|
|
833
|
-
return
|
|
833
|
+
return Yt;
|
|
834
834
|
}
|
|
835
835
|
}), r = q(() => a.config.widget === Y.Submit ? a.config.requestUrl ?? "" : a.config.widget === Y.Link ? a.config.redirectUrl ?? "" : ""), c = q(() => a.config.redirectType ?? "Details");
|
|
836
|
-
return (s, i) => (u(), U(
|
|
836
|
+
return (s, i) => (u(), U(Pe(l.value), {
|
|
837
837
|
url: r.value,
|
|
838
838
|
"redirect-type": c.value,
|
|
839
839
|
loading: s.loading,
|
|
840
840
|
onClick: o
|
|
841
841
|
}, {
|
|
842
|
-
default:
|
|
842
|
+
default: _(() => [
|
|
843
843
|
O(W(a.config.title), 1)
|
|
844
844
|
]),
|
|
845
845
|
_: 1
|
|
846
846
|
}, 8, ["url", "redirect-type", "loading"]));
|
|
847
847
|
}
|
|
848
|
-
}),
|
|
848
|
+
}), Qe = Symbol("library-router");
|
|
849
849
|
function he() {
|
|
850
|
-
const e = fe(Xe, null);
|
|
851
|
-
return e || ct();
|
|
852
|
-
}
|
|
853
|
-
const Qe = Symbol("library-triggers");
|
|
854
|
-
function He() {
|
|
855
850
|
const e = fe(Qe, null);
|
|
851
|
+
return e || ut();
|
|
852
|
+
}
|
|
853
|
+
const Ze = Symbol("library-triggers");
|
|
854
|
+
function Be() {
|
|
855
|
+
const e = fe(Ze, null);
|
|
856
856
|
return e || {};
|
|
857
857
|
}
|
|
858
|
-
const
|
|
858
|
+
const Jt = Symbol("library-pinia"), et = Symbol("library-bpmStore"), tt = Symbol("library-svrStore");
|
|
859
859
|
function ke() {
|
|
860
|
-
return fe(
|
|
860
|
+
return fe(et, null);
|
|
861
861
|
}
|
|
862
862
|
function Ce() {
|
|
863
|
-
return fe(
|
|
863
|
+
return fe(tt, null);
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const Xt = { class: "top-bar" }, Qt = { class: "banner-info" }, Zt = { class: "page-title" }, en = { class: "page-subtitle" }, tn = { class: "avatar-wrapper" }, nn = { class: "user-email" }, on = /* @__PURE__ */ z({
|
|
866
866
|
__name: "TopBar",
|
|
867
867
|
props: {
|
|
868
868
|
title: {},
|
|
@@ -871,24 +871,24 @@ const Jt = { class: "top-bar" }, Xt = { class: "banner-info" }, Qt = { class: "p
|
|
|
871
871
|
},
|
|
872
872
|
setup(e) {
|
|
873
873
|
return (t, a) => {
|
|
874
|
-
const n =
|
|
875
|
-
return u(),
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
874
|
+
const n = S("a-avatar"), o = S("a-popover");
|
|
875
|
+
return u(), C("div", Xt, [
|
|
876
|
+
h("div", Qt, [
|
|
877
|
+
h("div", Zt, W(t.title), 1),
|
|
878
|
+
h("div", en, W(t.subTitle), 1)
|
|
879
879
|
]),
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
content:
|
|
883
|
-
|
|
880
|
+
h("div", tn, [
|
|
881
|
+
P(o, { trigger: "click" }, {
|
|
882
|
+
content: _(() => [
|
|
883
|
+
h("div", nn, W(t.email), 1)
|
|
884
884
|
]),
|
|
885
|
-
default:
|
|
886
|
-
|
|
885
|
+
default: _(() => [
|
|
886
|
+
P(n, {
|
|
887
887
|
size: 48,
|
|
888
888
|
autoFixFontSize: "",
|
|
889
889
|
style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
|
|
890
890
|
}, {
|
|
891
|
-
default:
|
|
891
|
+
default: _(() => [
|
|
892
892
|
O(W(t.email.charAt(0).toUpperCase()), 1)
|
|
893
893
|
]),
|
|
894
894
|
_: 1
|
|
@@ -900,9 +900,9 @@ const Jt = { class: "top-bar" }, Xt = { class: "banner-info" }, Qt = { class: "p
|
|
|
900
900
|
]);
|
|
901
901
|
};
|
|
902
902
|
}
|
|
903
|
-
}),
|
|
904
|
-
function
|
|
905
|
-
const t =
|
|
903
|
+
}), Se = /* @__PURE__ */ me(on, [["__scopeId", "data-v-c0457235"]]);
|
|
904
|
+
function Ke(e) {
|
|
905
|
+
const t = Re(), a = [];
|
|
906
906
|
if (t.fieldsGroup) {
|
|
907
907
|
t.fieldsGroup.forEach((l) => {
|
|
908
908
|
const r = l.keys.map((c) => e.find((s) => s.fieldKey === c)).filter(Boolean);
|
|
@@ -912,16 +912,16 @@ function Be(e) {
|
|
|
912
912
|
return o.length && a.push({ name: "未分组字段", fields: o }), a;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const an = { class: "page-container" }, sn = { class: "page-body" }, rn = { class: "form-card" }, ln = { class: "form-fields-vertical" }, cn = { class: "form-fields" }, un = {
|
|
916
916
|
key: 0,
|
|
917
917
|
class: "form-content"
|
|
918
|
-
},
|
|
918
|
+
}, dn = { class: "page-footer" }, fn = { class: "action-container" }, pn = { class: "action-buttons" }, mn = /* @__PURE__ */ z({
|
|
919
919
|
__name: "CreateView",
|
|
920
920
|
props: {
|
|
921
921
|
className: {}
|
|
922
922
|
},
|
|
923
923
|
setup(e) {
|
|
924
|
-
const t = ke(), a = Ce(), n = he(), o =
|
|
924
|
+
const t = ke(), a = Ce(), n = he(), o = Be(), l = Le("dataWidgets"), r = we(), c = e, s = b({
|
|
925
925
|
pageType: "",
|
|
926
926
|
fields: {},
|
|
927
927
|
globalValidations: [],
|
|
@@ -929,58 +929,58 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
929
929
|
title: "",
|
|
930
930
|
subTitle: ""
|
|
931
931
|
}
|
|
932
|
-
}), i =
|
|
933
|
-
function
|
|
934
|
-
return
|
|
932
|
+
}), i = b([]), y = b({});
|
|
933
|
+
function d(w) {
|
|
934
|
+
return w ? Object.entries(w).map(([m, k]) => ({
|
|
935
935
|
fieldKey: m,
|
|
936
|
-
|
|
936
|
+
...k
|
|
937
937
|
})).filter((m) => m.widget && m.widget.widget !== "Hidden").filter((m) => !X.value.includes(m.fieldKey)) : [];
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
return
|
|
939
|
+
function V(w) {
|
|
940
|
+
return w ? Object.entries(w).filter(([m, k]) => k.dependent).reduce((m, [k, $]) => (m[k] = $.dependent, m), {}) : [];
|
|
941
941
|
}
|
|
942
|
-
const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []),
|
|
942
|
+
const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), v = De({}), T = b(!1);
|
|
943
943
|
ce(async () => {
|
|
944
944
|
T.value = !0, s.value = await be(de.Create, c.className, {
|
|
945
945
|
svrStore: a,
|
|
946
946
|
bpmStore: t
|
|
947
|
-
}), i.value =
|
|
948
|
-
for (const
|
|
949
|
-
if (s.value.fields[
|
|
950
|
-
const N = i.value.find((m) => m.fieldKey ===
|
|
947
|
+
}), i.value = d(s.value.fields), y.value = V(s.value.fields);
|
|
948
|
+
for (const w in s.value.fields) {
|
|
949
|
+
if (s.value.fields[w].widget?.widget === "File") {
|
|
950
|
+
const N = i.value.find((m) => m.fieldKey === w);
|
|
951
951
|
N && N.widget && (N.widget.files = []);
|
|
952
952
|
}
|
|
953
|
-
|
|
953
|
+
v[w] = s.value.fields[w].modelValue;
|
|
954
954
|
}
|
|
955
955
|
T.value = !1;
|
|
956
956
|
});
|
|
957
|
-
function
|
|
957
|
+
function G() {
|
|
958
958
|
return a()?.userInfo?.email_address ?? "";
|
|
959
959
|
}
|
|
960
|
-
async function J(
|
|
960
|
+
async function J(w, N, m, k, $) {
|
|
961
961
|
switch (N) {
|
|
962
962
|
case Y.Submit:
|
|
963
|
-
let
|
|
964
|
-
if (l.value?.forEach((
|
|
965
|
-
|
|
966
|
-
}), !
|
|
963
|
+
let F = !0;
|
|
964
|
+
if (l.value?.forEach((ee) => {
|
|
965
|
+
ee?.validate && (ee.validate() || (F = !1));
|
|
966
|
+
}), !F) {
|
|
967
967
|
r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
968
968
|
return;
|
|
969
969
|
}
|
|
970
|
-
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}), r?.appContext.config.globalProperties.$notification.success("create success!"), n.push({ name: "Details", params: { workflowId:
|
|
970
|
+
w.loading = !0;
|
|
971
|
+
const K = await ht(c.className, { ...v, ...y.value }, m);
|
|
972
|
+
w.loading = !1, l.value?.forEach((ee) => {
|
|
973
|
+
ee?.submit && ee.submit(K.toString());
|
|
974
|
+
}), r?.appContext.config.globalProperties.$notification.success("create success!"), n.push({ name: "Details", params: { workflowId: K.toString() } });
|
|
975
975
|
break;
|
|
976
976
|
case Y.Link:
|
|
977
|
-
|
|
977
|
+
k === "List" && n.push({ name: "List", params: { className: c.className } });
|
|
978
978
|
break;
|
|
979
979
|
default:
|
|
980
980
|
console.warn("Unknown action type:", N);
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
-
const X =
|
|
983
|
+
const X = b([
|
|
984
984
|
"jobScpope",
|
|
985
985
|
"currentWorkdayId",
|
|
986
986
|
"originalGrade",
|
|
@@ -988,68 +988,68 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
988
988
|
"jobAttachmentPrevious",
|
|
989
989
|
"positionId"
|
|
990
990
|
]);
|
|
991
|
-
function
|
|
992
|
-
o[
|
|
991
|
+
function ue(w, N) {
|
|
992
|
+
o[w]?.(N, X), s.value && (i.value = d(s.value.fields));
|
|
993
993
|
}
|
|
994
|
-
const
|
|
995
|
-
return (
|
|
996
|
-
const m =
|
|
997
|
-
return u(),
|
|
998
|
-
|
|
994
|
+
const Q = q(() => Ke(i.value));
|
|
995
|
+
return (w, N) => {
|
|
996
|
+
const m = S("a-card"), k = S("a-spin");
|
|
997
|
+
return u(), C("div", an, [
|
|
998
|
+
P(Se, {
|
|
999
999
|
title: s.value.banner.title,
|
|
1000
1000
|
subTitle: s.value.banner.subTitle,
|
|
1001
|
-
email:
|
|
1001
|
+
email: G()
|
|
1002
1002
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1003
|
-
|
|
1004
|
-
|
|
1003
|
+
h("div", sn, [
|
|
1004
|
+
P(k, {
|
|
1005
1005
|
loading: T.value,
|
|
1006
1006
|
class: "form-container"
|
|
1007
1007
|
}, {
|
|
1008
|
-
default:
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
(u(!0),
|
|
1012
|
-
key:
|
|
1013
|
-
title:
|
|
1008
|
+
default: _(() => [
|
|
1009
|
+
h("div", rn, [
|
|
1010
|
+
h("div", ln, [
|
|
1011
|
+
(u(!0), C(M, null, B(Q.value, ($) => (u(), U(m, {
|
|
1012
|
+
key: $.name,
|
|
1013
|
+
title: $.name,
|
|
1014
1014
|
style: { "margin-bottom": "24px" }
|
|
1015
1015
|
}, {
|
|
1016
|
-
default:
|
|
1017
|
-
|
|
1018
|
-
(u(!0),
|
|
1019
|
-
key:
|
|
1016
|
+
default: _(() => [
|
|
1017
|
+
h("div", cn, [
|
|
1018
|
+
(u(!0), C(M, null, B($.fields, (F) => (u(), U(He, {
|
|
1019
|
+
key: F.fieldKey,
|
|
1020
1020
|
ref_for: !0,
|
|
1021
1021
|
ref: "dataWidgets",
|
|
1022
|
-
"field-key":
|
|
1023
|
-
config:
|
|
1024
|
-
"class-name":
|
|
1025
|
-
modelValue:
|
|
1026
|
-
"onUpdate:modelValue": (
|
|
1022
|
+
"field-key": F.fieldKey,
|
|
1023
|
+
config: F,
|
|
1024
|
+
"class-name": w.className,
|
|
1025
|
+
modelValue: v[F.fieldKey],
|
|
1026
|
+
"onUpdate:modelValue": (K) => v[F.fieldKey] = K,
|
|
1027
1027
|
class: "form-field",
|
|
1028
|
-
onChange:
|
|
1028
|
+
onChange: ue
|
|
1029
1029
|
}, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1030
1030
|
])
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 2
|
|
1033
1033
|
}, 1032, ["title"]))), 128))
|
|
1034
1034
|
]),
|
|
1035
|
-
|
|
1036
|
-
le(
|
|
1037
|
-
])) :
|
|
1035
|
+
w.$slots.content ? (u(), C("div", un, [
|
|
1036
|
+
le(w.$slots, "content", {}, void 0, !0)
|
|
1037
|
+
])) : Z("", !0)
|
|
1038
1038
|
])
|
|
1039
1039
|
]),
|
|
1040
1040
|
_: 3
|
|
1041
1041
|
}, 8, ["loading"])
|
|
1042
1042
|
]),
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
le(
|
|
1046
|
-
|
|
1047
|
-
(u(!0),
|
|
1048
|
-
key:
|
|
1049
|
-
loading:
|
|
1050
|
-
config:
|
|
1043
|
+
h("div", dn, [
|
|
1044
|
+
h("div", fn, [
|
|
1045
|
+
le(w.$slots, "action", {}, void 0, !0),
|
|
1046
|
+
h("div", pn, [
|
|
1047
|
+
(u(!0), C(M, null, B(I.value, ($) => (u(), U(ve, {
|
|
1048
|
+
key: $.Title,
|
|
1049
|
+
loading: $.loading,
|
|
1050
|
+
config: $,
|
|
1051
1051
|
class: "action-button",
|
|
1052
|
-
onClick: (...
|
|
1052
|
+
onClick: (...F) => J($, ...F)
|
|
1053
1053
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
1054
1054
|
])
|
|
1055
1055
|
])
|
|
@@ -1057,17 +1057,17 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
1057
1057
|
]);
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
-
}),
|
|
1060
|
+
}), gn = /* @__PURE__ */ me(mn, [["__scopeId", "data-v-ca3b2cdb"]]), vn = { class: "page-container" }, _n = { class: "page-body" }, yn = { class: "form-card" }, wn = { class: "form-fields-vertical" }, bn = { class: "form-fields" }, hn = {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
class: "form-content"
|
|
1063
|
-
},
|
|
1063
|
+
}, kn = { class: "page-footer" }, Cn = { class: "action-container" }, Sn = { class: "action-buttons" }, Vn = /* @__PURE__ */ z({
|
|
1064
1064
|
__name: "UpdateView",
|
|
1065
1065
|
props: {
|
|
1066
1066
|
className: {},
|
|
1067
1067
|
workflowId: {}
|
|
1068
1068
|
},
|
|
1069
1069
|
setup(e) {
|
|
1070
|
-
const t = he(), a =
|
|
1070
|
+
const t = he(), a = Be(), n = Ce(), o = ke(), l = Le("dataWidgets"), r = we(), c = e, s = b({
|
|
1071
1071
|
pageType: "",
|
|
1072
1072
|
fields: {},
|
|
1073
1073
|
globalValidations: [],
|
|
@@ -1075,17 +1075,17 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
1075
1075
|
title: "",
|
|
1076
1076
|
subTitle: ""
|
|
1077
1077
|
}
|
|
1078
|
-
}), i =
|
|
1079
|
-
function
|
|
1080
|
-
return
|
|
1078
|
+
}), i = b([]), y = b({});
|
|
1079
|
+
function d(w) {
|
|
1080
|
+
return w ? Object.entries(w).map(([m, k]) => ({
|
|
1081
1081
|
fieldKey: m,
|
|
1082
|
-
|
|
1082
|
+
...k
|
|
1083
1083
|
})).filter((m) => m.widget && m.widget.widget !== "Hidden").filter((m) => !X.value.includes(m.fieldKey)) : [];
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1085
|
+
function V(w) {
|
|
1086
|
+
return w ? Object.entries(w).filter(([m, k]) => k.dependent).reduce((m, [k, $]) => (m[k] = $.dependent, m), {}) : [];
|
|
1087
1087
|
}
|
|
1088
|
-
const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []),
|
|
1088
|
+
const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), v = De({}), T = b(!1);
|
|
1089
1089
|
ce(async () => {
|
|
1090
1090
|
T.value = !0, s.value = await be(de.Update, c.className, {
|
|
1091
1091
|
svrStore: n,
|
|
@@ -1093,45 +1093,45 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
1093
1093
|
}, {
|
|
1094
1094
|
workflowId: c.workflowId
|
|
1095
1095
|
});
|
|
1096
|
-
const
|
|
1096
|
+
const w = await Je(de.Update, c.className, { workflowId: c.workflowId, email: G() }), N = await Xe(c.className, c.workflowId);
|
|
1097
1097
|
s.value.actions = s.value.actions?.filter((m) => {
|
|
1098
|
-
const
|
|
1099
|
-
return
|
|
1100
|
-
}), i.value =
|
|
1098
|
+
const k = w.find(($) => $.button === m.title);
|
|
1099
|
+
return k ? k.isShow : !0;
|
|
1100
|
+
}), i.value = d(s.value.fields), y.value = V(s.value.fields);
|
|
1101
1101
|
for (const m in s.value.fields) {
|
|
1102
1102
|
if (s.value.fields[m].widget?.widget === "File") {
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1103
|
+
const k = i.value.find(($) => $.fieldKey === m);
|
|
1104
|
+
k && k.widget && (k.widget.files = N[m] ?? [], k.widget.removeFile = ($) => Nt(c.className, $));
|
|
1105
1105
|
}
|
|
1106
|
-
|
|
1106
|
+
v[m] = s.value.fields[m].modelValue;
|
|
1107
1107
|
}
|
|
1108
1108
|
T.value = !1;
|
|
1109
1109
|
});
|
|
1110
|
-
function
|
|
1110
|
+
function G() {
|
|
1111
1111
|
return n()?.userInfo?.email_address ?? "";
|
|
1112
1112
|
}
|
|
1113
|
-
async function J(
|
|
1113
|
+
async function J(w, N, m, k, $) {
|
|
1114
1114
|
switch (N) {
|
|
1115
1115
|
case Y.Submit:
|
|
1116
|
-
let
|
|
1117
|
-
if (l.value?.forEach((
|
|
1118
|
-
|
|
1119
|
-
}), !
|
|
1116
|
+
let F = !0;
|
|
1117
|
+
if (l.value?.forEach((K) => {
|
|
1118
|
+
K?.validate && (K.validate() || (F = !1));
|
|
1119
|
+
}), !F) {
|
|
1120
1120
|
r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1121
1121
|
return;
|
|
1122
1122
|
}
|
|
1123
|
-
|
|
1124
|
-
|
|
1123
|
+
w.loading = !0, await kt(c.className, c.workflowId, { ...v, ...y.value }, m), w.loading = !1, l.value?.forEach((K) => {
|
|
1124
|
+
K?.submit && K.submit(c.workflowId);
|
|
1125
1125
|
}), r?.appContext.config.globalProperties.$notification.success("update success!");
|
|
1126
1126
|
break;
|
|
1127
1127
|
case Y.Link:
|
|
1128
|
-
t.push({ name:
|
|
1128
|
+
t.push({ name: k, params: { className: c.className } });
|
|
1129
1129
|
break;
|
|
1130
1130
|
default:
|
|
1131
1131
|
console.warn("Unknown action type:", N);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
const X =
|
|
1134
|
+
const X = b([
|
|
1135
1135
|
"jobScpope",
|
|
1136
1136
|
"currentWorkdayId",
|
|
1137
1137
|
"originalGrade",
|
|
@@ -1139,68 +1139,68 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
1139
1139
|
"jobAttachmentPrevious",
|
|
1140
1140
|
"positionId"
|
|
1141
1141
|
]);
|
|
1142
|
-
function
|
|
1143
|
-
a[
|
|
1142
|
+
function ue(w, N) {
|
|
1143
|
+
a[w]?.(N, X), s.value && (i.value = d(s.value.fields));
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1146
|
-
return (
|
|
1147
|
-
const m =
|
|
1148
|
-
return u(),
|
|
1149
|
-
|
|
1145
|
+
const Q = q(() => Ke(i.value));
|
|
1146
|
+
return (w, N) => {
|
|
1147
|
+
const m = S("a-card"), k = S("a-spin");
|
|
1148
|
+
return u(), C("div", vn, [
|
|
1149
|
+
P(Se, {
|
|
1150
1150
|
title: s.value.banner.title,
|
|
1151
1151
|
subTitle: s.value.banner.subTitle,
|
|
1152
|
-
email:
|
|
1152
|
+
email: G()
|
|
1153
1153
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1154
|
-
|
|
1155
|
-
|
|
1154
|
+
h("div", _n, [
|
|
1155
|
+
P(k, {
|
|
1156
1156
|
loading: T.value,
|
|
1157
1157
|
class: "form-container"
|
|
1158
1158
|
}, {
|
|
1159
|
-
default:
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
(u(!0),
|
|
1163
|
-
key:
|
|
1164
|
-
title:
|
|
1159
|
+
default: _(() => [
|
|
1160
|
+
h("div", yn, [
|
|
1161
|
+
h("div", wn, [
|
|
1162
|
+
(u(!0), C(M, null, B(Q.value, ($) => (u(), U(m, {
|
|
1163
|
+
key: $.name,
|
|
1164
|
+
title: $.name,
|
|
1165
1165
|
style: { "margin-bottom": "24px" }
|
|
1166
1166
|
}, {
|
|
1167
|
-
default:
|
|
1168
|
-
|
|
1169
|
-
(u(!0),
|
|
1170
|
-
key:
|
|
1167
|
+
default: _(() => [
|
|
1168
|
+
h("div", bn, [
|
|
1169
|
+
(u(!0), C(M, null, B($.fields, (F) => (u(), U(He, {
|
|
1170
|
+
key: F.fieldKey,
|
|
1171
1171
|
ref_for: !0,
|
|
1172
1172
|
ref: "dataWidgets",
|
|
1173
|
-
"field-key":
|
|
1174
|
-
config:
|
|
1175
|
-
"class-name":
|
|
1176
|
-
modelValue:
|
|
1177
|
-
"onUpdate:modelValue": (
|
|
1173
|
+
"field-key": F.fieldKey,
|
|
1174
|
+
config: F,
|
|
1175
|
+
"class-name": w.className,
|
|
1176
|
+
modelValue: v[F.fieldKey],
|
|
1177
|
+
"onUpdate:modelValue": (K) => v[F.fieldKey] = K,
|
|
1178
1178
|
class: "form-field",
|
|
1179
|
-
onChange:
|
|
1179
|
+
onChange: ue
|
|
1180
1180
|
}, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1181
1181
|
])
|
|
1182
1182
|
]),
|
|
1183
1183
|
_: 2
|
|
1184
1184
|
}, 1032, ["title"]))), 128))
|
|
1185
1185
|
]),
|
|
1186
|
-
|
|
1187
|
-
le(
|
|
1188
|
-
])) :
|
|
1186
|
+
w.$slots.content ? (u(), C("div", hn, [
|
|
1187
|
+
le(w.$slots, "content", {}, void 0, !0)
|
|
1188
|
+
])) : Z("", !0)
|
|
1189
1189
|
])
|
|
1190
1190
|
]),
|
|
1191
1191
|
_: 3
|
|
1192
1192
|
}, 8, ["loading"])
|
|
1193
1193
|
]),
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
le(
|
|
1197
|
-
|
|
1198
|
-
(u(!0),
|
|
1199
|
-
key:
|
|
1200
|
-
loading:
|
|
1201
|
-
config:
|
|
1194
|
+
h("div", kn, [
|
|
1195
|
+
h("div", Cn, [
|
|
1196
|
+
le(w.$slots, "action", {}, void 0, !0),
|
|
1197
|
+
h("div", Sn, [
|
|
1198
|
+
(u(!0), C(M, null, B(I.value, ($) => (u(), U(ve, {
|
|
1199
|
+
key: $.Title,
|
|
1200
|
+
loading: $.loading,
|
|
1201
|
+
config: $,
|
|
1202
1202
|
class: "action-button",
|
|
1203
|
-
onClick: (...
|
|
1203
|
+
onClick: (...F) => J($, ...F)
|
|
1204
1204
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
1205
1205
|
])
|
|
1206
1206
|
])
|
|
@@ -1208,24 +1208,24 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
|
|
|
1208
1208
|
]);
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
|
-
}),
|
|
1212
|
-
function
|
|
1213
|
-
return fe(
|
|
1211
|
+
}), xn = /* @__PURE__ */ me(Vn, [["__scopeId", "data-v-9e5cdbac"]]), nt = Symbol("library-custom-comp");
|
|
1212
|
+
function $n() {
|
|
1213
|
+
return fe(nt, null);
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1215
|
+
const An = Symbol("ArcoConfigProvider"), In = "arco", Tn = "$arco", Un = (e) => {
|
|
1216
1216
|
var t, a, n;
|
|
1217
|
-
const o = we(), l = fe(
|
|
1218
|
-
return `${(n = (a = l?.prefixCls) != null ? a : (t = o?.appContext.config.globalProperties[
|
|
1219
|
-
},
|
|
1220
|
-
function
|
|
1221
|
-
return
|
|
1217
|
+
const o = we(), l = fe(An, void 0);
|
|
1218
|
+
return `${(n = (a = l?.prefixCls) != null ? a : (t = o?.appContext.config.globalProperties[Tn]) == null ? void 0 : t.classPrefix) != null ? n : In}-${e}`;
|
|
1219
|
+
}, Nn = Object.prototype.toString;
|
|
1220
|
+
function Fn(e) {
|
|
1221
|
+
return Nn.call(e) === "[object Number]" && e === e;
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1223
|
+
var Ln = (e, t) => {
|
|
1224
1224
|
for (const [a, n] of t)
|
|
1225
1225
|
e[a] = n;
|
|
1226
1226
|
return e;
|
|
1227
1227
|
};
|
|
1228
|
-
const
|
|
1228
|
+
const Pn = z({
|
|
1229
1229
|
name: "IconDownload",
|
|
1230
1230
|
props: {
|
|
1231
1231
|
size: {
|
|
@@ -1252,9 +1252,9 @@ const Ln = j({
|
|
|
1252
1252
|
click: (e) => !0
|
|
1253
1253
|
},
|
|
1254
1254
|
setup(e, { emit: t }) {
|
|
1255
|
-
const a =
|
|
1255
|
+
const a = Un("icon"), n = q(() => [a, `${a}-download`, { [`${a}-spin`]: e.spin }]), o = q(() => {
|
|
1256
1256
|
const r = {};
|
|
1257
|
-
return e.size && (r.fontSize =
|
|
1257
|
+
return e.size && (r.fontSize = Fn(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
|
|
1258
1258
|
});
|
|
1259
1259
|
return {
|
|
1260
1260
|
cls: n,
|
|
@@ -1264,44 +1264,47 @@ const Ln = j({
|
|
|
1264
1264
|
}
|
|
1265
1265
|
};
|
|
1266
1266
|
}
|
|
1267
|
-
}),
|
|
1268
|
-
function
|
|
1269
|
-
return u(),
|
|
1267
|
+
}), Dn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1268
|
+
function Rn(e, t, a, n, o, l) {
|
|
1269
|
+
return u(), C("svg", {
|
|
1270
1270
|
viewBox: "0 0 48 48",
|
|
1271
1271
|
fill: "none",
|
|
1272
1272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1273
1273
|
stroke: "currentColor",
|
|
1274
|
-
class:
|
|
1275
|
-
style:
|
|
1274
|
+
class: st(e.cls),
|
|
1275
|
+
style: at(e.innerStyle),
|
|
1276
1276
|
"stroke-width": e.strokeWidth,
|
|
1277
1277
|
"stroke-linecap": e.strokeLinecap,
|
|
1278
1278
|
"stroke-linejoin": e.strokeLinejoin,
|
|
1279
1279
|
onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r))
|
|
1280
1280
|
}, t[1] || (t[1] = [
|
|
1281
|
-
|
|
1282
|
-
]), 14,
|
|
1281
|
+
h("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
|
|
1282
|
+
]), 14, Dn);
|
|
1283
1283
|
}
|
|
1284
|
-
var
|
|
1285
|
-
const
|
|
1284
|
+
var Ne = /* @__PURE__ */ Ln(Pn, [["render", Rn]]);
|
|
1285
|
+
const Mn = Object.assign(Ne, {
|
|
1286
1286
|
install: (e, t) => {
|
|
1287
1287
|
var a;
|
|
1288
1288
|
const n = (a = t?.iconPrefix) != null ? a : "";
|
|
1289
|
-
e.component(n +
|
|
1289
|
+
e.component(n + Ne.name, Ne);
|
|
1290
1290
|
}
|
|
1291
|
-
}),
|
|
1291
|
+
}), Hn = { class: "page-container" }, Bn = { class: "page-body" }, Kn = { class: "detail-card" }, jn = { class: "form-fields-vertical" }, zn = { class: "detail-fields" }, En = { class: "detail-field" }, Gn = { class: "field-label" }, On = {
|
|
1292
1292
|
key: 1,
|
|
1293
1293
|
class: "field-value"
|
|
1294
|
-
},
|
|
1294
|
+
}, Wn = {
|
|
1295
|
+
key: 2,
|
|
1296
|
+
class: "detail-field-wrapper"
|
|
1297
|
+
}, qn = { class: "detail-field" }, Yn = {
|
|
1295
1298
|
key: 0,
|
|
1296
1299
|
class: "detail-content"
|
|
1297
|
-
},
|
|
1300
|
+
}, Jn = { class: "page-footer" }, Xn = { class: "action-container" }, Qn = { class: "action-buttons" }, Zn = /* @__PURE__ */ z({
|
|
1298
1301
|
__name: "DetailView",
|
|
1299
1302
|
props: {
|
|
1300
1303
|
className: {},
|
|
1301
1304
|
workflowId: {}
|
|
1302
1305
|
},
|
|
1303
1306
|
setup(e) {
|
|
1304
|
-
const t = Ce(), a = ke(), n =
|
|
1307
|
+
const t = Ce(), a = ke(), n = Be(), o = he(), l = $n(), r = we(), c = e, s = b({
|
|
1305
1308
|
pageType: "",
|
|
1306
1309
|
fields: {},
|
|
1307
1310
|
globalValidations: [],
|
|
@@ -1309,16 +1312,16 @@ const Rn = Object.assign(Ue, {
|
|
|
1309
1312
|
title: "",
|
|
1310
1313
|
subTitle: ""
|
|
1311
1314
|
}
|
|
1312
|
-
}), i =
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1315
|
-
fieldKey:
|
|
1315
|
+
}), i = b([]);
|
|
1316
|
+
function y(f) {
|
|
1317
|
+
return f ? Object.entries(f).map(([D, g]) => (typeof g.modelValue == "boolean" ? g.fieldValue = g.modelValue ? "Yes" : "No" : g.fieldValue = g.modelValue, {
|
|
1318
|
+
fieldKey: D,
|
|
1316
1319
|
...g
|
|
1317
|
-
})).filter((
|
|
1320
|
+
})).filter((D) => D.widget && D.widget.widget !== "Hidden") : [];
|
|
1318
1321
|
}
|
|
1319
|
-
const
|
|
1320
|
-
const
|
|
1321
|
-
return
|
|
1322
|
+
const d = q(() => Ke(i.value)), V = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), I = b(!0), v = (f, p) => {
|
|
1323
|
+
const D = f.findIndex((g) => g.isCurrent);
|
|
1324
|
+
return f.map((g, H) => {
|
|
1322
1325
|
const A = {
|
|
1323
1326
|
id: g.id,
|
|
1324
1327
|
title: "",
|
|
@@ -1329,194 +1332,194 @@ const Rn = Object.assign(Ue, {
|
|
|
1329
1332
|
time: ""
|
|
1330
1333
|
};
|
|
1331
1334
|
A.title = g.workflowProcessApprovers[0]?.name;
|
|
1332
|
-
const
|
|
1333
|
-
if (
|
|
1335
|
+
const re = g.workflowProcessApprovers[g.workflowProcessApprovers.length - 1], te = g.workflowHistorys[g.workflowHistorys.length - 1], ne = te?.workflowHistoryApprovers[te?.workflowHistoryApprovers?.length - 1];
|
|
1336
|
+
if (re && ne && re?.email?.toLowerCase() !== ne?.approverEmail?.toLowerCase() && (A.title = `${ne.name}`, A.proxy = `Proxy: ${re.name}`), g.sort > 1 ? A.sub = "Approver Role: " + g.nodeName.replace("Submit", "").replace("Approve", "") : A.sub = "Submit Application", g.isCurrent && p !== -1)
|
|
1334
1337
|
A.desc = "In Approval", A.status = 1;
|
|
1335
1338
|
else {
|
|
1336
|
-
const
|
|
1337
|
-
if (
|
|
1338
|
-
A.time = ye(
|
|
1339
|
-
else if (
|
|
1340
|
-
A.time = ye(
|
|
1341
|
-
else if (
|
|
1342
|
-
if (A.time = ye(
|
|
1339
|
+
const L = g.workflowHistorys[g.workflowHistorys.length - 1];
|
|
1340
|
+
if (L && L.status === 100)
|
|
1341
|
+
A.time = ye(L.takeActionAt, "yyyy-MM-dd hh:mm:ss"), A.status = 2, A.desc = "approve success!";
|
|
1342
|
+
else if (L && L.status === 999)
|
|
1343
|
+
A.time = ye(L.takeActionAt, "yyyy-MM-dd hh:mm:ss"), A.status = 0, A.desc = "approve reject!";
|
|
1344
|
+
else if (L)
|
|
1345
|
+
if (A.time = ye(L.takeActionAt, "yyyy-MM-dd hh:mm:ss"), g.sort === 1)
|
|
1343
1346
|
A.status = 2, A.desc = "";
|
|
1344
1347
|
else {
|
|
1345
|
-
const
|
|
1346
|
-
A.status = 3, A.desc =
|
|
1348
|
+
const oe = L.workflowHistoryApprovers[0];
|
|
1349
|
+
A.status = 3, A.desc = oe?.reason ? `Rejected reason: ${oe.reason}` : "Rejected";
|
|
1347
1350
|
}
|
|
1348
|
-
else
|
|
1349
|
-
|
|
1351
|
+
else H < D || D === -1 ? (A.status = 0, A.desc = "Skipped") : (A.status = 0, A.desc = "Pending Approval");
|
|
1352
|
+
L && L.status;
|
|
1350
1353
|
}
|
|
1351
1354
|
return A;
|
|
1352
1355
|
});
|
|
1353
|
-
}, T =
|
|
1354
|
-
async function
|
|
1356
|
+
}, T = b([]), G = b(!1), J = b(!1), se = b(!1);
|
|
1357
|
+
async function X() {
|
|
1355
1358
|
I.value = !0, s.value = await be(de.Details, c.className, {
|
|
1356
1359
|
svrStore: t,
|
|
1357
1360
|
bpmStore: a
|
|
1358
1361
|
}, {
|
|
1359
1362
|
workflowId: c.workflowId
|
|
1360
1363
|
});
|
|
1361
|
-
const
|
|
1362
|
-
$.value = await
|
|
1363
|
-
const
|
|
1364
|
-
return
|
|
1365
|
-
}),
|
|
1364
|
+
const f = await Je(de.Details, c.className, { workflowId: c.workflowId, email: Q() }), p = await Xe(c.className, c.workflowId);
|
|
1365
|
+
$.value = await Ft(), m.value = await ze(c.workflowId), F.value = await Ue(c.workflowId), s.value.actions = s.value.actions?.filter((g) => {
|
|
1366
|
+
const H = f.find((A) => A.button === g.title);
|
|
1367
|
+
return H ? H.isShow : !0;
|
|
1368
|
+
}), G.value = f.find((g) => g.button === "IsGlobal")?.isShow ?? !1, J.value = f.find((g) => g.button === "AssginButton")?.isShow ?? !1, se.value = f.find((g) => g.button === "CommentsText")?.isShow ?? !1, i.value = y(s.value.fields);
|
|
1366
1369
|
for (const g in s.value.fields)
|
|
1367
1370
|
if (s.value.fields[g].widget?.widget === "File") {
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1371
|
+
const H = i.value.find((A) => A.fieldKey === g);
|
|
1372
|
+
H && H.widget && (H.widget.files = p[g] ?? []);
|
|
1370
1373
|
}
|
|
1371
|
-
const
|
|
1372
|
-
T.value =
|
|
1374
|
+
const D = await Tt(c.className, c.workflowId);
|
|
1375
|
+
T.value = v(D, 0), I.value = !1;
|
|
1373
1376
|
}
|
|
1374
|
-
ce(
|
|
1375
|
-
async function
|
|
1376
|
-
return n[
|
|
1377
|
+
ce(X);
|
|
1378
|
+
async function ue(f, p) {
|
|
1379
|
+
return n[f]?.(p);
|
|
1377
1380
|
}
|
|
1378
1381
|
function Q() {
|
|
1379
1382
|
return t()?.userInfo?.email_address ?? "";
|
|
1380
1383
|
}
|
|
1381
|
-
async function
|
|
1384
|
+
async function w(f, p, D, g, H) {
|
|
1382
1385
|
try {
|
|
1383
|
-
switch (
|
|
1386
|
+
switch (p) {
|
|
1384
1387
|
case Y.Submit:
|
|
1385
|
-
|
|
1386
|
-
const { reason: A, ifGlobal:
|
|
1387
|
-
await
|
|
1388
|
-
const
|
|
1389
|
-
r?.appContext.config.globalProperties.$notification.success(
|
|
1388
|
+
f.loading = !0;
|
|
1389
|
+
const { reason: A, ifGlobal: re } = await ue(H, { isGlobal: G.value }), te = H === "Approve" ? "100" : "-1";
|
|
1390
|
+
await At(c.className, c.workflowId, Q(), A, [Number(c.workflowId)], D, te, re), f.loading = !1;
|
|
1391
|
+
const ne = H === "Approve" ? "approve success!" : "approve reject!";
|
|
1392
|
+
r?.appContext.config.globalProperties.$notification.success(ne), X();
|
|
1390
1393
|
break;
|
|
1391
1394
|
case Y.Link:
|
|
1392
1395
|
g === "List" && o.push({ name: "List", params: { className: c.className } });
|
|
1393
1396
|
break;
|
|
1394
1397
|
default:
|
|
1395
|
-
console.warn("Unknown action type:",
|
|
1398
|
+
console.warn("Unknown action type:", p);
|
|
1396
1399
|
}
|
|
1397
1400
|
} catch {
|
|
1398
1401
|
}
|
|
1399
1402
|
}
|
|
1400
|
-
const
|
|
1401
|
-
async function
|
|
1402
|
-
if (!
|
|
1403
|
+
const N = b(""), m = b([]), k = b(""), $ = b([]), F = b([]);
|
|
1404
|
+
async function K() {
|
|
1405
|
+
if (!k.value) {
|
|
1403
1406
|
r?.appContext.config.globalProperties.$message.error("Please select an approver");
|
|
1404
1407
|
return;
|
|
1405
1408
|
}
|
|
1406
|
-
await
|
|
1409
|
+
await ee("Confirm Assign Approver", "Do you want to assign the selected approver?"), await Lt(c.workflowId, k.value), F.value = await Ue(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
|
|
1407
1410
|
}
|
|
1408
|
-
async function
|
|
1409
|
-
const { Modal:
|
|
1410
|
-
return new Promise((g,
|
|
1411
|
-
|
|
1412
|
-
title:
|
|
1413
|
-
content:
|
|
1411
|
+
async function ee(f, p) {
|
|
1412
|
+
const { Modal: D } = await import("@arco-design/web-vue");
|
|
1413
|
+
return new Promise((g, H) => {
|
|
1414
|
+
D.confirm({
|
|
1415
|
+
title: f,
|
|
1416
|
+
content: p,
|
|
1414
1417
|
okText: "OK",
|
|
1415
1418
|
cancelText: "Cancel",
|
|
1416
1419
|
onOk: () => g(!0),
|
|
1417
|
-
onCancel: () =>
|
|
1420
|
+
onCancel: () => H()
|
|
1418
1421
|
});
|
|
1419
1422
|
});
|
|
1420
1423
|
}
|
|
1421
|
-
async function
|
|
1424
|
+
async function Ve(f) {
|
|
1422
1425
|
try {
|
|
1423
|
-
await
|
|
1426
|
+
await ee("Confirm Delete Associator", "Do you want to delete this associator?");
|
|
1424
1427
|
} catch {
|
|
1425
1428
|
return;
|
|
1426
1429
|
}
|
|
1427
1430
|
try {
|
|
1428
|
-
await
|
|
1431
|
+
await Dt(String(f)), F.value = await Ue(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
|
|
1429
1432
|
} catch {
|
|
1430
1433
|
r?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
|
|
1431
1434
|
}
|
|
1432
1435
|
}
|
|
1433
|
-
async function
|
|
1434
|
-
if (!
|
|
1436
|
+
async function x() {
|
|
1437
|
+
if (!N.value.trim()) {
|
|
1435
1438
|
r?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
|
|
1436
1439
|
return;
|
|
1437
1440
|
}
|
|
1438
|
-
await
|
|
1441
|
+
await Pt(c.workflowId, Q(), N.value), N.value = "", m.value = await ze(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
|
|
1439
1442
|
}
|
|
1440
|
-
return (
|
|
1441
|
-
const
|
|
1442
|
-
return u(),
|
|
1443
|
-
|
|
1443
|
+
return (f, p) => {
|
|
1444
|
+
const D = S("a-link"), g = S("a-space"), H = S("a-card"), A = S("a-option"), re = S("a-select"), te = S("a-button"), ne = S("a-list-item"), L = S("a-list"), oe = S("a-textarea"), xe = S("a-spin");
|
|
1445
|
+
return u(), C("div", Hn, [
|
|
1446
|
+
P(Se, {
|
|
1444
1447
|
title: s.value.banner.title,
|
|
1445
1448
|
subTitle: s.value.banner.subTitle,
|
|
1446
1449
|
email: Q()
|
|
1447
1450
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1448
|
-
|
|
1449
|
-
|
|
1451
|
+
h("div", Bn, [
|
|
1452
|
+
P(xe, {
|
|
1450
1453
|
loading: I.value,
|
|
1451
1454
|
class: "detail-container"
|
|
1452
1455
|
}, {
|
|
1453
|
-
default:
|
|
1454
|
-
|
|
1455
|
-
(u(), U(
|
|
1456
|
-
|
|
1457
|
-
(u(!0),
|
|
1458
|
-
key:
|
|
1459
|
-
title:
|
|
1456
|
+
default: _(() => [
|
|
1457
|
+
h("div", Kn, [
|
|
1458
|
+
(u(), U(Pe(Ae(l).Steps), { steps: T.value }, null, 8, ["steps"])),
|
|
1459
|
+
h("div", jn, [
|
|
1460
|
+
(u(!0), C(M, null, B(d.value, (R) => (u(), U(H, {
|
|
1461
|
+
key: R.name,
|
|
1462
|
+
title: R.name,
|
|
1460
1463
|
style: { "margin-bottom": "24px" }
|
|
1461
1464
|
}, {
|
|
1462
|
-
default:
|
|
1463
|
-
|
|
1464
|
-
(u(!0),
|
|
1465
|
+
default: _(() => [
|
|
1466
|
+
h("div", zn, [
|
|
1467
|
+
(u(!0), C(M, null, B(R.fields, (ie) => (u(), C("div", {
|
|
1465
1468
|
key: ie.fieldKey,
|
|
1466
1469
|
class: "detail-field-wrapper"
|
|
1467
1470
|
}, [
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
ie.widget?.widget === "File" ? (u(!0),
|
|
1471
|
+
h("div", En, [
|
|
1472
|
+
h("div", Gn, W(ie.widget?.title), 1),
|
|
1473
|
+
ie.widget?.widget === "File" ? (u(!0), C(M, { key: 0 }, B(ie.widget.files, ($e) => (u(), C("div", {
|
|
1471
1474
|
class: "field-value",
|
|
1472
|
-
key:
|
|
1475
|
+
key: $e.id
|
|
1473
1476
|
}, [
|
|
1474
|
-
|
|
1475
|
-
default:
|
|
1476
|
-
O(W(
|
|
1477
|
-
|
|
1478
|
-
href:
|
|
1477
|
+
P(g, null, {
|
|
1478
|
+
default: _(() => [
|
|
1479
|
+
O(W($e.name) + " ", 1),
|
|
1480
|
+
P(D, {
|
|
1481
|
+
href: $e.url,
|
|
1479
1482
|
target: "_blank"
|
|
1480
1483
|
}, {
|
|
1481
|
-
default:
|
|
1482
|
-
|
|
1484
|
+
default: _(() => [
|
|
1485
|
+
P(Ae(Mn), { style: { color: "#7A00E6" } })
|
|
1483
1486
|
]),
|
|
1484
1487
|
_: 2
|
|
1485
1488
|
}, 1032, ["href"])
|
|
1486
1489
|
]),
|
|
1487
1490
|
_: 2
|
|
1488
1491
|
}, 1024)
|
|
1489
|
-
]))), 128)) : (u(),
|
|
1492
|
+
]))), 128)) : (u(), C("div", On, W(ie.fieldValue), 1))
|
|
1490
1493
|
])
|
|
1491
1494
|
]))), 128))
|
|
1492
1495
|
])
|
|
1493
1496
|
]),
|
|
1494
1497
|
_: 2
|
|
1495
1498
|
}, 1032, ["title"]))), 128)),
|
|
1496
|
-
J.value ?
|
|
1497
|
-
default:
|
|
1498
|
-
|
|
1499
|
-
modelValue:
|
|
1500
|
-
"onUpdate:modelValue":
|
|
1499
|
+
J.value ? (u(), U(g, { key: 0 }, {
|
|
1500
|
+
default: _(() => [
|
|
1501
|
+
P(re, {
|
|
1502
|
+
modelValue: k.value,
|
|
1503
|
+
"onUpdate:modelValue": p[0] || (p[0] = (R) => k.value = R)
|
|
1501
1504
|
}, {
|
|
1502
|
-
default:
|
|
1503
|
-
(u(!0),
|
|
1504
|
-
key:
|
|
1505
|
-
value:
|
|
1505
|
+
default: _(() => [
|
|
1506
|
+
(u(!0), C(M, null, B($.value, (R) => (u(), U(A, {
|
|
1507
|
+
key: R.value,
|
|
1508
|
+
value: R.value
|
|
1506
1509
|
}, {
|
|
1507
|
-
default:
|
|
1508
|
-
O(W(
|
|
1510
|
+
default: _(() => [
|
|
1511
|
+
O(W(R.label), 1)
|
|
1509
1512
|
]),
|
|
1510
1513
|
_: 2
|
|
1511
1514
|
}, 1032, ["value"]))), 128))
|
|
1512
1515
|
]),
|
|
1513
1516
|
_: 1
|
|
1514
1517
|
}, 8, ["modelValue"]),
|
|
1515
|
-
|
|
1518
|
+
P(te, {
|
|
1516
1519
|
type: "primary",
|
|
1517
|
-
onClick:
|
|
1520
|
+
onClick: K
|
|
1518
1521
|
}, {
|
|
1519
|
-
default:
|
|
1522
|
+
default: _(() => p[2] || (p[2] = [
|
|
1520
1523
|
O("Assign Approver", -1)
|
|
1521
1524
|
])),
|
|
1522
1525
|
_: 1,
|
|
@@ -1524,90 +1527,90 @@ const Rn = Object.assign(Ue, {
|
|
|
1524
1527
|
})
|
|
1525
1528
|
]),
|
|
1526
1529
|
_: 1
|
|
1527
|
-
})),
|
|
1528
|
-
|
|
1529
|
-
header:
|
|
1530
|
+
})) : Z("", !0),
|
|
1531
|
+
F.value.length ? (u(), U(L, { key: 1 }, {
|
|
1532
|
+
header: _(() => p[3] || (p[3] = [
|
|
1530
1533
|
O(" Associators ", -1)
|
|
1531
1534
|
])),
|
|
1532
|
-
default:
|
|
1533
|
-
(u(!0),
|
|
1534
|
-
key:
|
|
1535
|
+
default: _(() => [
|
|
1536
|
+
(u(!0), C(M, null, B(F.value, (R) => (u(), U(ne, {
|
|
1537
|
+
key: R.id
|
|
1535
1538
|
}, {
|
|
1536
|
-
actions:
|
|
1537
|
-
|
|
1539
|
+
actions: _(() => [
|
|
1540
|
+
P(te, {
|
|
1538
1541
|
type: "text",
|
|
1539
1542
|
status: "danger",
|
|
1540
|
-
onClick: (ie) =>
|
|
1543
|
+
onClick: (ie) => Ve(R.id)
|
|
1541
1544
|
}, {
|
|
1542
|
-
default:
|
|
1545
|
+
default: _(() => p[4] || (p[4] = [
|
|
1543
1546
|
O(" Delete ", -1)
|
|
1544
1547
|
])),
|
|
1545
1548
|
_: 2,
|
|
1546
1549
|
__: [4]
|
|
1547
1550
|
}, 1032, ["onClick"])
|
|
1548
1551
|
]),
|
|
1549
|
-
default:
|
|
1550
|
-
O(" " + W(
|
|
1552
|
+
default: _(() => [
|
|
1553
|
+
O(" " + W(R.associator), 1)
|
|
1551
1554
|
]),
|
|
1552
1555
|
_: 2
|
|
1553
1556
|
}, 1024))), 128))
|
|
1554
1557
|
]),
|
|
1555
1558
|
_: 1
|
|
1556
|
-
})) :
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
modelValue:
|
|
1562
|
-
"onUpdate:modelValue":
|
|
1559
|
+
})) : Z("", !0),
|
|
1560
|
+
se.value ? (u(), C("div", Wn, [
|
|
1561
|
+
h("div", qn, [
|
|
1562
|
+
p[6] || (p[6] = h("div", { class: "field-label" }, "Comment", -1)),
|
|
1563
|
+
P(oe, {
|
|
1564
|
+
modelValue: N.value,
|
|
1565
|
+
"onUpdate:modelValue": p[1] || (p[1] = (R) => N.value = R)
|
|
1563
1566
|
}, null, 8, ["modelValue"]),
|
|
1564
|
-
|
|
1567
|
+
P(te, {
|
|
1565
1568
|
type: "primary",
|
|
1566
|
-
onClick:
|
|
1569
|
+
onClick: x
|
|
1567
1570
|
}, {
|
|
1568
|
-
default:
|
|
1571
|
+
default: _(() => p[5] || (p[5] = [
|
|
1569
1572
|
O("Add Comment", -1)
|
|
1570
1573
|
])),
|
|
1571
1574
|
_: 1,
|
|
1572
1575
|
__: [5]
|
|
1573
1576
|
})
|
|
1574
1577
|
])
|
|
1575
|
-
]),
|
|
1576
|
-
|
|
1577
|
-
header:
|
|
1578
|
+
])) : Z("", !0),
|
|
1579
|
+
m.value.length ? (u(), U(L, { key: 3 }, {
|
|
1580
|
+
header: _(() => p[7] || (p[7] = [
|
|
1578
1581
|
O(" Comments History ", -1)
|
|
1579
1582
|
])),
|
|
1580
|
-
default:
|
|
1581
|
-
(u(!0),
|
|
1582
|
-
key:
|
|
1583
|
+
default: _(() => [
|
|
1584
|
+
(u(!0), C(M, null, B(m.value, (R) => (u(), U(ne, {
|
|
1585
|
+
key: R.associator
|
|
1583
1586
|
}, {
|
|
1584
|
-
default:
|
|
1585
|
-
O(W(
|
|
1587
|
+
default: _(() => [
|
|
1588
|
+
O(W(R.associator) + ": " + W(R.comments) + " (" + W(Ae(ye)(R.createdAt)) + ") ", 1)
|
|
1586
1589
|
]),
|
|
1587
1590
|
_: 2
|
|
1588
1591
|
}, 1024))), 128))
|
|
1589
1592
|
]),
|
|
1590
1593
|
_: 1
|
|
1591
|
-
})) :
|
|
1594
|
+
})) : Z("", !0)
|
|
1592
1595
|
]),
|
|
1593
|
-
|
|
1594
|
-
le(
|
|
1595
|
-
])) :
|
|
1596
|
+
f.$slots.content ? (u(), C("div", Yn, [
|
|
1597
|
+
le(f.$slots, "content", {}, void 0, !0)
|
|
1598
|
+
])) : Z("", !0)
|
|
1596
1599
|
])
|
|
1597
1600
|
]),
|
|
1598
1601
|
_: 3
|
|
1599
1602
|
}, 8, ["loading"])
|
|
1600
1603
|
]),
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
le(
|
|
1604
|
-
|
|
1605
|
-
(u(!0),
|
|
1606
|
-
key:
|
|
1607
|
-
loading:
|
|
1608
|
-
config:
|
|
1604
|
+
h("div", Jn, [
|
|
1605
|
+
h("div", Xn, [
|
|
1606
|
+
le(f.$slots, "action", {}, void 0, !0),
|
|
1607
|
+
h("div", Qn, [
|
|
1608
|
+
(u(!0), C(M, null, B(V.value, (R) => (u(), U(ve, {
|
|
1609
|
+
key: R.Title,
|
|
1610
|
+
loading: R.loading,
|
|
1611
|
+
config: R,
|
|
1609
1612
|
class: "action-button",
|
|
1610
|
-
onClick: (...ie) =>
|
|
1613
|
+
onClick: (...ie) => w(R, ...ie)
|
|
1611
1614
|
}, null, 8, ["loading", "config", "onClick"]))), 128))
|
|
1612
1615
|
])
|
|
1613
1616
|
])
|
|
@@ -1615,14 +1618,14 @@ const Rn = Object.assign(Ue, {
|
|
|
1615
1618
|
]);
|
|
1616
1619
|
};
|
|
1617
1620
|
}
|
|
1618
|
-
}),
|
|
1621
|
+
}), eo = /* @__PURE__ */ me(Zn, [["__scopeId", "data-v-05e892b0"]]), to = { class: "list-container" }, no = { class: "query-title" }, oo = { class: "field-wrapper" }, ao = /* @__PURE__ */ z({
|
|
1619
1622
|
name: "ListView",
|
|
1620
1623
|
__name: "ListView",
|
|
1621
1624
|
props: {
|
|
1622
1625
|
className: {}
|
|
1623
1626
|
},
|
|
1624
1627
|
setup(e) {
|
|
1625
|
-
const t = Ce(), a = ke(), n = he(), o = e, l =
|
|
1628
|
+
const t = Ce(), a = ke(), n = he(), o = e, l = b(), r = De({
|
|
1626
1629
|
current: 1,
|
|
1627
1630
|
total: 0,
|
|
1628
1631
|
pageSize: 10,
|
|
@@ -1632,16 +1635,16 @@ const Rn = Object.assign(Ue, {
|
|
|
1632
1635
|
filters: []
|
|
1633
1636
|
});
|
|
1634
1637
|
function c() {
|
|
1635
|
-
const
|
|
1636
|
-
key:
|
|
1637
|
-
value:
|
|
1638
|
-
operator:
|
|
1638
|
+
const x = Object.entries(m.value).filter(([, { value: f }]) => f && f !== "").map(([f, { value: p, operator: D }]) => ({
|
|
1639
|
+
key: f,
|
|
1640
|
+
value: p,
|
|
1641
|
+
operator: D
|
|
1639
1642
|
// 根据实际需要调整操作符
|
|
1640
1643
|
}));
|
|
1641
1644
|
return console.log("🚀 ~ createListParams ~ searchFilters:", m.value), {
|
|
1642
1645
|
pageNumber: r.current,
|
|
1643
1646
|
pageSize: r.pageSize,
|
|
1644
|
-
filters: [...r.filters, ...
|
|
1647
|
+
filters: [...r.filters, ...x],
|
|
1645
1648
|
sorts: [{
|
|
1646
1649
|
key: "status",
|
|
1647
1650
|
type: 0
|
|
@@ -1649,14 +1652,14 @@ const Rn = Object.assign(Ue, {
|
|
|
1649
1652
|
};
|
|
1650
1653
|
}
|
|
1651
1654
|
const s = q(() => ({
|
|
1652
|
-
x:
|
|
1655
|
+
x: d.value.length * 150 + 250
|
|
1653
1656
|
// 只设置横向滚动
|
|
1654
1657
|
// 移除 y 属性,让表格高度自适应
|
|
1655
|
-
})), i = (
|
|
1656
|
-
const
|
|
1657
|
-
title:
|
|
1658
|
-
dataIndex:
|
|
1659
|
-
order:
|
|
1658
|
+
})), i = (x) => {
|
|
1659
|
+
const f = Object.entries(x).filter(([, p]) => p.widget?.column).map(([p, D], g) => ({
|
|
1660
|
+
title: D.widget.title,
|
|
1661
|
+
dataIndex: p.charAt(0).toLowerCase() + p.slice(1),
|
|
1662
|
+
order: D.order,
|
|
1660
1663
|
ellipsis: !0,
|
|
1661
1664
|
tooltip: !0,
|
|
1662
1665
|
width: 150,
|
|
@@ -1664,8 +1667,8 @@ const Rn = Object.assign(Ue, {
|
|
|
1664
1667
|
// 启用最小宽度
|
|
1665
1668
|
resizable: !0
|
|
1666
1669
|
// 启用列宽调整
|
|
1667
|
-
})).sort((
|
|
1668
|
-
|
|
1670
|
+
})).sort((p, D) => p.order - D.order);
|
|
1671
|
+
f.push({
|
|
1669
1672
|
title: "Actions",
|
|
1670
1673
|
slotName: "optional",
|
|
1671
1674
|
align: "center",
|
|
@@ -1673,143 +1676,143 @@ const Rn = Object.assign(Ue, {
|
|
|
1673
1676
|
minWidth: 200,
|
|
1674
1677
|
fixed: "right",
|
|
1675
1678
|
resizable: !1
|
|
1676
|
-
}),
|
|
1677
|
-
},
|
|
1679
|
+
}), d.value = f;
|
|
1680
|
+
}, y = b([]), d = b([]), V = b(!0), I = b(!0), v = b(), T = async () => {
|
|
1678
1681
|
I.value = !0;
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1681
|
-
},
|
|
1682
|
+
const x = await bt(o.className, c());
|
|
1683
|
+
y.value = x.data, r.total = x.totalCount, I.value = !1;
|
|
1684
|
+
}, G = b(!1);
|
|
1682
1685
|
ce(async () => {
|
|
1683
|
-
|
|
1686
|
+
V.value = !0, l.value = await be(3, o.className, {
|
|
1684
1687
|
svrStore: t,
|
|
1685
1688
|
bpmStore: a
|
|
1686
|
-
}), i(l.value.fields),
|
|
1687
|
-
}),
|
|
1688
|
-
|
|
1689
|
+
}), i(l.value.fields), $(l.value.fields), F(), N(l.value?.tabs?.[0]?.key || ""), v.value = l.value.actions, V.value = !1, G.value = !0;
|
|
1690
|
+
}), rt(() => {
|
|
1691
|
+
G.value && T();
|
|
1689
1692
|
});
|
|
1690
|
-
const J = (
|
|
1691
|
-
r.current =
|
|
1692
|
-
},
|
|
1693
|
-
r.pageSize =
|
|
1693
|
+
const J = (x) => {
|
|
1694
|
+
r.current = x, T();
|
|
1695
|
+
}, se = (x) => {
|
|
1696
|
+
r.pageSize = x, T();
|
|
1694
1697
|
};
|
|
1695
|
-
function X(
|
|
1696
|
-
switch (
|
|
1698
|
+
function X(x, f, p, D, g) {
|
|
1699
|
+
switch (x) {
|
|
1697
1700
|
case Y.Link:
|
|
1698
|
-
n.push({ name:
|
|
1701
|
+
n.push({ name: p, params: { workflowId: g } });
|
|
1699
1702
|
break;
|
|
1700
1703
|
default:
|
|
1701
|
-
console.warn("Unknown action type:",
|
|
1704
|
+
console.warn("Unknown action type:", x);
|
|
1702
1705
|
}
|
|
1703
1706
|
}
|
|
1704
|
-
function
|
|
1705
|
-
switch (
|
|
1707
|
+
function ue(x, f, p) {
|
|
1708
|
+
switch (x) {
|
|
1706
1709
|
case Y.Link:
|
|
1707
|
-
n.push({ name:
|
|
1710
|
+
n.push({ name: p });
|
|
1708
1711
|
break;
|
|
1709
1712
|
default:
|
|
1710
|
-
console.warn("Unknown action type:",
|
|
1713
|
+
console.warn("Unknown action type:", x);
|
|
1711
1714
|
}
|
|
1712
1715
|
}
|
|
1713
|
-
function
|
|
1716
|
+
function Q() {
|
|
1714
1717
|
return t()?.userInfo?.email_address ?? "";
|
|
1715
1718
|
}
|
|
1716
|
-
function
|
|
1717
|
-
return
|
|
1719
|
+
function w(x, f) {
|
|
1720
|
+
return x.replace(/{currentUserEmail}/g, f);
|
|
1718
1721
|
}
|
|
1719
|
-
function N(
|
|
1720
|
-
const
|
|
1721
|
-
r.filters =
|
|
1722
|
-
...
|
|
1723
|
-
value:
|
|
1722
|
+
function N(x) {
|
|
1723
|
+
const f = l.value?.tabs?.find((p) => p.key === x)?.filters;
|
|
1724
|
+
r.filters = f?.map((p) => ({
|
|
1725
|
+
...p,
|
|
1726
|
+
value: w(p.value, Q())
|
|
1724
1727
|
})) || [], T();
|
|
1725
1728
|
}
|
|
1726
|
-
const m =
|
|
1727
|
-
function
|
|
1728
|
-
if (!
|
|
1729
|
-
|
|
1729
|
+
const m = b({}), k = b([]);
|
|
1730
|
+
function $(x) {
|
|
1731
|
+
if (!x) return [];
|
|
1732
|
+
k.value = Object.entries(x).filter(([, f]) => f.isFiltered).map(([f, p]) => ({ fieldKey: f, fieldConfig: p }));
|
|
1730
1733
|
}
|
|
1731
|
-
const
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
}), m.value =
|
|
1736
|
-
},
|
|
1734
|
+
const F = () => {
|
|
1735
|
+
const x = {};
|
|
1736
|
+
k.value.forEach(({ fieldKey: f, fieldConfig: p }) => {
|
|
1737
|
+
x[f] = {}, x[f].value = p.modelValue, x[f].operator = p.operator;
|
|
1738
|
+
}), m.value = x;
|
|
1739
|
+
}, K = () => {
|
|
1737
1740
|
r.current = 1, T();
|
|
1738
|
-
},
|
|
1739
|
-
l.value &&
|
|
1741
|
+
}, ee = () => {
|
|
1742
|
+
l.value && F(), K();
|
|
1740
1743
|
};
|
|
1741
|
-
function
|
|
1742
|
-
return !(
|
|
1744
|
+
function Ve(x, f) {
|
|
1745
|
+
return !(x.location !== "InTable" || x.title === "Update" && (f.status === 100 || f.status === -1));
|
|
1743
1746
|
}
|
|
1744
|
-
return (
|
|
1745
|
-
const
|
|
1746
|
-
return u(),
|
|
1747
|
-
|
|
1747
|
+
return (x, f) => {
|
|
1748
|
+
const p = S("a-col"), D = S("a-button"), g = S("a-space"), H = S("a-row"), A = S("a-card"), re = S("a-tab-pane"), te = S("a-tabs"), ne = S("a-table");
|
|
1749
|
+
return u(), C("div", to, [
|
|
1750
|
+
P(Se, {
|
|
1748
1751
|
title: l.value?.banner.title ?? "",
|
|
1749
1752
|
subTitle: l.value?.banner.subTitle ?? "",
|
|
1750
|
-
email:
|
|
1753
|
+
email: Q()
|
|
1751
1754
|
}, null, 8, ["title", "subTitle", "email"]),
|
|
1752
|
-
|
|
1753
|
-
default:
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
(u(!0),
|
|
1758
|
-
key:
|
|
1755
|
+
P(A, null, {
|
|
1756
|
+
default: _(() => [
|
|
1757
|
+
h("div", no, [
|
|
1758
|
+
f[0] || (f[0] = h("h3", null, "Search Conditions", -1)),
|
|
1759
|
+
h("div", null, [
|
|
1760
|
+
(u(!0), C(M, null, B(v.value, (L) => (u(), C(M, {
|
|
1761
|
+
key: L.title
|
|
1759
1762
|
}, [
|
|
1760
|
-
|
|
1763
|
+
L.location === "InOperation" ? (u(), U(ve, {
|
|
1761
1764
|
key: 0,
|
|
1762
|
-
config:
|
|
1763
|
-
onClick:
|
|
1764
|
-
}, null, 8, ["config"])) :
|
|
1765
|
+
config: L,
|
|
1766
|
+
onClick: ue
|
|
1767
|
+
}, null, 8, ["config"])) : Z("", !0)
|
|
1765
1768
|
], 64))), 128))
|
|
1766
1769
|
])
|
|
1767
1770
|
]),
|
|
1768
|
-
|
|
1771
|
+
P(H, {
|
|
1769
1772
|
gutter: [24, 20],
|
|
1770
1773
|
class: "search-row"
|
|
1771
1774
|
}, {
|
|
1772
|
-
default:
|
|
1773
|
-
(u(!0),
|
|
1774
|
-
key:
|
|
1775
|
+
default: _(() => [
|
|
1776
|
+
(u(!0), C(M, null, B(k.value, (L) => (u(), U(p, {
|
|
1777
|
+
key: L.fieldKey,
|
|
1775
1778
|
span: 6,
|
|
1776
1779
|
class: "search-col"
|
|
1777
1780
|
}, {
|
|
1778
|
-
default:
|
|
1779
|
-
|
|
1780
|
-
name:
|
|
1781
|
-
config:
|
|
1782
|
-
modelValue: m.value[
|
|
1783
|
-
"onUpdate:modelValue": (
|
|
1781
|
+
default: _(() => [
|
|
1782
|
+
P(He, {
|
|
1783
|
+
name: L.fieldKey,
|
|
1784
|
+
config: L.fieldConfig,
|
|
1785
|
+
modelValue: m.value[L.fieldKey].value,
|
|
1786
|
+
"onUpdate:modelValue": (oe) => m.value[L.fieldKey].value = oe,
|
|
1784
1787
|
class: "form-field"
|
|
1785
1788
|
}, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
|
|
1786
1789
|
]),
|
|
1787
1790
|
_: 2
|
|
1788
1791
|
}, 1024))), 128)),
|
|
1789
|
-
|
|
1792
|
+
P(p, {
|
|
1790
1793
|
span: 6,
|
|
1791
1794
|
class: "search-col"
|
|
1792
1795
|
}, {
|
|
1793
|
-
default:
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
default:
|
|
1797
|
-
|
|
1796
|
+
default: _(() => [
|
|
1797
|
+
h("div", oo, [
|
|
1798
|
+
P(g, { size: "medium" }, {
|
|
1799
|
+
default: _(() => [
|
|
1800
|
+
P(D, {
|
|
1798
1801
|
type: "primary",
|
|
1799
1802
|
size: "medium",
|
|
1800
|
-
onClick:
|
|
1803
|
+
onClick: K
|
|
1801
1804
|
}, {
|
|
1802
|
-
default:
|
|
1805
|
+
default: _(() => f[1] || (f[1] = [
|
|
1803
1806
|
O(" Search ", -1)
|
|
1804
1807
|
])),
|
|
1805
1808
|
_: 1,
|
|
1806
1809
|
__: [1]
|
|
1807
1810
|
}),
|
|
1808
|
-
|
|
1811
|
+
P(D, {
|
|
1809
1812
|
size: "medium",
|
|
1810
|
-
onClick:
|
|
1813
|
+
onClick: ee
|
|
1811
1814
|
}, {
|
|
1812
|
-
default:
|
|
1815
|
+
default: _(() => f[2] || (f[2] = [
|
|
1813
1816
|
O(" Reset ", -1)
|
|
1814
1817
|
])),
|
|
1815
1818
|
_: 1,
|
|
@@ -1828,21 +1831,21 @@ const Rn = Object.assign(Ue, {
|
|
|
1828
1831
|
]),
|
|
1829
1832
|
_: 1
|
|
1830
1833
|
}),
|
|
1831
|
-
|
|
1834
|
+
P(te, {
|
|
1832
1835
|
size: "large",
|
|
1833
1836
|
onTabClick: N
|
|
1834
1837
|
}, {
|
|
1835
|
-
default:
|
|
1836
|
-
(u(!0),
|
|
1837
|
-
key:
|
|
1838
|
-
title:
|
|
1838
|
+
default: _(() => [
|
|
1839
|
+
(u(!0), C(M, null, B(l.value?.tabs, (L) => (u(), U(re, {
|
|
1840
|
+
key: L.key,
|
|
1841
|
+
title: L.title
|
|
1839
1842
|
}, null, 8, ["title"]))), 128))
|
|
1840
1843
|
]),
|
|
1841
1844
|
_: 1
|
|
1842
1845
|
}),
|
|
1843
|
-
|
|
1844
|
-
columns:
|
|
1845
|
-
data:
|
|
1846
|
+
P(ne, {
|
|
1847
|
+
columns: d.value,
|
|
1848
|
+
data: y.value,
|
|
1846
1849
|
stripe: "",
|
|
1847
1850
|
border: "",
|
|
1848
1851
|
pagination: {
|
|
@@ -1858,20 +1861,20 @@ const Rn = Object.assign(Ue, {
|
|
|
1858
1861
|
size: "medium",
|
|
1859
1862
|
scroll: s.value,
|
|
1860
1863
|
onPageChange: J,
|
|
1861
|
-
onPageSizeChange:
|
|
1864
|
+
onPageSizeChange: se
|
|
1862
1865
|
}, {
|
|
1863
|
-
optional:
|
|
1864
|
-
|
|
1865
|
-
default:
|
|
1866
|
-
(u(!0),
|
|
1867
|
-
key:
|
|
1866
|
+
optional: _(({ record: L }) => [
|
|
1867
|
+
P(g, { size: "small" }, {
|
|
1868
|
+
default: _(() => [
|
|
1869
|
+
(u(!0), C(M, null, B(v.value, (oe) => (u(), C(M, {
|
|
1870
|
+
key: oe.title
|
|
1868
1871
|
}, [
|
|
1869
|
-
|
|
1872
|
+
Ve(oe, L) ? (u(), U(ve, {
|
|
1870
1873
|
key: 0,
|
|
1871
|
-
config:
|
|
1874
|
+
config: oe,
|
|
1872
1875
|
size: "small",
|
|
1873
|
-
onClick: (...
|
|
1874
|
-
}, null, 8, ["config", "onClick"])) :
|
|
1876
|
+
onClick: (...xe) => X(...xe, L.workflowId)
|
|
1877
|
+
}, null, 8, ["config", "onClick"])) : Z("", !0)
|
|
1875
1878
|
], 64))), 128))
|
|
1876
1879
|
]),
|
|
1877
1880
|
_: 2
|
|
@@ -1882,18 +1885,18 @@ const Rn = Object.assign(Ue, {
|
|
|
1882
1885
|
]);
|
|
1883
1886
|
};
|
|
1884
1887
|
}
|
|
1885
|
-
}),
|
|
1888
|
+
}), so = /* @__PURE__ */ me(ao, [["__scopeId", "data-v-02400871"]]), fo = {
|
|
1886
1889
|
install(e, t = {}) {
|
|
1887
|
-
t.config &&
|
|
1890
|
+
t.config && mt(t.config), t.router && e.provide(Qe, t.router), t.pinia && e.provide(Jt, t.pinia), t.useBpmStore && e.provide(et, t.useBpmStore), t.useSvrStore && e.provide(tt, t.useSvrStore), t.triggers && e.provide(Ze, t.triggers), t.customComps && e.provide(nt, t.customComps), e.component("CreateView", gn), e.component("UpdateView", xn), e.component("DetailView", eo), e.component("ListView", so);
|
|
1888
1891
|
}
|
|
1889
1892
|
};
|
|
1890
1893
|
export {
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1894
|
+
gn as CreateView,
|
|
1895
|
+
eo as DetailView,
|
|
1896
|
+
so as ListView,
|
|
1897
|
+
Jt as PiniaKey,
|
|
1898
|
+
Qe as RouterKey,
|
|
1899
|
+
xn as UpdateView,
|
|
1900
|
+
fo as default
|
|
1898
1901
|
};
|
|
1899
1902
|
//# sourceMappingURL=index.es.js.map
|