From 67fa6342a20755b5ef1cc6ba4f08acf1cc1a643f Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Mon, 17 Nov 2025 17:32:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=95=E8=8A=82=E7=82=B9=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/flow.js | 116 +-- src/views/flow/components/NodeTitle.vue | 28 +- src/views/flow/config.js | 18 + src/views/flow/index.vue | 792 ++++++++++++-------- src/views/flow/nodes/common/serviceNode.vue | 1 + src/views/flow/nodes/common/startNode.vue | 9 +- 6 files changed, 607 insertions(+), 357 deletions(-) diff --git a/src/api/device/flow.js b/src/api/device/flow.js index b3e3b76..e1ad731 100644 --- a/src/api/device/flow.js +++ b/src/api/device/flow.js @@ -1,55 +1,63 @@ -import request from '@/utils/request' - -// 发布流程 -export function flowDeploy(data) { - return request({ - url: '/flow/publish', - method: 'post', - data: data - }) -} - -export function flowExecute(data) { - return request({ - url: '/flow/execute', - method: 'post', - data: data - }) -} - -export function flowExecuteTrial(data) { - return request({ - url: '/flow/executeTrial', - method: 'post', - data: data - }) -} - -export function flowView(data) { - return request({ - url: '/flow/view', - method: 'post', - data: data - }) -} - -export function flowPause(instId) { - return request({ - url: `/flow/pause/${instId}`, - method: 'post' - }) -} - -export function flowResume(instId) { - return request({ - url: `/flow/resume/${instId}`, - method: 'post' - }) -} - -export function flowStop(instId) { - return request({ - url: `/flow/stop/${instId}`, - method: 'post' - }) +import request from '@/utils/request' + +// 发布流程 +export function flowDeploy(data) { + return request({ + url: '/flow/publish', + method: 'post', + data: data + }) +} + +export function flowExecute(data) { + return request({ + url: '/flow/execute', + method: 'post', + data: data + }) +} + +export function flowAction(data) { + return request({ + url: '/flow/action', + method: 'post', + data: data + }) +} + +export function flowExecuteTrial(data) { + return request({ + url: '/flow/executeTrial', + method: 'post', + data: data + }) +} + +export function flowView(data) { + return request({ + url: '/flow/view', + method: 'post', + data: data + }) +} + +export function flowPause(instId) { + return request({ + url: `/flow/pause/${instId}`, + method: 'post' + }) +} + +export function flowResume(instId) { + return request({ + url: `/flow/resume/${instId}`, + method: 'post' + }) +} + +export function flowStop(instId) { + return request({ + url: `/flow/stop/${instId}`, + method: 'post' + }) } \ No newline at end of file diff --git a/src/views/flow/components/NodeTitle.vue b/src/views/flow/components/NodeTitle.vue index 1a66002..b60b2dd 100644 --- a/src/views/flow/components/NodeTitle.vue +++ b/src/views/flow/components/NodeTitle.vue @@ -32,13 +32,25 @@