Skip to content

Commit 7eaa20f

Browse files
imp2002zhuangchong
authored andcommitted
[Fix-13928][UI] Fix repeat CustomParams input box #14029
1 parent 16bc5aa commit 7eaa20f

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
}
@@ -236,49 +233,6 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
236233
options: jobSpeedRecordOptions,
237234
value: 1000
238235
},
239-
{
240-
type: 'custom-parameters',
241-
field: 'localParams',
242-
name: t('project.node.custom_parameters'),
243-
span: customParameterSpan,
244-
children: [
245-
{
246-
type: 'input',
247-
field: 'prop',
248-
span: 10,
249-
props: {
250-
placeholder: t('project.node.prop_tips'),
251-
maxLength: 256
252-
},
253-
validate: {
254-
trigger: ['input', 'blur'],
255-
required: true,
256-
validator(validate: any, value: string) {
257-
if (!value) {
258-
return new Error(t('project.node.prop_tips'))
259-
}
260-
261-
const sameItems = model.localParams.filter(
262-
(item: { prop: string }) => item.prop === value
263-
)
264-
265-
if (sameItems.length > 1) {
266-
return new Error(t('project.node.prop_repeat'))
267-
}
268-
}
269-
}
270-
},
271-
{
272-
type: 'input',
273-
field: 'value',
274-
span: 10,
275-
props: {
276-
placeholder: t('project.node.value_tips'),
277-
maxLength: 256
278-
}
279-
}
280-
]
281-
},
282236
{
283237
type: 'select',
284238
field: 'xms',

0 commit comments

Comments
 (0)