Commit d325344d49dd7ce4ad48c80545ced1a4f2d4895a
1 parent
4af920f0
fix: save a null object if description is null && adjust textArea component size
Showing
2 changed files
with
9 additions
and
6 deletions
| @@ -247,7 +247,7 @@ | @@ -247,7 +247,7 @@ | ||
| 247 | getSonFormValue.value, | 247 | getSonFormValue.value, |
| 248 | getNameObj, | 248 | getNameObj, |
| 249 | id, | 249 | id, |
| 250 | - additionalInfoV | 250 | + additionalInfoV.additionalInfo.description ? additionalInfoV : {} |
| 251 | ); | 251 | ); |
| 252 | if (!unref(isUpdate)) { | 252 | if (!unref(isUpdate)) { |
| 253 | delete allPostForm.id; | 253 | delete allPostForm.id; |
| @@ -219,14 +219,14 @@ export const modeKafkaForm: FormSchema[] = [ | @@ -219,14 +219,14 @@ export const modeKafkaForm: FormSchema[] = [ | ||
| 219 | return !!values.addMetadataKeyValuesAsKafkaHeaders; | 219 | return !!values.addMetadataKeyValuesAsKafkaHeaders; |
| 220 | }, | 220 | }, |
| 221 | }, | 221 | }, |
| 222 | - | ||
| 223 | { | 222 | { |
| 224 | field: 'description', | 223 | field: 'description', |
| 225 | label: '说明', | 224 | label: '说明', |
| 226 | - colProps: { span: 12 }, | 225 | + colProps: { span: 24 }, |
| 227 | component: 'InputTextArea', | 226 | component: 'InputTextArea', |
| 228 | componentProps: { | 227 | componentProps: { |
| 229 | maxLength: 255, | 228 | maxLength: 255, |
| 229 | + rows: 4, | ||
| 230 | placeholder: '请输入说明', | 230 | placeholder: '请输入说明', |
| 231 | }, | 231 | }, |
| 232 | }, | 232 | }, |
| @@ -440,10 +440,11 @@ export const modeMqttForm: FormSchema[] = [ | @@ -440,10 +440,11 @@ export const modeMqttForm: FormSchema[] = [ | ||
| 440 | { | 440 | { |
| 441 | field: 'description', | 441 | field: 'description', |
| 442 | label: '说明', | 442 | label: '说明', |
| 443 | - colProps: { span: 12 }, | 443 | + colProps: { span: 24 }, |
| 444 | component: 'InputTextArea', | 444 | component: 'InputTextArea', |
| 445 | componentProps: { | 445 | componentProps: { |
| 446 | maxLength: 255, | 446 | maxLength: 255, |
| 447 | + rows: 4, | ||
| 447 | placeholder: '请输入说明', | 448 | placeholder: '请输入说明', |
| 448 | }, | 449 | }, |
| 449 | }, | 450 | }, |
| @@ -610,10 +611,11 @@ export const modeRabbitMqForm: FormSchema[] = [ | @@ -610,10 +611,11 @@ export const modeRabbitMqForm: FormSchema[] = [ | ||
| 610 | { | 611 | { |
| 611 | field: 'description', | 612 | field: 'description', |
| 612 | label: '说明', | 613 | label: '说明', |
| 613 | - colProps: { span: 12 }, | 614 | + colProps: { span: 24 }, |
| 614 | component: 'InputTextArea', | 615 | component: 'InputTextArea', |
| 615 | componentProps: { | 616 | componentProps: { |
| 616 | maxLength: 255, | 617 | maxLength: 255, |
| 618 | + rows: 4, | ||
| 617 | placeholder: '请输入说明', | 619 | placeholder: '请输入说明', |
| 618 | }, | 620 | }, |
| 619 | }, | 621 | }, |
| @@ -957,10 +959,11 @@ export const modeApiForm: FormSchema[] = [ | @@ -957,10 +959,11 @@ export const modeApiForm: FormSchema[] = [ | ||
| 957 | { | 959 | { |
| 958 | field: 'description', | 960 | field: 'description', |
| 959 | label: '说明', | 961 | label: '说明', |
| 960 | - colProps: { span: 12 }, | 962 | + colProps: { span: 24 }, |
| 961 | component: 'InputTextArea', | 963 | component: 'InputTextArea', |
| 962 | componentProps: { | 964 | componentProps: { |
| 963 | maxLength: 255, | 965 | maxLength: 255, |
| 966 | + rows: 4, | ||
| 964 | placeholder: '请输入说明', | 967 | placeholder: '请输入说明', |
| 965 | }, | 968 | }, |
| 966 | }, | 969 | }, |