20
20
}"
21
21
>
22
22
<NodeCascader
23
- ref =" nodeCascaderRef "
23
+ ref =" applicationNodeFormRef "
24
24
:nodeModel =" nodeModel"
25
25
class =" w-full"
26
26
placeholder =" 请选择检索问题"
142
142
</template >
143
143
144
144
<script setup lang="ts">
145
- import { set , groupBy } from ' lodash'
145
+ import { set , groupBy , create } from ' lodash'
146
146
import { app } from ' @/main'
147
147
import NodeContainer from ' @/workflow/common/NodeContainer.vue'
148
- import { ref , computed , onMounted } from ' vue'
148
+ import { ref , computed , onMounted , onActivated } from ' vue'
149
149
import NodeCascader from ' @/workflow/common/NodeCascader.vue'
150
150
import type { FormInstance } from ' element-plus'
151
151
import applicationApi from ' @/api/application'
@@ -214,7 +214,6 @@ const update_field = () => {
214
214
if (find_field ) {
215
215
return {
216
216
... item ,
217
- default_value: find_field .default_value ,
218
217
value: find_field .value ,
219
218
label:
220
219
typeof item .label === ' object' && item .label != null ? item .label .label : item .label
@@ -223,6 +222,7 @@ const update_field = () => {
223
222
return item
224
223
}
225
224
})
225
+ console .log (merge_api_input_field_list )
226
226
set (
227
227
props .nodeModel .properties .node_data ,
228
228
' api_input_field_list' ,
@@ -235,7 +235,6 @@ const update_field = () => {
235
235
if (find_field ) {
236
236
return {
237
237
... item ,
238
- default_value: find_field .default_value ,
239
238
value: find_field .value ,
240
239
label:
241
240
typeof item .label === ' object' && item .label != null ? item .label .label : item .label
@@ -265,7 +264,7 @@ const update_field = () => {
265
264
}
266
265
})
267
266
.catch ((err ) => {
268
- set (props .nodeModel .properties , ' status' , 500 )
267
+ // set(props.nodeModel.properties, 'status', 500)
269
268
})
270
269
}
271
270
0 commit comments