lyflowchart 1.0.139 → 1.0.154
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/ActionsConfig-gWnpd8yJ.js +521 -0
- package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-BsHxlueJ.js} +1 -1
- package/dist/{CancelModal-BUi3ieI8.js → CancelModal-CgQeC543.js} +1 -1
- package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-CzEatC97.js} +34 -32
- package/dist/{JsonTags-BbWLqghI.js → JsonTags-DQdw3WxB.js} +1 -1
- package/dist/{MyProcess-FWGEwQcv.js → MyProcess-SGZ_-9C3.js} +17 -17
- package/dist/{approval-BaD4Bmw6.js → approval-DD00xYMY.js} +1 -1
- package/dist/{approval-BW2WjPxY.js → approval-ekd9_mwq.js} +35 -35
- package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-DsHMvx1n.js} +35 -35
- package/dist/{approvalHistoryViewModal-DgLpv2ot.js → approvalHistoryViewModal-UzVPPpNH.js} +9 -9
- package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-DsoxsuXo.js} +83 -83
- package/dist/{approveLeftConfig-BOU_UgHp.js → approveLeftConfig-Cskh4ezK.js} +16 -16
- package/dist/{codeHistoryViewModal-BfSjIbEU.js → codeHistoryViewModal-BIktV_o6.js} +8 -8
- package/dist/{columnTables-DLwtgcC7.js → columnTables-a7yfMH5Q.js} +88 -80
- package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
- package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
- package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +12 -0
- package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1222 -0
- package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
- package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +617 -0
- package/dist/components/approval/core.vue.d.ts +2 -0
- package/dist/components/approval/typing.d.ts +1 -1
- package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
- package/dist/constants.d.ts +26 -0
- package/dist/{core-Cv0Erg9E.js → core-BY-t0ghx.js} +393 -352
- package/dist/{dataStoreSettingHistoryViewModal-D_so-KLp.js → dataStoreSettingHistoryViewModal-DjSRPgQC.js} +9 -9
- package/dist/{debugCode-Cm9-WiUG.js → debugCode-CTU6KCej.js} +20 -20
- package/dist/{default-VdDMlY4e.js → default-CFd6cRxl.js} +28 -21
- package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
- package/dist/{flowHistoryViewModal-D8DJP7Te.js → flowHistoryViewModal-CaGj3LP4.js} +9 -9
- package/dist/index.js +36 -34
- package/dist/{init-plugin-fQTSQzui.js → init-plugin-CpYzRii0.js} +7 -3
- package/dist/init-plugin.d.ts +13 -0
- package/dist/{leftColumn-CsPjufue.js → leftColumn-Dzw2Dk6g.js} +3 -3
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-C7M6-eVo.js → middleColumn-CTOCcPnB.js} +12 -12
- package/dist/{recordActions-BgFlNsGU.js → recordActions-z7hvfqGR.js} +1 -1
- package/dist/{tableConfig-uLXue-BS.js → tableConfig-CMhKXmQF.js} +740 -585
- package/dist/{tableModal-BcYfVL02.js → tableModal-LuDGonFy.js} +2 -2
- package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-6IFZrwvr.js} +68 -68
- package/dist/{utils-CLet2gLV.js → utils-DRldFEoM.js} +14 -10
- package/dist/{viewer-Dv3kQsMf.js → viewer-BDGXjryM.js} +916 -917
- package/package.json +1 -1
- package/dist/ActionsConfig-BuvSvRbv.js +0 -395
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as e } from "./viewer-
|
|
2
|
-
import { t } from "./MyProcess-
|
|
3
|
-
import {
|
|
4
|
-
import { n as o, r as s, t as c } from "./approval-
|
|
5
|
-
import {
|
|
1
|
+
import { t as e } from "./viewer-BDGXjryM.js";
|
|
2
|
+
import { t } from "./MyProcess-SGZ_-9C3.js";
|
|
3
|
+
import { b as n, o as r, v as i, y as a } from "./init-plugin-CpYzRii0.js";
|
|
4
|
+
import { n as o, r as s, t as c } from "./approval-ekd9_mwq.js";
|
|
5
|
+
import { C as l, O as u, d, v as f } from "./utils-DRldFEoM.js";
|
|
6
6
|
import { n as p, t as m } from "./debugCode-dD1YnQSD.js";
|
|
7
|
-
import { t as h } from "./approveLeftConfig-
|
|
8
|
-
import { t as g } from "./JsonTags-
|
|
7
|
+
import { t as h } from "./approveLeftConfig-Cskh4ezK.js";
|
|
8
|
+
import { t as g } from "./JsonTags-DQdw3WxB.js";
|
|
9
9
|
import { Fragment as _, Transition as v, TransitionGroup as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineAsyncComponent as D, defineComponent as O, h as k, mergeModels as A, normalizeStyle as j, onMounted as M, onUnmounted as N, openBlock as P, reactive as F, ref as I, renderList as L, resolveComponent as R, resolveDynamicComponent as ee, toDisplayString as z, unref as B, useModel as V, watch as H, withCtx as U } from "vue";
|
|
10
10
|
import { ExperimentOutlined as te, ExportOutlined as ne, ImportOutlined as re, SaveOutlined as ie } from "@ant-design/icons-vue";
|
|
11
11
|
import { Modal as ae, Tooltip as oe, message as W } from "ant-design-vue";
|
|
@@ -39,7 +39,7 @@ function le(e, t, n, r, i, a) {
|
|
|
39
39
|
darkTheme: !0
|
|
40
40
|
}, null, 8, ["value", "onUpdate:value"]);
|
|
41
41
|
}
|
|
42
|
-
var ue = /* @__PURE__ */
|
|
42
|
+
var ue = /* @__PURE__ */ n(ce, [["render", le]]), q = O({
|
|
43
43
|
name: "ViewSettings",
|
|
44
44
|
components: {
|
|
45
45
|
MyProcess: t,
|
|
@@ -53,13 +53,13 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
53
53
|
},
|
|
54
54
|
emits: /* @__PURE__ */ A([], ["update:modelValue"]),
|
|
55
55
|
setup(e, { emit: t }) {
|
|
56
|
-
let n = V(e, "modelValue"),
|
|
57
|
-
|
|
56
|
+
let n = V(e, "modelValue"), i = I([]), a = async () => {
|
|
57
|
+
i.value = (await r({ is_active: !0 }, "/org/query_person_list")).data;
|
|
58
58
|
}, o = (e, t) => t.name.toLowerCase().indexOf(e.toLowerCase()) >= 0;
|
|
59
59
|
return M(() => {
|
|
60
60
|
a();
|
|
61
61
|
}), (e, t) => {
|
|
62
|
-
let
|
|
62
|
+
let r = R("a-select-option"), a = R("a-select");
|
|
63
63
|
return P(), x(a, {
|
|
64
64
|
value: n.value,
|
|
65
65
|
"onUpdate:value": t[0] ||= (e) => n.value = e,
|
|
@@ -70,7 +70,7 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
70
70
|
size: "small",
|
|
71
71
|
mode: "multiple"
|
|
72
72
|
}, {
|
|
73
|
-
default: U(() => [(P(!0), C(_, null, L(
|
|
73
|
+
default: U(() => [(P(!0), C(_, null, L(i.value, (e) => (P(), x(r, {
|
|
74
74
|
key: e.id,
|
|
75
75
|
value: e.id,
|
|
76
76
|
name: e.realname
|
|
@@ -92,13 +92,13 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
92
92
|
},
|
|
93
93
|
emits: /* @__PURE__ */ A([], ["update:modelValue"]),
|
|
94
94
|
setup(e, { emit: t }) {
|
|
95
|
-
let n = V(e, "modelValue"),
|
|
96
|
-
|
|
95
|
+
let n = V(e, "modelValue"), i = I([]), a = async () => {
|
|
96
|
+
i.value = (await r({ is_active: !0 }, "/lyapprove/query_approval_position_list")).data;
|
|
97
97
|
}, o = (e, t) => t.name.toLowerCase().indexOf(e.toLowerCase()) >= 0;
|
|
98
98
|
return M(() => {
|
|
99
99
|
a();
|
|
100
100
|
}), (e, t) => {
|
|
101
|
-
let
|
|
101
|
+
let r = R("a-select-option"), a = R("a-select");
|
|
102
102
|
return P(), x(a, {
|
|
103
103
|
value: n.value,
|
|
104
104
|
"onUpdate:value": t[0] ||= (e) => n.value = e,
|
|
@@ -108,7 +108,7 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
108
108
|
"filter-option": o,
|
|
109
109
|
size: "small"
|
|
110
110
|
}, {
|
|
111
|
-
default: U(() => [(P(!0), C(_, null, L(
|
|
111
|
+
default: U(() => [(P(!0), C(_, null, L(i.value, (e) => (P(), x(r, {
|
|
112
112
|
key: e.id,
|
|
113
113
|
value: e.id,
|
|
114
114
|
name: e.name
|
|
@@ -138,7 +138,7 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
138
138
|
},
|
|
139
139
|
emits: ["update:value", "update:flow_name"],
|
|
140
140
|
setup(e, { emit: t }) {
|
|
141
|
-
let
|
|
141
|
+
let n = i(), r = a(), o = I(window.innerHeight - 260), s = (n) => {
|
|
142
142
|
let r = e.value || {};
|
|
143
143
|
r.content = n, t("update:value", r);
|
|
144
144
|
}, c = (n) => {
|
|
@@ -149,12 +149,12 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
149
149
|
r.enable_flow = n, t("update:value", r);
|
|
150
150
|
}, u = async (e) => {
|
|
151
151
|
console.log("xxxx handleFetchUsers params:", e);
|
|
152
|
-
let t = await
|
|
152
|
+
let t = await n.post("/sys/query_person_detail_list", {
|
|
153
153
|
current: e.pageNum,
|
|
154
154
|
pageSize: e.pageSize,
|
|
155
155
|
name: e.userName,
|
|
156
|
-
org_id:
|
|
157
|
-
aim_org_id:
|
|
156
|
+
org_id: r.currentOrg.id,
|
|
157
|
+
aim_org_id: r.currentOrg.id,
|
|
158
158
|
is_active: !0,
|
|
159
159
|
is_pagination: !0
|
|
160
160
|
});
|
|
@@ -166,11 +166,11 @@ var ue = /* @__PURE__ */ a(ce, [["render", le]]), q = O({
|
|
|
166
166
|
o.value = window.innerHeight - 260;
|
|
167
167
|
}, 200), p = async (e) => {
|
|
168
168
|
console.log("xxxx handleFetchRoles params:", e);
|
|
169
|
-
let t = await
|
|
169
|
+
let t = await n.post("/lyapprove/query_approval_position_list", {
|
|
170
170
|
current: e.pageNum,
|
|
171
171
|
pageSize: e.pageSize,
|
|
172
|
-
org_id:
|
|
173
|
-
aim_org_id:
|
|
172
|
+
org_id: r.currentOrg.id,
|
|
173
|
+
aim_org_id: r.currentOrg.id
|
|
174
174
|
});
|
|
175
175
|
return {
|
|
176
176
|
data: t.data,
|
|
@@ -360,7 +360,7 @@ function fe(e, t, n, r, i, a) {
|
|
|
360
360
|
"global-options"
|
|
361
361
|
])], 4)) : S("", !0)]);
|
|
362
362
|
}
|
|
363
|
-
var pe = /* @__PURE__ */
|
|
363
|
+
var pe = /* @__PURE__ */ n(q, [["render", fe], ["__scopeId", "data-v-96383b9e"]]), me = O({
|
|
364
364
|
name: "FormField",
|
|
365
365
|
components: {},
|
|
366
366
|
props: {
|
|
@@ -401,7 +401,7 @@ function he(e, t, n, r, i, a) {
|
|
|
401
401
|
"onChange"
|
|
402
402
|
]);
|
|
403
403
|
}
|
|
404
|
-
var J = /* @__PURE__ */
|
|
404
|
+
var J = /* @__PURE__ */ n(me, [["render", he]]), Y = O({
|
|
405
405
|
name: "selectExcelType",
|
|
406
406
|
components: {},
|
|
407
407
|
props: {
|
|
@@ -421,12 +421,12 @@ var J = /* @__PURE__ */ a(me, [["render", he]]), Y = O({
|
|
|
421
421
|
"number_column",
|
|
422
422
|
"is_method_column",
|
|
423
423
|
"is_sid_column"
|
|
424
|
-
],
|
|
424
|
+
], i = I([]), a = I(e.value), o = async () => {
|
|
425
425
|
if (!e.excel_type_id) {
|
|
426
|
-
|
|
426
|
+
i.value = [], a.value = null, t("update:value", null);
|
|
427
427
|
return;
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
i.value = (await r({
|
|
430
430
|
is_pagination: !1,
|
|
431
431
|
column_fields: [
|
|
432
432
|
"column_index",
|
|
@@ -460,26 +460,26 @@ var J = /* @__PURE__ */ a(me, [["render", he]]), Y = O({
|
|
|
460
460
|
}
|
|
461
461
|
]]
|
|
462
462
|
}, "/costexcel/query_excel_column_config_list")).data, s(e.value?.column_index, !0);
|
|
463
|
-
}, s = (e,
|
|
463
|
+
}, s = (e, r = !1) => {
|
|
464
464
|
if (!e) {
|
|
465
|
-
a.value = null, t("update:value", null),
|
|
465
|
+
a.value = null, t("update:value", null), r || t("change", null);
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
|
-
let o =
|
|
468
|
+
let o = i.value.find((t) => t.column_index === e);
|
|
469
469
|
if (o.column_index !== a.value?.column_index && (a.value = o.column_index), !o) {
|
|
470
|
-
a.value = null, t("update:value", null),
|
|
470
|
+
a.value = null, t("update:value", null), r || t("change", null);
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
473
|
let s = {};
|
|
474
474
|
for (let e of n) s[e] = o[e];
|
|
475
|
-
t("update:value", s),
|
|
475
|
+
t("update:value", s), r || t("change", s);
|
|
476
476
|
};
|
|
477
477
|
return H(() => e.value, (e, t) => {
|
|
478
478
|
e?.column_index !== t?.column_index && s(e?.column_index, !0);
|
|
479
479
|
}), H(() => e.excel_type_id, (e, t) => {
|
|
480
480
|
e !== t && o();
|
|
481
481
|
}, { immediate: !0 }), {
|
|
482
|
-
excelColumnList:
|
|
482
|
+
excelColumnList: i,
|
|
483
483
|
selectValue: a,
|
|
484
484
|
getExcelColumnList: o,
|
|
485
485
|
handleChange: s
|
|
@@ -507,14 +507,14 @@ function X(e, t, n, r, i, a) {
|
|
|
507
507
|
_: 1
|
|
508
508
|
}, 8, ["value"]);
|
|
509
509
|
}
|
|
510
|
-
var Z = /* @__PURE__ */
|
|
510
|
+
var Z = /* @__PURE__ */ n(Y, [["render", X]]), ge = O({
|
|
511
511
|
name: "selectExcelType",
|
|
512
512
|
components: {},
|
|
513
513
|
props: { value: { type: Object } },
|
|
514
514
|
emits: ["update:value", "update:excelColumnList"],
|
|
515
515
|
setup(e, { emit: t }) {
|
|
516
|
-
let n = I([]),
|
|
517
|
-
t("update:excelColumnList", (await
|
|
516
|
+
let n = I([]), i = I(null), a = async (e) => {
|
|
517
|
+
t("update:excelColumnList", (await r({
|
|
518
518
|
is_pagination: !1,
|
|
519
519
|
sort_fields: ["column_index"],
|
|
520
520
|
conditions: [[
|
|
@@ -542,15 +542,15 @@ var Z = /* @__PURE__ */ a(Y, [["render", X]]), ge = O({
|
|
|
542
542
|
]]
|
|
543
543
|
}, "/costexcel/query_excel_column_config_list")).data);
|
|
544
544
|
}, o = async () => {
|
|
545
|
-
n.value = (await
|
|
546
|
-
}, s = (e,
|
|
545
|
+
n.value = (await r({ is_active: !0 }, "/costexcel/query_excel_type_list")).data, s(e.value?.id, !0);
|
|
546
|
+
}, s = (e, r = !1) => {
|
|
547
547
|
if (!e) {
|
|
548
|
-
|
|
548
|
+
i.value = null, t("update:value", null), r || t("update:excelColumnList", null);
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
551
551
|
let o = n.value.find((t) => t.id === e);
|
|
552
|
-
if (o.id !==
|
|
553
|
-
t("update:value", null),
|
|
552
|
+
if (o.id !== i.value && (i.value = o.id), !o) {
|
|
553
|
+
t("update:value", null), r || t("update:excelColumnList", null);
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
556
|
let s = {
|
|
@@ -558,7 +558,7 @@ var Z = /* @__PURE__ */ a(Y, [["render", X]]), ge = O({
|
|
|
558
558
|
name: o.name,
|
|
559
559
|
flag: o.flag
|
|
560
560
|
};
|
|
561
|
-
t("update:value", s),
|
|
561
|
+
t("update:value", s), r || a(s.id);
|
|
562
562
|
};
|
|
563
563
|
return H(() => e.value, (e, t) => {
|
|
564
564
|
e?.id !== t?.id && s(e?.id, !0);
|
|
@@ -566,7 +566,7 @@ var Z = /* @__PURE__ */ a(Y, [["render", X]]), ge = O({
|
|
|
566
566
|
o();
|
|
567
567
|
}), {
|
|
568
568
|
excelTypeList: n,
|
|
569
|
-
selectValue:
|
|
569
|
+
selectValue: i,
|
|
570
570
|
getExcelTypeList: o,
|
|
571
571
|
handleChange: s,
|
|
572
572
|
filterOption: (e, t) => t.name.toLowerCase().indexOf(e.toLowerCase()) >= 0
|
|
@@ -598,7 +598,7 @@ function Q(e, t, n, r, i, a) {
|
|
|
598
598
|
_: 1
|
|
599
599
|
}, 8, ["value", "filter-option"]);
|
|
600
600
|
}
|
|
601
|
-
var $ = /* @__PURE__ */
|
|
601
|
+
var $ = /* @__PURE__ */ n(ge, [["render", Q]]), _e = O({
|
|
602
602
|
name: "ValueInput",
|
|
603
603
|
components: {},
|
|
604
604
|
props: {
|
|
@@ -654,7 +654,7 @@ function ye(e, t, n, r, i, a) {
|
|
|
654
654
|
"onUpdate:value"
|
|
655
655
|
]);
|
|
656
656
|
}
|
|
657
|
-
var be = /* @__PURE__ */
|
|
657
|
+
var be = /* @__PURE__ */ n(_e, [["render", ye]]), xe = O({
|
|
658
658
|
name: "FormFieldMulType",
|
|
659
659
|
components: { ValueInput: be },
|
|
660
660
|
props: {
|
|
@@ -684,7 +684,7 @@ var be = /* @__PURE__ */ a(_e, [["render", ye]]), xe = O({
|
|
|
684
684
|
let n = b(() => e.value?.length ? e.value[0] : ""), r = (e) => {
|
|
685
685
|
e?.length > 0 ? t("update:value", e) : t("update:value", null);
|
|
686
686
|
}, i = (e) => {
|
|
687
|
-
|
|
687
|
+
u(e) ? t("update:value", []) : t("update:value", [e]);
|
|
688
688
|
};
|
|
689
689
|
H(() => e.source_type, (e) => {
|
|
690
690
|
e === "operation" && t("update:value", []);
|
|
@@ -778,7 +778,7 @@ function Se(e, t, n, r, i, a) {
|
|
|
778
778
|
"style"
|
|
779
779
|
])) : S("", !0);
|
|
780
780
|
}
|
|
781
|
-
var Ce = /* @__PURE__ */
|
|
781
|
+
var Ce = /* @__PURE__ */ n(xe, [["render", Se]]), we = O({
|
|
782
782
|
name: "ConditionConfig",
|
|
783
783
|
components: {
|
|
784
784
|
formFieldMulType: Ce,
|
|
@@ -1025,7 +1025,7 @@ function je(e, t, n, r, i, a) {
|
|
|
1025
1025
|
}, 8, ["onClick"])
|
|
1026
1026
|
]))]))), 128))])) : S("", !0)]);
|
|
1027
1027
|
}
|
|
1028
|
-
var Me = /* @__PURE__ */
|
|
1028
|
+
var Me = /* @__PURE__ */ n(we, [["render", je], ["__scopeId", "data-v-ee518ace"]]), Ne = O({
|
|
1029
1029
|
name: "dataSourceDetial",
|
|
1030
1030
|
components: {},
|
|
1031
1031
|
props: { value: {
|
|
@@ -1126,7 +1126,7 @@ var Fe = O({
|
|
|
1126
1126
|
selectExcelColumn: Z,
|
|
1127
1127
|
formFieldMulType: Ce,
|
|
1128
1128
|
ConditionConfig: Me,
|
|
1129
|
-
dataSourceDetial: /* @__PURE__ */
|
|
1129
|
+
dataSourceDetial: /* @__PURE__ */ n(Ne, [["render", Pe]])
|
|
1130
1130
|
},
|
|
1131
1131
|
props: {
|
|
1132
1132
|
rule: {
|
|
@@ -1430,7 +1430,7 @@ var Ge = O({
|
|
|
1430
1430
|
selectExcelType: $,
|
|
1431
1431
|
formField: J,
|
|
1432
1432
|
selectExcelColumn: Z,
|
|
1433
|
-
dataStoreConfigItem: /* @__PURE__ */
|
|
1433
|
+
dataStoreConfigItem: /* @__PURE__ */ n(Fe, [["render", We], ["__scopeId", "data-v-3c5c9436"]])
|
|
1434
1434
|
},
|
|
1435
1435
|
props: {
|
|
1436
1436
|
value: {
|
|
@@ -1448,7 +1448,7 @@ var Ge = O({
|
|
|
1448
1448
|
},
|
|
1449
1449
|
emits: ["update:value"],
|
|
1450
1450
|
setup(e, { emit: t }) {
|
|
1451
|
-
let n = I(!1),
|
|
1451
|
+
let n = I(!1), i = b(() => (e.value || []).filter((e) => {
|
|
1452
1452
|
if (!e.excel_type?.flag || !(e.fields || []).length) return !1;
|
|
1453
1453
|
let t = e.fields || [], n = t.some((e) => e.data_column?.is_sid_column), r = t.some((e) => e.data_column?.is_method_column);
|
|
1454
1454
|
return !(n && r);
|
|
@@ -1532,7 +1532,7 @@ var Ge = O({
|
|
|
1532
1532
|
}, g = (e, t, n = []) => ({
|
|
1533
1533
|
index: e,
|
|
1534
1534
|
title: [`#${e}${t?.column_name ? ` ${t.column_name}` : ""}`, ...n].join("\n")
|
|
1535
|
-
}), _ = async (e) => (await
|
|
1535
|
+
}), _ = async (e) => (await r({
|
|
1536
1536
|
is_pagination: !1,
|
|
1537
1537
|
sort_fields: ["column_index"],
|
|
1538
1538
|
conditions: [[
|
|
@@ -1719,7 +1719,7 @@ var Ge = O({
|
|
|
1719
1719
|
let n = G(t);
|
|
1720
1720
|
n.name = `${n.name} - 副本`, e.value.push(n);
|
|
1721
1721
|
},
|
|
1722
|
-
unmodifiableRuleNames:
|
|
1722
|
+
unmodifiableRuleNames: i,
|
|
1723
1723
|
hasFieldChange: x,
|
|
1724
1724
|
updateRules: T,
|
|
1725
1725
|
updating: o
|
|
@@ -1798,7 +1798,7 @@ function Je(e, t, n, r, i, a) {
|
|
|
1798
1798
|
})
|
|
1799
1799
|
]);
|
|
1800
1800
|
}
|
|
1801
|
-
var Ye = /* @__PURE__ */
|
|
1801
|
+
var Ye = /* @__PURE__ */ n(Ge, [["render", Je], ["__scopeId", "data-v-031ac33c"]]), Xe = O({
|
|
1802
1802
|
name: "dataStoreTest",
|
|
1803
1803
|
components: {},
|
|
1804
1804
|
props: { item: {
|
|
@@ -1858,15 +1858,15 @@ function tt(e, t, n, r, i, a) {
|
|
|
1858
1858
|
//#region src/components/approval/components/dataStoreConfig/dataStoreTest.vue?vue&type=script&lang.ts
|
|
1859
1859
|
var nt = O({
|
|
1860
1860
|
name: "dataStoreTest",
|
|
1861
|
-
components: { dataStoreTestsItem: /* @__PURE__ */
|
|
1861
|
+
components: { dataStoreTestsItem: /* @__PURE__ */ n(Xe, [["render", tt], ["__scopeId", "data-v-04b579b9"]]) },
|
|
1862
1862
|
props: { modelType: {
|
|
1863
1863
|
type: String,
|
|
1864
1864
|
default: null
|
|
1865
1865
|
} },
|
|
1866
1866
|
emits: ["update:value"],
|
|
1867
1867
|
setup(e, { emit: t }) {
|
|
1868
|
-
let n = I([]),
|
|
1869
|
-
n.value = (await
|
|
1868
|
+
let n = I([]), i = I(null), a = I(null), o = I(!1), s = async () => {
|
|
1869
|
+
n.value = (await r({
|
|
1870
1870
|
is_my_send: !0,
|
|
1871
1871
|
current: 1,
|
|
1872
1872
|
pageSize: 50,
|
|
@@ -1901,14 +1901,14 @@ var nt = O({
|
|
|
1901
1901
|
s();
|
|
1902
1902
|
}), {
|
|
1903
1903
|
approveRecordList: n,
|
|
1904
|
-
recordID:
|
|
1904
|
+
recordID: i,
|
|
1905
1905
|
dataStoreResult: a,
|
|
1906
1906
|
loading: o,
|
|
1907
1907
|
getTestData: async () => {
|
|
1908
|
-
if (
|
|
1908
|
+
if (i.value) {
|
|
1909
1909
|
o.value = !0;
|
|
1910
1910
|
try {
|
|
1911
|
-
a.value = await
|
|
1911
|
+
a.value = await r({ approve_record_id: i.value }, "/approve/test_approve_data_store");
|
|
1912
1912
|
} finally {
|
|
1913
1913
|
o.value = !1;
|
|
1914
1914
|
}
|
|
@@ -2005,7 +2005,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2005
2005
|
_: 1
|
|
2006
2006
|
}, 8, ["spinning"])]);
|
|
2007
2007
|
}
|
|
2008
|
-
var ft = /* @__PURE__ */
|
|
2008
|
+
var ft = /* @__PURE__ */ n(nt, [["render", dt], ["__scopeId", "data-v-29317781"]]), pt = /* @__PURE__ */ O({
|
|
2009
2009
|
__name: "baseConfig",
|
|
2010
2010
|
props: {
|
|
2011
2011
|
config: {},
|
|
@@ -2063,29 +2063,29 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2063
2063
|
});
|
|
2064
2064
|
};
|
|
2065
2065
|
}
|
|
2066
|
-
}), mt = /* @__PURE__ */
|
|
2066
|
+
}), mt = /* @__PURE__ */ n(/* @__PURE__ */ O({
|
|
2067
2067
|
__name: "index",
|
|
2068
2068
|
props: {
|
|
2069
2069
|
sideTreeData: {},
|
|
2070
2070
|
height: {}
|
|
2071
2071
|
},
|
|
2072
2072
|
setup(e) {
|
|
2073
|
-
let t = e,
|
|
2073
|
+
let t = e, n = I(!1), i = se(), u = a(), f = I("tables"), g = I([]), v = I(null), y = I(null), O = I([]), k = I(!1), A = I(!1), N = I(!1), F = p(), z = I(null), V = b(() => t.height + 45), ae = [
|
|
2074
2074
|
{
|
|
2075
2075
|
title: "左侧栏",
|
|
2076
2076
|
key: "tables",
|
|
2077
|
-
component: D(() => import("./leftColumn-
|
|
2077
|
+
component: D(() => import("./leftColumn-Dzw2Dk6g.js"))
|
|
2078
2078
|
},
|
|
2079
2079
|
{
|
|
2080
2080
|
title: "中间栏",
|
|
2081
2081
|
key: "form",
|
|
2082
|
-
component: D(() => import("./middleColumn-
|
|
2082
|
+
component: D(() => import("./middleColumn-CTOCcPnB.js"))
|
|
2083
2083
|
},
|
|
2084
2084
|
{
|
|
2085
2085
|
title: "右侧栏",
|
|
2086
2086
|
key: "data_list",
|
|
2087
2087
|
sectionType: "data_list",
|
|
2088
|
-
component: D(() => import("./tableConfig-
|
|
2088
|
+
component: D(() => import("./tableConfig-CMhKXmQF.js").then((e) => e.n))
|
|
2089
2089
|
}
|
|
2090
2090
|
], oe = b(() => {
|
|
2091
2091
|
let e = K("form");
|
|
@@ -2106,19 +2106,19 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2106
2106
|
q(e), g.value = e, fe(), me(), he();
|
|
2107
2107
|
}, fe = async () => {
|
|
2108
2108
|
if (z.value) {
|
|
2109
|
-
|
|
2109
|
+
n.value = !0;
|
|
2110
2110
|
try {
|
|
2111
2111
|
let { config: e } = await c(z.value.state);
|
|
2112
2112
|
v.value = e;
|
|
2113
2113
|
} finally {
|
|
2114
|
-
|
|
2114
|
+
n.value = !1;
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
2117
|
}, me = async () => {
|
|
2118
|
-
z.value && (
|
|
2118
|
+
z.value && (n.value = !0, y.value = await s(z.value.state), y.value.name || (y.value.name = z.value.name));
|
|
2119
2119
|
}, he = async () => {
|
|
2120
2120
|
if (!z.value) return;
|
|
2121
|
-
|
|
2121
|
+
n.value = !0;
|
|
2122
2122
|
let { config: e } = await o(z.value.state);
|
|
2123
2123
|
O.value = e;
|
|
2124
2124
|
}, J = (e, t, { clear_code: n = !1, clear_action_code_id: r = !1 }) => {
|
|
@@ -2206,13 +2206,13 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2206
2206
|
menu_flag: z.value.state,
|
|
2207
2207
|
content: Q(v.value, e, { clear_code: !0 })
|
|
2208
2208
|
};
|
|
2209
|
-
await
|
|
2209
|
+
await r({
|
|
2210
2210
|
menu_flag: z.value.state,
|
|
2211
2211
|
allCodes: e
|
|
2212
|
-
}, "/approve/set_action_code_for_menu"), await
|
|
2212
|
+
}, "/approve/set_action_code_for_menu"), await r(t, "/approve/set_page_setting"), O.value.sort((e, t) => (e.order || 0) - (t.order || 0)), await r({
|
|
2213
2213
|
menu_flag: z.value.state,
|
|
2214
|
-
content:
|
|
2215
|
-
}, "/approve/set_data_store_setting"), y.value && await
|
|
2214
|
+
content: l(G(O.value))
|
|
2215
|
+
}, "/approve/set_data_store_setting"), y.value && await r({
|
|
2216
2216
|
...y.value,
|
|
2217
2217
|
menu_flag: z.value.state
|
|
2218
2218
|
}, "/approve/set_flow_setting"), W.success("保存成功");
|
|
@@ -2230,7 +2230,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2230
2230
|
});
|
|
2231
2231
|
let e = {
|
|
2232
2232
|
dataSource: v.value,
|
|
2233
|
-
dataSorteConfig:
|
|
2233
|
+
dataSorteConfig: l(G(O.value))
|
|
2234
2234
|
}, t = JSON.stringify(e, null, 2), n = new Blob([t], { type: "application/json" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
2235
2235
|
i.href = r, i.download = z.value ? `${z.value.name}_config.json` : "config.json", document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r), W.success("导出成功");
|
|
2236
2236
|
}, ve = () => {
|
|
@@ -2247,7 +2247,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2247
2247
|
for (let t of n.dataSource.columns || []) e.push(t);
|
|
2248
2248
|
n.dataSource.columns = e, v.value = n.dataSource;
|
|
2249
2249
|
}
|
|
2250
|
-
n.dataSorteConfig && (O.value =
|
|
2250
|
+
n.dataSorteConfig && (O.value = l(n.dataSorteConfig)), await $();
|
|
2251
2251
|
} catch (e) {
|
|
2252
2252
|
console.error("Import failed", e), W.error("导入失败,请检查文件格式");
|
|
2253
2253
|
}
|
|
@@ -2265,13 +2265,13 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2265
2265
|
z.value = e;
|
|
2266
2266
|
};
|
|
2267
2267
|
return M(() => {
|
|
2268
|
-
N.value =
|
|
2268
|
+
N.value = u.CHECK_AUTH("approve/debug_code", "开启代码调试"), de(), i.on("saveConfig", $);
|
|
2269
2269
|
}), H(() => z.value, () => {
|
|
2270
2270
|
de();
|
|
2271
2271
|
}, { immediate: !0 }), (e, t) => {
|
|
2272
|
-
let
|
|
2272
|
+
let r = R("a-layout-sider"), a = R("a-switch"), o = R("a-form-item"), s = R("a-button"), c = R("a-button-group"), l = R("a-form"), u = R("a-tab-pane"), d = R("a-tabs"), p = R("a-spin"), m = R("a-layout-content"), g = R("a-layout"), b = R("a-modal");
|
|
2273
2273
|
return P(), C(_, null, [w("div", null, [E(g, { style: j({ height: V.value + "px" }) }, {
|
|
2274
|
-
default: U(() => [E(
|
|
2274
|
+
default: U(() => [E(r, {
|
|
2275
2275
|
class: "approve-config-left",
|
|
2276
2276
|
style: { width: "500px" },
|
|
2277
2277
|
width: 220
|
|
@@ -2279,7 +2279,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2279
2279
|
default: U(() => [E(h, { onChange: Ce })]),
|
|
2280
2280
|
_: 1
|
|
2281
2281
|
}), E(m, { class: "setting-container" }, {
|
|
2282
|
-
default: U(() => [E(p, { spinning:
|
|
2282
|
+
default: U(() => [E(p, { spinning: n.value }, {
|
|
2283
2283
|
default: U(() => [v.value ? (P(), x(d, {
|
|
2284
2284
|
key: 0,
|
|
2285
2285
|
activeKey: f.value,
|
|
@@ -2290,7 +2290,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2290
2290
|
key: 0,
|
|
2291
2291
|
label: "开启代码调试"
|
|
2292
2292
|
}, {
|
|
2293
|
-
default: U(() => [E(
|
|
2293
|
+
default: U(() => [E(a, {
|
|
2294
2294
|
checked: B(F).enable,
|
|
2295
2295
|
onChange: Se
|
|
2296
2296
|
}, null, 8, ["checked"])]),
|
|
@@ -2356,7 +2356,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2356
2356
|
formData: oe.value,
|
|
2357
2357
|
tableType: e.sectionType,
|
|
2358
2358
|
"onUpdate:dataSource": (t) => le(e.key, t),
|
|
2359
|
-
eventBus: B(
|
|
2359
|
+
eventBus: B(i)
|
|
2360
2360
|
}, null, 40, [
|
|
2361
2361
|
"dataSource",
|
|
2362
2362
|
"rootData",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, n as t } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { n, r, t as i } from "./settingsState-CI81PG-i.js";
|
|
3
3
|
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onMounted as d, onUnmounted as f, openBlock as p, ref as m, resolveComponent as h, resolveDynamicComponent as g, watch as _, withCtx as v } from "vue";
|
|
4
4
|
import { cloneDeep as y } from "lodash";
|
|
5
5
|
import { useRoute as b } from "vue-router";
|
|
6
6
|
//#region src/components/approval/components/approvalPageConfig/approveLeftConfig.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var x = { class: "approve-left-content" }, S = { class: "left-item" }, C = { class: "left-item" }, w = { key: 1 }, T = /* @__PURE__ */
|
|
7
|
+
var x = { class: "approve-left-content" }, S = { class: "left-item" }, C = { class: "left-item" }, w = { key: 1 }, T = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
8
8
|
__name: "approveLeftConfig",
|
|
9
9
|
emits: ["change"],
|
|
10
|
-
setup(
|
|
10
|
+
setup(e, { emit: u }) {
|
|
11
11
|
let T = m([]), E = m([]), D = m(null), O = null, k = {}, A = m([]), j = {}, M = r(), N = b(), P = u, F = m(!1), I = (e) => {
|
|
12
12
|
for (let t of e) k[t.id] = t, t.children && t.children.length > 0 ? (t.selectable = !1, I(t.children)) : (t.selectable = !0, O ||= t.id);
|
|
13
13
|
return e;
|
|
@@ -15,32 +15,32 @@ var x = { class: "approve-left-content" }, S = { class: "left-item" }, C = { cla
|
|
|
15
15
|
for (let t of e) t._icon = t.icon, delete t.icon, t.children && t.children.length > 0 ? L(t.children) : !A.value?.length && !F.value && H(t.menu_flag);
|
|
16
16
|
return e;
|
|
17
17
|
}, R = async () => {
|
|
18
|
-
let
|
|
19
|
-
if (
|
|
20
|
-
T.value = I(
|
|
21
|
-
let
|
|
22
|
-
if (
|
|
23
|
-
let
|
|
24
|
-
|
|
18
|
+
let e = await t("left_config_flow_org", { is_active: !0 }, "/approve/query_flow_org_list", !0, { skip_error: !0 });
|
|
19
|
+
if (e) {
|
|
20
|
+
T.value = I(e.data);
|
|
21
|
+
let t = M.flowOrgID;
|
|
22
|
+
if (t) {
|
|
23
|
+
let e = k[t];
|
|
24
|
+
e ? D.value = e.id : (localStorage.removeItem("selectedFlowOrgID"), D.value = O);
|
|
25
25
|
} else D.value = O;
|
|
26
26
|
setTimeout(() => {
|
|
27
27
|
z(k[D.value]);
|
|
28
28
|
}, 0);
|
|
29
29
|
}
|
|
30
|
-
}, z = async (
|
|
31
|
-
let n = await
|
|
32
|
-
flow_org_id:
|
|
30
|
+
}, z = async (e) => {
|
|
31
|
+
let n = await t(`flow_node_list_${e.id}`, {
|
|
32
|
+
flow_org_id: e.id,
|
|
33
33
|
is_active: !0
|
|
34
34
|
}, "/approve/query_flow_node_list", !0, { skip_error: !0 });
|
|
35
35
|
n && n.data?.length ? E.value = [{
|
|
36
36
|
isLeaf: !1,
|
|
37
|
-
name:
|
|
37
|
+
name: e.name,
|
|
38
38
|
id: 0,
|
|
39
39
|
children: L(y(n.data))
|
|
40
40
|
}] : E.value = [];
|
|
41
41
|
}, B = async () => {
|
|
42
|
-
let
|
|
43
|
-
if (
|
|
42
|
+
let e = await t("left_config_all_flow_node", { is_active: !0 }, "/approve/query_flow_node_list", !1, { skip_error: !0 });
|
|
43
|
+
if (e && e.data?.length) for (let t of e.data) j[t.menu_flag] = t;
|
|
44
44
|
}, V = !1, H = (e) => {
|
|
45
45
|
V = !0;
|
|
46
46
|
let t = !1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, o as t } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, renderList as f, resolveComponent as p, withCtx as m } from "vue";
|
|
3
3
|
//#region src/components/approval/components/codeHistory/codeHistoryViewModal.vue?vue&type=script&lang.ts
|
|
4
4
|
var h = c({
|
|
@@ -15,11 +15,11 @@ var h = c({
|
|
|
15
15
|
},
|
|
16
16
|
components: {},
|
|
17
17
|
emits: ["ok", "cancel"],
|
|
18
|
-
setup(
|
|
18
|
+
setup(e, { emit: n }) {
|
|
19
19
|
let r = () => {
|
|
20
20
|
n("cancel");
|
|
21
21
|
}, i = () => {}, a = d(!1), o = d([]), s = async () => {
|
|
22
|
-
|
|
22
|
+
t({
|
|
23
23
|
is_pagination: !1,
|
|
24
24
|
column_fields: [
|
|
25
25
|
"id",
|
|
@@ -30,18 +30,18 @@ var h = c({
|
|
|
30
30
|
conditions: [[{
|
|
31
31
|
field_name: "id",
|
|
32
32
|
operator: "in",
|
|
33
|
-
value:
|
|
33
|
+
value: e.history_ids,
|
|
34
34
|
format: "input",
|
|
35
35
|
class_name: "str"
|
|
36
36
|
}]]
|
|
37
|
-
}, "/approve/query_action_code_setting_history_list").then((
|
|
37
|
+
}, "/approve/query_action_code_setting_history_list").then((t) => {
|
|
38
38
|
let n = {};
|
|
39
|
-
a.value = !0,
|
|
39
|
+
a.value = !0, t.data.forEach((e) => {
|
|
40
40
|
n[e.id] = {
|
|
41
41
|
name: `[${e.id}]${e.create_time}`,
|
|
42
42
|
content: e.code
|
|
43
43
|
};
|
|
44
|
-
}), o.value.length = 0,
|
|
44
|
+
}), o.value.length = 0, e.history_ids.forEach((e) => {
|
|
45
45
|
o.value.push(n[e]);
|
|
46
46
|
}), a.value = !1;
|
|
47
47
|
}).catch(() => {
|
|
@@ -98,6 +98,6 @@ function _(e, t, c, l, d, h) {
|
|
|
98
98
|
_: 1
|
|
99
99
|
}, 8, ["title", "onCancel"]);
|
|
100
100
|
}
|
|
101
|
-
var v = /* @__PURE__ */
|
|
101
|
+
var v = /* @__PURE__ */ e(h, [["render", _], ["__scopeId", "data-v-1d22cea1"]]);
|
|
102
102
|
//#endregion
|
|
103
103
|
export { v as default };
|