service-flow-designer 2.0.18 → 2.0.24

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 _sfc_main from "./database-select.vue2.js";
2
2
  import "./database-select.vue3.js";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const DatabaseSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-92a1d6cc"]]);
4
+ const DatabaseSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7fcf8a84"]]);
5
5
  export {
6
6
  DatabaseSelect as default
7
7
  };
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
71
  propValue: searchForm.value.searchName
72
72
  });
73
73
  }
74
- http.post("/mms/data-tables/list/", param).then((res) => {
74
+ http.post(window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/list/", param).then((res) => {
75
75
  tableListData.value = res.data;
76
76
  pagination.value.pageSize = res.size;
77
77
  pagination.value.total = res.total;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./datatable-select.vue2.js";
2
2
  import "./datatable-select.vue3.js";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const DatatableSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dbffbd8f"]]);
4
+ const DatatableSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3918f594"]]);
5
5
  export {
6
6
  DatatableSelect as default
7
7
  };
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
62
  }
63
63
  );
64
64
  function initData() {
65
- http.get("/component/super-charts/findAllSystem").then((res) => {
65
+ http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((res) => {
66
66
  if (res) {
67
67
  res.forEach((item) => {
68
68
  item.name = item.name + "(" + item.publishVersion + ")";
@@ -118,7 +118,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  });
119
119
  }
120
120
  const querySystemCode = systemCode || props.systemCode;
121
- http.post("/mms/data-tables/list/" + querySystemCode + "/0/" + props.systemVersion, param).then((res) => {
121
+ http.post(
122
+ window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/list/" + querySystemCode + "/0/" + props.systemVersion,
123
+ param
124
+ ).then((res) => {
122
125
  tableListData.value = res.data;
123
126
  pagination.value.pageSize = res.size;
124
127
  pagination.value.total = res.total;
@@ -2,7 +2,7 @@ import { ElDialog } 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 { defineComponent, ref, watch, openBlock, createBlock, withCtx, createVNode } from "vue";
5
- import _sfc_main$1 from "./json-view.vue2.js";
5
+ import _sfc_main$1 from "./json-view.vue.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  ...{
8
8
  name: "JsonViewDialog",
@@ -1,4 +1,142 @@
1
- import _sfc_main from "./json-view.vue2.js";
1
+ import { defineComponent, ref, watch, onMounted, nextTick, openBlock, createElementBlock } from "vue";
2
+ import { EditorView, basicSetup } from "codemirror";
3
+ import { jsonLanguage } from "@codemirror/lang-json";
4
+ import { EditorState, Facet } from "@codemirror/state";
5
+ import { eclipse, githubDark, githubLight, dracula, vscodeDark, xcodeDark, xcodeLight } from "@uiw/codemirror-themes-all";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ ...{
8
+ name: "JsonView",
9
+ inheritAttrs: false
10
+ },
11
+ __name: "json-view",
12
+ props: {
13
+ jsonObject: {
14
+ type: Object,
15
+ default: () => {
16
+ }
17
+ },
18
+ height: {
19
+ type: Number,
20
+ default: 0
21
+ },
22
+ theme: {
23
+ type: String,
24
+ default: null
25
+ }
26
+ },
27
+ setup(__props) {
28
+ const props = __props;
29
+ const editor = ref(null);
30
+ const cfCodemirrorJsonViewRef = ref();
31
+ const codemirrorHeight = ref("400px");
32
+ watch(
33
+ () => props.jsonObject,
34
+ (newVal) => {
35
+ if (editor.value) {
36
+ loadEditor();
37
+ }
38
+ },
39
+ { deep: true }
40
+ );
41
+ onMounted(() => {
42
+ nextTick(() => {
43
+ loadEditor();
44
+ });
45
+ });
46
+ function loadEditor() {
47
+ if (editor.value) {
48
+ editor.value.destroy();
49
+ }
50
+ const jsonStr = props.jsonObject ? JSON.stringify(props.jsonObject, null, 2) : "";
51
+ if (props.height) {
52
+ codemirrorHeight.value = props.height + "px";
53
+ } else {
54
+ if (cfCodemirrorJsonViewRef.value) {
55
+ const rect = cfCodemirrorJsonViewRef.value.getBoundingClientRect();
56
+ if (rect.y || rect.y === 0) {
57
+ console.log("window.innerHeight - rect.y", window.innerHeight, rect.y);
58
+ codemirrorHeight.value = window.innerHeight - rect.y - 100 + "px";
59
+ }
60
+ }
61
+ }
62
+ const state = getEditorState(jsonStr);
63
+ let element = document.getElementById("cf-codemirror-view-json");
64
+ if (element) {
65
+ editor.value = new EditorView({
66
+ state,
67
+ parent: element
68
+ });
69
+ }
70
+ }
71
+ function getEditorState(jsonStr) {
72
+ const mytheme = getTheme();
73
+ const baseTheme = EditorView.theme({
74
+ ".cm-content, .cm-gutter": { minHeight: codemirrorHeight.value },
75
+ "&": {
76
+ height: codemirrorHeight.value,
77
+ maxHeight: codemirrorHeight.value,
78
+ fontSize: "12px"
79
+ }
80
+ });
81
+ return EditorState.create({
82
+ doc: jsonStr,
83
+ extensions: [
84
+ EditorState.tabSize.of(16),
85
+ basicSetup,
86
+ jsonLanguage,
87
+ mytheme,
88
+ baseTheme,
89
+ readOnlyFacet.of(true),
90
+ preventChanges
91
+ ]
92
+ });
93
+ }
94
+ const readOnlyFacet = Facet.define({ combine: (values) => values.some((a) => a) });
95
+ const preventChanges = EditorState.transactionFilter.of((tr) => {
96
+ if (tr.isUserEvent && tr.docChanged && tr.state.facet(readOnlyFacet)) {
97
+ return {
98
+ changes: {
99
+ from: tr.changes.from,
100
+ to: tr.changes.to,
101
+ insert: tr.startState.doc.sliceString(tr.changes.from, tr.changes.to)
102
+ }
103
+ };
104
+ }
105
+ return tr;
106
+ });
107
+ function getTheme() {
108
+ if (props.theme) {
109
+ switch (props.theme) {
110
+ case "xcodeLight":
111
+ return xcodeLight;
112
+ case "xcodeDark":
113
+ return xcodeDark;
114
+ case "vscodeDark":
115
+ return vscodeDark;
116
+ case "dracula":
117
+ return dracula;
118
+ case "githubLight":
119
+ return githubLight;
120
+ case "githubDark":
121
+ return githubDark;
122
+ case "eclipse":
123
+ return eclipse;
124
+ }
125
+ }
126
+ return EditorView.theme({});
127
+ }
128
+ return (_ctx, _cache) => {
129
+ return openBlock(), createElementBlock("div", {
130
+ style: {
131
+ width: "100%"
132
+ },
133
+ ref_key: "cfCodemirrorJsonViewRef",
134
+ ref: cfCodemirrorJsonViewRef,
135
+ id: "cf-codemirror-view-json"
136
+ }, null, 512);
137
+ };
138
+ }
139
+ });
2
140
  export {
3
141
  _sfc_main as default
4
142
  };
@@ -1,142 +1,4 @@
1
- import { defineComponent, ref, watch, onMounted, nextTick, openBlock, createElementBlock } from "vue";
2
- import { EditorView, basicSetup } from "codemirror";
3
- import { jsonLanguage } from "@codemirror/lang-json";
4
- import { EditorState, Facet } from "@codemirror/state";
5
- import { eclipse, githubDark, githubLight, dracula, vscodeDark, xcodeDark, xcodeLight } from "@uiw/codemirror-themes-all";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- ...{
8
- name: "JsonView",
9
- inheritAttrs: false
10
- },
11
- __name: "json-view",
12
- props: {
13
- jsonObject: {
14
- type: Object,
15
- default: () => {
16
- }
17
- },
18
- height: {
19
- type: Number,
20
- default: 0
21
- },
22
- theme: {
23
- type: String,
24
- default: null
25
- }
26
- },
27
- setup(__props) {
28
- const props = __props;
29
- const editor = ref(null);
30
- const cfCodemirrorJsonViewRef = ref();
31
- const codemirrorHeight = ref("400px");
32
- watch(
33
- () => props.jsonObject,
34
- (newVal) => {
35
- if (editor.value) {
36
- loadEditor();
37
- }
38
- },
39
- { deep: true }
40
- );
41
- onMounted(() => {
42
- nextTick(() => {
43
- loadEditor();
44
- });
45
- });
46
- function loadEditor() {
47
- if (editor.value) {
48
- editor.value.destroy();
49
- }
50
- const jsonStr = props.jsonObject ? JSON.stringify(props.jsonObject, null, 2) : "";
51
- if (props.height) {
52
- codemirrorHeight.value = props.height + "px";
53
- } else {
54
- if (cfCodemirrorJsonViewRef.value) {
55
- const rect = cfCodemirrorJsonViewRef.value.getBoundingClientRect();
56
- if (rect.y || rect.y === 0) {
57
- console.log("window.innerHeight - rect.y", window.innerHeight, rect.y);
58
- codemirrorHeight.value = window.innerHeight - rect.y - 100 + "px";
59
- }
60
- }
61
- }
62
- const state = getEditorState(jsonStr);
63
- let element = document.getElementById("cf-codemirror-view-json");
64
- if (element) {
65
- editor.value = new EditorView({
66
- state,
67
- parent: element
68
- });
69
- }
70
- }
71
- function getEditorState(jsonStr) {
72
- const mytheme = getTheme();
73
- const baseTheme = EditorView.theme({
74
- ".cm-content, .cm-gutter": { minHeight: codemirrorHeight.value },
75
- "&": {
76
- height: codemirrorHeight.value,
77
- maxHeight: codemirrorHeight.value,
78
- fontSize: "12px"
79
- }
80
- });
81
- return EditorState.create({
82
- doc: jsonStr,
83
- extensions: [
84
- EditorState.tabSize.of(16),
85
- basicSetup,
86
- jsonLanguage,
87
- mytheme,
88
- baseTheme,
89
- readOnlyFacet.of(true),
90
- preventChanges
91
- ]
92
- });
93
- }
94
- const readOnlyFacet = Facet.define({ combine: (values) => values.some((a) => a) });
95
- const preventChanges = EditorState.transactionFilter.of((tr) => {
96
- if (tr.isUserEvent && tr.docChanged && tr.state.facet(readOnlyFacet)) {
97
- return {
98
- changes: {
99
- from: tr.changes.from,
100
- to: tr.changes.to,
101
- insert: tr.startState.doc.sliceString(tr.changes.from, tr.changes.to)
102
- }
103
- };
104
- }
105
- return tr;
106
- });
107
- function getTheme() {
108
- if (props.theme) {
109
- switch (props.theme) {
110
- case "xcodeLight":
111
- return xcodeLight;
112
- case "xcodeDark":
113
- return xcodeDark;
114
- case "vscodeDark":
115
- return vscodeDark;
116
- case "dracula":
117
- return dracula;
118
- case "githubLight":
119
- return githubLight;
120
- case "githubDark":
121
- return githubDark;
122
- case "eclipse":
123
- return eclipse;
124
- }
125
- }
126
- return EditorView.theme({});
127
- }
128
- return (_ctx, _cache) => {
129
- return openBlock(), createElementBlock("div", {
130
- style: {
131
- width: "100%"
132
- },
133
- ref_key: "cfCodemirrorJsonViewRef",
134
- ref: cfCodemirrorJsonViewRef,
135
- id: "cf-codemirror-view-json"
136
- }, null, 512);
137
- };
138
- }
139
- });
1
+ import _sfc_main from "./json-view.vue.js";
140
2
  export {
141
3
  _sfc_main as default
142
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./desginer-index.vue2.js";
2
2
  import "./desginer-index.vue3.js";
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const ServiceFlowDesginer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9cfa34b7"]]);
4
+ const ServiceFlowDesginer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a35a4385"]]);
5
5
  export {
6
6
  ServiceFlowDesginer as default
7
7
  };
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  });
43
43
  const loadTreeData = () => {
44
44
  http.get(
45
- "/component/super-page-design/service-flow/tree/" + props.pageContext.systemCode + "/" + props.pageContext.systemVersion
45
+ window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + props.pageContext.systemCode + "/" + props.pageContext.systemVersion
46
46
  ).then((res) => {
47
47
  if (res) {
48
48
  serviceTreeData.value = res.children;
@@ -39,8 +39,8 @@ declare const _default: import('vue').DefineComponent<{
39
39
  };
40
40
  };
41
41
  }>>, {
42
- properties: Record<string, any>;
43
42
  disabled: boolean;
43
+ properties: Record<string, any>;
44
44
  orgType: string;
45
45
  selectProps: Record<string, any>;
46
46
  }, {}>;
@@ -167,6 +167,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
167
167
  ]),
168
168
  _: 1
169
169
  }),
170
+ createVNode(_component_el_form_item, { label: "服务自定义编码:" }, {
171
+ default: withCtx(() => [
172
+ createVNode(_component_el_input, {
173
+ disabled: true,
174
+ modelValue: __props.service.customCode,
175
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.service.customCode = $event),
176
+ placeholder: ""
177
+ }, null, 8, ["modelValue"])
178
+ ]),
179
+ _: 1
180
+ }),
170
181
  createVNode(_component_el_divider),
171
182
  createVNode(_component_el_table, {
172
183
  data: __props.service.variables,
@@ -372,7 +383,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
372
383
  createVNode(_component_el_input, {
373
384
  type: "textarea",
374
385
  modelValue: __props.service.errorMessage,
375
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.service.errorMessage = $event)
386
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.service.errorMessage = $event)
376
387
  }, null, 8, ["modelValue"])
377
388
  ]),
