|
@ -83,6 +83,7 @@
|
83
|
83
|
<script setup>
|
84
|
84
|
import { ref, onMounted, getCurrentInstance, computed, watch } from 'vue';
|
85
|
85
|
import { useRoute, useRouter } from 'vue-router';
|
|
86
|
import { useStore } from 'vuex';
|
86
|
87
|
import { formConfig } from './_config';
|
87
|
88
|
import ApiDetailPage from './_components/ApiDetailPage.vue';
|
88
|
89
|
import * as api from '../../api/flow';
|
|
@ -96,6 +97,7 @@ const drawerType = ref('module');
|
96
|
97
|
const operateType = ref('create');
|
97
|
98
|
const apiDetail = ref(null);
|
98
|
99
|
const versionState = ref('');
|
|
100
|
const store = useStore();
|
99
|
101
|
|
100
|
102
|
const systemId = computed(() => route.query.id);
|
101
|
103
|
const curVersionId = ref('');
|
|
@ -144,6 +146,10 @@ async function getSystemDetail() {
|
144
|
146
|
systemInfo.value = res.result;
|
145
|
147
|
curVersionId.value = systemInfo.value.version.id;
|
146
|
148
|
versionState.value = systemInfo.value.version.state;
|
|
149
|
store.commit('setBreadData', [
|
|
150
|
{ name: '系统管理', to: { name: 'SystemList' } },
|
|
151
|
{ name: systemInfo.value.name }
|
|
152
|
]);
|
147
|
153
|
} else {
|
148
|
154
|
systemInfo.value = null;
|
149
|
155
|
}
|
|
@ -128,11 +128,7 @@
|
128
|
128
|
</div>
|
129
|
129
|
<div class="card">
|
130
|
130
|
<h4 class="sub-title">请求参数</h4>
|
131
|
|
<!-- <ipu-input
|
132
|
|
v-model="testRequest.params"
|
133
|
|
class="result"
|
134
|
|
v-bind="attributes"
|
135
|
|
></ipu-input> -->
|
|
131
|
|
136
|
132
|
<div>
|
137
|
133
|
<JsonEditorVue
|
138
|
134
|
v-model="testRequest.params"
|
|
@ -17,12 +17,15 @@ import { ref, getCurrentInstance, onMounted } from 'vue';
|
17
|
17
|
|
18
|
18
|
/** x6相关end */
|
19
|
19
|
import { useRoute } from 'vue-router';
|
|
20
|
import { useStore } from 'vuex';
|
20
|
21
|
import SubFlow from '../_components/_flow/Index.vue';
|
21
|
22
|
import nodes from '../_components/_flow/nodes.js';
|
22
|
23
|
|
23
|
24
|
import * as api from '../../api/subflow';
|
24
|
25
|
import NodeDataFormate from '../_components/_flow/nodeDataFormate.js';
|
25
|
26
|
|
|
27
|
const store = useStore();
|
|
28
|
|
26
|
29
|
const nodeList = ref(nodes.nodes);
|
27
|
30
|
nodeList.value.map((item) => {
|
28
|
31
|
if (item.nodes?.length) {
|
|
@ -41,6 +44,13 @@ async function getSubFlowDetailById() {
|
41
|
44
|
await api.getSubFlowDetailById(subFlowId.value).then((res) => {
|
42
|
45
|
if (res.resultCode === '0') {
|
43
|
46
|
subFlowDetail.value = res.result;
|
|
47
|
const panelGlobal = {};
|
|
48
|
panelGlobal[subFlowId.value] = JSON.parse(res.result?.databusData) || {};
|
|
49
|
localStorage.setItem('panelGlobal', JSON.stringify(panelGlobal));
|
|
50
|
store.commit('setBreadData', [
|
|
51
|
{ name: '系统管理', to: { name: 'SystemList' } },
|
|
52
|
{ name: subFlowDetail.value.name }
|
|
53
|
]);
|
44
|
54
|
} else {
|
45
|
55
|
proxy.$message.error(res.resultMsg);
|
46
|
56
|
}
|