Showing
1 changed file
with
65 additions
and
102 deletions
1 | 1 | import { FormSchema } from '/@/components/Form'; |
2 | 2 | import { findDictItemByCode } from '/@/api/system/dict'; |
3 | 3 | import { ref } from 'vue'; |
4 | -// import { useMessage } from '/@/hooks/web/useMessage'; | |
5 | 4 | import { isExistDataManagerNameApi } from '/@/api/datamanager/dataManagerApi'; |
6 | -// const { createMessage } = useMessage(); | |
7 | 5 | |
8 | 6 | const typeValue = ref(''); |
9 | - | |
10 | 7 | export enum CredentialsEnum { |
11 | 8 | IS_ANONYMOUS = 'anonymous', |
12 | 9 | IS_BASIC = 'basic', |
13 | 10 | IS_PEM = 'pem', |
14 | 11 | } |
15 | - | |
16 | 12 | export const isBasic = (type: string) => { |
17 | 13 | return type === CredentialsEnum.IS_BASIC; |
18 | 14 | }; |
... | ... | @@ -55,31 +51,6 @@ export const modeForm: FormSchema[] = [ |
55 | 51 | }, |
56 | 52 | ]; |
57 | 53 | |
58 | -export const modeApiInseretKeyAndValueForm: FormSchema[] = [ | |
59 | - { | |
60 | - field: 'key', | |
61 | - label: 'Header', | |
62 | - colProps: { span: 12 }, | |
63 | - required: true, | |
64 | - component: 'Input', | |
65 | - componentProps: { | |
66 | - maxLength: 255, | |
67 | - placeholder: '请输入Header', | |
68 | - }, | |
69 | - }, | |
70 | - { | |
71 | - field: 'value', | |
72 | - label: 'Value', | |
73 | - colProps: { span: 12 }, | |
74 | - required: true, | |
75 | - component: 'Input', | |
76 | - componentProps: { | |
77 | - maxLength: 255, | |
78 | - placeholder: '请输入Value', | |
79 | - }, | |
80 | - }, | |
81 | -]; | |
82 | - | |
83 | 54 | export const modeKafkaForm: FormSchema[] = [ |
84 | 55 | { |
85 | 56 | field: 'name', |
... | ... | @@ -117,7 +88,7 @@ export const modeKafkaForm: FormSchema[] = [ |
117 | 88 | defaultValue: 'my-topic', |
118 | 89 | componentProps: { |
119 | 90 | maxLength: 255, |
120 | - placeholder: '请输入Topic pattern', | |
91 | + placeholder: '请输入消息次数', | |
121 | 92 | }, |
122 | 93 | }, |
123 | 94 | { |
... | ... | @@ -140,7 +111,6 @@ export const modeKafkaForm: FormSchema[] = [ |
140 | 111 | defaultValue: 0, |
141 | 112 | componentProps: { |
142 | 113 | maxLength: 255, |
143 | - placeholder: '请输入Automatically retry times if fails', | |
144 | 114 | }, |
145 | 115 | }, |
146 | 116 | { |
... | ... | @@ -151,7 +121,6 @@ export const modeKafkaForm: FormSchema[] = [ |
151 | 121 | defaultValue: 16384, |
152 | 122 | componentProps: { |
153 | 123 | maxLength: 255, |
154 | - placeholder: '请输入Produces batch size in bytes', | |
155 | 124 | }, |
156 | 125 | }, |
157 | 126 | { |
... | ... | @@ -162,7 +131,6 @@ export const modeKafkaForm: FormSchema[] = [ |
162 | 131 | defaultValue: 0, |
163 | 132 | componentProps: { |
164 | 133 | maxLength: 255, |
165 | - placeholder: '请输入Time to buffer locally(ms)', | |
166 | 134 | }, |
167 | 135 | }, |
168 | 136 | { |
... | ... | @@ -173,7 +141,6 @@ export const modeKafkaForm: FormSchema[] = [ |
173 | 141 | defaultValue: 33554432, |
174 | 142 | componentProps: { |
175 | 143 | maxLength: 255, |
176 | - placeholder: '请输入Client buffer max size in bytes', | |
177 | 144 | }, |
178 | 145 | }, |
179 | 146 | { |
... | ... | @@ -183,7 +150,7 @@ export const modeKafkaForm: FormSchema[] = [ |
183 | 150 | colProps: { span: 12 }, |
184 | 151 | defaultValue: '-1', |
185 | 152 | componentProps: { |
186 | - placeholder: '请选择Number of acknowledgments', | |
153 | + placeholder: '请选择响应码', | |
187 | 154 | options: [ |
188 | 155 | { label: 'all', value: 'all' }, |
189 | 156 | { label: '-1', value: '-1' }, |
... | ... | @@ -224,7 +191,7 @@ export const modeKafkaForm: FormSchema[] = [ |
224 | 191 | }, |
225 | 192 | { |
226 | 193 | field: 'addMetadataKeyValuesAsKafkaHeaders', |
227 | - label: '', | |
194 | + label: '是否启用', | |
228 | 195 | colProps: { span: 12 }, |
229 | 196 | component: 'Checkbox', |
230 | 197 | renderComponentContent: '将消息的元数据以键值对的方式添加到Kafka消息头中', |
... | ... | @@ -232,12 +199,12 @@ export const modeKafkaForm: FormSchema[] = [ |
232 | 199 | { |
233 | 200 | field: 'kafkaHeadersCharset', |
234 | 201 | component: 'Select', |
235 | - label: 'Charset', | |
202 | + label: '字符集', | |
236 | 203 | required: true, |
237 | 204 | colProps: { span: 12 }, |
238 | 205 | defaultValue: 'UTF-8', |
239 | 206 | componentProps: { |
240 | - placeholder: '请选择Charset encoding', | |
207 | + placeholder: '请选择字符集编码', | |
241 | 208 | options: [ |
242 | 209 | { label: 'US-ASCII', value: 'US' }, |
243 | 210 | { label: 'ISO-8859-1', value: 'ISO-8859-1' }, |
... | ... | @@ -277,7 +244,7 @@ export const modeMqttForm: FormSchema[] = [ |
277 | 244 | }, |
278 | 245 | { |
279 | 246 | field: 'topicPattern', |
280 | - label: 'Topic', | |
247 | + label: '主题模式', | |
281 | 248 | colProps: { span: 12 }, |
282 | 249 | required: true, |
283 | 250 | component: 'Input', |
... | ... | @@ -289,7 +256,7 @@ export const modeMqttForm: FormSchema[] = [ |
289 | 256 | }, |
290 | 257 | { |
291 | 258 | field: 'host', |
292 | - label: 'Host', | |
259 | + label: '主机', | |
293 | 260 | colProps: { span: 12 }, |
294 | 261 | component: 'Input', |
295 | 262 | componentProps: { |
... | ... | @@ -299,7 +266,7 @@ export const modeMqttForm: FormSchema[] = [ |
299 | 266 | }, |
300 | 267 | { |
301 | 268 | field: 'port', |
302 | - label: 'Port', | |
269 | + label: '端口', | |
303 | 270 | colProps: { span: 12 }, |
304 | 271 | component: 'InputNumber', |
305 | 272 | defaultValue: 1883, |
... | ... | @@ -311,7 +278,7 @@ export const modeMqttForm: FormSchema[] = [ |
311 | 278 | }, |
312 | 279 | { |
313 | 280 | field: 'connectTimeoutSec', |
314 | - label: 'Connection', | |
281 | + label: '连接超时(秒)', | |
315 | 282 | colProps: { span: 12 }, |
316 | 283 | component: 'InputNumber', |
317 | 284 | defaultValue: 10, |
... | ... | @@ -323,7 +290,7 @@ export const modeMqttForm: FormSchema[] = [ |
323 | 290 | }, |
324 | 291 | { |
325 | 292 | field: 'clientId', |
326 | - label: 'Client ID', | |
293 | + label: '客户端ID', | |
327 | 294 | colProps: { span: 12 }, |
328 | 295 | component: 'Input', |
329 | 296 | componentProps: ({ formActionType }) => { |
... | ... | @@ -353,29 +320,29 @@ export const modeMqttForm: FormSchema[] = [ |
353 | 320 | colProps: { span: 12 }, |
354 | 321 | defaultValue: false, |
355 | 322 | component: 'Checkbox', |
356 | - renderComponentContent: 'Add Service ID as suffix to Client ID', | |
323 | + renderComponentContent: '将服务ID作为后缀添加到客户端ID', | |
357 | 324 | show: false, |
358 | 325 | }, |
359 | 326 | { |
360 | 327 | field: 'cleanSession', |
361 | - label: 'Clean', | |
328 | + label: '是否启用', | |
362 | 329 | colProps: { span: 12 }, |
363 | 330 | defaultValue: true, |
364 | 331 | component: 'Checkbox', |
365 | - renderComponentContent: 'Clean session', | |
332 | + renderComponentContent: '清除会话', | |
366 | 333 | }, |
367 | 334 | { |
368 | 335 | field: 'ssl', |
369 | - label: 'Enable', | |
336 | + label: '是否启用', | |
370 | 337 | colProps: { span: 12 }, |
371 | 338 | defaultValue: false, |
372 | 339 | component: 'Checkbox', |
373 | - renderComponentContent: 'Enable SSL', | |
340 | + renderComponentContent: '启用SSL', | |
374 | 341 | }, |
375 | 342 | { |
376 | 343 | field: 'type', |
377 | 344 | component: 'Select', |
378 | - label: 'type', | |
345 | + label: '凭据类型', | |
379 | 346 | colProps: { span: 12 }, |
380 | 347 | defaultValue: 'anonymous', |
381 | 348 | componentProps: { |
... | ... | @@ -460,12 +427,12 @@ export const modeMqttForm: FormSchema[] = [ |
460 | 427 | }, |
461 | 428 | { |
462 | 429 | field: 'password', |
463 | - label: 'Password', | |
430 | + label: '密码', | |
464 | 431 | colProps: { span: 12 }, |
465 | 432 | component: 'InputPassword', |
466 | 433 | componentProps: { |
467 | 434 | maxLength: 255, |
468 | - placeholder: '请输入Password', | |
435 | + placeholder: '请输入密码', | |
469 | 436 | }, |
470 | 437 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), |
471 | 438 | }, |
... | ... | @@ -511,31 +478,31 @@ export const modeRabbitMqForm: FormSchema[] = [ |
511 | 478 | }, |
512 | 479 | { |
513 | 480 | field: 'exchangeNamePattern', |
514 | - label: 'Exchange', | |
481 | + label: '交换名称模式', | |
515 | 482 | colProps: { span: 12 }, |
516 | 483 | component: 'Input', |
517 | 484 | componentProps: { |
518 | 485 | maxLength: 255, |
519 | - placeholder: '请输入pattern', | |
486 | + placeholder: '请输入模式', | |
520 | 487 | }, |
521 | 488 | }, |
522 | 489 | { |
523 | 490 | field: 'routingKeyPattern', |
524 | - label: 'Routing', | |
491 | + label: '路由密钥模式', | |
525 | 492 | colProps: { span: 12 }, |
526 | 493 | component: 'Input', |
527 | 494 | componentProps: { |
528 | 495 | maxLength: 255, |
529 | - placeholder: '请输入pattern', | |
496 | + placeholder: '请输入模式', | |
530 | 497 | }, |
531 | 498 | }, |
532 | 499 | { |
533 | 500 | field: 'messageProperties', |
534 | 501 | component: 'Select', |
535 | - label: 'Message', | |
502 | + label: '消息属性', | |
536 | 503 | colProps: { span: 12 }, |
537 | 504 | componentProps: { |
538 | - placeholder: '请选择Message properties', | |
505 | + placeholder: '请选择消息属性', | |
539 | 506 | options: [ |
540 | 507 | { label: 'BASIC', value: 'BASIC' }, |
541 | 508 | { label: 'TEXT_PLAIN', value: 'TEXT_PLAIN' }, |
... | ... | @@ -548,7 +515,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
548 | 515 | }, |
549 | 516 | { |
550 | 517 | field: 'host', |
551 | - label: 'Host', | |
518 | + label: '主机', | |
552 | 519 | colProps: { span: 12 }, |
553 | 520 | component: 'Input', |
554 | 521 | required: true, |
... | ... | @@ -560,7 +527,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
560 | 527 | }, |
561 | 528 | { |
562 | 529 | field: 'port', |
563 | - label: 'Port', | |
530 | + label: '端口', | |
564 | 531 | colProps: { span: 12 }, |
565 | 532 | component: 'InputNumber', |
566 | 533 | defaultValue: 5672, |
... | ... | @@ -572,7 +539,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
572 | 539 | }, |
573 | 540 | { |
574 | 541 | field: 'virtualHost', |
575 | - label: 'Virtual', | |
542 | + label: '虚拟端口', | |
576 | 543 | colProps: { span: 12 }, |
577 | 544 | component: 'Input', |
578 | 545 | defaultValue: '/', |
... | ... | @@ -583,36 +550,36 @@ export const modeRabbitMqForm: FormSchema[] = [ |
583 | 550 | }, |
584 | 551 | { |
585 | 552 | field: 'username', |
586 | - label: 'Username', | |
553 | + label: '用户名', | |
587 | 554 | colProps: { span: 12 }, |
588 | 555 | component: 'Input', |
589 | 556 | defaultValue: 'guest', |
590 | 557 | componentProps: { |
591 | 558 | maxLength: 255, |
592 | - placeholder: '请输入Username', | |
559 | + placeholder: '请输入用户名', | |
593 | 560 | }, |
594 | 561 | }, |
595 | 562 | { |
596 | 563 | field: 'password', |
597 | - label: 'Password', | |
564 | + label: '密码', | |
598 | 565 | colProps: { span: 12 }, |
599 | 566 | component: 'InputPassword', |
600 | 567 | defaultValue: 'guest', |
601 | 568 | componentProps: { |
602 | 569 | maxLength: 255, |
603 | - placeholder: '请输入Password', | |
570 | + placeholder: '请输入密码', | |
604 | 571 | }, |
605 | 572 | }, |
606 | 573 | { |
607 | 574 | field: 'automaticRecoveryEnabled', |
608 | - label: ' Automatic', | |
575 | + label: '是否启用', | |
609 | 576 | colProps: { span: 12 }, |
610 | 577 | component: 'Checkbox', |
611 | - renderComponentContent: 'Automatic recovery', | |
578 | + renderComponentContent: '自动恢复', | |
612 | 579 | }, |
613 | 580 | { |
614 | 581 | field: 'connectionTimeout', |
615 | - label: 'Connect', | |
582 | + label: '连接超时(毫秒)', | |
616 | 583 | colProps: { span: 12 }, |
617 | 584 | component: 'InputNumber', |
618 | 585 | defaultValue: 60000, |
... | ... | @@ -623,7 +590,7 @@ export const modeRabbitMqForm: FormSchema[] = [ |
623 | 590 | }, |
624 | 591 | { |
625 | 592 | field: 'handshakeTimeout', |
626 | - label: 'Handshake', | |
593 | + label: '握手超时(毫秒)', | |
627 | 594 | colProps: { span: 12 }, |
628 | 595 | component: 'InputNumber', |
629 | 596 | defaultValue: 10000, |
... | ... | @@ -697,7 +664,7 @@ export const modeApiForm: FormSchema[] = [ |
697 | 664 | }, |
698 | 665 | { |
699 | 666 | field: 'restEndpointUrlPattern', |
700 | - label: 'Endpoint', | |
667 | + label: '端点URL模式', | |
701 | 668 | colProps: { span: 12 }, |
702 | 669 | required: true, |
703 | 670 | defaultValue: 'http://localhost/api', |
... | ... | @@ -710,7 +677,7 @@ export const modeApiForm: FormSchema[] = [ |
710 | 677 | { |
711 | 678 | field: 'requestMethod', |
712 | 679 | component: 'Select', |
713 | - label: 'Request', | |
680 | + label: '请求方式', | |
714 | 681 | colProps: { span: 12 }, |
715 | 682 | defaultValue: 'POST', |
716 | 683 | componentProps: { |
... | ... | @@ -725,15 +692,15 @@ export const modeApiForm: FormSchema[] = [ |
725 | 692 | }, |
726 | 693 | { |
727 | 694 | field: 'enableProxy', |
728 | - label: '选择', | |
695 | + label: '是否启用', | |
729 | 696 | colProps: { span: 12 }, |
730 | 697 | component: 'Checkbox', |
731 | - renderComponentContent: 'Enable proxy', | |
698 | + renderComponentContent: '启用代理', | |
732 | 699 | }, |
733 | 700 | |
734 | 701 | { |
735 | 702 | field: 'proxyHost', |
736 | - label: 'Host', | |
703 | + label: '代理主机', | |
737 | 704 | colProps: { span: 12 }, |
738 | 705 | required: true, |
739 | 706 | component: 'Input', |
... | ... | @@ -747,7 +714,7 @@ export const modeApiForm: FormSchema[] = [ |
747 | 714 | }, |
748 | 715 | { |
749 | 716 | field: 'proxyPort', |
750 | - label: 'Port', | |
717 | + label: '代理端口', | |
751 | 718 | colProps: { span: 12 }, |
752 | 719 | required: true, |
753 | 720 | component: 'InputNumber', |
... | ... | @@ -762,13 +729,13 @@ export const modeApiForm: FormSchema[] = [ |
762 | 729 | }, |
763 | 730 | { |
764 | 731 | field: 'proxyUser', |
765 | - label: 'User', | |
732 | + label: '代理用户', | |
766 | 733 | colProps: { span: 12 }, |
767 | 734 | required: true, |
768 | 735 | component: 'Input', |
769 | 736 | componentProps: { |
770 | 737 | maxLength: 255, |
771 | - placeholder: '请输入Proxy user', | |
738 | + placeholder: '请输入代理用户', | |
772 | 739 | }, |
773 | 740 | ifShow: ({ values }) => { |
774 | 741 | return !!values.enableProxy; |
... | ... | @@ -776,13 +743,13 @@ export const modeApiForm: FormSchema[] = [ |
776 | 743 | }, |
777 | 744 | { |
778 | 745 | field: 'proxyPassword', |
779 | - label: 'Password', | |
746 | + label: '代理密码', | |
780 | 747 | colProps: { span: 12 }, |
781 | 748 | required: true, |
782 | 749 | component: 'InputPassword', |
783 | 750 | componentProps: { |
784 | 751 | maxLength: 255, |
785 | - placeholder: '请输入Proxy password', | |
752 | + placeholder: '请输入代理密码', | |
786 | 753 | }, |
787 | 754 | ifShow: ({ values }) => { |
788 | 755 | return !!values.enableProxy; |
... | ... | @@ -791,21 +758,20 @@ export const modeApiForm: FormSchema[] = [ |
791 | 758 | |
792 | 759 | { |
793 | 760 | field: 'useSystemProxyProperties', |
794 | - label: '选择', | |
761 | + label: '是否启用', | |
795 | 762 | colProps: { span: 12 }, |
796 | 763 | component: 'Checkbox', |
797 | - renderComponentContent: 'Use system proxy properties', | |
764 | + renderComponentContent: '使用系统代理属性', | |
798 | 765 | }, |
799 | 766 | { |
800 | 767 | field: 'maxParallelRequestsCount', |
801 | - label: 'Max', | |
768 | + label: '最大并行请求数', | |
802 | 769 | colProps: { span: 12 }, |
803 | 770 | required: true, |
804 | 771 | component: 'InputNumber', |
805 | 772 | defaultValue: 0, |
806 | 773 | componentProps: { |
807 | 774 | maxLength: 255, |
808 | - placeholder: '请输入Max number of paraller requests', | |
809 | 775 | }, |
810 | 776 | ifShow: ({ values }) => { |
811 | 777 | return !!values.useSystemProxyProperties; |
... | ... | @@ -813,21 +779,20 @@ export const modeApiForm: FormSchema[] = [ |
813 | 779 | }, |
814 | 780 | { |
815 | 781 | field: 'ignoreRequestBody', |
816 | - label: '选择', | |
782 | + label: '是否启用', | |
817 | 783 | colProps: { span: 12 }, |
818 | 784 | component: 'Checkbox', |
819 | - renderComponentContent: 'Without request body', | |
785 | + renderComponentContent: '无请求正文', | |
820 | 786 | }, |
821 | 787 | { |
822 | 788 | field: 'readTimeoutMs', |
823 | - label: 'Read', | |
789 | + label: '读取超时(毫秒)', | |
824 | 790 | colProps: { span: 12 }, |
825 | 791 | required: true, |
826 | 792 | component: 'InputNumber', |
827 | 793 | defaultValue: 0, |
828 | 794 | componentProps: { |
829 | 795 | maxLength: 255, |
830 | - placeholder: '请输入Read timeout in times', | |
831 | 796 | }, |
832 | 797 | ifShow: ({ values }) => { |
833 | 798 | return !values.useSystemProxyProperties; |
... | ... | @@ -835,14 +800,13 @@ export const modeApiForm: FormSchema[] = [ |
835 | 800 | }, |
836 | 801 | { |
837 | 802 | field: 'maxParallelRequestsCount', |
838 | - label: 'Max', | |
803 | + label: '最大并行请求数', | |
839 | 804 | colProps: { span: 12 }, |
840 | 805 | required: true, |
841 | 806 | component: 'InputNumber', |
842 | 807 | defaultValue: 0, |
843 | 808 | componentProps: { |
844 | 809 | maxLength: 255, |
845 | - placeholder: '请输入Max number of paraller requests', | |
846 | 810 | }, |
847 | 811 | ifShow: ({ values }) => { |
848 | 812 | return !values.useSystemProxyProperties; |
... | ... | @@ -858,31 +822,30 @@ export const modeApiForm: FormSchema[] = [ |
858 | 822 | |
859 | 823 | { |
860 | 824 | field: 'useRedisQueueForMsgPersistence', |
861 | - label: '选择', | |
825 | + label: '是否启用', | |
862 | 826 | colProps: { span: 12 }, |
863 | 827 | component: 'Checkbox', |
864 | - renderComponentContent: 'Use redis queue for message persistence', | |
828 | + renderComponentContent: '使用redis队列进行消息持久性', | |
865 | 829 | }, |
866 | 830 | { |
867 | 831 | field: 'trimQueue', |
868 | - label: '选择', | |
832 | + label: '是否启用', | |
869 | 833 | colProps: { span: 12 }, |
870 | 834 | component: 'Checkbox', |
871 | - renderComponentContent: 'Trim redis queue', | |
835 | + renderComponentContent: '修剪redis队列', | |
872 | 836 | ifShow: ({ values }) => { |
873 | 837 | return !!values.useRedisQueueForMsgPersistence; |
874 | 838 | }, |
875 | 839 | }, |
876 | 840 | { |
877 | 841 | field: 'maxQueueSize', |
878 | - label: 'Redis', | |
842 | + label: 'Redis队列最大数', | |
879 | 843 | colProps: { span: 12 }, |
880 | 844 | required: true, |
881 | 845 | component: 'InputNumber', |
882 | 846 | defaultValue: 0, |
883 | 847 | componentProps: { |
884 | 848 | maxLength: 255, |
885 | - placeholder: '请输入Redis queue max size', | |
886 | 849 | }, |
887 | 850 | ifShow: ({ values }) => { |
888 | 851 | return !!values.useRedisQueueForMsgPersistence; |
... | ... | @@ -892,11 +855,11 @@ export const modeApiForm: FormSchema[] = [ |
892 | 855 | { |
893 | 856 | field: 'type', |
894 | 857 | component: 'Select', |
895 | - label: 'type', | |
858 | + label: '凭据类型', | |
896 | 859 | colProps: { span: 12 }, |
897 | 860 | defaultValue: 'anonymous', |
898 | 861 | componentProps: { |
899 | - placeholder: '请选择Number of acknowledgments', | |
862 | + placeholder: '请选择凭据类型', | |
900 | 863 | options: [ |
901 | 864 | { label: 'Anonymous', value: 'anonymous' }, |
902 | 865 | { label: 'Basic', value: 'basic' }, |
... | ... | @@ -906,25 +869,25 @@ export const modeApiForm: FormSchema[] = [ |
906 | 869 | }, |
907 | 870 | { |
908 | 871 | field: 'username', |
909 | - label: 'Username', | |
872 | + label: '用户名', | |
910 | 873 | colProps: { span: 12 }, |
911 | 874 | component: 'Input', |
912 | 875 | required: true, |
913 | 876 | componentProps: { |
914 | 877 | maxLength: 255, |
915 | - placeholder: '请输入Username', | |
878 | + placeholder: '请输入用户名', | |
916 | 879 | }, |
917 | 880 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
918 | 881 | }, |
919 | 882 | { |
920 | 883 | field: 'password', |
921 | - label: 'Password', | |
884 | + label: '密码', | |
922 | 885 | colProps: { span: 12 }, |
923 | 886 | component: 'InputPassword', |
924 | 887 | required: true, |
925 | 888 | componentProps: { |
926 | 889 | maxLength: 255, |
927 | - placeholder: '请输入Password', | |
890 | + placeholder: '请输入密码', | |
928 | 891 | }, |
929 | 892 | ifShow: ({ values }) => isBasic(Reflect.get(values, 'type')), |
930 | 893 | }, |
... | ... | @@ -978,12 +941,12 @@ export const modeApiForm: FormSchema[] = [ |
978 | 941 | }, |
979 | 942 | { |
980 | 943 | field: 'password', |
981 | - label: 'Password', | |
944 | + label: '密码', | |
982 | 945 | colProps: { span: 12 }, |
983 | 946 | component: 'InputPassword', |
984 | 947 | componentProps: { |
985 | 948 | maxLength: 255, |
986 | - placeholder: '请输入Password', | |
949 | + placeholder: '请输入密码', | |
987 | 950 | }, |
988 | 951 | ifShow: ({ values }) => isPem(Reflect.get(values, 'type')), |
989 | 952 | }, | ... | ... |