|
@@ -72,19 +72,6 @@ export const formSchema: FormSchema[] = [ |
|
@@ -72,19 +72,6 @@ export const formSchema: FormSchema[] = [ |
72
|
maxLength: 255,
|
72
|
maxLength: 255,
|
73
|
placeholder: '请输入配置名称',
|
73
|
placeholder: '请输入配置名称',
|
74
|
},
|
74
|
},
|
75
|
- dynamicRules: () => {
|
|
|
76
|
- return [
|
|
|
77
|
- {
|
|
|
78
|
- required: true,
|
|
|
79
|
- validator: (_, value) => {
|
|
|
80
|
- if (String(value).length > 255) {
|
|
|
81
|
- return Promise.reject('字数不超过255个字');
|
|
|
82
|
- }
|
|
|
83
|
- return Promise.resolve();
|
|
|
84
|
- },
|
|
|
85
|
- },
|
|
|
86
|
- ];
|
|
|
87
|
- },
|
|
|
88
|
},
|
75
|
},
|
89
|
{
|
76
|
{
|
90
|
field: 'messageType',
|
77
|
field: 'messageType',
|
|
@@ -136,19 +123,7 @@ export const formSchema: FormSchema[] = [ |
|
@@ -136,19 +123,7 @@ export const formSchema: FormSchema[] = [ |
136
|
maxLength: 36,
|
123
|
maxLength: 36,
|
137
|
placeholder: '请输入accessKeySecret',
|
124
|
placeholder: '请输入accessKeySecret',
|
138
|
},
|
125
|
},
|
139
|
- dynamicRules: () => {
|
|
|
140
|
- return [
|
|
|
141
|
- {
|
|
|
142
|
- required: true,
|
|
|
143
|
- validator: (_, value) => {
|
|
|
144
|
- if (String(value).length > 36) {
|
|
|
145
|
- return Promise.reject('字数不超过36个字');
|
|
|
146
|
- }
|
|
|
147
|
- return Promise.resolve();
|
|
|
148
|
- },
|
|
|
149
|
- },
|
|
|
150
|
- ];
|
|
|
151
|
- },
|
126
|
+
|
152
|
ifShow: ({ values }) => isMessage(Reflect.get(values, 'messageType')),
|
127
|
ifShow: ({ values }) => isMessage(Reflect.get(values, 'messageType')),
|
153
|
},
|
128
|
},
|
154
|
{
|
129
|
{
|
|
@@ -159,7 +134,7 @@ export const formSchema: FormSchema[] = [ |
|
@@ -159,7 +134,7 @@ export const formSchema: FormSchema[] = [ |
159
|
component: 'Input',
|
134
|
component: 'Input',
|
160
|
componentProps: {
|
135
|
componentProps: {
|
161
|
maxLength: 36,
|
136
|
maxLength: 36,
|
162
|
- placeholder: '请输入服务器地址',
|
137
|
+ placeholder: '请输入accessKeySecret',
|
163
|
},
|
138
|
},
|
164
|
|
139
|
|
165
|
ifShow: ({ values }) => isEmail(Reflect.get(values, 'messageType')),
|
140
|
ifShow: ({ values }) => isEmail(Reflect.get(values, 'messageType')),
|
|
@@ -187,19 +162,6 @@ export const formSchema: FormSchema[] = [ |
|
@@ -187,19 +162,6 @@ export const formSchema: FormSchema[] = [ |
187
|
maxLength: 255,
|
162
|
maxLength: 255,
|
188
|
placeholder: '请输入用户名',
|
163
|
placeholder: '请输入用户名',
|
189
|
},
|
164
|
},
|
190
|
- dynamicRules: () => {
|
|
|
191
|
- return [
|
|
|
192
|
- {
|
|
|
193
|
- required: true,
|
|
|
194
|
- validator: (_, value) => {
|
|
|
195
|
- if (String(value).length > 255) {
|
|
|
196
|
- return Promise.reject('字数不超过255个字');
|
|
|
197
|
- }
|
|
|
198
|
- return Promise.resolve();
|
|
|
199
|
- },
|
|
|
200
|
- },
|
|
|
201
|
- ];
|
|
|
202
|
- },
|
|
|
203
|
|
165
|
|
204
|
ifShow: ({ values }) => isEmail(Reflect.get(values, 'messageType')),
|
166
|
ifShow: ({ values }) => isEmail(Reflect.get(values, 'messageType')),
|
205
|
},
|
167
|
},
|