Commit 7f431d2a528986c9db816fd0196e3b9952cf69b0
Merge branch 'local_dev_ft-send_message' into 'main_dev'
feat: 消息模板,模板用途修改helpMessage提示 See merge request yunteng/thingskit-front!953
Showing
1 changed file
with
26 additions
and
40 deletions
| ... | ... | @@ -223,47 +223,33 @@ export const formSchema: FormSchema[] = [ |
| 223 | 223 | helpMessage: [], |
| 224 | 224 | componentProps({ formActionType }) { |
| 225 | 225 | const { updateSchema } = formActionType; |
| 226 | + updateSchema({ | |
| 227 | + field: 'templatePurpose', | |
| 228 | + helpMessage: [ | |
| 229 | + `登录模板平台提供如下参数: | |
| 230 | + { | |
| 231 | + "code":"验证码" | |
| 232 | + }`, | |
| 233 | + `忘记密码模板平台提供如下参数: | |
| 234 | + { | |
| 235 | + "code":"验证码" | |
| 236 | + }`, | |
| 237 | + `告警通知模板平台提供如下参数: | |
| 238 | + { | |
| 239 | + "organization":"设备所属组织", | |
| 240 | + "deviceName":"设备名称", | |
| 241 | + "severity":"告警等级", | |
| 242 | + "type":"告警类型", | |
| 243 | + "triggerValue":"触发值", | |
| 244 | + "createTime":"告警时间" | |
| 245 | + }`, | |
| 246 | + `清除密码模板平台提供如下参数: | |
| 247 | + { | |
| 248 | + "code":"验证码" | |
| 249 | + }`, | |
| 250 | + ], | |
| 251 | + }); | |
| 226 | 252 | return { |
| 227 | - onChange(value) { | |
| 228 | - if (value === 'FOR_LOGIN') { | |
| 229 | - updateSchema({ | |
| 230 | - field: 'templatePurpose', | |
| 231 | - helpMessage: `登录模板平台提供如下参数: | |
| 232 | - { | |
| 233 | - "code":"验证码" | |
| 234 | - }`, | |
| 235 | - }); | |
| 236 | - } else if (value === 'FOR_FORGET_PASSWORD') { | |
| 237 | - updateSchema({ | |
| 238 | - field: 'templatePurpose', | |
| 239 | - helpMessage: `忘记密码模板平台提供如下参数: | |
| 240 | - { | |
| 241 | - "code":"验证码" | |
| 242 | - }`, | |
| 243 | - }); | |
| 244 | - } else if (value === 'FOR_ALARM_NOTICE') { | |
| 245 | - updateSchema({ | |
| 246 | - field: 'templatePurpose', | |
| 247 | - helpMessage: `告警通知模板平台提供如下参数: | |
| 248 | - { | |
| 249 | - "type":"告警类型", | |
| 250 | - "deviceName":"设备名称", | |
| 251 | - "severity":"告警等级", | |
| 252 | - "organization":"设备所属组织", | |
| 253 | - "createTime":"告警时间", | |
| 254 | - "triggerValue":"触发值", | |
| 255 | - }`, | |
| 256 | - }); | |
| 257 | - } else if (value === 'FOR_SET_PASSWORD') { | |
| 258 | - updateSchema({ | |
| 259 | - field: 'templatePurpose', | |
| 260 | - helpMessage: `清除密码模板平台提供如下参数: | |
| 261 | - { | |
| 262 | - "code":"验证码" | |
| 263 | - }`, | |
| 264 | - }); | |
| 265 | - } | |
| 266 | - }, | |
| 267 | 253 | api: findDictItemByCode, |
| 268 | 254 | params: { |
| 269 | 255 | dictCode: 'template_purpose', | ... | ... |