zhoulisen 5 年前
父节点
当前提交
01f5845d7b
共有 1 个文件被更改,包括 3 次插入11 次删除
  1. 3
    11
      src/pages/resource/openScreen/index.jsx

+ 3
- 11
src/pages/resource/openScreen/index.jsx 查看文件

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