张延森 4 anos atrás
pai
commit
341a7d4acf

+ 10
- 1
src/pages/property/notice/Edit.jsx Ver arquivo

@@ -1,7 +1,7 @@
1 1
 import React, { useEffect, useState } from 'react'
2 2
 import router from 'umi/router'
3 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 5
 import Wangedit from '@/components/Wangedit/Wangedit'
6 6
 import ImageUpload from '@/components/uploadImage/ImageUpload'
7 7
 
@@ -86,6 +86,15 @@ export default Form.create()(props => {
86 86
   return (
87 87
     <div>
88 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 98
         <Form.Item label="公告标题">
90 99
         {
91 100
           getFieldDecorator('announcementTitle', {

+ 11
- 0
src/pages/property/notice/index.jsx Ver arquivo

@@ -28,6 +28,16 @@ const Condition = props => {
28 28
               getFieldDecorator('announcementTitle')(<Input placeholder="公告标题" />)
29 29
             }
30 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,6 +106,7 @@ export default props => {
96 106
       </div>
97 107
       <List dataSource={listData} loading={loading} pagination={pagination} onPageChange={handlePageChange} rowKey="id">
98 108
         <Table.Column title="编号" dataIndex="id" key="id" />
109
+        <Table.Column title="类型" dataIndex="annType" key="annType" render={t => t === 'notice' ? '提醒' : null} />
99 110
         <Table.Column
100 111
           title="标题"
101 112
           dataIndex="announcementTitle"