service-flow-designer 2.2.51-sit5 → 2.2.56

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,7 +1,7 @@
1
1
  import e from "./desginer-index.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const i = r(e, [["__scopeId", "data-v-7117ba9e"]]);
4
+ const d = r(e, [["__scopeId", "data-v-373fda3d"]]);
5
5
  export {
6
- i as default
6
+ d as default
7
7
  };
@@ -3,38 +3,31 @@ import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/container/style/css";
4
4
  import "element-plus/es/components/main/style/css";
5
5
  import "element-plus/es/components/aside/style/css";
6
- import { defineComponent as n, ref as s, computed as l, onMounted as a, createElementBlock as r, openBlock as i, createVNode as c, withCtx as p, normalizeStyle as u } from "vue";
7
- import v from "./service-panel/service-panel.vue.js";
8
- import m from "./service-flow-view/view-index.vue.js";
6
+ import { defineComponent as s, ref as n, createBlock as l, openBlock as a, withCtx as r, createVNode as i, normalizeStyle as c } from "vue";
7
+ import p from "./service-panel/service-panel.vue.js";
8
+ import u from "./service-flow-view/view-index.vue.js";
9
9
  import "./service-components/index.js";
10
- import { useServiceFlowStore as g } from "../stores/page-store.js";
11
- import d from "agilebuilder-ui/src/utils/request";
12
- const f = n({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(n2) {
13
- const f2 = n2, w = s([]);
14
- g().setPageContext(f2.pageContext);
15
- const y = s(null), C = s(), x = s(), F = l(() => ({ height: x.value - 60 + "px" })), D = s();
16
- a(() => {
17
- if (I(), D.value) {
18
- const e2 = D.value.getBoundingClientRect();
19
- (e2.y || 0 === e2.y) && (x.value = window.innerHeight - e2.y);
20
- }
21
- });
22
- const I = () => {
23
- d.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + f2.pageContext.systemCode + "/" + f2.pageContext.systemVersion).then((e2) => {
24
- e2 && (w.value = e2.children);
10
+ import { useServiceFlowStore as m } from "../stores/page-store.js";
11
+ import v from "agilebuilder-ui/src/utils/request";
12
+ const g = s({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(s2) {
13
+ const g2 = s2, d = n([]);
14
+ m().setPageContext(g2.pageContext);
15
+ const f = n(null), w = n(), y = () => {
16
+ v.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + g2.pageContext.systemCode + "/" + g2.pageContext.systemVersion).then((e2) => {
17
+ e2 && (d.value = e2.children);
25
18
  });
26
- }, _ = (e2) => {
27
- C.value.onDragNode(e2);
28
- }, b = (e2) => {
29
- C.value.onServiceClick(e2);
30
- }, T = () => {
31
- C.value.clearFlowCanvas(), y.value = null;
19
+ }, C = (e2) => {
20
+ w.value.onDragNode(e2);
21
+ }, x = (e2) => {
22
+ w.value.onServiceClick(e2);
23
+ }, F = () => {
24
+ w.value.clearFlowCanvas(), f.value = null;
32
25
  };
33
- return (s2, l2) => {
34
- const a2 = t, g2 = o, d2 = e;
35
- return i(), r("div", { ref_key: "serviceFlowContainerRef", ref: D }, [c(d2, { class: "amb-container" }, { default: p(() => [c(a2, { class: "serviceflow-container-left" }, { default: p(() => [c(v, { logicFlowInstance: y.value, "onUpdate:logicFlowInstance": l2[0] || (l2[0] = (e2) => y.value = e2), serviceTreeData: w.value, onServiceClick: b, onClearFlowCanvas: T, onLoadTreeData: I, onDragNode: _, style: u(F.value) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: u(F.value) }, { default: p(() => [c(m, { logicFlowInstance: y.value, "onUpdate:logicFlowInstance": l2[1] || (l2[1] = (e2) => y.value = e2), serviceTreeData: w.value, pageContext: n2.pageContext, onLoadTreeData: I, ref_key: "serviceFlowViewRef", ref: C }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 })], 512);
26
+ return (n2, m2) => {
27
+ const v2 = t, g3 = o, D = e;
28
+ return a(), l(D, { class: "amb-container" }, { default: r(() => [i(v2, { class: "serviceflow-container-left" }, { default: r(() => [i(p, { logicFlowInstance: f.value, "onUpdate:logicFlowInstance": m2[0] || (m2[0] = (e2) => f.value = e2), serviceTreeData: d.value, onServiceClick: x, onClearFlowCanvas: F, onLoadTreeData: y, onDragNode: C, style: c(n2.containerHeightStyle) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), i(g3, { class: "serviceflow-container-main", style: c(n2.containerHeightStyle) }, { default: r(() => [i(u, { logicFlowInstance: f.value, "onUpdate:logicFlowInstance": m2[1] || (m2[1] = (e2) => f.value = e2), serviceTreeData: d.value, pageContext: s2.pageContext, onLoadTreeData: y, ref_key: "serviceFlowViewRef", ref: w }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 });
36
29
  };
37
30
  } });
38
31
  export {
39
- f as default
32
+ g as default
40
33
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./service-list.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-da8fc67a"]]);
4
+ const t = r(e, [["__scopeId", "data-v-b5aa7226"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { ElRow as e, ElCol as l, ElInput as t, ElIcon as a, ElTooltip as n, ElButton as o, ElTree as s, ElDialog as i, ElFormItem as u } from "element-plus/es";
1
+ import { ElRow as e, ElCol as l, ElInput as a, ElIcon as t, ElTooltip as o, ElButton as n, ElTree as s, ElDialog as u, ElFormItem as i } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/dialog/style/css";
4
4
  import "element-plus/es/components/form-item/style/css";
@@ -9,79 +9,90 @@ import "element-plus/es/components/row/style/css";
9
9
  import "element-plus/es/components/col/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import "element-plus/es/components/icon/style/css";
12
- import { defineComponent as r, ref as p, createElementBlock as c, openBlock as d, createVNode as m, withDirectives as v, withCtx as f, unref as y, createElementVNode as g, createTextVNode as h, createBlock as b, toDisplayString as w, createCommentVNode as k, vShow as C } from "vue";
13
- import { Search as x, Plus as _, Menu as V, Promotion as E } from "@element-plus/icons-vue";
12
+ import { defineComponent as d, ref as r, createElementBlock as p, openBlock as c, createVNode as m, withDirectives as v, withCtx as f, unref as y, createElementVNode as g, createTextVNode as h, createBlock as b, toDisplayString as w, createCommentVNode as C, vShow as _ } from "vue";
13
+ import { Search as k, Plus as V, Menu as x, Promotion as E } from "@element-plus/icons-vue";
14
14
  import { v4 as N } from "uuid";
15
15
  import U from "agilebuilder-ui/src/utils/request";
16
- import { findServcieByCode as T } from "../common/util/node-util.js";
17
- import { useServiceFlowStore as O } from "../../stores/page-store.js";
18
- import { ElMessage as A, ElMessageBox as I } from "element-plus";
19
- const P = { class: "custom-tree-node" }, S = { style: { "margin-left": "5px", "line-height": "14px", "font-size": "14px" } }, R = { class: "dialog-footer" }, $ = r({ __name: "service-list", props: { serviceTreeData: { type: Array, default: () => [] } }, emits: ["service-click", "clear-flow-canvas", "load-tree-data"], setup(r2, { emit: $2 }) {
20
- const z = O(), M = $2, D = { id: "id", label: "name" }, L = r2, J = p(""), j = p(), F = p(), q = p(false), B = p({}), G = p(false), H = p(""), K = p({}), Q = p({}), W = (e2, l2, t2, a2) => {
21
- B.value = l2, q.value = true;
22
- const n2 = document.documentElement.scrollTop || document.body.scrollTop;
23
- j.value.style.display = "block", j.value.style.left = e2.x + "px", j.value.style.top = e2.y + n2 - 60 - 10 + "px", document.addEventListener("click", X);
24
- }, X = () => {
25
- q.value = false, document.removeEventListener("click", X);
26
- }, Y = () => {
27
- H.value = "MENU", le("root");
28
- }, Z = (e2) => {
29
- H.value = e2, le("leaf");
16
+ import { findServcieByCode as O } from "../common/util/node-util.js";
17
+ import { useServiceFlowStore as S } from "../../stores/page-store.js";
18
+ import { ElMessage as A, ElMessageBox as T } from "element-plus";
19
+ const I = { class: "custom-tree-node" }, P = { style: { "margin-left": "5px", "line-height": "14px", "font-size": "14px" } }, z = { class: "dialog-footer" }, R = { class: "dialog-footer" }, $ = d({ __name: "service-list", props: { serviceTreeData: { type: Array, default: () => [] } }, emits: ["service-click", "clear-flow-canvas", "load-tree-data"], setup(d2, { emit: $2 }) {
20
+ const J = S(), M = $2, D = { id: "id", label: "name" }, L = d2, j = r(""), q = r(), F = r(), B = r(false), G = r({}), H = r(false), K = r(""), Q = r({}), W = r({}), X = r(false), Y = r({}), Z = (e2, l2, a2, t2) => {
21
+ G.value = l2, B.value = true;
22
+ const o2 = document.documentElement.scrollTop || document.body.scrollTop;
23
+ q.value.style.display = "block", q.value.style.left = e2.x + "px", q.value.style.top = e2.y + o2 - 60 - 10 + "px", document.addEventListener("click", ee);
30
24
  }, ee = () => {
31
- H.value = B.value.type, K.value = JSON.parse(JSON.stringify(B.value)), K.value.children && delete K.value.children, G.value = true;
32
- }, le = (e2) => {
33
- K.value = { code: N(), name: "", customCode: "", type: H.value }, B.value.id && "leaf" === e2 && (K.value.parentCode = B.value.code), G.value = true;
34
- }, te = p([]), ae = (e2, l2, t2) => {
35
- l2 ? (te.value.push(e2.id), e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
36
- -1 == te.value.indexOf(e3.id) && te.value.push(e3.id);
37
- })) : (te.value.splice(te.value.indexOf(e2.id), 1), e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
38
- let l3 = te.value.indexOf(e3.id);
39
- l3 > -1 && te.value.splice(l3, 1);
25
+ B.value = false, document.removeEventListener("click", ee);
26
+ }, le = () => {
27
+ K.value = "MENU", oe("root");
28
+ }, ae = (e2) => {
29
+ K.value = e2, oe("leaf");
30
+ }, te = () => {
31
+ K.value = G.value.type, Q.value = JSON.parse(JSON.stringify(G.value)), Q.value.children && delete Q.value.children, H.value = true;
32
+ }, oe = (e2) => {
33
+ Q.value = { code: N(), name: "", customCode: "", type: K.value }, G.value.id && "leaf" === e2 && (Q.value.parentCode = G.value.code), H.value = true;
34
+ }, ne = r([]), se = (e2, l2, a2) => {
35
+ l2 ? (ne.value.push(e2.id), e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
36
+ -1 == ne.value.indexOf(e3.id) && ne.value.push(e3.id);
37
+ })) : (ne.value.splice(ne.value.indexOf(e2.id), 1), e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
38
+ let l3 = ne.value.indexOf(e3.id);
39
+ l3 > -1 && ne.value.splice(l3, 1);
40
40
  }));
41
- }, ne = z.pageContext.systemCode, oe = z.pageContext.systemVersion, se = () => {
42
- te.value.length > 0 ? U({ url: window.$vueApp.config.globalProperties.baseAPI + `/component/super-page-design/service-flow/export/${ne}/${oe}`, method: "post", data: te.value, responseType: "blob" }).then((e2) => {
43
- let l2 = new Blob([e2], { type: "application/zip" }), t2 = document.createElement("a");
44
- t2.href = window.URL.createObjectURL(l2), t2.download = "服务编排.zip", t2.click(), window.URL.revokeObjectURL(t2.href);
41
+ }, ue = J.pageContext.systemCode, ie = J.pageContext.systemVersion, de = () => {
42
+ ne.value.length > 0 ? U({ url: window.$vueApp.config.globalProperties.baseAPI + `/component/super-page-design/service-flow/export/${ue}/${ie}`, method: "post", data: ne.value, responseType: "blob" }).then((e2) => {
43
+ let l2 = new Blob([e2], { type: "application/zip" }), a2 = document.createElement("a");
44
+ a2.href = window.URL.createObjectURL(l2), a2.download = "服务编排.zip", a2.click(), window.URL.revokeObjectURL(a2.href);
45
45
  }) : A.warning("请选择服务或菜单");
46
- }, ie = p(null), ue = (e2) => {
47
- ie.value.click();
48
- }, re = () => {
49
- const e2 = ie.value.files[0];
46
+ }, re = r(null), pe = (e2) => {
47
+ re.value.click();
48
+ }, ce = () => {
49
+ const e2 = re.value.files[0];
50
50
  if (e2) {
51
- ie.value.value = null;
51
+ re.value.value = null;
52
52
  const l2 = new FormData();
53
- l2.append("multipartFile", e2), U({ url: window.$vueApp.config.globalProperties.baseAPI + `/component/super-page-design/service-flow/import/${ne}/${oe}`, method: "post", headers: { "Content-Type": "multipart/form-data" }, data: l2 }).then(() => {
53
+ l2.append("multipartFile", e2), U({ url: window.$vueApp.config.globalProperties.baseAPI + `/component/super-page-design/service-flow/import/${ue}/${ie}`, method: "post", headers: { "Content-Type": "multipart/form-data" }, data: l2 }).then(() => {
54
54
  A.success("导入成功"), M("load-tree-data");
55
55
  }).catch((e3) => {
56
56
  });
57
57
  } else A.warning("未选择文件");
58
- }, pe = () => {
59
- K.value.name ? "MENU" === K.value.type || K.value.customCode ? (K.value.systemCode || (K.value.systemCode = z.pageContext.systemCode), K.value.publishVersion || (K.value.publishVersion = z.pageContext.systemVersion), U.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow", { designLog: null, appServiceFlow: K.value }).then((e2) => {
60
- e2 && (K.value.id ? (M("load-tree-data"), Object.assign(B.value, e2)) : K.value.parentCode ? (B.value.children || (B.value.children = []), B.value.children.push(e2)) : L.serviceTreeData.push(e2), B.value = {}, A.success("保存成功"), G.value = false, K.value = {});
58
+ }, me = () => {
59
+ Q.value.name ? "MENU" === Q.value.type || Q.value.customCode ? (Q.value.systemCode || (Q.value.systemCode = J.pageContext.systemCode), Q.value.publishVersion || (Q.value.publishVersion = J.pageContext.systemVersion), U.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow", { designLog: null, appServiceFlow: Q.value }).then((e2) => {
60
+ e2 && (Q.value.id ? (M("load-tree-data"), Object.assign(G.value, e2)) : Q.value.parentCode ? (G.value.children || (G.value.children = []), G.value.children.push(e2)) : L.serviceTreeData.push(e2), G.value = {}, A.success("保存成功"), H.value = false, Q.value = {});
61
61
  })) : A.warning("自定义编码不能为空") : A.warning("名称不能为空");
62
- }, ce = () => {
63
- B.value.children && B.value.children.length > 0 ? A.warning("该节点下存在子节点,不能删除!") : I.confirm("确定要删除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e2 }) => {
64
- de();
62
+ }, ve = () => {
63
+ G.value.children && G.value.children.length > 0 ? A.warning("该节点下存在子节点,不能删除!") : T.confirm("确定要删除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e2 }) => {
64
+ fe();
65
65
  });
66
- }, de = () => {
67
- U.delete(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow", { data: [B.value.id] }).then((e2) => {
68
- if (A.success("删除成功"), M("load-tree-data"), B.value.parentCode) {
69
- const e3 = T(B.value.parentCode, L.serviceTreeData), l2 = e3.children.findIndex((e4) => e4.id === B.value.id);
66
+ }, fe = () => {
67
+ U.delete(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow", { data: [G.value.id] }).then((e2) => {
68
+ if (A.success("删除成功"), M("load-tree-data"), G.value.parentCode) {
69
+ const e3 = O(G.value.parentCode, L.serviceTreeData), l2 = e3.children.findIndex((e4) => e4.id === G.value.id);
70
70
  e3.children.splice(l2, 1);
71
71
  } else {
72
- const e3 = L.serviceTreeData.findIndex((e4) => e4.id === B.value.id);
72
+ const e3 = L.serviceTreeData.findIndex((e4) => e4.id === G.value.id);
73
73
  L.serviceTreeData.splice(e3, 1);
74
74
  }
75
- Q.value.code === B.value.code && M("clear-flow-canvas"), B.value = {};
75
+ W.value.code === G.value.code && M("clear-flow-canvas"), G.value = {};
76
76
  });
77
- }, me = (e2, l2, t2) => {
78
- X(), "SERVICE" === e2.type && U.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/" + e2.id).then((e3) => {
79
- e3.variables && (e3.variables = JSON.parse(e3.variables)), e3.log && (e3.log = JSON.parse(e3.log)), e3.flow && (e3.flow = JSON.parse(e3.flow)), e3.returnValues && (e3.returnValues = JSON.parse(e3.returnValues)), Q.value = e3, M("service-click", e3);
77
+ }, ye = (e2, l2, a2) => {
78
+ ee(), "SERVICE" === e2.type && U.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/" + e2.id).then((e3) => {
79
+ e3.variables && (e3.variables = JSON.parse(e3.variables)), e3.log && (e3.log = JSON.parse(e3.log)), e3.flow && (e3.flow = JSON.parse(e3.flow)), e3.returnValues && (e3.returnValues = JSON.parse(e3.returnValues)), W.value = e3, M("service-click", e3);
80
80
  });
81
+ }, ge = () => {
82
+ K.value = G.value.type;
83
+ const e2 = JSON.parse(JSON.stringify(G.value));
84
+ Y.value = { sourceServiceCode: e2.code, publishVersion: e2.publishVersion, code: N() }, X.value = true;
85
+ }, he = () => {
86
+ Y.value.name ? Y.value.customCode ? U.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/copy-service-flow", Y.value).then((e2) => {
87
+ if (e2) {
88
+ const l2 = F.value.getNode(G.value.id);
89
+ l2 && F.value.append(e2, l2.parent), G.value = {}, A.success("保存成功"), X.value = false;
90
+ }
91
+ }) : A.warning("自定义编码不能为空") : A.warning("名称不能为空");
81
92
  };
82
- return (p2, N2) => {
83
- const U2 = a, T2 = t, O2 = l, A2 = e, I2 = o, $3 = n, z2 = s, M2 = u, L2 = i;
84
- return d(), c("div", null, [m(A2, { style: { "margin-bottom": "10px" } }, { default: f(() => [m(O2, { span: 24 }, { default: f(() => [m(T2, { modelValue: J.value, "onUpdate:modelValue": N2[0] || (N2[0] = (e2) => J.value = e2), placeholder: "搜索" }, { suffix: f(() => [m(U2, null, { default: f(() => [m(y(x))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), m(A2, null, { default: f(() => [m(O2, { span: 24 }, { default: f(() => [m($3, { effect: "dark", content: "导入", placement: "top" }, { default: f(() => [m(I2, { type: "primary", onClick: ue }, { default: f(() => [g("input", { ref_key: "processFile", ref: ie, accept: ".zip", name: "processFile", style: { display: "none" }, type: "file", onChange: re }, null, 544), N2[7] || (N2[7] = h(" 导入 "))]), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "导出", placement: "top" }, { default: f(() => [m(I2, { type: "primary", onClick: se }, { default: f(() => N2[8] || (N2[8] = [h("导出")])), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "添加根菜单", placement: "top" }, { default: f(() => [m(I2, { type: "primary", icon: y(_), onClick: Y }, null, 8, ["icon"])]), _: 1 })]), _: 1 })]), _: 1 }), m(z2, { style: { "margin-top": "10px" }, ref_key: "serviceTreeRef", ref: F, data: r2.serviceTreeData, "node-key": "id", props: D, "show-checkbox": "", "expand-on-click-node": false, "default-expand-all": true, "highlight-current": "", onNodeClick: me, onNodeContextmenu: W, onCheckChange: ae }, { default: f(({ node: e2, data: l2 }) => [g("span", P, ["MENU" === l2.type ? (d(), b(U2, { key: 0, size: 16 }, { default: f(() => [m(y(V))]), _: 1 })) : (d(), b(U2, { key: 1, size: 16 }, { default: f(() => [m(y(E))]), _: 1 })), g("span", S, w(e2.label), 1)])]), _: 1 }, 8, ["data"]), m(L2, { modelValue: G.value, "onUpdate:modelValue": N2[4] || (N2[4] = (e2) => G.value = e2), "append-to-body": true, title: "MENU" === H.value ? "菜单" : "服务", width: "500" }, { footer: f(() => [g("div", R, [m(I2, { size: "mini", onClick: N2[3] || (N2[3] = (e2) => G.value = false) }, { default: f(() => N2[9] || (N2[9] = [h("返回")])), _: 1 }), m(I2, { size: "mini", type: "primary", onClick: pe }, { default: f(() => N2[10] || (N2[10] = [h(" 确定 ")])), _: 1 })])]), default: f(() => ["SERVICE" === H.value ? (d(), b(M2, { key: 0, label: "自定义编码:", required: true }, { default: f(() => [m(T2, { disabled: K.value.id, modelValue: K.value.customCode, "onUpdate:modelValue": N2[1] || (N2[1] = (e2) => K.value.customCode = e2) }, null, 8, ["disabled", "modelValue"])]), _: 1 })) : k("", true), m(M2, { label: "          名称:", required: true }, { default: f(() => [m(T2, { modelValue: K.value.name, "onUpdate:modelValue": N2[2] || (N2[2] = (e2) => K.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue", "title"]), v(g("div", null, [g("ul", { ref_key: "contxtMenuRef", ref: j, class: "context-menu" }, ["MENU" === B.value.type ? (d(), c("li", { key: 0, tabindex: "-1", class: "menu__item", onClick: N2[5] || (N2[5] = (e2) => Z("MENU")) }, N2[11] || (N2[11] = [g("span", null, "添加菜单", -1)]))) : k("", true), "MENU" === B.value.type ? (d(), c("li", { key: 1, tabindex: "-1", class: "menu__item", onClick: N2[6] || (N2[6] = (e2) => Z("SERVICE")) }, N2[12] || (N2[12] = [g("span", null, "添加服务", -1)]))) : k("", true), Q.value.code !== B.value.code ? (d(), c("li", { key: 2, tabindex: "-1", class: "menu__item", onClick: ee }, N2[13] || (N2[13] = [g("span", null, "修改", -1)]))) : k("", true), g("li", { tabindex: "-1", class: "menu__item", onClick: ce }, N2[14] || (N2[14] = [g("span", null, "删除", -1)]))], 512)], 512), [[C, q.value]])]);
93
+ return (r2, N2) => {
94
+ const U2 = t, O2 = a, S2 = l, A2 = e, T2 = n, $3 = o, J2 = s, M2 = i, L2 = u;
95
+ return c(), p("div", null, [m(A2, { style: { "margin-bottom": "10px" } }, { default: f(() => [m(S2, { span: 24 }, { default: f(() => [m(O2, { modelValue: j.value, "onUpdate:modelValue": N2[0] || (N2[0] = (e2) => j.value = e2), placeholder: "搜索" }, { suffix: f(() => [m(U2, null, { default: f(() => [m(y(k))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), m(A2, null, { default: f(() => [m(S2, { span: 24 }, { default: f(() => [m($3, { effect: "dark", content: "导入", placement: "top" }, { default: f(() => [m(T2, { type: "primary", onClick: pe }, { default: f(() => [g("input", { ref_key: "processFile", ref: re, accept: ".zip", name: "processFile", style: { display: "none" }, type: "file", onChange: ce }, null, 544), N2[11] || (N2[11] = h(" 导入 "))]), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "导出", placement: "top" }, { default: f(() => [m(T2, { type: "primary", onClick: de }, { default: f(() => N2[12] || (N2[12] = [h("导出")])), _: 1 })]), _: 1 }), m($3, { effect: "dark", content: "添加根菜单", placement: "top" }, { default: f(() => [m(T2, { type: "primary", icon: y(V), onClick: le }, null, 8, ["icon"])]), _: 1 })]), _: 1 })]), _: 1 }), m(J2, { style: { "margin-top": "10px" }, ref_key: "serviceTreeRef", ref: F, data: d2.serviceTreeData, "node-key": "id", props: D, "show-checkbox": "", "expand-on-click-node": false, "default-expand-all": true, "highlight-current": "", onNodeClick: ye, onNodeContextmenu: Z, onCheckChange: se }, { default: f(({ node: e2, data: l2 }) => [g("span", I, ["MENU" === l2.type ? (c(), b(U2, { key: 0, size: 16 }, { default: f(() => [m(y(x))]), _: 1 })) : (c(), b(U2, { key: 1, size: 16 }, { default: f(() => [m(y(E))]), _: 1 })), g("span", P, w(e2.label), 1)])]), _: 1 }, 8, ["data"]), m(L2, { modelValue: H.value, "onUpdate:modelValue": N2[4] || (N2[4] = (e2) => H.value = e2), "append-to-body": true, title: "MENU" === K.value ? "菜单" : "服务", width: "500" }, { footer: f(() => [g("div", z, [m(T2, { size: "mini", onClick: N2[3] || (N2[3] = (e2) => H.value = false) }, { default: f(() => N2[13] || (N2[13] = [h("返回")])), _: 1 }), m(T2, { size: "mini", type: "primary", onClick: me }, { default: f(() => N2[14] || (N2[14] = [h(" 确定 ")])), _: 1 })])]), default: f(() => ["SERVICE" === K.value ? (c(), b(M2, { key: 0, label: "自定义编码:", required: true }, { default: f(() => [m(O2, { disabled: Q.value.id, modelValue: Q.value.customCode, "onUpdate:modelValue": N2[1] || (N2[1] = (e2) => Q.value.customCode = e2) }, null, 8, ["disabled", "modelValue"])]), _: 1 })) : C("", true), m(M2, { label: "          名称:", required: true }, { default: f(() => [m(O2, { modelValue: Q.value.name, "onUpdate:modelValue": N2[2] || (N2[2] = (e2) => Q.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue", "title"]), m(L2, { modelValue: X.value, "onUpdate:modelValue": N2[8] || (N2[8] = (e2) => X.value = e2), "append-to-body": true, title: "复制服务", width: "500" }, { footer: f(() => [g("div", R, [m(T2, { size: "mini", onClick: N2[7] || (N2[7] = (e2) => X.value = false) }, { default: f(() => N2[15] || (N2[15] = [h("返回")])), _: 1 }), m(T2, { size: "mini", type: "primary", onClick: he }, { default: f(() => N2[16] || (N2[16] = [h(" 确定 ")])), _: 1 })])]), default: f(() => [m(M2, { label: "自定义编码:", required: true }, { default: f(() => [m(O2, { modelValue: Y.value.customCode, "onUpdate:modelValue": N2[5] || (N2[5] = (e2) => Y.value.customCode = e2) }, null, 8, ["modelValue"])]), _: 1 }), m(M2, { label: "          名称:", required: true }, { default: f(() => [m(O2, { modelValue: Y.value.name, "onUpdate:modelValue": N2[6] || (N2[6] = (e2) => Y.value.name = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), v(g("div", null, [g("ul", { ref_key: "contxtMenuRef", ref: q, class: "context-menu" }, ["MENU" === G.value.type ? (c(), p("li", { key: 0, tabindex: "-1", class: "menu__item", onClick: N2[9] || (N2[9] = (e2) => ae("MENU")) }, N2[17] || (N2[17] = [g("span", null, "添加菜单", -1)]))) : C("", true), "MENU" === G.value.type ? (c(), p("li", { key: 1, tabindex: "-1", class: "menu__item", onClick: N2[10] || (N2[10] = (e2) => ae("SERVICE")) }, N2[18] || (N2[18] = [g("span", null, "添加服务", -1)]))) : C("", true), W.value.code !== G.value.code ? (c(), p("li", { key: 2, tabindex: "-1", class: "menu__item", onClick: te }, N2[19] || (N2[19] = [g("span", null, "修改", -1)]))) : C("", true), "SERVICE" === G.value.type ? (c(), p("li", { key: 3, tabindex: "-1", class: "menu__item", onClick: ge }, N2[20] || (N2[20] = [g("span", null, "复制", -1)]))) : C("", true), g("li", { tabindex: "-1", class: "menu__item", onClick: ve }, N2[21] || (N2[21] = [g("span", null, "删除", -1)]))], 512)], 512), [[_, B.value && G.value]])]);
85
96
  };
86
97
  } });
87
98
  export {
package/dist/es/style.css CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
- [data-v-da8fc67a] .el-table__row {
2
+ [data-v-b5aa7226] .el-table__row {
3
3
  cursor: pointer;
4
4
  }
5
5
  /** 右键菜单样式 */
6
- .context-menu[data-v-da8fc67a] {
6
+ .context-menu[data-v-b5aa7226] {
7
7
  position: absolute;
8
8
  background: #fff;
9
9
  z-index: 999;
@@ -14,7 +14,7 @@
14
14
  border-radius: 10px;
15
15
  font-size: 14px;
16
16
  }
17
- .context-menu li[data-v-da8fc67a] {
17
+ .context-menu li[data-v-b5aa7226] {
18
18
  list-style-type: none;
19
19
  min-width: 75px;
20
20
  line-height: 28px;
@@ -23,12 +23,12 @@
23
23
  padding-left: 5px;
24
24
  cursor: pointer;
25
25
  }
26
- .context-menu li[data-v-da8fc67a]:hover {
26
+ .context-menu li[data-v-b5aa7226]:hover {
27
27
  background: #0165e1;
28
28
  color: #fff;
29
29
  }
30
30
  /** 右键菜单样式 */
31
- .custom-tree-node[data-v-da8fc67a] {
31
+ .custom-tree-node[data-v-b5aa7226] {
32
32
  font-size: 14px;
33
33
  padding-right: 8px;
34
34
  display: flex; /* 使用Flex布局 */
@@ -1023,10 +1023,11 @@
1023
1023
  width: 100%;
1024
1024
  }
1025
1025
  .amb-item-ghost[data-v-82d0912d] {
1026
- background-color: #5893ef;
1027
- height: 5px;
1028
- line-height: 5px;
1026
+ background-color: rgba(64, 158, 255, .1);
1029
1027
  overflow: hidden;
1028
+ }
1029
+ .amb-item-ghost[data-v-82d0912d] > * {
1030
+ opacity: 0;
1030
1031
  }
1031
1032
  /* 将你的自定义样式添加到这里 */
1032
1033
  .draggable-placeholder[data-v-82d0912d] {
@@ -1130,10 +1131,11 @@
1130
1131
  width: 100%;
1131
1132
  }
1132
1133
  .amb-item-ghost[data-v-0e8afd53] {
1133
- background-color: #5893ef;
1134
- height: 5px;
1135
- line-height: 5px;
1134
+ background-color: rgba(64, 158, 255, .1);
1136
1135
  overflow: hidden;
1136
+ }
1137
+ .amb-item-ghost[data-v-0e8afd53] > * {
1138
+ opacity: 0;
1137
1139
  }
1138
1140
  /* 将你的自定义样式添加到这里 */
1139
1141
  .draggable-placeholder[data-v-0e8afd53] {
@@ -1165,28 +1167,28 @@
1165
1167
  border-width: 0 50px 100px 50px;
1166
1168
  border-color: transparent transparent var(--el-skeleton-color) transparent;
1167
1169
  }
1168
- .serviceflow-container-left[data-v-7117ba9e] {
1170
+ .serviceflow-container-left[data-v-373fda3d] {
1169
1171
  width: 260px;
1170
1172
  padding-right: 20px;
1171
1173
  overflow-y: auto;
1172
1174
  }
1173
- .serviceflow-container-main[data-v-7117ba9e] {
1175
+ .serviceflow-container-main[data-v-373fda3d] {
1174
1176
  padding: 0 10px 0 0;
1175
1177
  }
1176
- .serviceflow-container-main[data-v-7117ba9e]::-webkit-scrollbar {
1178
+ .serviceflow-container-main[data-v-373fda3d]::-webkit-scrollbar {
1177
1179
  width: 1px;
1178
1180
  }
1179
- .serviceflow-container-attr[data-v-7117ba9e] {
1181
+ .serviceflow-container-attr[data-v-373fda3d] {
1180
1182
  width: 300px;
1181
1183
  padding-left: 20px;
1182
1184
  }
1183
1185
  /**
1184
1186
  解决右侧弹出属性配置遮罩层打开后页面其他地方无法点击问题
1185
1187
  */
1186
- [data-v-7117ba9e]:v-deep(.el-drawer__header) {
1188
+ [data-v-373fda3d]:v-deep(.el-drawer__header) {
1187
1189
  margin-bottom: 0 !important;
1188
1190
  }
1189
- [data-v-7117ba9e] .el-overlay {
1191
+ [data-v-373fda3d] .el-overlay {
1190
1192
  position: static;
1191
1193
  }
1192
1194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-flow-designer",
3
- "version": "2.2.51-sit5",
3
+ "version": "2.2.56",
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.19-sit3",
64
+ "agilebuilder-ui": "1.1.21",
65
65
  "codemirror": "^6.0.1",
66
66
  "nprogress": "^0.2.0",
67
67
  "pinia": "^2.1.7",