service-flow-designer 2.2.14 → 2.2.28
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/es/designer/common/components/sql-view/sql-view.vue.d.ts +1 -1
- package/dist/es/designer/service-components/base/loop-node/index.js +4 -64
- package/dist/es/designer/service-components/components-icons.js +8 -16
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +62 -57
- package/dist/es/designer/service-components/index.js +37 -30
- package/dist/es/designer/service-components/util/common-options.js +3 -4
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +1 -1
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +1 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +1 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +13 -13
- package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
- package/dist/es/designer/service-flow-view/view-index.vue2.js +3 -3
- package/dist/es/style.css +45 -97
- package/package.json +2 -2
- package/dist/es/assets/icon/clean.svg.js +0 -4
- package/dist/es/assets/icon/condition.png.js +0 -4
- package/dist/es/assets/icon/connect.svg.js +0 -4
- package/dist/es/assets/icon/function.png.js +0 -4
- package/dist/es/assets/icon/loop.svg.js +0 -4
- package/dist/es/assets/icon/notification.svg.js +0 -4
- package/dist/es/assets/icon/split-joint.svg.js +0 -4
- package/dist/es/assets/icon/statistics.svg.js +0 -4
- package/dist/es/designer/common/components/database-select.vue.js +0 -7
- package/dist/es/designer/common/components/database-select.vue2.js +0 -42
- package/dist/es/designer/service-components/base/custom-function/config.vue.d.ts +0 -18
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +0 -7
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +0 -74
- package/dist/es/designer/service-components/base/custom-function/index.js +0 -17
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +0 -7
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +0 -12
- package/dist/es/designer/service-components/base/judge-condition/config.vue.d.ts +0 -40
- package/dist/es/designer/service-components/base/judge-condition/config.vue.js +0 -4
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +0 -78
- package/dist/es/designer/service-components/base/judge-condition/index.js +0 -24
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +0 -7
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +0 -16
- package/dist/es/designer/service-components/base/loop-node/config.vue.d.ts +0 -14
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +0 -7
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +0 -16
- package/dist/es/designer/service-components/base/notification/config.vue.d.ts +0 -18
- package/dist/es/designer/service-components/base/notification/config.vue.js +0 -4
- package/dist/es/designer/service-components/base/notification/config.vue2.js +0 -54
- package/dist/es/designer/service-components/base/notification/index.js +0 -17
- package/dist/es/designer/service-components/base/notification/index.vue.js +0 -7
- package/dist/es/designer/service-components/base/notification/index.vue2.js +0 -12
- package/dist/es/designer/service-components/base/notification/quill-example.vue.d.ts +0 -19
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.d.ts +0 -47
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +0 -7
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +0 -30
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.d.ts +0 -18
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +0 -24
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +0 -4
- package/dist/es/designer/service-components/computation/clean/config.vue.d.ts +0 -25
- package/dist/es/designer/service-components/computation/clean/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +0 -55
- package/dist/es/designer/service-components/computation/clean/index.js +0 -17
- package/dist/es/designer/service-components/computation/clean/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +0 -12
- package/dist/es/designer/service-components/computation/connect/config.vue.d.ts +0 -23
- package/dist/es/designer/service-components/computation/connect/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +0 -54
- package/dist/es/designer/service-components/computation/connect/index.js +0 -17
- package/dist/es/designer/service-components/computation/connect/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +0 -12
- package/dist/es/designer/service-components/computation/split-joint/config.vue.d.ts +0 -23
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +0 -43
- package/dist/es/designer/service-components/computation/split-joint/index.js +0 -17
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +0 -12
- package/dist/es/designer/service-components/computation/statistics/config.vue.d.ts +0 -23
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +0 -57
- package/dist/es/designer/service-components/computation/statistics/index.js +0 -17
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +0 -12
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElTooltip as t, ElSelect as l, ElOption as o, ElIcon as a } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/form/style/css";
|
|
4
|
-
import "element-plus/es/components/icon/style/css";
|
|
5
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
6
|
-
import "element-plus/es/components/select/style/css";
|
|
7
|
-
import "element-plus/es/components/option/style/css";
|
|
8
|
-
import { defineComponent as r, ref as n, onMounted as u, createElementBlock as i, openBlock as c, createVNode as s, withCtx as p, createElementVNode as d, unref as m, normalizeStyle as f } from "vue";
|
|
9
|
-
import { useLocalStorage as v } from "@vueuse/core";
|
|
10
|
-
import h from "../../../common/components/node-base-config.vue.js";
|
|
11
|
-
import { Search as b, FullScreen as g } from "@element-plus/icons-vue";
|
|
12
|
-
import { EditorView as y, basicSetup as x } from "codemirror";
|
|
13
|
-
import { javaLanguage as k, java as S } from "@codemirror/lang-java";
|
|
14
|
-
import { EditorState as w } from "@codemirror/state";
|
|
15
|
-
import { openSearchPanel as z } from "@codemirror/search";
|
|
16
|
-
import { eclipse as _, githubDark as D, githubLight as C, dracula as L, vscodeDark as V, xcodeDark as H, xcodeLight as O } from "@uiw/codemirror-themes-all";
|
|
17
|
-
const j = { style: { height: "400px" } }, B = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, E = { class: "editorTool" }, G = r({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(r2, { expose: G2, emit: R }) {
|
|
18
|
-
const U = r2, W = R, X = n(false), I = n({ theme: "default", fontSize: 14, searchOpen: false }), N = n(), T = n(null), q = n("400px");
|
|
19
|
-
function A() {
|
|
20
|
-
true === X.value ? (X.value = false, W("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (X.value = true, W("fullScreen", { withHeader: false, drawerWidth: "100%" }));
|
|
21
|
-
}
|
|
22
|
-
u(() => {
|
|
23
|
-
if (N.value) {
|
|
24
|
-
const e3 = N.value.getBoundingClientRect();
|
|
25
|
-
(e3.y || 0 === e3.y) && (q.value = window.innerHeight - e3.y - 100 + "px");
|
|
26
|
-
}
|
|
27
|
-
let e2 = v("editorStyle", { theme: "default", fontSize: 14 }).value;
|
|
28
|
-
e2 && (I.value.theme = e2.theme, I.value.fontSize = e2.fontSize), M();
|
|
29
|
-
});
|
|
30
|
-
const F = k.data.of({});
|
|
31
|
-
function J() {
|
|
32
|
-
v("editorStyle", I.value).value = I.value, T.value && (T.value && T.value.destroy(), M());
|
|
33
|
-
}
|
|
34
|
-
function K() {
|
|
35
|
-
const e2 = function() {
|
|
36
|
-
switch (I.value.theme) {
|
|
37
|
-
case "xcodeLight":
|
|
38
|
-
return O;
|
|
39
|
-
case "xcodeDark":
|
|
40
|
-
return H;
|
|
41
|
-
case "vscodeDark":
|
|
42
|
-
return V;
|
|
43
|
-
case "dracula":
|
|
44
|
-
return L;
|
|
45
|
-
case "githubLight":
|
|
46
|
-
return C;
|
|
47
|
-
case "githubDark":
|
|
48
|
-
return D;
|
|
49
|
-
case "eclipse":
|
|
50
|
-
return _;
|
|
51
|
-
}
|
|
52
|
-
return y.theme({});
|
|
53
|
-
}(), t2 = y.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: q.value, maxHeight: q.value, fontSize: I.value.fontSize + "px" } });
|
|
54
|
-
return w.create({ doc: U.properties.function, extensions: [w.tabSize.of(16), x, S(), F, e2, t2, y.updateListener.of(function(e3) {
|
|
55
|
-
U.properties.function = e3.state.doc.toString();
|
|
56
|
-
})] });
|
|
57
|
-
}
|
|
58
|
-
function M() {
|
|
59
|
-
const e2 = K();
|
|
60
|
-
T.value = new y({ state: e2, parent: document.getElementById("cf-codemirror") });
|
|
61
|
-
}
|
|
62
|
-
function P() {
|
|
63
|
-
if (T.value) {
|
|
64
|
-
T.value.focus(), z(T.value) && T.value.update([]);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return G2({}), (n2, u2) => {
|
|
68
|
-
const v2 = o, y2 = l, x2 = t, k2 = a, S2 = e;
|
|
69
|
-
return c(), i("div", j, [s(S2, { "label-width": "auto", "label-position": "left" }, { default: p(() => [s(h, { properties: r2.properties }, null, 8, ["properties"]), d("div", B, [u2[2] || (u2[2] = d("span", { style: { color: "#909399", "font-size": "14px" } }, " public void execute(serviceContext,serviceNode){", -1)), d("span", E, [s(x2, { effect: "dark", content: "切换主题", placement: "top" }, { default: p(() => [s(y2, { class: "editorOption", onChange: J, modelValue: I.value.theme, "onUpdate:modelValue": u2[0] || (u2[0] = (e2) => I.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: p(() => [s(v2, { label: "默认", value: "default" }), s(v2, { label: "VScodeDark", value: "vscodeDark" }), s(v2, { label: "Dracula", value: "dracula" }), s(v2, { label: "GithubLight", value: "githubLight" }), s(v2, { label: "GithubDark", value: "githubDark" }), s(v2, { label: "Eclipse", value: "eclipse" }), s(v2, { label: "XcodeLight", value: "xcodeLight" }), s(v2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(x2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: p(() => [s(y2, { class: "editorOption", modelValue: I.value.fontSize, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => I.value.fontSize = e2), placeholder: "", onChange: J, size: "small", style: { width: "80px" } }, { default: p(() => [s(v2, { label: "12", value: 12 }), s(v2, { label: "14", value: 14 }), s(v2, { label: "16", value: 16 }), s(v2, { label: "18", value: 18 }), s(v2, { label: "20", value: 20 }), s(v2, { label: "22", value: 22 }), s(v2, { label: "24", value: 24 }), s(v2, { label: "26", value: 26 }), s(v2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), s(x2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: p(() => [s(k2, { class: "editorOption", onClick: P }, { default: p(() => [s(m(b))]), _: 1 })]), _: 1 }), s(x2, { effect: "dark", content: X.value ? "退出全屏" : "全屏", placement: "top" }, { default: p(() => [s(k2, { style: { cursor: "pointer" }, onClick: A }, { default: p(() => [s(m(g))]), _: 1 })]), _: 1 }, 8, ["content"])]), d("div", { style: f([{ height: q.value }, { "background-color": "'#fff'", color: "'#333'", outline: "'1px dotted #212121'" }]), id: "cf-codemirror", ref_key: "cfCodemirrorRef", ref: N }, null, 4), u2[3] || (u2[3] = d("span", { style: { color: "gray" } }, " }", -1))]), _: 1 })]);
|
|
70
|
-
};
|
|
71
|
-
} });
|
|
72
|
-
export {
|
|
73
|
-
G as default
|
|
74
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import e from "../../../flow/base/AbLogicNode.js";
|
|
2
|
-
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
3
|
-
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
4
|
-
import "../../../flow/base/AbLogicResizeNode.js";
|
|
5
|
-
import { h as s, createApp as i } from "vue";
|
|
6
|
-
import t from "./index.vue.js";
|
|
7
|
-
const d = { type: "customFunction", view: class extends e {
|
|
8
|
-
constructor(e2) {
|
|
9
|
-
super(e2), this.isMounted = false, this.r = s(t, { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
|
|
10
|
-
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
11
|
-
} }), this.app = i({ render: () => this.r });
|
|
12
|
-
}
|
|
13
|
-
}, model: class extends o {
|
|
14
|
-
}, options: {} };
|
|
15
|
-
export {
|
|
16
|
-
d as default
|
|
17
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ElDivider as e } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent as s, createElementBlock as t, openBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p } from "vue";
|
|
5
|
-
import n from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
-
const c = { class: "serviceflow-nodeContent" }, m = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: m2 }) => (m3, d) => {
|
|
7
|
-
const a = e;
|
|
8
|
-
return o(), t("div", null, [d[1] || (d[1] = i("img", { src: n, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [d[0] || (d[0] = i("div", { class: "serviceflow-nodeTitle" }, "自定义函数", -1)), l(a), i("div", c, p(s2.properties.name), 1)], 4)]);
|
|
9
|
-
} });
|
|
10
|
-
export {
|
|
11
|
-
m as default
|
|
12
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare function getData(): Record<string, any>;
|
|
2
|
-
/**
|
|
3
|
-
* 关闭drawer时进行跳转节点间的连线设值
|
|
4
|
-
*/
|
|
5
|
-
declare function onClose(): void;
|
|
6
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
|
-
properties: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
|
-
logicFlowInstance: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
currentNode: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
}>, {
|
|
20
|
-
getData: typeof getData;
|
|
21
|
-
onClose: typeof onClose;
|
|
22
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
-
properties: {
|
|
24
|
-
type: ObjectConstructor;
|
|
25
|
-
default: () => {};
|
|
26
|
-
};
|
|
27
|
-
logicFlowInstance: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
default: () => {};
|
|
30
|
-
};
|
|
31
|
-
currentNode: {
|
|
32
|
-
type: ObjectConstructor;
|
|
33
|
-
default: () => {};
|
|
34
|
-
};
|
|
35
|
-
}>> & Readonly<{}>, {
|
|
36
|
-
properties: Record<string, any>;
|
|
37
|
-
logicFlowInstance: Record<string, any>;
|
|
38
|
-
currentNode: Record<string, any>;
|
|
39
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
40
|
-
export default _default;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElFormItem as l, ElInput as o, ElButton as t, ElAlert as a, ElTable as n, ElTableColumn as d, ElSelect as s, ElOption as u, ElTooltip as p, ElRadio as r, ElDivider as i, ElMessageBox as m } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/form/style/css";
|
|
4
|
-
import "element-plus/es/components/divider/style/css";
|
|
5
|
-
import "element-plus/es/components/radio/style/css";
|
|
6
|
-
import "element-plus/es/components/table/style/css";
|
|
7
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
8
|
-
import "element-plus/es/components/select/style/css";
|
|
9
|
-
import "element-plus/es/components/option/style/css";
|
|
10
|
-
import "element-plus/es/components/table-column/style/css";
|
|
11
|
-
import "element-plus/es/components/alert/style/css";
|
|
12
|
-
import "element-plus/es/components/form-item/style/css";
|
|
13
|
-
import "element-plus/es/components/button/style/css";
|
|
14
|
-
import "element-plus/es/components/input/style/css";
|
|
15
|
-
import { defineComponent as c, ref as f, onMounted as b, createElementBlock as y, openBlock as g, createVNode as V, withCtx as h, createTextVNode as w, Fragment as v, renderList as k, unref as U, createBlock as _, toDisplayString as C, createElementVNode as j } from "vue";
|
|
16
|
-
import { Delete as N, Minus as T, Plus as x } from "@element-plus/icons-vue";
|
|
17
|
-
import { getLabel as z, operators as I, logicOperators as M } from "../../util/common-options.js";
|
|
18
|
-
import $ from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
19
|
-
import B from "../../../common/components/node-base-config.vue.js";
|
|
20
|
-
import { ElMessage as E } from "element-plus";
|
|
21
|
-
import "element-plus/es/components/message-box/style/css";
|
|
22
|
-
const F = { key: 0 }, O = { key: 0 }, D = { key: 0 }, L = { key: 0 }, S = c({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, logicFlowInstance: { type: Object, default: () => ({}) }, currentNode: { type: Object, default: () => ({}) } }, setup(c2, { expose: S2 }) {
|
|
23
|
-
const A = c2, G = f([]), R = [{ label: "覆盖", value: "cover" }, { label: "追加", value: "append" }, { label: "无重复时追加", value: "appendNoDupli" }];
|
|
24
|
-
b(() => {
|
|
25
|
-
const e2 = A.logicFlowInstance.getGraphData(), l2 = A.currentNode.data.id;
|
|
26
|
-
e2.nodes.forEach((e3, o2) => {
|
|
27
|
-
"start" !== e3.type && "end" !== e3.type && l2 !== e3.id && G.value.push({ id: e3.id, name: e3.properties.name });
|
|
28
|
-
}), G.value.push({ id: "end", name: "结束" }), A.properties.rules || (A.properties.rules = []);
|
|
29
|
-
});
|
|
30
|
-
const q = f("");
|
|
31
|
-
function H(e2, l2, o2) {
|
|
32
|
-
e2.$editing = true;
|
|
33
|
-
}
|
|
34
|
-
return S2({ getData: function() {
|
|
35
|
-
return A.properties.rules && A.properties.rules.forEach((e2) => {
|
|
36
|
-
e2.conditions.forEach((e3) => {
|
|
37
|
-
e3.$editing && delete e3.$editing;
|
|
38
|
-
});
|
|
39
|
-
}), A.properties;
|
|
40
|
-
}, onClose: function() {
|
|
41
|
-
const e2 = A.logicFlowInstance.graphModel.getNodeEdges(A.currentNode.data.id);
|
|
42
|
-
let l2 = false;
|
|
43
|
-
const o2 = [];
|
|
44
|
-
e2.forEach((e3) => {
|
|
45
|
-
"end" === e3.targetNode.type ? l2 = true : o2.push(e3.targetNode.id);
|
|
46
|
-
});
|
|
47
|
-
const t2 = [];
|
|
48
|
-
A.properties.rules && A.properties.rules.forEach((e3, a2) => {
|
|
49
|
-
if (e3.jumpComponentTo) if ("end" === e3.jumpComponentTo) {
|
|
50
|
-
if (!l2) {
|
|
51
|
-
e3.jumpComponentTo;
|
|
52
|
-
const t3 = A.logicFlowInstance.graphModel.addNode({ type: "end", x: A.currentNode.data.x, y: A.currentNode.data.y + 150, properties: {} }), a3 = A.logicFlowInstance.graphModel.addEdge({ sourceNodeId: A.currentNode.data.id, targetNodeId: t3.id });
|
|
53
|
-
o2.push(a3.to), l2 = true;
|
|
54
|
-
}
|
|
55
|
-
} else o2.includes(e3.jumpComponentTo) || A.logicFlowInstance.graphModel.addEdge({ sourceNodeId: A.currentNode.data.id, targetNodeId: e3.jumpComponentTo, text: e3.name }), o2.push(e3.jumpComponentTo), t2.push(e3.jumpComponentTo);
|
|
56
|
-
}), o2.forEach((e3) => {
|
|
57
|
-
t2.includes(e3) || A.logicFlowInstance.graphModel.deleteEdgeBySourceAndTarget(A.currentNode.data.id, e3);
|
|
58
|
-
});
|
|
59
|
-
} }), (f2, b2) => {
|
|
60
|
-
const S3 = o, J = t, K = l, P = a, Q = d, W = u, X = s, Y = p, Z = n, ee = r, le = i, oe = e;
|
|
61
|
-
return g(), y("div", null, [V(oe, { "label-width": "auto", "label-position": "left" }, { default: h(() => [V(B, { properties: c2.properties }, null, 8, ["properties"]), V(K, { label: "规则名:", style: { width: "100%" } }, { default: h(() => [V(S3, { modelValue: q.value, "onUpdate:modelValue": b2[0] || (b2[0] = (e2) => q.value = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), V(J, { type: "primary", onClick: b2[1] || (b2[1] = (e2) => {
|
|
62
|
-
q.value && (A.properties.rules || (A.properties.rules = []), A.properties.rules.push({ conditions: [], name: q.value, to: "" }), q.value = "");
|
|
63
|
-
}), style: { position: "absolute", right: "0" } }, { default: h(() => b2[3] || (b2[3] = [w("添加规则")])), _: 1 })]), _: 1 }), (g(true), y(v, null, k(c2.properties.rules, (e2, l2) => (g(), y("div", null, [V(K, { "label-width": "0", style: { width: "100%" } }, { default: h(() => [V(P, { title: e2.name, type: "info", size: "small", closable: false }, null, 8, ["title"]), V(J, { size: "small", circle: "", type: "danger", style: { position: "absolute", right: "0" }, icon: U(N), onClick: (e3) => function(e4) {
|
|
64
|
-
1 !== A.properties.rules.length ? m.confirm("确认删除该规则?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
65
|
-
A.properties.rules.splice(e4, 1);
|
|
66
|
-
}).catch(() => {
|
|
67
|
-
E({ type: "info", message: "取消删除" });
|
|
68
|
-
}) : E.warning("请保留至少一条规则!");
|
|
69
|
-
}(l2) }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024), V(Z, { data: e2.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: H, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: h(() => [V(Q, { type: "index", width: "50", label: "序号" }), V(Q, { prop: "name", label: "(((" }, { default: h((e3) => [e3.row.$editing ? (g(), _(X, { key: 1, size: "small", modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, placeholder: "" }, { default: h(() => [V(W, { label: "", value: "" }), V(W, { label: "(", value: "(" }), V(W, { label: "((", value: "((" }), V(W, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (g(), y("span", F, C(e3.row.leftBracket), 1))]), _: 1 }), V(Q, { prop: "alias", label: "参数名", width: "150" }, { default: h((e3) => [V(U($), { paramTypes: ["page", "data"], showLabel: !e3.row.$editing, size: "small", modelValue: e3.row.name, "onUpdate:modelValue": (l3) => e3.row.name = l3 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), V(Q, { prop: "type", label: "操作符" }, { default: h((e3) => [e3.row.$editing ? (g(), _(X, { key: 1, modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, placeholder: "", size: "small" }, { default: h(() => [(g(true), y(v, null, k(U(I), (e4) => (g(), _(W, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (g(), y("span", O, C(U(z)(e3.row.operator, U(I))), 1))]), _: 1 }), V(Q, { prop: "value", label: "值", width: "170" }, { default: h((e3) => [V(U($), { showLabel: !e3.row.$editing, size: "small", modelValue: e3.row.value, "onUpdate:modelValue": (l3) => e3.row.value = l3 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), V(Q, { prop: "rightBracket", label: ")))" }, { default: h((e3) => [e3.row.$editing ? (g(), _(X, { key: 1, size: "small", modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "" }, { default: h(() => [V(W, { label: "", value: "" }), V(W, { label: ")", value: ")" }), V(W, { label: "))", value: "))" }), V(W, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (g(), y("span", D, C(e3.row.rightBracket), 1))]), _: 1 }), V(Q, { prop: "logicOperator", label: "连接符" }, { default: h((e3) => [e3.row.$editing ? (g(), _(X, { key: 1, modelValue: e3.row.logicOperator, "onUpdate:modelValue": (l3) => e3.row.logicOperator = l3, placeholder: "", size: "small" }, { default: h(() => [(g(true), y(v, null, k(U(M), (e4) => (g(), _(W, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (g(), y("span", L, C(U(z)(e3.row.logicOperator, U(M))), 1))]), _: 1 }), V(Q, { align: "center" }, { header: h(() => [V(Y, { effect: "dark", content: "添加", placement: "top" }, { default: h(() => [V(J, { type: "primary", size: "small", icon: U(x), circle: "", onClick: (l3) => function(e3) {
|
|
70
|
-
e3.conditions.push({ $editing: true });
|
|
71
|
-
}(e2) }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)]), default: h((l3) => [j("span", null, [V(Y, { effect: "dark", content: "删除", placement: "top" }, { default: h(() => [V(J, { type: "danger", size: "small", icon: U(T), circle: "", onClick: (o2) => function(e3, l4, o3) {
|
|
72
|
-
o3.conditions.splice(e3, 1);
|
|
73
|
-
}(l3.$index, l3.row, e2) }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 2 }, 1024)]), _: 2 }, 1032, ["data"]), V(K, { style: { width: "100%" } }, { label: h((l3) => [V(ee, { modelValue: e2.action, "onUpdate:modelValue": (l4) => e2.action = l4, value: "abort", label: "异常中止" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), default: h(() => [V(S3, { disabled: "abort" !== e2.action, modelValue: e2.abortMessage, "onUpdate:modelValue": (l3) => e2.abortMessage = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), V(K, { style: { width: "100%" } }, { label: h((l3) => [V(ee, { modelValue: e2.action, "onUpdate:modelValue": (l4) => e2.action = l4, value: "jump", label: "跳转组件" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), default: h(() => [V(X, { disabled: "jump" !== e2.action, modelValue: e2.jumpComponentTo, "onUpdate:modelValue": (l3) => e2.jumpComponentTo = l3, placeholder: "" }, { default: h(() => [(g(true), y(v, null, k(G.value, (e3) => (g(), _(W, { key: e3.id, label: e3.name, value: e3.id }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), V(K, { style: { width: "100%" } }, { default: h(() => [V(ee, { modelValue: e2.action, "onUpdate:modelValue": (l3) => e2.action = l3, value: "continue", label: "继续循环", style: { width: "10%" } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), V(K, { label: "提示信息设置:", style: { width: "100%" } }, { default: h(() => [V(U($), { inputSize: "default", paramTypes: ["service"], modelValue: c2.properties.abortMessage, "onUpdate:modelValue": b2[2] || (b2[2] = (e3) => c2.properties.abortMessage = e3) }, null, 8, ["modelValue"])]), _: 1 }), V(K, { label: "信息内容:", style: { width: "100%" } }, { default: h(() => [V(S3, { modelValue: e2.messageContent, "onUpdate:modelValue": (l3) => e2.messageContent = l3, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), V(K, { label: "设置方式:" }, { default: h(() => [V(X, { modelValue: e2.setMode, "onUpdate:modelValue": (l3) => e2.setMode = l3, placeholder: "", style: { width: "30%" } }, { default: h(() => [(g(), y(v, null, k(R, (e3) => V(W, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), V(K, { label: "分隔符:", style: { "margin-left": "20px" } }, { default: h(() => [V(S3, { modelValue: e2.delimiter, "onUpdate:modelValue": (l3) => e2.delimiter = l3, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)]), _: 2 }, 1024), V(le)]))), 256))]), _: 1 })]);
|
|
74
|
-
};
|
|
75
|
-
} });
|
|
76
|
-
export {
|
|
77
|
-
S as default
|
|
78
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import e from "../../../flow/base/AbLogicNode.js";
|
|
5
|
-
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
6
|
-
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
7
|
-
import "../../../flow/base/AbLogicResizeNode.js";
|
|
8
|
-
import { h as s, createApp as t } from "vue";
|
|
9
|
-
import i from "./index.vue.js";
|
|
10
|
-
const d = { type: "judgeCondition", view: class extends e {
|
|
11
|
-
constructor(e2) {
|
|
12
|
-
super(e2);
|
|
13
|
-
__publicField(this, "customP1");
|
|
14
|
-
this.isMounted = false, this.r = s(i, { text: e2.model.inputData, model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
|
|
15
|
-
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
16
|
-
} }), this.app = t({ render: () => this.r });
|
|
17
|
-
}
|
|
18
|
-
getResizeShape() {
|
|
19
|
-
}
|
|
20
|
-
}, model: class extends o {
|
|
21
|
-
}, options: {} };
|
|
22
|
-
export {
|
|
23
|
-
d as default
|
|
24
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ElDivider as e } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent as t, ref as s, onMounted as l, createElementBlock as o, openBlock as n, createElementVNode as r, normalizeStyle as p, createVNode as i, toDisplayString as c, Fragment as d, renderList as u } from "vue";
|
|
5
|
-
import m from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
-
const a = { class: "serviceflow-nodeTitle" }, f = { class: "serviceflow-nodeContent" }, v = t({ __name: "index", props: { graphModel: { type: Object, default: () => ({}) }, model: { type: Object, default: () => ({}) }, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup(t2, { emit: v2 }) {
|
|
7
|
-
const b = s([]);
|
|
8
|
-
return s([]), l(() => {
|
|
9
|
-
}), (s2, l2) => {
|
|
10
|
-
const v3 = e;
|
|
11
|
-
return n(), o("div", null, [l2[1] || (l2[1] = r("img", { src: m, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), r("div", { class: "serviceflow-nodeView", style: p({ backgroundColor: t2.properties.backgroundColor }) }, [r("div", a, c(t2.properties.name ? t2.properties.name : "条件判断"), 1), i(v3), r("div", f, [(n(true), o(d, null, u(b.value, (e2) => (n(), o("div", null, [r("span", null, c(e2), 1), l2[0] || (l2[0] = r("br", null, null, -1))]))), 256))])], 4)]);
|
|
12
|
-
};
|
|
13
|
-
} });
|
|
14
|
-
export {
|
|
15
|
-
v as default
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
properties: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
properties: Record<string, any>;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElDivider as t, ElFormItem as l, ElAlert as o } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/form/style/css";
|
|
4
|
-
import "element-plus/es/components/alert/style/css";
|
|
5
|
-
import "element-plus/es/components/form-item/style/css";
|
|
6
|
-
import "element-plus/es/components/divider/style/css";
|
|
7
|
-
import { defineComponent as s, createBlock as p, openBlock as r, withCtx as m, createVNode as n, unref as i } from "vue";
|
|
8
|
-
import u from "../../../common/components/node-base-config.vue.js";
|
|
9
|
-
import a from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
10
|
-
const d = s({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, setup: (s2) => (d2, c) => {
|
|
11
|
-
const f = t, b = l, y = o, v = e;
|
|
12
|
-
return r(), p(v, { "label-width": "auto", "label-position": "left" }, { default: m(() => [n(u, { properties: s2.properties }, null, 8, ["properties"]), n(f), n(b, { label: "循环对象:" }, { default: m(() => [n(i(a), { inputSize: "default", paramTypes: ["service"], modelValue: s2.properties.loopObject, "onUpdate:modelValue": c[0] || (c[0] = (e2) => s2.properties.loopObject = e2) }, null, 8, ["modelValue"])]), _: 1 }), n(y, { title: "循环设置", type: "info", size: "small", closable: false }), n(b, { label: "索引设置到:" }, { default: m(() => [n(i(a), { inputSize: "default", paramTypes: ["service"], modelValue: s2.properties.indexSet, "onUpdate:modelValue": c[1] || (c[1] = (e2) => s2.properties.indexSet = e2) }, null, 8, ["modelValue"])]), _: 1 }), n(b, { label: "对象设置到:" }, { default: m(() => [n(i(a), { inputSize: "default", paramTypes: ["service"], modelValue: s2.properties.resultSet, "onUpdate:modelValue": c[2] || (c[2] = (e2) => s2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
13
|
-
} });
|
|
14
|
-
export {
|
|
15
|
-
d as default
|
|
16
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {
|
|
5
|
-
messageTemplate: {};
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
-
properties: {
|
|
10
|
-
type: ObjectConstructor;
|
|
11
|
-
default: () => {
|
|
12
|
-
messageTemplate: {};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}>> & Readonly<{}>, {
|
|
16
|
-
properties: Record<string, any>;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElDivider as l, ElFormItem as t, ElCheckboxGroup as o, ElCheckbox as p, ElRadioGroup as r, ElRadio as s, ElAlert as i, ElRadioButton as a, ElInput as n } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/form/style/css";
|
|
4
|
-
import "element-plus/es/components/input/style/css";
|
|
5
|
-
import "element-plus/es/components/radio-button/style/css";
|
|
6
|
-
import "element-plus/es/components/alert/style/css";
|
|
7
|
-
import "element-plus/es/components/radio-group/style/css";
|
|
8
|
-
import "element-plus/es/components/radio/style/css";
|
|
9
|
-
import "element-plus/es/components/form-item/style/css";
|
|
10
|
-
import "element-plus/es/components/checkbox-group/style/css";
|
|
11
|
-
import "element-plus/es/components/checkbox/style/css";
|
|
12
|
-
import "element-plus/es/components/divider/style/css";
|
|
13
|
-
import { defineComponent as m, ref as u, onMounted as c, createBlock as d, openBlock as f, withCtx as b, createVNode as y, createElementBlock as v, createCommentVNode as T, Fragment as g, renderList as V, createTextVNode as _, createElementVNode as h } from "vue";
|
|
14
|
-
import x from "../../../common/components/node-base-config.vue.js";
|
|
15
|
-
import U from "./select-mail-template.vue.js";
|
|
16
|
-
import k from "./recipients-select.vue.js";
|
|
17
|
-
import { EditorView as R, basicSetup as z } from "codemirror";
|
|
18
|
-
import { markdown as S } from "@codemirror/lang-markdown";
|
|
19
|
-
import { Compartment as E, EditorState as C } from "@codemirror/state";
|
|
20
|
-
import "quill";
|
|
21
|
-
import "quill/dist/quill.core.css";
|
|
22
|
-
import "quill/dist/quill.snow.css";
|
|
23
|
-
import "quill-delta";
|
|
24
|
-
import "agilebuilder-ui/src/utils/request";
|
|
25
|
-
const I = { key: 0 }, q = m({ __name: "config", props: { properties: { type: Object, default: () => ({ messageTemplate: {} }) } }, setup(m2) {
|
|
26
|
-
const q2 = [{ label: "钉钉", value: "DINGDING" }, { label: "企微", value: "QIWEI" }, { label: "飞书", value: "FEISHU" }, { label: "邮箱", value: "MAIL" }, { label: "自定义", value: "CUSTOM" }], w = m2, F = u({ theme: "default", fontSize: 14, searchOpen: false }), N = u(null);
|
|
27
|
-
void 0 === w.properties.enableTemplate && (w.properties.enableTemplate = false), c(() => {
|
|
28
|
-
w.properties.enableTemplate || O();
|
|
29
|
-
}), w.properties.messageTemplate || (w.properties.messageTemplate = {});
|
|
30
|
-
const D = () => {
|
|
31
|
-
w.properties.recipients && (w.properties.recipients = "", w.properties.recipientsName = ""), w.properties.recipientDataFrom || (w.properties.recipientDataFrom = "data");
|
|
32
|
-
};
|
|
33
|
-
function M() {
|
|
34
|
-
const e2 = R.theme({}), l2 = R.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", width: "100%", fontSize: F.value.fontSize + "px" } });
|
|
35
|
-
return C.create({ doc: w.properties.content, extensions: [C.tabSize.of(16), z, S(), e2, l2, R.updateListener.of(function(e3) {
|
|
36
|
-
w.properties.content = e3.state.doc.toString();
|
|
37
|
-
})] });
|
|
38
|
-
}
|
|
39
|
-
function O() {
|
|
40
|
-
const e2 = M();
|
|
41
|
-
N.value = new R({ state: e2, parent: document.getElementById("cf-codemirror") });
|
|
42
|
-
}
|
|
43
|
-
new E();
|
|
44
|
-
const H = (e2) => {
|
|
45
|
-
e2 || O();
|
|
46
|
-
};
|
|
47
|
-
return (u2, c2) => {
|
|
48
|
-
const R2 = l, z2 = p, S2 = o, E2 = t, C2 = s, w2 = r, F2 = i, N2 = a, M2 = n, O2 = e;
|
|
49
|
-
return f(), d(O2, { "label-width": "auto", "label-position": "left" }, { default: b(() => [y(x, { properties: m2.properties }, null, 8, ["properties"]), y(R2), y(E2, { label: "通知方式:" }, { default: b(() => [y(S2, { modelValue: m2.properties.mode, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.mode = e2) }, { default: b(() => [(f(), v(g, null, V(q2, (e2) => y(z2, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(E2, { label: "通知对象类型:" }, { default: b(() => [y(w2, { modelValue: m2.properties.recipientType, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => m2.properties.recipientType = e2), onClick: D }, { default: b(() => [y(C2, { value: "USER", size: "small", label: "用户" }), y(C2, { value: "DEPARTMENT", size: "small", label: "部门" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(E2, { label: "通知对象:" }, { default: b(() => [y(k, { disabled: !m2.properties.recipientType, properties: m2.properties, orgType: m2.properties.recipientType, selectProps: { dataFrom: "recipientsFrom", label: "recipientsName", value: "recipients" } }, null, 8, ["disabled", "properties", "orgType"])]), _: 1 }), m2.properties.mode && (m2.properties.mode.indexOf("MAIL") >= 0 || m2.properties.mode.indexOf("CUSTOM") >= 0) ? (f(), v("div", I, [y(E2, { label: "抄送对象类型:" }, { default: b(() => [y(w2, { modelValue: m2.properties.copyRecipientType, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => m2.properties.copyRecipientType = e2), onClick: D }, { default: b(() => [y(C2, { value: "USER", size: "small", label: "用户" }), y(C2, { value: "DEPARTMENT", size: "small", label: "部门" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(E2, { label: "抄送对象:" }, { default: b(() => [y(k, { disabled: !m2.properties.copyRecipientType, properties: m2.properties, orgType: m2.properties.copyRecipientType, selectProps: { dataFrom: "copyRecipientsFrom", label: "copyRecipientsName", value: "copyRecipients" } }, null, 8, ["disabled", "properties", "orgType"])]), _: 1 })])) : T("", true), y(E2, { label: "异步发送:" }, { default: b(() => [y(w2, { modelValue: m2.properties.async, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => m2.properties.async = e2) }, { default: b(() => [y(C2, { value: true }, { default: b(() => c2[7] || (c2[7] = [_("是")])), _: 1 }), y(C2, { value: false }, { default: b(() => c2[8] || (c2[8] = [_("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(F2, { title: "内容设置", style: { "margin-bottom": "10px" }, type: "info", size: "small", closable: false }), y(E2, null, { default: b(() => [y(w2, { modelValue: m2.properties.enableTemplate, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => m2.properties.enableTemplate = e2), onChange: H, size: "small", style: { "margin-right": "10px" } }, { default: b(() => [y(N2, { label: "自定义", value: false }), y(N2, { label: "选择模板", value: true })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), m2.properties.enableTemplate ? T("", true) : (f(), d(E2, { key: 1, label: "主题:" }, { default: b(() => [y(M2, { modelValue: m2.properties.title, "onUpdate:modelValue": c2[5] || (c2[5] = (e2) => m2.properties.title = e2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 })), m2.properties.enableTemplate ? T("", true) : (f(), d(E2, { key: 2, label: "内容:" }, { default: b(() => c2[9] || (c2[9] = [h("div", { style: { minHeight: "400px", maxHeight: "700px", backgroundColor: "#fff", color: "#333", width: "100%", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)])), _: 1 })), m2.properties.enableTemplate ? (f(), d(E2, { key: 3 }, { default: b(() => [y(U, { modelValue: m2.properties.templateCode, "onUpdate:modelValue": c2[6] || (c2[6] = (e2) => m2.properties.templateCode = e2) }, null, 8, ["modelValue"])]), _: 1 })) : T("", true)]), _: 1 });
|
|
50
|
-
};
|
|
51
|
-
} });
|
|
52
|
-
export {
|
|
53
|
-
q as default
|
|
54
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import e from "../../../flow/base/AbLogicNode.js";
|
|
2
|
-
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
3
|
-
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
4
|
-
import "../../../flow/base/AbLogicResizeNode.js";
|
|
5
|
-
import { h as s, createApp as i } from "vue";
|
|
6
|
-
import t from "./index.vue.js";
|
|
7
|
-
const d = { type: "notification", view: class extends e {
|
|
8
|
-
constructor(e2) {
|
|
9
|
-
super(e2), this.isMounted = false, this.r = s(t, { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
|
|
10
|
-
this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
|
|
11
|
-
} }), this.app = i({ render: () => this.r });
|
|
12
|
-
}
|
|
13
|
-
}, model: class extends o {
|
|
14
|
-
}, options: {} };
|
|
15
|
-
export {
|
|
16
|
-
d as default
|
|
17
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ElDivider as e } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent as s, createElementBlock as t, openBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p } from "vue";
|
|
5
|
-
import n from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
-
const c = { class: "serviceflow-nodeContent" }, m = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: m2 }) => (m3, d) => {
|
|
7
|
-
const a = e;
|
|
8
|
-
return o(), t("div", null, [d[1] || (d[1] = i("img", { src: n, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [d[0] || (d[0] = i("div", { class: "serviceflow-nodeTitle" }, "通知", -1)), l(a), i("div", c, p(s2.properties.name), 1)], 4)]);
|
|
9
|
-
} });
|
|
10
|
-
export {
|
|
11
|
-
m as default
|
|
12
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
modelValue: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (...args: any[]) => void;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
}>> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
16
|
-
}>, {
|
|
17
|
-
modelValue: string;
|
|
18
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
-
export default _default;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
disabled: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
orgType: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
selectProps: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
default: () => {
|
|
17
|
-
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
-
properties: {
|
|
23
|
-
type: ObjectConstructor;
|
|
24
|
-
default: () => {};
|
|
25
|
-
};
|
|
26
|
-
disabled: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
|
-
orgType: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
selectProps: {
|
|
35
|
-
type: ObjectConstructor;
|
|
36
|
-
default: () => {
|
|
37
|
-
label: string;
|
|
38
|
-
value: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}>> & Readonly<{}>, {
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
properties: Record<string, any>;
|
|
44
|
-
orgType: string;
|
|
45
|
-
selectProps: Record<string, any>;
|
|
46
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ElRadioGroup as e, ElRadioButton as l, ElTooltip as s, ElInput as t } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
4
|
-
import "element-plus/es/components/input/style/css";
|
|
5
|
-
import "element-plus/es/components/radio-group/style/css";
|
|
6
|
-
import "element-plus/es/components/radio-button/style/css";
|
|
7
|
-
import { defineComponent as o, ref as p, onMounted as r, resolveComponent as a, createElementBlock as i, openBlock as u, Fragment as n, createVNode as d, createBlock as m, createCommentVNode as c, withCtx as v, unref as b } from "vue";
|
|
8
|
-
import { Search as y } from "@element-plus/icons-vue";
|
|
9
|
-
import f from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
10
|
-
const P = o({ __name: "recipients-select", props: { properties: { type: Object, default: () => ({}) }, disabled: { type: Boolean, default: false }, orgType: { type: String, default: "USER" }, selectProps: { type: Object, default: () => ({ label: "label", value: "value" }) } }, setup(o2, { expose: P2 }) {
|
|
11
|
-
const g = o2, V = p(false), h = p(false), j = p(null);
|
|
12
|
-
r(() => {
|
|
13
|
-
});
|
|
14
|
-
const x = (e2) => {
|
|
15
|
-
"orgTree" === e2 && ("USER" === g.orgType ? V.value = true : h.value = true), "data" === e2 && (V.value = false, h.value = false), g.properties[g.selectProps.value] && (g.properties[g.selectProps.label] = "", g.properties[g.selectProps.value] = "");
|
|
16
|
-
}, T = () => {
|
|
17
|
-
g.properties[g.selectProps.value] && (j.value = g.properties[g.selectProps.value].split(",")), "USER" === g.orgType ? V.value = true : h.value = true;
|
|
18
|
-
}, U = (e2) => {
|
|
19
|
-
e2 && e2.loginNames && (g.properties[g.selectProps.value] = e2.loginNames.join(","), g.properties[g.selectProps.label] = e2.userNames.join(",")), V.value = false;
|
|
20
|
-
}, k = (e2) => {
|
|
21
|
-
e2 && e2.codes && (g.properties[g.selectProps.value] = e2.codes.join(","), g.properties[g.selectProps.label] = e2.names.join(",")), h.value = false;
|
|
22
|
-
};
|
|
23
|
-
return P2({}), (p2, r2) => {
|
|
24
|
-
const P3 = l, C = e, F = t, S = s, _ = a("department-user-tree"), w = a("department-tree");
|
|
25
|
-
return u(), i(n, null, [d(C, { modelValue: o2.properties[g.selectProps.dataFrom], "onUpdate:modelValue": r2[0] || (r2[0] = (e2) => o2.properties[g.selectProps.dataFrom] = e2), size: "small", disabled: o2.disabled, style: { "margin-right": "10px" }, onChange: x }, { default: v(() => [d(P3, { label: "动态选取", value: "data" }), d(P3, { label: "指定", value: "orgTree" })]), _: 1 }, 8, ["modelValue", "disabled"]), "data" === o2.properties[g.selectProps.dataFrom] ? (u(), m(b(f), { key: 0, paramTypes: ["page", "data"], disabled: o2.disabled, size: "small", width: "250px", modelValue: o2.properties[g.selectProps.value], "onUpdate:modelValue": r2[1] || (r2[1] = (e2) => o2.properties[g.selectProps.value] = e2) }, null, 8, ["disabled", "modelValue"])) : "orgTree" === o2.properties[g.selectProps.dataFrom] ? (u(), m(S, { key: 1, content: o2.properties[g.selectProps.label] || "请选择", effect: "light", placement: "top" }, { default: v(() => [d(F, { disabled: o2.disabled, readonly: "", size: "small", modelValue: o2.properties[g.selectProps.label], "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => o2.properties[g.selectProps.label] = e2), onClick: T, "suffix-icon": b(y), style: { width: "250px" }, placeholder: "请选择" }, null, 8, ["disabled", "modelValue", "suffix-icon"])]), _: 1 }, 8, ["content"])) : c("", true), V.value ? (u(), m(_, { key: 2, "select-user-info": j.value, "is-need-virtual-user": true, multiple: true, width: "60%", onClose: U }, null, 8, ["select-user-info"])) : c("", true), h.value ? (u(), m(w, { key: 3, multiple: true, onClose: k })) : c("", true)], 64);
|
|
26
|
-
};
|
|
27
|
-
} });
|
|
28
|
-
export {
|
|
29
|
-
P as default
|
|
30
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
disabled: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (...args: any[]) => void;
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
-
disabled: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{
|
|
14
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
15
|
-
}>, {
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
export default _default;
|