zhoulisen 5 лет назад
Родитель
Сommit
01f5845d7b
1 измененных файлов: 3 добавлений и 11 удалений
  1. 3
    11
      src/pages/resource/openScreen/index.jsx

+ 3
- 11
src/pages/resource/openScreen/index.jsx Просмотреть файл

@@ -17,7 +17,7 @@ function header(props) {
17 17
         getList({ pageNum: 1, pageSize: 10 });
18 18
     }, [])
19 19
     // 查询列表
20
-    // /api/admin/listNoticeByCondition
20
+
21 21
     const getList = params => {
22 22
         request({ ...apis.openScreen.list, params: { ...params } }).then(data => {
23 23
             setData(data)
@@ -58,8 +58,7 @@ function header(props) {
58 58
                 request({ ...apis.openScreen.delete, data: taNoticeList, }).then((data) => {
59 59
                   message.info("操作成功")
60 60
                   getList({ pageNum: 1, pageSize: 10 });
61
-               
62
-                //   setHouseIdList([])
61
+  
63 62
                 }).catch((err) => {
64 63
                 })
65 64
             },
@@ -70,7 +69,6 @@ function header(props) {
70 69
         getList({ pageNum: pageNumber, pageSize: 10, ...props.form.getFieldsValue() })
71 70
     }
72 71
 
73
-    // const data = []
74 72
 
75 73
     const columns = [
76 74
         {
@@ -145,12 +143,6 @@ function header(props) {
145 143
         },
146 144
     ];
147 145
 
148
-    // const onSelectChange = (selectedRowKeys, selectedRows) => {
149
-    //     console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
150
-    //     setTaNoticeList(selectedRows)
151
-    //     // this.setState({ selectedRowKeys });
152
-    //   };
153
-
154 146
     const { getFieldDecorator } = props.form
155 147
 
156 148
     const rowSelection = {
@@ -219,7 +211,7 @@ function header(props) {
219 211
                 <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{ marginLeft: '30px' }} >删除</Button>
220 212
 
221 213
                 <Table id='noticeTable' rowSelection={rowSelection} rowKey={r => r.noticeId} dataSource={data.records} columns={columns} pagination={false} />
222
-                {/* selectedRowKeys */}
214
+
223 215
                 <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
224 216
                     <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e)} current={data.current} />
225 217
                 </div>