lyflowchart 1.0.154 → 1.0.157
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/{ApprovalEditorModal-BsHxlueJ.js → ApprovalEditorModal-Bvxrg96y.js} +1 -1
- package/dist/{Cell_click_approve-CzEatC97.js → Cell_click_approve-DMXnrtxc.js} +1 -1
- package/dist/{approval-DD00xYMY.js → approval-DfU1MtBL.js} +1 -1
- package/dist/{approvalPageConfig-DsoxsuXo.js → approvalPageConfig-BA2SXnnv.js} +2 -2
- package/dist/{columnTables-a7yfMH5Q.js → columnTables-DdOJYJq9.js} +201 -163
- package/dist/components/approval/components/TableSummary.vue.d.ts +20 -0
- package/dist/components/approval/components/columnDataList.vue.d.ts +25 -2
- package/dist/components/approval/components/columnTables.vue.d.ts +25 -2
- package/dist/components/approval/components/drawerDataList.vue.d.ts +25 -2
- package/dist/components/approval/components/drawerTablesList.vue.d.ts +25 -2
- package/dist/components/approval/components/modelTablesList.vue.d.ts +25 -2
- package/dist/components/approval/components/table.vue.d.ts +25 -2
- package/dist/components/approval/typing.d.ts +3 -1
- package/dist/{core-BY-t0ghx.js → core-o5mxWnrL.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{leftColumn-Dzw2Dk6g.js → leftColumn-CLixXPdW.js} +1 -1
- package/dist/lyflowchart.css +1 -1
- package/dist/{tableConfig-CMhKXmQF.js → tableConfig-0LuPJS0X.js} +10 -10
- package/dist/{tableModal-LuDGonFy.js → tableModal-CbEn3HNo.js} +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as e, b as t, o as n } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { O as r, _ as i, b as a, g as o, h as s, k as c, m as l, o as u, u as d, w as f, x as p, y as m } from "./utils-DRldFEoM.js";
|
|
3
|
-
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as T, onMounted as
|
|
4
|
-
import { message as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import
|
|
3
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as T, normalizeStyle as E, onMounted as D, onUnmounted as ee, openBlock as O, reactive as k, ref as A, renderList as j, resolveComponent as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, watch as I, withCtx as L } from "vue";
|
|
4
|
+
import { message as te } from "ant-design-vue";
|
|
5
|
+
import { cloneDeep as R, debounce as ne, isArray as re, isEqual as z } from "lodash";
|
|
6
|
+
import { useI18n as B } from "vue-i18n";
|
|
7
|
+
import V from "moment";
|
|
8
8
|
import ie from "mitt";
|
|
9
|
-
import { useResizeObserver as
|
|
10
|
-
import { defineStore as
|
|
9
|
+
import { useResizeObserver as H } from "@vueuse/core";
|
|
10
|
+
import { defineStore as U } from "pinia";
|
|
11
11
|
//#region src/components/approval/components/searchSummary.vue?vue&type=script&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var W = w({
|
|
13
13
|
name: "searchSummary",
|
|
14
14
|
props: {
|
|
15
15
|
searchConfig: {
|
|
@@ -27,7 +27,7 @@ var U = w({
|
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:searchConditions"],
|
|
29
29
|
setup(e, { emit: t }) {
|
|
30
|
-
let n = f(), { t: i } =
|
|
30
|
+
let n = f(), { t: i } = B(), a = (e, t, r) => {
|
|
31
31
|
let a = [], o;
|
|
32
32
|
if (t === "is_or_not_blank_or_null" || t === "is_or_not_null") return i(r === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
33
33
|
if (t === "_eq") {
|
|
@@ -49,9 +49,9 @@ var U = w({
|
|
|
49
49
|
if (r instanceof Array) {
|
|
50
50
|
let t = [];
|
|
51
51
|
r.forEach((n) => {
|
|
52
|
-
n ? t.push(
|
|
52
|
+
n ? t.push(V(n).format(e.dateFormat)) : t.push(n);
|
|
53
53
|
}), o = t.join(",");
|
|
54
|
-
} else o =
|
|
54
|
+
} else o = V(r).format(e.dateFormat);
|
|
55
55
|
return `${n[t]} ${o}`;
|
|
56
56
|
} else return `${n[t]} ${r}`;
|
|
57
57
|
};
|
|
@@ -82,29 +82,29 @@ var U = w({
|
|
|
82
82
|
};
|
|
83
83
|
},
|
|
84
84
|
components: {}
|
|
85
|
-
}),
|
|
86
|
-
function
|
|
87
|
-
let o =
|
|
88
|
-
return
|
|
85
|
+
}), G = { class: "search-summary" };
|
|
86
|
+
function K(e, t, n, r, i, a) {
|
|
87
|
+
let o = M("a-tag"), s = M("RedoOutlined"), c = M("a-button");
|
|
88
|
+
return O(), y("span", G, [(O(!0), y(h, null, j(e.dataSource, (t) => (O(), _(o, {
|
|
89
89
|
key: t.field_name,
|
|
90
90
|
color: "green",
|
|
91
91
|
closable: "",
|
|
92
92
|
onClose: (n) => e.handleClose(t.field_name)
|
|
93
93
|
}, {
|
|
94
|
-
default:
|
|
94
|
+
default: L(() => [S(P(t.summary), 1)]),
|
|
95
95
|
_: 2
|
|
96
96
|
}, 1032, ["onClose"]))), 128)), C(c, {
|
|
97
97
|
size: "small",
|
|
98
98
|
type: "text",
|
|
99
99
|
onClick: e.handleRefresh
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: L(() => [C(s)]),
|
|
102
102
|
_: 1
|
|
103
103
|
}, 8, ["onClick"])]);
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/components/approval/components/search.vue?vue&type=script&lang.ts
|
|
107
|
-
var
|
|
107
|
+
var q = w({
|
|
108
108
|
name: "Search",
|
|
109
109
|
props: {
|
|
110
110
|
searchConfig: {
|
|
@@ -122,7 +122,7 @@ var K = w({
|
|
|
122
122
|
},
|
|
123
123
|
emits: ["update:searchConditions"],
|
|
124
124
|
setup(e, { emit: t }) {
|
|
125
|
-
let n = f(), { t: i } =
|
|
125
|
+
let n = f(), { t: i } = B(), o = A(!0), s = A({}), u = A({}), d = A({}), p = A([{
|
|
126
126
|
value: "yes",
|
|
127
127
|
label: i("is_or_not_blank_or_null.yes")
|
|
128
128
|
}, {
|
|
@@ -152,7 +152,7 @@ var K = w({
|
|
|
152
152
|
});
|
|
153
153
|
}),
|
|
154
154
|
onChange: (n, i, a, o = void 0) => {
|
|
155
|
-
let s =
|
|
155
|
+
let s = R(e.searchConditions), u = e.searchConfig.find((e) => e.field_name === n), d, f, p = s.find((e) => e.field_name === n);
|
|
156
156
|
if (i === "value") if (f = p ? p.operator : u?.default_operator || "eq", o !== void 0) {
|
|
157
157
|
let e = l(a, u);
|
|
158
158
|
if (p) {
|
|
@@ -211,29 +211,29 @@ var K = w({
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
},
|
|
214
|
-
components: { searchSummary: /* @__PURE__ */ t(
|
|
215
|
-
}),
|
|
216
|
-
function
|
|
217
|
-
let o =
|
|
218
|
-
return
|
|
219
|
-
b("span",
|
|
214
|
+
components: { searchSummary: /* @__PURE__ */ t(W, [["render", K], ["__scopeId", "data-v-af740a0c"]]) }
|
|
215
|
+
}), J = { class: "search-switch" }, Y = { class: "expand-btn" }, X = { class: "btn-content" };
|
|
216
|
+
function Z(e, t, n, r, i, a) {
|
|
217
|
+
let o = M("a-button"), s = M("search-summary"), c = M("a-select-option"), l = M("a-select"), u = M("SmallTableSerarchField"), d = M("a-input-group"), f = M("a-form-item"), p = M("a-form");
|
|
218
|
+
return O(), y(h, null, [
|
|
219
|
+
b("span", J, [e.isShowForm ? (O(), _(o, {
|
|
220
220
|
key: 1,
|
|
221
221
|
type: "link",
|
|
222
222
|
size: "small",
|
|
223
223
|
onClick: t[1] ||= (t) => e.isShowForm = !1
|
|
224
224
|
}, {
|
|
225
|
-
default:
|
|
225
|
+
default: L(() => [S(P(e.$t("隐藏")), 1)]),
|
|
226
226
|
_: 1
|
|
227
|
-
})) : (
|
|
227
|
+
})) : (O(), _(o, {
|
|
228
228
|
key: 0,
|
|
229
229
|
type: "link",
|
|
230
230
|
size: "small",
|
|
231
231
|
onClick: t[0] ||= (t) => e.isShowForm = !0
|
|
232
232
|
}, {
|
|
233
|
-
default:
|
|
233
|
+
default: L(() => [b("span", Y, P(e.$t("展开")), 1)]),
|
|
234
234
|
_: 1
|
|
235
235
|
}))]),
|
|
236
|
-
e.isShowForm ? v("", !0) : (
|
|
236
|
+
e.isShowForm ? v("", !0) : (O(), _(s, {
|
|
237
237
|
key: 0,
|
|
238
238
|
"search-conditions": e.searchConditions,
|
|
239
239
|
"search-config": e.searchConfig,
|
|
@@ -245,31 +245,31 @@ function X(e, t, n, r, i, a) {
|
|
|
245
245
|
"event-bus",
|
|
246
246
|
"onUpdate:searchConditions"
|
|
247
247
|
])),
|
|
248
|
-
e.isShowForm ? (
|
|
249
|
-
default:
|
|
248
|
+
e.isShowForm ? (O(), y(h, { key: 1 }, [C(p, { layout: "inline" }, {
|
|
249
|
+
default: L(() => [(O(!0), y(h, null, j(e.dataSource, (n, r) => (O(), _(f, {
|
|
250
250
|
key: n.field_name,
|
|
251
251
|
label: n.label
|
|
252
252
|
}, {
|
|
253
|
-
default:
|
|
253
|
+
default: L(() => [C(d, {
|
|
254
254
|
compact: "",
|
|
255
255
|
size: "small"
|
|
256
256
|
}, {
|
|
257
|
-
default:
|
|
257
|
+
default: L(() => [n.operator_list.length > 0 ? (O(), _(l, {
|
|
258
258
|
key: 0,
|
|
259
259
|
dropdownMatchSelectWidth: !1,
|
|
260
260
|
value: n.operator,
|
|
261
261
|
onChange: (t) => e.onChange(n.field_name, "operator", t),
|
|
262
262
|
size: "small"
|
|
263
263
|
}, {
|
|
264
|
-
default:
|
|
264
|
+
default: L(() => [(O(!0), y(h, null, j(n.operator_list, (t) => (O(), _(c, {
|
|
265
265
|
value: t,
|
|
266
266
|
key: t
|
|
267
267
|
}, {
|
|
268
|
-
default:
|
|
268
|
+
default: L(() => [S(P(e.operator_type_map[t]), 1)]),
|
|
269
269
|
_: 2
|
|
270
270
|
}, 1032, ["value"]))), 128))]),
|
|
271
271
|
_: 2
|
|
272
|
-
}, 1032, ["value", "onChange"])) : v("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (
|
|
272
|
+
}, 1032, ["value", "onChange"])) : v("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (O(), _(u, {
|
|
273
273
|
key: 1,
|
|
274
274
|
is_show_label: !1,
|
|
275
275
|
label: n.field_name,
|
|
@@ -294,7 +294,7 @@ function X(e, t, n, r, i, a) {
|
|
|
294
294
|
"options",
|
|
295
295
|
"validateInfos",
|
|
296
296
|
"onUpdate:value"
|
|
297
|
-
])) : ["input"].includes(n.format) ? (
|
|
297
|
+
])) : ["input"].includes(n.format) ? (O(), y(h, { key: 2 }, [n.operator === "between" || n.operator === "notbetween" ? (O(), y(h, { key: 0 }, [n.type === "datepicker" ? (O(), _(u, {
|
|
298
298
|
key: 0,
|
|
299
299
|
is_show_label: !1,
|
|
300
300
|
label: n.field_name,
|
|
@@ -314,7 +314,7 @@ function X(e, t, n, r, i, a) {
|
|
|
314
314
|
"formModel",
|
|
315
315
|
"validateInfos",
|
|
316
316
|
"onUpdate:value"
|
|
317
|
-
])) : n.type === "monthpicker" ? (
|
|
317
|
+
])) : n.type === "monthpicker" ? (O(), _(u, {
|
|
318
318
|
key: 1,
|
|
319
319
|
is_show_label: !1,
|
|
320
320
|
label: n.field_name,
|
|
@@ -333,7 +333,7 @@ function X(e, t, n, r, i, a) {
|
|
|
333
333
|
"formModel",
|
|
334
334
|
"validateInfos",
|
|
335
335
|
"onUpdate:value"
|
|
336
|
-
])) : (
|
|
336
|
+
])) : (O(), y(h, { key: 2 }, [
|
|
337
337
|
C(u, {
|
|
338
338
|
is_show_label: !1,
|
|
339
339
|
label: n.field_name,
|
|
@@ -373,7 +373,7 @@ function X(e, t, n, r, i, a) {
|
|
|
373
373
|
"validateInfos",
|
|
374
374
|
"onUpdate:value"
|
|
375
375
|
])
|
|
376
|
-
], 64))], 64)) : n.operator === "_eq" ? (
|
|
376
|
+
], 64))], 64)) : n.operator === "_eq" ? (O(), _(u, {
|
|
377
377
|
key: 1,
|
|
378
378
|
is_show_label: !1,
|
|
379
379
|
label: n.field_name,
|
|
@@ -398,7 +398,7 @@ function X(e, t, n, r, i, a) {
|
|
|
398
398
|
"options",
|
|
399
399
|
"validateInfos",
|
|
400
400
|
"onUpdate:value"
|
|
401
|
-
])) : n.type === "datepicker" || n.type === "monthpicker" ? (
|
|
401
|
+
])) : n.type === "datepicker" || n.type === "monthpicker" ? (O(), _(u, {
|
|
402
402
|
key: 2,
|
|
403
403
|
is_show_label: !1,
|
|
404
404
|
label: n.field_name,
|
|
@@ -419,7 +419,7 @@ function X(e, t, n, r, i, a) {
|
|
|
419
419
|
"options",
|
|
420
420
|
"validateInfos",
|
|
421
421
|
"onUpdate:value"
|
|
422
|
-
])) : (
|
|
422
|
+
])) : (O(), _(u, {
|
|
423
423
|
key: 3,
|
|
424
424
|
is_show_label: !1,
|
|
425
425
|
label: n.field_name,
|
|
@@ -437,7 +437,7 @@ function X(e, t, n, r, i, a) {
|
|
|
437
437
|
"options",
|
|
438
438
|
"validateInfos",
|
|
439
439
|
"onUpdate:value"
|
|
440
|
-
]))], 64)) : ["choices", "remote"].includes(n.format) ? (
|
|
440
|
+
]))], 64)) : ["choices", "remote"].includes(n.format) ? (O(), y(h, { key: 3 }, [n.format === "choices" ? (O(), _(u, {
|
|
441
441
|
key: 0,
|
|
442
442
|
is_show_label: !1,
|
|
443
443
|
label: n.field_name,
|
|
@@ -455,7 +455,7 @@ function X(e, t, n, r, i, a) {
|
|
|
455
455
|
"options",
|
|
456
456
|
"validateInfos",
|
|
457
457
|
"onUpdate:value"
|
|
458
|
-
])) : n.format === "remote" ? (
|
|
458
|
+
])) : n.format === "remote" ? (O(), _(u, {
|
|
459
459
|
key: 1,
|
|
460
460
|
is_show_label: !1,
|
|
461
461
|
label: n.field_name,
|
|
@@ -482,17 +482,17 @@ function X(e, t, n, r, i, a) {
|
|
|
482
482
|
_: 2
|
|
483
483
|
}, 1032, ["label"]))), 128))]),
|
|
484
484
|
_: 1
|
|
485
|
-
}), b("div",
|
|
485
|
+
}), b("div", X, [C(o, {
|
|
486
486
|
size: "small",
|
|
487
487
|
type: "primary",
|
|
488
488
|
onClick: e.handleRefresh
|
|
489
489
|
}, {
|
|
490
|
-
default:
|
|
490
|
+
default: L(() => [...t[3] ||= [S(" 查询 ", -1)]]),
|
|
491
491
|
_: 1
|
|
492
492
|
}, 8, ["onClick"])])], 64)) : v("", !0)
|
|
493
493
|
], 64);
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]]), Q = "SET_SEARCH_CONDITIONS", oe = "SET_SELECTED_ROWKEYS", se = "SET_DATASOURCE", ce = "SET_FORM_MODEL", le = "SET_RAW", ue = "SET_CURRENT_HISTORY_ID", de = "SET_REQUST_HISTORY_ID", fe = "CLEAR_CONTEXT", pe = "SET_EDIT", me = "SET_CURRENT_FLOW_HISTORY_ID", he = "SET_REQUST_FLOW_HISTORY_ID", ge = "SET_GLOBAL_DATA", _e = U("approval_context", {
|
|
496
496
|
persist: !1,
|
|
497
497
|
state: () => ({ contexts: null }),
|
|
498
498
|
actions: {
|
|
@@ -518,55 +518,55 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
518
518
|
let r = this.initTable(e, t);
|
|
519
519
|
r.searchConditions = n;
|
|
520
520
|
},
|
|
521
|
-
[
|
|
521
|
+
[oe](e, t, n, r) {
|
|
522
522
|
let i = this.initTable(e, t);
|
|
523
523
|
i.selectedRowKeys = n, i.selectedRecord = r;
|
|
524
524
|
},
|
|
525
|
-
[
|
|
525
|
+
[se](e, t, n) {
|
|
526
526
|
let r = this.initTable(e, t);
|
|
527
527
|
r.datasource = n;
|
|
528
528
|
},
|
|
529
|
-
[
|
|
529
|
+
[ce](e, t) {
|
|
530
530
|
let n = this.init(e);
|
|
531
531
|
n.formModel = t;
|
|
532
532
|
},
|
|
533
|
-
[
|
|
533
|
+
[ge](e, t) {
|
|
534
534
|
let n = this.init(e);
|
|
535
535
|
n.globalData = t;
|
|
536
536
|
},
|
|
537
|
-
[
|
|
537
|
+
[le](e, t) {
|
|
538
538
|
this.init(e), this.contexts[e] = {
|
|
539
539
|
...t,
|
|
540
540
|
current_history_id: this.contexts[e].current_history_id,
|
|
541
541
|
current_flow_history_id: this.contexts[e].current_flow_history_id
|
|
542
542
|
};
|
|
543
543
|
},
|
|
544
|
-
[
|
|
544
|
+
[ue](e, t) {
|
|
545
545
|
this.init(e), this.contexts[e].current_history_id = t;
|
|
546
546
|
},
|
|
547
|
-
[
|
|
547
|
+
[de](e, t) {
|
|
548
548
|
this.init(e), this.contexts[e].request_history_id = t;
|
|
549
549
|
},
|
|
550
|
-
[
|
|
550
|
+
[me](e, t) {
|
|
551
551
|
this.init(e), this.contexts[e].current_flow_history_id = t;
|
|
552
552
|
},
|
|
553
|
-
[
|
|
553
|
+
[he](e, t) {
|
|
554
554
|
this.init(e), this.contexts[e].request_flow_history_id = t;
|
|
555
555
|
},
|
|
556
|
-
[
|
|
556
|
+
[pe](e, t, n) {
|
|
557
557
|
this.init(e), this.contexts[e].isEdit = t, this.contexts[e].editState = n;
|
|
558
558
|
},
|
|
559
|
-
[
|
|
559
|
+
[fe](e) {
|
|
560
560
|
delete this.contexts[e];
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
}),
|
|
563
|
+
}), ve = {
|
|
564
564
|
key: 1,
|
|
565
565
|
style: {
|
|
566
566
|
cursor: "pointer",
|
|
567
567
|
padding: "4px 16px"
|
|
568
568
|
}
|
|
569
|
-
},
|
|
569
|
+
}, ye = /* @__PURE__ */ t(/* @__PURE__ */ w({
|
|
570
570
|
name: "actionBar",
|
|
571
571
|
__name: "actionsBar",
|
|
572
572
|
props: {
|
|
@@ -576,8 +576,8 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
576
576
|
},
|
|
577
577
|
emits: ["click", "update:action_width"],
|
|
578
578
|
setup(t, { emit: n }) {
|
|
579
|
-
let r = t, i = n, a =
|
|
580
|
-
|
|
579
|
+
let r = t, i = n, a = A(null), o = A({}), s = A({}), c = g(() => r.actions.filter((e) => !e.is_dropdown));
|
|
580
|
+
H(a, (e) => {
|
|
581
581
|
i("update:action_width", e[0].contentRect.width);
|
|
582
582
|
});
|
|
583
583
|
let l = g(() => {
|
|
@@ -588,11 +588,11 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
588
588
|
}, t.push(e[n.group_name])), e[n.group_name].children.push(n));
|
|
589
589
|
return t;
|
|
590
590
|
}), d = () => {
|
|
591
|
-
let e =
|
|
591
|
+
let e = R(o.value), t = R(s.value);
|
|
592
592
|
for (let n of r.actions || []) e[n.action_code_id] = !0, t[n.action_code_id] = !1;
|
|
593
593
|
o.value = e, s.value = t;
|
|
594
|
-
}, f =
|
|
595
|
-
let n =
|
|
594
|
+
}, f = ne(async (t) => {
|
|
595
|
+
let n = R(o.value), i = R(s.value);
|
|
596
596
|
for (let a of r.actions || []) {
|
|
597
597
|
if (n[a.action_code_id] = !0, i[a.action_code_id] = !1, a.showCode?.enable && a.showCode?.code) try {
|
|
598
598
|
n[a.action_code_id] = await e(a.showCode?.code, {
|
|
@@ -613,7 +613,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
613
613
|
}
|
|
614
614
|
o.value = n, s.value = i;
|
|
615
615
|
}, 200);
|
|
616
|
-
|
|
616
|
+
I(() => [r.params, (r.actions || []).map((e) => ({
|
|
617
617
|
action_code_id: e.action_code_id,
|
|
618
618
|
action: e.action,
|
|
619
619
|
code: e.code,
|
|
@@ -636,13 +636,13 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
636
636
|
i("click", e);
|
|
637
637
|
};
|
|
638
638
|
return (e, n) => {
|
|
639
|
-
let r =
|
|
640
|
-
return t.actions ? (
|
|
639
|
+
let r = M("a-button"), i = M("debugCode"), d = M("a-menu-item"), f = M("a-menu"), m = M("DownOutlined"), g = M("a-dropdown");
|
|
640
|
+
return t.actions ? (O(), y("div", {
|
|
641
641
|
key: 0,
|
|
642
642
|
class: "actions",
|
|
643
643
|
ref_key: "rowActionTestRef",
|
|
644
644
|
ref: a
|
|
645
|
-
}, [(
|
|
645
|
+
}, [(O(!0), y(h, null, j(c.value, (e, t) => (O(), _(i, {
|
|
646
646
|
key: t,
|
|
647
647
|
action_code_id: e.action_code_id,
|
|
648
648
|
code: e.code,
|
|
@@ -653,10 +653,10 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
653
653
|
"onUpdate:showCode": (t) => e.showCode = t,
|
|
654
654
|
disableCode: e.disableCode,
|
|
655
655
|
"onUpdate:disableCode": (t) => e.disableCode = t,
|
|
656
|
-
options:
|
|
656
|
+
options: F(u),
|
|
657
657
|
show: o.value[e.action_code_id]
|
|
658
658
|
}, {
|
|
659
|
-
default:
|
|
659
|
+
default: L(() => [C(r, {
|
|
660
660
|
size: "small",
|
|
661
661
|
type: e.type,
|
|
662
662
|
danger: e.danger,
|
|
@@ -664,7 +664,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
664
664
|
onClick: (t) => p(e),
|
|
665
665
|
disabled: s.value[e.action_code_id]
|
|
666
666
|
}, {
|
|
667
|
-
default:
|
|
667
|
+
default: L(() => [S(P(e.label), 1)]),
|
|
668
668
|
_: 2
|
|
669
669
|
}, 1032, [
|
|
670
670
|
"type",
|
|
@@ -686,9 +686,9 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
686
686
|
"onUpdate:disableCode",
|
|
687
687
|
"options",
|
|
688
688
|
"show"
|
|
689
|
-
]))), 128)), (
|
|
690
|
-
overlay:
|
|
691
|
-
default:
|
|
689
|
+
]))), 128)), (O(!0), y(h, null, j(l.value, (e) => (O(), _(g, null, {
|
|
690
|
+
overlay: L(() => [C(f, null, {
|
|
691
|
+
default: L(() => [(O(!0), y(h, null, j(e.children, (e, t) => (O(), _(i, {
|
|
692
692
|
key: t,
|
|
693
693
|
action_code_id: e.action_code_id,
|
|
694
694
|
code: e.code,
|
|
@@ -699,14 +699,14 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
699
699
|
"onUpdate:showCode": (t) => e.showCode = t,
|
|
700
700
|
disableCode: e.disableCode,
|
|
701
701
|
"onUpdate:disableCode": (t) => e.disableCode = t,
|
|
702
|
-
options:
|
|
702
|
+
options: F(u),
|
|
703
703
|
show: o.value[e.action_code_id]
|
|
704
704
|
}, {
|
|
705
|
-
default:
|
|
705
|
+
default: L(() => [C(d, {
|
|
706
706
|
onClick: (t) => p(e),
|
|
707
707
|
disabled: s.value[e.action_code_id]
|
|
708
708
|
}, {
|
|
709
|
-
default:
|
|
709
|
+
default: L(() => [S(P(e.label), 1)]),
|
|
710
710
|
_: 2
|
|
711
711
|
}, 1032, ["onClick", "disabled"])]),
|
|
712
712
|
_: 2
|
|
@@ -725,18 +725,55 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
725
725
|
]))), 128))]),
|
|
726
726
|
_: 2
|
|
727
727
|
}, 1024)]),
|
|
728
|
-
default:
|
|
728
|
+
default: L(() => [e.name ? (O(), _(r, {
|
|
729
729
|
key: 0,
|
|
730
730
|
size: "small"
|
|
731
731
|
}, {
|
|
732
|
-
default:
|
|
732
|
+
default: L(() => [S(P(e.name) + " ", 1), C(m)]),
|
|
733
733
|
_: 2
|
|
734
|
-
}, 1024)) : (
|
|
734
|
+
}, 1024)) : (O(), y("div", ve, " · · · "))]),
|
|
735
735
|
_: 2
|
|
736
736
|
}, 1024))), 256))], 512)) : v("", !0);
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
|
-
}), [["__scopeId", "data-v-f6310668"]]),
|
|
739
|
+
}), [["__scopeId", "data-v-f6310668"]]), be = /* @__PURE__ */ w({
|
|
740
|
+
__name: "TableSummary",
|
|
741
|
+
props: {
|
|
742
|
+
item: {
|
|
743
|
+
type: Object,
|
|
744
|
+
required: !0
|
|
745
|
+
},
|
|
746
|
+
summaryParams: {
|
|
747
|
+
type: Object,
|
|
748
|
+
required: !0
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
setup(e) {
|
|
752
|
+
let t = e, n = g(() => {
|
|
753
|
+
let e = 0;
|
|
754
|
+
for (let n of t.summaryParams.pageData) {
|
|
755
|
+
let a = n[t.summaryParams.column.dataIndex];
|
|
756
|
+
a = i(a), (isNaN(a) || a == null) && (a = 0), e = r(e, a);
|
|
757
|
+
}
|
|
758
|
+
return e;
|
|
759
|
+
});
|
|
760
|
+
function r(e, t) {
|
|
761
|
+
let n = Math.max((e.toString().split(".")[1] || "").length, (t.toString().split(".")[1] || "").length);
|
|
762
|
+
return parseFloat((e + t).toFixed(n));
|
|
763
|
+
}
|
|
764
|
+
let i = (e) => (typeof e == "string" && (e = parseFloat(e)), e);
|
|
765
|
+
return (t, r) => e.item.cellSummaryComponent ? (O(), _(N("CellSummary_" + e.item.cellSummaryComponent), {
|
|
766
|
+
key: 0,
|
|
767
|
+
cmpObj: {
|
|
768
|
+
item: e.item,
|
|
769
|
+
total: n.value
|
|
770
|
+
}
|
|
771
|
+
}, null, 8, ["cmpObj"])) : (O(), y("span", {
|
|
772
|
+
key: 1,
|
|
773
|
+
style: E(e.item.total_color ? e.item.total_color(e.item) : null)
|
|
774
|
+
}, P(e.item.total_content ? e.item.total_content(e.item) : n.value), 5));
|
|
775
|
+
}
|
|
776
|
+
}), xe = 50, Se = w({
|
|
740
777
|
name: "ApprovalTable",
|
|
741
778
|
props: {
|
|
742
779
|
config: {
|
|
@@ -766,7 +803,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
766
803
|
},
|
|
767
804
|
emits: ["selection-change"],
|
|
768
805
|
setup(e, { emit: t }) {
|
|
769
|
-
let r =
|
|
806
|
+
let r = _e(), i = A([]), a = A([]), o = A(!1), l = ie(), u = A([]), f = null, m = A(null), h = A(null), _ = A(null), v = A(null), y = A(null), b = A(null), x = A(70), S = A({}), C = A([]), w = !1, T = !1, E = A([
|
|
770
807
|
"10",
|
|
771
808
|
"20",
|
|
772
809
|
"50",
|
|
@@ -779,19 +816,19 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
779
816
|
"50000",
|
|
780
817
|
"60000",
|
|
781
818
|
"70000"
|
|
782
|
-
]),
|
|
819
|
+
]), O = k({
|
|
783
820
|
current: 1,
|
|
784
|
-
pageSize:
|
|
821
|
+
pageSize: xe,
|
|
785
822
|
total: 0
|
|
786
823
|
});
|
|
787
|
-
|
|
824
|
+
H(m, (e) => {
|
|
788
825
|
h.value = e[0].contentRect.height;
|
|
789
|
-
}),
|
|
826
|
+
}), H(_, (e) => {
|
|
790
827
|
v.value = e[0].contentRect.height;
|
|
791
|
-
}),
|
|
828
|
+
}), H(y, (e) => {
|
|
792
829
|
b.value = e[0].contentRect.height;
|
|
793
830
|
});
|
|
794
|
-
let
|
|
831
|
+
let j = () => !1, M = (t) => {
|
|
795
832
|
if (!t) return [];
|
|
796
833
|
let n = s(e.modelType), i = r.contexts?.[e.modelType] || {}, a = {};
|
|
797
834
|
for (let t of e.approvalConfig?.columns || []) if (t.type === "form") {
|
|
@@ -818,7 +855,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
818
855
|
};
|
|
819
856
|
};
|
|
820
857
|
return (t.length > 0 && Array.isArray(t[0]) ? t : [t]).map((e) => (Array.isArray(e) ? e : [e]).map(o).filter((e) => c(e.value))).filter((e) => e.length > 0);
|
|
821
|
-
},
|
|
858
|
+
}, N = async () => {
|
|
822
859
|
if (!e.config.list_url) return;
|
|
823
860
|
let t = Symbol();
|
|
824
861
|
f = t;
|
|
@@ -826,9 +863,9 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
826
863
|
o.value = !0;
|
|
827
864
|
let a = [];
|
|
828
865
|
try {
|
|
829
|
-
a =
|
|
866
|
+
a = M(e.config.base_conditions);
|
|
830
867
|
} catch (e) {
|
|
831
|
-
console.error(e),
|
|
868
|
+
console.error(e), te.error(e instanceof Error ? e.message : String(e));
|
|
832
869
|
return;
|
|
833
870
|
}
|
|
834
871
|
let s = d(u.value), c = [];
|
|
@@ -843,28 +880,28 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
843
880
|
for (let e of C.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
|
|
844
881
|
let m = await n({
|
|
845
882
|
...e.config.query_params || {},
|
|
846
|
-
current:
|
|
847
|
-
pageSize:
|
|
883
|
+
current: O.current,
|
|
884
|
+
pageSize: O.pageSize,
|
|
848
885
|
conditions: c,
|
|
849
886
|
column_fields: l,
|
|
850
887
|
sort_fields: p
|
|
851
888
|
}, e.config.list_url);
|
|
852
889
|
if (f !== t) return;
|
|
853
|
-
i.value = m.data, e.modelType && r[
|
|
890
|
+
i.value = m.data, e.modelType && r[se](e.modelType, e.config.id, i.value), O.current = m.current, O.total = m.total;
|
|
854
891
|
} finally {
|
|
855
892
|
if (f !== t) return;
|
|
856
893
|
o.value = !1;
|
|
857
894
|
}
|
|
858
|
-
},
|
|
859
|
-
|
|
860
|
-
},
|
|
895
|
+
}, P = ne(N, 500), F = (e, t) => {
|
|
896
|
+
O.current == e && O.pageSize == t || (O.current = e || 1, O.pageSize = t || xe, N());
|
|
897
|
+
}, L = g(() => ({
|
|
861
898
|
type: e.rowSelectionType || e.config.rowSelectionType || "checkbox",
|
|
862
899
|
onChange: (t) => {
|
|
863
900
|
let n = i.value.filter((e) => t.includes(e.id));
|
|
864
|
-
e.modelType && r[
|
|
901
|
+
e.modelType && r[oe](e.modelType, e.config.id, t, n);
|
|
865
902
|
}
|
|
866
903
|
}));
|
|
867
|
-
|
|
904
|
+
I(a, (e) => {
|
|
868
905
|
t("selection-change", (e || []).length);
|
|
869
906
|
}, {
|
|
870
907
|
deep: !0,
|
|
@@ -873,7 +910,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
873
910
|
let B = g(() => {
|
|
874
911
|
let t = {};
|
|
875
912
|
for (let e of u.value) ["in", "eq"].includes(e.operator) && (t[e.field_name] = e.value);
|
|
876
|
-
let n = S.value || {}, r =
|
|
913
|
+
let n = S.value || {}, r = R(e.config.columns || []);
|
|
877
914
|
!r.some((e) => e.autoWidth) && r.length && (r[r.length - 1].autoWidth = !0);
|
|
878
915
|
let i = r.map((e) => e.autoWidth ? {
|
|
879
916
|
...e,
|
|
@@ -897,8 +934,8 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
897
934
|
resizable: !0,
|
|
898
935
|
fixed: "right"
|
|
899
936
|
}] : i;
|
|
900
|
-
}),
|
|
901
|
-
|
|
937
|
+
}), V = () => {
|
|
938
|
+
N();
|
|
902
939
|
}, U = async (t, n) => {
|
|
903
940
|
if (!t.action) {
|
|
904
941
|
console.error("未定义action");
|
|
@@ -943,52 +980,52 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
943
980
|
let e = h.value - v.value - b.value - 130;
|
|
944
981
|
return Z.value.length > 0 && (e -= 40), e;
|
|
945
982
|
}), J = async () => {
|
|
946
|
-
await
|
|
983
|
+
await N();
|
|
947
984
|
let t = r.contexts?.[e.modelType]?.tables?.[e.config.id]?.searchConditions;
|
|
948
985
|
t && (u.value = t);
|
|
949
986
|
}, Y = async () => {
|
|
950
987
|
J();
|
|
951
988
|
}, X = async () => {
|
|
952
|
-
await
|
|
989
|
+
await N();
|
|
953
990
|
}, Z = g(() => {
|
|
954
991
|
let e = [], t = 0;
|
|
955
992
|
for (let n of B.value) n.approve_summary && e.push({
|
|
956
993
|
index: t + 1,
|
|
957
|
-
cellSummaryComponent: n.
|
|
994
|
+
cellSummaryComponent: n.approve_cellSummaryComponent,
|
|
958
995
|
column: n
|
|
959
996
|
}), t++;
|
|
960
997
|
return e;
|
|
961
998
|
});
|
|
962
|
-
return
|
|
963
|
-
l.on("refresh",
|
|
999
|
+
return D(async () => {
|
|
1000
|
+
l.on("refresh", V), e.eventBus && (e.eventBus.on("reinit", Y), e.eventBus.on("reload_table", X), e.eventBus.on("cell_execute_row_action", G)), await J();
|
|
964
1001
|
let t = e.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
|
|
965
1002
|
t.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
|
|
966
1003
|
for (let e of t) S.value[e.dataIndex] = e.defaultSortOrder, C.value.push({
|
|
967
1004
|
key: e.dataIndex,
|
|
968
1005
|
order: e.defaultSortOrder
|
|
969
1006
|
});
|
|
970
|
-
}),
|
|
971
|
-
l.off("refresh",
|
|
972
|
-
}), e.modelType && (
|
|
973
|
-
|
|
974
|
-
}, { deep: !0 }),
|
|
975
|
-
!
|
|
976
|
-
}, { deep: !0 }),
|
|
977
|
-
!
|
|
1007
|
+
}), ee(() => {
|
|
1008
|
+
l.off("refresh", V), e.eventBus && (e.eventBus.off("reinit", Y), e.eventBus.off("reload_table", X), e.eventBus.off("cell_execute_row_action", G));
|
|
1009
|
+
}), e.modelType && (I(() => u.value, (t, n) => {
|
|
1010
|
+
z(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), P());
|
|
1011
|
+
}, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.globalData), (e, t) => {
|
|
1012
|
+
!z(e, t) && w && P();
|
|
1013
|
+
}, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.formModel), (e, t) => {
|
|
1014
|
+
!z(e, t) && T && P();
|
|
978
1015
|
}, { deep: !0 })), {
|
|
979
1016
|
dataSource: i,
|
|
980
1017
|
selectedRowKeys: a,
|
|
981
1018
|
loading: o,
|
|
982
|
-
state:
|
|
1019
|
+
state: O,
|
|
983
1020
|
handlePageChange: F,
|
|
984
1021
|
handleRowAction: U,
|
|
985
1022
|
callRowActionByTitle: W,
|
|
986
1023
|
pageSizeOptions: E,
|
|
987
1024
|
columns: B,
|
|
988
1025
|
searchConditions: u,
|
|
989
|
-
delayGetDate:
|
|
1026
|
+
delayGetDate: P,
|
|
990
1027
|
selfEventBus: l,
|
|
991
|
-
row_selection:
|
|
1028
|
+
row_selection: L,
|
|
992
1029
|
handleAction: K,
|
|
993
1030
|
searchRef: _,
|
|
994
1031
|
actionRef: y,
|
|
@@ -998,7 +1035,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
998
1035
|
rowActionWidth: x,
|
|
999
1036
|
context: r,
|
|
1000
1037
|
summaryColumns: Z,
|
|
1001
|
-
preserveRow:
|
|
1038
|
+
preserveRow: j,
|
|
1002
1039
|
handleChange: (e, t, n, r) => {
|
|
1003
1040
|
if (r.action !== "paginate") {
|
|
1004
1041
|
if (r.action === "filter") {
|
|
@@ -1014,7 +1051,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
1014
1051
|
class_name: "str"
|
|
1015
1052
|
};
|
|
1016
1053
|
}
|
|
1017
|
-
u.value = Object.values(e),
|
|
1054
|
+
u.value = Object.values(e), N();
|
|
1018
1055
|
} else if (r.action === "sort") {
|
|
1019
1056
|
let e = {}, t = [];
|
|
1020
1057
|
if (!re(n)) e[n.columnKey] = n.order, t.push({
|
|
@@ -1025,7 +1062,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
1025
1062
|
key: r.columnKey,
|
|
1026
1063
|
order: r.order
|
|
1027
1064
|
});
|
|
1028
|
-
S.value = e, C.value = t,
|
|
1065
|
+
S.value = e, C.value = t, N();
|
|
1029
1066
|
}
|
|
1030
1067
|
}
|
|
1031
1068
|
},
|
|
@@ -1034,26 +1071,27 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
|
|
|
1034
1071
|
};
|
|
1035
1072
|
},
|
|
1036
1073
|
components: {
|
|
1037
|
-
Search:
|
|
1038
|
-
actionsBar:
|
|
1074
|
+
Search: ae,
|
|
1075
|
+
actionsBar: ye,
|
|
1076
|
+
TableSummary: be
|
|
1039
1077
|
}
|
|
1040
|
-
}),
|
|
1078
|
+
}), Ce = {
|
|
1041
1079
|
class: "table-wraper",
|
|
1042
1080
|
ref: "tableWraperRef"
|
|
1043
|
-
},
|
|
1081
|
+
}, we = { ref: "searchRef" }, Te = {
|
|
1044
1082
|
ref: "actionRef",
|
|
1045
1083
|
class: "btn-wraper"
|
|
1046
|
-
},
|
|
1084
|
+
}, Ee = { style: {
|
|
1047
1085
|
position: "fixed",
|
|
1048
1086
|
width: "0",
|
|
1049
1087
|
height: "0",
|
|
1050
1088
|
display: "block",
|
|
1051
1089
|
overflow: "hidden"
|
|
1052
1090
|
} };
|
|
1053
|
-
function
|
|
1054
|
-
let o =
|
|
1055
|
-
return
|
|
1056
|
-
b("div",
|
|
1091
|
+
function De(e, t, n, r, i, a) {
|
|
1092
|
+
let o = M("Search"), s = M("actions-bar"), c = M("s-table-summary-cell"), l = M("TableSummary"), u = M("s-table-summary-row"), d = M("s-table");
|
|
1093
|
+
return O(), y("div", Ce, [
|
|
1094
|
+
b("div", we, [e.config.search_config ? (O(), _(o, {
|
|
1057
1095
|
key: 0,
|
|
1058
1096
|
searchConfig: e.config.search_config,
|
|
1059
1097
|
searchConditions: e.searchConditions,
|
|
@@ -1064,7 +1102,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
1064
1102
|
"searchConditions",
|
|
1065
1103
|
"event-bus"
|
|
1066
1104
|
])) : v("", !0)], 512),
|
|
1067
|
-
C(
|
|
1105
|
+
C(d, {
|
|
1068
1106
|
columns: e.columns,
|
|
1069
1107
|
selectedRowKeys: e.selectedRowKeys,
|
|
1070
1108
|
"onUpdate:selectedRowKeys": t[1] ||= (t) => e.selectedRowKeys = t,
|
|
@@ -1095,7 +1133,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
1095
1133
|
preserveRow: e.preserveRow,
|
|
1096
1134
|
onChange: e.handleChange
|
|
1097
1135
|
}, x({
|
|
1098
|
-
bodyCell:
|
|
1136
|
+
bodyCell: L(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (O(), y(h, { key: 0 }, [S(P(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)], 64)) : t.dataIndex == "_action" ? (O(), _(s, {
|
|
1099
1137
|
key: 1,
|
|
1100
1138
|
actions: e.config.row_actions,
|
|
1101
1139
|
onClick: (t) => e.handleRowAction(t, i),
|
|
@@ -1108,7 +1146,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
1108
1146
|
"actions",
|
|
1109
1147
|
"onClick",
|
|
1110
1148
|
"params"
|
|
1111
|
-
])) : t.cellComponent ? (
|
|
1149
|
+
])) : t.cellComponent ? (O(), _(N("Cell_" + t.cellComponent), {
|
|
1112
1150
|
key: 2,
|
|
1113
1151
|
cmpObj: {
|
|
1114
1152
|
column: t || {},
|
|
@@ -1121,25 +1159,25 @@ function Te(e, t, n, r, i, a) {
|
|
|
1121
1159
|
eventBus: e.eventBus,
|
|
1122
1160
|
call_cell_row_action: (t) => e.callRowActionByTitle(t, i)
|
|
1123
1161
|
}
|
|
1124
|
-
}, null, 8, ["cmpObj"])) : (
|
|
1162
|
+
}, null, 8, ["cmpObj"])) : (O(), y(h, { key: 3 }, [S(P(r), 1)], 64))]),
|
|
1125
1163
|
_: 2
|
|
1126
1164
|
}, [e.summaryColumns.length > 0 ? {
|
|
1127
1165
|
name: "summary",
|
|
1128
|
-
fn:
|
|
1129
|
-
default:
|
|
1130
|
-
default:
|
|
1166
|
+
fn: L(() => [C(u, null, {
|
|
1167
|
+
default: L(() => [C(c, { index: 0 }, {
|
|
1168
|
+
default: L(() => [...t[3] ||= [S("合计", -1)]]),
|
|
1131
1169
|
_: 1
|
|
1132
|
-
}), (
|
|
1133
|
-
key:
|
|
1134
|
-
index:
|
|
1170
|
+
}), (O(!0), y(h, null, j(e.summaryColumns, (t) => (O(), _(c, {
|
|
1171
|
+
key: t.index,
|
|
1172
|
+
index: t.index
|
|
1135
1173
|
}, {
|
|
1136
|
-
default:
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1174
|
+
default: L(() => [C(l, {
|
|
1175
|
+
item: t,
|
|
1176
|
+
summaryParams: {
|
|
1177
|
+
pageData: e.dataSource,
|
|
1178
|
+
column: t.column
|
|
1141
1179
|
}
|
|
1142
|
-
}, null, 8, ["
|
|
1180
|
+
}, null, 8, ["item", "summaryParams"])]),
|
|
1143
1181
|
_: 2
|
|
1144
1182
|
}, 1032, ["index"]))), 128))]),
|
|
1145
1183
|
_: 1
|
|
@@ -1156,7 +1194,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
1156
1194
|
"preserveRow",
|
|
1157
1195
|
"onChange"
|
|
1158
1196
|
]),
|
|
1159
|
-
b("div",
|
|
1197
|
+
b("div", Te, [e.hideAllButtons ? v("", !0) : (O(), _(s, {
|
|
1160
1198
|
key: 0,
|
|
1161
1199
|
actions: e.config.actions,
|
|
1162
1200
|
onClick: e.handleAction,
|
|
@@ -1169,14 +1207,14 @@ function Te(e, t, n, r, i, a) {
|
|
|
1169
1207
|
"onClick",
|
|
1170
1208
|
"params"
|
|
1171
1209
|
]))], 512),
|
|
1172
|
-
b("div",
|
|
1210
|
+
b("div", Ee, [C(s, {
|
|
1173
1211
|
actions: e.config.row_actions,
|
|
1174
1212
|
action_width: e.rowActionWidth,
|
|
1175
1213
|
"onUpdate:action_width": t[2] ||= (t) => e.rowActionWidth = t
|
|
1176
1214
|
}, null, 8, ["actions", "action_width"])])
|
|
1177
1215
|
], 512);
|
|
1178
1216
|
}
|
|
1179
|
-
var
|
|
1217
|
+
var $ = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-34282dc0"]]), Oe = w({
|
|
1180
1218
|
name: "ApprovalColumnTables",
|
|
1181
1219
|
props: {
|
|
1182
1220
|
columnConfig: {
|
|
@@ -1215,8 +1253,8 @@ var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]
|
|
|
1215
1253
|
},
|
|
1216
1254
|
emits: ["selected-counts-change"],
|
|
1217
1255
|
setup(e, { emit: t }) {
|
|
1218
|
-
let n =
|
|
1219
|
-
|
|
1256
|
+
let n = A([]);
|
|
1257
|
+
D(() => {
|
|
1220
1258
|
n.value = e.columnConfig.tables?.map((e, t) => t);
|
|
1221
1259
|
});
|
|
1222
1260
|
let r = g(() => {
|
|
@@ -1233,7 +1271,7 @@ var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]
|
|
|
1233
1271
|
e && (t[n.id] = e);
|
|
1234
1272
|
}
|
|
1235
1273
|
return t;
|
|
1236
|
-
}), c =
|
|
1274
|
+
}), c = k({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
|
|
1237
1275
|
return {
|
|
1238
1276
|
activeKey: n,
|
|
1239
1277
|
filterTables: r,
|
|
@@ -1247,17 +1285,17 @@ var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]
|
|
|
1247
1285
|
}
|
|
1248
1286
|
};
|
|
1249
1287
|
},
|
|
1250
|
-
components: { ApprovalTable:
|
|
1251
|
-
}),
|
|
1252
|
-
function
|
|
1253
|
-
let o =
|
|
1254
|
-
return
|
|
1288
|
+
components: { ApprovalTable: $ }
|
|
1289
|
+
}), ke = { class: "approval-column-tables" }, Ae = { class: "title" }, je = { class: "title-text" };
|
|
1290
|
+
function Me(e, t, n, r, i, a) {
|
|
1291
|
+
let o = M("ApprovalTable");
|
|
1292
|
+
return O(), y("div", ke, [(O(!0), y(h, null, j(e.filterTables, (t, n) => (O(), y("div", {
|
|
1255
1293
|
key: n,
|
|
1256
1294
|
class: "table-item"
|
|
1257
|
-
}, [b("div",
|
|
1295
|
+
}, [b("div", Ae, [b("span", je, P(t.title), 1), e.getSelectLimit(t.id) ? (O(), y("span", {
|
|
1258
1296
|
key: 0,
|
|
1259
1297
|
class: T(["select-limit", { "is-invalid": e.isSelectCountInvalid(t.id) }])
|
|
1260
|
-
}, " (" +
|
|
1298
|
+
}, " (" + P(e.getSelectLimitText(t.id)) + " · 已选 " + P(e.getSelectedCount(t.id)) + " 条) ", 3)) : v("", !0)]), C(o, {
|
|
1261
1299
|
config: t,
|
|
1262
1300
|
modelType: e.modelType,
|
|
1263
1301
|
eventBus: e.eventBus,
|
|
@@ -1275,6 +1313,6 @@ function je(e, t, n, r, i, a) {
|
|
|
1275
1313
|
"onSelectionChange"
|
|
1276
1314
|
])]))), 128))]);
|
|
1277
1315
|
}
|
|
1278
|
-
var
|
|
1316
|
+
var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-3e52fe46"]]);
|
|
1279
1317
|
//#endregion
|
|
1280
|
-
export {
|
|
1318
|
+
export { me as a, ce as c, he as d, de as f, fe as i, ge as l, $ as n, ue as o, _e as p, ye as r, pe as s, Ne as t, le as u };
|