feat: 调整节点引用
This commit is contained in:
parent
f42e8f9a08
commit
c567b1cab4
@ -11,7 +11,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<div class="form__container">
|
<div class="form__container">
|
||||||
<el-button type="primary" v-if="['AGV_MOVE_TO_POINT', 'ALM'].includes(props.data.properties.action)" size="small" @click="openRobotForm(props.data.properties.action)">获取位置</el-button>
|
<el-button type="primary" v-if="['AGV_MOVE_TO_POINT', 'ARM_MOVE_TO_POINT'].includes(props.data.properties.action)" size="small" @click="openRobotForm(props.data.properties.action)">获取位置</el-button>
|
||||||
<el-form :inline="true" :model="formData" :rules="rules" ref="dynamicFormRef" label-position="top"
|
<el-form :inline="true" :model="formData" :rules="rules" ref="dynamicFormRef" label-position="top"
|
||||||
label-width="auto">
|
label-width="auto">
|
||||||
<div v-for="(property, index) in formData.nodeParams" :key="index">
|
<div v-for="(property, index) in formData.nodeParams" :key="index">
|
||||||
|
|||||||
@ -119,7 +119,7 @@
|
|||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote)
|
(visible) => visibleChange(visible, index, property.quote)
|
||||||
"
|
"
|
||||||
@change="(value) => cascaderChange(value, index)"
|
@change="(value) => cascaderChange(value, index, formData, 'nodeParams')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@ -56,7 +56,7 @@
|
|||||||
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote)
|
(visible) => visibleChange(visible, index, property.quote)
|
||||||
" @change="(value) => cascaderChange(value, index)" />
|
" @change="(value) => cascaderChange(value, index, httpNodeData, 'config')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -120,7 +120,7 @@
|
|||||||
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote)
|
(visible) => visibleChange(visible, index, property.quote)
|
||||||
" @change="(value) => cascaderChange(value, index)" />
|
" @change="(value) => cascaderChange(value, index, httpNodeData, 'headers')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button :icon="Minus" circle size="small" @click="handleHttpNodeDelete('headers', index)"
|
<el-button :icon="Minus" circle size="small" @click="handleHttpNodeDelete('headers', index)"
|
||||||
@ -185,7 +185,7 @@
|
|||||||
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote)
|
(visible) => visibleChange(visible, index, property.quote)
|
||||||
" @change="(value) => cascaderChange(value, index)" />
|
" @change="(value) => cascaderChange(value, index, httpNodeData, 'params')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button :icon="Minus" circle size="small" @click="handleHttpNodeDelete('params', index)"
|
<el-button :icon="Minus" circle size="small" @click="handleHttpNodeDelete('params', index)"
|
||||||
@ -310,7 +310,7 @@
|
|||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote, 'httpBody')
|
(visible) => visibleChange(visible, index, property.quote, 'httpBody')
|
||||||
"
|
"
|
||||||
@change="(value) => cascaderChange(value, index, 'httpBody')"
|
@change="(value) => cascaderChange(value, index, httpNodeData, 'body')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote)
|
(visible) => visibleChange(visible, index, property.quote)
|
||||||
" @change="(value) => cascaderChange(value, index, 'sdAgentConfig')" />
|
" @change="(value) => cascaderChange(value, index, sdAgentNodeData, 'config')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -99,7 +99,7 @@
|
|||||||
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
" v-model="property.quote" :checkStrictly="true" :options="quoteOptions" placeholder="请选择"
|
||||||
@visible-change="
|
@visible-change="
|
||||||
(visible) => visibleChange(visible, index, property.quote)
|
(visible) => visibleChange(visible, index, property.quote)
|
||||||
" @change="(value) => cascaderChange(value, index, 'sdAgentTts')" />
|
" @change="(value) => cascaderChange(value, index, sdAgentNodeData, 'tts')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -230,6 +230,7 @@ const initData = () => {
|
|||||||
...transformedData,
|
...transformedData,
|
||||||
outputParams
|
outputParams
|
||||||
};
|
};
|
||||||
|
console.log('sdAgentNodeData', sdAgentNodeData.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|||||||
@ -157,6 +157,16 @@ const voiceOptions = () => {
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const inspectionEventTypes = () => {
|
||||||
|
return [{
|
||||||
|
value: 'No-Glove',
|
||||||
|
label: '没戴手套'
|
||||||
|
}, {
|
||||||
|
value: 'No-Helmet-Glove',
|
||||||
|
label: '没戴头盔'
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
export const collapseList = [
|
export const collapseList = [
|
||||||
{
|
{
|
||||||
collapseTitle: "相机",
|
collapseTitle: "相机",
|
||||||
@ -398,6 +408,34 @@ function handler(params) {
|
|||||||
],
|
],
|
||||||
outputType: 'json'
|
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'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -635,7 +635,7 @@ const initFlow = () => {
|
|||||||
|
|
||||||
lf.on("node:dbclick", ({ data, e }) => {
|
lf.on("node:dbclick", ({ data, e }) => {
|
||||||
if (
|
if (
|
||||||
["selectArea", "branch", "stopLoop", "subStart", "subEnd"].includes(data.type)
|
["selectArea", "branch", "stopLoop", "subStart", "subEnd", "end"].includes(data.type)
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user