|
|
@ -205,8 +205,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] { |
|
|
|
const customParameterSpan = ref(0) |
|
|
|
const customParameterSpan = ref(0) |
|
|
|
|
|
|
|
|
|
|
|
const initConstants = () => { |
|
|
|
const initConstants = () => { |
|
|
|
if (model.customConfigSwitch) { |
|
|
|
if (model.customConfig) { |
|
|
|
model.customConfig = 1 |
|
|
|
|
|
|
|
sqlEditorSpan.value = 0 |
|
|
|
sqlEditorSpan.value = 0 |
|
|
|
jsonEditorSpan.value = 24 |
|
|
|
jsonEditorSpan.value = 24 |
|
|
|
datasourceSpan.value = 0 |
|
|
|
datasourceSpan.value = 0 |
|
|
@ -215,7 +214,6 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] { |
|
|
|
jobSpeedSpan.value = 0 |
|
|
|
jobSpeedSpan.value = 0 |
|
|
|
customParameterSpan.value = 24 |
|
|
|
customParameterSpan.value = 24 |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
model.customConfig = 0 |
|
|
|
|
|
|
|
sqlEditorSpan.value = 24 |
|
|
|
sqlEditorSpan.value = 24 |
|
|
|
jsonEditorSpan.value = 0 |
|
|
|
jsonEditorSpan.value = 0 |
|
|
|
datasourceSpan.value = 12 |
|
|
|
datasourceSpan.value = 12 |
|
|
@ -244,7 +242,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|
() => model.customConfigSwitch, |
|
|
|
() => model.customConfig, |
|
|
|
() => { |
|
|
|
() => { |
|
|
|
initConstants() |
|
|
|
initConstants() |
|
|
|
} |
|
|
|
} |
|
|
@ -253,7 +251,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: 'switch', |
|
|
|
type: 'switch', |
|
|
|
field: 'customConfigSwitch', |
|
|
|
field: 'customConfig', |
|
|
|
name: t('project.node.datax_custom_template') |
|
|
|
name: t('project.node.datax_custom_template') |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|