shenwu 6 hónapja
szülő
commit
e0df5650cc

+ 1 - 1
src/pages/distribution/book/longBook/index.tsx

@@ -106,7 +106,7 @@ const Page: React.FC = () => {
         // bordered
       />
       <BetaSchemaForm<DataItem>
-        title={!editValues?.id ? '新增作者' : '编辑作者'}
+        title={"信息配置"}
         formRef={formRef}
         width={900}
         open={open}

+ 5 - 2
src/pages/distribution/book/shortBook/index.tsx

@@ -63,6 +63,9 @@ const Page: React.FC = () => {
         return { ...item, bookId: editValues.bookId };
       });
     }
+    if (!values?.bookId) {
+      values.bookId = editValues.bookId
+    }
     BookInfoBookConfig.run(values).then((res) => {
       if (res.code === 200) {
         actionRef?.current?.reload();
@@ -104,10 +107,10 @@ const Page: React.FC = () => {
           setWorkDirection,
           edit,
         })}
-        // bordered
+      // bordered
       />
       <BetaSchemaForm<DataItem>
-        title={!editValues?.id ? '新增作者' : '编辑作者'}
+        title={"信息配置"}
         formRef={formRef}
         width={900}
         open={open}

+ 2 - 0
src/pages/distribution/miniprogram/pagesManage/formComp.tsx

@@ -2,6 +2,7 @@ import UploadImg from '@/components/uploadImg';
 import {
     ProCard,
     ProForm,
+    ProFormDependency,
     ProFormGroup,
     ProFormInstance,
     ProFormItem,
@@ -84,6 +85,7 @@ const FormComp = forwardRef((props: any, ref?: any) => {
                             isCropper
                         />
                     </ProForm.Item>
+
                 </ProForm.Group>
             </ProFormList>
         </ProForm>

+ 36 - 1
src/pages/distribution/miniprogram/weChatInfo/formConfig.tsx

@@ -22,7 +22,7 @@ function formConfig(
       },
     },
     {
-      title: '小程序秘钥',
+      title: 'appSecret',
       dataIndex: 'appSecret',
       formItemProps: {
         style: { marginBottom: 10 },
@@ -33,6 +33,41 @@ function formConfig(
           },
         ],
       },
+      fieldProps: {
+        placeholder: '请输入小程序秘钥'
+      },
+    },
+    {
+      title: 'appToken',
+      dataIndex: 'appToken',
+      formItemProps: {
+        style: { marginBottom: 10 },
+        rules: [
+          {
+            required: true,
+            message: '此项为必填项',
+          },
+        ],
+      },
+      fieldProps: {
+        placeholder: '微信小程序消息服务器配置的token'
+      },
+    },
+    {
+      title: 'appAesKey',
+      dataIndex: 'appAesKey',
+      formItemProps: {
+        style: { marginBottom: 10 },
+        rules: [
+          {
+            required: true,
+            message: '此项为必填项',
+          },
+        ],
+      },
+      fieldProps: {
+        placeholder: '微信小程序消息服务器配置的EncodingAESKey'
+      },
     },
     {
       title: '商户',