service-flow-designer 1.1.10 → 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.
@@ -1,9 +1,9 @@
1
1
 
2
- [data-v-31a15637] .el-table__row {
2
+ [data-v-4fa29bac] .el-table__row {
3
3
  cursor: pointer;
4
4
  }
5
5
  /** 右键菜单样式 */
6
- .context-menu[data-v-31a15637] {
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-31a15637] {
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-31a15637]:hover {
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-31a15637] {
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-31a15637"]]);
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, createBlock, createElementVNode, toDisplayString, createCommentVNode, createTextVNode, withDirectives, vShow, pushScopeId, popScopeId } from "vue";
2
- import { Search, Plus, Menu, Promotion } from "@element-plus/icons-vue";
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-31a15637"), n = n(), popScopeId(), n);
9
- const _hoisted_1 = { class: "custom-tree-node" };
10
- const _hoisted_2 = { style: { "margin-left": "5px", "line-height": "14px", "font-size": "14px" } };
11
- const _hoisted_3 = { class: "dialog-footer" };
12
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "添加菜单", -1));
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, "添加服务", -1));
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, "修改", -1));
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: {
@@ -232,31 +230,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
232
230
  "highlight-current": "",
233
231
  onNodeClick: nodeClick,
234
232
  onNodeContextmenu: nodeContextmenu
235
- }, {
236
- default: withCtx(({ node, data }) => [
237
- createElementVNode("span", _hoisted_1, [
238
- data.type === "MENU" ? (openBlock(), createBlock(_component_el_icon, {
239
- key: 0,
240
- size: 16
241
- }, {
242
- default: withCtx(() => [
243
- createVNode(unref(Menu))
244
- ]),
245
- _: 1
246
- })) : (openBlock(), createBlock(_component_el_icon, {
247
- key: 1,
248
- size: 16
249
- }, {
250
- default: withCtx(() => [
251
- createVNode(unref(Promotion))
252
- ]),
253
- _: 1
254
- })),
255
- createElementVNode("span", _hoisted_2, toDisplayString(node.label), 1)
256
- ])
257
- ]),
258
- _: 1
259
- }, 8, ["data"])) : createCommentVNode("", true),
233
+ }, null, 8, ["data"])) : createCommentVNode("", true),
260
234
  createVNode(_component_el_dialog, {
261
235
  modelValue: dialogVisible.value,
262
236
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
@@ -265,7 +239,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
265
239
  width: "500"
266
240
  }, {
267
241
  footer: withCtx(() => [
268
- createElementVNode("div", _hoisted_3, [
242
+ createElementVNode("div", _hoisted_1, [
269
243
  createVNode(_component_el_button, {
270
244
  size: "mini",
271
245
  onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
@@ -311,24 +285,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
311
285
  tabindex: "-1",
312
286
  class: "menu__item",
313
287
  onClick: _cache[4] || (_cache[4] = ($event) => addServce("MENU"))
314
- }, _hoisted_5)) : createCommentVNode("", true),
288
+ }, _hoisted_3)) : createCommentVNode("", true),
315
289
  contextMenuData.value.type === "MENU" ? (openBlock(), createElementBlock("li", {
316
290
  key: 1,
317
291
  tabindex: "-1",
318
292
  class: "menu__item",
319
293
  onClick: _cache[5] || (_cache[5] = ($event) => addServce("SERVICE"))
320
- }, _hoisted_7)) : createCommentVNode("", true),
294
+ }, _hoisted_5)) : createCommentVNode("", true),
321
295
  currentServiceflowService.value.code !== contextMenuData.value.code ? (openBlock(), createElementBlock("li", {
322
296
  key: 2,
323
297
  tabindex: "-1",
324
298
  class: "menu__item",
325
299
  onClick: editServiceBaseInfo
326
- }, _hoisted_9)) : createCommentVNode("", true),
300
+ }, _hoisted_7)) : createCommentVNode("", true),
327
301
  createElementVNode("li", {
328
302
  tabindex: "-1",
329
303
  class: "menu__item",
330
304
  onClick: deleteService
331
- }, _hoisted_11)
305
+ }, _hoisted_9)
332
306
  ], 512)
