Commit 3560bf9702164a52a9ad59cf61ac1253ca64ec54

Authored by xp.Huang
2 parents 55d59692 d0de646d

Merge branch 'local_devbranch_byft' into 'main_dev'

perf: 优化消息配置表单部分密码框处理

See merge request yunteng/thingskit-front!1093
... ... @@ -146,7 +146,7 @@ export const formSchema: FormSchema[] = [
146 146 field: 'appId',
147 147 label: 'appId',
148 148 required: true,
149   - component: 'Input',
  149 + component: 'InputPassword',
150 150 componentProps: {
151 151 maxLength: 36,
152 152 placeholder: '请输入appId',
... ... @@ -157,7 +157,7 @@ export const formSchema: FormSchema[] = [
157 157 field: 'secretId',
158 158 label: 'secretId',
159 159 required: true,
160   - component: 'Input',
  160 + component: 'InputPassword',
161 161 helpMessage: ['腾讯云:API密钥参考地址: https://console.cloud.tencent.com/cam/capi'],
162 162 componentProps: {
163 163 maxLength: 36,
... ... @@ -173,14 +173,14 @@ export const formSchema: FormSchema[] = [
173 173 placeholder: '请输入secretKey',
174 174 },
175 175
176   - component: 'Input',
  176 + component: 'InputPassword',
177 177 ifShow: ({ values }) => messageTypeIsTencentCloud(Reflect.get(values, 'platformType')),
178 178 },
179 179 {
180 180 field: 'accessKeyId',
181 181 label: 'accessKeyId',
182 182 required: true,
183   - component: 'Input',
  183 + component: 'InputPassword',
184 184 helpMessage: ['阿里云:API密钥参考地址:https://ram.console.aliyun.com/manage/ak'],
185 185 componentProps: {
186 186 maxLength: 36,
... ... @@ -199,7 +199,7 @@ export const formSchema: FormSchema[] = [
199 199 placeholder: '请输入accessKeySecret',
200 200 },
201 201
202   - component: 'Input',
  202 + component: 'InputPassword',
203 203 ifShow: ({ values }) =>
204 204 isMessage(Reflect.get(values, 'messageType')) &&
205 205 !messageTypeIsTencentCloud(Reflect.get(values, 'platformType')),
... ... @@ -271,7 +271,7 @@ export const formSchema: FormSchema[] = [
271 271 {
272 272 field: 'agentId',
273 273 label: 'agentId',
274   - component: 'Input',
  274 + component: 'InputPassword',
275 275 required: true,
276 276 ifShow: ({ values }) => isDingtalk(Reflect.get(values, 'messageType')),
277 277 componentProps: {
... ... @@ -282,7 +282,7 @@ export const formSchema: FormSchema[] = [
282 282 {
283 283 field: 'clientId',
284 284 label: 'clientId',
285   - component: 'Input',
  285 + component: 'InputPassword',
286 286 required: true,
287 287 ifShow: ({ values }) => isDingtalk(Reflect.get(values, 'messageType')),
288 288 componentProps: {
... ... @@ -293,7 +293,7 @@ export const formSchema: FormSchema[] = [
293 293 {
294 294 field: 'clientSecret',
295 295 label: 'clientSecret',
296   - component: 'Input',
  296 + component: 'InputPassword',
297 297 ifShow: ({ values }) => isDingtalk(Reflect.get(values, 'messageType')),
298 298 required: true,
299 299 componentProps: {
... ...
... ... @@ -201,14 +201,25 @@
201 201 * username和password 存在则是邮件配置
202 202 * secretId和secretKey 存在则是腾讯云配置信息
203 203 * accessKeyId和accessKeySecret 存在则是阿里云配置信息
  204 + * clientId和clientSecret 存在则是钉钉配置信息
204 205 */
205   - const { username, password, secretId, secretKey, accessKeyId, accessKeySecret } = e;
  206 + const {
  207 + username,
  208 + password,
  209 + secretId,
  210 + secretKey,
  211 + accessKeyId,
  212 + accessKeySecret,
  213 + clientId,
  214 + clientSecret,
  215 + } = e;
206 216 return JSON.parse(
207 217 JSON.stringify({
208 218 ...e,
209 219 ...handleStandardLength('username', 'password', username, password),
210 220 ...handleStandardLength('secretId', 'secretKey', secretId, secretKey),
211 221 ...handleStandardLength('accessKeyId', 'accessKeySecret', accessKeyId, accessKeySecret),
  222 + ...handleStandardLength('clientId', 'clientSecret', clientId, clientSecret),
212 223 })
213 224 );
214 225 };
... ...
... ... @@ -13,7 +13,7 @@ export enum PermissionDataFlowEnum {
13 13
14 14 //业务文字描述配置枚举
15 15 export enum BusinessDataFlowTextEnum {
16   - BUSINESS_ADD_TEXT = '添加流转',
  16 + BUSINESS_ADD_TEXT = '新增流转',
17 17 BUSINESS_DELETE_TEXT = '批量删除',
18 18 BUSINESS_ENABLE_TEXT = '批量启用',
19 19 BUSINESS_UPDATE_TEXT = '编辑',
... ...