张延森 hace 5 años
padre
commit
016b39bf19
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      src/pages/record/drainage/DrainageVisitRecordList.jsx

+ 4
- 1
src/pages/record/drainage/DrainageVisitRecordList.jsx Ver fichero

13
 const { Option } = Select;
13
 const { Option } = Select;
14
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
14
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
15
 
15
 
16
+const defaultTip = '请选择项目搜索'
17
+
16
 const header = props => {
18
 const header = props => {
17
   const [data, setData] = useState({})
19
   const [data, setData] = useState({})
18
   //   const [page, changePage] = useState({})
20
   //   const [page, changePage] = useState({})
19
 
21
 
20
   useEffect(() => {
22
   useEffect(() => {
21
     // getList({ pageNum: 1, pageSize: 10 });
23
     // getList({ pageNum: 1, pageSize: 10 });
24
+    message.info(defaultTip)
22
   }, [])
25
   }, [])
23
 
26
 
24
   // 查询列表
27
   // 查询列表
181
             </Button>
184
             </Button>
182
         </Form.Item>
185
         </Form.Item>
183
       </Form>
186
       </Form>
184
-      <Table style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />
187
+      <Table style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" locale={{ emptyText: defaultTip }} />
185
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
188
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
186
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e,props)} current={data.current} />
189
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e,props)} current={data.current} />
187
       </div>
190
       </div>