Bladeren bron

AI: 在会友列表中添加服侍岗位字段

D8D AI 1 jaar geleden
bovenliggende
commit
3aa7e2d13e
3 gewijzigde bestanden met toevoegingen van 16 en 2 verwijderingen
  1. 4 2
      src/api/deviceApi.js
  2. 6 0
      src/components/MemberForm.jsx
  3. 6 0
      src/components/MemberList.jsx

+ 4 - 2
src/api/deviceApi.js

@@ -14,7 +14,8 @@ let mockData = [
     isBaptized: true,
     baptismDate: '2010-05-15',
     contact: '13800138000',
-    photo: null
+    photo: null,
+    servicePosition: '主日学老师'
   },
   {
     personId: '2',
@@ -26,7 +27,8 @@ let mockData = [
     isBaptized: false,
     baptismDate: null,
     contact: '13900139000',
-    photo: null
+    photo: null,
+    servicePosition: '敬拜团成员'
   }
 ];
 

+ 6 - 0
src/components/MemberForm.jsx

@@ -119,6 +119,12 @@ const MemberForm = ({ onSubmit, initialValues }) => {
       >
         <Input />
       </Form.Item>
+      <Form.Item
+        name="servicePosition"
+        label="服侍岗位"
+      >
+        <Input />
+      </Form.Item>
       <Form.Item
         name="photo"
         label="单寸照片"

+ 6 - 0
src/components/MemberList.jsx

@@ -164,6 +164,12 @@ const MemberList = () => {
       key: 'contact',
       ...getColumnSearchProps('contact'),
     },
+    { 
+      title: '服侍岗位', 
+      dataIndex: 'servicePosition', 
+      key: 'servicePosition',
+      ...getColumnSearchProps('servicePosition'),
+    },
     { 
       title: '照片', 
       dataIndex: 'photo',