Skip to content

Commit a1898e8

Browse files
fix: variable aggregation node style
1 parent 5231689 commit a1898e8

File tree

19 files changed

+131
-143
lines changed

19 files changed

+131
-143
lines changed

ui/src/components/dynamics-form/constructor/items/JsonInputConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ const getModel = inject('getModel') as any
7272
const assignment_method_option_list = computed(() => {
7373
const option_list = [
7474
{
75-
label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'),
75+
label: t('common.custom'),
7676
value: 'custom',
7777
},
7878
]
7979
if (getModel) {
8080
option_list.push({
81-
label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'),
81+
label: t('views.applicationWorkflow.variable.Referencing'),
8282
value: 'ref_variables',
8383
})
8484
}
@@ -137,7 +137,7 @@ const default_ref_variables_value_rule = {
137137
validator: (rule: any, value: any, callback: any) => {
138138
if (!(Array.isArray(value) && value.length > 1)) {
139139
callback(
140-
t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'),
140+
t('views.applicationWorkflow.variable.Referencing') + t('common.required'),
141141
)
142142
}
143143

ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ const getModel = inject('getModel') as any
144144
const assignment_method_option_list = computed(() => {
145145
const option_list = [
146146
{
147-
label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'),
147+
label: t('common.custom'),
148148
value: 'custom',
149149
},
150150
]
151151
if (getModel) {
152152
option_list.push({
153-
label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'),
153+
label: t('views.applicationWorkflow.variable.Referencing'),
154154
value: 'ref_variables',
155155
})
156156
}
@@ -183,7 +183,7 @@ const default_ref_variables_value_rule = {
183183
console.log(value.length)
184184
if (!(Array.isArray(value) && value.length > 1)) {
185185
callback(
186-
t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'),
186+
t('views.applicationWorkflow.variable.Referencing') + t('common.required'),
187187
)
188188
}
189189

ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ const getModel = inject('getModel') as any
153153
const assignment_method_option_list = computed(() => {
154154
const option_list = [
155155
{
156-
label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'),
156+
label: t('common.custom'),
157157
value: 'custom',
158158
},
159159
]
160160
if (getModel) {
161161
option_list.push({
162-
label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'),
162+
label: t('views.applicationWorkflow.variable.Referencing'),
163163
value: 'ref_variables',
164164
})
165165
}
@@ -192,7 +192,7 @@ const default_ref_variables_value_rule = {
192192
console.log(value.length)
193193
if (!(Array.isArray(value) && value.length > 1)) {
194194
callback(
195-
t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'),
195+
t('views.applicationWorkflow.variable.Referencing') + t('common.required'),
196196
)
197197
}
198198

ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ const getModel = inject('getModel') as any
144144
const assignment_method_option_list = computed(() => {
145145
const option_list = [
146146
{
147-
label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'),
147+
label: t('common.custom'),
148148
value: 'custom',
149149
},
150150
]
151151
if (getModel) {
152152
option_list.push({
153-
label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'),
153+
label: t('views.applicationWorkflow.variable.Referencing'),
154154
value: 'ref_variables',
155155
})
156156
}
@@ -182,7 +182,7 @@ const default_ref_variables_value_rule = {
182182
console.log(value.length)
183183
if (!(Array.isArray(value) && value.length > 1)) {
184184
callback(
185-
t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'),
185+
t('views.applicationWorkflow.variable.Referencing') + t('common.required'),
186186
)
187187
}
188188

ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ const getModel = inject('getModel') as any
144144
const assignment_method_option_list = computed(() => {
145145
const option_list = [
146146
{
147-
label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'),
147+
label: t('common.custom'),
148148
value: 'custom',
149149
},
150150
]
151151
if (getModel) {
152152
option_list.push({
153-
label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'),
153+
label: t('views.applicationWorkflow.variable.Referencing'),
154154
value: 'ref_variables',
155155
})
156156
}
@@ -183,7 +183,7 @@ const default_ref_variables_value_rule = {
183183
console.log(value.length)
184184
if (!(Array.isArray(value) && value.length > 1)) {
185185
callback(
186-
t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'),
186+
t('views.applicationWorkflow.variable.Referencing') + t('common.required'),
187187
)
188188
}
189189

ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ const getModel = inject('getModel') as any
143143
const assignment_method_option_list = computed(() => {
144144
const option_list = [
145145
{
146-
label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'),
146+
label: t('common.custom'),
147147
value: 'custom',
148148
},
149149
]
150150
if (getModel) {
151151
option_list.push({
152-
label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'),
152+
label: t('views.applicationWorkflow.variable.Referencing'),
153153
value: 'ref_variables',
154154
})
155155
}
@@ -182,7 +182,7 @@ const default_ref_variables_value_rule = {
182182
console.log(value.length)
183183
if (!(Array.isArray(value) && value.length > 1)) {
184184
callback(
185-
t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'),
185+
t('views.applicationWorkflow.variable.Referencing') + t('common.required'),
186186
)
187187
}
188188

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ export default {
5050
beautify: 'Auto-Arrange',
5151
},
5252
variable: {
53-
label: 'Variable',
5453
global: 'Global Variable',
5554
Referencing: 'Referenced Variable',
5655
ReferencingRequired: 'Referenced variable is required',
5756
ReferencingError: 'Invalid referenced variable',
5857
NoReferencing: 'Referenced variable does not exist',
5958
placeholder: 'Please select a variable',
59+
inputPlaceholder: 'Please enter variable',
60+
loop: 'Loop Variable',
6061
},
6162
condition: {
6263
title: 'Execution Condition',
@@ -199,11 +200,7 @@ You are a master of problem optimization, adept at accurately inferring user int
199200
replyNode: {
200201
label: 'Specified Reply',
201202
text: 'Specify reply content, referenced variables will be converted to strings for output',
202-
content: 'Content',
203-
replyContent: {
204-
label: 'Reply Content',
205-
reference: 'Reference Variable',
206-
},
203+
replyContent: 'Reply Content',
207204
},
208205
rerankerNode: {
209206
label: 'Multi-path Recall',
@@ -267,11 +264,11 @@ You are a master of problem optimization, adept at accurately inferring user int
267264
placeholder: 'Return the first non-null value of each group',
268265
placeholder1: 'Return the set of variables for each group',
269266
group: {
270-
placeholder: 'Please select a variable',
271267
noneError: 'Name cannot be empty',
272268
dupError: 'Name cannot be duplicated',
273269
},
274-
add: 'Add Group',
270+
addGroup: 'Add Group',
271+
editGroup: 'Edit Group',
275272
},
276273
mcpNode: {
277274
label: 'MCP Node',
@@ -421,7 +418,6 @@ You are a master of problem optimization, adept at accurately inferring user int
421418
label: 'Loop Start',
422419
loopIndex: 'Index',
423420
loopItem: 'Loop Element',
424-
loopVariable: 'Loop Variable',
425421
},
426422
loopBodyNode: {
427423
label: 'Loop Body',
@@ -445,7 +441,6 @@ You are a master of problem optimization, adept at accurately inferring user int
445441
inputVariables: 'Input Variable',
446442
addVariables: 'Add Variables',
447443
editVariables: 'Edit Variables',
448-
variablePlaceholder: 'Please enter variable',
449444
variableListPlaceholder: 'Please add split variables',
450445
expression: {
451446
label: 'Expression',

ui/src/locales/lang/zh-CN/dynamics-form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export default {
123123
label: '自定义',
124124
},
125125
ref_variables: {
126-
label: '引用变量 ',
127126
popover: '变量的值必须符合',
128127
json_format: 'JSON 格式',
129128
popover_label: '标签',

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default {
5757
ReferencingError: '引用变量错误',
5858
NoReferencing: '不存在的引用变量',
5959
placeholder: '请选择变量',
60+
inputPlaceholder: '请输入变量',
6061
loop: '循环变量',
6162
},
6263
condition: {
@@ -206,11 +207,7 @@ export default {
206207
replyNode: {
207208
label: '指定回复',
208209
text: '指定回复内容,引用变量会转换为字符串进行输出',
209-
content: '内容',
210-
replyContent: {
211-
label: '回复内容',
212-
reference: '引用变量',
213-
},
210+
replyContent: '回复内容',
214211
},
215212
rerankerNode: {
216213
label: '多路召回',
@@ -268,11 +265,11 @@ export default {
268265
placeholder: '返回每组的第一个非空值',
269266
placeholder1: '返回每组变量的集合',
270267
group: {
271-
placeholder: '请选择变量',
272268
noneError: '名称不能为空',
273269
dupError: '名称不能重复',
274270
},
275-
add: '添加分组',
271+
addGroup: '添加分组',
272+
editGroup: '编辑分组',
276273
},
277274
variableAssignNode: {
278275
label: '变量赋值',
@@ -433,7 +430,6 @@ export default {
433430
label: '循环开始',
434431
loopIndex: '下标',
435432
loopItem: '循环元素',
436-
loopVariable: '循环变量',
437433
},
438434
loopBodyNode: {
439435
label: '循环体',
@@ -456,7 +452,6 @@ export default {
456452
inputVariables: '输入变量',
457453
addVariables: '添加变量',
458454
editVariables: '编辑变量',
459-
variablePlaceholder: '请输入变量',
460455
variableListPlaceholder: '请添加拆分变量',
461456
expression: {
462457
label: '表达式',

ui/src/locales/lang/zh-Hant/views/application-workflow.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ export default {
5050
beautify: '一鍵美化',
5151
},
5252
variable: {
53-
label: '變量',
5453
global: '全局變量',
5554
Referencing: '引用變量',
5655
ReferencingRequired: '引用變量必填',
5756
ReferencingError: '引用變量錯誤',
5857
NoReferencing: '不存在的引用變量',
5958
placeholder: '請選擇變量',
59+
inputPlaceholder: '請輸入變量',
60+
loop: '循環變量',
6061
},
6162
condition: {
6263
title: '執行條件',
@@ -200,11 +201,7 @@ export default {
200201
replyNode: {
201202
label: '指定回覆',
202203
text: '指定回覆內容,引用變量會轉換為字符串進行輸出',
203-
content: '內容',
204-
replyContent: {
205-
label: '回覆內容',
206-
reference: '引用變量',
207-
},
204+
replyContent: '回覆內容',
208205
},
209206
rerankerNode: {
210207
label: '多路召回',
@@ -267,11 +264,11 @@ export default {
267264
placeholder: '返回每組的第一個非空值',
268265
placeholder1: '返回每組變量的集合',
269266
group: {
270-
placeholder: '請選擇變量',
271267
noneError: '名稱不能為空',
272268
dupError: '名稱不能重複',
273269
},
274-
add: '新增分組',
270+
addGroup: '添加分組',
271+
editGroup: '編輯分組',
275272
},
276273
mcpNode: {
277274
label: 'MCP 調用',
@@ -414,7 +411,6 @@ export default {
414411
label: '循環開始',
415412
loopIndex: '下標',
416413
loopItem: '循環元素',
417-
loopVariable: '循環變量',
418414
},
419415
loopBodyNode: { label: '循環體', text: '循環體' },
420416
loopContinueNode: {
@@ -431,7 +427,6 @@ export default {
431427
inputVariables: '輸入變量',
432428
addVariables: '添加變量',
433429
editVariables: '編輯變量',
434-
variablePlaceholder: '請輸入變量',
435430
variableListPlaceholder: '請添加折開變數',
436431
expression: {
437432
label: '表達式',

0 commit comments

Comments
 (0)