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