wzyyy 3 роки тому
батько
коміт
593238bc39

+ 8 - 8
src/components/Metadata/EnumParam/index.tsx

@@ -40,13 +40,13 @@ const EnumParam = () => {
               'x-reactions':
                 '{{(field)=>field.title = field.value && (field.value.text) || field.title}}',
               properties: {
-                text: {
+                value: {
                   type: 'string',
-                  title: 'Text',
+                  title: 'Value',
                   'x-decorator': 'FormItem',
                   'x-component': 'Input',
                   'x-component-props': {
-                    placeholder: '标识',
+                    placeholder: '对该枚举项的描述',
                   },
                   'x-validator': [
                     {
@@ -55,17 +55,17 @@ const EnumParam = () => {
                     },
                     {
                       required: true,
-                      message: '请输入Text',
+                      message: '请输入Value',
                     },
                   ],
                 },
-                value: {
+                text: {
                   type: 'string',
-                  title: 'Value',
+                  title: 'Text',
                   'x-decorator': 'FormItem',
                   'x-component': 'Input',
                   'x-component-props': {
-                    placeholder: '对该枚举项的描述',
+                    placeholder: '请输入Text',
                   },
                   'x-validator': [
                     {
@@ -74,7 +74,7 @@ const EnumParam = () => {
                     },
                     {
                       required: true,
-                      message: '请输入Value',
+                      message: '请输入Text',
                     },
                   ],
                 },

+ 1 - 0
src/pages/device/Instance/Detail/Reation/Edit.tsx

@@ -115,6 +115,7 @@ const Edit = (props: Props) => {
     });
     setInitData(obj);
     form.setValues(obj);
+    // console.log(props.data,obj)
   }, [props.data]);
 
   return (

+ 6 - 2
src/pages/media/Device/Save/index.tsx

@@ -243,9 +243,13 @@ const Save = () => {
                     <Form.Item
                       label={'所属产品'}
                       required
-                      rules={[{ required: true, message: '请选择所属产品' }]}
+                      // rules={[{ required: true, message: '请选择所属产品' }]}
                     >
-                      <Form.Item name={'productId'} noStyle>
+                      <Form.Item
+                        name={'productId'}
+                        noStyle
+                        rules={[{ required: true, message: '请选择所属产品' }]}
+                      >
                         <Select
                           showSearch
                           allowClear

+ 1 - 1
src/pages/notice/Template/Detail/doc/DingTalk.tsx

@@ -33,7 +33,7 @@ const DingTalk = () => {
       <div className="image">
         <Image width="100%" src={agentId} />
       </div>
-      <h2> 3、收信人、收信组织</h2>
+      <h2> 3、收信人、收信部门</h2>
       <div>若不填写收信人,则在模板调试和配置告警通知时手动填写。</div>
       {/*<div> 收信人ID获取路径:“钉钉管理后台”--“通讯录”--“查看用户”</div>*/}
       {/*<div> 收信部门ID获取路径:“钉钉管理后台”--“通讯录”--“编辑部门”</div>*/}

+ 1 - 1
src/pages/notice/Template/Detail/doc/WeixinCorp.tsx

@@ -29,7 +29,7 @@ const WeixinCorp = () => {
         <div className="image">
           <Image width="100%" src={agentId} />
         </div>
-        <h2> 3、收信人ID、收信组织ID、标签推送</h2>
+        <h2> 3、收信人ID、收信部门ID、标签推送</h2>
         <div>
           接收通知的3种方式,3个字段若在此页面都没有填写,则在模板调试和配置告警通知时需要手动填写
         </div>

+ 1 - 1
src/pages/notice/Template/index.tsx

@@ -283,7 +283,7 @@ const Template = observer(() => {
 
             <PermissionButton
               popConfirm={{
-                title: '确导出?',
+                title: '确导出?',
                 onConfirm: async () => {
                   const resp: any = await service.queryNoPagingPost({ ...param, paging: false });
                   if (resp.status === 200) {