张延森 il y a 4 ans
Parent
révision
341a7d4acf
2 fichiers modifiés avec 21 ajouts et 1 suppressions
  1. 10
    1
      src/pages/property/notice/Edit.jsx
  2. 11
    0
      src/pages/property/notice/index.jsx

+ 10
- 1
src/pages/property/notice/Edit.jsx Voir le fichier

1
 import React, { useEffect, useState } from 'react'
1
 import React, { useEffect, useState } from 'react'
2
 import router from 'umi/router'
2
 import router from 'umi/router'
3
 import { fetch, apis } from '@/utils/request'
3
 import { fetch, apis } from '@/utils/request'
4
-import { Button, Form, Input, InputNumber, Modal, Radio } from 'antd'
4
+import { Button, Form, Input, InputNumber, Modal, Radio, Select } from 'antd'
5
 import Wangedit from '@/components/Wangedit/Wangedit'
5
 import Wangedit from '@/components/Wangedit/Wangedit'
6
 import ImageUpload from '@/components/uploadImage/ImageUpload'
6
 import ImageUpload from '@/components/uploadImage/ImageUpload'
7
 
7
 
86
   return (
86
   return (
87
     <div>
87
     <div>
88
       <Form {...formItemLayout} onSubmit={handleSubmit}>
88
       <Form {...formItemLayout} onSubmit={handleSubmit}>
89
+        <Form.Item label="类型">
90
+        {
91
+          getFieldDecorator('annType')(
92
+            <Select style={{}} allowClear>
93
+              <Select.Option value="notice">提醒</Select.Option>
94
+            </Select>
95
+          )
96
+        }
97
+        </Form.Item>
89
         <Form.Item label="公告标题">
98
         <Form.Item label="公告标题">
90
         {
99
         {
91
           getFieldDecorator('announcementTitle', {
100
           getFieldDecorator('announcementTitle', {

+ 11
- 0
src/pages/property/notice/index.jsx Voir le fichier

28
               getFieldDecorator('announcementTitle')(<Input placeholder="公告标题" />)
28
               getFieldDecorator('announcementTitle')(<Input placeholder="公告标题" />)
29
             }
29
             }
30
             </Form.Item>
30
             </Form.Item>
31
+            <Form.Item label="公告类型">
32
+            {
33
+              getFieldDecorator('annType')(
34
+                <Select style={{minWidth: '120px'}}>
35
+                  <Select.Option value="">全部</Select.Option>
36
+                  <Select.Option value="notice">提醒</Select.Option>
37
+                </Select>
38
+              )
39
+            }
40
+            </Form.Item>
31
           </>
41
           </>
32
         )
42
         )
33
       }}
43
       }}
96
       </div>
106
       </div>
97
       <List dataSource={listData} loading={loading} pagination={pagination} onPageChange={handlePageChange} rowKey="id">
107
       <List dataSource={listData} loading={loading} pagination={pagination} onPageChange={handlePageChange} rowKey="id">
98
         <Table.Column title="编号" dataIndex="id" key="id" />
108
         <Table.Column title="编号" dataIndex="id" key="id" />
109
+        <Table.Column title="类型" dataIndex="annType" key="annType" render={t => t === 'notice' ? '提醒' : null} />
99
         <Table.Column
110
         <Table.Column
100
           title="标题"
111
           title="标题"
101
           dataIndex="announcementTitle"
112
           dataIndex="announcementTitle"