diff --git a/src/views/flow/components/params/CodeNodeParams.vue b/src/views/flow/components/params/CodeNodeParams.vue
index 6443d53..cbd1829 100644
--- a/src/views/flow/components/params/CodeNodeParams.vue
+++ b/src/views/flow/components/params/CodeNodeParams.vue
@@ -119,7 +119,7 @@
@visible-change="
(visible) => visibleChange(visible, index, property.quote)
"
- @change="(value) => cascaderChange(value, index)"
+ @change="(value) => cascaderChange(value, index, formData, 'nodeParams')"
/>
diff --git a/src/views/flow/components/params/HttpNodeParams.vue b/src/views/flow/components/params/HttpNodeParams.vue
index e817440..761d62d 100644
--- a/src/views/flow/components/params/HttpNodeParams.vue
+++ b/src/views/flow/components/params/HttpNodeParams.vue
@@ -56,7 +56,7 @@
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
@visible-change="
(visible) => visibleChange(visible, index, property.quote)
- " @change="(value) => cascaderChange(value, index)" />
+ " @change="(value) => cascaderChange(value, index, httpNodeData, 'config')" />
@@ -120,7 +120,7 @@
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
@visible-change="
(visible) => visibleChange(visible, index, property.quote)
- " @change="(value) => cascaderChange(value, index)" />
+ " @change="(value) => cascaderChange(value, index, httpNodeData, 'headers')" />
visibleChange(visible, index, property.quote)
- " @change="(value) => cascaderChange(value, index)" />
+ " @change="(value) => cascaderChange(value, index, httpNodeData, 'params')" />
visibleChange(visible, index, property.quote, 'httpBody')
"
- @change="(value) => cascaderChange(value, index, 'httpBody')"
+ @change="(value) => cascaderChange(value, index, httpNodeData, 'body')"
/>
diff --git a/src/views/flow/components/params/SdAgentNodeParams.vue b/src/views/flow/components/params/SdAgentNodeParams.vue
index f6969e6..749fa9c 100644
--- a/src/views/flow/components/params/SdAgentNodeParams.vue
+++ b/src/views/flow/components/params/SdAgentNodeParams.vue
@@ -46,7 +46,7 @@
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
@visible-change="
(visible) => visibleChange(visible, index, property.quote)
- " @change="(value) => cascaderChange(value, index, 'sdAgentConfig')" />
+ " @change="(value) => cascaderChange(value, index, sdAgentNodeData, 'config')" />
@@ -99,7 +99,7 @@
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
@visible-change="
(visible) => visibleChange(visible, index, property.quote)
- " @change="(value) => cascaderChange(value, index, 'sdAgentTts')" />
+ " @change="(value) => cascaderChange(value, index, sdAgentNodeData, 'tts')" />
@@ -230,6 +230,7 @@ const initData = () => {
...transformedData,
outputParams
};
+ console.log('sdAgentNodeData', sdAgentNodeData.value)
}
watch(
diff --git a/src/views/flow/config.js b/src/views/flow/config.js
index c3af5d3..db81c74 100644
--- a/src/views/flow/config.js
+++ b/src/views/flow/config.js
@@ -157,6 +157,16 @@ const voiceOptions = () => {
}]
}
+const inspectionEventTypes = () => {
+ return [{
+ value: 'No-Glove',
+ label: '没戴手套'
+ }, {
+ value: 'No-Helmet-Glove',
+ label: '没戴头盔'
+ }]
+}
+
export const collapseList = [
{
collapseTitle: "相机",
@@ -398,6 +408,34 @@ function handler(params) {
],
outputType: 'json'
},
+ {
+ icon: cameraSvg,
+ name: "开始监听报警事件",
+ type: "serviceNode",
+ desc: "开始监听报警事件",
+ action: 'INSPECTION_ALERT_LISTEN_START',
+ nodeType: 'EDGE',
+ nodeParams: [
+ { name: "terminalId", type: "input", input: "", disabled: true },
+ { name: "eventTypes", type: "input", input: "", componentType: 'select', selectOptions: inspectionEventTypes(), disabled: true }
+ ],
+ outputParams: [],
+ outputType: 'json'
+ },
+ {
+ icon: cameraSvg,
+ name: "结束监听报警事件",
+ type: "serviceNode",
+ desc: "结束监听报警事件",
+ action: 'INSPECTION_ALERT_LISTEN_STOP',
+ nodeType: 'EDGE',
+ nodeParams: [
+ { name: "terminalId", type: "input", input: "", disabled: true },
+ { name: "eventTypes", type: "input", input: "", componentType: 'select', selectOptions: inspectionEventTypes(), disabled: true }
+ ],
+ outputParams: [],
+ outputType: 'json'
+ },
],
},
{
diff --git a/src/views/flow/index.vue b/src/views/flow/index.vue
index e52ed50..910ba7d 100644
--- a/src/views/flow/index.vue
+++ b/src/views/flow/index.vue
@@ -635,7 +635,7 @@ const initFlow = () => {
lf.on("node:dbclick", ({ data, e }) => {
if (
- ["selectArea", "branch", "stopLoop", "subStart", "subEnd"].includes(data.type)
+ ["selectArea", "branch", "stopLoop", "subStart", "subEnd", "end"].includes(data.type)
) {
return;
}