Skip to content

Commit 920e9b8

Browse files
authored
[Fix-13928][UI] Fix repeat CustomParams input box (#14029)
1 parent cfbf675 commit 920e9b8

File tree

1 file changed

+0
-46
lines changed
  • dolphinscheduler-ui/src/views/projects/task/components/node/fields

1 file changed

+0
-46
lines changed

dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
102102
const destinationDatasourceSpan = ref(8)
103103
const otherStatementSpan = ref(22)
104104
const jobSpeedSpan = ref(12)
105-
const customParameterSpan = ref(0)
106105
const useResourcesSpan = ref(0)
107106

108107
const initConstants = () => {
@@ -113,7 +112,6 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
113112
destinationDatasourceSpan.value = 0
114113
otherStatementSpan.value = 0
115114
jobSpeedSpan.value = 0
116-
customParameterSpan.value = 24
117115
useResourcesSpan.value = 24
118116
} else {
119117
sqlEditorSpan.value = 24
@@ -122,7 +120,6 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
122120
destinationDatasourceSpan.value = 8
123121
otherStatementSpan.value = 22
124122
jobSpeedSpan.value = 12
125-
customParameterSpan.value = 0
126123
useResourcesSpan.value = 0
127124
}
128125
}
@@ -238,49 +235,6 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
238235
options: jobSpeedRecordOptions,
239236
value: 1000
240237
},
241-
{
242-
type: 'custom-parameters',
243-
field: 'localParams',
244-
name: t('project.node.custom_parameters'),
245-
span: customParameterSpan,
246-
children: [
247-
{
248-
type: 'input',
249-
field: 'prop',
250-
span: 10,
251-
props: {
252-
placeholder: t('project.node.prop_tips'),
253-
maxLength: 256
254-
},
255-
validate: {
256-
trigger: ['input', 'blur'],
257-
required: true,
258-
validator(validate: any, value: string) {
259-
if (!value) {
260-
return new Error(t('project.node.prop_tips'))
261-
}
262-
263-
const sameItems = model.localParams.filter(
264-
(item: { prop: string }) => item.prop === value
265-
)
266-
267-
if (sameItems.length > 1) {
268-
return new Error(t('project.node.prop_repeat'))
269-
}
270-
}
271-
}
272-
},
273-
{
274-
type: 'input',
275-
field: 'value',
276-
span: 10,
277-
props: {
278-
placeholder: t('project.node.value_tips'),
279-
maxLength: 256
280-
}
281-
}
282-
]
283-
},
284238
{
285239
type: 'select',
286240
field: 'xms',

0 commit comments

Comments
 (0)