bugfix: 修改代码节点
This commit is contained in:
parent
101e100c75
commit
8311f2a6c5
@ -306,7 +306,7 @@ export const collapseList = [
|
|||||||
{ name: "input", type: "input", input: "", required: true }
|
{ name: "input", type: "input", input: "", required: true }
|
||||||
],
|
],
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
outputParams: [{ name: 'result', type: 'Object', children: [], desc: 'HTTP请求结果'}]
|
outputParams: []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -68,7 +68,7 @@
|
|||||||
:disabled="flowStore.disableForm"
|
:disabled="flowStore.disableForm"
|
||||||
>
|
>
|
||||||
<div v-for="(property, index) in formData.nodeParams" :key="index">
|
<div v-for="(property, index) in formData.nodeParams" :key="index">
|
||||||
<el-row>
|
<el-row v-if="property.name !== 'code'">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="index === 0 ? '参数名' : ''"
|
:label="index === 0 ? '参数名' : ''"
|
||||||
:prop="`nodeParams.${index}.name`"
|
:prop="`nodeParams.${index}.name`"
|
||||||
@ -412,7 +412,8 @@ watch(
|
|||||||
() => {
|
() => {
|
||||||
if (props.properties.nodeParams && props.properties.nodeParams.length > 0) {
|
if (props.properties.nodeParams && props.properties.nodeParams.length > 0) {
|
||||||
|
|
||||||
formData.nodeParams = props.properties.nodeParams.filter(item => item.name !== 'code');
|
// .filter(item => item.name !== 'code')
|
||||||
|
formData.nodeParams = props.properties.nodeParams;
|
||||||
const codeParams = props.properties.nodeParams.find(item => item.name === 'code')
|
const codeParams = props.properties.nodeParams.find(item => item.name === 'code')
|
||||||
if (codeParams) {
|
if (codeParams) {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user