378
389
  _: 1
@@ -387,7 +398,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
387
398
  default: withCtx(() => [
388
399
  createVNode(_component_el_checkbox, {
389
400
  modelValue: __props.service.log.enable,
390
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.service.log.enable = $event),
401
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.service.log.enable = $event),
391
402
  label: "启用操作日志"
392
403
  }, null, 8, ["modelValue"])
393
404
  ]),
@@ -398,7 +409,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
398
409
  createVNode(_component_el_input, {
399
410
  disabled: !__props.service.log.enable,
400
411
  modelValue: __props.service.log.title,
401
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.service.log.title = $event),
412
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.service.log.title = $event),
402
413
  placeholder: ""
403
414
  }, null, 8, ["disabled", "modelValue"])
404
415
  ]),
@@ -409,7 +420,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
409
420
  createVNode(_component_el_input, {
410
421
  disabled: !__props.service.log.enable,
411
422
  modelValue: __props.service.log.content,
412
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.service.log.content = $event),
423
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.service.log.content = $event),
413
424
  autosize: { minRows: 2, maxRows: 4 },
414
425
  type: "textarea",
415
426
  placeholder: ""
@@ -14,7 +14,7 @@ import { json } from "@codemirror/lang-json";
14
14
  import { EditorState } from "@codemirror/state";
