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