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