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,24 +0,0 @@
|
|
|
1
|
-
import { ElInput as e, ElDialog as l, ElButton as t } from "element-plus/es";
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/dialog/style/css";
|
|
4
|
-
import "element-plus/es/components/button/style/css";
|
|
5
|
-
import "element-plus/es/components/input/style/css";
|
|
6
|
-
import { defineComponent as o, ref as s, resolveComponent as a, createElementBlock as u, openBlock as n, createVNode as i, unref as p, withCtx as m, createElementVNode as d, createTextVNode as r } from "vue";
|
|
7
|
-
import { Search as c } from "@element-plus/icons-vue";
|
|
8
|
-
import { ElMessage as v } from "element-plus";
|
|
9
|
-
const f = { style: { width: "100%" } }, y = { class: "dialog-footer" }, b = o({ name: "SelectMailTemplates", inheritAttrs: false, __name: "select-mail-template", props: { disabled: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(o2, { emit: b2 }) {
|
|
10
|
-
const g = b2, V = s(window.$vueApp.config.globalProperties.baseURL), _ = s("/mc/email-templates/list/0"), h = s([]), w = s(false), A = s(""), C = { showColumns: "code,name" };
|
|
11
|
-
function T() {
|
|
12
|
-
h.value && 1 === h.value.length ? (A.value = h.value[0].code, g("update:modelValue", A.value), w.value = false) : v({ message: "请选择一个模板!", type: "warning" });
|
|
13
|
-
}
|
|
14
|
-
function k(e2, l2) {
|
|
15
|
-
h.value = e2;
|
|
16
|
-
}
|
|
17
|
-
return (s2, v2) => {
|
|
18
|
-
const b3 = e, g2 = a("super-grid"), h2 = t, x = l;
|
|
19
|
-
return n(), u("span", f, [i(b3, { modelValue: A.value, "onUpdate:modelValue": v2[0] || (v2[0] = (e2) => A.value = e2), onClick: v2[1] || (v2[1] = (e2) => w.value = true), disabled: o2.disabled, readonly: "", "suffix-icon": p(c) }, null, 8, ["modelValue", "disabled", "suffix-icon"]), i(x, { width: "50%", title: "选择模板", modelValue: w.value, "onUpdate:modelValue": v2[3] || (v2[3] = (e2) => w.value = e2), top: "5vh", "append-to-body": "", "custom-class": "properties-editor-noTab" }, { footer: m(() => [d("div", y, [i(h2, { onClick: v2[2] || (v2[2] = (e2) => w.value = false) }, { default: m(() => v2[4] || (v2[4] = [r("返回")])), _: 1 }), i(h2, { type: "primary", onClick: T }, { default: m(() => v2[5] || (v2[5] = [r("确定")])), _: 1 })])]), default: m(() => [i(g2, { ref: "reportGrid", url: V.value + _.value, code: "BS_EMAIL_TEMPLATE", options: C, onSelect: k }, null, 8, ["url"])]), _: 1 }, 8, ["modelValue"])]);
|
|
20
|
-
};
|
|
21
|
-
} });
|
|
22
|
-
export {
|
|
23
|
-
b as default
|
|
24
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
service: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
|
-
}>, {
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
-
properties: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
default: () => {};
|
|
16
|
-
};
|
|
17
|
-
service: {
|
|
18
|
-
type: ObjectConstructor;
|
|
19
|
-
default: () => {};
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
22
|
-
properties: Record<string, any>;
|
|
23
|
-
service: Record<string, any>;
|
|
24
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
-
export default _default;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElDivider as l, ElFormItem as a, ElSelect as o, ElOption as t, ElAlert as s, ElButton as r, ElTable as n, ElTableColumn as p, ElTooltip as i } 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/table/style/css";
|
|
5
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
6
|
-
import "element-plus/es/components/table-column/style/css";
|
|
7
|
-
import "element-plus/es/components/alert/style/css";
|
|
8
|
-
import "element-plus/es/components/button/style/css";
|
|
9
|
-
import "element-plus/es/components/form-item/style/css";
|
|
10
|
-
import "element-plus/es/components/select/style/css";
|
|
11
|
-
import "element-plus/es/components/option/style/css";
|
|
12
|
-
import "element-plus/es/components/divider/style/css";
|
|
13
|
-
import { defineComponent as u, ref as m, onMounted as d, createBlock as c, openBlock as f, withCtx as v, createVNode as b, createElementBlock as y, Fragment as w, renderList as k, createTextVNode as V, createElementVNode as h, toDisplayString as g, unref as _ } from "vue";
|
|
14
|
-
import { Minus as z, Plus as U } from "@element-plus/icons-vue";
|
|
15
|
-
import $ from "../../../common/components/node-base-config.vue.js";
|
|
16
|
-
import { operators as B, logicOperators as S } from "../../util/common-options.js";
|
|
17
|
-
import C from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
18
|
-
const x = { style: { position: "absolute", right: "10px" } }, O = { key: 0 }, j = { key: 0 }, E = { key: 0 }, L = { key: 0 }, T = { key: 0 }, D = u({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(u2, { expose: D2 }) {
|
|
19
|
-
const R = u2, q = m([]), A = m([]);
|
|
20
|
-
d(() => {
|
|
21
|
-
R.service.variables && (R.service.variables.forEach((e2) => {
|
|
22
|
-
"array" === e2.type && e2.items[0] && "object" === e2.items[0].type && q.value.push(e2);
|
|
23
|
-
}), G(R.properties.dataSource));
|
|
24
|
-
});
|
|
25
|
-
const F = (e2, l2, a2) => {
|
|
26
|
-
e2.$editing = true;
|
|
27
|
-
}, G = (e2) => {
|
|
28
|
-
A.value = [], R.service.variables.forEach((l2) => {
|
|
29
|
-
l2.name === e2 && l2.items && l2.items.length > 0 && l2.items[0].items.forEach((e3) => {
|
|
30
|
-
A.value.push({ name: e3.name, alias: e3.alias });
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
}, H = () => {
|
|
34
|
-
R.properties.conditions || (R.properties.conditions = []), R.properties.conditions.push({ $editing: true, leftBracket: "", name: "", operator: "", value: "", rightBracket: "", logicOperator: "" });
|
|
35
|
-
};
|
|
36
|
-
return D2({ onClose: () => {
|
|
37
|
-
R.properties.conditions && R.properties.conditions.forEach((e2) => {
|
|
38
|
-
delete e2.$editing;
|
|
39
|
-
});
|
|
40
|
-
} }), (m2, d2) => {
|
|
41
|
-
const D3 = l, I = t, J = o, K = a, M = r, N = s, P = p, Q = i, W = n, X = e;
|
|
42
|
-
return f(), c(X, { "label-width": "auto", "label-position": "left" }, { default: v(() => [b($, { properties: u2.properties }, null, 8, ["properties"]), b(D3), b(K, { label: "数据源:" }, { default: v(() => [b(J, { modelValue: u2.properties.dataSource, "onUpdate:modelValue": d2[0] || (d2[0] = (e2) => u2.properties.dataSource = e2), "value-key": "name", onChange: G }, { default: v(() => [(f(true), y(w, null, k(q.value, (e2) => (f(), c(I, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(N, { type: "info", size: "small", closable: false }, { title: v(() => [d2[4] || (d2[4] = V(" 清理条件 ")), h("span", x, [b(M, { size: "small", type: "primary", onClick: H }, { default: v(() => d2[3] || (d2[3] = [V("添加")])), _: 1 })])]), _: 1 }), b(W, { data: u2.properties.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: F, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: v(() => [b(P, { type: "index", width: "50", label: "序号" }), b(P, { prop: "name", label: "(((" }, { default: v((e2) => [e2.row.$editing ? (f(), c(J, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "" }, { default: v(() => [b(I, { label: "", value: "" }), b(I, { label: "(", value: "(" }), b(I, { label: "((", value: "((" }), b(I, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (f(), y("span", O, g(e2.row.leftBracket), 1))]), _: 1 }), b(P, { prop: "alias", label: "字段", width: "150" }, { default: v((e2) => [e2.row.$editing ? (f(), c(J, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
|
|
43
|
-
return a2 = l2, (o2 = e2.row).alias = "", void A.value.forEach((e3) => {
|
|
44
|
-
e3.name === a2 && (o2.alias = e3.alias);
|
|
45
|
-
});
|
|
46
|
-
var a2, o2;
|
|
47
|
-
}, "value-key": "name", size: "small" }, { default: v(() => [(f(true), y(w, null, k(A.value, (e3) => (f(), c(I, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), y("span", j, g(e2.row.alias), 1))]), _: 1 }), b(P, { prop: "type", label: "操作符" }, { default: v((e2) => [e2.row.$editing ? (f(), c(J, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small" }, { default: v(() => [(f(true), y(w, null, k(_(B), (e3) => (f(), c(I, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (f(), y("span", E, g(e2.row.operator), 1))]), _: 1 }), b(P, { prop: "value", label: "值", width: "170" }, { default: v((e2) => [b(_(C), { showLabel: !e2.row.$editing, size: "small", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), b(P, { prop: "rightBracket", label: ")))" }, { default: v((e2) => [e2.row.$editing ? (f(), c(J, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "" }, { default: v(() => [b(I, { label: "", value: "" }), b(I, { label: ")", value: ")" }), b(I, { label: "))", value: "))" }), b(I, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (f(), y("span", L, g(e2.row.rightBracket), 1))]), _: 1 }), b(P, { prop: "logicOperator", label: "连接符" }, { default: v((e2) => [e2.row.$editing ? (f(), c(J, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, placeholder: "", size: "small" }, { default: v(() => [(f(true), y(w, null, k(_(S), (e3) => (f(), c(I, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (f(), y("span", T, g(e2.row.logicOperator), 1))]), _: 1 }), b(P, { align: "center" }, { header: v(() => [b(Q, { effect: "dark", content: "添加", placement: "top" }, { default: v(() => [b(M, { type: "primary", size: "small", icon: _(U), circle: "", onClick: H }, null, 8, ["icon"])]), _: 1 })]), default: v((e2) => [h("span", null, [b(Q, { effect: "dark", content: "删除", placement: "top" }, { default: v(() => [b(M, { type: "danger", size: "small", icon: _(z), circle: "", onClick: (l2) => {
|
|
48
|
-
return a2 = e2.$index, e2.row, void R.properties.conditions.splice(a2, 1);
|
|
49
|
-
var a2;
|
|
50
|
-
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), b(N, { title: "结果设置", type: "info", size: "small", closable: false }), b(K, { label: "设置到:" }, { default: v(() => [b(_(C), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: u2.properties.resultSet, "onUpdate:modelValue": d2[1] || (d2[1] = (e2) => u2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 }), b(N, { title: "输出设置", type: "info", size: "small", closable: false }), b(K, { label: "设置到:" }, { default: v(() => [b(_(C), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: u2.properties.resultSet, "onUpdate:modelValue": d2[2] || (d2[2] = (e2) => u2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
51
|
-
};
|
|
52
|
-
} });
|
|
53
|
-
export {
|
|
54
|
-
D as default
|
|
55
|
-
};
|
|
@@ -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: "computationClean", 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,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
service: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
properties: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
service: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{}>, {
|
|
20
|
-
properties: Record<string, any>;
|
|
21
|
-
service: Record<string, any>;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElDivider as l, ElFormItem as t, ElSelect as o, ElOption as a, ElRadioGroup as s, ElRadio as n, ElAlert as i, ElButton as r, ElTable as p, ElTableColumn as u, ElTooltip as d, ElInput 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/input/style/css";
|
|
5
|
-
import "element-plus/es/components/table/style/css";
|
|
6
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
7
|
-
import "element-plus/es/components/table-column/style/css";
|
|
8
|
-
import "element-plus/es/components/alert/style/css";
|
|
9
|
-
import "element-plus/es/components/button/style/css";
|
|
10
|
-
import "element-plus/es/components/radio-group/style/css";
|
|
11
|
-
import "element-plus/es/components/radio/style/css";
|
|
12
|
-
import "element-plus/es/components/form-item/style/css";
|
|
13
|
-
import "element-plus/es/components/select/style/css";
|
|
14
|
-
import "element-plus/es/components/option/style/css";
|
|
15
|
-
import "element-plus/es/components/divider/style/css";
|
|
16
|
-
import { defineComponent as c, ref as f, createBlock as y, openBlock as v, withCtx as b, createVNode as g, createElementBlock as h, Fragment as V, renderList as w, createTextVNode as k, createElementVNode as _, unref as C, toDisplayString as z } from "vue";
|
|
17
|
-
import { Minus as x, Plus as U } from "@element-plus/icons-vue";
|
|
18
|
-
import F from "../../../common/components/node-base-config.vue.js";
|
|
19
|
-
import $ from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
20
|
-
const S = { style: { position: "absolute", right: "10px" } }, O = { key: 0 }, j = { key: 0 }, D = { key: 0 }, E = { key: 0 }, L = c({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(c2, { expose: L2 }) {
|
|
21
|
-
const T = c2, M = f([]), I = f([]), R = f([]), q = f();
|
|
22
|
-
T.service.variables && T.service.variables.forEach((e2) => {
|
|
23
|
-
"array" === e2.type && e2.items[0] && "object" === e2.items[0].type && M.value.push(e2);
|
|
24
|
-
});
|
|
25
|
-
const A = [{ label: "内连接", value: "inner" }, { label: "左连接", value: "left" }, { label: "右连接", value: "right" }], B = (e2, l2) => {
|
|
26
|
-
const t2 = T.service.variables.findIndex((l3) => l3.name === e2);
|
|
27
|
-
"left" === l2 ? -1 !== t2 && (I.value = [], T.service.variables[t2].items[0].items.forEach((e3) => {
|
|
28
|
-
I.value.push({ value: e3.name, label: e3.alias, type: e3.type });
|
|
29
|
-
}), q.value.setSelectOptions()) : -1 !== t2 && (R.value = [], T.service.variables[t2].items[0].items.forEach((e3) => {
|
|
30
|
-
R.value.push({ value: e3.name, label: e3.alias, type: e3.type });
|
|
31
|
-
}));
|
|
32
|
-
}, G = (e2) => {
|
|
33
|
-
T.properties.connectConditions || (T.properties.connectConditions = []), "left" === e2 ? I.value.forEach((e3) => {
|
|
34
|
-
T.properties.connectConditions.push({ $editing: true, leftField: e3.name, rightField: "" });
|
|
35
|
-
}) : R.value.forEach((e3) => {
|
|
36
|
-
T.properties.connectConditions.push({ $editing: true, leftField: "", rightField: e3.name });
|
|
37
|
-
});
|
|
38
|
-
}, H = () => {
|
|
39
|
-
T.properties.connectConditions = [];
|
|
40
|
-
};
|
|
41
|
-
return L2({}), (f2, L3) => {
|
|
42
|
-
const J = l, K = a, N = o, P = t, Q = n, W = s, X = r, Y = i, Z = u, ee = d, le = p, te = m, oe = e;
|
|
43
|
-
return v(), y(oe, { "label-width": "auto", "label-position": "left" }, { default: b(() => [g(F, { properties: c2.properties }, null, 8, ["properties"]), g(J), g(P, { label: "左边数据源:" }, { default: b(() => [g(N, { onChange: L3[0] || (L3[0] = (e2) => B(e2, "left")), modelValue: c2.properties.leftDataSource, "onUpdate:modelValue": L3[1] || (L3[1] = (e2) => c2.properties.leftDataSource = e2), "value-key": "name" }, { default: b(() => [(v(true), h(V, null, w(M.value, (e2) => (v(), y(K, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(P, { label: "右边数据源:" }, { default: b(() => [g(N, { onChange: L3[2] || (L3[2] = (e2) => B(e2, "right")), modelValue: c2.properties.rightDataSource, "onUpdate:modelValue": L3[3] || (L3[3] = (e2) => c2.properties.rightDataSource = e2), "value-key": "name" }, { default: b(() => [(v(true), h(V, null, w(M.value, (e2) => (v(), y(K, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(P, { label: "连接方式:" }, { default: b(() => [g(W, { modelValue: c2.properties.connectMode, "onUpdate:modelValue": L3[4] || (L3[4] = (e2) => c2.properties.connectMode = e2) }, { default: b(() => [(v(), h(V, null, w(A, (e2) => g(Q, { key: e2.value, label: e2.label, value: e2.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(Y, { type: "info", size: "small", closable: false }, { title: b(() => [L3[13] || (L3[13] = k(" 连接条件 ")), _("span", S, [g(X, { size: "small", type: "primary", onClick: L3[5] || (L3[5] = (e2) => G("left")) }, { default: b(() => L3[10] || (L3[10] = [k("全部左表")])), _: 1 }), g(X, { size: "small", type: "primary", onClick: L3[6] || (L3[6] = (e2) => G("right")) }, { default: b(() => L3[11] || (L3[11] = [k("全部右表")])), _: 1 }), g(X, { size: "small", type: "danger", onClick: H }, { default: b(() => L3[12] || (L3[12] = [k("清空")])), _: 1 })])]), _: 1 }), g(le, { border: "", data: c2.properties.connectConditions, style: { width: "100%" }, size: "small" }, { default: b(() => [g(Z, { type: "index", width: "50", label: "序", align: "center" }), g(Z, { label: "左表", align: "center" }, { default: b((e2) => [g(C($), { ref_key: "lefValueRef", ref: q, showLabel: !e2.row.$editing, size: "small", paramTypes: ["data", "fixed"], customOptions: { data: I.value }, modelValue: e2.row.leftField, "onUpdate:modelValue": (l2) => e2.row.leftField = l2 }, null, 8, ["showLabel", "customOptions", "modelValue", "onUpdate:modelValue"])]), _: 1 }), g(Z, { label: "右表", align: "center" }, { default: b((e2) => [g(C($), { showLabel: !e2.row.$editing, size: "small", paramTypes: ["data", "fixed"], customOptions: { data: R.value }, modelValue: e2.row.rightField, "onUpdate:modelValue": (l2) => e2.row.rightField = l2 }, null, 8, ["showLabel", "customOptions", "modelValue", "onUpdate:modelValue"])]), _: 1 }), g(Z, { align: "right" }, { header: b(() => [g(ee, { effect: "dark", content: "添加", placement: "top" }, { default: b(() => [g(X, { type: "primary", size: "small", icon: C(U), circle: "", onClick: L3[7] || (L3[7] = (e2) => (T.properties.connectConditions || (T.properties.connectConditions = []), void T.properties.connectConditions.push({ $editing: true, leftColumn: "", leftFixed: "", rightColumn: "", rightFixed: "" }))) }, null, 8, ["icon"])]), _: 1 })]), default: b((e2) => [_("span", null, [g(X, { type: "danger", size: "small", icon: C(x), circle: "", onClick: (l2) => {
|
|
44
|
-
return t2 = e2.$index, e2.row, void T.properties.connectConditions.splice(t2, 1);
|
|
45
|
-
var t2;
|
|
46
|
-
} }, null, 8, ["icon", "onClick"])])]), _: 1 })]), _: 1 }, 8, ["data"]), g(Y, { title: "输出字段", type: "info", size: "small", closable: false }), g(le, { border: "", "header-row-style": { background: "#0000CD" }, data: c2.properties.outputFields, style: { width: "100%" }, size: "small" }, { default: b(() => [g(Z, { type: "index", width: "50", label: "序", align: "center" }), g(Z, { prop: "source", label: "来源", align: "center" }, { default: b((e2) => [e2.row.$editing ? (v(), y(N, { key: 1, size: "small", modelValue: e2.row.source, "onUpdate:modelValue": (l2) => e2.row.source = l2, placeholder: "" }, { default: b(() => [g(K, { label: "左表", value: "left" }), g(K, { label: "右表", value: "right" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", O, z(e2.row.source), 1))]), _: 1 }), g(Z, { prop: "field", label: "原字段名", align: "center" }, { default: b((e2) => [e2.row.$editing ? (v(), y(N, { key: 1, modelValue: e2.row.field, "onUpdate:modelValue": (l2) => e2.row.field = l2, "value-key": "name", size: "small" }, { default: b(() => ["left" === e2.row.source ? (v(true), h(V, { key: 0 }, w(I.value, (e3) => (v(), y(K, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128)) : (v(true), h(V, { key: 1 }, w(R.value, (e3) => (v(), y(K, { label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", j, z(e2.row.field), 1))]), _: 1 }), g(Z, { prop: "rename", label: "新字段名", align: "center" }, { default: b((e2) => [e2.row.$editing ? (v(), y(te, { key: 1, modelValue: e2.row.rename, "onUpdate:modelValue": (l2) => e2.row.rename = l2, placeholder: "", size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", D, z(e2.row.rename), 1))]), _: 1 }), g(Z, { prop: "fixedValue", label: "固定值", align: "center" }, { default: b((e2) => [e2.row.$editing ? (v(), y(te, { key: 1, modelValue: e2.row.fixedValue, "onUpdate:modelValue": (l2) => e2.row.fixedValue = l2, placeholder: "", size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (v(), h("span", E, z(e2.row.fixedValue), 1))]), _: 1 }), g(Z, { align: "right" }, { header: b(() => [g(ee, { effect: "dark", content: "添加", placement: "top" }, { default: b(() => [g(X, { type: "primary", size: "small", icon: C(U), circle: "", onClick: L3[8] || (L3[8] = (e2) => (T.properties.outputFields || (T.properties.outputFields = []), void T.properties.outputFields.push({ $editing: true, source: "left" }))) }, null, 8, ["icon"])]), _: 1 })]), default: b((e2) => [_("span", null, [g(X, { type: "danger", size: "small", icon: C(x), circle: "", onClick: (l2) => {
|
|
47
|
-
return t2 = e2.$index, e2.row, void T.properties.outputFields.splice(t2, 1);
|
|
48
|
-
var t2;
|
|
49
|
-
} }, null, 8, ["icon", "onClick"])])]), _: 1 })]), _: 1 }, 8, ["data"]), g(Y, { title: "结果设置", type: "info", size: "small", closable: false }), g(P, { label: "设置到:" }, { default: b(() => [g(C($), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: c2.properties.resultSet, "onUpdate:modelValue": L3[9] || (L3[9] = (e2) => c2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
50
|
-
};
|
|
51
|
-
} });
|
|
52
|
-
export {
|
|
53
|
-
L 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: "connect", 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,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
service: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
properties: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
service: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{}>, {
|
|
20
|
-
properties: Record<string, any>;
|
|
21
|
-
service: Record<string, any>;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElFormItem as l, ElSelect as t, ElOption as a, ElRadioGroup as o, ElRadio as s, ElAlert as n, ElTable as i, ElTableColumn as r, ElInput as p, ElButton as u, ElTooltip 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/table/style/css";
|
|
5
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
6
|
-
import "element-plus/es/components/button/style/css";
|
|
7
|
-
import "element-plus/es/components/input/style/css";
|
|
8
|
-
import "element-plus/es/components/table-column/style/css";
|
|
9
|
-
import "element-plus/es/components/alert/style/css";
|
|
10
|
-
import "element-plus/es/components/radio-group/style/css";
|
|
11
|
-
import "element-plus/es/components/radio/style/css";
|
|
12
|
-
import "element-plus/es/components/form-item/style/css";
|
|
13
|
-
import "element-plus/es/components/select/style/css";
|
|
14
|
-
import "element-plus/es/components/option/style/css";
|
|
15
|
-
import { defineComponent as d, ref as c, createBlock as f, openBlock as v, withCtx as y, createVNode as b, createElementBlock as V, Fragment as g, renderList as _, toDisplayString as h, createElementVNode as k, unref as w } from "vue";
|
|
16
|
-
import { Minus as F, Plus as U } from "@element-plus/icons-vue";
|
|
17
|
-
import z from "../../../common/components/node-base-config.vue.js";
|
|
18
|
-
import x from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
19
|
-
const S = { key: 0 }, $ = { key: 0 }, j = { key: 0 }, C = { key: 0 }, D = d({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(d2, { expose: D2 }) {
|
|
20
|
-
const I = d2, O = c([]), E = c([]), T = c([]);
|
|
21
|
-
I.service.variables && I.service.variables.forEach((e2) => {
|
|
22
|
-
"array" === e2.type && e2.items[0] && "object" === e2.items[0].type && O.value.push(e2);
|
|
23
|
-
});
|
|
24
|
-
const q = (e2, l2) => {
|
|
25
|
-
if ("left" === l2) {
|
|
26
|
-
const l3 = I.service.variables.findIndex((l4) => l4.name === e2);
|
|
27
|
-
-1 !== l3 && (E.value = I.service.variables[l3].items[0].items);
|
|
28
|
-
} else {
|
|
29
|
-
const l3 = I.service.variables.findIndex((l4) => l4.name === e2);
|
|
30
|
-
-1 !== l3 && (T.value = I.service.variables[l3].items[0].items);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
return D2({}), (c2, D3) => {
|
|
34
|
-
const A = a, B = t, G = l, H = s, J = o, K = n, L = r, M = p, N = u, P = m, Q = i, R = e;
|
|
35
|
-
return v(), f(R, { "label-width": "auto", "label-position": "left" }, { default: y(() => [b(z, { properties: d2.properties }, null, 8, ["properties"]), b(G, { label: "数据源1:" }, { default: y(() => [b(B, { onChange: D3[0] || (D3[0] = (e2) => q(e2, "left")), modelValue: d2.properties.leftDataSource, "onUpdate:modelValue": D3[1] || (D3[1] = (e2) => d2.properties.leftDataSource = e2), "value-key": "name" }, { default: y(() => [(v(true), V(g, null, _(O.value, (e2) => (v(), f(A, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(G, { label: "数据源2:" }, { default: y(() => [b(B, { onChange: D3[2] || (D3[2] = (e2) => q(e2, "right")), modelValue: d2.properties.rightDataSource, "onUpdate:modelValue": D3[3] || (D3[3] = (e2) => d2.properties.rightDataSource = e2), "value-key": "name" }, { default: y(() => [(v(true), V(g, null, _(O.value, (e2) => (v(), f(A, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(G, { label: "去掉重复值:" }, { default: y(() => [b(J, { modelValue: d2.properties.distinct, "onUpdate:modelValue": D3[4] || (D3[4] = (e2) => d2.properties.distinct = e2) }, { default: y(() => [b(H, { label: "是", value: true }), b(H, { label: "否", value: false })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(K, { title: "输出字段", type: "info", size: "small", closable: false }), b(Q, { data: d2.properties.outputFields, style: { width: "100%" }, size: "small" }, { default: y(() => [b(L, { type: "index", width: "50", label: "序", align: "center" }), b(L, { label: "数据源1", align: "center" }, { default: y(() => [b(L, { prop: "leftField", label: "字段名", align: "center" }, { default: y((e2) => [e2.row.$editing ? (v(), f(B, { key: 1, modelValue: e2.row.leftField, "onUpdate:modelValue": (l2) => e2.row.leftField = l2, "value-key": "name", size: "small" }, { default: y(() => [(v(true), V(g, null, _(E.value, (e3) => (v(), f(A, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), V("span", S, h(e2.row.leftField), 1))]), _: 1 })]), _: 1 }), b(L, { label: "数据源2", align: "center" }, { default: y(() => [b(L, { prop: "rightField", label: "字段名", align: "center" }, { default: y((e2) => [e2.row.$editing ? (v(), f(B, { key: 1, modelValue: e2.row.rightField, "onUpdate:modelValue": (l2) => e2.row.rightField = l2, "value-key": "name", size: "small" }, { default: y(() => [(v(true), V(g, null, _(T.value, (e3) => (v(), f(A, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (v(), V("span", $, h(e2.row.rightField), 1))]), _: 1 })]), _: 1 }), b(L, { prop: "rename", label: "新字段名", align: "center" }, { default: y((e2) => [e2.row.$editing ? (v(), f(M, { key: 1, modelValue: e2.row.rename, "onUpdate:modelValue": (l2) => e2.row.rename = l2, placeholder: "", size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (v(), V("span", j, h(e2.row.rename), 1))]), _: 1 }), b(L, { prop: "fixedValue", label: "固定值", align: "center" }, { default: y((e2) => [e2.row.$editing ? (v(), f(M, { key: 1, modelValue: e2.row.fixedValue, "onUpdate:modelValue": (l2) => e2.row.fixedValue = l2, placeholder: "", size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (v(), V("span", C, h(e2.row.fixedValue), 1))]), _: 1 }), b(L, { align: "right" }, { header: y(() => [b(P, { effect: "dark", content: "添加", placement: "top" }, { default: y(() => [b(N, { type: "primary", size: "small", icon: w(U), circle: "", onClick: D3[5] || (D3[5] = (e2) => (I.properties.outputFields || (I.properties.outputFields = []), void I.properties.outputFields.push({ $editing: true, leftField: "", rightField: "" }))) }, null, 8, ["icon"])]), _: 1 })]), default: y((e2) => [k("span", null, [b(N, { type: "danger", size: "small", icon: w(F), circle: "", onClick: (l2) => {
|
|
36
|
-
return t2 = e2.$index, e2.row, void I.properties.outputFields.splice(t2, 1);
|
|
37
|
-
var t2;
|
|
38
|
-
} }, null, 8, ["icon", "onClick"])])]), _: 1 })]), _: 1 }, 8, ["data"]), b(K, { title: "结果设置", type: "info", size: "small", closable: false }), b(G, { label: "设置到:" }, { default: y(() => [b(w(x), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: d2.properties.resultSet, "onUpdate:modelValue": D3[6] || (D3[6] = (e2) => d2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
39
|
-
};
|
|
40
|
-
} });
|
|
41
|
-
export {
|
|
42
|
-
D as default
|
|
43
|
-
};
|
|
@@ -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: "splitJoint", 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,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
properties: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
service: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
properties: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
service: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{}>, {
|
|
20
|
-
properties: Record<string, any>;
|
|
21
|
-
service: Record<string, any>;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
-
export default _default;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ElForm as e, ElDivider as l, ElFormItem as a, ElSelect as t, ElOption as o, ElAlert as s, ElButton as n, ElTable as i, ElTableColumn as r, ElTooltip as p, ElInput 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/input/style/css";
|
|
5
|
-
import "element-plus/es/components/table/style/css";
|
|
6
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
7
|
-
import "element-plus/es/components/table-column/style/css";
|
|
8
|
-
import "element-plus/es/components/alert/style/css";
|
|
9
|
-
import "element-plus/es/components/button/style/css";
|
|
10
|
-
import "element-plus/es/components/form-item/style/css";
|
|
11
|
-
import "element-plus/es/components/select/style/css";
|
|
12
|
-
import "element-plus/es/components/option/style/css";
|
|
13
|
-
import "element-plus/es/components/divider/style/css";
|
|
14
|
-
import { defineComponent as u, ref as d, onMounted as c, createBlock as f, openBlock as y, withCtx as b, createVNode as v, createElementBlock as w, Fragment as k, renderList as h, createTextVNode as _, createElementVNode as V, toDisplayString as g, unref as z } from "vue";
|
|
15
|
-
import { Minus as x, Plus as U } from "@element-plus/icons-vue";
|
|
16
|
-
import C from "../../../common/components/node-base-config.vue.js";
|
|
17
|
-
import { dateFormats as $, formulas as F } from "../../util/common-options.js";
|
|
18
|
-
import j from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
19
|
-
const S = { style: { position: "absolute", right: "10px" } }, E = { key: 0 }, D = { key: 0 }, O = { style: { position: "absolute", right: "10px" } }, R = { key: 0 }, T = { key: 0 }, q = { key: 0 }, A = u({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(u2, { expose: A2 }) {
|
|
20
|
-
const B = u2, G = d([]), H = d([]);
|
|
21
|
-
c(() => {
|
|
22
|
-
B.service.variables && (B.service.variables.forEach((e2) => {
|
|
23
|
-
"array" === e2.type && e2.items[0] && "object" === e2.items[0].type && G.value.push(e2);
|
|
24
|
-
}), I(B.properties.dataSource));
|
|
25
|
-
});
|
|
26
|
-
const I = (e2) => {
|
|
27
|
-
H.value = [], B.service.variables.forEach((l2) => {
|
|
28
|
-
l2.name === e2 && l2.items && l2.items.length > 0 && l2.items[0].items.forEach((e3) => {
|
|
29
|
-
H.value.push({ name: e3.name, alias: e3.alias });
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
}, J = (e2, l2, a2) => {
|
|
33
|
-
e2.$editing = true;
|
|
34
|
-
}, K = () => {
|
|
35
|
-
B.properties.dimensions || (B.properties.dimensions = []), B.properties.dimensions.push({ $editing: true });
|
|
36
|
-
}, L = () => {
|
|
37
|
-
B.properties.statisticalFormulas || (B.properties.statisticalFormulas = []), B.properties.statisticalFormulas.push({ $editing: true });
|
|
38
|
-
};
|
|
39
|
-
return A2({}), (d2, c2) => {
|
|
40
|
-
const A3 = l, M = o, N = t, P = a, Q = n, W = s, X = r, Y = p, Z = i, ee = m, le = e;
|
|
41
|
-
return y(), f(le, { "label-width": "auto", "label-position": "left" }, { default: b(() => [v(C, { properties: u2.properties }, null, 8, ["properties"]), v(A3), v(P, { label: "数据源:" }, { default: b(() => [v(N, { modelValue: u2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => u2.properties.dataSource = e2), "value-key": "name", onChange: I }, { default: b(() => [(y(true), w(k, null, h(G.value, (e2) => (y(), f(M, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(W, { type: "info", size: "small", closable: false }, { title: b(() => [c2[5] || (c2[5] = _(" 汇总维度 ")), V("span", S, [v(Q, { size: "small", type: "primary", onClick: K }, { default: b(() => c2[4] || (c2[4] = [_("添加")])), _: 1 })])]), _: 1 }), v(Z, { data: u2.properties.dimensions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: J, size: "small", border: "", "default-expand-all": "" }, { default: b(() => [v(X, { type: "index", width: "50", label: "序号" }), v(X, { prop: "name", label: "字段名" }, { default: b((e2) => [e2.row.$editing ? (y(), f(N, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
|
|
42
|
-
return a2 = l2, (t2 = e2.row).alias = "", void H.value.forEach((e3) => {
|
|
43
|
-
e3.name === a2 && (t2.alias = e3.alias);
|
|
44
|
-
});
|
|
45
|
-
var a2, t2;
|
|
46
|
-
}, "value-key": "name", size: "small" }, { default: b(() => [(y(true), w(k, null, h(H.value, (e3) => (y(), f(M, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (y(), w("span", E, g(e2.row.alias), 1))]), _: 1 }), v(X, { prop: "name", label: "日期格式化" }, { default: b((e2) => [e2.row.$editing ? (y(), f(N, { key: 1, modelValue: e2.row.dateFormat, "onUpdate:modelValue": (l2) => e2.row.dateFormat = l2, placeholder: "", size: "small" }, { default: b(() => [(y(true), w(k, null, h(z($), (e3) => (y(), f(M, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (y(), w("span", D, g(e2.row.dateFormat), 1))]), _: 1 }), v(X, { align: "right" }, { header: b(() => [v(Y, { effect: "dark", content: "添加", placement: "top" }, { default: b(() => [v(Q, { type: "primary", size: "small", icon: z(U), circle: "", onClick: c2[1] || (c2[1] = (e2) => K()) }, null, 8, ["icon"])]), _: 1 })]), default: b((e2) => [V("span", null, [v(Y, { effect: "dark", content: "删除", placement: "top" }, { default: b(() => [v(Q, { type: "danger", size: "small", icon: z(x), circle: "", onClick: (l2) => {
|
|
47
|
-
return a2 = e2.$index, e2.row, void B.properties.dimensions.splice(a2, 1);
|
|
48
|
-
var a2;
|
|
49
|
-
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(W, { type: "info", size: "small", closable: false }, { title: b(() => [c2[7] || (c2[7] = _(" 统计公式 ")), V("span", O, [v(Q, { size: "small", type: "primary", onClick: L }, { default: b(() => c2[6] || (c2[6] = [_("添加")])), _: 1 })])]), _: 1 }), v(Z, { data: u2.properties.statisticalFormulas, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: J, size: "small", border: "", "default-expand-all": "" }, { default: b(() => [v(X, { type: "index", width: "50", label: "序号" }), v(X, { prop: "alias", label: "字段名" }, { default: b((e2) => [e2.row.$editing ? (y(), f(N, { key: 1, filterable: true, "allow-create": true, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: b(() => [(y(true), w(k, null, h(H.value, (e3) => (y(), f(M, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (y(), w("span", R, g(e2.row.alias), 1))]), _: 1 }), v(X, { prop: "formula", label: "公式" }, { default: b((e2) => [e2.row.$editing ? (y(), f(N, { key: 1, filterable: true, "allow-create": true, modelValue: e2.row.formula, "onUpdate:modelValue": (l2) => e2.row.formula = l2, placeholder: "", size: "small" }, { default: b(() => [(y(true), w(k, null, h(z(F), (e3) => (y(), f(M, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (y(), w("span", T, g(e2.row.formula), 1))]), _: 1 }), v(X, { prop: "rename", label: "新字段名" }, { default: b((e2) => [e2.row.$editing ? (y(), f(ee, { key: 1, modelValue: e2.row.rename, "onUpdate:modelValue": (l2) => e2.row.rename = l2, placeholder: "", size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (y(), w("span", q, g(e2.row.rename), 1))]), _: 1 }), v(X, { align: "right" }, { header: b(() => [v(Y, { effect: "dark", content: "添加", placement: "top" }, { default: b(() => [v(Q, { type: "primary", size: "small", icon: z(U), circle: "", onClick: c2[2] || (c2[2] = (e2) => L()) }, null, 8, ["icon"])]), _: 1 })]), default: b((e2) => [V("span", null, [v(Y, { effect: "dark", content: "删除", placement: "top" }, { default: b(() => [v(Q, { type: "danger", size: "small", icon: z(x), circle: "", onClick: (l2) => {
|
|
50
|
-
return a2 = e2.$index, e2.row, void B.properties.statisticalFormulas.splice(a2, 1);
|
|
51
|
-
var a2;
|
|
52
|
-
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(W, { title: "结果设置", type: "info", size: "small", closable: false }), v(P, { label: "设置到:" }, { default: b(() => [v(z(j), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: u2.properties.resultSet, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => u2.properties.resultSet = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 });
|
|
53
|
-
};
|
|
54
|
-
} });
|
|
55
|
-
export {
|
|
56
|
-
A as default
|
|
57
|
-
};
|
|
@@ -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: "statistics", 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
|
-
};
|