| 
@@ -24,7 +24,7 @@ | 
 | 
@@ -24,7 +24,7 @@ | 
| 
24
 | 
     emits: ['success', 'register'],
 | 
24
 | 
     emits: ['success', 'register'],
 | 
| 
25
 | 
     setup(_, { emit }) {
 | 
25
 | 
     setup(_, { emit }) {
 | 
| 
26
 | 
       const isUpdate = ref(true);
 | 
26
 | 
       const isUpdate = ref(true);
 | 
| 
27
 | 
-      const [registerForm, { validate, setFieldsValue, resetFields }] = useForm({
 | 
27
 | 
+      const [registerForm, { validate, setFieldsValue, resetFields, updateSchema }] = useForm({
 | 
| 
28
 | 
         labelWidth: 120,
 | 
28
 | 
         labelWidth: 120,
 | 
| 
29
 | 
         schemas: formSchema,
 | 
29
 | 
         schemas: formSchema,
 | 
| 
30
 | 
         showActionButtonGroup: false,
 | 
30
 | 
         showActionButtonGroup: false,
 | 
 | 
@@ -40,6 +40,48 @@ | 
 | 
@@ -40,6 +40,48 @@ | 
| 
40
 | 
             Reflect.set(data.record, key + '', config[key]);
 | 
40
 | 
             Reflect.set(data.record, key + '', config[key]);
 | 
| 
41
 | 
           }
 | 
41
 | 
           }
 | 
| 
42
 | 
           await setFieldsValue(data.record);
 | 
42
 | 
           await setFieldsValue(data.record);
 | 
| 
 | 
   | 
43
 | 
+          if (data.record.templatePurpose === 'FOR_LOGIN') {
 | 
| 
 | 
   | 
44
 | 
+            updateSchema({
 | 
| 
 | 
   | 
45
 | 
+              field: 'templatePurpose',
 | 
| 
 | 
   | 
46
 | 
+              helpMessage: `登录模板平台提供如下参数:
 | 
| 
 | 
   | 
47
 | 
+              {
 | 
| 
 | 
   | 
48
 | 
+                "code":"验证码"
 | 
| 
 | 
   | 
49
 | 
+              }`,
 | 
| 
 | 
   | 
50
 | 
+            });
 | 
| 
 | 
   | 
51
 | 
+          } else if (data.record.templatePurpose === 'FOR_FORGET_PASSWORD') {
 | 
| 
 | 
   | 
52
 | 
+            updateSchema({
 | 
| 
 | 
   | 
53
 | 
+              field: 'templatePurpose',
 | 
| 
 | 
   | 
54
 | 
+              helpMessage: `忘记密码模板平台提供如下参数:
 | 
| 
 | 
   | 
55
 | 
+              {
 | 
| 
 | 
   | 
56
 | 
+                "code":"验证码"
 | 
| 
 | 
   | 
57
 | 
+              }`,
 | 
| 
 | 
   | 
58
 | 
+            });
 | 
| 
 | 
   | 
59
 | 
+          } else if (data.record.templatePurpose === 'FOR_ALARM_NOTICE') {
 | 
| 
 | 
   | 
60
 | 
+            updateSchema({
 | 
| 
 | 
   | 
61
 | 
+              field: 'templatePurpose',
 | 
| 
 | 
   | 
62
 | 
+              helpMessage: `告警通知模板平台提供如下参数:
 | 
| 
 | 
   | 
63
 | 
+              {
 | 
| 
 | 
   | 
64
 | 
+                "type":"告警类型",
 | 
| 
 | 
   | 
65
 | 
+                "device_name":"设备名称",
 | 
| 
 | 
   | 
66
 | 
+                "severity":"告警等级",
 | 
| 
 | 
   | 
67
 | 
+                "organization":"设备所属组织",
 | 
| 
 | 
   | 
68
 | 
+                "createTime":告警时间
 | 
| 
 | 
   | 
69
 | 
+              }`,
 | 
| 
 | 
   | 
70
 | 
+            });
 | 
| 
 | 
   | 
71
 | 
+          } else if (data.record.templatePurpose === 'FOR_SET_PASSWORD') {
 | 
| 
 | 
   | 
72
 | 
+            updateSchema({
 | 
| 
 | 
   | 
73
 | 
+              field: 'templatePurpose',
 | 
| 
 | 
   | 
74
 | 
+              helpMessage: `清除密码模板平台提供如下参数:
 | 
| 
 | 
   | 
75
 | 
+              {
 | 
| 
 | 
   | 
76
 | 
+                "code":"验证码"
 | 
| 
 | 
   | 
77
 | 
+              }`,
 | 
| 
 | 
   | 
78
 | 
+            });
 | 
| 
 | 
   | 
79
 | 
+          }
 | 
| 
 | 
   | 
80
 | 
+        } else {
 | 
| 
 | 
   | 
81
 | 
+          updateSchema({
 | 
| 
 | 
   | 
82
 | 
+            field: 'templatePurpose',
 | 
| 
 | 
   | 
83
 | 
+            helpMessage: [],
 | 
| 
 | 
   | 
84
 | 
+          });
 | 
| 
43
 | 
         }
 | 
85
 | 
         }
 | 
| 
44
 | 
       });
 | 
86
 | 
       });
 | 
| 
45
 | 
 
 | 
87
 | 
 
 |