@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { fastClone as
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
1
|
+
import { fastClone as n } from "@web-utils/core";
|
|
2
|
+
import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const p = {
|
|
4
4
|
name: "ElementProperties",
|
|
5
5
|
inject: {
|
|
6
6
|
prefix: "prefix",
|
|
@@ -29,11 +29,11 @@ const a = {
|
|
|
29
29
|
},
|
|
30
30
|
methods: {
|
|
31
31
|
resetAttributesList() {
|
|
32
|
-
var i, t, e
|
|
33
|
-
this.otherExtensionList = [], this.bpmnElementProperties = (
|
|
32
|
+
var i, t, e;
|
|
33
|
+
this.otherExtensionList = [], this.bpmnElementProperties = ((e = (t = (i = this.element.businessObject) == null ? void 0 : i.extensionElements) == null ? void 0 : t.values) == null ? void 0 : e.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) ?? [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((r, s) => r.concat(s.values), []), this.elementPropertyList = n(this.bpmnElementPropertyList ?? []);
|
|
34
34
|
},
|
|
35
35
|
openAttributesForm(i, t) {
|
|
36
|
-
this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} :
|
|
36
|
+
this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} : n(i), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
37
37
|
this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
|
|
38
38
|
});
|
|
39
39
|
},
|
|
@@ -75,13 +75,13 @@ const a = {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
var
|
|
78
|
+
var a = function() {
|
|
79
79
|
var t = this, e = t._self._c;
|
|
80
|
-
return e("div", { staticClass: "panel-tab__content" }, [e("ElTable", { attrs: { data: t.elementPropertyList, size: "mini", "max-height": "240", border: "", fit: "" } }, [e("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), e("ElTableColumn", { attrs: { label: "属性名", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: t._u([{ key: "default", fn: function({ row: r, $index:
|
|
81
|
-
return [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(
|
|
82
|
-
return t.openAttributesForm(r,
|
|
83
|
-
} } }, [t._v("编辑")]), e("ElDivider", { attrs: { direction: "vertical" } }), e("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(
|
|
84
|
-
return t.removeAttributes(r,
|
|
80
|
+
return e("div", { staticClass: "panel-tab__content" }, [e("ElTable", { attrs: { data: t.elementPropertyList, size: "mini", "max-height": "240", border: "", fit: "" } }, [e("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), e("ElTableColumn", { attrs: { label: "属性名", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: t._u([{ key: "default", fn: function({ row: r, $index: s }) {
|
|
81
|
+
return [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
82
|
+
return t.openAttributesForm(r, s);
|
|
83
|
+
} } }, [t._v("编辑")]), e("ElDivider", { attrs: { direction: "vertical" } }), e("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
84
|
+
return t.removeAttributes(r, s);
|
|
85
85
|
} } }, [t._v("移除")])];
|
|
86
86
|
} }]) })], 1), e("div", { staticClass: "element-drawer__button" }, [e("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(r) {
|
|
87
87
|
return t.openAttributesForm(null, -1);
|
|
@@ -98,15 +98,15 @@ var m = function() {
|
|
|
98
98
|
}, expression: "propertyForm.name" } })], 1), e("ElFormItem", { attrs: { label: "属性值:", prop: "value" } }, [e("ElInput", { attrs: { clearable: "" }, model: { value: t.propertyForm.value, callback: function(r) {
|
|
99
99
|
t.$set(t.propertyForm, "value", r);
|
|
100
100
|
}, expression: "propertyForm.value" } })], 1)], 1)], 1)], 1);
|
|
101
|
-
},
|
|
101
|
+
}, m = [], c = /* @__PURE__ */ l(
|
|
102
|
+
p,
|
|
102
103
|
a,
|
|
103
104
|
m,
|
|
104
|
-
c,
|
|
105
105
|
!1,
|
|
106
106
|
null,
|
|
107
107
|
null
|
|
108
108
|
);
|
|
109
|
-
const
|
|
109
|
+
const b = c.exports;
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
b as default
|
|
112
112
|
};
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
var m = Object.defineProperty;
|
|
2
|
-
var o = Object.getOwnPropertySymbols;
|
|
3
|
-
var p = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var l = (a, e, s) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s, c = (a, e) => {
|
|
5
|
-
for (var s in e || (e = {}))
|
|
6
|
-
p.call(e, s) && l(a, s, e[s]);
|
|
7
|
-
if (o)
|
|
8
|
-
for (var s of o(e))
|
|
9
|
-
u.call(e, s) && l(a, s, e[s]);
|
|
10
|
-
return a;
|
|
11
|
-
};
|
|
12
1
|
import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
13
|
-
const
|
|
2
|
+
const o = {
|
|
14
3
|
name: "UserTask",
|
|
15
4
|
props: {
|
|
16
5
|
id: String,
|
|
@@ -43,8 +32,8 @@ const d = {
|
|
|
43
32
|
resetTaskForm() {
|
|
44
33
|
const { businessObject: a } = this.element;
|
|
45
34
|
for (const e in this.defaultTaskForm) {
|
|
46
|
-
let
|
|
47
|
-
["candidateUsers", "candidateGroups"].includes(e) ?
|
|
35
|
+
let t;
|
|
36
|
+
["candidateUsers", "candidateGroups"].includes(e) ? t = a[e] ? a[e].split(",") : [] : t = a[e] || this.defaultTaskForm[e], this.$set(this.userTaskForm, e, t);
|
|
48
37
|
}
|
|
49
38
|
},
|
|
50
39
|
updateElementTask(a) {
|
|
@@ -53,48 +42,48 @@ const d = {
|
|
|
53
42
|
}
|
|
54
43
|
}
|
|
55
44
|
};
|
|
56
|
-
var
|
|
57
|
-
var e = this,
|
|
58
|
-
return
|
|
45
|
+
var l = function() {
|
|
46
|
+
var e = this, t = e._self._c;
|
|
47
|
+
return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "处理用户" } }, [t("ElSelect", { on: { change: function(s) {
|
|
59
48
|
return e.updateElementTask("assignee");
|
|
60
|
-
} }, model: { value: e.userTaskForm.assignee, callback: function(
|
|
61
|
-
e.$set(e.userTaskForm, "assignee",
|
|
62
|
-
}, expression: "userTaskForm.assignee" } }, e._l(e.mockData, function(
|
|
63
|
-
return
|
|
64
|
-
}), 1)], 1),
|
|
49
|
+
} }, model: { value: e.userTaskForm.assignee, callback: function(s) {
|
|
50
|
+
e.$set(e.userTaskForm, "assignee", s);
|
|
51
|
+
}, expression: "userTaskForm.assignee" } }, e._l(e.mockData, function(s) {
|
|
52
|
+
return t("ElOption", { key: `ass-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
|
|
53
|
+
}), 1)], 1), t("ElFormItem", { attrs: { label: "候选用户" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
|
|
65
54
|
return e.updateElementTask("candidateUsers");
|
|
66
|
-
} }, model: { value: e.userTaskForm.candidateUsers, callback: function(
|
|
67
|
-
e.$set(e.userTaskForm, "candidateUsers",
|
|
68
|
-
}, expression: "userTaskForm.candidateUsers" } }, e._l(e.mockData, function(
|
|
69
|
-
return
|
|
70
|
-
}), 1)], 1),
|
|
55
|
+
} }, model: { value: e.userTaskForm.candidateUsers, callback: function(s) {
|
|
56
|
+
e.$set(e.userTaskForm, "candidateUsers", s);
|
|
57
|
+
}, expression: "userTaskForm.candidateUsers" } }, e._l(e.mockData, function(s) {
|
|
58
|
+
return t("ElOption", { key: `user-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
|
|
59
|
+
}), 1)], 1), t("ElFormItem", { attrs: { label: "候选分组" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
|
|
71
60
|
return e.updateElementTask("candidateGroups");
|
|
72
|
-
} }, model: { value: e.userTaskForm.candidateGroups, callback: function(
|
|
73
|
-
e.$set(e.userTaskForm, "candidateGroups",
|
|
74
|
-
}, expression: "userTaskForm.candidateGroups" } }, e._l(e.mockData, function(
|
|
75
|
-
return
|
|
76
|
-
}), 1)], 1),
|
|
61
|
+
} }, model: { value: e.userTaskForm.candidateGroups, callback: function(s) {
|
|
62
|
+
e.$set(e.userTaskForm, "candidateGroups", s);
|
|
63
|
+
}, expression: "userTaskForm.candidateGroups" } }, e._l(e.mockData, function(s) {
|
|
64
|
+
return t("ElOption", { key: `ass-${s}`, attrs: { label: `分组${s}`, value: `group${s}` } });
|
|
65
|
+
}), 1)], 1), t("ElFormItem", { attrs: { label: "到期时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
|
|
77
66
|
return e.updateElementTask("dueDate");
|
|
78
|
-
} }, model: { value: e.userTaskForm.dueDate, callback: function(
|
|
79
|
-
e.$set(e.userTaskForm, "dueDate",
|
|
80
|
-
}, expression: "userTaskForm.dueDate" } })], 1),
|
|
67
|
+
} }, model: { value: e.userTaskForm.dueDate, callback: function(s) {
|
|
68
|
+
e.$set(e.userTaskForm, "dueDate", s);
|
|
69
|
+
}, expression: "userTaskForm.dueDate" } })], 1), t("ElFormItem", { attrs: { label: "跟踪时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
|
|
81
70
|
return e.updateElementTask("followUpDate");
|
|
82
|
-
} }, model: { value: e.userTaskForm.followUpDate, callback: function(
|
|
83
|
-
e.$set(e.userTaskForm, "followUpDate",
|
|
84
|
-
}, expression: "userTaskForm.followUpDate" } })], 1),
|
|
71
|
+
} }, model: { value: e.userTaskForm.followUpDate, callback: function(s) {
|
|
72
|
+
e.$set(e.userTaskForm, "followUpDate", s);
|
|
73
|
+
}, expression: "userTaskForm.followUpDate" } })], 1), t("ElFormItem", { attrs: { label: "优先级" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
|
|
85
74
|
return e.updateElementTask("priority");
|
|
86
|
-
} }, model: { value: e.userTaskForm.priority, callback: function(
|
|
87
|
-
e.$set(e.userTaskForm, "priority",
|
|
75
|
+
} }, model: { value: e.userTaskForm.priority, callback: function(s) {
|
|
76
|
+
e.$set(e.userTaskForm, "priority", s);
|
|
88
77
|
}, expression: "userTaskForm.priority" } })], 1)], 1);
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
78
|
+
}, c = [], m = /* @__PURE__ */ n(
|
|
79
|
+
o,
|
|
80
|
+
l,
|
|
81
|
+
c,
|
|
93
82
|
!1,
|
|
94
83
|
null,
|
|
95
84
|
null
|
|
96
85
|
);
|
|
97
|
-
const
|
|
86
|
+
const p = m.exports, u = {
|
|
98
87
|
name: "ScriptTask",
|
|
99
88
|
props: {
|
|
100
89
|
id: String,
|
|
@@ -124,8 +113,8 @@ const b = h.exports, F = {
|
|
|
124
113
|
resetTaskForm() {
|
|
125
114
|
var a;
|
|
126
115
|
for (const e in this.defaultTaskForm) {
|
|
127
|
-
const
|
|
128
|
-
this.$set(this.scriptTaskForm, e,
|
|
116
|
+
const t = ((a = this.element) == null ? void 0 : a.businessObject[e]) || this.defaultTaskForm[e];
|
|
117
|
+
this.$set(this.scriptTaskForm, e, t);
|
|
129
118
|
}
|
|
130
119
|
this.$set(this.scriptTaskForm, "scriptType", this.scriptTaskForm.script ? "inline" : "external");
|
|
131
120
|
},
|
|
@@ -135,44 +124,44 @@ const b = h.exports, F = {
|
|
|
135
124
|
}
|
|
136
125
|
}
|
|
137
126
|
};
|
|
138
|
-
var
|
|
139
|
-
var e = this,
|
|
140
|
-
return
|
|
127
|
+
var d = function() {
|
|
128
|
+
var e = this, t = e._self._c;
|
|
129
|
+
return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "脚本格式" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
|
|
141
130
|
return e.updateElementTask();
|
|
142
|
-
}, change: function(
|
|
131
|
+
}, change: function(s) {
|
|
143
132
|
return e.updateElementTask();
|
|
144
|
-
} }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(
|
|
145
|
-
e.$set(e.scriptTaskForm, "scriptFormat",
|
|
146
|
-
}, expression: "scriptTaskForm.scriptFormat" } })], 1),
|
|
147
|
-
e.$set(e.scriptTaskForm, "scriptType",
|
|
148
|
-
}, expression: "scriptTaskForm.scriptType" } }, [
|
|
133
|
+
} }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(s) {
|
|
134
|
+
e.$set(e.scriptTaskForm, "scriptFormat", s);
|
|
135
|
+
}, expression: "scriptTaskForm.scriptFormat" } })], 1), t("ElFormItem", { attrs: { label: "脚本类型" } }, [t("ElSelect", { model: { value: e.scriptTaskForm.scriptType, callback: function(s) {
|
|
136
|
+
e.$set(e.scriptTaskForm, "scriptType", s);
|
|
137
|
+
}, expression: "scriptTaskForm.scriptType" } }, [t("ElOption", { attrs: { label: "内联脚本", value: "inline" } }), t("ElOption", { attrs: { label: "外部资源", value: "external" } })], 1)], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [t("ElInput", { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(s) {
|
|
149
138
|
return e.updateElementTask();
|
|
150
|
-
}, change: function(
|
|
139
|
+
}, change: function(s) {
|
|
151
140
|
return e.updateElementTask();
|
|
152
|
-
} }, model: { value: e.scriptTaskForm.script, callback: function(
|
|
153
|
-
e.$set(e.scriptTaskForm, "script",
|
|
154
|
-
}, expression: "scriptTaskForm.script" } })], 1),
|
|
141
|
+
} }, model: { value: e.scriptTaskForm.script, callback: function(s) {
|
|
142
|
+
e.$set(e.scriptTaskForm, "script", s);
|
|
143
|
+
}, expression: "scriptTaskForm.script" } })], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
|
|
155
144
|
return e.updateElementTask();
|
|
156
|
-
}, change: function(
|
|
145
|
+
}, change: function(s) {
|
|
157
146
|
return e.updateElementTask();
|
|
158
|
-
} }, model: { value: e.scriptTaskForm.resource, callback: function(
|
|
159
|
-
e.$set(e.scriptTaskForm, "resource",
|
|
160
|
-
}, expression: "scriptTaskForm.resource" } })], 1),
|
|
147
|
+
} }, model: { value: e.scriptTaskForm.resource, callback: function(s) {
|
|
148
|
+
e.$set(e.scriptTaskForm, "resource", s);
|
|
149
|
+
}, expression: "scriptTaskForm.resource" } })], 1), t("ElFormItem", { attrs: { label: "结果变量" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
|
|
161
150
|
return e.updateElementTask();
|
|
162
|
-
}, change: function(
|
|
151
|
+
}, change: function(s) {
|
|
163
152
|
return e.updateElementTask();
|
|
164
|
-
} }, model: { value: e.scriptTaskForm.resultVariable, callback: function(
|
|
165
|
-
e.$set(e.scriptTaskForm, "resultVariable",
|
|
153
|
+
} }, model: { value: e.scriptTaskForm.resultVariable, callback: function(s) {
|
|
154
|
+
e.$set(e.scriptTaskForm, "resultVariable", s);
|
|
166
155
|
}, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
156
|
+
}, f = [], k = /* @__PURE__ */ n(
|
|
157
|
+
u,
|
|
158
|
+
d,
|
|
159
|
+
f,
|
|
171
160
|
!1,
|
|
172
161
|
null,
|
|
173
162
|
null
|
|
174
163
|
);
|
|
175
|
-
const
|
|
164
|
+
const h = k.exports, b = {
|
|
176
165
|
name: "ReceiveTask",
|
|
177
166
|
props: {
|
|
178
167
|
id: String,
|
|
@@ -225,34 +214,34 @@ const E = v.exports, _ = {
|
|
|
225
214
|
}
|
|
226
215
|
}
|
|
227
216
|
};
|
|
228
|
-
var
|
|
229
|
-
var e = this,
|
|
230
|
-
return
|
|
231
|
-
e.bindMessageId =
|
|
232
|
-
}, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(
|
|
233
|
-
return
|
|
234
|
-
}), 1),
|
|
235
|
-
e.messageModelVisible =
|
|
217
|
+
var F = function() {
|
|
218
|
+
var e = this, t = e._self._c;
|
|
219
|
+
return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "消息实例" } }, [t("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [t("ElSelect", { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(s) {
|
|
220
|
+
e.bindMessageId = s;
|
|
221
|
+
}, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(s) {
|
|
222
|
+
return t("ElOption", { key: s, attrs: { value: s, label: e.messageMap[s] } });
|
|
223
|
+
}), 1), t("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(s) {
|
|
224
|
+
e.messageModelVisible = s;
|
|
236
225
|
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
237
|
-
return [
|
|
238
|
-
}, proxy: !0 }]) }, [
|
|
239
|
-
|
|
240
|
-
} } }, [
|
|
241
|
-
e.$set(e.newMessageForm, "id",
|
|
242
|
-
}, expression: "newMessageForm.id" } })], 1),
|
|
243
|
-
e.$set(e.newMessageForm, "name",
|
|
226
|
+
return [t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
|
|
227
|
+
}, proxy: !0 }]) }, [t("ElForm", { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
|
|
228
|
+
s.preventDefault();
|
|
229
|
+
} } }, [t("ElFormItem", { attrs: { label: "消息ID" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
|
|
230
|
+
e.$set(e.newMessageForm, "id", s);
|
|
231
|
+
}, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(s) {
|
|
232
|
+
e.$set(e.newMessageForm, "name", s);
|
|
244
233
|
}, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
234
|
+
}, g = [], T = /* @__PURE__ */ n(
|
|
235
|
+
b,
|
|
236
|
+
F,
|
|
237
|
+
g,
|
|
249
238
|
!1,
|
|
250
239
|
null,
|
|
251
240
|
null
|
|
252
241
|
);
|
|
253
|
-
const
|
|
242
|
+
const v = T.exports, E = {
|
|
254
243
|
name: "ElementTaskConfig",
|
|
255
|
-
components: { UserTask:
|
|
244
|
+
components: { UserTask: p, ScriptTask: h, ReceiveTask: v },
|
|
256
245
|
props: {
|
|
257
246
|
id: String,
|
|
258
247
|
element: Object,
|
|
@@ -284,8 +273,8 @@ const M = x.exports, w = {
|
|
|
284
273
|
id: {
|
|
285
274
|
immediate: !0,
|
|
286
275
|
handler() {
|
|
287
|
-
var a, e,
|
|
288
|
-
this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (
|
|
276
|
+
var a, e, t, s, r, i;
|
|
277
|
+
this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (s = (t = this.element) == null ? void 0 : t.businessObject) == null ? void 0 : s.asyncAfter, this.taskConfigForm.exclusive = (i = (r = this.element) == null ? void 0 : r.businessObject) == null ? void 0 : i.exclusive;
|
|
289
278
|
}
|
|
290
279
|
},
|
|
291
280
|
type: {
|
|
@@ -297,30 +286,32 @@ const M = x.exports, w = {
|
|
|
297
286
|
},
|
|
298
287
|
methods: {
|
|
299
288
|
changeTaskAsync() {
|
|
300
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element,
|
|
289
|
+
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
290
|
+
...this.taskConfigForm
|
|
291
|
+
});
|
|
301
292
|
}
|
|
302
293
|
}
|
|
303
294
|
};
|
|
304
|
-
var
|
|
305
|
-
var e = this,
|
|
306
|
-
return
|
|
307
|
-
|
|
308
|
-
} } }, [
|
|
309
|
-
e.$set(e.taskConfigForm, "asyncBefore",
|
|
310
|
-
}, expression: "taskConfigForm.asyncBefore" } }),
|
|
311
|
-
e.$set(e.taskConfigForm, "asyncAfter",
|
|
312
|
-
}, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ?
|
|
313
|
-
e.$set(e.taskConfigForm, "exclusive",
|
|
314
|
-
}, expression: "taskConfigForm.exclusive" } }) : e._e()], 1),
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
295
|
+
var _ = function() {
|
|
296
|
+
var e = this, t = e._self._c;
|
|
297
|
+
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
|
|
298
|
+
s.preventDefault();
|
|
299
|
+
} } }, [t("ElFormItem", { attrs: { label: "异步延续" } }, [t("ElCheckbox", { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
|
|
300
|
+
e.$set(e.taskConfigForm, "asyncBefore", s);
|
|
301
|
+
}, expression: "taskConfigForm.asyncBefore" } }), t("ElCheckbox", { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(s) {
|
|
302
|
+
e.$set(e.taskConfigForm, "asyncAfter", s);
|
|
303
|
+
}, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t("ElCheckbox", { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(s) {
|
|
304
|
+
e.$set(e.taskConfigForm, "exclusive", s);
|
|
305
|
+
}, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
|
|
306
|
+
}, $ = [], y = /* @__PURE__ */ n(
|
|
307
|
+
E,
|
|
308
|
+
_,
|
|
309
|
+
$,
|
|
319
310
|
!1,
|
|
320
311
|
null,
|
|
321
312
|
null
|
|
322
313
|
);
|
|
323
|
-
const
|
|
314
|
+
const M = y.exports;
|
|
324
315
|
export {
|
|
325
|
-
|
|
316
|
+
M as default
|
|
326
317
|
};
|
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var d = Object.getOwnPropertySymbols;
|
|
4
|
-
var w = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var m = (t, e, o) => e in t ? b(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, p = (t, e) => {
|
|
6
|
-
for (var o in e || (e = {}))
|
|
7
|
-
w.call(e, o) && m(t, o, e[o]);
|
|
8
|
-
if (d)
|
|
9
|
-
for (var o of d(e))
|
|
10
|
-
C.call(e, o) && m(t, o, e[o]);
|
|
11
|
-
return t;
|
|
12
|
-
}, c = (t, e) => F(t, h(e));
|
|
13
|
-
var u = (t, e, o) => new Promise((n, s) => {
|
|
14
|
-
var l = (i) => {
|
|
15
|
-
try {
|
|
16
|
-
r(o.next(i));
|
|
17
|
-
} catch (a) {
|
|
18
|
-
s(a);
|
|
19
|
-
}
|
|
20
|
-
}, f = (i) => {
|
|
21
|
-
try {
|
|
22
|
-
r(o.throw(i));
|
|
23
|
-
} catch (a) {
|
|
24
|
-
s(a);
|
|
25
|
-
}
|
|
26
|
-
}, r = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(l, f);
|
|
27
|
-
r((o = o.apply(t, e)).next());
|
|
28
|
-
});
|
|
29
|
-
import { n as y } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
30
|
-
const E = {
|
|
1
|
+
import { n as s } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const r = {
|
|
31
3
|
name: "FlowCondition",
|
|
32
4
|
props: {
|
|
33
5
|
id: String,
|
|
@@ -42,10 +14,8 @@ const E = {
|
|
|
42
14
|
watch: {
|
|
43
15
|
id: {
|
|
44
16
|
immediate: !0,
|
|
45
|
-
handler() {
|
|
46
|
-
|
|
47
|
-
yield this.$nextTick(), this.resetFlowCondition();
|
|
48
|
-
});
|
|
17
|
+
async handler() {
|
|
18
|
+
await this.$nextTick(), this.resetFlowCondition();
|
|
49
19
|
}
|
|
50
20
|
}
|
|
51
21
|
},
|
|
@@ -59,26 +29,26 @@ const E = {
|
|
|
59
29
|
else if (!this.element.businessObject.conditionExpression)
|
|
60
30
|
this.flowConditionForm = { type: "normal" };
|
|
61
31
|
else {
|
|
62
|
-
const
|
|
63
|
-
if (this.flowConditionForm =
|
|
32
|
+
const n = this.element.businessObject.conditionExpression;
|
|
33
|
+
if (this.flowConditionForm = { ...n, type: "condition" }, this.flowConditionForm.resource) {
|
|
64
34
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
65
35
|
return;
|
|
66
36
|
}
|
|
67
|
-
if (
|
|
37
|
+
if (n.language) {
|
|
68
38
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "inlineScript");
|
|
69
39
|
return;
|
|
70
40
|
}
|
|
71
41
|
this.$set(this.flowConditionForm, "conditionType", "expression");
|
|
72
42
|
}
|
|
73
43
|
},
|
|
74
|
-
updateFlowType(
|
|
75
|
-
if (
|
|
44
|
+
updateFlowType(n) {
|
|
45
|
+
if (n === "condition") {
|
|
76
46
|
this.flowConditionRef = this.bpmnInstances.moddle.create("bpmn:FormalExpression"), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
77
47
|
conditionExpression: this.flowConditionRef
|
|
78
48
|
});
|
|
79
49
|
return;
|
|
80
50
|
}
|
|
81
|
-
if (
|
|
51
|
+
if (n === "default") {
|
|
82
52
|
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
83
53
|
conditionExpression: null
|
|
84
54
|
}), this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, {
|
|
@@ -93,40 +63,40 @@ const E = {
|
|
|
93
63
|
});
|
|
94
64
|
},
|
|
95
65
|
updateFlowCondition() {
|
|
96
|
-
const { conditionType:
|
|
97
|
-
let
|
|
98
|
-
|
|
66
|
+
const { conditionType: n, scriptType: e, body: o, resource: t, language: l } = this.flowConditionForm;
|
|
67
|
+
let i;
|
|
68
|
+
n === "expression" ? i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o }) : e === "inlineScript" ? (i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o, language: l }), this.$set(this.flowConditionForm, "resource", "")) : (this.$set(this.flowConditionForm, "body", ""), i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { resource: t, language: l })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: i });
|
|
99
69
|
}
|
|
100
70
|
}
|
|
101
71
|
};
|
|
102
|
-
var
|
|
72
|
+
var a = function() {
|
|
103
73
|
var e = this, o = e._self._c;
|
|
104
|
-
return o("div", { staticClass: "panel-tab__content" }, [o("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(
|
|
105
|
-
|
|
106
|
-
} } }, [o("ElFormItem", { attrs: { label: "流转类型" } }, [o("ElSelect", { on: { change: e.updateFlowType }, model: { value: e.flowConditionForm.type, callback: function(
|
|
107
|
-
e.$set(e.flowConditionForm, "type",
|
|
108
|
-
}, expression: "flowConditionForm.type" } }, [o("ElOption", { attrs: { label: "普通流转路径", value: "normal" } }), o("ElOption", { attrs: { label: "默认流转路径", value: "default" } }), o("ElOption", { attrs: { label: "条件流转路径", value: "condition" } })], 1)], 1), e.flowConditionForm.type === "condition" ? o("ElFormItem", { key: "condition", attrs: { label: "条件格式" } }, [o("ElSelect", { model: { value: e.flowConditionForm.conditionType, callback: function(
|
|
109
|
-
e.$set(e.flowConditionForm, "conditionType",
|
|
110
|
-
}, expression: "flowConditionForm.conditionType" } }, [o("ElOption", { attrs: { label: "表达式", value: "expression" } }), o("ElOption", { attrs: { label: "脚本", value: "script" } })], 1)], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "expression" ? o("ElFormItem", { key: "express", attrs: { label: "表达式" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(
|
|
111
|
-
e.$set(e.flowConditionForm, "body",
|
|
112
|
-
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "script" ? [o("ElFormItem", { key: "language", attrs: { label: "脚本语言" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.language, callback: function(
|
|
113
|
-
e.$set(e.flowConditionForm, "language",
|
|
114
|
-
}, expression: "flowConditionForm.language" } })], 1), o("ElFormItem", { key: "scriptType", attrs: { label: "脚本类型" } }, [o("ElSelect", { model: { value: e.flowConditionForm.scriptType, callback: function(
|
|
115
|
-
e.$set(e.flowConditionForm, "scriptType",
|
|
116
|
-
}, expression: "flowConditionForm.scriptType" } }, [o("ElOption", { attrs: { label: "内联脚本", value: "inlineScript" } }), o("ElOption", { attrs: { label: "外部脚本", value: "externalScript" } })], 1)], 1), e.flowConditionForm.scriptType === "inlineScript" ? o("ElFormItem", { key: "body", attrs: { label: "脚本" } }, [o("ElInput", { attrs: { type: "textarea", clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(
|
|
117
|
-
e.$set(e.flowConditionForm, "body",
|
|
118
|
-
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? o("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(
|
|
119
|
-
e.$set(e.flowConditionForm, "resource",
|
|
74
|
+
return o("div", { staticClass: "panel-tab__content" }, [o("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(t) {
|
|
75
|
+
t.preventDefault();
|
|
76
|
+
} } }, [o("ElFormItem", { attrs: { label: "流转类型" } }, [o("ElSelect", { on: { change: e.updateFlowType }, model: { value: e.flowConditionForm.type, callback: function(t) {
|
|
77
|
+
e.$set(e.flowConditionForm, "type", t);
|
|
78
|
+
}, expression: "flowConditionForm.type" } }, [o("ElOption", { attrs: { label: "普通流转路径", value: "normal" } }), o("ElOption", { attrs: { label: "默认流转路径", value: "default" } }), o("ElOption", { attrs: { label: "条件流转路径", value: "condition" } })], 1)], 1), e.flowConditionForm.type === "condition" ? o("ElFormItem", { key: "condition", attrs: { label: "条件格式" } }, [o("ElSelect", { model: { value: e.flowConditionForm.conditionType, callback: function(t) {
|
|
79
|
+
e.$set(e.flowConditionForm, "conditionType", t);
|
|
80
|
+
}, expression: "flowConditionForm.conditionType" } }, [o("ElOption", { attrs: { label: "表达式", value: "expression" } }), o("ElOption", { attrs: { label: "脚本", value: "script" } })], 1)], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "expression" ? o("ElFormItem", { key: "express", attrs: { label: "表达式" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(t) {
|
|
81
|
+
e.$set(e.flowConditionForm, "body", t);
|
|
82
|
+
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "script" ? [o("ElFormItem", { key: "language", attrs: { label: "脚本语言" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.language, callback: function(t) {
|
|
83
|
+
e.$set(e.flowConditionForm, "language", t);
|
|
84
|
+
}, expression: "flowConditionForm.language" } })], 1), o("ElFormItem", { key: "scriptType", attrs: { label: "脚本类型" } }, [o("ElSelect", { model: { value: e.flowConditionForm.scriptType, callback: function(t) {
|
|
85
|
+
e.$set(e.flowConditionForm, "scriptType", t);
|
|
86
|
+
}, expression: "flowConditionForm.scriptType" } }, [o("ElOption", { attrs: { label: "内联脚本", value: "inlineScript" } }), o("ElOption", { attrs: { label: "外部脚本", value: "externalScript" } })], 1)], 1), e.flowConditionForm.scriptType === "inlineScript" ? o("ElFormItem", { key: "body", attrs: { label: "脚本" } }, [o("ElInput", { attrs: { type: "textarea", clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(t) {
|
|
87
|
+
e.$set(e.flowConditionForm, "body", t);
|
|
88
|
+
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? o("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(t) {
|
|
89
|
+
e.$set(e.flowConditionForm, "resource", t);
|
|
120
90
|
}, expression: "flowConditionForm.resource" } })], 1) : e._e()] : e._e()], 2)], 1);
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
91
|
+
}, d = [], m = /* @__PURE__ */ s(
|
|
92
|
+
r,
|
|
93
|
+
a,
|
|
94
|
+
d,
|
|
125
95
|
!1,
|
|
126
96
|
null,
|
|
127
97
|
null
|
|
128
98
|
);
|
|
129
|
-
const
|
|
99
|
+
const c = m.exports;
|
|
130
100
|
export {
|
|
131
|
-
|
|
101
|
+
c as default
|
|
132
102
|
};
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var m = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var a = (s, e, t) => e in s ? n(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, l = (s, e) => {
|
|
5
|
-
for (var t in e || (e = {}))
|
|
6
|
-
m.call(e, t) && a(s, t, e[t]);
|
|
7
|
-
if (o)
|
|
8
|
-
for (var t of o(e))
|
|
9
|
-
r.call(e, t) && a(s, t, e[t]);
|
|
10
|
-
return s;
|
|
11
|
-
};
|
|
12
|
-
import { n as d } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
13
|
-
const c = {
|
|
1
|
+
import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const o = {
|
|
14
3
|
name: "SignalAndMessage",
|
|
15
4
|
props: {
|
|
16
5
|
bpmnInstances: Object
|
|
@@ -35,7 +24,7 @@ const c = {
|
|
|
35
24
|
methods: {
|
|
36
25
|
initDataList() {
|
|
37
26
|
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((s) => {
|
|
38
|
-
s.$type === "bpmn:Message" && (this.messageIdMap[s.id] = !0, this.messageList.push(
|
|
27
|
+
s.$type === "bpmn:Message" && (this.messageIdMap[s.id] = !0, this.messageList.push({ ...s })), s.$type === "bpmn:Signal" && (this.signalIdMap[s.id] = !0, this.signalList.push({ ...s }));
|
|
39
28
|
});
|
|
40
29
|
},
|
|
41
30
|
openModel(s) {
|
|
@@ -57,7 +46,7 @@ const c = {
|
|
|
57
46
|
}
|
|
58
47
|
}
|
|
59
48
|
};
|
|
60
|
-
var
|
|
49
|
+
var a = function() {
|
|
61
50
|
var e = this, t = e._self._c;
|
|
62
51
|
return t("div", { staticClass: "panel-tab__content" }, [t("div", { staticClass: "panel-tab__content--title" }, [e._m(0), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(i) {
|
|
63
52
|
return e.openModel("message");
|
|
@@ -76,21 +65,21 @@ var p = function() {
|
|
|
76
65
|
}, expression: "modelObjectForm.id" } })], 1), t("ElFormItem", { attrs: { label: e.modelConfig.nameLabel } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.modelObjectForm.name, callback: function(i) {
|
|
77
66
|
e.$set(e.modelObjectForm, "name", i);
|
|
78
67
|
}, expression: "modelObjectForm.name" } })], 1)], 1)], 1)], 1);
|
|
79
|
-
},
|
|
68
|
+
}, n = [function() {
|
|
80
69
|
var s = this, e = s._self._c;
|
|
81
70
|
return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), s._v("消息列表")]);
|
|
82
71
|
}, function() {
|
|
83
72
|
var s = this, e = s._self._c;
|
|
84
73
|
return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), s._v("信号列表")]);
|
|
85
|
-
}],
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
74
|
+
}], m = /* @__PURE__ */ l(
|
|
75
|
+
o,
|
|
76
|
+
a,
|
|
77
|
+
n,
|
|
89
78
|
!1,
|
|
90
79
|
null,
|
|
91
80
|
null
|
|
92
81
|
);
|
|
93
|
-
const
|
|
82
|
+
const d = m.exports;
|
|
94
83
|
export {
|
|
95
|
-
|
|
84
|
+
d as default
|
|
96
85
|
};
|