lyflowchart 1.0.104 → 1.0.107
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.js +920 -271
- package/dist/index.js.map +1 -1
- package/dist/lyflowchart.css +1 -1
- package/package.json +1 -5
package/dist/index.js
CHANGED
|
@@ -32768,26 +32768,34 @@ var sk = /* @__PURE__ */ BO(ik, [["render", ok], ["__scopeId", "data-v-03e91aa5"
|
|
|
32768
32768
|
lte: "<=",
|
|
32769
32769
|
eq: "==",
|
|
32770
32770
|
not_eq: "!="
|
|
32771
|
-
}, dk = {}, fk = "request", pk = "useUserStore";
|
|
32772
|
-
function
|
|
32771
|
+
}, dk = {}, fk = "request", pk = "useUserStore", mk = "getApiData";
|
|
32772
|
+
function hk(e) {
|
|
32773
32773
|
return { install(t) {
|
|
32774
32774
|
dk[fk] = e;
|
|
32775
32775
|
} };
|
|
32776
32776
|
}
|
|
32777
|
-
function
|
|
32777
|
+
function gk(e) {
|
|
32778
32778
|
return { install(t) {
|
|
32779
32779
|
dk[pk] = e;
|
|
32780
32780
|
} };
|
|
32781
32781
|
}
|
|
32782
|
-
function
|
|
32782
|
+
function _k(e) {
|
|
32783
|
+
return { install(t) {
|
|
32784
|
+
dk[mk] = e;
|
|
32785
|
+
} };
|
|
32786
|
+
}
|
|
32787
|
+
function vk() {
|
|
32783
32788
|
return dk[fk];
|
|
32784
32789
|
}
|
|
32785
|
-
function
|
|
32790
|
+
function yk() {
|
|
32786
32791
|
return dk[pk];
|
|
32787
32792
|
}
|
|
32793
|
+
function bk() {
|
|
32794
|
+
return dk[mk];
|
|
32795
|
+
}
|
|
32788
32796
|
//#endregion
|
|
32789
32797
|
//#region src/components/Process/component/JsonTags2.vue?vue&type=script&lang.ts
|
|
32790
|
-
var
|
|
32798
|
+
var xk = c({
|
|
32791
32799
|
name: "JsonTags2",
|
|
32792
32800
|
props: {
|
|
32793
32801
|
value: {
|
|
@@ -32838,8 +32846,8 @@ var vk = c({
|
|
|
32838
32846
|
}
|
|
32839
32847
|
};
|
|
32840
32848
|
}
|
|
32841
|
-
}),
|
|
32842
|
-
function
|
|
32849
|
+
}), Sk = ["aria-label"], Ck = { style: { color: "gray" } }, wk = { class: "type" };
|
|
32850
|
+
function Tk(e, t, r, i, c, l) {
|
|
32843
32851
|
let u = b("a-tag"), d = b("a-select");
|
|
32844
32852
|
return h(), n(d, {
|
|
32845
32853
|
value: e.value,
|
|
@@ -32853,16 +32861,16 @@ function Sk(e, t, r, i, c, l) {
|
|
|
32853
32861
|
a("span", {
|
|
32854
32862
|
role: "img",
|
|
32855
32863
|
"aria-label": n
|
|
32856
|
-
}, x(n), 9,
|
|
32864
|
+
}, x(n), 9, Sk),
|
|
32857
32865
|
t[0] ||= o(" \xA0\xA0 ", -1),
|
|
32858
|
-
a("span",
|
|
32866
|
+
a("span", Ck, x(r), 1)
|
|
32859
32867
|
]),
|
|
32860
32868
|
tagRender: w(({ value: t, label: n, closable: r, onClose: i, option: c }) => [s(u, {
|
|
32861
32869
|
closable: r,
|
|
32862
32870
|
style: { "margin-right": "3px" },
|
|
32863
32871
|
onClose: i
|
|
32864
32872
|
}, {
|
|
32865
|
-
default: w(() => [o(x(e.getDisplay(t)) + " ", 1), a("span",
|
|
32873
|
+
default: w(() => [o(x(e.getDisplay(t)) + " ", 1), a("span", wk, "[" + x(e.getType(t)) + "]", 1)]),
|
|
32866
32874
|
_: 2
|
|
32867
32875
|
}, 1032, ["closable", "onClose"])]),
|
|
32868
32876
|
_: 1
|
|
@@ -32874,7 +32882,7 @@ function Sk(e, t, r, i, c, l) {
|
|
|
32874
32882
|
"placeholder"
|
|
32875
32883
|
]);
|
|
32876
32884
|
}
|
|
32877
|
-
var
|
|
32885
|
+
var Ek = /* @__PURE__ */ BO(xk, [["render", Tk], ["__scopeId", "data-v-99361bec"]]), Dk = c({
|
|
32878
32886
|
name: "ValueInput2",
|
|
32879
32887
|
components: {},
|
|
32880
32888
|
props: {
|
|
@@ -32941,19 +32949,19 @@ var Ck = /* @__PURE__ */ BO(vk, [["render", Sk], ["__scopeId", "data-v-99361bec"
|
|
|
32941
32949
|
findOptions: d
|
|
32942
32950
|
};
|
|
32943
32951
|
}
|
|
32944
|
-
}),
|
|
32952
|
+
}), Ok = { style: {
|
|
32945
32953
|
"font-size": "14px",
|
|
32946
32954
|
color: "#2f2f2f",
|
|
32947
32955
|
overflow: "hidden",
|
|
32948
32956
|
"text-overflow": "ellipsis",
|
|
32949
32957
|
"white-space": "nowrap"
|
|
32950
|
-
} },
|
|
32958
|
+
} }, kk = { style: {
|
|
32951
32959
|
"font-size": "12px",
|
|
32952
32960
|
color: "#999",
|
|
32953
32961
|
overflow: "hidden",
|
|
32954
32962
|
"text-overflow": "ellipsis",
|
|
32955
32963
|
"white-space": "nowrap"
|
|
32956
|
-
} },
|
|
32964
|
+
} }, Ak = {
|
|
32957
32965
|
key: 0,
|
|
32958
32966
|
style: {
|
|
32959
32967
|
"font-size": "12px",
|
|
@@ -32962,8 +32970,8 @@ var Ck = /* @__PURE__ */ BO(vk, [["render", Sk], ["__scopeId", "data-v-99361bec"
|
|
|
32962
32970
|
"text-overflow": "ellipsis",
|
|
32963
32971
|
"white-space": "nowrap"
|
|
32964
32972
|
}
|
|
32965
|
-
},
|
|
32966
|
-
function
|
|
32973
|
+
}, jk = ["title"], Mk = { style: { color: "gray" } };
|
|
32974
|
+
function Nk(e, t, c, l, u, d) {
|
|
32967
32975
|
let p = b("CheckCircleOutlined"), m = b("a-input-search"), g = b("a-auto-complete");
|
|
32968
32976
|
return h(), n(g, {
|
|
32969
32977
|
value: e.innerValue,
|
|
@@ -32973,9 +32981,9 @@ function Ak(e, t, c, l, u, d) {
|
|
|
32973
32981
|
onSearch: e.handleSearch
|
|
32974
32982
|
}, {
|
|
32975
32983
|
option: w(({ value: e, label: t, tableTitle: s, tableUse: c }) => [
|
|
32976
|
-
a("div",
|
|
32977
|
-
a("div",
|
|
32978
|
-
s ? (h(), i("div",
|
|
32984
|
+
a("div", Ok, x(t), 1),
|
|
32985
|
+
a("div", kk, x(e), 1),
|
|
32986
|
+
s ? (h(), i("div", Ak, [c ? (h(), n(p, {
|
|
32979
32987
|
key: 0,
|
|
32980
32988
|
style: { color: "#389e0d" },
|
|
32981
32989
|
title: "列表使用了该字段"
|
|
@@ -32990,7 +32998,7 @@ function Ak(e, t, c, l, u, d) {
|
|
|
32990
32998
|
suffix: w(() => [a("span", {
|
|
32991
32999
|
style: { color: "gray" },
|
|
32992
33000
|
title: e.findOptions(e.value)?.label
|
|
32993
|
-
}, x(e.findOptions(e.value)?.label), 9,
|
|
33001
|
+
}, x(e.findOptions(e.value)?.label), 9, jk), a("span", Mk, x(e.valueType), 1)]),
|
|
32994
33002
|
_: 1
|
|
32995
33003
|
}, 8, [
|
|
32996
33004
|
"placeholder",
|
|
@@ -33006,7 +33014,7 @@ function Ak(e, t, c, l, u, d) {
|
|
|
33006
33014
|
"onSearch"
|
|
33007
33015
|
]);
|
|
33008
33016
|
}
|
|
33009
|
-
var
|
|
33017
|
+
var Pk = /* @__PURE__ */ BO(Dk, [["render", Nk]]), Fk = c({
|
|
33010
33018
|
props: {
|
|
33011
33019
|
value: {
|
|
33012
33020
|
type: String,
|
|
@@ -33056,19 +33064,19 @@ var jk = /* @__PURE__ */ BO(wk, [["render", Ak]]), Mk = c({
|
|
|
33056
33064
|
findColumn: a
|
|
33057
33065
|
};
|
|
33058
33066
|
}
|
|
33059
|
-
}),
|
|
33067
|
+
}), Ik = { style: {
|
|
33060
33068
|
"font-size": "14px",
|
|
33061
33069
|
color: "#2f2f2f",
|
|
33062
33070
|
overflow: "hidden",
|
|
33063
33071
|
"text-overflow": "ellipsis",
|
|
33064
33072
|
"white-space": "nowrap"
|
|
33065
|
-
} },
|
|
33073
|
+
} }, Lk = { style: {
|
|
33066
33074
|
"font-size": "12px",
|
|
33067
33075
|
color: "#999",
|
|
33068
33076
|
overflow: "hidden",
|
|
33069
33077
|
"text-overflow": "ellipsis",
|
|
33070
33078
|
"white-space": "nowrap"
|
|
33071
|
-
} },
|
|
33079
|
+
} }, Rk = {
|
|
33072
33080
|
key: 0,
|
|
33073
33081
|
style: {
|
|
33074
33082
|
"font-size": "12px",
|
|
@@ -33077,8 +33085,8 @@ var jk = /* @__PURE__ */ BO(wk, [["render", Ak]]), Mk = c({
|
|
|
33077
33085
|
"text-overflow": "ellipsis",
|
|
33078
33086
|
"white-space": "nowrap"
|
|
33079
33087
|
}
|
|
33080
|
-
},
|
|
33081
|
-
function
|
|
33088
|
+
}, zk = ["title"];
|
|
33089
|
+
function Bk(e, t, c, l, u, d) {
|
|
33082
33090
|
let f = b("CheckCircleOutlined"), p = b("LoadingOutlined"), m = b("a-input-search"), g = b("a-auto-complete");
|
|
33083
33091
|
return h(), n(g, {
|
|
33084
33092
|
value: e.value,
|
|
@@ -33089,9 +33097,9 @@ function Lk(e, t, c, l, u, d) {
|
|
|
33089
33097
|
onSearch: e.handleColumnSearch
|
|
33090
33098
|
}, {
|
|
33091
33099
|
option: w(({ value: e, label: t, tableTitle: s, tableUse: c }) => [
|
|
33092
|
-
a("div",
|
|
33093
|
-
a("div",
|
|
33094
|
-
s ? (h(), i("div",
|
|
33100
|
+
a("div", Ik, x(t), 1),
|
|
33101
|
+
a("div", Lk, x(e), 1),
|
|
33102
|
+
s ? (h(), i("div", Rk, [c ? (h(), n(f, {
|
|
33095
33103
|
key: 0,
|
|
33096
33104
|
style: { color: "#389e0d" },
|
|
33097
33105
|
title: "列表使用了该字段"
|
|
@@ -33107,7 +33115,7 @@ function Lk(e, t, c, l, u, d) {
|
|
|
33107
33115
|
key: 1,
|
|
33108
33116
|
title: e.findColumn(e.value)?.label,
|
|
33109
33117
|
class: "column-name-field-suffix"
|
|
33110
|
-
}, x(e.findColumn(e.value)?.label), 9,
|
|
33118
|
+
}, x(e.findColumn(e.value)?.label), 9, zk))]),
|
|
33111
33119
|
_: 1
|
|
33112
33120
|
}, 8, [
|
|
33113
33121
|
"placeholder",
|
|
@@ -33125,7 +33133,7 @@ function Lk(e, t, c, l, u, d) {
|
|
|
33125
33133
|
}
|
|
33126
33134
|
//#endregion
|
|
33127
33135
|
//#region src/components/Process/panel/conditionPanel.vue?vue&type=script&lang.ts
|
|
33128
|
-
var
|
|
33136
|
+
var Vk = c({
|
|
33129
33137
|
name: "FlowConditionPanel",
|
|
33130
33138
|
computed: { FieldTypeOperatorMap() {
|
|
33131
33139
|
return ck;
|
|
@@ -33147,9 +33155,9 @@ var Rk = c({
|
|
|
33147
33155
|
}
|
|
33148
33156
|
},
|
|
33149
33157
|
components: {
|
|
33150
|
-
JsonTags2:
|
|
33151
|
-
ValueInput2:
|
|
33152
|
-
ColumnNameField2: /* @__PURE__ */ BO(
|
|
33158
|
+
JsonTags2: Ek,
|
|
33159
|
+
ValueInput2: Pk,
|
|
33160
|
+
ColumnNameField2: /* @__PURE__ */ BO(Fk, [["render", Bk], ["__scopeId", "data-v-d8b28df1"]]),
|
|
33153
33161
|
QuestionCircleOutlined: ee
|
|
33154
33162
|
},
|
|
33155
33163
|
setup(e) {
|
|
@@ -33184,9 +33192,9 @@ var Rk = c({
|
|
|
33184
33192
|
else if (t.type == "timerangepicker") e.format = t.format, e.valueFormat = t.valueFormat, e.value = [];
|
|
33185
33193
|
else if (t.type == "remoteselectpro") {
|
|
33186
33194
|
e.labelKey = t.labelKey, e.valueKey = t.valueKey;
|
|
33187
|
-
let n =
|
|
33195
|
+
let n = yk(), r;
|
|
33188
33196
|
r = t.queryType == "advanced" ? t.searchConditions : t.simpleSearchConditions;
|
|
33189
|
-
let i = (await
|
|
33197
|
+
let i = (await vk().post(t.postUrl, {
|
|
33190
33198
|
...r,
|
|
33191
33199
|
org_id: n.current_org?.id
|
|
33192
33200
|
}, {})).data.map((e) => ({
|
|
@@ -33196,9 +33204,9 @@ var Rk = c({
|
|
|
33196
33204
|
p.value[e.field_name] = i, ue.success("获取数据成功");
|
|
33197
33205
|
} else if (t.type == "remotetreeselectpro") {
|
|
33198
33206
|
e.labelKey = t.labelKey, e.valueKey = t.valueKey;
|
|
33199
|
-
let n =
|
|
33207
|
+
let n = yk(), r;
|
|
33200
33208
|
r = t.queryType == "advanced" ? t.searchConditions : t.simpleSearchConditions;
|
|
33201
|
-
let i = (await
|
|
33209
|
+
let i = (await vk().post(t.postUrl, {
|
|
33202
33210
|
...r,
|
|
33203
33211
|
org_id: n.current_org?.id
|
|
33204
33212
|
}, {})).data.map((e) => ({
|
|
@@ -33208,9 +33216,9 @@ var Rk = c({
|
|
|
33208
33216
|
p.value[e.field_name] = i, ue.success("获取数据成功");
|
|
33209
33217
|
} else if (t.type == "remotecascaderpro") {
|
|
33210
33218
|
e.value = [], e.labelKey = t.labelKey, e.valueKey = t.valueKey;
|
|
33211
|
-
let n =
|
|
33219
|
+
let n = yk(), r;
|
|
33212
33220
|
r = t.queryType == "advanced" ? t.searchConditions : t.simpleSearchConditions;
|
|
33213
|
-
let i = (await
|
|
33221
|
+
let i = (await vk().post(t.postUrl, {
|
|
33214
33222
|
...r,
|
|
33215
33223
|
org_id: n.current_org?.id
|
|
33216
33224
|
}, {})).data.map((e) => ({
|
|
@@ -33449,32 +33457,6 @@ var Rk = c({
|
|
|
33449
33457
|
push: 0,
|
|
33450
33458
|
offset: 0,
|
|
33451
33459
|
is_show_field: !0
|
|
33452
|
-
} : ["id"].includes(e.key) ? {
|
|
33453
|
-
type: "number",
|
|
33454
|
-
label: n,
|
|
33455
|
-
disabled: !1,
|
|
33456
|
-
inputType: "number",
|
|
33457
|
-
formatter: null,
|
|
33458
|
-
max: null,
|
|
33459
|
-
min: null,
|
|
33460
|
-
precision: null,
|
|
33461
|
-
step: 1,
|
|
33462
|
-
addonAfter: null,
|
|
33463
|
-
addonBefore: null,
|
|
33464
|
-
prefix: null,
|
|
33465
|
-
prefixIcon: null,
|
|
33466
|
-
suffixIcon: null,
|
|
33467
|
-
addonBeforeIcon: null,
|
|
33468
|
-
addonAfterIcon: null,
|
|
33469
|
-
placeholder: `请填写${n}`,
|
|
33470
|
-
name: `${t}`,
|
|
33471
|
-
key: `${t}`,
|
|
33472
|
-
required: !1,
|
|
33473
|
-
span: 24,
|
|
33474
|
-
pull: 0,
|
|
33475
|
-
push: 0,
|
|
33476
|
-
offset: 0,
|
|
33477
|
-
is_show_field: !0
|
|
33478
33460
|
} : {
|
|
33479
33461
|
addonAfter: null,
|
|
33480
33462
|
addonAfterIcon: null,
|
|
@@ -33545,7 +33527,7 @@ var Rk = c({
|
|
|
33545
33527
|
});
|
|
33546
33528
|
//#endregion
|
|
33547
33529
|
//#region src/components/Process/panel/conditionPanel.vue
|
|
33548
|
-
function
|
|
33530
|
+
function Hk(t, c, l, u, d, f) {
|
|
33549
33531
|
let p = b("QuestionCircleOutlined"), m = b("a-tooltip"), g = b("a-select-option"), _ = b("a-select"), v = b("a-form-item"), S = b("a-button"), C = b("a-space"), T = b("plus-outlined"), E = b("delete-outlined"), D = b("a-col"), O = b("ColumnNameField2"), k = b("a-input-group"), ee = b("a-space-compact"), te = b("a-input"), ne = b("a-textarea"), re = b("a-input-password"), ie = b("a-input-number"), ae = b("JsonTags2"), oe = b("value-input-2"), se = b("a-tree-select"), ce = b("a-cascader"), le = b("a-range-picker"), ue = b("a-date-picker"), de = b("a-time-range-picker"), fe = b("a-time-picker"), pe = b("a-row"), me = b("a-card"), he = b("a-form");
|
|
33550
33532
|
return h(), i("div", null, [s(he, {
|
|
33551
33533
|
"label-col": { span: 6 },
|
|
@@ -34152,7 +34134,7 @@ function zk(t, c, l, u, d, f) {
|
|
|
34152
34134
|
_: 1
|
|
34153
34135
|
})]);
|
|
34154
34136
|
}
|
|
34155
|
-
var
|
|
34137
|
+
var Uk = /* @__PURE__ */ BO(Vk, [["render", Hk], ["__scopeId", "data-v-8dd0cecd"]]), Wk = {
|
|
34156
34138
|
"Activate the global connect tool": "激活全局连接工具",
|
|
34157
34139
|
"Append {type}": "添加 {type}",
|
|
34158
34140
|
"Append Task": "添加任务",
|
|
@@ -34379,7 +34361,7 @@ var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-56288b50"
|
|
|
34379
34361
|
"Process is missing end event": "检查流程内是否存在结束事件",
|
|
34380
34362
|
"Start event must be blank": "检查子流程的开始事件是否具有启动条件",
|
|
34381
34363
|
"Gateway is superfluous. It only has one source and target.": "检查网关是否同时只有一个流入和流出路径,否则需要移除"
|
|
34382
|
-
},
|
|
34364
|
+
}, Gk = {
|
|
34383
34365
|
Process: "流程",
|
|
34384
34366
|
StartEvent: "开始事件",
|
|
34385
34367
|
IntermediateThrowEvent: "中间事件",
|
|
@@ -34401,12 +34383,12 @@ var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-56288b50"
|
|
|
34401
34383
|
};
|
|
34402
34384
|
//#endregion
|
|
34403
34385
|
//#region src/components/Process/common/bpmnUtils.js
|
|
34404
|
-
function
|
|
34405
|
-
return
|
|
34386
|
+
function Kk(e) {
|
|
34387
|
+
return Gk[e];
|
|
34406
34388
|
}
|
|
34407
34389
|
//#endregion
|
|
34408
34390
|
//#region src/components/Process/designer.vue?vue&type=script&lang.ts
|
|
34409
|
-
var
|
|
34391
|
+
var qk = c({
|
|
34410
34392
|
name: "Designer",
|
|
34411
34393
|
props: {
|
|
34412
34394
|
formData: {
|
|
@@ -34423,7 +34405,7 @@ var Wk = c({
|
|
|
34423
34405
|
components: {
|
|
34424
34406
|
CommonPanel: HO,
|
|
34425
34407
|
UserTaskPanel: sk,
|
|
34426
|
-
ConditionPanel:
|
|
34408
|
+
ConditionPanel: Uk
|
|
34427
34409
|
},
|
|
34428
34410
|
setup() {
|
|
34429
34411
|
let e = v(["common", "Task"]), t = v(""), n = v(""), r = v(!1), { modelerStore: i } = RO, a = () => {
|
|
@@ -34455,7 +34437,7 @@ var Wk = c({
|
|
|
34455
34437
|
elementId: t,
|
|
34456
34438
|
elementType: n,
|
|
34457
34439
|
conditionVisible: r,
|
|
34458
|
-
translateNodeName:
|
|
34440
|
+
translateNodeName: Kk,
|
|
34459
34441
|
onUpdateFlowType: (e) => {
|
|
34460
34442
|
if (n.value !== "SequenceFlow") {
|
|
34461
34443
|
r.value = !1;
|
|
@@ -34465,10 +34447,10 @@ var Wk = c({
|
|
|
34465
34447
|
}
|
|
34466
34448
|
};
|
|
34467
34449
|
}
|
|
34468
|
-
}),
|
|
34469
|
-
function
|
|
34450
|
+
}), Jk = { class: "card-header" };
|
|
34451
|
+
function Yk(e, t, o, c, l, u) {
|
|
34470
34452
|
let d = b("common-panel"), f = b("a-collapse-panel"), p = b("user-task-panel"), m = b("condition-panel"), g = b("a-collapse");
|
|
34471
|
-
return h(), i("div", null, [a("div",
|
|
34453
|
+
return h(), i("div", null, [a("div", Jk, [a("span", null, x(e.translateNodeName(e.elementType.value)), 1)]), s(g, {
|
|
34472
34454
|
activeKey: e.activeName,
|
|
34473
34455
|
"onUpdate:activeKey": t[0] ||= (t) => e.activeName = t
|
|
34474
34456
|
}, {
|
|
@@ -34509,17 +34491,17 @@ function Kk(e, t, o, c, l, u) {
|
|
|
34509
34491
|
_: 1
|
|
34510
34492
|
}, 8, ["activeKey"])]);
|
|
34511
34493
|
}
|
|
34512
|
-
var
|
|
34494
|
+
var Xk = /* @__PURE__ */ BO(qk, [["render", Yk], ["__scopeId", "data-v-fcdd90e8"]]);
|
|
34513
34495
|
//#endregion
|
|
34514
34496
|
//#region src/components/Process/customPanel/customTranslate.js
|
|
34515
|
-
function
|
|
34516
|
-
return t ||= {}, e =
|
|
34497
|
+
function Zk(e, t) {
|
|
34498
|
+
return t ||= {}, e = Wk[e] || e, e.replace(/{([^}]+)}/g, function(e, n) {
|
|
34517
34499
|
return t[n] || "{" + n + "}";
|
|
34518
34500
|
});
|
|
34519
34501
|
}
|
|
34520
34502
|
//#endregion
|
|
34521
34503
|
//#region src/components/Process/flowable/init.js
|
|
34522
|
-
function
|
|
34504
|
+
function Qk(e, t) {
|
|
34523
34505
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
34524
34506
|
<definitions
|
|
34525
34507
|
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -34549,7 +34531,7 @@ function Yk(e, t) {
|
|
|
34549
34531
|
</definitions>
|
|
34550
34532
|
`;
|
|
34551
34533
|
}
|
|
34552
|
-
var
|
|
34534
|
+
var $k = {
|
|
34553
34535
|
name: "Flowable",
|
|
34554
34536
|
uri: "http://flowable.org/bpmn",
|
|
34555
34537
|
prefix: "flowable",
|
|
@@ -35719,7 +35701,7 @@ var Xk = {
|
|
|
35719
35701
|
};
|
|
35720
35702
|
//#endregion
|
|
35721
35703
|
//#region src/components/Process/customPanel/CustomContextPad.js
|
|
35722
|
-
function
|
|
35704
|
+
function eA(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
35723
35705
|
e ||= {}, r.registerProvider(this), this._contextPad = r, this._modeling = i, this._elementFactory = a, this._connect = o, this._create = s, this._popupMenu = c, this._canvas = l, this._rules = u, this._translate = d, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(e) {
|
|
35724
35706
|
var t = e.context.shape;
|
|
35725
35707
|
if (!(!cc(e) || !r.isOpen(t))) {
|
|
@@ -35728,7 +35710,7 @@ function Zk(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
|
35728
35710
|
}
|
|
35729
35711
|
});
|
|
35730
35712
|
}
|
|
35731
|
-
|
|
35713
|
+
eA.$inject = [
|
|
35732
35714
|
"config.contextPad",
|
|
35733
35715
|
"injector",
|
|
35734
35716
|
"eventBus",
|
|
@@ -35741,7 +35723,7 @@ Zk.$inject = [
|
|
|
35741
35723
|
"canvas",
|
|
35742
35724
|
"rules",
|
|
35743
35725
|
"translate"
|
|
35744
|
-
],
|
|
35726
|
+
], eA.prototype.getMultiElementContextPadEntries = function(e) {
|
|
35745
35727
|
var t = this._modeling, n = {};
|
|
35746
35728
|
return this._isDeleteAllowed(e) && L(n, { delete: {
|
|
35747
35729
|
group: "edit",
|
|
@@ -35751,12 +35733,12 @@ Zk.$inject = [
|
|
|
35751
35733
|
t.removeElements(n.slice());
|
|
35752
35734
|
} }
|
|
35753
35735
|
} }), n;
|
|
35754
|
-
},
|
|
35736
|
+
}, eA.prototype._isDeleteAllowed = function(e) {
|
|
35755
35737
|
var t = this._rules.allowed("elements.delete", { elements: e });
|
|
35756
35738
|
return j(t) ? Le(t, function(e) {
|
|
35757
|
-
return
|
|
35739
|
+
return nA(t, e);
|
|
35758
35740
|
}) : t;
|
|
35759
|
-
},
|
|
35741
|
+
}, eA.prototype.getContextPadEntries = function(e) {
|
|
35760
35742
|
var t = this._contextPad, n = this._modeling, r = this._elementFactory, i = this._connect, a = this._create, o = this._popupMenu, s = this._rules, c = this._autoPlace, l = this._translate, u = {};
|
|
35761
35743
|
if (e.type === "label") return u;
|
|
35762
35744
|
var d = e.businessObject;
|
|
@@ -35831,7 +35813,7 @@ Zk.$inject = [
|
|
|
35831
35813
|
"append.timer-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-timer", l("Append TimerIntermediateCatchEvent"), { eventDefinitionType: "bpmn:TimerEventDefinition" }),
|
|
35832
35814
|
"append.condition-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-condition", l("Append ConditionIntermediateCatchEvent"), { eventDefinitionType: "bpmn:ConditionalEventDefinition" }),
|
|
35833
35815
|
"append.signal-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-signal", l("Append SignalIntermediateCatchEvent"), { eventDefinitionType: "bpmn:SignalEventDefinition" })
|
|
35834
|
-
}) :
|
|
35816
|
+
}) : tA(d, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? L(u, { "append.compensation-activity": h("bpmn:Task", "bpmn-icon-task", l("Append compensation activity"), { isForCompensation: !0 }) }) : !Y(d, "bpmn:EndEvent") && !d.isForCompensation && !tA(d, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Vo(d) && L(u, {
|
|
35835
35817
|
"append.end-event": h("bpmn:EndEvent", "bpmn-icon-end-event-none", l("Append EndEvent")),
|
|
35836
35818
|
"append.gateway": h("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", l("Append Gateway")),
|
|
35837
35819
|
"append.append-user-task": h("bpmn:UserTask", "bpmn-icon-user-task", "添加用户任务"),
|
|
@@ -35892,21 +35874,21 @@ Zk.$inject = [
|
|
|
35892
35874
|
action: { click: p }
|
|
35893
35875
|
} }), u;
|
|
35894
35876
|
};
|
|
35895
|
-
function
|
|
35877
|
+
function tA(e, t, n) {
|
|
35896
35878
|
var r = e.$instanceOf(t), i = !1;
|
|
35897
35879
|
return F(e.eventDefinitions || [], function(e) {
|
|
35898
35880
|
e.$type === n && (i = !0);
|
|
35899
35881
|
}), r && i;
|
|
35900
35882
|
}
|
|
35901
|
-
function
|
|
35883
|
+
function nA(e, t) {
|
|
35902
35884
|
return e.indexOf(t) !== -1;
|
|
35903
35885
|
}
|
|
35904
35886
|
//#endregion
|
|
35905
35887
|
//#region src/components/Process/customPanel/CustomPalette.js
|
|
35906
|
-
function
|
|
35888
|
+
function rA(e, t, n, r, i, a, o, s) {
|
|
35907
35889
|
this.create = t, this.elementFactory = n, this.handTool = r, this.lassoTool = i, this.spaceTool = a, this.globalConnect = o, this.translate = s, e.registerProvider(this);
|
|
35908
35890
|
}
|
|
35909
|
-
|
|
35891
|
+
rA.$inject = [
|
|
35910
35892
|
"palette",
|
|
35911
35893
|
"create",
|
|
35912
35894
|
"elementFactory",
|
|
@@ -35915,7 +35897,7 @@ eA.$inject = [
|
|
|
35915
35897
|
"spaceTool",
|
|
35916
35898
|
"globalConnect",
|
|
35917
35899
|
"translate"
|
|
35918
|
-
],
|
|
35900
|
+
], rA.prototype.getPaletteEntries = function(e) {
|
|
35919
35901
|
let { create: t, elementFactory: n, handTool: r, lassoTool: i, spaceTool: a, globalConnect: o, translate: s } = this;
|
|
35920
35902
|
function c(e, r, i, a, o) {
|
|
35921
35903
|
function c(r) {
|
|
@@ -35978,11 +35960,11 @@ eA.$inject = [
|
|
|
35978
35960
|
};
|
|
35979
35961
|
//#endregion
|
|
35980
35962
|
//#region src/components/Process/customPanel/index.js
|
|
35981
|
-
var
|
|
35963
|
+
var iA = {
|
|
35982
35964
|
__init__: ["paletteProvider", "contextPadProvider"],
|
|
35983
|
-
paletteProvider: ["type",
|
|
35984
|
-
contextPadProvider: ["type",
|
|
35985
|
-
},
|
|
35965
|
+
paletteProvider: ["type", rA],
|
|
35966
|
+
contextPadProvider: ["type", eA]
|
|
35967
|
+
}, aA = /* @__PURE__ */ _e(((e, t) => {
|
|
35986
35968
|
t.exports = function e(t, n) {
|
|
35987
35969
|
n(t);
|
|
35988
35970
|
var r = t.$descriptor;
|
|
@@ -35995,8 +35977,8 @@ var tA = {
|
|
|
35995
35977
|
}
|
|
35996
35978
|
});
|
|
35997
35979
|
};
|
|
35998
|
-
})),
|
|
35999
|
-
var n =
|
|
35980
|
+
})), oA = /* @__PURE__ */ _e(((e, t) => {
|
|
35981
|
+
var n = aA(), r = class {
|
|
36000
35982
|
constructor({ moddleRoot: e, rule: t }) {
|
|
36001
35983
|
this.rule = t, this.moddleRoot = e, this.messages = [], this.report = this.report.bind(this);
|
|
36002
35984
|
}
|
|
@@ -36014,8 +35996,8 @@ var tA = {
|
|
|
36014
35996
|
});
|
|
36015
35997
|
return n(e, (e) => t.check(e, i)), i.messages;
|
|
36016
35998
|
};
|
|
36017
|
-
})),
|
|
36018
|
-
var n =
|
|
35999
|
+
})), sA = /* @__PURE__ */ _e(((e, t) => {
|
|
36000
|
+
var n = oA(), r = {
|
|
36019
36001
|
0: "off",
|
|
36020
36002
|
1: "warn",
|
|
36021
36003
|
2: "error"
|
|
@@ -36142,101 +36124,101 @@ var tA = {
|
|
|
36142
36124
|
function o(e) {
|
|
36143
36125
|
return e.startsWith("bpmnlint-plugin-") ? e.substring(16) : e;
|
|
36144
36126
|
}
|
|
36145
|
-
})),
|
|
36146
|
-
t.exports = { Linter:
|
|
36147
|
-
})))(),
|
|
36148
|
-
function
|
|
36127
|
+
})), cA = (/* @__PURE__ */ _e(((e, t) => {
|
|
36128
|
+
t.exports = { Linter: sA() };
|
|
36129
|
+
})))(), lA = Object.prototype.toString, uA = Object.prototype.hasOwnProperty;
|
|
36130
|
+
function dA(e) {
|
|
36149
36131
|
return e === void 0;
|
|
36150
36132
|
}
|
|
36151
|
-
function
|
|
36152
|
-
return
|
|
36133
|
+
function fA(e) {
|
|
36134
|
+
return lA.call(e) === "[object Array]";
|
|
36153
36135
|
}
|
|
36154
|
-
function
|
|
36155
|
-
var t =
|
|
36136
|
+
function pA(e) {
|
|
36137
|
+
var t = lA.call(e);
|
|
36156
36138
|
return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]" || t === "[object Proxy]";
|
|
36157
36139
|
}
|
|
36158
|
-
function
|
|
36159
|
-
return
|
|
36140
|
+
function mA(e, t) {
|
|
36141
|
+
return uA.call(e, t);
|
|
36160
36142
|
}
|
|
36161
|
-
function
|
|
36143
|
+
function hA(e, t) {
|
|
36162
36144
|
var n, r;
|
|
36163
|
-
if (!
|
|
36164
|
-
var i =
|
|
36165
|
-
for (var a in e) if (
|
|
36145
|
+
if (!dA(e)) {
|
|
36146
|
+
var i = fA(e) ? bA : yA;
|
|
36147
|
+
for (var a in e) if (mA(e, a) && (n = e[a], r = t(n, i(a)), r === !1)) return n;
|
|
36166
36148
|
}
|
|
36167
36149
|
}
|
|
36168
|
-
function
|
|
36169
|
-
return
|
|
36150
|
+
function gA(e, t, n) {
|
|
36151
|
+
return hA(e, function(e, r) {
|
|
36170
36152
|
n = t(n, e, r);
|
|
36171
36153
|
}), n;
|
|
36172
36154
|
}
|
|
36173
|
-
function
|
|
36155
|
+
function _A(e, t) {
|
|
36174
36156
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
36175
|
-
return t =
|
|
36157
|
+
return t = vA(t), hA(e, function(e) {
|
|
36176
36158
|
var r = t(e) || "_", i = n[r];
|
|
36177
36159
|
i ||= n[r] = [], i.push(e);
|
|
36178
36160
|
}), n;
|
|
36179
36161
|
}
|
|
36180
|
-
function
|
|
36181
|
-
return
|
|
36162
|
+
function vA(e) {
|
|
36163
|
+
return pA(e) ? e : function(t) {
|
|
36182
36164
|
return t[e];
|
|
36183
36165
|
};
|
|
36184
36166
|
}
|
|
36185
|
-
function
|
|
36167
|
+
function yA(e) {
|
|
36186
36168
|
return e;
|
|
36187
36169
|
}
|
|
36188
|
-
function
|
|
36170
|
+
function bA(e) {
|
|
36189
36171
|
return Number(e);
|
|
36190
36172
|
}
|
|
36191
|
-
function
|
|
36192
|
-
return
|
|
36173
|
+
function xA() {
|
|
36174
|
+
return xA = Object.assign || function(e) {
|
|
36193
36175
|
for (var t = 1; t < arguments.length; t++) {
|
|
36194
36176
|
var n = arguments[t];
|
|
36195
36177
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
36196
36178
|
}
|
|
36197
36179
|
return e;
|
|
36198
|
-
},
|
|
36180
|
+
}, xA.apply(this, arguments);
|
|
36199
36181
|
}
|
|
36200
|
-
function
|
|
36182
|
+
function SA(e) {
|
|
36201
36183
|
var t = [...arguments].slice(1);
|
|
36202
|
-
return
|
|
36184
|
+
return xA.apply(void 0, [e].concat(t));
|
|
36203
36185
|
}
|
|
36204
36186
|
//#endregion
|
|
36205
36187
|
//#region node_modules/bpmn-js-bpmnlint/node_modules/min-dom/dist/index.esm.js
|
|
36206
|
-
var
|
|
36207
|
-
if (
|
|
36188
|
+
var CA = [].indexOf, wA = function(e, t) {
|
|
36189
|
+
if (CA) return e.indexOf(t);
|
|
36208
36190
|
for (var n = 0; n < e.length; ++n) if (e[n] === t) return n;
|
|
36209
36191
|
return -1;
|
|
36210
|
-
},
|
|
36211
|
-
function
|
|
36192
|
+
}, TA = /\s+/, EA = Object.prototype.toString;
|
|
36193
|
+
function DA(e) {
|
|
36212
36194
|
if (!e || !e.nodeType) throw Error("A DOM element reference is required");
|
|
36213
36195
|
this.el = e, this.list = e.classList;
|
|
36214
36196
|
}
|
|
36215
|
-
|
|
36197
|
+
DA.prototype.add = function(e) {
|
|
36216
36198
|
if (this.list) return this.list.add(e), this;
|
|
36217
36199
|
var t = this.array();
|
|
36218
|
-
return ~
|
|
36219
|
-
},
|
|
36220
|
-
if (
|
|
36200
|
+
return ~wA(t, e) || t.push(e), this.el.className = t.join(" "), this;
|
|
36201
|
+
}, DA.prototype.remove = function(e) {
|
|
36202
|
+
if (EA.call(e) == "[object RegExp]") return this.removeMatching(e);
|
|
36221
36203
|
if (this.list) return this.list.remove(e), this;
|
|
36222
|
-
var t = this.array(), n =
|
|
36204
|
+
var t = this.array(), n = wA(t, e);
|
|
36223
36205
|
return ~n && t.splice(n, 1), this.el.className = t.join(" "), this;
|
|
36224
|
-
},
|
|
36206
|
+
}, DA.prototype.removeMatching = function(e) {
|
|
36225
36207
|
for (var t = this.array(), n = 0; n < t.length; n++) e.test(t[n]) && this.remove(t[n]);
|
|
36226
36208
|
return this;
|
|
36227
|
-
},
|
|
36209
|
+
}, DA.prototype.toggle = function(e, t) {
|
|
36228
36210
|
return this.list ? ((t === void 0 || t !== this.list.toggle(e, t)) && this.list.toggle(e), this) : (t === void 0 ? this.has(e) ? this.remove(e) : this.add(e) : t ? this.add(e) : this.remove(e), this);
|
|
36229
|
-
},
|
|
36230
|
-
var e = (this.el.getAttribute("class") || "").replace(/^\s+|\s+$/g, "").split(
|
|
36211
|
+
}, DA.prototype.array = function() {
|
|
36212
|
+
var e = (this.el.getAttribute("class") || "").replace(/^\s+|\s+$/g, "").split(TA);
|
|
36231
36213
|
return e[0] === "" && e.shift(), e;
|
|
36232
|
-
},
|
|
36233
|
-
return this.list ? this.list.contains(e) : !!~
|
|
36214
|
+
}, DA.prototype.has = DA.prototype.contains = function(e) {
|
|
36215
|
+
return this.list ? this.list.contains(e) : !!~wA(this.array(), e);
|
|
36234
36216
|
};
|
|
36235
|
-
var
|
|
36236
|
-
|
|
36237
|
-
var
|
|
36238
|
-
typeof document < "u" && (
|
|
36239
|
-
var
|
|
36217
|
+
var OA = typeof Element < "u" ? Element.prototype : {};
|
|
36218
|
+
OA.matches || OA.matchesSelector || OA.webkitMatchesSelector || OA.mozMatchesSelector || OA.msMatchesSelector || OA.oMatchesSelector, window.addEventListener, window.removeEventListener;
|
|
36219
|
+
var kA = NA, AA = !1, jA;
|
|
36220
|
+
typeof document < "u" && (jA = document.createElement("div"), jA.innerHTML = " <link/><table></table><a href=\"/a\">a</a><input type=\"checkbox\"/>", AA = !jA.getElementsByTagName("link").length, jA = void 0);
|
|
36221
|
+
var MA = {
|
|
36240
36222
|
legend: [
|
|
36241
36223
|
1,
|
|
36242
36224
|
"<fieldset>",
|
|
@@ -36252,7 +36234,7 @@ var kA = {
|
|
|
36252
36234
|
"<table><tbody></tbody><colgroup>",
|
|
36253
36235
|
"</colgroup></table>"
|
|
36254
36236
|
],
|
|
36255
|
-
_default:
|
|
36237
|
+
_default: AA ? [
|
|
36256
36238
|
1,
|
|
36257
36239
|
"X<div>",
|
|
36258
36240
|
"</div>"
|
|
@@ -36262,24 +36244,24 @@ var kA = {
|
|
|
36262
36244
|
""
|
|
36263
36245
|
]
|
|
36264
36246
|
};
|
|
36265
|
-
|
|
36247
|
+
MA.td = MA.th = [
|
|
36266
36248
|
3,
|
|
36267
36249
|
"<table><tbody><tr>",
|
|
36268
36250
|
"</tr></tbody></table>"
|
|
36269
|
-
],
|
|
36251
|
+
], MA.option = MA.optgroup = [
|
|
36270
36252
|
1,
|
|
36271
36253
|
"<select multiple=\"multiple\">",
|
|
36272
36254
|
"</select>"
|
|
36273
|
-
],
|
|
36255
|
+
], MA.thead = MA.tbody = MA.colgroup = MA.caption = MA.tfoot = [
|
|
36274
36256
|
1,
|
|
36275
36257
|
"<table>",
|
|
36276
36258
|
"</table>"
|
|
36277
|
-
],
|
|
36259
|
+
], MA.polyline = MA.ellipse = MA.polygon = MA.circle = MA.text = MA.line = MA.path = MA.rect = MA.g = [
|
|
36278
36260
|
1,
|
|
36279
36261
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">",
|
|
36280
36262
|
"</svg>"
|
|
36281
36263
|
];
|
|
36282
|
-
function
|
|
36264
|
+
function NA(e, t) {
|
|
36283
36265
|
if (typeof e != "string") throw TypeError("String expected");
|
|
36284
36266
|
t ||= document;
|
|
36285
36267
|
var n = /<([\w:]+)/.exec(e);
|
|
@@ -36290,7 +36272,7 @@ function AA(e, t) {
|
|
|
36290
36272
|
var i = t.createElement("html");
|
|
36291
36273
|
return i.innerHTML = e, i.removeChild(i.lastChild);
|
|
36292
36274
|
}
|
|
36293
|
-
var a =
|
|
36275
|
+
var a = MA[r] || MA._default, o = a[0], s = a[1], c = a[2], i = t.createElement("div");
|
|
36294
36276
|
for (i.innerHTML = s + e + c; o--;) i = i.lastChild;
|
|
36295
36277
|
if (i.firstChild == i.lastChild) return i.removeChild(i.firstChild);
|
|
36296
36278
|
for (var l = t.createDocumentFragment(); i.firstChild;) l.appendChild(i.removeChild(i.firstChild));
|
|
@@ -36327,47 +36309,47 @@ function AA(e, t) {
|
|
|
36327
36309
|
return e.CSS ||= {}, e.CSS.escape = t, t;
|
|
36328
36310
|
});
|
|
36329
36311
|
})))();
|
|
36330
|
-
var
|
|
36312
|
+
var PA = {
|
|
36331
36313
|
"&": "&",
|
|
36332
36314
|
"<": "<",
|
|
36333
36315
|
">": ">",
|
|
36334
36316
|
"\"": """,
|
|
36335
36317
|
"'": "'"
|
|
36336
36318
|
};
|
|
36337
|
-
function
|
|
36319
|
+
function FA(e) {
|
|
36338
36320
|
return e = "" + e, e && e.replace(/[&<>"']/g, function(e) {
|
|
36339
|
-
return
|
|
36321
|
+
return PA[e];
|
|
36340
36322
|
});
|
|
36341
36323
|
}
|
|
36342
36324
|
//#endregion
|
|
36343
36325
|
//#region node_modules/bpmn-js-bpmnlint/dist/index.esm.js
|
|
36344
|
-
function
|
|
36326
|
+
function IA(e, t) {
|
|
36345
36327
|
var n = e.get("editorActions", !1);
|
|
36346
36328
|
n && n.register({ toggleLinting: function() {
|
|
36347
36329
|
t.toggle();
|
|
36348
36330
|
} });
|
|
36349
36331
|
}
|
|
36350
|
-
|
|
36351
|
-
var
|
|
36332
|
+
IA.$inject = ["injector", "linting"];
|
|
36333
|
+
var LA = "<svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 352 512\"><path fill=\"currentColor\" d=\"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z\"></path></svg>", RA = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M288 328.83c-45.518 0-82.419 34.576-82.419 77.229 0 42.652 36.9 77.229 82.419 77.229 45.518 0 82.419-34.577 82.419-77.23 0-42.652-36.9-77.229-82.419-77.229zM207.439 57.034l11.61 204.348c.544 9.334 8.78 16.64 18.755 16.64h100.392c9.975 0 18.211-7.306 18.754-16.64l11.611-204.348c.587-10.082-7.98-18.56-18.754-18.56H226.192c-10.775 0-19.34 8.478-18.753 18.56z\"/></svg>", zA = "<svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z\"></path></svg>", BA = -7, VA = -7, HA = 500, UA = {
|
|
36352
36334
|
resolver: { resolveRule: function() {
|
|
36353
36335
|
return null;
|
|
36354
36336
|
} },
|
|
36355
36337
|
config: {}
|
|
36356
|
-
},
|
|
36357
|
-
error:
|
|
36358
|
-
warning:
|
|
36359
|
-
success:
|
|
36360
|
-
inactive:
|
|
36338
|
+
}, WA = {
|
|
36339
|
+
error: LA,
|
|
36340
|
+
warning: RA,
|
|
36341
|
+
success: zA,
|
|
36342
|
+
inactive: zA
|
|
36361
36343
|
};
|
|
36362
|
-
function
|
|
36363
|
-
this._bpmnjs = e, this._canvas = t, this._elementRegistry = r, this._eventBus = i, this._overlays = a, this._translate = o, this._issues = {}, this._active = n && n.active || !1, this._linterConfig =
|
|
36344
|
+
function GA(e, t, n, r, i, a, o) {
|
|
36345
|
+
this._bpmnjs = e, this._canvas = t, this._elementRegistry = r, this._eventBus = i, this._overlays = a, this._translate = o, this._issues = {}, this._active = n && n.active || !1, this._linterConfig = UA, this._overlayIds = {};
|
|
36364
36346
|
var s = this;
|
|
36365
36347
|
i.on([
|
|
36366
36348
|
"import.done",
|
|
36367
36349
|
"elements.changed",
|
|
36368
36350
|
"linting.configChanged",
|
|
36369
36351
|
"linting.toggle"
|
|
36370
|
-
],
|
|
36352
|
+
], HA, function(e) {
|
|
36371
36353
|
s.isActive() && s.update();
|
|
36372
36354
|
}), i.on("linting.toggle", function(e) {
|
|
36373
36355
|
e.active || (s._clearIssues(), s._updateButton());
|
|
@@ -36376,35 +36358,35 @@ function HA(e, t, n, r, i, a, o) {
|
|
|
36376
36358
|
});
|
|
36377
36359
|
var c = n && n.bpmnlint;
|
|
36378
36360
|
c && i.once("diagram.init", function() {
|
|
36379
|
-
if (s.getLinterConfig() ===
|
|
36361
|
+
if (s.getLinterConfig() === UA) try {
|
|
36380
36362
|
s.setLinterConfig(c);
|
|
36381
36363
|
} catch {
|
|
36382
36364
|
console.error("[bpmn-js-bpmnlint] Invalid lint rules configured. Please doublecheck your linting.bpmnlint configuration, cf. https://github.com/bpmn-io/bpmn-js-bpmnlint#configure-lint-rules");
|
|
36383
36365
|
}
|
|
36384
36366
|
}), this._init();
|
|
36385
36367
|
}
|
|
36386
|
-
|
|
36368
|
+
GA.prototype.setLinterConfig = function(e) {
|
|
36387
36369
|
if (!e.config || !e.resolver) throw Error("Expected linterConfig = { config, resolver }");
|
|
36388
36370
|
this._linterConfig = e, this._eventBus.fire("linting.configChanged");
|
|
36389
|
-
},
|
|
36371
|
+
}, GA.prototype.getLinterConfig = function() {
|
|
36390
36372
|
return this._linterConfig;
|
|
36391
|
-
},
|
|
36373
|
+
}, GA.prototype._init = function() {
|
|
36392
36374
|
this._createButton(), this._updateButton();
|
|
36393
|
-
},
|
|
36375
|
+
}, GA.prototype.isActive = function() {
|
|
36394
36376
|
return this._active;
|
|
36395
|
-
},
|
|
36396
|
-
return
|
|
36377
|
+
}, GA.prototype._formatIssues = function(e) {
|
|
36378
|
+
return _A(gA(e, function(e, t, n) {
|
|
36397
36379
|
return e.concat(t.map(function(e) {
|
|
36398
36380
|
return e.rule = n, e;
|
|
36399
36381
|
}));
|
|
36400
36382
|
}, []), function(e) {
|
|
36401
36383
|
return e.id;
|
|
36402
36384
|
});
|
|
36403
|
-
},
|
|
36385
|
+
}, GA.prototype.toggle = function(e) {
|
|
36404
36386
|
return e = e === void 0 ? !this.isActive() : e, this._setActive(e), e;
|
|
36405
|
-
},
|
|
36387
|
+
}, GA.prototype._setActive = function(e) {
|
|
36406
36388
|
this._active !== e && (this._active = e, this._eventBus.fire("linting.toggle", { active: e }));
|
|
36407
|
-
},
|
|
36389
|
+
}, GA.prototype.update = function() {
|
|
36408
36390
|
var e = this;
|
|
36409
36391
|
if (this._bpmnjs.getDefinitions()) {
|
|
36410
36392
|
var t = this._lintStart = Math.random();
|
|
@@ -36414,15 +36396,15 @@ HA.prototype.setLinterConfig = function(e) {
|
|
|
36414
36396
|
var r = {}, i = {}, a = {};
|
|
36415
36397
|
for (var o in e._issues) n[o] || (r[o] = e._issues[o]);
|
|
36416
36398
|
for (var s in n) e._issues[s] ? n[s] !== e._issues[s] && (i[s] = n[s]) : a[s] = n[s];
|
|
36417
|
-
r =
|
|
36399
|
+
r = SA(r, i), a = SA(a, i), e._clearOverlays(), e._createIssues(a), e._issues = n, e._updateButton(), e._fireComplete(n);
|
|
36418
36400
|
}
|
|
36419
36401
|
});
|
|
36420
36402
|
}
|
|
36421
|
-
},
|
|
36403
|
+
}, GA.prototype._fireComplete = function(e) {
|
|
36422
36404
|
this._eventBus.fire("linting.completed", { issues: e });
|
|
36423
|
-
},
|
|
36405
|
+
}, GA.prototype._createIssues = function(e) {
|
|
36424
36406
|
for (var t in e) this._createElementIssues(t, e[t]);
|
|
36425
|
-
},
|
|
36407
|
+
}, GA.prototype._createElementIssues = function(e, t) {
|
|
36426
36408
|
var n = this._elementRegistry.get(e);
|
|
36427
36409
|
if (n) {
|
|
36428
36410
|
var r, i;
|
|
@@ -36430,14 +36412,14 @@ HA.prototype.setLinterConfig = function(e) {
|
|
|
36430
36412
|
top: 20,
|
|
36431
36413
|
left: 150
|
|
36432
36414
|
}) : (r = "top-right", i = {
|
|
36433
|
-
top:
|
|
36434
|
-
left:
|
|
36415
|
+
top: BA,
|
|
36416
|
+
left: VA
|
|
36435
36417
|
});
|
|
36436
|
-
var a =
|
|
36418
|
+
var a = _A(t, function(e) {
|
|
36437
36419
|
return e.category;
|
|
36438
36420
|
}), o = a.error, s = a.warn;
|
|
36439
36421
|
if (!(!o && !s)) {
|
|
36440
|
-
var c =
|
|
36422
|
+
var c = kA("<div class=\"bjsl-overlay bjsl-issues-" + r + "\"></div>"), l = kA(o ? "<div class=\"bjsl-icon bjsl-icon-error\">" + LA + "</div>" : "<div class=\"bjsl-icon bjsl-icon-warning\">" + RA + "</div>"), u = kA("<div class=\"bjsl-dropdown\"></div>"), d = kA("<div class=\"bjsl-dropdown-content\"></div>"), f = kA("<div class=\"bjsl-issues\"></div>"), p = kA("<ul></ul>");
|
|
36441
36423
|
c.appendChild(l), c.appendChild(u), u.appendChild(d), d.appendChild(f), f.appendChild(p), o && this._addErrors(p, o), s && this._addWarnings(p, s), this._overlayIds[e] = this._overlays.add(n, "linting", {
|
|
36442
36424
|
position: i,
|
|
36443
36425
|
html: c,
|
|
@@ -36445,25 +36427,25 @@ HA.prototype.setLinterConfig = function(e) {
|
|
|
36445
36427
|
});
|
|
36446
36428
|
}
|
|
36447
36429
|
}
|
|
36448
|
-
},
|
|
36430
|
+
}, GA.prototype._addErrors = function(e, t) {
|
|
36449
36431
|
var n = this;
|
|
36450
36432
|
t.forEach(function(t) {
|
|
36451
36433
|
n._addEntry(e, "error", t);
|
|
36452
36434
|
});
|
|
36453
|
-
},
|
|
36435
|
+
}, GA.prototype._addWarnings = function(e, t) {
|
|
36454
36436
|
var n = this;
|
|
36455
36437
|
t.forEach(function(t) {
|
|
36456
36438
|
n._addEntry(e, "warning", t);
|
|
36457
36439
|
});
|
|
36458
|
-
},
|
|
36459
|
-
var r = n.rule, i = this._translate(n.message), a =
|
|
36440
|
+
}, GA.prototype._addEntry = function(e, t, n) {
|
|
36441
|
+
var r = n.rule, i = this._translate(n.message), a = WA[t], o = kA("<li class=\"" + t + "\">" + a + "<a title=\"" + FA(r) + ": " + FA(i) + "\" data-rule=\"" + FA(r) + "\" data-message=\"" + FA(i) + "\">" + FA(i) + "</a></li>");
|
|
36460
36442
|
e.appendChild(o);
|
|
36461
|
-
},
|
|
36443
|
+
}, GA.prototype._clearOverlays = function() {
|
|
36462
36444
|
this._overlays.remove({ type: "linting" }), this._overlayIds = {};
|
|
36463
|
-
},
|
|
36445
|
+
}, GA.prototype._clearIssues = function() {
|
|
36464
36446
|
this._issues = {}, this._clearOverlays();
|
|
36465
|
-
},
|
|
36466
|
-
var r = this._button, i =
|
|
36447
|
+
}, GA.prototype._setButtonState = function(e, t, n) {
|
|
36448
|
+
var r = this._button, i = WA[e] + "<span>" + this._translate("{errors} Errors, {warnings} Warnings", {
|
|
36467
36449
|
errors: t.toString(),
|
|
36468
36450
|
warnings: n.toString()
|
|
36469
36451
|
}) + "</span>";
|
|
@@ -36475,7 +36457,7 @@ HA.prototype.setLinterConfig = function(e) {
|
|
|
36475
36457
|
].forEach(function(t) {
|
|
36476
36458
|
e === t ? r.classList.add("bjsl-button-" + t) : r.classList.remove("bjsl-button-" + t);
|
|
36477
36459
|
}), r.innerHTML = i;
|
|
36478
|
-
},
|
|
36460
|
+
}, GA.prototype._updateButton = function() {
|
|
36479
36461
|
if (!this.isActive()) {
|
|
36480
36462
|
this._setButtonState("inactive", 0, 0);
|
|
36481
36463
|
return;
|
|
@@ -36486,15 +36468,15 @@ HA.prototype.setLinterConfig = function(e) {
|
|
|
36486
36468
|
});
|
|
36487
36469
|
var r = e && "error" || t && "warning" || "success";
|
|
36488
36470
|
this._setButtonState(r, e, t);
|
|
36489
|
-
},
|
|
36471
|
+
}, GA.prototype._createButton = function() {
|
|
36490
36472
|
var e = this;
|
|
36491
|
-
this._button =
|
|
36473
|
+
this._button = kA("<button class=\"bjsl-button bjsl-button-inactive\" title=\"" + this._translate("Toggle linting") + "\"></button>"), this._button.addEventListener("click", function() {
|
|
36492
36474
|
e.toggle();
|
|
36493
36475
|
}), this._canvas.getContainer().appendChild(this._button);
|
|
36494
|
-
},
|
|
36476
|
+
}, GA.prototype.lint = function() {
|
|
36495
36477
|
var e = this._bpmnjs.getDefinitions();
|
|
36496
|
-
return new
|
|
36497
|
-
},
|
|
36478
|
+
return new cA.Linter(this._linterConfig).lint(e);
|
|
36479
|
+
}, GA.$inject = [
|
|
36498
36480
|
"bpmnjs",
|
|
36499
36481
|
"canvas",
|
|
36500
36482
|
"config.linting",
|
|
@@ -36503,14 +36485,14 @@ HA.prototype.setLinterConfig = function(e) {
|
|
|
36503
36485
|
"overlays",
|
|
36504
36486
|
"translate"
|
|
36505
36487
|
];
|
|
36506
|
-
var
|
|
36488
|
+
var KA = {
|
|
36507
36489
|
__init__: ["linting", "lintingEditorActions"],
|
|
36508
|
-
linting: ["type",
|
|
36509
|
-
lintingEditorActions: ["type",
|
|
36490
|
+
linting: ["type", GA],
|
|
36491
|
+
lintingEditorActions: ["type", IA]
|
|
36510
36492
|
};
|
|
36511
36493
|
//#endregion
|
|
36512
36494
|
//#region src/config/packed-config.js
|
|
36513
|
-
function
|
|
36495
|
+
function qA(e) {
|
|
36514
36496
|
var t = e.default;
|
|
36515
36497
|
if (typeof t == "function") {
|
|
36516
36498
|
var n = function() {
|
|
@@ -36528,43 +36510,43 @@ function WA(e) {
|
|
|
36528
36510
|
});
|
|
36529
36511
|
}), n;
|
|
36530
36512
|
}
|
|
36531
|
-
function
|
|
36513
|
+
function JA(e, t) {
|
|
36532
36514
|
return t.indexOf(":") === -1 && (t = "bpmn:" + t), typeof e.$instanceOf == "function" ? e.$instanceOf(t) : e.$type === t;
|
|
36533
36515
|
}
|
|
36534
|
-
function
|
|
36516
|
+
function YA(e, t) {
|
|
36535
36517
|
return t.some(function(t) {
|
|
36536
|
-
return
|
|
36518
|
+
return JA(e, t);
|
|
36537
36519
|
});
|
|
36538
36520
|
}
|
|
36539
|
-
var
|
|
36521
|
+
var XA = /* @__PURE__ */ qA(/* @__PURE__ */ Object.freeze({
|
|
36540
36522
|
__proto__: null,
|
|
36541
|
-
is:
|
|
36542
|
-
isAny:
|
|
36543
|
-
})), { is:
|
|
36523
|
+
is: JA,
|
|
36524
|
+
isAny: YA
|
|
36525
|
+
})), { is: ZA, isAny: QA } = XA, $A = function() {
|
|
36544
36526
|
function e(e) {
|
|
36545
|
-
return (e.flowElements || []).some((e) =>
|
|
36527
|
+
return (e.flowElements || []).some((e) => ZA(e, "bpmn:StartEvent"));
|
|
36546
36528
|
}
|
|
36547
36529
|
function t(t, n) {
|
|
36548
|
-
if (
|
|
36549
|
-
let e =
|
|
36530
|
+
if (QA(t, ["bpmn:Process", "bpmn:SubProcess"]) && !e(t)) {
|
|
36531
|
+
let e = ZA(t, "bpmn:SubProcess") ? "Sub process" : "Process";
|
|
36550
36532
|
n.report(t.id, e + " is missing start event");
|
|
36551
36533
|
}
|
|
36552
36534
|
}
|
|
36553
36535
|
return { check: t };
|
|
36554
|
-
}, { is:
|
|
36536
|
+
}, { is: ej, isAny: tj } = XA, nj = function() {
|
|
36555
36537
|
function e(e) {
|
|
36556
|
-
return (e.flowElements || []).some((e) =>
|
|
36538
|
+
return (e.flowElements || []).some((e) => ej(e, "bpmn:EndEvent"));
|
|
36557
36539
|
}
|
|
36558
36540
|
function t(t, n) {
|
|
36559
|
-
if (
|
|
36560
|
-
let e =
|
|
36541
|
+
if (tj(t, ["bpmn:Process", "bpmn:SubProcess"]) && !e(t)) {
|
|
36542
|
+
let e = ej(t, "bpmn:SubProcess") ? "Sub process" : "Process";
|
|
36561
36543
|
n.report(t.id, e + " is missing end event");
|
|
36562
36544
|
}
|
|
36563
36545
|
}
|
|
36564
36546
|
return { check: t };
|
|
36565
|
-
}, { is:
|
|
36547
|
+
}, { is: rj, isAny: ij } = XA, aj = function() {
|
|
36566
36548
|
function e(e, t) {
|
|
36567
|
-
|
|
36549
|
+
ij(e, ["bpmn:ParallelGateway", "bpmn:EventBasedGateway"]) || rj(e, "bpmn:Gateway") && !oj(e) || rj(e, "bpmn:BoundaryEvent") || rj(e, "bpmn:SubProcess") || rj(e, "bpmn:SequenceFlow") && !sj(e) || ij(e, [
|
|
36568
36550
|
"bpmn:FlowNode",
|
|
36569
36551
|
"bpmn:SequenceFlow",
|
|
36570
36552
|
"bpmn:Participant",
|
|
@@ -36573,13 +36555,13 @@ var qA = /* @__PURE__ */ WA(/* @__PURE__ */ Object.freeze({
|
|
|
36573
36555
|
}
|
|
36574
36556
|
return { check: e };
|
|
36575
36557
|
};
|
|
36576
|
-
function
|
|
36558
|
+
function oj(e) {
|
|
36577
36559
|
return (e.outgoing || []).length > 1;
|
|
36578
36560
|
}
|
|
36579
|
-
function
|
|
36561
|
+
function sj(e) {
|
|
36580
36562
|
return e.conditionExpression;
|
|
36581
36563
|
}
|
|
36582
|
-
function
|
|
36564
|
+
function cj() {
|
|
36583
36565
|
return { check: function(e, t) {
|
|
36584
36566
|
if (e.$type !== "bpmn:Definitions") return;
|
|
36585
36567
|
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
|
|
@@ -36606,17 +36588,17 @@ function aj() {
|
|
|
36606
36588
|
}
|
|
36607
36589
|
} };
|
|
36608
36590
|
}
|
|
36609
|
-
var
|
|
36610
|
-
function
|
|
36611
|
-
|
|
36612
|
-
let n =
|
|
36591
|
+
var lj = {};
|
|
36592
|
+
function uj() {}
|
|
36593
|
+
uj.prototype.resolveRule = function(e, t) {
|
|
36594
|
+
let n = lj[e + "/" + t];
|
|
36613
36595
|
if (!n) throw Error("cannot resolve rule <" + e + "/" + t + ">");
|
|
36614
36596
|
return n;
|
|
36615
|
-
},
|
|
36597
|
+
}, uj.prototype.resolveConfig = function(e, t) {
|
|
36616
36598
|
throw Error("cannot resolve config <" + t + "> in <" + e + ">");
|
|
36617
36599
|
};
|
|
36618
|
-
var
|
|
36619
|
-
resolver: new
|
|
36600
|
+
var dj = {
|
|
36601
|
+
resolver: new uj(),
|
|
36620
36602
|
config: { rules: {
|
|
36621
36603
|
"start-event-required": "error",
|
|
36622
36604
|
"end-event-required": "error",
|
|
@@ -36624,10 +36606,10 @@ var cj = {
|
|
|
36624
36606
|
"local/no-duplicate-element-names": "error"
|
|
36625
36607
|
} }
|
|
36626
36608
|
};
|
|
36627
|
-
|
|
36609
|
+
lj["bpmnlint/start-event-required"] = $A, lj["bpmnlint/end-event-required"] = nj, lj["bpmnlint/label-required"] = aj, lj["bpmnlint-plugin-local/no-duplicate-element-names"] = cj;
|
|
36628
36610
|
//#endregion
|
|
36629
36611
|
//#region src/components/Process/index.vue?vue&type=script&lang.ts
|
|
36630
|
-
var
|
|
36612
|
+
var fj = c({
|
|
36631
36613
|
name: "BpmnModel",
|
|
36632
36614
|
props: {
|
|
36633
36615
|
xml: {
|
|
@@ -36707,7 +36689,7 @@ var lj = c({
|
|
|
36707
36689
|
}
|
|
36708
36690
|
},
|
|
36709
36691
|
components: {
|
|
36710
|
-
Designer:
|
|
36692
|
+
Designer: Xk,
|
|
36711
36693
|
UploadOutlined: ae
|
|
36712
36694
|
},
|
|
36713
36695
|
emits: [
|
|
@@ -36735,13 +36717,13 @@ var lj = c({
|
|
|
36735
36717
|
let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
36736
36718
|
a.href = i, a.download = e, a.click(), URL.revokeObjectURL(i);
|
|
36737
36719
|
}, c = () => r.value && r.value.getDefinitions().rootElements.find((e) => e.$type === "bpmn:Process") || null, l = () => {
|
|
36738
|
-
f(
|
|
36720
|
+
f(Qk(e.processId, e.processName));
|
|
36739
36721
|
}, d = () => {
|
|
36740
36722
|
le.confirm({
|
|
36741
36723
|
title: "提示",
|
|
36742
36724
|
content: "确定要新建流程吗?当前编辑内容将丢失。",
|
|
36743
36725
|
onOk() {
|
|
36744
|
-
f(
|
|
36726
|
+
f(Qk(e.processId, e.processName));
|
|
36745
36727
|
},
|
|
36746
36728
|
onCancel() {}
|
|
36747
36729
|
});
|
|
@@ -36814,16 +36796,16 @@ var lj = c({
|
|
|
36814
36796
|
let i = new IO({
|
|
36815
36797
|
container: n.value,
|
|
36816
36798
|
additionalModules: [
|
|
36817
|
-
|
|
36818
|
-
|
|
36819
|
-
{ translate: ["value",
|
|
36799
|
+
KA,
|
|
36800
|
+
iA,
|
|
36801
|
+
{ translate: ["value", Zk] }
|
|
36820
36802
|
],
|
|
36821
36803
|
linting: {
|
|
36822
36804
|
active: !0,
|
|
36823
|
-
bpmnlint:
|
|
36805
|
+
bpmnlint: dj
|
|
36824
36806
|
},
|
|
36825
36807
|
moddleExtensions: {
|
|
36826
|
-
flowable:
|
|
36808
|
+
flowable: $k,
|
|
36827
36809
|
custom: {
|
|
36828
36810
|
name: "Custom",
|
|
36829
36811
|
uri: "http://example.com/custom",
|
|
@@ -36879,24 +36861,24 @@ var lj = c({
|
|
|
36879
36861
|
handleNewDiagram: d
|
|
36880
36862
|
};
|
|
36881
36863
|
}
|
|
36882
|
-
}),
|
|
36864
|
+
}), pj = { class: "flow-header" }, mj = {
|
|
36883
36865
|
class: "flow-header-editor",
|
|
36884
36866
|
style: {
|
|
36885
36867
|
"border-bottom": "1px solid rgb(218, 218, 218)",
|
|
36886
36868
|
height: "auto",
|
|
36887
36869
|
"padding-left": "0"
|
|
36888
36870
|
}
|
|
36889
|
-
},
|
|
36871
|
+
}, hj = { style: {
|
|
36890
36872
|
display: "flex",
|
|
36891
36873
|
padding: "10px 0",
|
|
36892
36874
|
"justify-content": "space-between"
|
|
36893
|
-
} },
|
|
36875
|
+
} }, gj = { class: "flow-body" }, _j = { class: "flow-design-layout" }, vj = { class: "canvas-wrapper" }, yj = {
|
|
36894
36876
|
ref: "canvasRef",
|
|
36895
36877
|
class: "canvas"
|
|
36896
|
-
},
|
|
36897
|
-
function
|
|
36878
|
+
}, bj = { class: "properties-panel" }, xj = { class: "normalPanel" };
|
|
36879
|
+
function Sj(e, t, c, l, u, f) {
|
|
36898
36880
|
let p = b("a-button"), m = b("upload-outlined"), g = b("a-upload"), _ = b("a-space"), v = b("Designer");
|
|
36899
|
-
return h(), i("div", { class: d(["flow-containers", { "view-mode": e.isView }]) }, [a("div",
|
|
36881
|
+
return h(), i("div", { class: d(["flow-containers", { "view-mode": e.isView }]) }, [a("div", pj, [a("div", mj, [a("div", hj, [s(_, null, {
|
|
36900
36882
|
default: w(() => [
|
|
36901
36883
|
s(p, {
|
|
36902
36884
|
type: "primary",
|
|
@@ -37000,13 +36982,13 @@ function yj(e, t, c, l, u, f) {
|
|
|
37000
36982
|
}, 8, ["onClick"])) : r("", !0)
|
|
37001
36983
|
]),
|
|
37002
36984
|
_: 1
|
|
37003
|
-
})])])]), a("div",
|
|
36985
|
+
})])])]), a("div", gj, [a("div", _j, [a("div", vj, [a("div", yj, null, 512)]), a("div", bj, [a("div", xj, [e.loadCanvas ? (h(), n(v, {
|
|
37004
36986
|
key: 0,
|
|
37005
36987
|
"form-data": e.formData,
|
|
37006
36988
|
"global-options": e.globalOptions
|
|
37007
36989
|
}, null, 8, ["form-data", "global-options"])) : r("", !0)])])])])], 2);
|
|
37008
36990
|
}
|
|
37009
|
-
var
|
|
36991
|
+
var Cj = /* @__PURE__ */ BO(fj, [["render", Sj], ["__scopeId", "data-v-7814709c"]]), wj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
|
|
37010
36992
|
function n(e) {
|
|
37011
36993
|
var t = " ";
|
|
37012
36994
|
if (isNaN(parseInt(e))) t = e;
|
|
@@ -37086,7 +37068,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
|
|
|
37086
37068
|
}, r.prototype.sqlmin = function(e) {
|
|
37087
37069
|
return e.replace(/\s{1,}/g, " ").replace(/\s{1,}\(/, "(").replace(/\s{1,}\)/, ")");
|
|
37088
37070
|
}, t.exports = new r();
|
|
37089
|
-
})))(), 1),
|
|
37071
|
+
})))(), 1), Tj = /* @__PURE__ */ ye(be(), 1), Ej = c({
|
|
37090
37072
|
name: "MyProcess",
|
|
37091
37073
|
props: {
|
|
37092
37074
|
value: {
|
|
@@ -37162,7 +37144,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
|
|
|
37162
37144
|
default: []
|
|
37163
37145
|
}
|
|
37164
37146
|
},
|
|
37165
|
-
components: { bpmnModeler:
|
|
37147
|
+
components: { bpmnModeler: Cj },
|
|
37166
37148
|
emits: ["update:value", "save"],
|
|
37167
37149
|
setup(e, { emit: n }) {
|
|
37168
37150
|
let r = t({
|
|
@@ -37187,7 +37169,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
|
|
|
37187
37169
|
});
|
|
37188
37170
|
}, _ = (e) => {
|
|
37189
37171
|
try {
|
|
37190
|
-
s.value =
|
|
37172
|
+
s.value = wj.default.xml(e);
|
|
37191
37173
|
} catch (t) {
|
|
37192
37174
|
s.value = e, console.error("XML 格式化失败:", t);
|
|
37193
37175
|
}
|
|
@@ -37197,7 +37179,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
|
|
|
37197
37179
|
console.warn("Textarea not found for CodeMirror");
|
|
37198
37180
|
return;
|
|
37199
37181
|
}
|
|
37200
|
-
p.value.value = s.value, h =
|
|
37182
|
+
p.value.value = s.value, h = Tj.default.fromTextArea(p.value, {
|
|
37201
37183
|
mode: "xml",
|
|
37202
37184
|
lineNumbers: !0,
|
|
37203
37185
|
readOnly: !0,
|
|
@@ -37234,10 +37216,10 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
|
|
|
37234
37216
|
}
|
|
37235
37217
|
};
|
|
37236
37218
|
}
|
|
37237
|
-
}),
|
|
37238
|
-
function
|
|
37219
|
+
}), Dj = { class: "my-process-main" }, Oj = { class: "xml-editor" }, kj = { ref: "el" };
|
|
37220
|
+
function Aj(e, t, n, r, o, c) {
|
|
37239
37221
|
let l = b("bpmn-modeler"), u = b("a-drawer");
|
|
37240
|
-
return h(), i("div",
|
|
37222
|
+
return h(), i("div", Dj, [s(l, {
|
|
37241
37223
|
ref: "refNode",
|
|
37242
37224
|
xml: e.xml,
|
|
37243
37225
|
fetchUsers: e.fetchUsers,
|
|
@@ -37293,7 +37275,7 @@ function Dj(e, t, n, r, o, c) {
|
|
|
37293
37275
|
onAfterOpenChange: e.onDrawerChange,
|
|
37294
37276
|
width: "700"
|
|
37295
37277
|
}, {
|
|
37296
|
-
default: w(() => [a("div",
|
|
37278
|
+
default: w(() => [a("div", Oj, [a("textarea", kj, null, 512)])]),
|
|
37297
37279
|
_: 1
|
|
37298
37280
|
}, 8, [
|
|
37299
37281
|
"open",
|
|
@@ -37301,7 +37283,7 @@ function Dj(e, t, n, r, o, c) {
|
|
|
37301
37283
|
"onAfterOpenChange"
|
|
37302
37284
|
])]);
|
|
37303
37285
|
}
|
|
37304
|
-
var
|
|
37286
|
+
var jj = /* @__PURE__ */ BO(Ej, [["render", Aj], ["__scopeId", "data-v-135f56ce"]]), Mj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
|
|
37305
37287
|
typeof Object.create == "function" ? t.exports = function(e, t) {
|
|
37306
37288
|
t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: {
|
|
37307
37289
|
value: e,
|
|
@@ -37317,13 +37299,13 @@ var Oj = /* @__PURE__ */ BO(Cj, [["render", Dj], ["__scopeId", "data-v-135f56ce"
|
|
|
37317
37299
|
}
|
|
37318
37300
|
};
|
|
37319
37301
|
})))(), 1);
|
|
37320
|
-
function
|
|
37302
|
+
function Nj(e) {
|
|
37321
37303
|
pl.call(this, e);
|
|
37322
37304
|
}
|
|
37323
|
-
(0,
|
|
37305
|
+
(0, Mj.default)(Nj, pl), Nj.prototype._modules = [].concat(pl.prototype._modules, [iu, Jl]);
|
|
37324
37306
|
//#endregion
|
|
37325
37307
|
//#region src/components/Process/viewer/index.vue?vue&type=script&lang.ts
|
|
37326
|
-
var
|
|
37308
|
+
var Pj = c({
|
|
37327
37309
|
name: "BpmnViewer",
|
|
37328
37310
|
props: {
|
|
37329
37311
|
flowData: {
|
|
@@ -37377,7 +37359,7 @@ var jj = c({
|
|
|
37377
37359
|
};
|
|
37378
37360
|
return m(() => {
|
|
37379
37361
|
C(() => e.flowData, (r) => {
|
|
37380
|
-
!r || !r.xmlData || (n.value && n.value.destroy(), n.value = new
|
|
37362
|
+
!r || !r.xmlData || (n.value && n.value.destroy(), n.value = new Nj({
|
|
37381
37363
|
container: t.value,
|
|
37382
37364
|
height: e.height ? Number(e.height) : "calc(100vh - 200px)"
|
|
37383
37365
|
}), i(r));
|
|
@@ -37391,13 +37373,13 @@ var jj = c({
|
|
|
37391
37373
|
zoomViewport: o
|
|
37392
37374
|
};
|
|
37393
37375
|
}
|
|
37394
|
-
}),
|
|
37376
|
+
}), Fj = { class: "containers" }, Ij = {
|
|
37395
37377
|
ref: "flowCanvasRef",
|
|
37396
37378
|
class: "canvas"
|
|
37397
37379
|
};
|
|
37398
|
-
function
|
|
37380
|
+
function Lj(e, t, n, r, o, c) {
|
|
37399
37381
|
let l = b("a-spin"), u = b("DragOutlined"), d = b("a-button"), f = b("a-tooltip"), p = b("ZoomInOutlined"), m = b("ZoomOutOutlined"), g = b("a-space"), _ = b("a-layout-content"), v = b("a-layout");
|
|
37400
|
-
return h(), i("div",
|
|
37382
|
+
return h(), i("div", Fj, [s(v, { style: {
|
|
37401
37383
|
"align-items": "stretch",
|
|
37402
37384
|
height: "100%"
|
|
37403
37385
|
} }, {
|
|
@@ -37413,7 +37395,7 @@ function Pj(e, t, n, r, o, c) {
|
|
|
37413
37395
|
spinning: e.loading,
|
|
37414
37396
|
wrapperClassName: "canvas-wrapper"
|
|
37415
37397
|
}, {
|
|
37416
|
-
default: w(() => [a("div",
|
|
37398
|
+
default: w(() => [a("div", Ij, null, 512)]),
|
|
37417
37399
|
_: 1
|
|
37418
37400
|
}, 8, ["spinning"]),
|
|
37419
37401
|
s(g, {
|
|
@@ -37460,8 +37442,675 @@ function Pj(e, t, n, r, o, c) {
|
|
|
37460
37442
|
_: 1
|
|
37461
37443
|
})]);
|
|
37462
37444
|
}
|
|
37463
|
-
var
|
|
37464
|
-
|
|
37445
|
+
var Rj = /* @__PURE__ */ BO(Pj, [["render", Lj], ["__scopeId", "data-v-2260b7fd"]]), zj = { class: "form-container" }, Bj = { class: "header-container" }, Vj = { class: "serial-number" }, Hj = { class: "article-title" }, Uj = {
|
|
37446
|
+
class: "form-body descriptions",
|
|
37447
|
+
style: { "padding-bottom": "10px" }
|
|
37448
|
+
}, Wj = { class: "xinxi-title" }, Gj = { style: {
|
|
37449
|
+
"white-space": "pre-line",
|
|
37450
|
+
margin: "0",
|
|
37451
|
+
color: "#909399"
|
|
37452
|
+
} }, Kj = { key: 0 }, qj = { key: 0 }, Jj = { style: {
|
|
37453
|
+
overflow: "hidden",
|
|
37454
|
+
"text-overflow": "ellipsis",
|
|
37455
|
+
"white-space": "nowrap",
|
|
37456
|
+
width: "100%",
|
|
37457
|
+
"user-select": "text",
|
|
37458
|
+
"text-align": "left"
|
|
37459
|
+
} }, Yj = { style: {
|
|
37460
|
+
"white-space": "pre-line",
|
|
37461
|
+
margin: "0",
|
|
37462
|
+
color: "#909399"
|
|
37463
|
+
} }, Xj = { key: 0 }, Zj = { key: 0 }, Qj = { style: {
|
|
37464
|
+
overflow: "hidden",
|
|
37465
|
+
"text-overflow": "ellipsis",
|
|
37466
|
+
"white-space": "nowrap",
|
|
37467
|
+
width: "100%",
|
|
37468
|
+
"user-select": "text",
|
|
37469
|
+
"text-align": "left"
|
|
37470
|
+
} }, $j = { style: {
|
|
37471
|
+
"white-space": "pre-line",
|
|
37472
|
+
margin: "0",
|
|
37473
|
+
color: "#909399"
|
|
37474
|
+
} }, eM = { key: 0 }, tM = { key: 0 }, nM = { style: {
|
|
37475
|
+
overflow: "hidden",
|
|
37476
|
+
"text-overflow": "ellipsis",
|
|
37477
|
+
"white-space": "nowrap",
|
|
37478
|
+
width: "100%",
|
|
37479
|
+
"user-select": "text",
|
|
37480
|
+
"text-align": "left"
|
|
37481
|
+
} }, rM = { style: {
|
|
37482
|
+
"white-space": "pre-line",
|
|
37483
|
+
margin: "0",
|
|
37484
|
+
color: "#909399"
|
|
37485
|
+
} }, iM = { key: 0 }, aM = { key: 0 }, oM = { style: {
|
|
37486
|
+
overflow: "hidden",
|
|
37487
|
+
"text-overflow": "ellipsis",
|
|
37488
|
+
"white-space": "nowrap",
|
|
37489
|
+
width: "100%",
|
|
37490
|
+
"user-select": "text",
|
|
37491
|
+
"text-align": "left"
|
|
37492
|
+
} }, sM = { style: {
|
|
37493
|
+
height: "400px",
|
|
37494
|
+
"margin-top": "10px"
|
|
37495
|
+
} }, cM = /* @__PURE__ */ BO(/* @__PURE__ */ c({
|
|
37496
|
+
name: "ApprovalForDetails",
|
|
37497
|
+
__name: "approval_for_details",
|
|
37498
|
+
props: { record: {} },
|
|
37499
|
+
setup(t) {
|
|
37500
|
+
let c = bk(), l = t, u = v([]), d = _({}), f = v({}), p = [
|
|
37501
|
+
{
|
|
37502
|
+
title: "序号",
|
|
37503
|
+
dataIndex: "index",
|
|
37504
|
+
width: 50,
|
|
37505
|
+
ellipsis: !0,
|
|
37506
|
+
fixed: "left"
|
|
37507
|
+
},
|
|
37508
|
+
{
|
|
37509
|
+
title: "审批步骤",
|
|
37510
|
+
dataIndex: "name",
|
|
37511
|
+
minWidth: 150,
|
|
37512
|
+
ellipsis: !0,
|
|
37513
|
+
resizable: !0
|
|
37514
|
+
},
|
|
37515
|
+
{
|
|
37516
|
+
title: "职位",
|
|
37517
|
+
dataIndex: "approval_position__name",
|
|
37518
|
+
minWidth: 150,
|
|
37519
|
+
ellipsis: !0,
|
|
37520
|
+
resizable: !0
|
|
37521
|
+
},
|
|
37522
|
+
{
|
|
37523
|
+
title: "审批人",
|
|
37524
|
+
dataIndex: "assignee__realname",
|
|
37525
|
+
minWidth: 150,
|
|
37526
|
+
ellipsis: !0,
|
|
37527
|
+
resizable: !0
|
|
37528
|
+
},
|
|
37529
|
+
{
|
|
37530
|
+
title: "操作",
|
|
37531
|
+
dataIndex: "approval_result",
|
|
37532
|
+
minWidth: 150,
|
|
37533
|
+
ellipsis: !0,
|
|
37534
|
+
resizable: !0
|
|
37535
|
+
},
|
|
37536
|
+
{
|
|
37537
|
+
title: "审批意见",
|
|
37538
|
+
dataIndex: "comment",
|
|
37539
|
+
minWidth: 150,
|
|
37540
|
+
ellipsis: !0,
|
|
37541
|
+
resizable: !0
|
|
37542
|
+
},
|
|
37543
|
+
{
|
|
37544
|
+
title: "时间",
|
|
37545
|
+
dataIndex: "end_time",
|
|
37546
|
+
minWidth: 150,
|
|
37547
|
+
ellipsis: !0,
|
|
37548
|
+
resizable: !0
|
|
37549
|
+
}
|
|
37550
|
+
], g = [
|
|
37551
|
+
{
|
|
37552
|
+
title: "序号",
|
|
37553
|
+
dataIndex: "index",
|
|
37554
|
+
width: 50,
|
|
37555
|
+
ellipsis: !0,
|
|
37556
|
+
fixed: "left"
|
|
37557
|
+
},
|
|
37558
|
+
{
|
|
37559
|
+
title: "审批步骤",
|
|
37560
|
+
dataIndex: "name",
|
|
37561
|
+
width: 150,
|
|
37562
|
+
ellipsis: !0,
|
|
37563
|
+
resizable: !0
|
|
37564
|
+
},
|
|
37565
|
+
{
|
|
37566
|
+
title: "职位",
|
|
37567
|
+
dataIndex: "jue_se",
|
|
37568
|
+
width: 150,
|
|
37569
|
+
ellipsis: !0,
|
|
37570
|
+
resizable: !0
|
|
37571
|
+
},
|
|
37572
|
+
{
|
|
37573
|
+
title: "步骤审批人",
|
|
37574
|
+
dataIndex: "list",
|
|
37575
|
+
minWidth: 150,
|
|
37576
|
+
ellipsis: !0,
|
|
37577
|
+
resizable: !0
|
|
37578
|
+
}
|
|
37579
|
+
], S = v([]), C = (e) => e != null && e !== "", T = (e, t, n) => {
|
|
37580
|
+
let r = [], i = (e, t, n) => e?.form?.dynamicFieldList ? e.form.dynamicFieldList.flatMap((r) => r.children.map((r) => {
|
|
37581
|
+
let a = {
|
|
37582
|
+
label: r.label,
|
|
37583
|
+
type: r.type,
|
|
37584
|
+
value: "",
|
|
37585
|
+
column: r?.column || 3,
|
|
37586
|
+
is_hide: e?.showType == "table" ? r?.is_table_hide_column || !1 : r?.is_hide || !1
|
|
37587
|
+
};
|
|
37588
|
+
return r.type === "formtemplate" ? t?.[r.name]?.length > 0 && (a.children = [], t[r.name].forEach((e) => {
|
|
37589
|
+
a.children.push(i(r, e, r.form.options));
|
|
37590
|
+
})) : r.type === "select" || r.type === "radio" ? C(t?.[r.name]) && (a.value = n?.[r.name]?.find((e) => e.value == t[r.name])?.name || "") : r.type === "checkbox" ? C(t?.[r.name]) && (a.value = (n?.[r.name]?.filter((e) => t[r.name].includes(e.value))?.map((e) => e.name)?.filter(Boolean))?.join(",") || "") : r.type === "remoteselectpro" ? C(t?.[r.name + ".label"]) && (a.value = t[r.name + ".label"]) : r.type === "remotetablepro" ? (a.children = [], t?.[r.name]?.length > 0 && t[r.name].forEach((e) => {
|
|
37591
|
+
let t = [];
|
|
37592
|
+
r?.children?.length > 0 && r.children.forEach((n) => {
|
|
37593
|
+
n?.children?.length > 0 && n.children.forEach((n) => {
|
|
37594
|
+
let r = {
|
|
37595
|
+
label: n.label,
|
|
37596
|
+
type: n.type,
|
|
37597
|
+
value: ""
|
|
37598
|
+
};
|
|
37599
|
+
n.type === "select" || n.type === "radio" || n.type === "checkbox" || n.type === "remoteselectpro" ? r.value = e?.[n.name2] || "" : r.value = e?.[n.name] || "", t.push(r);
|
|
37600
|
+
});
|
|
37601
|
+
}), a.children.push(t);
|
|
37602
|
+
})) : a.value = t?.[r.name] || "", a;
|
|
37603
|
+
})) : [];
|
|
37604
|
+
return e.forEach((e) => {
|
|
37605
|
+
if (e?.children?.length > 0) {
|
|
37606
|
+
let a = {
|
|
37607
|
+
group_name: e?.group_name || "",
|
|
37608
|
+
children: [],
|
|
37609
|
+
column: e?.column || 3
|
|
37610
|
+
};
|
|
37611
|
+
e.children.forEach((e) => {
|
|
37612
|
+
let r = {
|
|
37613
|
+
label: e.label,
|
|
37614
|
+
type: e.type,
|
|
37615
|
+
column: e?.column || 3,
|
|
37616
|
+
value: ""
|
|
37617
|
+
};
|
|
37618
|
+
e.type === "remoteselectpro" ? C(t?.[e.name + ".label"]) && (r.value = t?.[e.name + ".label"]) : e.type === "select" || e.type === "radio" ? C(t?.[e.name]) && (r.value = n?.[e.name]?.find((n) => n.value == t[e.name])?.name || "") : e.type === "checkbox" ? C(t?.[e.name]) && (r.value = (n?.[e.name]?.filter((n) => t[e.name].includes(n.value))?.map((e) => e.name)?.filter(Boolean))?.join(",") || "") : e.type === "remotetablepro" ? (r.children = [], t?.[e.name]?.length > 0 && t[e.name].forEach((t) => {
|
|
37619
|
+
let n = [];
|
|
37620
|
+
e?.children?.length > 0 && e.children.forEach((e) => {
|
|
37621
|
+
e?.children?.length > 0 && e.children.forEach((e) => {
|
|
37622
|
+
let r = {
|
|
37623
|
+
label: e.label,
|
|
37624
|
+
type: e.type,
|
|
37625
|
+
value: ""
|
|
37626
|
+
};
|
|
37627
|
+
e.type === "select" || e.type === "radio" || e.type === "checkbox" || e.type === "remoteselectpro" ? r.value = t?.[e.name2] || "" : r.value = t?.[e.name] || "", n.push(r);
|
|
37628
|
+
});
|
|
37629
|
+
}), r.children.push(n);
|
|
37630
|
+
})) : e.type === "formtemplate" ? t?.[e.name]?.length > 0 && (r.children = [], t[e.name].forEach((t) => {
|
|
37631
|
+
r.children.push(i(e, t, e.form.options));
|
|
37632
|
+
})) : r.value = t?.[e.name] || "", a.children.push(r);
|
|
37633
|
+
}), r.push(a);
|
|
37634
|
+
}
|
|
37635
|
+
}), r;
|
|
37636
|
+
}, E = (e) => {
|
|
37637
|
+
let t = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("userTask"), n = [];
|
|
37638
|
+
for (let e of t) {
|
|
37639
|
+
let t = e.getAttribute("name") || "", r = e.getAttribute("flowable:userType") || "", i = "";
|
|
37640
|
+
r === "candidateGroups" && (i = e.getAttribute("flowable:candidateGroups") || ""), r === "assignee" && (i = e.getAttribute("flowable:assignee") || ""), r === "candidateUsers" && (i = e.getAttribute("flowable:candidateUsers") || ""), n.push({
|
|
37641
|
+
name: t,
|
|
37642
|
+
type: r,
|
|
37643
|
+
value: i
|
|
37644
|
+
});
|
|
37645
|
+
}
|
|
37646
|
+
return n;
|
|
37647
|
+
}, D = v([]);
|
|
37648
|
+
m(() => {
|
|
37649
|
+
c({ approve_record_id: l.record.id }, "/approve/get_approve_record_info").then(async (e) => {
|
|
37650
|
+
u.value = T(e.form_definition__data.dynamicFieldList, e.form_data, e.form_definition__data.options), f.value = {
|
|
37651
|
+
xmlData: e.xml_data,
|
|
37652
|
+
nodeData: e.node_data
|
|
37653
|
+
};
|
|
37654
|
+
let t = await c({ is_active: !0 }, "/sys/query_person_detail_list"), n = await c({
|
|
37655
|
+
is_active: !0,
|
|
37656
|
+
column_fields: ["approvers_m2m_json", "name"]
|
|
37657
|
+
}, "/lyapprove/query_approval_position_list");
|
|
37658
|
+
D.value = E(e.xml_data), D.value = D.value.map((e, t) => ({
|
|
37659
|
+
...e,
|
|
37660
|
+
id: t,
|
|
37661
|
+
value: e.value ? e.value.split(",").filter(Boolean).map(Number) : null
|
|
37662
|
+
})), D.value.forEach((e) => {
|
|
37663
|
+
e.value && e.value.length > 0 && (e.list = [], (e.type == "assignee" || e.type == "candidateUsers") && e.value.forEach((n) => {
|
|
37664
|
+
t.data.forEach((t) => {
|
|
37665
|
+
n == t.id && e.list.push({ realname: t.realname });
|
|
37666
|
+
});
|
|
37667
|
+
}), e.type == "candidateGroups" && e.value.forEach((t) => {
|
|
37668
|
+
n.data.forEach((n) => {
|
|
37669
|
+
t == n.id && (e.jue_se = n.name, e.list = n.approvers_m2m_json);
|
|
37670
|
+
});
|
|
37671
|
+
}));
|
|
37672
|
+
}), Object.assign(d, e), e.process_instance_id && (S.value.push({
|
|
37673
|
+
name: "开始",
|
|
37674
|
+
id: 0,
|
|
37675
|
+
approval_position__name: d?.form_data?.globalData?.person_position?.name ? d.form_data.globalData.person_position.name : "",
|
|
37676
|
+
assignee__realname: e.send_person__realname,
|
|
37677
|
+
approval_result: "发起",
|
|
37678
|
+
comment: "",
|
|
37679
|
+
end_time: e.start_time
|
|
37680
|
+
}), c({ process_instance_id: e.process_instance_id }, "/lyapprove/query_task_list").then((e) => {
|
|
37681
|
+
e && e.data && e.data.length > 0 && e.data.sort((e, t) => e.id - t.id).forEach((e) => {
|
|
37682
|
+
e.status == "完成" && S.value.push({
|
|
37683
|
+
...e,
|
|
37684
|
+
approval_result: e.approval_result === "agree" ? "通过" : e.approval_result === "refuse" ? "拒绝" : ""
|
|
37685
|
+
});
|
|
37686
|
+
}), S.value = [].concat(S.value);
|
|
37687
|
+
}));
|
|
37688
|
+
});
|
|
37689
|
+
});
|
|
37690
|
+
let O = (e) => {
|
|
37691
|
+
let t = /* @__PURE__ */ new Set();
|
|
37692
|
+
return e.filter((e) => !t.has(e.title) && t.add(e.title));
|
|
37693
|
+
}, k = (e) => {
|
|
37694
|
+
let t = [];
|
|
37695
|
+
return e && e.length > 0 && e[0].forEach((e, n) => {
|
|
37696
|
+
e.type === "upload" ? t.push({
|
|
37697
|
+
title: e.label,
|
|
37698
|
+
dataIndex: "upload_" + n,
|
|
37699
|
+
minWidth: 150,
|
|
37700
|
+
resizable: !0,
|
|
37701
|
+
autoHeight: !0
|
|
37702
|
+
}) : t.push({
|
|
37703
|
+
title: e.label,
|
|
37704
|
+
dataIndex: "value_" + n,
|
|
37705
|
+
resizable: !0,
|
|
37706
|
+
autoHeight: !0
|
|
37707
|
+
});
|
|
37708
|
+
}), O(t);
|
|
37709
|
+
}, ee = (e) => {
|
|
37710
|
+
let t = [];
|
|
37711
|
+
return e && e.length > 0 && e.forEach((e, n) => {
|
|
37712
|
+
let r = {};
|
|
37713
|
+
e.forEach((e, t) => {
|
|
37714
|
+
e.type === "upload" ? r["upload_" + t] = e.value : r["value_" + t] = e.value;
|
|
37715
|
+
}), t.push({
|
|
37716
|
+
...r,
|
|
37717
|
+
index: n
|
|
37718
|
+
});
|
|
37719
|
+
}), t;
|
|
37720
|
+
}, te = (e) => (e &&= e.substring(0, 10), e), ne = (e) => {
|
|
37721
|
+
window.open(encodeURI(e), "_blank");
|
|
37722
|
+
};
|
|
37723
|
+
return (c, l) => {
|
|
37724
|
+
let m = b("a-descriptions-item"), _ = b("a-descriptions"), v = b("a-button"), C = b("s-table"), T = b("a-tag");
|
|
37725
|
+
return h(), i("div", zj, [a("div", Bj, [a("div", Vj, "流程编码:" + x(t.record?.number), 1), a("div", Hj, x(d?.context) + "(" + x(d?.flow_name) + ")", 1)]), a("div", Uj, [
|
|
37726
|
+
l[2] ||= a("div", {
|
|
37727
|
+
class: "xinxi-title",
|
|
37728
|
+
style: { "margin-top": "0" }
|
|
37729
|
+
}, " 基本信息 ", -1),
|
|
37730
|
+
s(_, { bordered: "" }, {
|
|
37731
|
+
default: w(() => [
|
|
37732
|
+
s(m, { label: "发起人" }, {
|
|
37733
|
+
default: w(() => [o(x(d?.send_person__realname), 1)]),
|
|
37734
|
+
_: 1
|
|
37735
|
+
}),
|
|
37736
|
+
s(m, { label: "切换组织" }, {
|
|
37737
|
+
default: w(() => [o(x(d?.form_data?.globalData?.cost_company?.name), 1)]),
|
|
37738
|
+
_: 1
|
|
37739
|
+
}),
|
|
37740
|
+
s(m, { label: "切换部门" }, {
|
|
37741
|
+
default: w(() => [o(x(d?.form_data?.globalData?.cost_department?.name), 1)]),
|
|
37742
|
+
_: 1
|
|
37743
|
+
}),
|
|
37744
|
+
s(m, { label: "员工职位" }, {
|
|
37745
|
+
default: w(() => [o(x(d?.form_data?.globalData?.person_position?.name), 1)]),
|
|
37746
|
+
_: 1
|
|
37747
|
+
}),
|
|
37748
|
+
s(m, { label: "员工组织" }, {
|
|
37749
|
+
default: w(() => [o(x(d?.form_data?.globalData?.person_cost_company?.name), 1)]),
|
|
37750
|
+
_: 1
|
|
37751
|
+
}),
|
|
37752
|
+
s(m, { label: "员工部门" }, {
|
|
37753
|
+
default: w(() => [o(x(d?.form_data?.globalData?.person_department?.name), 1)]),
|
|
37754
|
+
_: 1
|
|
37755
|
+
}),
|
|
37756
|
+
s(m, { label: "发起时间" }, {
|
|
37757
|
+
default: w(() => [o(x(te(d?.start_time)), 1)]),
|
|
37758
|
+
_: 1
|
|
37759
|
+
}),
|
|
37760
|
+
s(m, {
|
|
37761
|
+
span: 2,
|
|
37762
|
+
label: "结束时间"
|
|
37763
|
+
}, {
|
|
37764
|
+
default: w(() => [o(x(te(d?.finish_time)), 1)]),
|
|
37765
|
+
_: 1
|
|
37766
|
+
}),
|
|
37767
|
+
s(m, { label: "流程主题" }, {
|
|
37768
|
+
default: w(() => [o(x(d?.context), 1)]),
|
|
37769
|
+
_: 1
|
|
37770
|
+
})
|
|
37771
|
+
]),
|
|
37772
|
+
_: 1
|
|
37773
|
+
}),
|
|
37774
|
+
(h(!0), i(e, null, y(u.value, (t, c) => (h(), i(e, { key: c }, [
|
|
37775
|
+
a("div", Wj, x(t?.group_name ? t.group_name : "审批信息" + (c + 1)), 1),
|
|
37776
|
+
s(_, {
|
|
37777
|
+
bordered: "",
|
|
37778
|
+
column: t?.column ? t?.column : 3
|
|
37779
|
+
}, {
|
|
37780
|
+
default: w(() => [(h(!0), i(e, null, y(t.children, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" ? (h(), n(m, {
|
|
37781
|
+
key: 0,
|
|
37782
|
+
label: t.label
|
|
37783
|
+
}, {
|
|
37784
|
+
default: w(() => [a("p", Gj, x(t.value), 1)]),
|
|
37785
|
+
_: 2
|
|
37786
|
+
}, 1032, ["label"])) : t.type === "upload" ? (h(), n(m, {
|
|
37787
|
+
key: 1,
|
|
37788
|
+
label: t.label
|
|
37789
|
+
}, {
|
|
37790
|
+
default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", Kj)) : r("", !0), s(v, {
|
|
37791
|
+
type: "link",
|
|
37792
|
+
onClick: (e) => ne(t.url)
|
|
37793
|
+
}, {
|
|
37794
|
+
default: w(() => [o(x(t.name), 1)]),
|
|
37795
|
+
_: 2
|
|
37796
|
+
}, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
|
|
37797
|
+
_: 2
|
|
37798
|
+
}, 1032, ["label"])) : (h(), n(m, {
|
|
37799
|
+
key: 2,
|
|
37800
|
+
label: t.label,
|
|
37801
|
+
span: 1
|
|
37802
|
+
}, {
|
|
37803
|
+
default: w(() => [o(x(t.value), 1)]),
|
|
37804
|
+
_: 2
|
|
37805
|
+
}, 1032, ["label"]))], 64)) : r("", !0)], 64))), 128))]),
|
|
37806
|
+
_: 2
|
|
37807
|
+
}, 1032, ["column"]),
|
|
37808
|
+
s(_, {
|
|
37809
|
+
bordered: "",
|
|
37810
|
+
column: t?.column ? t?.column : 3
|
|
37811
|
+
}, {
|
|
37812
|
+
default: w(() => [(h(!0), i(e, null, y(t.children, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" ? (h(), n(m, {
|
|
37813
|
+
key: 0,
|
|
37814
|
+
label: t.label,
|
|
37815
|
+
span: 3
|
|
37816
|
+
}, {
|
|
37817
|
+
default: w(() => [s(C, {
|
|
37818
|
+
columns: k(t.children),
|
|
37819
|
+
"data-source": ee(t.children),
|
|
37820
|
+
pagination: !1,
|
|
37821
|
+
rangeSelection: !1,
|
|
37822
|
+
"row-key": "index",
|
|
37823
|
+
bordered: "",
|
|
37824
|
+
size: "small",
|
|
37825
|
+
stripe: ""
|
|
37826
|
+
}, {
|
|
37827
|
+
bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", qj)) : r("", !0), s(v, {
|
|
37828
|
+
title: t.name,
|
|
37829
|
+
style: {
|
|
37830
|
+
"padding-left": "1px",
|
|
37831
|
+
width: "100%"
|
|
37832
|
+
},
|
|
37833
|
+
type: "link",
|
|
37834
|
+
onClick: (e) => ne(t.url)
|
|
37835
|
+
}, {
|
|
37836
|
+
default: w(() => [a("span", Jj, x(t.name), 1)]),
|
|
37837
|
+
_: 2
|
|
37838
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
|
|
37839
|
+
_: 1
|
|
37840
|
+
}, 8, ["columns", "data-source"])]),
|
|
37841
|
+
_: 2
|
|
37842
|
+
}, 1032, ["label"])) : r("", !0), t.type === "formtemplate" ? (h(), n(m, {
|
|
37843
|
+
key: 1,
|
|
37844
|
+
label: t.label,
|
|
37845
|
+
span: 3
|
|
37846
|
+
}, {
|
|
37847
|
+
default: w(() => [(h(!0), i(e, null, y(t.children, (c, l) => (h(), i(e, { key: l }, [s(_, {
|
|
37848
|
+
bordered: "",
|
|
37849
|
+
column: t?.column ? t?.column : 3
|
|
37850
|
+
}, {
|
|
37851
|
+
default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" && !t.is_hide ? (h(), n(m, {
|
|
37852
|
+
key: 0,
|
|
37853
|
+
label: t.label
|
|
37854
|
+
}, {
|
|
37855
|
+
default: w(() => [a("p", Yj, x(t.value), 1)]),
|
|
37856
|
+
_: 2
|
|
37857
|
+
}, 1032, ["label"])) : t.type === "upload" && !t.is_hide ? (h(), n(m, {
|
|
37858
|
+
key: 1,
|
|
37859
|
+
label: t.label
|
|
37860
|
+
}, {
|
|
37861
|
+
default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", Xj)) : r("", !0), s(v, {
|
|
37862
|
+
type: "link",
|
|
37863
|
+
onClick: (e) => ne(t.url)
|
|
37864
|
+
}, {
|
|
37865
|
+
default: w(() => [o(x(t.name), 1)]),
|
|
37866
|
+
_: 2
|
|
37867
|
+
}, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
|
|
37868
|
+
_: 2
|
|
37869
|
+
}, 1032, ["label"])) : (h(), i(e, { key: 2 }, [t.is_hide ? r("", !0) : (h(), n(m, {
|
|
37870
|
+
key: 0,
|
|
37871
|
+
label: t.label
|
|
37872
|
+
}, {
|
|
37873
|
+
default: w(() => [o(x(t.value), 1)]),
|
|
37874
|
+
_: 2
|
|
37875
|
+
}, 1032, ["label"]))], 64))], 64)) : r("", !0)], 64))), 128))]),
|
|
37876
|
+
_: 2
|
|
37877
|
+
}, 1032, ["column"]), s(_, {
|
|
37878
|
+
bordered: "",
|
|
37879
|
+
column: t?.column ? t?.column : 3
|
|
37880
|
+
}, {
|
|
37881
|
+
default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" && !t.is_hide ? (h(), n(m, {
|
|
37882
|
+
key: 0,
|
|
37883
|
+
label: t.label,
|
|
37884
|
+
span: 3
|
|
37885
|
+
}, {
|
|
37886
|
+
default: w(() => [s(C, {
|
|
37887
|
+
columns: k(t.children),
|
|
37888
|
+
"data-source": ee(t.children),
|
|
37889
|
+
pagination: !1,
|
|
37890
|
+
rangeSelection: !1,
|
|
37891
|
+
"row-key": "index",
|
|
37892
|
+
bordered: "",
|
|
37893
|
+
size: "small",
|
|
37894
|
+
stripe: ""
|
|
37895
|
+
}, {
|
|
37896
|
+
bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", Zj)) : r("", !0), s(v, {
|
|
37897
|
+
title: t.name,
|
|
37898
|
+
style: {
|
|
37899
|
+
"padding-left": "1px",
|
|
37900
|
+
width: "100%"
|
|
37901
|
+
},
|
|
37902
|
+
type: "link",
|
|
37903
|
+
onClick: (e) => ne(t.url)
|
|
37904
|
+
}, {
|
|
37905
|
+
default: w(() => [a("span", Qj, x(t.name), 1)]),
|
|
37906
|
+
_: 2
|
|
37907
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
|
|
37908
|
+
_: 1
|
|
37909
|
+
}, 8, ["columns", "data-source"])]),
|
|
37910
|
+
_: 2
|
|
37911
|
+
}, 1032, ["label"])) : r("", !0), t.type === "formtemplate" && !t.is_hide ? (h(), n(m, {
|
|
37912
|
+
key: 1,
|
|
37913
|
+
label: t.label,
|
|
37914
|
+
span: 3
|
|
37915
|
+
}, {
|
|
37916
|
+
default: w(() => [(h(!0), i(e, null, y(t.children, (c, l) => (h(), i(e, { key: l }, [s(_, {
|
|
37917
|
+
bordered: "",
|
|
37918
|
+
column: t?.column ? t?.column : 3
|
|
37919
|
+
}, {
|
|
37920
|
+
default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" && !t.is_hide ? (h(), n(m, {
|
|
37921
|
+
key: 0,
|
|
37922
|
+
label: t.label
|
|
37923
|
+
}, {
|
|
37924
|
+
default: w(() => [a("p", $j, x(t.value), 1)]),
|
|
37925
|
+
_: 2
|
|
37926
|
+
}, 1032, ["label"])) : t.type === "upload" && !t.is_hide ? (h(), n(m, {
|
|
37927
|
+
key: 1,
|
|
37928
|
+
label: t.label
|
|
37929
|
+
}, {
|
|
37930
|
+
default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", eM)) : r("", !0), s(v, {
|
|
37931
|
+
type: "link",
|
|
37932
|
+
onClick: (e) => ne(t.url)
|
|
37933
|
+
}, {
|
|
37934
|
+
default: w(() => [o(x(t.name), 1)]),
|
|
37935
|
+
_: 2
|
|
37936
|
+
}, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
|
|
37937
|
+
_: 2
|
|
37938
|
+
}, 1032, ["label"])) : (h(), i(e, { key: 2 }, [t.is_hide ? r("", !0) : (h(), n(m, {
|
|
37939
|
+
key: 0,
|
|
37940
|
+
label: t.label
|
|
37941
|
+
}, {
|
|
37942
|
+
default: w(() => [o(x(t.value), 1)]),
|
|
37943
|
+
_: 2
|
|
37944
|
+
}, 1032, ["label"]))], 64))], 64)) : r("", !0)], 64))), 128))]),
|
|
37945
|
+
_: 2
|
|
37946
|
+
}, 1032, ["column"]), s(_, {
|
|
37947
|
+
bordered: "",
|
|
37948
|
+
column: t?.column ? t?.column : 3
|
|
37949
|
+
}, {
|
|
37950
|
+
default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" ? (h(), n(m, {
|
|
37951
|
+
key: 0,
|
|
37952
|
+
label: t.label,
|
|
37953
|
+
span: 3
|
|
37954
|
+
}, {
|
|
37955
|
+
default: w(() => [s(C, {
|
|
37956
|
+
columns: k(t.children),
|
|
37957
|
+
"data-source": ee(t.children),
|
|
37958
|
+
pagination: !1,
|
|
37959
|
+
rangeSelection: !1,
|
|
37960
|
+
"row-key": "index",
|
|
37961
|
+
bordered: "",
|
|
37962
|
+
size: "small",
|
|
37963
|
+
stripe: ""
|
|
37964
|
+
}, {
|
|
37965
|
+
bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", tM)) : r("", !0), s(v, {
|
|
37966
|
+
title: t.name,
|
|
37967
|
+
style: {
|
|
37968
|
+
"padding-left": "1px",
|
|
37969
|
+
width: "100%"
|
|
37970
|
+
},
|
|
37971
|
+
type: "link",
|
|
37972
|
+
onClick: (e) => ne(t.url)
|
|
37973
|
+
}, {
|
|
37974
|
+
default: w(() => [a("span", nM, x(t.name), 1)]),
|
|
37975
|
+
_: 2
|
|
37976
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
|
|
37977
|
+
_: 1
|
|
37978
|
+
}, 8, ["columns", "data-source"])]),
|
|
37979
|
+
_: 2
|
|
37980
|
+
}, 1032, ["label"])) : r("", !0), t.type === "formtemplate" ? (h(), n(m, {
|
|
37981
|
+
key: 1,
|
|
37982
|
+
label: t.label,
|
|
37983
|
+
span: 3
|
|
37984
|
+
}, {
|
|
37985
|
+
default: w(() => [(h(!0), i(e, null, y(t.children, (c, l) => (h(), i(e, { key: l }, [s(_, {
|
|
37986
|
+
bordered: "",
|
|
37987
|
+
column: t?.column ? t?.column : 3
|
|
37988
|
+
}, {
|
|
37989
|
+
default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" && !t.is_hide ? (h(), n(m, {
|
|
37990
|
+
key: 0,
|
|
37991
|
+
label: t.label
|
|
37992
|
+
}, {
|
|
37993
|
+
default: w(() => [a("p", rM, x(t.value), 1)]),
|
|
37994
|
+
_: 2
|
|
37995
|
+
}, 1032, ["label"])) : t.type === "upload" && !t.is_hide ? (h(), n(m, {
|
|
37996
|
+
key: 1,
|
|
37997
|
+
label: t.label
|
|
37998
|
+
}, {
|
|
37999
|
+
default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", iM)) : r("", !0), s(v, {
|
|
38000
|
+
type: "link",
|
|
38001
|
+
onClick: (e) => ne(t.url)
|
|
38002
|
+
}, {
|
|
38003
|
+
default: w(() => [o(x(t.name), 1)]),
|
|
38004
|
+
_: 2
|
|
38005
|
+
}, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
|
|
38006
|
+
_: 2
|
|
38007
|
+
}, 1032, ["label"])) : (h(), i(e, { key: 2 }, [t.is_hide ? r("", !0) : (h(), n(m, {
|
|
38008
|
+
key: 0,
|
|
38009
|
+
label: t.label
|
|
38010
|
+
}, {
|
|
38011
|
+
default: w(() => [o(x(t.value), 1)]),
|
|
38012
|
+
_: 2
|
|
38013
|
+
}, 1032, ["label"]))], 64))], 64)) : r("", !0)], 64))), 128))]),
|
|
38014
|
+
_: 2
|
|
38015
|
+
}, 1032, ["column"]), s(_, {
|
|
38016
|
+
bordered: "",
|
|
38017
|
+
column: t?.column ? t?.column : 3
|
|
38018
|
+
}, {
|
|
38019
|
+
default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" ? (h(), n(m, {
|
|
38020
|
+
key: 0,
|
|
38021
|
+
label: t.label,
|
|
38022
|
+
span: 3
|
|
38023
|
+
}, {
|
|
38024
|
+
default: w(() => [s(C, {
|
|
38025
|
+
columns: k(t.children),
|
|
38026
|
+
"data-source": ee(t.children),
|
|
38027
|
+
pagination: !1,
|
|
38028
|
+
rangeSelection: !1,
|
|
38029
|
+
"row-key": "index",
|
|
38030
|
+
bordered: "",
|
|
38031
|
+
size: "small",
|
|
38032
|
+
stripe: ""
|
|
38033
|
+
}, {
|
|
38034
|
+
bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", aM)) : r("", !0), s(v, {
|
|
38035
|
+
title: t.name,
|
|
38036
|
+
style: {
|
|
38037
|
+
"padding-left": "1px",
|
|
38038
|
+
width: "100%"
|
|
38039
|
+
},
|
|
38040
|
+
type: "link",
|
|
38041
|
+
onClick: (e) => ne(t.url)
|
|
38042
|
+
}, {
|
|
38043
|
+
default: w(() => [a("span", oM, x(t.name), 1)]),
|
|
38044
|
+
_: 2
|
|
38045
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
|
|
38046
|
+
_: 1
|
|
38047
|
+
}, 8, ["columns", "data-source"])]),
|
|
38048
|
+
_: 2
|
|
38049
|
+
}, 1032, ["label"])) : r("", !0)], 64))), 128))]),
|
|
38050
|
+
_: 2
|
|
38051
|
+
}, 1032, ["column"])], 64))), 128))]),
|
|
38052
|
+
_: 2
|
|
38053
|
+
}, 1032, ["label"])) : r("", !0)], 64))), 128))]),
|
|
38054
|
+
_: 2
|
|
38055
|
+
}, 1032, ["column"])], 64))), 128))]),
|
|
38056
|
+
_: 2
|
|
38057
|
+
}, 1032, ["label"])) : r("", !0)], 64))), 128))]),
|
|
38058
|
+
_: 2
|
|
38059
|
+
}, 1032, ["column"])], 64))), 128))]),
|
|
38060
|
+
_: 2
|
|
38061
|
+
}, 1032, ["label"])) : r("", !0)], 64))), 128))]),
|
|
38062
|
+
_: 2
|
|
38063
|
+
}, 1032, ["column"])
|
|
38064
|
+
], 64))), 128)),
|
|
38065
|
+
S.value.length > 0 ? (h(), i(e, { key: 0 }, [l[0] ||= a("div", { class: "xinxi-title" }, "审批记录", -1), s(C, {
|
|
38066
|
+
columns: p,
|
|
38067
|
+
"data-source": S.value,
|
|
38068
|
+
pagination: !1,
|
|
38069
|
+
rangeSelection: !1,
|
|
38070
|
+
scroll: { y: 400 },
|
|
38071
|
+
rowKey: "id",
|
|
38072
|
+
bordered: "",
|
|
38073
|
+
size: "small",
|
|
38074
|
+
stripe: ""
|
|
38075
|
+
}, {
|
|
38076
|
+
bodyCell: w(({ column: t, index: n, text: r, record: a }) => [t.dataIndex == "index" ? (h(), i(e, { key: 0 }, [o(x(n + 1), 1)], 64)) : (h(), i(e, { key: 1 }, [o(x(r), 1)], 64))]),
|
|
38077
|
+
_: 1
|
|
38078
|
+
}, 8, ["data-source"])], 64)) : r("", !0),
|
|
38079
|
+
D.value.length > 0 ? (h(), i(e, { key: 1 }, [l[1] ||= a("div", { class: "xinxi-title" }, "步骤审批人信息", -1), s(C, {
|
|
38080
|
+
columns: g,
|
|
38081
|
+
"data-source": D.value,
|
|
38082
|
+
pagination: !1,
|
|
38083
|
+
rangeSelection: !1,
|
|
38084
|
+
scroll: { y: 400 },
|
|
38085
|
+
rowKey: "id",
|
|
38086
|
+
bordered: "",
|
|
38087
|
+
size: "small",
|
|
38088
|
+
stripe: ""
|
|
38089
|
+
}, {
|
|
38090
|
+
bodyCell: w(({ column: t, index: a, text: s, record: c }) => [t.dataIndex == "index" ? (h(), i(e, { key: 0 }, [o(x(a + 1), 1)], 64)) : t.dataIndex == "jue_se" ? (h(), i(e, { key: 1 }, [c?.jue_se ? (h(), n(T, {
|
|
38091
|
+
key: 0,
|
|
38092
|
+
color: "blue"
|
|
38093
|
+
}, {
|
|
38094
|
+
default: w(() => [o(x(c?.jue_se || ""), 1)]),
|
|
38095
|
+
_: 2
|
|
38096
|
+
}, 1024)) : r("", !0)], 64)) : t.dataIndex == "list" ? (h(!0), i(e, { key: 2 }, y(c.list, (e, t) => (h(), n(T, {
|
|
38097
|
+
key: t,
|
|
38098
|
+
color: "green"
|
|
38099
|
+
}, {
|
|
38100
|
+
default: w(() => [o(x(e.realname), 1)]),
|
|
38101
|
+
_: 2
|
|
38102
|
+
}, 1024))), 128)) : (h(), i(e, { key: 3 }, [o(x(s), 1)], 64))]),
|
|
38103
|
+
_: 1
|
|
38104
|
+
}, 8, ["data-source"])], 64)) : r("", !0),
|
|
38105
|
+
a("div", sM, [s(Rj, {
|
|
38106
|
+
flowData: f.value,
|
|
38107
|
+
height: 400
|
|
38108
|
+
}, null, 8, ["flowData"])])
|
|
38109
|
+
])]);
|
|
38110
|
+
};
|
|
38111
|
+
}
|
|
38112
|
+
}), [["__scopeId", "data-v-e129b57e"]]), lM = { install(e, t) {
|
|
38113
|
+
t?.request && e.use(hk(t.request)), t?.useUserStore && e.use(gk(t.useUserStore)), t?.getApiData && e.use(_k(t.getApiData));
|
|
37465
38114
|
} };
|
|
37466
38115
|
//#endregion
|
|
37467
|
-
export {
|
|
38116
|
+
export { cM as ApprovalForDetails, jj as MyProcess, Rj as MyProcessViewer, lM as default };
|