333
307
  ], 512), [
334
308
  [vShow, showContextMenu.value]
@@ -1,9 +1,9 @@
1
1
 
2
- [data-v-31a15637] .el-table__row {
2
+ [data-v-4fa29bac] .el-table__row {
3
3
  cursor: pointer;
4
4
  }
5
5
  /** 右键菜单样式 */
6
- .context-menu[data-v-31a15637] {
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-31a15637] {
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-31a15637]:hover {
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-31a15637] {
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-31a15637"]]);
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-31a15637"), n = n(), vue.popScopeId(), n);
10
- const _hoisted_1 = { class: "custom-tree-node" };
11
- const _hoisted_2 = { style: { "margin-left": "5px", "line-height": "14px", "font-size": "14px" } };
12
- const _hoisted_3 = { class: "dialog-footer" };
13
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", null, "添加菜单", -1));
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, "添加服务", -1));
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, "修改", -1));
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: {
@@ -233,31 +231,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
233
231
  "highlight-current": "",
234
232
  onNodeClick: nodeClick,
235
233
  onNodeContextmenu: nodeContextmenu
236
- }, {
237
- default: vue.withCtx(({ node, data }) => [
238
- vue.createElementVNode("span", _hoisted_1, [
239
- data.type === "MENU" ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
240
- key: 0,
241
- size: 16
242
- }, {
243
- default: vue.withCtx(() => [
244
- vue.createVNode(vue.unref(iconsVue.Menu))
245
- ]),
246
- _: 1
247
- })) : (vue.openBlock(), vue.createBlock(_component_el_icon, {
248
- key: 1,
249
- size: 16
250
- }, {
251
- default: vue.withCtx(() => [
252
- vue.createVNode(vue.unref(iconsVue.Promotion))
253
- ]),
254
- _: 1
255
- })),
256
- vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(node.label), 1)
257
- ])
258
- ]),
259
- _: 1
260
- }, 8, ["data"])) : vue.createCommentVNode("", true),
234
+ }, null, 8, ["data"])) : vue.createCommentVNode("", true),
261
235
  vue.createVNode(_component_el_dialog, {
262
236
  modelValue: dialogVisible.value,
263
237
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
@@ -266,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
266
240
  width: "500"
267
241
  }, {
268
242
  footer: vue.withCtx(() => [
269
- vue.createElementVNode("div", _hoisted_3, [
243
+ vue.createElementVNode("div", _hoisted_1, [
270
244
  vue.createVNode(_component_el_button, {
271
245
  size: "mini",
272
246
  onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
@@ -312,24 +286,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
312
286
  tabindex: "-1",
313
287
  class: "menu__item",
314
288
  onClick: _cache[4] || (_cache[4] = ($event) => addServce("MENU"))
315
- }, _hoisted_5)) : vue.createCommentVNode("", true),
289
+ }, _hoisted_3)) : vue.createCommentVNode("", true),
316
290
  contextMenuData.value.type === "MENU" ? (vue.openBlock(), vue.createElementBlock("li", {
317
291
  key: 1,
318
292
  tabindex: "-1",
319
293
  class: "menu__item",
320
294
  onClick: _cache[5] || (_cache[5] = ($event) => addServce("SERVICE"))
321
- }, _hoisted_7)) : vue.createCommentVNode("", true),
295
+ }, _hoisted_5)) : vue.createCommentVNode("", true),
322
296
  currentServiceflowService.value.code !== contextMenuData.value.code ? (vue.openBlock(), vue.createElementBlock("li", {
323
297
  key: 2,
324
298
  tabindex: "-1",
325
299
  class: "menu__item",
326
300
  onClick: editServiceBaseInfo
327
- }, _hoisted_9)) : vue.createCommentVNode("", true),
301
+ }, _hoisted_7)) : vue.createCommentVNode("", true),
328
302
  vue.createElementVNode("li", {
329
303
  tabindex: "-1",
330
304
  class: "menu__item",
331
305
  onClick: deleteService
332
- }, _hoisted_11)
306
+ }, _hoisted_9)
333
307
  ], 512)
334
308
  ], 512), [
335
309
  [vue.vShow, showContextMenu.value]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-flow-designer",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "AgileBuilder Service Flow Designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/lib/index.js",