@chase-shao/vue-component-lib 1.2.81 → 1.2.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +82 -80
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.title[data-v-4bc9e33b]{margin-bottom:.571428rem}.err-msg[data-v-4bc9e33b]{font-size:.857142rem;color:#fb4b2f;margin-top:.285714rem}.required[data-v-4bc9e33b]{color:#fb4b2f;font-size:1.285714rem}.top-bar[data-v-c0457235]{display:flex;align-items:flex-start;justify-content:space-between;padding:16px}.banner-info[data-v-c0457235]{display:flex;flex-direction:column;align-items:flex-start}.page-title[data-v-c0457235]{font-size:24px;font-weight:700;color:#1d2129;padding:12px 0 0}.page-subtitle[data-v-c0457235]{font-size:16px;color:#6b778c;margin-top:4px}.avatar-wrapper[data-v-c0457235]{display:flex;align-items:flex-start}.user-email[data-v-c0457235]{font-size:14px;color:#1d2129;padding:8px 12px}.page-container[data-v-c33c4a8c]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-c33c4a8c]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-c33c4a8c]{width:100%;margin:0 auto}.form-card[data-v-c33c4a8c]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-c33c4a8c]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-c33c4a8c]{padding:24px 16px;gap:20px}}.form-fields[data-v-c33c4a8c]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-c33c4a8c]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-c33c4a8c]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-c33c4a8c]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-c33c4a8c]{padding:16px}}.action-container[data-v-c33c4a8c]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-c33c4a8c]{display:flex;gap:12px;align-items:center}.action-button[data-v-c33c4a8c]{min-width:88px;height:36px}.action-button[data-v-c33c4a8c]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-c33c4a8c]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-c33c4a8c]{padding:16px}.form-fields-vertical[data-v-c33c4a8c]{padding:20px 16px}.form-fields[data-v-c33c4a8c]{padding:0}.action-container[data-v-c33c4a8c]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-c33c4a8c]{justify-content:center}}.page-container[data-v-a3a1735a]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-a3a1735a]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-a3a1735a]{width:100%;margin:0 auto}.form-card[data-v-a3a1735a]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-a3a1735a]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-a3a1735a]{padding:24px 16px;gap:20px}}.form-fields[data-v-a3a1735a]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-a3a1735a]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-a3a1735a]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-a3a1735a]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-a3a1735a]{padding:16px}}.action-container[data-v-a3a1735a]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-a3a1735a]{display:flex;gap:12px;align-items:center}.action-button[data-v-a3a1735a]{min-width:88px;height:36px}.action-button[data-v-a3a1735a]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-a3a1735a]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-a3a1735a]{padding:16px}.form-fields-vertical[data-v-a3a1735a]{padding:20px 16px}.form-fields[data-v-a3a1735a]{padding:0}.action-container[data-v-a3a1735a]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-a3a1735a]{justify-content:center}}.page-container[data-v-
|
|
1
|
+
.title[data-v-4bc9e33b]{margin-bottom:.571428rem}.err-msg[data-v-4bc9e33b]{font-size:.857142rem;color:#fb4b2f;margin-top:.285714rem}.required[data-v-4bc9e33b]{color:#fb4b2f;font-size:1.285714rem}.top-bar[data-v-c0457235]{display:flex;align-items:flex-start;justify-content:space-between;padding:16px}.banner-info[data-v-c0457235]{display:flex;flex-direction:column;align-items:flex-start}.page-title[data-v-c0457235]{font-size:24px;font-weight:700;color:#1d2129;padding:12px 0 0}.page-subtitle[data-v-c0457235]{font-size:16px;color:#6b778c;margin-top:4px}.avatar-wrapper[data-v-c0457235]{display:flex;align-items:flex-start}.user-email[data-v-c0457235]{font-size:14px;color:#1d2129;padding:8px 12px}.page-container[data-v-c33c4a8c]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-c33c4a8c]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-c33c4a8c]{width:100%;margin:0 auto}.form-card[data-v-c33c4a8c]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-c33c4a8c]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-c33c4a8c]{padding:24px 16px;gap:20px}}.form-fields[data-v-c33c4a8c]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-c33c4a8c]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-c33c4a8c]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-c33c4a8c]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-c33c4a8c]{padding:16px}}.action-container[data-v-c33c4a8c]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-c33c4a8c]{display:flex;gap:12px;align-items:center}.action-button[data-v-c33c4a8c]{min-width:88px;height:36px}.action-button[data-v-c33c4a8c]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-c33c4a8c]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-c33c4a8c]{padding:16px}.form-fields-vertical[data-v-c33c4a8c]{padding:20px 16px}.form-fields[data-v-c33c4a8c]{padding:0}.action-container[data-v-c33c4a8c]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-c33c4a8c]{justify-content:center}}.page-container[data-v-a3a1735a]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-a3a1735a]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-a3a1735a]{width:100%;margin:0 auto}.form-card[data-v-a3a1735a]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-a3a1735a]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-a3a1735a]{padding:24px 16px;gap:20px}}.form-fields[data-v-a3a1735a]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-a3a1735a]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-a3a1735a]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-a3a1735a]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-a3a1735a]{padding:16px}}.action-container[data-v-a3a1735a]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-a3a1735a]{display:flex;gap:12px;align-items:center}.action-button[data-v-a3a1735a]{min-width:88px;height:36px}.action-button[data-v-a3a1735a]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-a3a1735a]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-a3a1735a]{padding:16px}.form-fields-vertical[data-v-a3a1735a]{padding:20px 16px}.form-fields[data-v-a3a1735a]{padding:0}.action-container[data-v-a3a1735a]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-a3a1735a]{justify-content:center}}.page-container[data-v-056d007a]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-056d007a]{flex:1;padding:24px 32px;overflow-y:auto}.detail-container[data-v-056d007a]{width:100%;margin:0 auto}.detail-card[data-v-056d007a]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden;padding-top:20px}.form-fields-vertical[data-v-056d007a]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-056d007a]{padding:24px 16px;gap:20px}}.detail-fields[data-v-056d007a]{padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}@media (max-width: 768px){.detail-fields[data-v-056d007a]{grid-template-columns:1fr;padding:24px 16px;gap:20px}}.detail-field-wrapper .detail-field[data-v-056d007a]{width:100%}.detail-field-wrapper .detail-field .field-label[data-v-056d007a]{font-weight:500;color:#262626;margin-bottom:8px;font-size:14px;line-height:1.4}.detail-field-wrapper .detail-field .field-value[data-v-056d007a]{color:#595959;padding:8px 12px;background-color:#fafafa;border-radius:4px;min-height:40px;display:flex;align-items:center;font-size:14px;line-height:1.5;border:1px solid #f0f0f0;word-break:break-word}.detail-content[data-v-056d007a]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-056d007a]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-056d007a]{padding:16px}}.action-container[data-v-056d007a]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-056d007a]{display:flex;gap:12px;align-items:center}.action-button[data-v-056d007a]{min-width:88px;height:36px}.action-button[data-v-056d007a]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.detail-fields[data-v-056d007a]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-056d007a]{padding:16px}.detail-fields[data-v-056d007a]{padding:20px 16px}.action-container[data-v-056d007a]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-056d007a]{justify-content:center}}.list-container[data-v-639f4f42]{padding:16px}.list-container[data-v-639f4f42] .arco-table .arco-table-body{overflow-x:auto}.query-title[data-v-639f4f42]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.field-label[data-v-639f4f42]{font-weight:500;margin-bottom:8px}.form-buttons[data-v-639f4f42]{margin-top:24px}.page-container .page-title{font-size:1.285714rem}.action-row .action+.action{margin-inline-start:.571428rem}.arco-spin{min-height:200px}
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as m, getCurrentInstance as pe, defineComponent as z, mergeModels as ce, useModel as ye, resolveComponent as k, createBlock as B, openBlock as u, onMounted as ue, computed as X, withCtx as S, createElementBlock as V, Fragment as
|
|
1
|
+
import { ref as m, getCurrentInstance as pe, defineComponent as z, mergeModels as ce, useModel as ye, resolveComponent as k, createBlock as B, openBlock as u, onMounted as ue, computed as X, withCtx as S, createElementBlock as V, Fragment as $, renderList as G, createVNode as H, nextTick as ot, createTextVNode as re, useTemplateRef as He, createElementVNode as x, createCommentVNode as ae, toDisplayString as te, resolveDynamicComponent as Be, renderSlot as de, inject as me, reactive as Fe, normalizeStyle as at, normalizeClass as rt, onActivated as st } from "vue";
|
|
2
2
|
import it from "axios";
|
|
3
3
|
import { defineStore as lt } from "pinia";
|
|
4
4
|
import { Modal as ct } from "@arco-design/web-vue";
|
|
@@ -97,7 +97,7 @@ const Je = async () => {
|
|
|
97
97
|
e.token = void 0;
|
|
98
98
|
}, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, E = async () => {
|
|
101
101
|
const t = await Je(), n = Ye();
|
|
102
102
|
return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
|
|
103
103
|
}, Pe = {
|
|
@@ -218,11 +218,11 @@ function kt(t, n, a) {
|
|
|
218
218
|
}), e;
|
|
219
219
|
}
|
|
220
220
|
const Ke = async (t, n, a, e) => {
|
|
221
|
-
const l = await (await
|
|
221
|
+
const l = await (await E()).get(`/General/${n}/${t}/page`, { params: e });
|
|
222
222
|
return kt(l?.data, t, a);
|
|
223
|
-
}, Ct = async (t, n, a) => (await (await
|
|
223
|
+
}, Ct = async (t, n, a) => (await (await E()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
|
|
224
224
|
async function St(t, n) {
|
|
225
|
-
const e = await (await
|
|
225
|
+
const e = await (await E()).post(`/General/${t}/list`, n);
|
|
226
226
|
return {
|
|
227
227
|
data: e.data.data,
|
|
228
228
|
totalCount: e.data.totalCount
|
|
@@ -242,14 +242,14 @@ async function St(t, n) {
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
async function xt(t, n, a) {
|
|
245
|
-
return (await (await
|
|
245
|
+
return (await (await E()).post(a, n, {
|
|
246
246
|
params: {
|
|
247
247
|
className: t
|
|
248
248
|
}
|
|
249
249
|
})).data;
|
|
250
250
|
}
|
|
251
251
|
async function At(t, n, a, e) {
|
|
252
|
-
const o = await
|
|
252
|
+
const o = await E(), l = Le(e, n);
|
|
253
253
|
return (await o.put(l, a))?.data;
|
|
254
254
|
}
|
|
255
255
|
function Le(t, n) {
|
|
@@ -271,19 +271,19 @@ function Nt(t, n) {
|
|
|
271
271
|
return t.replace(/{ClassName}/g, encodeURIComponent(n));
|
|
272
272
|
}
|
|
273
273
|
async function Ut(t, n, a, e, o, l, s, c) {
|
|
274
|
-
const i = await
|
|
274
|
+
const i = await E();
|
|
275
275
|
let r = Le(l, n);
|
|
276
276
|
return r = Vt(r, a), r = Tt(r, e), r = It(r, s), r = Pt(r, c), r = Nt(r, t), (await i.put(r, o))?.data;
|
|
277
277
|
}
|
|
278
278
|
async function Dt(t, n) {
|
|
279
|
-
const o = (await (await
|
|
279
|
+
const o = (await (await E()).get(t, { params: { value: n } }))?.data;
|
|
280
280
|
return Object.entries(o).map(([l, s]) => ({
|
|
281
281
|
value: l,
|
|
282
282
|
label: s
|
|
283
283
|
}));
|
|
284
284
|
}
|
|
285
285
|
async function Ht(t, n) {
|
|
286
|
-
return (await (await
|
|
286
|
+
return (await (await E()).get(`/General/${t}/${n}/process`))?.data;
|
|
287
287
|
}
|
|
288
288
|
function Bt(t) {
|
|
289
289
|
return {
|
|
@@ -293,40 +293,40 @@ function Bt(t) {
|
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
async function Ft(t, n) {
|
|
296
|
-
return (await (await
|
|
296
|
+
return (await (await E()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
|
|
297
297
|
const { category: c } = s;
|
|
298
298
|
return l[c] || (l[c] = []), l[c].push(Bt(s)), l;
|
|
299
299
|
}, {});
|
|
300
300
|
}
|
|
301
301
|
async function Rt(t, n) {
|
|
302
|
-
return (await
|
|
302
|
+
return (await E()).post(`/General/${t}/${n}/delete/attachment`);
|
|
303
303
|
}
|
|
304
304
|
async function Lt() {
|
|
305
|
-
const n = await (await
|
|
305
|
+
const n = await (await E()).get("/Grading/dropdown/approvers");
|
|
306
306
|
return Object.entries(n?.data).map(([a, e]) => ({
|
|
307
307
|
label: a,
|
|
308
308
|
value: e
|
|
309
309
|
}));
|
|
310
310
|
}
|
|
311
311
|
async function jt(t, n) {
|
|
312
|
-
return await (await
|
|
312
|
+
return await (await E()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
|
|
313
313
|
}
|
|
314
314
|
async function Mt(t, n, a) {
|
|
315
|
-
return await (await
|
|
315
|
+
return await (await E()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
|
|
316
316
|
headers: { "Content-Type": "application/json;charset=UTF-8" }
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
async function Ot(t) {
|
|
320
|
-
return (await (await
|
|
320
|
+
return (await (await E()).get(`Grading/GetComments/${t}`))?.data;
|
|
321
321
|
}
|
|
322
322
|
async function $t(t) {
|
|
323
|
-
return (await (await
|
|
323
|
+
return (await (await E()).get(`Grading/GetAssociator/${t}`))?.data;
|
|
324
324
|
}
|
|
325
325
|
async function Et(t) {
|
|
326
|
-
return await (await
|
|
326
|
+
return await (await E()).delete(`Grading/DeleteAssociator/${t}`);
|
|
327
327
|
}
|
|
328
328
|
async function Kt(t, n = null) {
|
|
329
|
-
const e = await (await
|
|
329
|
+
const e = await (await E()).post(t, n, {
|
|
330
330
|
responseType: "blob"
|
|
331
331
|
});
|
|
332
332
|
mt(e?.data, "WorkflowData.xlsx");
|
|
@@ -501,7 +501,7 @@ function Zt(t, n, a, e, o, l) {
|
|
|
501
501
|
onChange: e.changeHandler
|
|
502
502
|
}, {
|
|
503
503
|
default: S(() => [
|
|
504
|
-
(u(!0), V(
|
|
504
|
+
(u(!0), V($, null, G(e._options, (i) => (u(), B(s, {
|
|
505
505
|
key: i.value,
|
|
506
506
|
value: i.value,
|
|
507
507
|
label: i.label
|
|
@@ -525,7 +525,7 @@ const We = /* @__PURE__ */ Y(Qt, [["render", Zt], ["__file", "SelectList.vue"]])
|
|
|
525
525
|
if (e.config) {
|
|
526
526
|
const r = e.config.dataSourceProvider;
|
|
527
527
|
if (r) {
|
|
528
|
-
const g = await (await
|
|
528
|
+
const g = await (await E()).get(r);
|
|
529
529
|
l.value = g.data;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
@@ -609,15 +609,15 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
|
|
|
609
609
|
}
|
|
610
610
|
const p = m(null), C = m(null), J = (h) => {
|
|
611
611
|
p.value && (p.value(h), p.value = null, C.value = null);
|
|
612
|
-
},
|
|
612
|
+
}, Z = (h) => {
|
|
613
613
|
C.value && (C.value(h), p.value = null, C.value = null);
|
|
614
|
-
},
|
|
615
|
-
|
|
614
|
+
}, M = m([]), Q = (h) => {
|
|
615
|
+
M.value = h.filter((y) => y.status === "init");
|
|
616
616
|
};
|
|
617
617
|
n({
|
|
618
618
|
submit(h) {
|
|
619
619
|
return new Promise((y, T) => {
|
|
620
|
-
r.value ? (e.config.uploadURL && (d.value = h), p.value = y, C.value = T,
|
|
620
|
+
r.value ? (e.config.uploadURL && (d.value = h), p.value = y, C.value = T, M.value.length ? ot(() => {
|
|
621
621
|
r.value?.submit();
|
|
622
622
|
}) : y(h)) : y(h);
|
|
623
623
|
});
|
|
@@ -627,7 +627,7 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
|
|
|
627
627
|
return o("error", h.res ? "" : h.errorMessages), h.res;
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
const ne = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: d, replaceIdAndClassName: g, action: _, submit: b, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: J, handleUploadError:
|
|
630
|
+
const ne = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: d, replaceIdAndClassName: g, action: _, submit: b, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: J, handleUploadError: Z, readyFiles: M, onChange: Q };
|
|
631
631
|
return Object.defineProperty(ne, "__isScriptSetup", { enumerable: !1, value: !0 }), ne;
|
|
632
632
|
}
|
|
633
633
|
});
|
|
@@ -1101,7 +1101,7 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1101
1101
|
return T ? Object.entries(T).map(([w, U]) => ({
|
|
1102
1102
|
fieldKey: w,
|
|
1103
1103
|
...U
|
|
1104
|
-
})).filter((w) => w.widget && w.widget.widget !== "Hidden").filter((w) => !
|
|
1104
|
+
})).filter((w) => w.widget && w.widget.widget !== "Hidden").filter((w) => !Q.value.includes(w.fieldKey)) : [];
|
|
1105
1105
|
}
|
|
1106
1106
|
function b(T) {
|
|
1107
1107
|
return T ? Object.entries(T).filter(([w, U]) => U.dependent).reduce((w, [U, j]) => (w[U] = j.dependent, w), {}) : [];
|
|
@@ -1123,7 +1123,7 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1123
1123
|
function J() {
|
|
1124
1124
|
return e()?.userInfo?.email_address ?? "";
|
|
1125
1125
|
}
|
|
1126
|
-
async function
|
|
1126
|
+
async function Z(T, A, w, U, j) {
|
|
1127
1127
|
switch (A) {
|
|
1128
1128
|
case q.Submit:
|
|
1129
1129
|
let R = !0;
|
|
@@ -1143,7 +1143,7 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1143
1143
|
break;
|
|
1144
1144
|
case q.Link:
|
|
1145
1145
|
try {
|
|
1146
|
-
await l[T.eventName || ""]?.(p,
|
|
1146
|
+
await l[T.eventName || ""]?.(p, Q), o.push({ name: U, params: { className: i.className } });
|
|
1147
1147
|
} catch (W) {
|
|
1148
1148
|
console.error("Error in link action trigger:", W);
|
|
1149
1149
|
}
|
|
@@ -1152,18 +1152,18 @@ const Hn = /* @__PURE__ */ z({
|
|
|
1152
1152
|
console.warn("Unknown action type:", A);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
const
|
|
1155
|
+
const M = [
|
|
1156
1156
|
"jobScpope",
|
|
1157
1157
|
"currentWorkdayId",
|
|
1158
1158
|
"originalGrade",
|
|
1159
1159
|
"jobTitlePrevious",
|
|
1160
1160
|
"jobAttachmentPrevious",
|
|
1161
1161
|
"positionId"
|
|
1162
|
-
],
|
|
1162
|
+
], Q = m(M);
|
|
1163
1163
|
function ne(T, A) {
|
|
1164
|
-
l[T]?.(A,
|
|
1164
|
+
l[T]?.(A, Q), r.value && (d.value = _(r.value.fields));
|
|
1165
1165
|
}
|
|
1166
|
-
const h = X(() => Oe(d.value)), y = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler:
|
|
1166
|
+
const h = X(() => Oe(d.value)), y = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, newHiddenFields: M, hiddenFields: Q, changeHandler: ne, groupedFields: h, DataWidgets: je, ActionButton: Se, TopBar: Te };
|
|
1167
1167
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
1168
1168
|
}
|
|
1169
1169
|
}), Bn = { class: "page-container" }, Fn = { class: "page-body" }, Rn = { class: "form-card" }, Ln = { class: "form-fields-vertical" }, jn = { class: "form-fields" }, Mn = {
|
|
@@ -1186,14 +1186,14 @@ function Kn(t, n, a, e, o, l) {
|
|
|
1186
1186
|
default: S(() => [
|
|
1187
1187
|
x("div", Rn, [
|
|
1188
1188
|
x("div", Ln, [
|
|
1189
|
-
(u(!0), V(
|
|
1189
|
+
(u(!0), V($, null, G(e.groupedFields, (i) => (u(), B(s, {
|
|
1190
1190
|
key: i.name,
|
|
1191
1191
|
title: i.name,
|
|
1192
1192
|
style: { "margin-bottom": "24px" }
|
|
1193
1193
|
}, {
|
|
1194
1194
|
default: S(() => [
|
|
1195
1195
|
x("div", jn, [
|
|
1196
|
-
(u(!0), V(
|
|
1196
|
+
(u(!0), V($, null, G(i.fields, (r) => (u(), B(e.DataWidgets, {
|
|
1197
1197
|
key: r.fieldKey,
|
|
1198
1198
|
ref_for: !0,
|
|
1199
1199
|
ref: "dataWidgets",
|
|
@@ -1222,7 +1222,7 @@ function Kn(t, n, a, e, o, l) {
|
|
|
1222
1222
|
x("div", $n, [
|
|
1223
1223
|
de(t.$slots, "action", {}, void 0, !0),
|
|
1224
1224
|
x("div", En, [
|
|
1225
|
-
(u(!0), V(
|
|
1225
|
+
(u(!0), V($, null, G(e.reversedActions, (i) => (u(), B(e.ActionButton, {
|
|
1226
1226
|
key: i.Title,
|
|
1227
1227
|
loading: e.loading,
|
|
1228
1228
|
config: i,
|
|
@@ -1255,7 +1255,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1255
1255
|
return y ? Object.entries(y).map(([A, w]) => ({
|
|
1256
1256
|
fieldKey: A,
|
|
1257
1257
|
...w
|
|
1258
|
-
})).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !
|
|
1258
|
+
})).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !M.value.includes(A.fieldKey)) : [];
|
|
1259
1259
|
}
|
|
1260
1260
|
function b(y) {
|
|
1261
1261
|
return y ? Object.entries(y).filter(([A, w]) => w.dependent).reduce((A, [w, U]) => (A[w] = U.dependent, A), {}) : [];
|
|
@@ -1271,7 +1271,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1271
1271
|
return j ? j.isShow : !0;
|
|
1272
1272
|
});
|
|
1273
1273
|
const w = r.value.fields.requestType.modelValue;
|
|
1274
|
-
e.Test?.(w,
|
|
1274
|
+
e.Test?.(w, M), d.value = _(r.value.fields), g.value = b(r.value.fields);
|
|
1275
1275
|
for (const U in r.value.fields) {
|
|
1276
1276
|
if (r.value.fields[U].widget?.widget === "File") {
|
|
1277
1277
|
const j = d.value.find((R) => R.fieldKey === U);
|
|
@@ -1284,7 +1284,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1284
1284
|
function J() {
|
|
1285
1285
|
return o()?.userInfo?.email_address ?? "";
|
|
1286
1286
|
}
|
|
1287
|
-
async function
|
|
1287
|
+
async function Z(y, T, A, w, U) {
|
|
1288
1288
|
switch (T) {
|
|
1289
1289
|
case q.Submit:
|
|
1290
1290
|
let j = !0;
|
|
@@ -1304,7 +1304,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1304
1304
|
break;
|
|
1305
1305
|
case q.Link:
|
|
1306
1306
|
try {
|
|
1307
|
-
await e[y.eventName || ""]?.(p,
|
|
1307
|
+
await e[y.eventName || ""]?.(p, M), a.push({ name: w, params: { className: i.className } });
|
|
1308
1308
|
} catch {
|
|
1309
1309
|
}
|
|
1310
1310
|
break;
|
|
@@ -1312,11 +1312,11 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
|
|
|
1312
1312
|
console.warn("Unknown action type:", T);
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
const
|
|
1316
|
-
function
|
|
1317
|
-
e[y]?.(T,
|
|
1315
|
+
const M = m([]);
|
|
1316
|
+
function Q(y, T) {
|
|
1317
|
+
e[y]?.(T, M), r.value && (d.value = _(r.value.fields));
|
|
1318
1318
|
}
|
|
1319
|
-
const ne = X(() => Oe(d.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler:
|
|
1319
|
+
const ne = X(() => Oe(d.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, hiddenFields: M, changeHandler: Q, groupedFields: ne, DataWidgets: je, ActionButton: Se, TopBar: Te };
|
|
1320
1320
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
1321
1321
|
}
|
|
1322
1322
|
}), Gn = { class: "page-container" }, qn = { class: "page-body" }, Yn = { class: "form-card" }, Jn = { class: "form-fields-vertical" }, Xn = { class: "form-fields" }, Qn = {
|
|
@@ -1339,14 +1339,14 @@ function no(t, n, a, e, o, l) {
|
|
|
1339
1339
|
default: S(() => [
|
|
1340
1340
|
x("div", Yn, [
|
|
1341
1341
|
x("div", Jn, [
|
|
1342
|
-
(u(!0), V(
|
|
1342
|
+
(u(!0), V($, null, G(e.groupedFields, (i) => (u(), B(s, {
|
|
1343
1343
|
key: i.name,
|
|
1344
1344
|
title: i.name,
|
|
1345
1345
|
style: { "margin-bottom": "24px" }
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: S(() => [
|
|
1348
1348
|
x("div", Xn, [
|
|
1349
|
-
(u(!0), V(
|
|
1349
|
+
(u(!0), V($, null, G(i.fields, (r) => (u(), B(e.DataWidgets, {
|
|
1350
1350
|
key: r.fieldKey,
|
|
1351
1351
|
ref_for: !0,
|
|
1352
1352
|
ref: "dataWidgets",
|
|
@@ -1375,7 +1375,7 @@ function no(t, n, a, e, o, l) {
|
|
|
1375
1375
|
x("div", eo, [
|
|
1376
1376
|
de(t.$slots, "action", {}, void 0, !0),
|
|
1377
1377
|
x("div", to, [
|
|
1378
|
-
(u(!0), V(
|
|
1378
|
+
(u(!0), V($, null, G(e.reversedActions, (i) => (u(), B(e.ActionButton, {
|
|
1379
1379
|
key: i.Title,
|
|
1380
1380
|
loading: e.loading,
|
|
1381
1381
|
config: i,
|
|
@@ -1487,13 +1487,13 @@ const _o = Object.assign(Ue, {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
}), g = m([]);
|
|
1489
1489
|
function _(P) {
|
|
1490
|
-
return P ? Object.entries(P).map(([
|
|
1491
|
-
fieldKey:
|
|
1490
|
+
return P ? Object.entries(P).map(([O, I]) => (typeof I.modelValue == "boolean" ? I.fieldValue = I.modelValue ? "Yes" : "No" : I.fieldValue = I.modelValue, {
|
|
1491
|
+
fieldKey: O,
|
|
1492
1492
|
...I
|
|
1493
|
-
})).filter((
|
|
1493
|
+
})).filter((O) => O.widget && O.widget.widget !== "Hidden").filter((O) => !y.value.includes(O.fieldKey)) : [];
|
|
1494
1494
|
}
|
|
1495
1495
|
const b = X(() => Oe(g.value)), f = X(() => d.value?.actions ? [...d.value.actions].reverse() : []), p = m(!0), C = (P, F) => {
|
|
1496
|
-
const
|
|
1496
|
+
const O = P.findIndex((I) => I.isCurrent);
|
|
1497
1497
|
return P.map((I, oe) => {
|
|
1498
1498
|
const D = {
|
|
1499
1499
|
id: I.id,
|
|
@@ -1521,18 +1521,18 @@ const _o = Object.assign(Ue, {
|
|
|
1521
1521
|
const $e = ee.workflowHistoryApprovers[0];
|
|
1522
1522
|
D.status = 3, D.desc = $e?.reason ? `Rejected reason: ${$e.reason}` : "Rejected";
|
|
1523
1523
|
}
|
|
1524
|
-
else oe <
|
|
1524
|
+
else oe < O || O === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
|
|
1525
1525
|
ee && ee.status;
|
|
1526
1526
|
}
|
|
1527
1527
|
return D;
|
|
1528
1528
|
});
|
|
1529
|
-
}, J = m([]),
|
|
1529
|
+
}, J = m([]), Z = m(!1), M = m(!1), Q = m(!1), ne = m(!1);
|
|
1530
1530
|
async function h() {
|
|
1531
1531
|
const P = await r.getBtnList();
|
|
1532
1532
|
d.value.actions = d.value.actions?.filter((F) => {
|
|
1533
|
-
const
|
|
1534
|
-
return
|
|
1535
|
-
}),
|
|
1533
|
+
const O = P.find((I) => I.button === F.title);
|
|
1534
|
+
return O ? O.isShow : !0;
|
|
1535
|
+
}), Z.value = P.find((F) => F.button === "IsGlobal")?.isShow ?? !1, M.value = P.find((F) => F.button === "AssignButton")?.isShow ?? !1, Q.value = P.find((F) => F.button === "AssignList")?.isShow ?? !1, ne.value = P.find((F) => F.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1536
1536
|
}
|
|
1537
1537
|
const y = m([]);
|
|
1538
1538
|
async function T() {
|
|
@@ -1546,8 +1546,8 @@ const _o = Object.assign(Ue, {
|
|
|
1546
1546
|
const oe = g.value.find((D) => D.fieldKey === I);
|
|
1547
1547
|
oe && oe.widget && (oe.widget.files = P[I] ?? []);
|
|
1548
1548
|
}
|
|
1549
|
-
const
|
|
1550
|
-
J.value = C(
|
|
1549
|
+
const O = await r.getProcess();
|
|
1550
|
+
J.value = C(O, 0), p.value = !1;
|
|
1551
1551
|
}
|
|
1552
1552
|
ue(T);
|
|
1553
1553
|
async function A(P, F) {
|
|
@@ -1556,14 +1556,14 @@ const _o = Object.assign(Ue, {
|
|
|
1556
1556
|
function w() {
|
|
1557
1557
|
return a()?.userInfo?.email_address ?? "";
|
|
1558
1558
|
}
|
|
1559
|
-
async function U(P, F,
|
|
1559
|
+
async function U(P, F, O, I, oe) {
|
|
1560
1560
|
try {
|
|
1561
1561
|
switch (F) {
|
|
1562
1562
|
case q.Submit:
|
|
1563
|
-
const { reason: D, ifGlobal: ve } = await A(oe, { isGlobal:
|
|
1563
|
+
const { reason: D, ifGlobal: ve } = await A(oe, { isGlobal: Z.value });
|
|
1564
1564
|
p.value = !0;
|
|
1565
1565
|
const we = oe === "Approve" ? "100" : "-1";
|
|
1566
|
-
await Ut(i.className, i.workflowId, w(), D, [Number(i.workflowId)],
|
|
1566
|
+
await Ut(i.className, i.workflowId, w(), D, [Number(i.workflowId)], O, we, ve), p.value = !1;
|
|
1567
1567
|
const be = oe === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
|
|
1568
1568
|
c?.appContext.config.globalProperties.$notification.success(be), T();
|
|
1569
1569
|
break;
|
|
@@ -1578,6 +1578,8 @@ const _o = Object.assign(Ue, {
|
|
|
1578
1578
|
await o[P.eventName || ""]?.({
|
|
1579
1579
|
approvers: se,
|
|
1580
1580
|
associators: ie,
|
|
1581
|
+
isShowAssignSelect: M,
|
|
1582
|
+
isShowAssignList: Q,
|
|
1581
1583
|
assignCallback: _e,
|
|
1582
1584
|
deleteAssociatorCallback: N
|
|
1583
1585
|
});
|
|
@@ -1606,9 +1608,9 @@ const _o = Object.assign(Ue, {
|
|
|
1606
1608
|
}
|
|
1607
1609
|
}
|
|
1608
1610
|
async function v(P, F) {
|
|
1609
|
-
const { Modal:
|
|
1611
|
+
const { Modal: O } = await import("@arco-design/web-vue");
|
|
1610
1612
|
return new Promise((I, oe) => {
|
|
1611
|
-
|
|
1613
|
+
O.confirm({
|
|
1612
1614
|
title: P,
|
|
1613
1615
|
content: F,
|
|
1614
1616
|
okText: "OK",
|
|
@@ -1641,7 +1643,7 @@ const _o = Object.assign(Ue, {
|
|
|
1641
1643
|
return r;
|
|
1642
1644
|
}, set page(P) {
|
|
1643
1645
|
r = P;
|
|
1644
|
-
}, pageData: d, _fields: g, genField: _, groupedFields: b, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: J, isGlobal:
|
|
1646
|
+
}, pageData: d, _fields: g, genField: _, groupedFields: b, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: J, isGlobal: Z, isShowAssignSelect: M, isShowAssignList: Q, isShowCommentTextArea: ne, reloadButtonList: h, hiddenFields: y, load: T, triggerFn: A, getApproverEmail: w, clickHandler: U, comment: j, commentsHistory: R, selectedApprover: W, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: L, ActionButton: Se, get IconDownload() {
|
|
1645
1647
|
return _o;
|
|
1646
1648
|
}, TopBar: Te, get formatDate() {
|
|
1647
1649
|
return ke;
|
|
@@ -1677,20 +1679,20 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1677
1679
|
x("div", yo, [
|
|
1678
1680
|
(u(), B(Be(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
|
|
1679
1681
|
x("div", wo, [
|
|
1680
|
-
(u(!0), V(
|
|
1682
|
+
(u(!0), V($, null, G(e.groupedFields, (f) => (u(), B(i, {
|
|
1681
1683
|
key: f.name,
|
|
1682
1684
|
title: f.name,
|
|
1683
1685
|
style: { "margin-bottom": "24px" }
|
|
1684
1686
|
}, {
|
|
1685
1687
|
default: S(() => [
|
|
1686
1688
|
x("div", ko, [
|
|
1687
|
-
(u(!0), V(
|
|
1689
|
+
(u(!0), V($, null, G(f.fields, (p) => (u(), V("div", {
|
|
1688
1690
|
key: p.fieldKey,
|
|
1689
1691
|
class: "detail-field-wrapper"
|
|
1690
1692
|
}, [
|
|
1691
1693
|
x("div", Co, [
|
|
1692
1694
|
x("div", So, te(p.widget?.title), 1),
|
|
1693
|
-
p.widget?.widget === "File" ? (u(!0), V(
|
|
1695
|
+
p.widget?.widget === "File" ? (u(!0), V($, { key: 0 }, G(p.widget.files, (C) => (u(), V("div", {
|
|
1694
1696
|
class: "field-value",
|
|
1695
1697
|
key: C.id
|
|
1696
1698
|
}, [
|
|
@@ -1742,7 +1744,7 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1742
1744
|
re(" Comments History ", -1)
|
|
1743
1745
|
])),
|
|
1744
1746
|
default: S(() => [
|
|
1745
|
-
(u(!0), V(
|
|
1747
|
+
(u(!0), V($, null, G(e.commentsHistory, (f) => (u(), B(d, {
|
|
1746
1748
|
key: f.associator
|
|
1747
1749
|
}, {
|
|
1748
1750
|
default: S(() => [
|
|
@@ -1766,7 +1768,7 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1766
1768
|
x("div", Po, [
|
|
1767
1769
|
de(t.$slots, "action", {}, void 0, !0),
|
|
1768
1770
|
x("div", No, [
|
|
1769
|
-
(u(!0), V(
|
|
1771
|
+
(u(!0), V($, null, G(e.reversedActions, (f) => (u(), B(e.ActionButton, {
|
|
1770
1772
|
key: f.Title,
|
|
1771
1773
|
loading: e.loading,
|
|
1772
1774
|
config: f,
|
|
@@ -1778,7 +1780,7 @@ function Uo(t, n, a, e, o, l) {
|
|
|
1778
1780
|
])
|
|
1779
1781
|
]);
|
|
1780
1782
|
}
|
|
1781
|
-
const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-
|
|
1783
|
+
const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-056d007a"], ["__file", "DetailView.vue"]]), Ho = /* @__PURE__ */ z({
|
|
1782
1784
|
name: "ListView",
|
|
1783
1785
|
__name: "ListView",
|
|
1784
1786
|
props: {
|
|
@@ -1842,17 +1844,17 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-e7414f0a
|
|
|
1842
1844
|
p.value = !0;
|
|
1843
1845
|
const v = await St(s.className, r());
|
|
1844
1846
|
_.value = v.data, i.total = v.totalCount, p.value = !1;
|
|
1845
|
-
},
|
|
1847
|
+
}, Z = m(!1);
|
|
1846
1848
|
ue(async () => {
|
|
1847
1849
|
f.value = !0;
|
|
1848
1850
|
const v = new Ie().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
|
|
1849
|
-
c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), R(), A(c.value?.tabs?.[0]?.key || ""), C.value = c.value.actions, f.value = !1,
|
|
1851
|
+
c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), R(), A(c.value?.tabs?.[0]?.key || ""), C.value = c.value.actions, f.value = !1, Z.value = !0;
|
|
1850
1852
|
}), st(() => {
|
|
1851
|
-
|
|
1853
|
+
Z.value && J();
|
|
1852
1854
|
});
|
|
1853
|
-
const
|
|
1855
|
+
const M = (v) => {
|
|
1854
1856
|
i.current = v, J();
|
|
1855
|
-
},
|
|
1857
|
+
}, Q = (v) => {
|
|
1856
1858
|
i.pageSize = v, J();
|
|
1857
1859
|
};
|
|
1858
1860
|
function ne(v, N, L, le, P) {
|
|
@@ -1907,7 +1909,7 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-e7414f0a
|
|
|
1907
1909
|
function ie(v, N) {
|
|
1908
1910
|
return !(v.location !== "InTable" || v.title === "Update" && (N.status === 100 || N.status === -1));
|
|
1909
1911
|
}
|
|
1910
|
-
const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: b, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted:
|
|
1912
|
+
const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: b, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted: Z, pageChangeHandler: M, pageSizeChangeHandler: Q, clickHandler: ne, createHandler: h, getApproverEmail: y, replaceEmail: T, tabHandler: A, searchForm: w, searchableFields: U, mapSearchableFields: j, initSearchForm: R, handleSearch: W, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: je, TopBar: Te };
|
|
1911
1913
|
return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
|
|
1912
1914
|
}
|
|
1913
1915
|
}), Bo = { class: "list-container" }, Fo = { class: "query-title" };
|
|
@@ -1925,7 +1927,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
1925
1927
|
n[0] || (n[0] = x("h3", null, "Search Conditions", -1)),
|
|
1926
1928
|
H(s, { size: "medium" }, {
|
|
1927
1929
|
default: S(() => [
|
|
1928
|
-
(u(!0), V(
|
|
1930
|
+
(u(!0), V($, null, G(e.actions, (f) => (u(), V($, {
|
|
1929
1931
|
key: f.title
|
|
1930
1932
|
}, [
|
|
1931
1933
|
f.location === "InOperation" ? (u(), B(e.ActionButton, {
|
|
@@ -1940,7 +1942,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
1940
1942
|
]),
|
|
1941
1943
|
H(r, { gutter: [24, 20] }, {
|
|
1942
1944
|
default: S(() => [
|
|
1943
|
-
(u(!0), V(
|
|
1945
|
+
(u(!0), V($, null, G(e.searchableFields, (f) => (u(), B(c, {
|
|
1944
1946
|
key: f.fieldKey,
|
|
1945
1947
|
span: 6,
|
|
1946
1948
|
class: "search-col"
|
|
@@ -2001,7 +2003,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
2001
2003
|
onTabClick: e.tabHandler
|
|
2002
2004
|
}, {
|
|
2003
2005
|
default: S(() => [
|
|
2004
|
-
(u(!0), V(
|
|
2006
|
+
(u(!0), V($, null, G(e.pageData?.tabs, (f) => (u(), B(g, {
|
|
2005
2007
|
key: f.key,
|
|
2006
2008
|
title: f.title
|
|
2007
2009
|
}, null, 8, ["title"]))), 128))
|
|
@@ -2030,7 +2032,7 @@ function Ro(t, n, a, e, o, l) {
|
|
|
2030
2032
|
optional: S(({ record: f }) => [
|
|
2031
2033
|
H(s, { size: "small" }, {
|
|
2032
2034
|
default: S(() => [
|
|
2033
|
-
(u(!0), V(
|
|
2035
|
+
(u(!0), V($, null, G(e.actions, (p) => (u(), V($, {
|
|
2034
2036
|
key: p.title
|
|
2035
2037
|
}, [
|
|
2036
2038
|
e.judgeHiddenActions(p, f) ? (u(), B(e.ActionButton, {
|