service-flow-designer 2.3.17-sit4-flow1 → 2.3.19-sit1-flow1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "
|
|
1
|
+
const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "任务变量" }, { value: "service", label: "服务变量" }, { value: "system", label: "系统变量" }, { value: "context", label: "环境变量" }, { value: "fixed", label: "固定值" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户id" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
|
|
2
2
|
function r(a2) {
|
|
3
3
|
return a2 && a2.length > 0 ? e.filter((e2) => a2.includes(e2.value)) : e;
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./config.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = o
|
|
3
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = e(o, [["__scopeId", "data-v-73238421"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElForm as e, ElDivider as l, ElFormItem as t, ElSelect as
|
|
1
|
+
import { ElForm as e, ElDivider as l, ElFormItem as t, ElSelect as a, ElOption as s, ElAlert as o, ElButton as r, ElTable as n, ElTableColumn as i, ElTooltip as p } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/form/style/css";
|
|
4
4
|
import "element-plus/es/components/table/style/css";
|
|
@@ -10,48 +10,48 @@ import "element-plus/es/components/form-item/style/css";
|
|
|
10
10
|
import "element-plus/es/components/select/style/css";
|
|
11
11
|
import "element-plus/es/components/option/style/css";
|
|
12
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 v, createVNode as y, createElementBlock as b, Fragment as h, renderList as k, createTextVNode as g, createElementVNode as
|
|
13
|
+
import { defineComponent as m, ref as u, onMounted as c, createBlock as d, openBlock as f, withCtx as v, createVNode as y, createElementBlock as b, Fragment as h, renderList as k, createTextVNode as g, createElementVNode as w, createCommentVNode as _, toDisplayString as x, unref as V } from "vue";
|
|
14
14
|
import { Minus as O, Plus as S } from "@element-plus/icons-vue";
|
|
15
15
|
import z from "../../../common/components/node-base-config.vue.js";
|
|
16
|
-
const C = { style: { position: "absolute", right: "10px" } },
|
|
17
|
-
const
|
|
16
|
+
const C = { style: { position: "absolute", right: "10px" } }, $ = { key: 0 }, E = { key: 1 }, U = { key: 0 }, j = m({ __name: "config", props: { properties: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(m2, { expose: j2 }) {
|
|
17
|
+
const D = m2;
|
|
18
18
|
u([]);
|
|
19
|
-
const
|
|
19
|
+
const R = u([]), q = u([]), A = u([]);
|
|
20
20
|
c(() => {
|
|
21
|
-
|
|
22
|
-
"array" === e2.type &&
|
|
23
|
-
}),
|
|
21
|
+
D.service.variables && (D.service.variables.forEach((e2) => {
|
|
22
|
+
"array" === e2.type && R.value.push(e2), "array" === e2.type && e2.items[0] && "object" !== e2.items[0].type && A.value.push(e2.name);
|
|
23
|
+
}), F(D.properties.dataSource));
|
|
24
24
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
25
|
+
const B = (e2) => {
|
|
26
|
+
q.value = [], A.value.indexOf(e2) > -1 ? D.properties.sorts && 1 === D.properties.sorts.length && "item" === D.properties.sorts[0].name || (D.properties.sorts = [{ $editing: true, alias: "item", name: "item", order: "asc" }]) : D.service.variables.forEach((l2) => {
|
|
27
27
|
l2.name === e2 && l2.items && l2.items.length > 0 && l2.items[0].items.forEach((e3) => {
|
|
28
|
-
|
|
28
|
+
q.value.push({ name: e3.name, alias: e3.alias });
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
},
|
|
32
|
-
|
|
31
|
+
}, F = (e2) => {
|
|
32
|
+
q.value = [], D.service.variables.forEach((l2) => {
|
|
33
33
|
l2.name === e2 && l2.items && l2.items.length > 0 && l2.items[0].items.forEach((e3) => {
|
|
34
|
-
|
|
34
|
+
q.value.push({ name: e3.name, alias: e3.alias });
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, G = (e2, l2, t2) => {
|
|
38
38
|
e2.$editing = true;
|
|
39
|
-
},
|
|
40
|
-
|
|
39
|
+
}, H = () => {
|
|
40
|
+
D.properties.sorts || (D.properties.sorts = []), A.value.indexOf(D.properties.dataSource) > -1 ? D.properties.sorts.push({ $editing: true, alias: "item", name: "item", order: "asc" }) : D.properties.sorts.push({ $editing: true, name: "", order: "asc" });
|
|
41
41
|
};
|
|
42
|
-
return
|
|
43
|
-
const
|
|
44
|
-
return f(), d(
|
|
45
|
-
return t2 = l2, (
|
|
46
|
-
e3.name === t2 && (
|
|
42
|
+
return j2({}), (u2, c2) => {
|
|
43
|
+
const j3 = l, F2 = s, I = a, J = t, K = r, L = o, M = i, N = p, P = n, Q = e;
|
|
44
|
+
return f(), d(Q, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(j3), y(J, { label: "数据源:" }, { default: v(() => [y(I, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: B }, { default: v(() => [(f(true), b(h, null, k(R.value, (e2) => (f(), d(F2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(L, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ")), w("span", C, [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, size: "small", type: "primary", onClick: H }, { default: v(() => c2[2] || (c2[2] = [g("添加")])), _: 1 })) : _("", true)])]), _: 1 }), y(P, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: G, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(M, { type: "index", width: "50", label: "序号" }), y(M, { prop: "name", label: "字段名" }, { default: v((e2) => [A.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", $, "item")) : e2.row.$editing ? (f(), d(I, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
|
|
45
|
+
return t2 = l2, (a2 = e2.row).alias = "", void q.value.forEach((e3) => {
|
|
46
|
+
e3.name === t2 && (a2.alias = e3.alias);
|
|
47
47
|
});
|
|
48
|
-
var t2,
|
|
49
|
-
}, "value-key": "name", size: "small" }, { default: v(() => [(f(true), b(h, null, k(
|
|
50
|
-
return t2 = e2.$index, e2.row, void
|
|
48
|
+
var t2, a2;
|
|
49
|
+
}, "value-key": "name", size: "small" }, { default: v(() => [(f(true), b(h, null, k(q.value, (e3) => (f(), d(F2, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), b("span", E, x(e2.row.alias), 1))]), _: 1 }), y(M, { prop: "order", label: "排序方式" }, { default: v((e2) => [e2.row.$editing ? (f(), d(I, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: v(() => [y(F2, { label: "升序", value: "asc" }), y(F2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (f(), b("span", U, x(e2.row.order), 1))]), _: 1 }), y(M, { align: "right" }, { header: v(() => [y(N, { effect: "dark", content: "添加", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "primary", size: "small", icon: V(S), circle: "", onClick: c2[1] || (c2[1] = (e2) => H()) }, null, 8, ["icon"])) : _("", true)]), _: 1 })]), default: v((e2) => [w("span", null, [y(N, { effect: "dark", content: "删除", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "danger", size: "small", icon: V(O), circle: "", onClick: (l2) => {
|
|
50
|
+
return t2 = e2.$index, e2.row, void D.properties.sorts.splice(t2, 1);
|
|
51
51
|
var t2;
|
|
52
|
-
} }, null, 8, ["icon", "onClick"])) :
|
|
52
|
+
} }, null, 8, ["icon", "onClick"])) : _("", true)]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
|
|
53
53
|
};
|
|
54
54
|
} });
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
j as default
|
|
57
57
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -1251,13 +1251,13 @@
|
|
|
1251
1251
|
align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
.el-alert + .el-table[data-v-
|
|
1254
|
+
.el-alert + .el-table[data-v-73238421] {
|
|
1255
1255
|
margin-top: 10px;
|
|
1256
1256
|
}
|
|
1257
|
-
.el-table + .el-alert[data-v-
|
|
1257
|
+
.el-table + .el-alert[data-v-73238421] {
|
|
1258
1258
|
margin: 10px 0;
|
|
1259
1259
|
}
|
|
1260
|
-
.el-alert + .el-form-item[data-v-
|
|
1260
|
+
.el-alert + .el-form-item[data-v-73238421] {
|
|
1261
1261
|
margin-top: 10px;
|
|
1262
1262
|
}
|
|
1263
1263
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "service-flow-designer",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.19-sit1-flow1",
|
|
4
4
|
"description": "AgileBuilder Service Flow Designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@logicflow/layout": "1.2.0-alpha.16",
|
|
62
62
|
"@uiw/codemirror-themes-all": "^4.21.25",
|
|
63
63
|
"@vueuse/core": "^10.9.0",
|
|
64
|
-
"agilebuilder-ui": "1.1.
|
|
64
|
+
"agilebuilder-ui": "1.1.62-sit1",
|
|
65
65
|
"codemirror": "^6.0.1",
|
|
66
66
|
"nprogress": "^0.2.0",
|
|
67
67
|
"pinia": "^2.1.7",
|