dingxin 5 年前
父节点
当前提交
d65d2b0d99
共有 2 个文件被更改,包括 10 次插入4 次删除
  1. 10
    2
      src/pages/staff/list/StaffList.jsx
  2. 0
    2
      src/pages/system/document/audit.jsx

+ 10
- 2
src/pages/staff/list/StaffList.jsx 查看文件

104
 }
104
 }
105
 
105
 
106
 const header = (props) => {
106
 const header = (props) => {
107
-  const [tempData, setTempData] = useState([])
107
+  const [tempData, setTempData] = useState({ records: [] })
108
   const [pageTotal, setPageTotal] = useState('')
108
   const [pageTotal, setPageTotal] = useState('')
109
   const [data,setData] = useState({})
109
   const [data,setData] = useState({})
110
   useEffect(() => {
110
   useEffect(() => {
114
   const getList = (params) => {
114
   const getList = (params) => {
115
     request({ ...apis.staff.taUser, params: { ...params } }).then((data) => {
115
     request({ ...apis.staff.taUser, params: { ...params } }).then((data) => {
116
       console.log(data, "listData")
116
       console.log(data, "listData")
117
+<<<<<<< HEAD
118
+      setTempData(data)
119
+=======
117
       setData(data)
120
       setData(data)
118
       setTempData(data.records)
121
       setTempData(data.records)
122
+>>>>>>> 07ab51117db15061e9e469cbddcabf3ec412859e
119
       setPageTotal(data.total)
123
       setPageTotal(data.total)
120
     })
124
     })
121
   }
125
   }
196
       <Button type="danger" style={{ margin: '20px 0', padding: '2px 36px' }} onClick={toEditStaff()}>新增</Button>
200
       <Button type="danger" style={{ margin: '20px 0', padding: '2px 36px' }} onClick={toEditStaff()}>新增</Button>
197
       <Row style={{ padding: ' 0 10px' }}>
201
       <Row style={{ padding: ' 0 10px' }}>
198
         {
202
         {
199
-          tempData.map((item, index) => (
203
+          tempData.records.map((item, index) => (
200
             <Col span={6}>
204
             <Col span={6}>
201
               <CartBody data={item} onFresh={() => getList({ pageNum: 1, pageSize: 8 })} />
205
               <CartBody data={item} onFresh={() => getList({ pageNum: 1, pageSize: 8 })} />
202
             </Col>
206
             </Col>
206
 
210
 
207
       {/* 分页  */}
211
       {/* 分页  */}
208
       <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
212
       <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
213
+<<<<<<< HEAD
214
+        <Pagination showQuickJumper defaultCurrent={1} total={pageTotal} onChange={onChange} current={tempData.current}/>
215
+=======
209
         <Pagination showQuickJumper defaultCurrent={1} pageSize={8} total={pageTotal} onChange={onChange} current={data.current}/>
216
         <Pagination showQuickJumper defaultCurrent={1} pageSize={8} total={pageTotal} onChange={onChange} current={data.current}/>
217
+>>>>>>> 07ab51117db15061e9e469cbddcabf3ec412859e
210
       </div>
218
       </div>
211
     </>
219
     </>
212
   )
220
   )

+ 0
- 2
src/pages/system/document/audit.jsx 查看文件

28
   }
28
   }
29
 
29
 
30
   function onVerify (params) {
30
   function onVerify (params) {
31
-
32
-    alert(params)
33
     // 网路请求
31
     // 网路请求
34
     request({ ...apis.system.updateVerify, urlData: { id: documentVerifyId }, data: { verifyStatus: params } }).then(data => {
32
     request({ ...apis.system.updateVerify, urlData: { id: documentVerifyId }, data: { verifyStatus: params } }).then(data => {
35
 
33