File tree Expand file tree Collapse file tree 4 files changed +39
-5
lines changed
components/ai-chat/component/knowledge-source-component
variable-aggregation-node Expand file tree Collapse file tree 4 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 842842 </div >
843843 </div >
844844 </div >
845- <div class =" card-never border-r-6 mt-8" >
845+ <div class =" card-never border-r-6 mt-8" >
846846 <h5 class =" p-8-12" >
847847 {{ $t('common.param.outputParam') }}
848848 </h5 >
880880 </div >
881881 </div >
882882 </template >
883-
883+ <!-- 变量聚合 -->
884+ <template v-if =" data .type === WorkflowType .VariableAggregationNode " >
885+ <div class =" card-never border-r-6" >
886+ <h5 class =" p-8-12" >
887+ {{ $t('views.applicationWorkflow.nodes.variableAggregationNode.Strategy') }}
888+ </h5 >
889+ <div class =" p-8-12 border-t-dashed lighter pre-wrap" >
890+ {{ data.strategy }}
891+ </div >
892+ </div >
893+ <div
894+ class =" card-never border-r-6 mt-8"
895+ v-for =" (group, groupI) in data.group_list"
896+ :key =" groupI"
897+ >
898+ <h5 class =" p-8-12" >
899+ {{ group.label+ ' '+ $t('common.param.inputParam') }}
900+ </h5 >
901+ <div class =" p-8-12 border-t-dashed lighter" >
902+ <div v-for =" (f, i) in group.variable_list" :key =" i" class =" mb-8" >
903+ <span class =" color-secondary" >{{ `${f.node_name}.${f.field}` }}:</span > {{ f.value }}
904+ </div >
905+ </div >
906+ </div >
907+ <div class =" card-never border-r-6 mt-8" >
908+ <h5 class =" p-8-12" >
909+ {{ $t('common.param.outputParam') }}
910+ </h5 >
911+ <div class =" p-8-12 border-t-dashed lighter" >
912+ <div v-for =" (f, i) in data.result" :key =" i" class =" mb-8" >
913+ <span class =" color-secondary" >{{ i }}:</span > {{ f }}
914+ </div >
915+ </div >
916+ </div >
917+ </template >
884918 <!-- MCP 节点 -->
885919 <template v-if =" data .type === WorkflowType .McpNode " >
886920 <div class =" card-never border-r-6" >
Original file line number Diff line number Diff line change 102102 @mouseenter =" showicon = index"
103103 @mouseleave =" showicon = null"
104104 >
105- <span style = " max-width : 92 % " >{{ item.label }} {{ '{' + item.value + '}' }}</span >
105+ <span class = " break-all " >{{ item.label }} {{ '{' + item.value + '}' }}</span >
106106 <el-tooltip
107107 effect =" dark"
108108 :content =" $t('views.applicationWorkflow.setting.copyParam')"
Original file line number Diff line number Diff line change 5454 @mouseenter =" showicon = index"
5555 @mouseleave =" showicon = null"
5656 >
57- <span style = " max-width : 92 % " >{{ item.label }} {{ '{' + item.value + '}' }}</span >
57+ <span class = " break-all " >{{ item.label }} {{ '{' + item.value + '}' }}</span >
5858 <el-tooltip
5959 effect =" dark"
6060 :content =" $t('views.applicationWorkflow.setting.copyParam')"
Original file line number Diff line number Diff line change 4141 <div v-for =" (group, gIndex) in form_data.group_list" :key =" group.id" class =" mb-8" >
4242 <el-card shadow =" never" class =" card-never" style =" --el-card-padding : 12px " >
4343 <div class =" flex-between mb-12" >
44- <span class =" font-bold " >{{ group.label }}</span >
44+ <span class =" ellipsis " :title = " group.label " >{{ group.label }}</span >
4545 <div class =" flex align-center" style =" margin-right : -3px ;" >
4646 <el-button @click =" openAddOrEditDialog(group, gIndex)" link >
4747 <el-icon ><EditPen /></el-icon >
You can’t perform that action at this time.
0 commit comments