service-flow-designer 1.1.9 → 1.1.11
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/service-panel/service-list.css +5 -5
- package/dist/es/designer/service-panel/service-list.vue.js +1 -1
- package/dist/es/designer/service-panel/service-list.vue2.js +19 -44
- package/dist/lib/designer/service-panel/service-list.css +5 -5
- package/dist/lib/designer/service-panel/service-list.vue.js +1 -1
- package/dist/lib/designer/service-panel/service-list.vue2.js +17 -42
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
[data-v-
|
|
2
|
+
[data-v-4fa29bac] .el-table__row {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
}
|
|
5
5
|
/** 右键菜单样式 */
|
|
6
|
-
.context-menu[data-v-
|
|
6
|
+
.context-menu[data-v-4fa29bac] {
|
|
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-
|
|
17
|
+
.context-menu li[data-v-4fa29bac] {
|
|
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-
|
|
26
|
+
.context-menu li[data-v-4fa29bac]:hover {
|
|
27
27
|
background: #0165e1;
|
|
28
28
|
color: #fff;
|
|
29
29
|
}
|
|
30
30
|
/** 右键菜单样式 */
|
|
31
|
-
.custom-tree-node[data-v-
|
|
31
|
+
.custom-tree-node[data-v-4fa29bac] {
|
|
32
32
|
font-size: 14px;
|
|
33
33
|
padding-right: 8px;
|
|
34
34
|
display: flex; /* 使用Flex布局 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./service-list.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ServiceList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ServiceList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4fa29bac"]]);
|
|
5
5
|
export {
|
|
6
6
|
ServiceList as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, unref,
|
|
2
|
-
import { Search, Plus
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createCommentVNode, createElementVNode, createTextVNode, withDirectives, vShow, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
import { Search, Plus } from "@element-plus/icons-vue";
|
|
3
3
|
import { v4 } from "uuid";
|
|
4
4
|
import http from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import { findServcieByCode } from "../common/util/node-util.js";
|
|
6
6
|
import { useServiceFlowStore } from "../../stores/page-store.js";
|
|
7
7
|
import { ElMessage } from "element-plus";
|
|
8
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
9
|
-
const _hoisted_1 = { class: "
|
|
10
|
-
const _hoisted_2 =
|
|
11
|
-
const _hoisted_3 =
|
|
12
|
-
|
|
8
|
+
const _withScopeId = (n) => (pushScopeId("data-v-4fa29bac"), n = n(), popScopeId(), n);
|
|
9
|
+
const _hoisted_1 = { class: "dialog-footer" };
|
|
10
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "添加菜单", -1));
|
|
11
|
+
const _hoisted_3 = [
|
|
12
|
+
_hoisted_2
|
|
13
|
+
];
|
|
14
|
+
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "添加服务", -1));
|
|
13
15
|
const _hoisted_5 = [
|
|
14
16
|
_hoisted_4
|
|
15
17
|
];
|
|
16
|
-
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "
|
|
18
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "修改", -1));
|
|
17
19
|
const _hoisted_7 = [
|
|
18
20
|
_hoisted_6
|
|
19
21
|
];
|
|
20
|
-
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "
|
|
22
|
+
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "删除", -1));
|
|
21
23
|
const _hoisted_9 = [
|
|
22
24
|
_hoisted_8
|
|
23
25
|
];
|
|
24
|
-
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "删除", -1));
|
|
25
|
-
const _hoisted_11 = [
|
|
26
|
-
_hoisted_10
|
|
27
|
-
];
|
|
28
26
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
27
|
__name: "service-list",
|
|
30
28
|
props: {
|
|
@@ -220,7 +218,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
218
|
]),
|
|
221
219
|
_: 1
|
|
222
220
|
}),
|
|
223
|
-
|
|
221
|
+
__props.serviceTreeData ? (openBlock(), createBlock(_component_el_tree, {
|
|
222
|
+
key: 0,
|
|
224
223
|
style: { "margin-top": "10px" },
|
|
225
224
|
ref_key: "serviceTreeRef",
|
|
226
225
|
ref: serviceTreeRef,
|
|
@@ -231,31 +230,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
230
|
"highlight-current": "",
|
|
232
231
|
onNodeClick: nodeClick,
|
|
233
232
|
onNodeContextmenu: nodeContextmenu
|
|
234
|
-
},
|
|
235
|
-
default: withCtx(({ node, data }) => [
|
|
236
|
-
createElementVNode("span", _hoisted_1, [
|
|
237
|
-
data.type === "MENU" ? (openBlock(), createBlock(_component_el_icon, {
|
|
238
|
-
key: 0,
|
|
239
|
-
size: 16
|
|
240
|
-
}, {
|
|
241
|
-
default: withCtx(() => [
|
|
242
|
-
createVNode(unref(Menu))
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
})) : (openBlock(), createBlock(_component_el_icon, {
|
|
246
|
-
key: 1,
|
|
247
|
-
size: 16
|
|
248
|
-
}, {
|
|
249
|
-
default: withCtx(() => [
|
|
250
|
-
createVNode(unref(Promotion))
|
|
251
|
-
]),
|
|
252
|
-
_: 1
|
|
253
|
-
})),
|
|
254
|
-
createElementVNode("span", _hoisted_2, toDisplayString(node.label), 1)
|
|
255
|
-
])
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}, 8, ["data"]),
|
|
233
|
+
}, null, 8, ["data"])) : createCommentVNode("", true),
|
|
259
234
|
createVNode(_component_el_dialog, {
|
|
260
235
|
modelValue: dialogVisible.value,
|
|
261
236
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
|
|
@@ -264,7 +239,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
264
239
|
width: "500"
|
|
265
240
|
}, {
|
|
266
241
|
footer: withCtx(() => [
|
|
267
|
-
createElementVNode("div",
|
|
242
|
+
createElementVNode("div", _hoisted_1, [
|
|
268
243
|
createVNode(_component_el_button, {
|
|
269
244
|
size: "mini",
|
|
270
245
|
onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
|
|
@@ -310,24 +285,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
310
285
|
tabindex: "-1",
|
|
311
286
|
class: "menu__item",
|
|
312
287
|
onClick: _cache[4] || (_cache[4] = ($event) => addServce("MENU"))
|
|
313
|
-
},
|
|
288
|
+
}, _hoisted_3)) : createCommentVNode("", true),
|
|
314
289
|
contextMenuData.value.type === "MENU" ? (openBlock(), createElementBlock("li", {
|
|
315
290
|
key: 1,
|
|
316
291
|
tabindex: "-1",
|
|
317
292
|
class: "menu__item",
|
|
318
293
|
onClick: _cache[5] || (_cache[5] = ($event) => addServce("SERVICE"))
|
|
319
|
-
},
|
|
294
|
+
}, _hoisted_5)) : createCommentVNode("", true),
|
|
320
295
|
currentServiceflowService.value.code !== contextMenuData.value.code ? (openBlock(), createElementBlock("li", {
|
|
321
296
|
key: 2,
|
|
322
297
|
tabindex: "-1",
|
|
323
298
|
class: "menu__item",
|
|
324
299
|
onClick: editServiceBaseInfo
|
|
325
|
-
},
|
|
300
|
+
}, _hoisted_7)) : createCommentVNode("", true),
|
|
326
301
|
createElementVNode("li", {
|
|
327
302
|
tabindex: "-1",
|
|
328
303
|
class: "menu__item",
|
|
329
304
|
onClick: deleteService
|
|
330
|
-
},
|
|
305
|
+
}, _hoisted_9)
|
|
331
306
|
], 512)
|
|
332
307
|
], 512), [
|
|
333
308
|
[vShow, showContextMenu.value]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
[data-v-
|
|
2
|
+
[data-v-4fa29bac] .el-table__row {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
}
|
|
5
5
|
/** 右键菜单样式 */
|
|
6
|
-
.context-menu[data-v-
|
|
6
|
+
.context-menu[data-v-4fa29bac] {
|
|
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-
|
|
17
|
+
.context-menu li[data-v-4fa29bac] {
|
|
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-
|
|
26
|
+
.context-menu li[data-v-4fa29bac]:hover {
|
|
27
27
|
background: #0165e1;
|
|
28
28
|
color: #fff;
|
|
29
29
|
}
|
|
30
30
|
/** 右键菜单样式 */
|
|
31
|
-
.custom-tree-node[data-v-
|
|
31
|
+
.custom-tree-node[data-v-4fa29bac] {
|
|
32
32
|
font-size: 14px;
|
|
33
33
|
padding-right: 8px;
|
|
34
34
|
display: flex; /* 使用Flex布局 */
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
const serviceList_vue_vue_type_script_setup_true_lang = require("./service-list.vue2.js");
|
|
3
3
|
;/* empty css */
|
|
4
4
|
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
|
|
5
|
-
const ServiceList = /* @__PURE__ */ _pluginVue_exportHelper(serviceList_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-
|
|
5
|
+
const ServiceList = /* @__PURE__ */ _pluginVue_exportHelper(serviceList_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-4fa29bac"]]);
|
|
6
6
|
module.exports = ServiceList;
|
|
@@ -6,26 +6,24 @@ const http = require("agilebuilder-ui/src/utils/request");
|
|
|
6
6
|
const nodeUtil = require("../common/util/node-util.js");
|
|
7
7
|
const pageStore = require("../../stores/page-store.js");
|
|
8
8
|
const elementPlus = require("element-plus");
|
|
9
|
-
const _withScopeId = (n) => (vue.pushScopeId("data-v-
|
|
10
|
-
const _hoisted_1 = { class: "
|
|
11
|
-
const _hoisted_2 =
|
|
12
|
-
const _hoisted_3 =
|
|
13
|
-
|
|
9
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-4fa29bac"), n = n(), vue.popScopeId(), n);
|
|
10
|
+
const _hoisted_1 = { class: "dialog-footer" };
|
|
11
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "添加菜单", -1));
|
|
12
|
+
const _hoisted_3 = [
|
|
13
|
+
_hoisted_2
|
|
14
|
+
];
|
|
15
|
+
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "添加服务", -1));
|
|
14
16
|
const _hoisted_5 = [
|
|
15
17
|
_hoisted_4
|
|
16
18
|
];
|
|
17
|
-
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "
|
|
19
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "修改", -1));
|
|
18
20
|
const _hoisted_7 = [
|
|
19
21
|
_hoisted_6
|
|
20
22
|
];
|
|
21
|
-
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "
|
|
23
|
+
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "删除", -1));
|
|
22
24
|
const _hoisted_9 = [
|
|
23
25
|
_hoisted_8
|
|
24
26
|
];
|
|
25
|
-
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "删除", -1));
|
|
26
|
-
const _hoisted_11 = [
|
|
27
|
-
_hoisted_10
|
|
28
|
-
];
|
|
29
27
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
30
28
|
__name: "service-list",
|
|
31
29
|
props: {
|
|
@@ -221,7 +219,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
221
219
|
]),
|
|
222
220
|
_: 1
|
|
223
221
|
}),
|
|
224
|
-
vue.
|
|
222
|
+
__props.serviceTreeData ? (vue.openBlock(), vue.createBlock(_component_el_tree, {
|
|
223
|
+
key: 0,
|
|
225
224
|
style: { "margin-top": "10px" },
|
|
226
225
|
ref_key: "serviceTreeRef",
|
|
227
226
|
ref: serviceTreeRef,
|
|
@@ -232,31 +231,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
232
231
|
"highlight-current": "",
|
|
233
232
|
onNodeClick: nodeClick,
|
|
234
233
|
onNodeContextmenu: nodeContextmenu
|
|
235
|
-
},
|
|
236
|
-
default: vue.withCtx(({ node, data }) => [
|
|
237
|
-
vue.createElementVNode("span", _hoisted_1, [
|
|
238
|
-
data.type === "MENU" ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
239
|
-
key: 0,
|
|
240
|
-
size: 16
|
|
241
|
-
}, {
|
|
242
|
-
default: vue.withCtx(() => [
|
|
243
|
-
vue.createVNode(vue.unref(iconsVue.Menu))
|
|
244
|
-
]),
|
|
245
|
-
_: 1
|
|
246
|
-
})) : (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
247
|
-
key: 1,
|
|
248
|
-
size: 16
|
|
249
|
-
}, {
|
|
250
|
-
default: vue.withCtx(() => [
|
|
251
|
-
vue.createVNode(vue.unref(iconsVue.Promotion))
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
})),
|
|
255
|
-
vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(node.label), 1)
|
|
256
|
-
])
|
|
257
|
-
]),
|
|
258
|
-
_: 1
|
|
259
|
-
}, 8, ["data"]),
|
|
234
|
+
}, null, 8, ["data"])) : vue.createCommentVNode("", true),
|
|
260
235
|
vue.createVNode(_component_el_dialog, {
|
|
261
236
|
modelValue: dialogVisible.value,
|
|
262
237
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
|
|
@@ -265,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
265
240
|
width: "500"
|
|
266
241
|
}, {
|
|
267
242
|
footer: vue.withCtx(() => [
|
|
268
|
-
vue.createElementVNode("div",
|
|
243
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
269
244
|
vue.createVNode(_component_el_button, {
|
|
270
245
|
size: "mini",
|
|
271
246
|
onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
|
|
@@ -311,24 +286,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
311
286
|
tabindex: "-1",
|
|
312
287
|
class: "menu__item",
|
|
313
288
|
onClick: _cache[4] || (_cache[4] = ($event) => addServce("MENU"))
|
|
314
|
-
},
|
|
289
|
+
}, _hoisted_3)) : vue.createCommentVNode("", true),
|
|
315
290
|
contextMenuData.value.type === "MENU" ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
316
291
|
key: 1,
|
|
317
292
|
tabindex: "-1",
|
|
318
293
|
class: "menu__item",
|
|
319
294
|
onClick: _cache[5] || (_cache[5] = ($event) => addServce("SERVICE"))
|
|
320
|
-
},
|
|
295
|
+
}, _hoisted_5)) : vue.createCommentVNode("", true),
|
|
321
296
|
currentServiceflowService.value.code !== contextMenuData.value.code ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
322
297
|
key: 2,
|
|
323
298
|
tabindex: "-1",
|
|
324
299
|
class: "menu__item",
|
|
325
300
|
onClick: editServiceBaseInfo
|
|
326
|
-
},
|
|
301
|
+
}, _hoisted_7)) : vue.createCommentVNode("", true),
|
|
327
302
|
vue.createElementVNode("li", {
|
|
328
303
|
tabindex: "-1",
|
|
329
304
|
class: "menu__item",
|
|
330
305
|
onClick: deleteService
|
|
331
|
-
},
|
|
306
|
+
}, _hoisted_9)
|
|
332
307
|
], 512)
|
|
333
308
|
], 512), [
|
|
334
309
|
[vue.vShow, showContextMenu.value]
|