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 @@
+ + + + + + + - + @@ -51,7 +63,7 @@ content="删除" placement="top" > - + @@ -62,7 +74,7 @@ diff --git a/src/views/flow/nodes/common/serviceNode.vue b/src/views/flow/nodes/common/serviceNode.vue index d907976..3fa852d 100644 --- a/src/views/flow/nodes/common/serviceNode.vue +++ b/src/views/flow/nodes/common/serviceNode.vue @@ -34,6 +34,7 @@ :icon="props.properties.icon" :nodeId="props.model.id" :nodeProperties="props.properties" + :nodeType="props.properties.nodeType || 'NONE'" :nodeName="props.properties.name" :nodeDesc="props.properties.desc" :zoom-state="nodeZoom" diff --git a/src/views/flow/nodes/common/startNode.vue b/src/views/flow/nodes/common/startNode.vue index 23debd8..e593359 100644 --- a/src/views/flow/nodes/common/startNode.vue +++ b/src/views/flow/nodes/common/startNode.vue @@ -23,7 +23,7 @@ :content="nodeZoom ? '缩小' : '放大'" placement="top" > - + @@ -262,6 +262,13 @@ defineExpose({ margin-left: 12px; } } + + .right { + .el-button { + border: none; + font-size: 24px; + } + } } .subTitle {