15
15
  import http from "agilebuilder-ui/src/utils/request";
16
16
  import LogicFlow from "@logicflow/core";
17
- import _sfc_main$2 from "../../common/components/json-view/json-view.vue2.js";
17
+ import _sfc_main$2 from "../../common/components/json-view/json-view.vue.js";
18
18
  import { vscodeDark } from "@uiw/codemirror-themes-all";
19
19
  import _sfc_main$1 from "./request-params.vue.js";
20
20
  const _hoisted_1 = { class: "dialog-footer" };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./service-update-log.vue2.js";
2
2
  import "./service-update-log.vue3.js";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const serviceUpdateLog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-24162035"]]);
4
+ const serviceUpdateLog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d41cb0ad"]]);
5
5
  export {
6
6
  serviceUpdateLog as default
7
7
  };
@@ -45,7 +45,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  const selectLatestLog = ref(false);
46
46
  const description = ref("");
47
47
  function showDialog(event) {
48
- http.get("/component/super-page-design/design-log/SERVICE_FLOW_DESIGN/" + props.cloneService.id).then((res) => {
48
+ http.get(
49
+ window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/design-log/SERVICE_FLOW_DESIGN/" + props.cloneService.id
50
+ ).then((res) => {
49
51
  if (res) {
50
52
  res.reverse();
51
53
  logData.value = res;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./service-list.vue2.js";
2
2
  import "./service-list.vue3.js";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ServiceList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a5cc897b"]]);
4
+ const ServiceList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2badb0bb"]]);
5
5
  export {
6
6
  ServiceList as default
7
7
  };
@@ -9,14 +9,14 @@ import "element-plus/es/components/button/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, ref, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, createBlock, toDisplayString, createTextVNode, withDirectives, createCommentVNode, vShow, pushScopeId, popScopeId } from "vue";
12
+ import { defineComponent, ref, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, createBlock, toDisplayString, createTextVNode, createCommentVNode, withDirectives, vShow, pushScopeId, popScopeId } from "vue";
13
13
  import { Search, Plus, Menu, Promotion } from "@element-plus/icons-vue";
14
14
  import { v4 } from "uuid";
15
15
  import http from "agilebuilder-ui/src/utils/request";
16
16
  import { findServcieByCode } from "../common/util/node-util.js";
17
17
  import { useServiceFlowStore } from "../../stores/page-store.js";
18
18
  import { ElMessage } from "element-plus";
19
- const _withScopeId = (n) => (pushScopeId("data-v-a5cc897b"), n = n(), popScopeId(), n);
19
+ const _withScopeId = (n) => (pushScopeId("data-v-2badb0bb"), n = n(), popScopeId(), n);
20
20
  const _hoisted_1 = { class: "custom-tree-node" };
21
21
  const _hoisted_2 = { style: { "margin-left": "5px", "line-height": "14px", "font-size": "14px" } };
22
22
  const _hoisted_3 = { class: "dialog-footer" };
@@ -95,6 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
95
  serviceFlow.value = {
96
96
  code: v4(),
97
97
  name: "",
98
+ customCode: "",
98
99
  type: editType.value
99
100
  };
100
101
  if (contextMenuData.value.id) {
@@ -107,6 +108,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
108
  ElMessage.warning("名称不能为空");
108
109
  return;
109
110
  }
111
+ if (!serviceFlow.value.customCode) {
112
+ ElMessage.warning("自定义编码不能为空");
113
+ return;
114
+ }
110
115
  console.log("保存服务基本信息:", serviceFlow.value);
111
116
  if (!serviceFlow.value.systemCode) {
112
117
  serviceFlow.value.systemCode = serviceFlowStoreUtil.pageContext.systemCode;
@@ -114,7 +119,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
114
119
  if (!serviceFlow.value.publishVersion) {
115
120
  serviceFlow.value.publishVersion = serviceFlowStoreUtil.pageContext.systemVersion;
116
121
  }
117
- http.post("/component/super-page-design/service-flow", { designLog: null, appServiceFlow: serviceFlow.value }).then((res) => {
122
+ http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow", {
123
+ designLog: null,
124
+ appServiceFlow: serviceFlow.value
125
+ }).then((res) => {
118
126
  if (res) {
119
127
  if (!serviceFlow.value.id) {
120
128
  if (!serviceFlow.value.parentCode) {
@@ -142,7 +150,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
142
150
  ElMessage.warning("该节点下存在子节点,不能删除!");
143
151
  return;
144
152
  }
145
- http.delete("/component/super-page-design/service-flow", { data: [contextMenuData.value.id] }).then((res) => {
153
+ http.delete(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow", {
154
+ data: [contextMenuData.value.id]
155
+ }).then((res) => {
146
156
  ElMessage.success("删除成功");
147
157
  emits("load-tree-data");
148
158
  if (contextMenuData.value.parentCode) {
@@ -163,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
173
  console.log("node-click", data);
164
174
  closeRightMenu();
165
175
  if (data.type === "SERVICE") {
166
- http.get("/component/super-page-design/service-flow/" + data.id).then((res) => {
176
+ http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/" + data.id).then((res) => {
167
177
  res.variables && (res.variables = JSON.parse(res.variables));
168
178
  res.log && (res.log = JSON.parse(res.log));
169
179
  res.flow && (res.flow = JSON.parse(res.flow));
@@ -269,7 +279,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
269
279
  }, 8, ["data"]),
270
280
  createVNode(_component_el_dialog, {
271
281
  modelValue: dialogVisible.value,
272
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
282
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
273
283
  "append-to-body": true,
274
284
  title: editType.value === "MENU" ? "菜单" : "服务",
275
285
  width: "500"
@@ -278,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
278
288
  createElementVNode("div", _hoisted_3, [
279
289
  createVNode(_component_el_button, {
280
290
  size: "mini",
281
- onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
291
+ onClick: _cache[3] || (_cache[3] = ($event) => dialogVisible.value = false)
282
292
  }, {
283
293
  default: withCtx(() => [
284
294
  createTextVNode("返回")
@@ -298,7 +308,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
298
308
  ])
299
309
  ]),
300
310
  default: withCtx(() => [
301
- createVNode(_component_el_form_item, { label: "名称:" }, {
311
+ createVNode(_component_el_form_item, {
312
+ label: "名称:",
313
+ required: true
314
+ }, {
302
315
  default: withCtx(() => [
303
316
  createVNode(_component_el_input, {
304
317
  modelValue: serviceFlow.value.name,
@@ -306,7 +319,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
306
319
  }, null, 8, ["modelValue"])
307
320
  ]),
308
321
  _: 1
309
- })
322
+ }),
323
+ editType.value === "SERVICE" ? (openBlock(), createBlock(_component_el_form_item, {
324
+ key: 0,
325
+ label: "自定义编码:",
326
+ required: true
327
+ }, {
328
+ default: withCtx(() => [
329
+ createVNode(_component_el_input, {
330
+ disabled: serviceFlow.value.id,
331
+ modelValue: serviceFlow.value.customCode,
332
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => serviceFlow.value.customCode = $event)
333
+ }, null, 8, ["disabled", "modelValue"])
334
+ ]),
335
+ _: 1
336
+ })) : createCommentVNode("", true)
310
337
  ]),
311
338
  _: 1
312
339
  }, 8, ["modelValue", "title"]),
@@ -320,13 +347,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
320
347
  key: 0,
321
348
  tabindex: "-1",
322
349
  class: "menu__item",
323
- onClick: _cache[4] || (_cache[4] = ($event) => addServce("MENU"))
350
+ onClick: _cache[5] || (_cache[5] = ($event) => addServce("MENU"))
324
351
  }, _hoisted_5)) : createCommentVNode("", true),
325
352
  contextMenuData.value.type === "MENU" ? (openBlock(), createElementBlock("li", {
326
353
  key: 1,
327
354
  tabindex: "-1",
328
355
  class: "menu__item",
329
- onClick: _cache[5] || (_cache[5] = ($event) => addServce("SERVICE"))
356
+ onClick: _cache[6] || (_cache[6] = ($event) => addServce("SERVICE"))
330
357
  }, _hoisted_7)) : createCommentVNode("", true),
331
358
  currentServiceflowService.value.code !== contextMenuData.value.code ? (openBlock(), createElementBlock("li", {
332
359
  key: 2,
@@ -20,7 +20,7 @@ const useServiceFlowStore = defineStore("serviceFlowStoreUtil", () => {
20
20
  setPageContextVarOptions(newPageContext);
21
21
  }
22
22
  function setPageContextVarOptions(pageObject) {
23
- if (pageObject) {
23
+ if (pageObject && pageObject.modelFields) {
24
24
  pageObject.modelFields.forEach((element) => {
25
25
  pageContextVarOptions.value.dataOptions.push({
26
26
  value: element.name,