@web-utils/component 3.8.2 → 3.8.4
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/chunks/ServiceTaskConfig.BYzwAxGU.mjs +112 -0
- package/flow-designer/index.mjs +128 -112
- package/fy-form-design/index.mjs +2 -2
- package/fy-form-design/style.css +1 -1
- package/package.json +1 -1
- package/vue-cron/index.mjs +116 -96
- package/web-types.json +4 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const b = {
|
|
3
|
+
name: "ServiceTaskConfig",
|
|
4
|
+
props: {
|
|
5
|
+
id: String,
|
|
6
|
+
element: Object,
|
|
7
|
+
bpmnInstances: Object
|
|
8
|
+
},
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
form: {
|
|
12
|
+
delegateType: "",
|
|
13
|
+
retry: 3,
|
|
14
|
+
interval: "60S"
|
|
15
|
+
},
|
|
16
|
+
config: {
|
|
17
|
+
async: !0,
|
|
18
|
+
exclusive: !1,
|
|
19
|
+
class: void 0,
|
|
20
|
+
delegateExpression: void 0,
|
|
21
|
+
failedJobRetryTimeCycle: void 0
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
watch: {
|
|
26
|
+
id: {
|
|
27
|
+
immediate: !0,
|
|
28
|
+
handler() {
|
|
29
|
+
var n, e, t, s, i, l, a, r, c, o, f, m, p, d;
|
|
30
|
+
if (!((e = (n = this.element) == null ? void 0 : n.businessObject) != null && e.delegateExpression) && !((s = (t = this.element) == null ? void 0 : t.businessObject) != null && s.class) && (this.config.async = !0, this.config.exclusive = !0, this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
31
|
+
async: !0,
|
|
32
|
+
exclusive: !0,
|
|
33
|
+
class: void 0,
|
|
34
|
+
delegateExpression: void 0,
|
|
35
|
+
failedJobRetryTimeCycle: "R3/PT60S"
|
|
36
|
+
})), this.config.async = (l = (i = this.element) == null ? void 0 : i.businessObject) == null ? void 0 : l.async, this.config.exclusive = (r = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : r.exclusive, this.config.class = (o = (c = this.element) == null ? void 0 : c.businessObject) == null ? void 0 : o.class, this.config.delegateExpression = (m = (f = this.element) == null ? void 0 : f.businessObject) == null ? void 0 : m.delegateExpression, this.config.failedJobRetryTimeCycle = (d = (p = this.element) == null ? void 0 : p.businessObject) == null ? void 0 : d.failedJobRetryTimeCycle, this.config.failedJobRetryTimeCycle) {
|
|
37
|
+
const u = this.config.failedJobRetryTimeCycle.split("/");
|
|
38
|
+
this.form.retry = Number(u[0].replace("R", "")) || 3, this.form.interval = u[1].replace("PT", "") || "60S";
|
|
39
|
+
}
|
|
40
|
+
this.form.delegateType = this.config.delegateExpression ? "delegateExpression" : this.config.class ? "class" : "";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
retryInput(n) {
|
|
46
|
+
const e = n != null ? n : 3, t = this.form.interval || "60S";
|
|
47
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
48
|
+
failedJobRetryTimeCycle: `R${e}/PT${t}`
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
intervalInput(n) {
|
|
52
|
+
var s;
|
|
53
|
+
const e = (s = this.form.retry) != null ? s : 3, t = n || "60S";
|
|
54
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
55
|
+
failedJobRetryTimeCycle: `R${e}/PT${t}`
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
clear() {
|
|
59
|
+
this.config.class = void 0, this.config.delegateExpression = void 0, this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
60
|
+
class: void 0,
|
|
61
|
+
delegateExpression: void 0
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
classInput(n) {
|
|
65
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
66
|
+
class: n
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
delegateExpressionInput(n) {
|
|
70
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
71
|
+
delegateExpression: n
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
changeTaskAsync() {
|
|
75
|
+
this.config.async || (this.config.exclusive = !0), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
76
|
+
exclusive: this.config.exclusive,
|
|
77
|
+
async: this.config.async
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var h = function() {
|
|
83
|
+
var e = this, t = e._self._c;
|
|
84
|
+
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
|
|
85
|
+
s.preventDefault();
|
|
86
|
+
} } }, [t("ElFormItem", { attrs: { label: "异步" } }, [t("ElCheckbox", { attrs: { label: "异步执行" }, on: { change: e.changeTaskAsync }, model: { value: e.config.async, callback: function(s) {
|
|
87
|
+
e.$set(e.config, "async", s);
|
|
88
|
+
}, expression: "config.async" } }), e.config.async ? t("ElCheckbox", { attrs: { label: "执行互斥" }, on: { change: e.changeTaskAsync }, model: { value: e.config.exclusive, callback: function(s) {
|
|
89
|
+
e.$set(e.config, "exclusive", s);
|
|
90
|
+
}, expression: "config.exclusive" } }) : e._e()], 1), t("ElFormItem", { attrs: { label: "委托类型" } }, [t("ElSelect", { on: { input: e.clear }, model: { value: e.form.delegateType, callback: function(s) {
|
|
91
|
+
e.$set(e.form, "delegateType", s);
|
|
92
|
+
}, expression: "form.delegateType" } }, [t("ElOption", { attrs: { label: "Spring Bean", value: "delegateExpression" } }), t("ElOption", { attrs: { label: "Java 类", value: "class" } })], 1)], 1), e.form.delegateType === "delegateExpression" ? t("ElFormItem", { attrs: { label: "委托表达式" } }, [t("ElSelect", { attrs: { clearable: "", filterable: "", "allow-create": "" }, on: { input: e.delegateExpressionInput }, model: { value: e.config.delegateExpression, callback: function(s) {
|
|
93
|
+
e.$set(e.config, "delegateExpression", s);
|
|
94
|
+
}, expression: "config.delegateExpression" } }, [t("ElOption", { attrs: { label: "财务审批 AI 预审", value: "${financeAi}" } })], 1)], 1) : e._e(), e.form.delegateType === "class" ? t("ElFormItem", { attrs: { label: "Java 类" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: e.classInput }, model: { value: e.config.class, callback: function(s) {
|
|
95
|
+
e.$set(e.config, "class", s);
|
|
96
|
+
}, expression: "config.class" } })], 1) : e._e(), e.config.async ? t("ElFormItem", { attrs: { label: "失败重试" } }, [t("div", { staticStyle: { display: "flex" } }, [t("ElFormItem", { staticStyle: { flex: "1", width: "0" }, attrs: { "label-width": "40px", label: "次数" } }, [t("ElInputNumber", { attrs: { clearable: "" }, on: { input: e.retryInput }, model: { value: e.form.retry, callback: function(s) {
|
|
97
|
+
e.$set(e.form, "retry", s);
|
|
98
|
+
}, expression: "form.retry" } })], 1), t("ElFormItem", { staticStyle: { flex: "1", width: "0", "margin-top": "0", "margin-left": "10px" }, attrs: { "label-width": "40px", label: "间隔" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: e.intervalInput }, model: { value: e.form.interval, callback: function(s) {
|
|
99
|
+
e.$set(e.form, "interval", s);
|
|
100
|
+
}, expression: "form.interval" } })], 1)], 1)]) : e._e()], 1)], 1);
|
|
101
|
+
}, y = [], x = /* @__PURE__ */ g(
|
|
102
|
+
b,
|
|
103
|
+
h,
|
|
104
|
+
y,
|
|
105
|
+
!1,
|
|
106
|
+
null,
|
|
107
|
+
null
|
|
108
|
+
);
|
|
109
|
+
const E = x.exports;
|
|
110
|
+
export {
|
|
111
|
+
E as default
|
|
112
|
+
};
|